is.cached||{},this.cached[this.storageKey(t,i,n)]=r},jsonMode:!1,getPayload(e,t){let i={method:e,data:t}
return this.jsonMode&&(i.contentType="application/json",i.data=JSON.stringify(t)),i},update(e,t,n,o){const l={},a=(0,r.underscore)(this.apiNameFor(t))
return l[a]=o,(0,i.ajax)(this.pathFor(e,t,n),this.getPayload("PUT",l)).then((function(e){return new s(e[a],e)}))},createRecord(e,t,n){const o={},l=(0,r.underscore)(this.apiNameFor(t))
return o[l]=n,(0,i.ajax)(this.pathFor(e,t),this.getPayload("POST",o)).then((function(e){return new s(e[l],e)}))},destroyRecord(e,t,n){return(0,i.ajax)(this.pathFor(e,t,n.get(this.primaryKey)),{type:"DELETE"})}})
e.default=a})),define("discourse/adapters/reviewable-explanation",["exports","discourse/adapters/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({jsonMode:!0,pathFor:(e,t,i)=>`/review/${i}/explain.json`})
e.default=i})),define("discourse/adapters/reviewable-settings",["exports","discourse/adapters/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({pathFor:()=>"/review/settings"})
e.default=i})),define("discourse/adapters/reviewable-topic",["exports","discourse/adapters/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({pathFor:()=>"/review/topics"})
e.default=i})),define("discourse/adapters/reviewable",["exports","discourse/adapters/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({jsonMode:!0,pathFor(e,t,i){return this.appendQueryParams("/review",i)}})
e.default=i})),define("discourse/adapters/tag-info",["exports","discourse/adapters/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({pathFor:(e,t,i)=>"/tag/"+i+"/info"})
e.default=i})),define("discourse/adapters/tag-notification",["exports","discourse/adapters/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({pathFor:(e,t,i)=>"/tag/"+i+"/notifications"})
e.default=i})),define("discourse/adapters/tag",["exports","discourse/adapters/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({pathFor:(e,t,i)=>i?`/tag/${i}`:"/tags"})
e.default=i})),define("discourse/adapters/topic-list",["exports","discourse/lib/preload-store","discourse/adapters/rest","discourse/lib/ajax"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=i.default.extend({find(e,i,r){let{filter:o,params:s}=r
return t.default.getAndRemove("topic_list",(()=>{let e=`/${o}.json`
if(s){const t=new URLSearchParams
for(const[e,n]of Object.entries(s))if(void 0!==n)if(Array.isArray(n))for(const i of n)t.append(`${e}[]`,i)
else t.set(e,n)
const i=t.toString()
i&&(e+=`?${i}`)}return(0,n.ajax)(e)})).then((e=>(e.filter=o,e.params=s,e)))}})
e.default=r})),define("discourse/adapters/topic",["exports","discourse/adapters/rest","discourse/lib/ajax"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({find(e,t,n){return n.similar?(0,i.ajax)("/topics/similar_to",{data:n.similar}):this._super(e,t,n)}})
e.default=n})),define("discourse/app",["exports","discourse/global-compat","require","@ember/application","discourse-common/resolver","discourse-common/config/environment","discourse/lib/ember-events"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.getAndClearUnhandledThemeErrors=function(){const e=a
return a=[],e}
const l=[]
let a=[]
function u(e){const t=e.match(/^discourse\/theme\-(\d+)\//)
if(t)return parseInt(t[1],10)}function c(e){let{themeId:t,error:i}=e
const n=new CustomEvent("discourse-error",{cancelable:!0,detail:{themeId:t,error:i}})
document.dispatchEvent(n)&&a.push(n)}function d(e){const t=(0,i.default)(e,null,null,!0)
if(!t)throw new Error(e+" must export an initializer.")
const n=t.default
if(!n)throw new Error(e+" must have a default export")
return n.name||(n.name=e.slice(e.lastIndexOf("/")+1)),n}function p(e,t){let i
try{i=d(e)}catch(r){if(!t||(0,o.isTesting)())throw r
return void c({themeId:t,error:r})}const n=i.initialize
return i.initialize=e=>{try{return n.call(i,e.__container__,e)}catch(r){if(!t||(0,o.isTesting)())throw r
c({themeId:t,error:r})}},i}var m=n.default.extend({modulePrefix:"discourse",rootElement:"#main",customEvents:{paste:"paste"},Resolver:(0,r.buildResolver)("discourse"),start(){document.querySelector("noscript")?.remove(),(0,s.normalizeEmberEventHandling)(this),Error.stackTraceLimit&&(Error.stackTraceLimit=1/0),function(e){let t=[],n=[],r=[],o=[]
for(let i of Object.keys(requirejs._eak_seen))if(i.startsWith("discourse/")&&!i.endsWith("-test"))if(i.startsWith("discourse/initializers/"))t.push(i)
else if(i.startsWith("discourse/instance-initializers/"))n.push(i)
else{const e=u(i);(void 0!==e||i.startsWith("discourse/plugins/"))&&(i.includes("/pre-initializers/")?r.push([i,e]):(i.includes("/initializers/")||i.includes("/api-initializers/"))&&o.push([i,e]))}for(let i of t)e.initializer(d(i))
for(let i of n)e.instanceInitializer(d(i))
for(let[i,l]of r)e.initializer(p(i,l))
for(let[i,l]of o)e.instanceInitializer(p(i,l))
const{withPluginApi:s}=(0,i.default)("discourse/lib/plugin-api")
for(let[i,a]of l.entries())e.instanceInitializer({name:`_discourse_plugin_${i}`,after:"inject-objects",initialize:()=>s(a.version,a.code)})}(this)},_registerPluginCode(e,t){l.push({version:e,code:t})},ready(){performance.mark("discourse-ready")
const e=new CustomEvent("discourse-ready")
document.dispatchEvent(e)}})
e.default=m})),define("discourse/component-managers/glimmer",["exports","@glimmer/component/-private/ember-component-manager"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("discourse/components/about-page-users",["exports","@ember/component","@ember/template-factory","@ember/object","discourse/lib/settings","discourse/helpers/user-avatar","discourse/lib/url"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"XIfN6mgO",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["usersTemplates"]]],null]],null],null,[[[1,"  "],[10,0],[15,"data-username",[30,1,["username"]]],[14,0,"user-info small"],[12],[1,"\\n    "],[10,0],[14,0,"user-image"],[12],[1,"\\n      "],[10,0],[14,0,"user-image-inner"],[12],[1,"\\n        "],[10,3],[15,6,[30,1,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[12],[1,"\\n          "],[1,[28,[35,2],[[30,1,["avatar"]]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"user-detail"],[12],[1,"\\n      "],[10,0],[14,0,"name-line"],[12],[1,"\\n        "],[10,1],[14,0,"username"],[12],[1,"\\n          "],[10,3],[15,6,[30,1,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[12],[1,"\\n            "],[41,[30,1,["prioritizeName"]],[[[1,[30,1,["name"]]]],[]],[[[1,[30,1,["username"]]]],[]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,1],[14,0,"name"],[12],[1,"\\n          "],[41,[30,1,["prioritizeName"]],[[[1,[30,1,["username"]]]],[]],[[[1,[30,1,["name"]]]],[]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[1]],null]],["userTemplate"],false,["each","-track-array","html-safe","if"]]',moduleName:"discourse/components/about-page-users.hbs",isStrictMode:!1})
var a=(0,t.setComponentTemplate)(l,t.default.extend({usersTemplates:(0,n.computed)("users.[]",(function(){return(this.users||[]).map((e=>{const{name:t,username:i}=e
return{name:t,username:i,userPath:(0,s.userPath)(i),avatar:(0,o.renderAvatar)(e,{imageSize:"large",siteSettings:this.siteSettings}),title:e.title||"",prioritizeName:(0,r.prioritizeNameInUx)(t)}}))}))}))
e.default=a})),define("discourse/components/activation-controls",["exports","@ember/component","@ember/template-factory","@ember/object/computed"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"zniwcV4v",block:'[[[41,[51,[30,0,["siteSettings","must_approve_users"]]],[[[1,"  "],[8,[39,1],null,[["@action","@label","@icon","@class"],[[30,0,["sendActivationEmail"]],"login.resend_title","envelope","btn-primary resend"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditEmail"]],[[[1,"  "],[8,[39,1],null,[["@action","@label","@icon","@class"],[[30,0,["editActivationEmail"]],"login.change_email","pencil-alt","edit-email"]],null],[1,"\\n"]],[]],null]],[],false,["unless","d-button","if"]]',moduleName:"discourse/components/activation-controls.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({classNames:"activation-controls",canEditEmail:(0,n.or)("siteSettings.enable_local_logins","siteSettings.email_editable")}))
e.default=o})),define("discourse/components/activation-email-form",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"BO1LVlcz",block:'[[[10,2],[12],[1,[28,[35,0],["login.provide_new_email"],null]],[13],[1,"\\n"],[8,[39,1],[[24,0,"activate-new-email"],[4,[38,2],["input",[30,0,["newEmailChanged"]]],null]],[["@value"],[[30,1]]],null]],["@email"],false,["i18n","input","on"]]',moduleName:"discourse/components/activation-email-form.hbs",isStrictMode:!1})
let l=(o=class extends n.default{newEmailChanged(e){this.args.updateNewEmail?.(e)}},a=o.prototype,u="newEmailChanged",c=[r.action],d=Object.getOwnPropertyDescriptor(o.prototype,"newEmailChanged"),p=o.prototype,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),o)
var a,u,c,d,p,m
e.default=l,(0,t.setComponentTemplate)(s,l)})),define("discourse/components/add-category-tag-classes",["exports","@ember/component","@ember/runloop"],(function(e,t,i){function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{constructor(){super(...arguments),n(this,"tagName",""),n(this,"currentClasses",new Set)}didReceiveAttrs(){(0,i.scheduleOnce)("afterRender",this,this._updateClasses)}willDestroyElement(){(0,i.scheduleOnce)("afterRender",this,this._removeClasses)}_updateClasses(){if(this.isDestroying||this.isDestroyed)return
const e=new Set,t=this.category?.fullSlug
t&&(e.add("category"),e.add(`category-${t}`)),this.tags?.forEach((t=>e.add(`tag-${t}`))),document.body.classList.add(...e)
const i=[...this.currentClasses].filter((t=>!e.has(t)))
document.body.classList.remove(...i),this.currentClasses=e}_removeClasses(){document.body.classList.remove(...this.currentClasses)}}e.default=r})),define("discourse/components/add-topic-status-classes",["exports","@ember/component","@ember/runloop"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({tagName:"",didInsertElement(){this._super(...arguments),this.refreshClass()},_updateClass(){if(this.isDestroying||this.isDestroyed)return
const e=document.getElementsByTagName("body")[0]
this._removeClass(),this.topic.invisible&&e.classList.add("topic-status-unlisted"),this.topic.pinned&&e.classList.add("topic-status-pinned"),this.topic.unpinned&&e.classList.add("topic-status-unpinned")},didReceiveAttrs(){this._super(...arguments),this.refreshClass()},refreshClass(){(0,i.scheduleOnce)("afterRender",this,this._updateClass)},_removeClass(){const e=new RegExp(/\btopic-status-\S+/,"g"),t=document.getElementsByTagName("body")[0]
t.className=t.className.replace(e,"")},willDestroyElement(){this._super(...arguments),this._removeClass()}})
e.default=n})),define("discourse/components/auth-token-dropdown",["exports","select-kit/components/dropdown-select-box","I18n","@ember/object"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({classNames:["auth-token-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,n.computed)((function(){return[{id:"notYou",icon:"user-times",name:i.default.t("user.auth_tokens.not_you"),description:""},{id:"logOut",icon:"sign-out-alt",name:i.default.t("user.log_out"),description:""}]})),actions:{onChange(e){switch(e){case"notYou":this.showToken(this.token)
break
case"logOut":this.revokeAuthToken(this.token)}}}})
e.default=r})),define("discourse/components/avatar-flair",["exports","discourse/components/mount-widget","discourse-common/utils/decorators"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((n=(0,i.observes)("flairName","flairUrl","flairBgColor","flairColor"),o=r={widget:"avatar-flair",_rerender(){this.queueRerender()},buildArgs(){return{flair_name:this.flairName,flair_url:this.flairUrl,flair_bg_color:this.flairBgColor,flair_color:this.flairColor}}},s="_rerender",l=[n],a=Object.getOwnPropertyDescriptor(r,"_rerender"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/components/avatar-uploader",["exports","@ember/component","@ember/template-factory","discourse/mixins/uppy-upload","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"nOTrMBwm",block:'[[[10,"label"],[14,0,"btn btn-default btn-icon-text"],[15,"disabled",[30,0,["uploading"]]],[15,"title",[28,[37,0],["user.change_avatar.upload_title"],null]],[12],[1,"\\n  "],[1,[28,[35,1],["far-image"],null]],[1,"\\n"],[41,[30,0,["uploading"]],[[[1,"    "],[1,[28,[35,0],["uploading"],null]],[1,"\\n    "],[1,[30,0,["uploadProgress"]]],[1,"%\\n"]],[]],[[[1,"    "],[1,[28,[35,0],["upload"],null]],[1,"\\n"]],[]]],[1,"  "],[10,"input"],[14,0,"hidden-upload-field"],[15,"disabled",[30,0,["uploading"]]],[14,"accept","image/*"],[14,4,"file"],[12],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["imageIsNotASquare"]],[[[1,"  "],[10,0],[14,0,"warning"],[12],[1,[28,[35,0],["user.change_avatar.image_is_not_a_square"],null]],[13],[1,"\\n"]],[]],null]],[],false,["i18n","d-icon","if"]]',moduleName:"discourse/components/avatar-uploader.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend(n.default,(o=(0,r.default)("user_id"),a=s={type:"avatar",tagName:"span",imageIsNotASquare:!1,validateUploadedFilesOptions:()=>({imagesOnly:!0}),uploadDone(e){this.setProperties({imageIsNotASquare:e.width!==e.height,uploadedAvatarTemplate:e.url,uploadedAvatarId:e.id}),this.done()},data:e=>({user_id:e})},u="data",c=[o],d=Object.getOwnPropertyDescriptor(s,"data"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/backup-codes",["exports","@ember/component","@ember/template-factory","discourse/lib/utilities","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s,l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"LNrUGsLS",block:'[[[10,0],[14,0,"wrapper"],[12],[1,"\\n  "],[10,"textarea"],[14,1,"backupCodes"],[14,0,"backup-codes-area"],[14,"rows","10"],[14,"readonly",""],[12],[1,[30,0,["formattedBackupCodes"]]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[8,[39,0],null,[["@action","@class","@icon","@aria-label","@title"],[[28,[37,1],[[30,0],"copyToClipboard"],null],"btn-default backup-codes-copy-btn","copy","user.second_factor_backup.copy_to_clipboard","user.second_factor_backup.copy_to_clipboard"]],null],[1,"\\n\\n    "],[10,3],[15,"download",[29,[[30,0,["siteTitleSlug"]],"-backup-codes.txt"]]],[14,0,"btn btn-default no-text btn-icon backup-codes-download-btn"],[15,"aria-label",[28,[37,2],["user.second_factor_backup.download_backup_codes"],null]],[15,"title",[28,[37,2],["user.second_factor_backup.download_backup_codes"],null]],[14,"rel","noopener noreferrer"],[14,"target","_blank"],[15,6,[29,["data:application/octet-stream;charset=utf-8;base64,",[30,0,["base64BackupCode"]]]]],[12],[1,"\\n      "],[1,[28,[35,3],["download"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["d-button","action","i18n","d-icon"]]',moduleName:"discourse/components/backup-codes.hbs",isStrictMode:!1})
var p=(0,t.setComponentTemplate)(d,t.default.extend((o=(0,r.default)("formattedBackupCodes"),s=(0,r.default)("backupCodes"),l=(0,r.default)(),a={classNames:["backup-codes"],backupCodes:null,click(e){"backupCodes"===e.target.id&&this._selectAllBackupCodes()},didRender(){this._super(...arguments)
const e=this.element.querySelector("#backupCodes")
e&&(e.style.height=e.scrollHeight)},base64BackupCode:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))},formattedBackupCodes:e=>e?e.join("\n").trim():null,siteTitleSlug(){const e=this.siteSettings.title,t=(0,n.toAsciiPrintable)(e,"discourse")
return(0,n.slugify)(t)},actions:{copyToClipboard(){this._selectAllBackupCodes(),this.copyBackupCode(document.execCommand("copy"))}},_selectAllBackupCodes(){const e=this.element.querySelector("#backupCodes")
e.focus(),e.setSelectionRange(0,this.formattedBackupCodes.length)}},c(a,"base64BackupCode",[o],(u=(u=Object.getOwnPropertyDescriptor(a,"base64BackupCode"))?u.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return u}}),a),c(a,"formattedBackupCodes",[s],Object.getOwnPropertyDescriptor(a,"formattedBackupCodes"),a),c(a,"siteTitleSlug",[l],Object.getOwnPropertyDescriptor(a,"siteTitleSlug"),a),a)))
e.default=p}))
define("discourse/components/badge-button",["exports","@ember/component","@ember/template-factory","@glimmer/component","discourse-common/lib/dom-from-string"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"3aNjZv4z",block:'[[[10,1],[15,0,[29,["user-badge\\n    ",[30,1,["badgeTypeClassName"]],"\\n    ",[52,[51,[30,1,["enabled"]]],"disabled"]]]],[15,"title",[30,0,["title"]]],[15,"data-badge-name",[30,1,["name"]]],[12],[1,"\\n  "],[1,[28,[35,1],[[30,1]],null]],[1,"\\n  "],[10,1],[14,0,"badge-display-name"],[12],[1,[30,1,["name"]]],[13],[1,"\\n  "],[18,2,null],[1,"\\n"],[13]],["@badge","&default"],false,["unless","icon-or-image","yield"]]',moduleName:"discourse/components/badge-button.hbs",isStrictMode:!1})
class s extends n.default{get title(){const e=this.args.badge?.description
if(e)return(0,r.default)(`<div>${e}</div>`)[0].innerText}}e.default=s,(0,t.setComponentTemplate)(o,s)})),define("discourse/components/badge-card",["exports","@ember/component","@ember/template-factory","discourse/lib/text","discourse-common/utils/decorators","@ember/utils"],(function(e,t,i,n,r,o){var s,l,a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"tIdHV/TQ",block:'[[[41,[30,0,["badge","has_badge"]],[[[1,"  "],[10,3],[15,6,[30,0,["url"]]],[14,0,"check-display status-checked"],[12],[1,[28,[35,1],["check"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canFavorite"]],[[[41,[30,0,["isFavorite"]],[[[1,"    "],[8,[39,2],null,[["@icon","@class","@action"],["star","favorite-btn",[30,0,["onFavoriteClick"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,2],null,[["@icon","@class","@action","@title","@disabled"],["far-star","favorite-btn",[30,0,["onFavoriteClick"]],[52,[30,0,["canFavoriteMoreBadges"]],"badges.favorite_max_not_reached","badges.favorite_max_reached"],[28,[37,3],[[30,0,["canFavoriteMoreBadges"]]],null]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[10,0],[14,0,"badge-contents"],[12],[1,"\\n  "],[8,[39,4],null,[["@name","@outletArgs"],["badge-contents-top",[28,[37,5],null,[["badge","url"],[[30,0,["badge"]],[30,0,["url"]]]]]]],null],[1,"\\n  "],[10,3],[15,6,[30,0,["url"]]],[15,0,[29,["badge-icon ",[30,0,["badge","badgeTypeClassName"]]]]],[12],[1,[28,[35,6],[[30,0,["badge"]]],null]],[13],[1,"\\n  "],[10,0],[14,0,"badge-info"],[12],[1,"\\n    "],[10,0],[14,0,"badge-info-item"],[12],[1,"\\n      "],[10,"h3"],[12],[10,3],[15,6,[30,0,["url"]]],[14,0,"badge-link"],[12],[1,[30,0,["badge","name"]]],[13],[13],[1,"\\n      "],[10,0],[14,0,"badge-summary"],[12],[1,[28,[35,7],[[30,0,["summary"]]],null]],[13],[1,"\\n\\n"],[41,[30,0,["displayCount"]],[[[1,"\\n        "],[8,[39,8],[[24,0,"badge-granted"]],[["@route","@model"],["badges.show",[30,0,["badge"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,9],[[30,0,["displayCount"]]],null]],[1,"\\n          "],[1,[28,[35,10],["badges.awarded"],null]],[1,"\\n        "]],[]]]]],[1,"\\n\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["if","d-icon","d-button","not","plugin-outlet","hash","icon-or-image","html-safe","link-to","number","i18n"]]',moduleName:"discourse/components/badge-card.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend((s=(0,r.default)("badge.url","filterUser","username"),l=(0,r.default)("count","badge.grant_count"),a=(0,r.default)("size","badge.long_description","badge.description"),u=(0,r.default)("badge.id"),d(c={size:"medium",classNameBindings:[":badge-card","size","badge.slug"],url:(e,t,i)=>t?`${e}?username=${i}`:e,displayCount:(e,t)=>null==e?t:e>1?e:void 0,summary:(e,t,i)=>"large"!==e||(0,o.isEmpty)(t)?(0,n.sanitize)(i):(0,n.emojiUnescape)((0,n.sanitize)(t)),showFavorite:e=>![1,2,3,4].includes(e)},"url",[s],Object.getOwnPropertyDescriptor(c,"url"),c),d(c,"displayCount",[l],Object.getOwnPropertyDescriptor(c,"displayCount"),c),d(c,"summary",[a],Object.getOwnPropertyDescriptor(c,"summary"),c),d(c,"showFavorite",[u],Object.getOwnPropertyDescriptor(c,"showFavorite"),c),c)))
e.default=m})),define("discourse/components/badge-selector",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","I18n","discourse-common/lib/raw-templates","discourse-common/lib/helpers"],(function(e,t,i,n,r,o,s){var l,a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"H35wL86O",block:'[[[10,"input"],[15,"placeholder",[30,0,["placeholder"]]],[14,3,"badges"],[14,0,"ember-text-field badge-names"],[14,4,"text"],[12],[13]],[],false,[]]',moduleName:"discourse/components/badge-selector.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend((l=(0,n.default)("placeholderKey"),a=(0,n.observes)("badgeNames"),u=(0,n.on)("didInsertElement"),d(c={placeholder:e=>e?r.default.t(e):"",_update(){"true"===this.canReceiveUpdates&&this._initializeAutocomplete({updateData:!0})},_initializeAutocomplete(e){let t
$(this.element.querySelector("input")).autocomplete({allowAny:!1,items:(0,s.makeArray)(this.badgeNames),single:this.single,updateData:!(!e||!e.updateData)&&e.updateData,template:(0,o.findRawTemplate)("badge-selector-autocomplete"),onChangeItems(e){t=e,this.set("badgeNames",e.join(","))},transformComplete:e=>e.name,dataSource(e){return this.badgeFinder(e).then((e=>t?e.filter((e=>!t.any((t=>t===e.name)))):e))}})}},"placeholder",[l],Object.getOwnPropertyDescriptor(c,"placeholder"),c),d(c,"_update",[a],Object.getOwnPropertyDescriptor(c,"_update"),c),d(c,"_initializeAutocomplete",[u],Object.getOwnPropertyDescriptor(c,"_initializeAutocomplete"),c),c)))
e.default=m})),define("discourse/components/badge-title",["exports","@ember/component","@ember/template-factory","@ember/object","I18n","discourse/lib/ajax","@ember/service"],(function(e,t,i,n,r,o,s){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"VyLGtWqJ",block:'[[[10,0],[14,0,"badge-title"],[12],[1,"\\n  "],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n    "],[10,"form"],[14,0,"form-horizontal"],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,"h3"],[12],[1,[28,[35,0],["badges.select_badge_for_title"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,1],null,[["@value","@nameProperty","@content","@onChange"],[[30,0,["_selectedUserBadgeId"]],"badge.name",[30,0,["selectableUserBadges"]],[28,[37,2],[[30,0],[28,[37,3],[[30,0,["_selectedUserBadgeId"]]],null]],null]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,4],null,[["@class","@action","@disabled","@label"],["btn-primary",[28,[37,2],[[30,0],"saveBadgeTitle"],null],[30,0,["_isSaving"]],[52,[30,0,["_isSaving"]],"saving","save"]]],null],[1,"\\n"],[41,[30,0,["_isSaved"]],[[[1,"            "],[10,1],[12],[1,[28,[35,0],["saved"],null]],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","combo-box","action","mut","d-button","if"]]',moduleName:"discourse/components/badge-title.hbs",isStrictMode:!1})
var u,c,d,p,m,h,f=(0,t.setComponentTemplate)(a,t.default.extend((l={dialog:(0,s.inject)(),tagName:"",selectableUserBadges:null,_selectedUserBadgeId:null,_isSaved:!1,_isSaving:!1,init(){this._super(...arguments)
const e=this._findBadgeByTitle(this.selectableUserBadges,this.currentUser.title)
this.set("_selectedUserBadgeId",e?.id||0)},saveBadgeTitle(){this.setProperties({_isSaved:!1,_isSaving:!0})
const e=this._findBadgeById(this.selectableUserBadges,this._selectedUserBadgeId)
return(0,o.ajax)(`${this.currentUser.path}/preferences/badge_title`,{type:"PUT",data:{user_badge_id:e?.id||0}}).then((()=>{this.set("_isSaved",!0),this.currentUser.set("title",e?.badge?.name||"")}),(()=>{this.dialog.alert(r.default.t("generic_error"))})).finally((()=>this.set("_isSaving",!1)))},_findBadgeById:(e,t)=>(e||[]).findBy("id",t),_findBadgeByTitle:(e,t)=>(e||[]).findBy("badge.name",t)},u=l,c="saveBadgeTitle",d=[n.action],p=Object.getOwnPropertyDescriptor(l,"saveBadgeTitle"),m=l,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),l)))
e.default=f})),define("discourse/components/basic-topic-list",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"tx/FLaaU",block:'[[[8,[39,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["topics"]],[[[1,"    "],[8,[39,2],null,[["@showPosters","@hideCategory","@topics","@expandExcerpts","@bulkSelectEnabled","@bulkSelectAction","@canBulkSelect","@selected","@tagsForUser","@onScroll","@scrollOnLoad","@toggleBulkSelect","@updateAutoAddTopicsToBulkSelect"],[[30,0,["showPosters"]],[30,0,["hideCategory"]],[30,0,["topics"]],[30,0,["expandExcerpts"]],[30,0,["bulkSelectEnabled"]],[30,0,["bulkSelectAction"]],[30,0,["canBulkSelect"]],[30,0,["selected"]],[30,0,["tagsForUser"]],[30,0,["onScroll"]],[30,0,["scrollOnLoad"]],[30,0,["toggleBulkSelect"]],[30,0,["updateAutoAddTopicsToBulkSelect"]]]],null],[1,"\\n"]],[]],[[[41,[51,[30,0,["loadingMore"]]],[[[1,"      "],[10,0],[14,0,"alert alert-info"],[12],[1,"\\n        "],[1,[28,[35,4],["choose_topic.none_found"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]]]],[]]]]]],[],false,["conditional-loading-spinner","if","topic-list","unless","i18n"]]',moduleName:"discourse/components/basic-topic-list.hbs",isStrictMode:!1})
var d=(0,t.setComponentTemplate)(c,t.default.extend((o=(0,r.default)("topicList.loaded"),s=(0,r.observes)("topicList.[]"),l=(0,r.default)("topics"),a={loadingMore:(0,n.alias)("topicList.loadingMore"),loading:(0,n.not)("loaded"),loaded(){let e=this.topicList
return!e||e.get("loaded")},_topicListChanged(){this._initFromTopicList(this.topicList)},_initFromTopicList(e){null!==e&&(this.set("topics",e.get("topics")),this.rerender())},init(){this._super(...arguments)
const e=this.topicList
e&&this._initFromTopicList(e)},didInsertElement(){this._super(...arguments),this.topics.forEach((e=>{void 0!==e.unread_by_group_member&&this.messageBus.subscribe(`/private-messages/unread-indicator/${e.id}`,this.onMessage)}))},willDestroyElement(){this._super(...arguments),this.messageBus.unsubscribe("/private-messages/unread-indicator/*",this.onMessage)},onMessage(e){document.querySelector(`.indicator-topic-${e.topic_id}`).classList.toggle("read",!e.show_indicator)},showUnreadIndicator:e=>e.some((e=>void 0!==e.unread_by_group_member)),click(e){if(!this.site.mobileView)return
let t=$(e.target)
if(t.closest(".posts-map").length){const e=t.closest("tr").attr("data-topic-id")
if(e){if("A"!==t.prop("tagName")){let e=t.find("a")
if(e.length)t=e
else{if(e=t.closest("a"),!e.length)return!1
t=e}}const i=this.topics.findBy("id",parseInt(e,10))
this.appEvents.trigger("topic-entrance:show",{topic:i,position:t.offset()})}return!1}}},u(a,"loaded",[o],Object.getOwnPropertyDescriptor(a,"loaded"),a),u(a,"_topicListChanged",[s],Object.getOwnPropertyDescriptor(a,"_topicListChanged"),a),u(a,"onMessage",[r.bind],Object.getOwnPropertyDescriptor(a,"onMessage"),a),u(a,"showUnreadIndicator",[l],Object.getOwnPropertyDescriptor(a,"showUnreadIndicator"),a),a)))
e.default=d})),define("discourse/components/bookmark-actions-dropdown",["exports","@ember/object","discourse-common/utils/decorators","select-kit/components/dropdown-select-box","I18n"],(function(e,t,i,n,r){var o
function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l="remove",a="edit",u="clear_reminder"
var c=n.default.extend((s(o={classNames:["bookmark-actions-dropdown"],pluginApiIdentifiers:["bookmark-actions-dropdown"],selectKitOptions:{icon:null,translatedNone:"...",showFullTitle:!0},content(e){const t=[]
return t.push({id:l,icon:"trash-alt",name:r.default.t("post.bookmarks.actions.delete_bookmark.name"),description:r.default.t("post.bookmarks.actions.delete_bookmark.description")}),t.push({id:a,icon:"pencil-alt",name:r.default.t("post.bookmarks.actions.edit_bookmark.name"),description:r.default.t("post.bookmarks.actions.edit_bookmark.description")}),e.reminder_at&&t.push({id:u,icon:"history",name:r.default.t("post.bookmarks.actions.clear_bookmark_reminder.name"),description:r.default.t("post.bookmarks.actions.clear_bookmark_reminder.description")}),t.push({id:"pin",icon:"thumbtack",name:r.default.t(`post.bookmarks.actions.${e.pinAction()}_bookmark.name`),description:r.default.t(`post.bookmarks.actions.${e.pinAction()}_bookmark.description`)}),t},onChange(e){e===l?this.removeBookmark(this.bookmark):e===a?this.editBookmark(this.bookmark):e===u?this.clearBookmarkReminder(this.bookmark):"pin"===e&&this.togglePinBookmark(this.bookmark)}},"content",[(0,i.default)("bookmark")],Object.getOwnPropertyDescriptor(o,"content"),o),s(o,"onChange",[t.action],Object.getOwnPropertyDescriptor(o,"onChange"),o),o))
e.default=c})),define("discourse/components/bookmark-icon",["exports","@ember/component","@ember/template-factory","@ember/utils","I18n","discourse/lib/bookmark","@ember/object","discourse/models/bookmark"],(function(e,t,i,n,r,o,s,l){var a,u,c,d
function p(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,i.createTemplateFactory)({id:"d+6KRt2O",block:'[[[1,[28,[35,0],[[30,0,["icon"]]],[["translatedTitle","class"],[[30,0,["title"]],[30,0,["cssClasses"]]]]]]],[],false,["d-icon"]]',moduleName:"discourse/components/bookmark-icon.hbs",isStrictMode:!1})
let f=(a=(0,s.computed)("bookmark.reminder_at"),u=(0,s.computed)("bookmark"),c=(0,s.computed)("bookmark.name","bookmark.reminder_at"),d=class extends t.default{constructor(){super(...arguments),p(this,"tagName",""),p(this,"bookmark",null)}get icon(){return this.bookmark?(0,n.isEmpty)(this.bookmark.reminder_at)?l.NO_REMINDER_ICON:l.WITH_REMINDER_ICON:l.NO_REMINDER_ICON}get cssClasses(){return this.bookmark?"bookmark-icon bookmark-icon__bookmarked":"bookmark-icon"}get title(){if(!this.bookmark)return r.default.t("bookmarks.create")
if(!(0,n.isEmpty)(this.bookmark.reminder_at)){const e=(0,o.formattedReminderTime)(this.bookmark.reminder_at,this.currentUser.user_option.timezone)
return r.default.t("bookmarks.created_with_reminder_generic",{date:e,name:this.bookmark.name})}return r.default.t("bookmarks.created_generic",{name:this.bookmark.name})}},m(d.prototype,"icon",[a],Object.getOwnPropertyDescriptor(d.prototype,"icon"),d.prototype),m(d.prototype,"cssClasses",[u],Object.getOwnPropertyDescriptor(d.prototype,"cssClasses"),d.prototype),m(d.prototype,"title",[c],Object.getOwnPropertyDescriptor(d.prototype,"title"),d.prototype),d)
e.default=f,(0,t.setComponentTemplate)(h,f)})),define("discourse/components/bookmark-list",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/runloop","discourse/controllers/bookmark","discourse/lib/ajax","discourse/lib/click-track","discourse/mixins/scrolling","I18n","rsvp","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p
function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,i.createTemplateFactory)({id:"hGlxk1j1",block:'[[[8,[39,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@selector","@action"],[".bookmark-list .bookmark-list-item",[30,0,["loadMore"]]]],[["default"],[[[[1,"\\n    "],[10,"table"],[14,0,"topic-list bookmark-list"],[12],[1,"\\n      "],[10,"thead"],[14,0,"topic-list-header"],[12],[1,"\\n"],[41,[51,[30,0,["site","mobileView"]]],[[[1,"          "],[10,"th"],[14,0,"topic-list-data"],[12],[1,[28,[35,3],["topic.title"],null]],[13],[1,"\\n          "],[10,"th"],[14,0,"topic-list-data"],[12],[1," "],[13],[1,"\\n          "],[10,"th"],[14,0,"post-metadata topic-list-data"],[12],[1,[28,[35,3],["post.bookmarks.updated"],null]],[13],[1,"\\n          "],[10,"th"],[14,0,"post-metadata topic-list-data"],[12],[1,[28,[35,3],["activity"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1," "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["content"]]],null]],null],null,[[[1,"          "],[10,"tr"],[14,0,"topic-list-item bookmark-list-item"],[12],[1,"\\n            "],[10,"th"],[14,"scope","row"],[14,0,"main-link topic-list-data"],[12],[1,"\\n              "],[10,1],[14,0,"link-top-line"],[12],[1,"\\n                "],[10,0],[14,0,"bookmark-metadata"],[12],[1,"\\n"],[41,[30,1,["reminder_at"]],[[[1,"                    "],[10,1],[15,0,[29,["bookmark-metadata-item bookmark-reminder\\n                        ",[52,[30,1,["reminderAtExpired"]],"bookmark-expired-reminder"]]]],[12],[1,"\\n                      "],[1,[28,[35,7],["far-clock"],null]],[1,[30,1,["formattedReminder"]]],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[41,[30,1,["name"]],[[[1,"                    "],[10,1],[14,0,"bookmark-metadata-item"],[12],[1,"\\n                      "],[1,[28,[35,7],["info-circle"],null]],[10,1],[12],[1,[30,1,["name"]]],[13],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n                "],[10,0],[14,0,"bookmark-status-with-link"],[12],[1,"\\n"],[41,[30,1,["pinned"]],[[[1,"                    "],[1,[28,[35,7],["thumbtack"],[["class"],["bookmark-pinned"]]]],[1,"\\n"]],[]],null],[41,[30,1,["bookmarkableTopicAlike"]],[[[1,"                    "],[8,[39,8],null,[["@topic"],[[30,1,["topicStatus"]]]],null],[1,"\\n                    "],[1,[28,[35,9],[[30,1,["topicForList"]]],null]],[1,"\\n"]],[]],[[[1,"                    "],[10,3],[15,6,[30,1,["bookmarkable_url"]]],[14,"role","heading"],[14,"aria-level","2"],[14,0,"title"],[14,"data-topic-id","${topic.id}"],[12],[1,"\\n                      "],[1,[30,1,["fancy_title"]]],[1,"\\n                    "],[13],[1,"\\n"]],[]]],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n"],[41,[30,1,["bookmarkableTopicAlike"]],[[[1,"                "],[10,0],[14,0,"link-bottom-line"],[12],[1,"\\n                  "],[1,[28,[35,10],[[30,1,["category"]]],null]],[1,"\\n                  "],[1,[28,[35,11],[[30,1]],[["mode","tagsForUser"],["list",[30,0,["tagsForUser"]]]]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[41,[28,[37,12],[[30,0,["site","mobileView"]],[30,1,["excerpt"]],[30,1,["user","avatar_template"]]],null],[[[1,"                "],[10,3],[15,6,[30,1,["bookmarkableUser","path"]]],[15,"data-user-card",[30,1,["user","username"]]],[14,0,"avatar"],[12],[1,"\\n                  "],[1,[28,[35,13],[[30,1,["bookmarkableUser"]]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["avatar_template","username","name","small"]]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,"              "],[11,2],[24,0,"post-excerpt"],[4,[38,14],["click",[30,0,["screenExcerptForExternalLink"]]],null],[12],[1,[28,[35,15],[[30,1,["excerpt"]]],null]],[13],[1,"\\n            "],[13],[1,"\\n"],[41,[51,[30,0,["site","mobileView"]]],[[[1,"              "],[10,"td"],[14,0,"topic-list-data"],[12],[1,"\\n"],[41,[30,1,["user","avatar_template"]],[[[1,"                  "],[10,3],[15,6,[30,1,["user","path"]]],[15,"data-user-card",[30,1,["user","username"]]],[14,0,"avatar"],[12],[1,"\\n                    "],[1,[28,[35,13],[[30,1,["user"]]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["avatar_template","username","name","small"]]]],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n              "],[10,"td"],[14,0,"post-metadata topic-list-data"],[12],[1,[28,[35,16],[[30,1,["updated_at"]]],[["format"],["tiny"]]]],[13],[1,"\\n              "],[1,[28,[35,17],["list/activity-column"],[["topic","class","tagName"],[[30,1],"num post-metadata","td"]]]],[1,"\\n"]],[]],null],[1,"            "],[10,"td"],[14,0,"topic-list-data"],[12],[1,"\\n              "],[8,[39,18],null,[["@bookmark","@removeBookmark","@editBookmark","@clearBookmarkReminder","@togglePinBookmark"],[[30,1],[28,[37,19],[[30,0],"removeBookmark"],null],[28,[37,19],[[30,0],"editBookmark"],null],[28,[37,19],[[30,0],"clearBookmarkReminder"],null],[28,[37,19],[[30,0],"togglePinBookmark"],null]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,0],null,[["@condition"],[[30,0,["loadingMore"]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]]],["bookmark"],false,["conditional-loading-spinner","load-more","unless","i18n","each","-track-array","if","d-icon","topic-status","topic-link","category-link","discourse-tags","and","avatar","on","html-safe","format-date","raw","bookmark-actions-dropdown","action"]]',moduleName:"discourse/components/bookmark-list.hbs",isStrictMode:!1})
var f=(0,t.setComponentTemplate)(h,t.default.extend(a.default,(p={dialog:(0,d.inject)(),classNames:["bookmark-list-wrapper"],didInsertElement(){this._super(...arguments),this.bindScrolling(),this.scrollToLastPosition()},willDestroyElement(){this._super(...arguments),this.unbindScrolling()},scrollToLastPosition(){const e=this.session.bookmarkListScrollPosition
e>=0&&(0,r.schedule)("afterRender",(()=>{!this.element||this.isDestroying||this.isDestroyed||(0,r.next)((()=>window.scrollTo(0,e)))}))},scrolled(){this._super(...arguments),this.session.set("bookmarkListScrollPosition",window.scrollY)},removeBookmark(e){return new c.Promise(((t,i)=>{const n=()=>{e.destroy().then((()=>{this.appEvents.trigger("bookmarks:changed",null,e.attachedTo()),this._removeBookmarkFromList(e),t(!0)})).catch((e=>{i(e)}))}
if(!e.reminder_at)return n()
this.dialog.deleteConfirm({message:u.default.t("bookmarks.confirm_delete"),didConfirm:()=>n(),didCancel:()=>t(!1)})}))},screenExcerptForExternalLink(e){"A"===e?.target?.tagName&&(0,l.shouldOpenInNewTab)(e.target.href)&&(0,l.openLinkInNewTab)(e,e.target)},editBookmark(e){(0,o.openBookmarkModal)(e,{onAfterSave:t=>{this.appEvents.trigger("bookmarks:changed",t,e.attachedTo()),this.reload()},onAfterDelete:()=>{this.reload()}})},clearBookmarkReminder:e=>(0,s.ajax)(`/bookmarks/${e.id}`,{type:"PUT",data:{reminder_at:null}}).then((()=>{e.set("reminder_at",null)})),togglePinBookmark(e){e.togglePin().then(this.reload)},_removeBookmarkFromList(e){this.content.removeObject(e)}},m(p,"removeBookmark",[n.action],Object.getOwnPropertyDescriptor(p,"removeBookmark"),p),m(p,"screenExcerptForExternalLink",[n.action],Object.getOwnPropertyDescriptor(p,"screenExcerptForExternalLink"),p),m(p,"editBookmark",[n.action],Object.getOwnPropertyDescriptor(p,"editBookmark"),p),m(p,"clearBookmarkReminder",[n.action],Object.getOwnPropertyDescriptor(p,"clearBookmarkReminder"),p),m(p,"togglePinBookmark",[n.action],Object.getOwnPropertyDescriptor(p,"togglePinBookmark"),p),p)))
e.default=f})),define("discourse/components/bookmark",["exports","@ember/component","@ember/template-factory","discourse/lib/time-utils","discourse/models/bookmark","I18n","discourse/lib/keyboard-shortcuts","@discourse/itsatrap","rsvp","discourse/lib/time-shortcut","@ember/object","discourse/lib/ajax","discourse-common/utils/decorators","discourse/lib/bookmark","@ember/object/computed","discourse/lib/ajax-error","discourse-common/lib/later","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b){var y,_,v,w,k,x,P,O,T
function S(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const j=(0,i.createTemplateFactory)({id:"t79huieq",block:'[[[8,[39,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"control-group bookmark-name-wrap"],[12],[1,"\\n    "],[8,[39,2],[[24,1,"bookmark-name"],[24,3,"bookmark-name"],[24,0,"bookmark-name"],[16,"placeholder",[28,[37,3],["post.bookmarks.name_placeholder"],null]],[24,"maxlength","100"],[16,"aria-label",[28,[37,3],["post.bookmarks.name_input_label"],null]]],[["@value","@enter"],[[30,0,["model","name"]],[28,[37,4],[[30,0],"saveAndClose"],null]]],null],[1,"\\n    "],[8,[39,5],null,[["@icon","@action","@class","@ariaLabel","@title"],["cog",[28,[37,4],[[30,0],"toggleShowOptions"],null],"bookmark-options-button","post.bookmarks.options","post.bookmarks.options"]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["showOptions"]],[[[1,"    "],[10,0],[14,0,"bookmark-options-panel"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[14,"for","bookmark_auto_delete_preference"],[12],[1,[28,[35,3],["bookmarks.auto_delete_preference.label"],null]],[13],[1,"\\n      "],[8,[39,6],null,[["@content","@value","@class","@onChange"],[[30,0,["autoDeletePreferences"]],[30,0,["autoDeletePreference"]],"bookmark-option-selector",[28,[37,4],[[30,0],[28,[37,7],[[30,0,["autoDeletePreference"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showExistingReminderAt"]],[[[1,"    "],[10,0],[14,0,"alert alert-info existing-reminder-at-alert"],[12],[1,"\\n      "],[1,[28,[35,8],["far-clock"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,3],["bookmarks.reminders.existing_reminder"],[["at_date_time"],[[30,0,["existingReminderAtFormatted"]]]]]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n      "],[1,[28,[35,3],["post.bookmarks.set_reminder"],null]],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["userHasTimezoneSet"]],[[[1,"      "],[8,[39,9],null,[["@timeShortcuts","@prefilledDatetime","@onTimeSelected","@hiddenOptions","@customLabels","@_itsatrap"],[[30,0,["timeOptions"]],[30,0,["prefilledDatetime"]],[28,[37,4],[[30,0],"onTimeSelected"],null],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["customTimeShortcutLabels"]],[30,0,["_itsatrap"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,10],[[28,[37,3],["bookmarks.no_timezone"],[["basePath"],[[28,[37,11],null,null]]]]],null]],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"modal-footer control-group"],[12],[1,"\\n    "],[8,[39,5],null,[["@id","@label","@class","@action"],["save-bookmark","bookmarks.save","btn-primary",[28,[37,4],[[30,0],"saveAndClose"],null]]],null],[1,"\\n    "],[8,[39,12],null,[["@close"],[[28,[37,4],[[30,0],"closeWithoutSavingBookmark"],null]]],null],[1,"\\n"],[41,[30,0,["showDelete"]],[[[1,"      "],[8,[39,5],null,[["@id","@icon","@class","@action","@ariaLabel","@title"],["delete-bookmark","trash-alt","delete-bookmark btn-danger",[28,[37,4],[[30,0],"delete"],null],"post.bookmarks.actions.delete_bookmark.name","post.bookmarks.actions.delete_bookmark.name"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]]]]]],[],false,["conditional-loading-spinner","if","input","i18n","action","d-button","combo-box","mut","d-icon","time-shortcut-picker","html-safe","base-path","d-modal-cancel"]]',moduleName:"discourse/components/bookmark.hbs",isStrictMode:!1}),C={enter:{handler:"saveAndClose"},"d d":{handler:"delete"}}
var z=(0,t.setComponentTemplate)(j,t.default.extend((y=(0,p.default)("model.reminderAt"),_=(0,p.default)("postDetectedLocalDate","postDetectedLocalTime"),v=(0,p.default)(),w=(0,p.default)("userTimezone"),k=(0,p.default)("existingBookmarkHasReminder"),x=(0,p.default)("editingExistingBookmark","existingBookmarkHasReminder"),P=(0,p.default)("model.reminderAt"),O={dialog:(0,b.inject)(),tagName:"",errorMessage:null,selectedReminderType:null,_closeWithoutSaving:null,_savingBookmarkManually:null,_saving:null,_deleting:null,_itsatrap:null,postDetectedLocalDate:null,postDetectedLocalTime:null,postDetectedLocalTimezone:null,prefilledDatetime:null,userTimezone:null,showOptions:null,model:null,afterSave:null,init(){this._super(...arguments),this.setProperties({errorMessage:null,selectedReminderType:u.TIME_SHORTCUT_TYPES.NONE,_closeWithoutSaving:!1,_savingBookmarkManually:!1,_saving:!1,_deleting:!1,postDetectedLocalDate:null,postDetectedLocalTime:null,postDetectedLocalTimezone:null,prefilledDatetime:null,userTimezone:this.currentUser.user_option.timezone,showOptions:!1,_itsatrap:new l.default,autoDeletePreference:this.model.autoDeletePreference??r.AUTO_DELETE_PREFERENCES.CLEAR_REMINDER}),this.registerOnCloseHandler(this._onModalClose),this._bindKeyboardShortcuts(),this.editingExistingBookmark&&this._initializeExistingBookmarkData(),this._loadPostLocalDates()},didInsertElement(){this._super(...arguments),(0,g.default)((()=>{this.site.isMobileDevice&&document.getElementById("bookmark-name").blur()})),this.model.id?this.set("showOptions",!0):document.getElementById("tap_tile_none").classList.add("active")},_initializeExistingBookmarkData(){if(this.existingBookmarkHasReminder){this.set("prefilledDatetime",this.model.reminderAt)
let e=(0,n.parseCustomDatetime)(this.prefilledDatetime,null,this.userTimezone)
this.set("selectedDatetime",e)}},_bindKeyboardShortcuts(){s.default.pause(),Object.keys(C).forEach((e=>{this._itsatrap.bind(e,(()=>{let t=C[e]
return this.send(t.handler),!1}))}))},_loadPostLocalDates(){if("Post"!==this.model.bookmarkableType)return
let e,t=document.querySelector(`[data-post-id="${this.model.bookmarkableId}"]`)
t&&(e=t.querySelector(".discourse-local-date")),e&&this.setProperties({postDetectedLocalDate:e.dataset.date,postDetectedLocalTime:e.dataset.time,postDetectedLocalTimezone:e.dataset.timezone})},_saveBookmark(){let e
this.selectedReminderType&&(e=this.selectedDatetime)
const t=e?e.toISOString():null
if(this.selectedReminderType===u.TIME_SHORTCUT_TYPES.CUSTOM&&!e)return a.Promise.reject(o.default.t("bookmarks.invalid_custom_datetime"))
const i={reminder_at:t,name:this.model.name,id:this.model.id,auto_delete_preference:this.autoDeletePreference}
return i.bookmarkable_id=this.model.bookmarkableId,i.bookmarkable_type=this.model.bookmarkableType,this.editingExistingBookmark?(0,d.ajax)(`/bookmarks/${this.model.id}`,{type:"PUT",data:i}).then((e=>{this._executeAfterSave(e,t)})):(0,d.ajax)("/bookmarks",{type:"POST",data:i}).then((e=>{this._executeAfterSave(e,t)}))},_executeAfterSave(e,t){if(!this.afterSave)return
const i={reminder_at:t,auto_delete_preference:this.autoDeletePreference,id:this.model.id||e.id,name:this.model.name}
i.bookmarkable_id=this.model.bookmarkableId,i.bookmarkable_type=this.model.bookmarkableType,this.afterSave(i)},_deleteBookmark(){return(0,d.ajax)("/bookmarks/"+this.model.id,{type:"DELETE"}).then((e=>{this.afterDelete&&this.afterDelete(e.topic_bookmarked,this.model.id)}))},_postLocalDate(){let e=(0,n.parseCustomDatetime)(this.postDetectedLocalDate,this.postDetectedLocalTime,this.userTimezone,this.postDetectedLocalTimezone)
return this.postDetectedLocalTime?e:(0,n.startOfDay)(e)},_handleSaveError(e){this._savingBookmarkManually=!1,"string"==typeof e?this.dialog.alert(e):(0,f.popupAjaxError)(e)},_onModalClose(e){this._closeWithoutSaving=this._closeWithoutSaving||e.initiatedByCloseButton||e.initiatedByESC,this._closeWithoutSaving||this._savingBookmarkManually||this._saveBookmark().catch((e=>this._handleSaveError(e))),this.onCloseWithoutSaving&&this._closeWithoutSaving&&this.onCloseWithoutSaving()},willDestroyElement(){this._super(...arguments),this._itsatrap?.destroy(),this.set("_itsatrap",null),s.default.unpause()},showExistingReminderAt:e=>e&&Date.parse(e)>(new Date).getTime(),showDelete:(0,h.notEmpty)("model.id"),userHasTimezoneSet:(0,h.notEmpty)("userTimezone"),editingExistingBookmark:(0,h.and)("model","model.id"),existingBookmarkHasReminder:(0,h.and)("model","model.id","model.reminderAt"),showPostLocalDate(e,t){if(!t||!e)return
return!(this._postLocalDate()<(0,n.now)(this.userTimezone))||void 0},autoDeletePreferences:()=>Object.keys(r.AUTO_DELETE_PREFERENCES).map((e=>({id:r.AUTO_DELETE_PREFERENCES[e],name:o.default.t(`bookmarks.auto_delete_preference.${e.toLowerCase()}`)}))),timeOptions(e){const t=(0,u.defaultTimeShortcuts)(e)
return this.showPostLocalDate&&t.push({icon:"globe-americas",id:u.TIME_SHORTCUT_TYPES.POST_LOCAL_DATE,label:"time_shortcut.post_local_date",time:this._postLocalDate(),timeFormatKey:"dates.long_no_year",hidden:!1}),t},customTimeShortcutLabels(e){const t={}
return e&&(t[u.TIME_SHORTCUT_TYPES.NONE]="bookmarks.remove_reminder_keep_bookmark"),t},hiddenTimeShortcutOptions:(e,t)=>e&&!t?[u.TIME_SHORTCUT_TYPES.NONE]:[],existingReminderAtFormatted(e){return(0,m.formattedReminderTime)(e,this.userTimezone)},saveAndClose(){if(!this._saving&&!this._deleting)return this._saving=!0,this._savingBookmarkManually=!0,this._saveBookmark().then((()=>this.closeModal())).catch((e=>this._handleSaveError(e))).finally((()=>this._saving=!1))},toggleShowOptions(){this.toggleProperty("showOptions")},delete(){if(!this.model.id)return
this._deleting=!0
let e=()=>{this._closeWithoutSaving=!0,this._deleteBookmark().then((()=>{this._deleting=!1,this.closeModal()})).catch((e=>this._handleSaveError(e)))}
this.existingBookmarkHasReminder?this.dialog.deleteConfirm({message:o.default.t("bookmarks.confirm_delete"),didConfirm:()=>e()}):e()},closeWithoutSavingBookmark(){this._closeWithoutSaving=!0,this.closeModal()},onTimeSelected(e,t){if(this.setProperties({selectedReminderType:e,selectedDatetime:t}),![u.TIME_SHORTCUT_TYPES.CUSTOM,u.TIME_SHORTCUT_TYPES.RELATIVE].includes(e))return this.saveAndClose()},selectPostLocalDate(e){return this.setProperties({selectedReminderType:this.reminderTypes.POST_LOCAL_DATE,postLocalDate:e}),this.saveAndClose()}},S(O,"_onModalClose",[p.bind],Object.getOwnPropertyDescriptor(O,"_onModalClose"),O),S(O,"showExistingReminderAt",[y],Object.getOwnPropertyDescriptor(O,"showExistingReminderAt"),O),S(O,"showPostLocalDate",[_],Object.getOwnPropertyDescriptor(O,"showPostLocalDate"),O),S(O,"autoDeletePreferences",[v],(T=(T=Object.getOwnPropertyDescriptor(O,"autoDeletePreferences"))?T.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return T}}),O),S(O,"timeOptions",[w],Object.getOwnPropertyDescriptor(O,"timeOptions"),O),S(O,"customTimeShortcutLabels",[k],Object.getOwnPropertyDescriptor(O,"customTimeShortcutLabels"),O),S(O,"hiddenTimeShortcutOptions",[x],Object.getOwnPropertyDescriptor(O,"hiddenTimeShortcutOptions"),O),S(O,"existingReminderAtFormatted",[P],Object.getOwnPropertyDescriptor(O,"existingReminderAtFormatted"),O),S(O,"saveAndClose",[c.action],Object.getOwnPropertyDescriptor(O,"saveAndClose"),O),S(O,"toggleShowOptions",[c.action],Object.getOwnPropertyDescriptor(O,"toggleShowOptions"),O),S(O,"delete",[c.action],Object.getOwnPropertyDescriptor(O,"delete"),O),S(O,"closeWithoutSavingBookmark",[c.action],Object.getOwnPropertyDescriptor(O,"closeWithoutSavingBookmark"),O),S(O,"onTimeSelected",[c.action],Object.getOwnPropertyDescriptor(O,"onTimeSelected"),O),S(O,"selectPostLocalDate",[c.action],Object.getOwnPropertyDescriptor(O,"selectPostLocalDate"),O),O)))
e.default=z})),define("discourse/components/bootstrap-mode-notice",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/service","@glimmer/component","@glimmer/tracking","discourse/lib/url"],(function(e,t,i,n,r,o,s,l){var a,u,c,d
function p(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,i.createTemplateFactory)({id:"p1BGjybx",block:'[[[8,[39,0],[[24,0,"btn-default bootstrap-mode"],[4,[38,1],[[30,0,["setupUserTip"]]],null]],[["@label","@action"],["bootstrap_mode",[30,0,["routeToAdminGuide"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["showUserTip"]],[[[1,"    "],[8,[39,3],null,[["@id","@buttonLabel","@buttonIcon","@onDismiss"],["admin_guide","user_tips.admin_guide.button","link",[30,0,["routeToAdminGuide"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,4],null,[["@theme","@arrow"],["user-tip",true]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"user-tip__container"],[12],[1,"\\n        "],[10,0],[14,0,"user-tip__title"],[12],[1,"\\n          "],[1,[28,[35,5],["user_tips.admin_guide.title"],null]],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"user-tip__content"],[12],[1,"\\n          "],[1,[28,[35,5],["user_tips.admin_guide.content"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]]]],[]]]]]],[],false,["d-button","did-insert","if","user-tip","d-tooltip","i18n"]]',moduleName:"discourse/components/bootstrap-mode-notice.hbs",isStrictMode:!1})
let f=(a=class extends o.default{constructor(){super(...arguments),p(this,"currentUser",u,this),p(this,"siteSettings",c,this),p(this,"showUserTip",d,this)}setupUserTip(){this.showUserTip=this.currentUser?.canSeeUserTip("admin_guide")}routeToAdminGuide(){this.showUserTip=!1,l.default.routeTo(`/t/-/${this.siteSettings.admin_quick_start_topic_id}`)}},u=m(a.prototype,"currentUser",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(a.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(a.prototype,"showUserTip",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m(a.prototype,"setupUserTip",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"setupUserTip"),a.prototype),m(a.prototype,"routeToAdminGuide",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"routeToAdminGuide"),a.prototype),a)
e.default=f,(0,t.setComponentTemplate)(h,f)})),define("discourse/components/bread-crumbs",["exports","@ember/component","@ember/template-factory","discourse-common/lib/deprecated","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r,o){var s,l,a,u,c,d,p,m,h,f
function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=(0,i.createTemplateFactory)({id:"ur1UC+sG",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["bread-crumbs-left","li",[28,[37,1],null,[["tagId","additionalTags","noSubcategories","showTagsSection","currentCategory","categoryBreadcrumbs","editingCategory","editingCategoryTab"],[[30,0,["tag","id"]],[30,0,["additionalTags"]],[30,0,["noSubcategories"]],[30,0,["showTagsSection"]],[30,0,["category"]],[30,0,["categoryBreadcrumbs"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]]]]]]],null],[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categoryBreadcrumbs"]]],null]],null],null,[[[41,[30,1,["hasOptions"]],[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,5],null,[["@category","@categories","@tagId","@editingCategory","@editingCategoryTab","@options"],[[30,1,["category"]],[30,1,["options"]],[30,0,["tag","id"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]],[28,[37,1],null,[["parentCategory","subCategory","noSubcategories","autoFilterable"],[[30,1,["parentCategory"]],[30,1,["isSubcategory"]],[30,1,["noSubcategories"]],true]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"\\n"],[41,[30,0,["showTagsSection"]],[[[41,[30,0,["additionalTags"]],[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,6],null,[["@currentCategory","@mainTag","@additionalTags","@options"],[[30,0,["category"]],[30,0,["tag","id"]],[30,0,["additionalTags"]],[28,[37,1],null,[["categoryId"],[[30,0,["category","id"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,7],null,[["@currentCategory","@noSubcategories","@tagId"],[[30,0,["category"]],[30,0,["noSubcategories"]],[30,0,["tag","id"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["bread-crumbs-right","li",[28,[37,1],null,[["tagId","additionalTags","noSubcategories","showTagsSection","currentCategory","categoryBreadcrumbs","editingCategory","editingCategoryTab"],[[30,0,["tag","id"]],[30,0,["additionalTags"]],[30,0,["noSubcategories"]],[30,0,["showTagsSection"]],[30,0,["category"]],[30,0,["categoryBreadcrumbs"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]]]]]]],null]],["breadcrumb"],false,["plugin-outlet","hash","each","-track-array","if","category-drop","tags-intersection-chooser","tag-drop"]]',moduleName:"discourse/components/bread-crumbs.hbs",isStrictMode:!1})
var y=(0,t.setComponentTemplate)(b,t.default.extend((s=(0,r.default)("categories"),l=(0,r.default)("category.ancestors","filteredCategories","noSubcategories"),a=(0,r.default)("siteSettings.tagging_enabled","editingCategory"),u=(0,r.default)("category"),c=(0,r.default)("parentCategories"),d=(0,r.default)("category"),p=(0,r.default)("category","parentCategory"),m=(0,r.default)("category","parentCategory"),h=(0,r.default)("firstCategory","hideSubcategories"),g(f={classNameBindings:["hidden:hidden",":category-breadcrumb"],tagName:"ol",editingCategory:!1,editingCategoryTab:null,filteredCategories(e){return e.filter((e=>this.siteSettings.allow_uncategorized_topics||e.id!==this.site.uncategorized_category_id))},categoryBreadcrumbs(e,t,i){e=e||[]
const n=[void 0,...e],r=[...e,void 0]
return n.map(((e,t)=>[e,r[t]])).map((e=>{const[n,r]=e,o=t.filter((e=>e.get("parentCategory.id")===(n&&n.id)))
return{category:r,parentCategory:n,options:o,isSubcategory:!!n,noSubcategories:!r&&i,hasOptions:0!==o.length}}))},showTagsSection:(e,t)=>e&&!t,parentCategory:e=>((0,n.default)("The parentCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategory"}),e&&e.parentCategory),parentCategories:(0,o.filter)("categories",(function(e){return(0,n.default)("The parentCategories property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategories"}),!(e.id===this.site.get("uncategorized_category_id")&&!this.siteSettings.allow_uncategorized_topics)&&!e.get("parentCategory")})),parentCategoriesSorted(e){return(0,n.default)("The parentCategoriesSorted property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategoriesSorted"}),this.siteSettings.fixed_category_positions?e:e.sortBy("totalTopicCount").reverse()},hidden(e){return this.site.mobileView&&!e},firstCategory:(e,t)=>((0,n.default)("The firstCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.firstCategory"}),t||e),secondCategory:(e,t)=>((0,n.default)("The secondCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.secondCategory"}),t&&e),childCategories(e,t){return(0,n.default)("The childCategories property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.childCategories"}),t?[]:e?this.categories.filter((t=>t.get("parentCategory")===e)):[]}},"filteredCategories",[s],Object.getOwnPropertyDescriptor(f,"filteredCategories"),f),g(f,"categoryBreadcrumbs",[l],Object.getOwnPropertyDescriptor(f,"categoryBreadcrumbs"),f),g(f,"showTagsSection",[a],Object.getOwnPropertyDescriptor(f,"showTagsSection"),f),g(f,"parentCategory",[u],Object.getOwnPropertyDescriptor(f,"parentCategory"),f),g(f,"parentCategoriesSorted",[c],Object.getOwnPropertyDescriptor(f,"parentCategoriesSorted"),f),g(f,"hidden",[d],Object.getOwnPropertyDescriptor(f,"hidden"),f),g(f,"firstCategory",[p],Object.getOwnPropertyDescriptor(f,"firstCategory"),f),g(f,"secondCategory",[m],Object.getOwnPropertyDescriptor(f,"secondCategory"),f),g(f,"childCategories",[h],Object.getOwnPropertyDescriptor(f,"childCategories"),f),f)))
e.default=y})),define("discourse/components/bulk-group-member-dropdown",["exports","select-kit/components/dropdown-select-box","I18n","@ember/object"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({pluginApiIdentifiers:["bulk-group-member-dropdown"],classNames:["bulk-group-member-dropdown"],selectKitOptions:{icon:"cog",showFullTitle:!1},content:(0,n.computed)("bulkSelection.[]",(function(){const e=[]
return e.push({id:"removeMembers",name:i.default.t("groups.members.remove_members"),description:i.default.t("groups.members.remove_members_description"),icon:"user-times"}),this.bulkSelection.some((e=>!e.owner))&&e.push({id:"makeOwners",name:i.default.t("groups.members.make_owners"),description:i.default.t("groups.members.make_owners_description"),icon:"shield-alt"}),this.bulkSelection.some((e=>e.owner))&&e.push({id:"removeOwners",name:i.default.t("groups.members.remove_owners"),description:i.default.t("groups.members.remove_owners_description"),icon:"shield-alt"}),this.currentUser.staff&&(this.bulkSelection.some((e=>!e.primary))&&e.push({id:"setPrimary",name:i.default.t("groups.members.make_all_primary"),description:i.default.t("groups.members.make_all_primary_description"),icon:"id-card"}),this.bulkSelection.some((e=>e.primary))&&e.push({id:"unsetPrimary",name:i.default.t("groups.members.remove_all_primary"),description:i.default.t("groups.members.remove_all_primary_description"),icon:"id-card"})),e}))})
e.default=r})),define("discourse/components/bulk-select-button",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({})
e.default=i})),define("discourse/components/bulk-select-toggle",["exports","@ember/component","@ember/template-factory","@ember/object","discourse-common/lib/get-owner"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"PaRJzTlZ",block:'[[[8,[39,0],null,[["@class","@action","@icon"],["bulk-select",[28,[37,1],[[30,0],"toggleBulkSelect"],null],"list"]],null]],[],false,["d-button","action"]]',moduleName:"discourse/components/bulk-select-toggle.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((l=o={parentController:null,toggleBulkSelect(){const e=(0,r.getOwner)(this).lookup(`controller:${this.parentController}`),t=e.selected
e.toggleProperty("bulkSelectEnabled"),t.clear()}},a="toggleBulkSelect",u=[n.action],c=Object.getOwnPropertyDescriptor(o,"toggleBulkSelect"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/cancel-link",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"r/AlY24q",block:'[[[8,[39,0],[[24,0,"cancel"]],[["@route","@model"],[[30,0,["route"]],[30,0,["args"]]]],[["default"],[[[[1,"\\n  "],[1,[28,[35,1],["cancel"],null]],[1,"\\n"]],[]]]]]],[],false,["link-to","i18n"]]',moduleName:"discourse/components/cancel-link.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/card-container",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/controller","@ember/object","discourse/lib/url"],(function(e,t,i,n,r,o,s,l){var a,u,c
function d(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"wJ/7FYNY",block:'[[[41,[30,0,["site","mobileView"]],[[[1,"  "],[10,0],[14,0,"card-cloak hidden"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,1],[[24,"role","dialog"]],[["@topic","@showUser","@filterPosts","@composePrivateMessage","@createNewMessageViaParams"],[[30,0,["topic","model"]],[30,0,["showUser"]],[30,0,["filterPosts"]],[28,[37,2],["composePrivateMessage"],null],[28,[37,2],["createNewMessageViaParams"],null]]],null],[1,"\\n\\n"],[8,[39,3],null,[["@topic","@showUser","@showGroup","@createNewMessageViaParams"],[[30,0,["topic","model"]],[30,0,["showUser"]],[30,0,["showGroup"]],[28,[37,2],["createNewMessageViaParams"],null]]],null]],[],false,["if","user-card-contents","route-action","group-card-contents"]]',moduleName:"discourse/components/card-container.hbs",isStrictMode:!1})
let h=(a=class extends n.default{constructor(){super(...arguments),d(this,"site",u,this),d(this,"topic",c,this)}filterPosts(e){this.topic.send("filterParticipant",e)}showUser(e){l.default.routeTo((0,l.userPath)(e.username_lower))}showGroup(e){l.default.routeTo((0,l.groupPath)(e.name))}},u=p(a.prototype,"site",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(a.prototype,"topic",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(a.prototype,"filterPosts",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"filterPosts"),a.prototype),p(a.prototype,"showUser",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"showUser"),a.prototype),p(a.prototype,"showGroup",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"showGroup"),a.prototype),a)
e.default=h,(0,t.setComponentTemplate)(m,h)})),define("discourse/components/categories-and-latest-topics",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"Wxq2LyoD",block:'[[[10,0],[14,0,"column categories"],[12],[1,"\\n  "],[8,[39,0],null,[["@categories"],[[30,0,["categories"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"column"],[12],[1,"\\n  "],[8,[39,1],null,[["@topics","@filter","@class"],[[30,0,["topics"]],"latest","latest-topic-list"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,2],null,[["@name","@connectorTagName"],["extra-categories-column","div"]],null]],[],false,["categories-only","categories-topic-list","plugin-outlet"]]',moduleName:"discourse/components/categories-and-latest-topics.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({classNames:["categories-and-latest"]}))
e.default=r})),define("discourse/components/categories-and-top-topics",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"x6pdwCSu",block:'[[[10,0],[14,0,"column categories"],[12],[1,"\\n  "],[8,[39,0],null,[["@categories"],[[30,0,["categories"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"column"],[12],[1,"\\n  "],[8,[39,1],null,[["@topics","@filter","@class"],[[30,0,["topics"]],"top","top-topic-list"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,2],null,[["@name","@connectorTagName"],["extra-categories-column","div"]],null]],[],false,["categories-only","categories-topic-list","plugin-outlet"]]',moduleName:"discourse/components/categories-and-top-topics.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({classNames:["categories-and-top"]}))
e.default=r})),define("discourse/components/categories-boxes-topic",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"A/xiz0vg",block:'[[[1,[28,[35,0],[[30,0,["topicStatusIcon"]]],null]],[1,"\\n\\n"],[10,3],[15,6,[30,0,["topic","lastUnreadUrl"]]],[14,0,"title"],[12],[1,"\\n  "],[1,[28,[35,1],[[30,0,["topic","fancyTitle"]]],null]],[1,"\\n"],[13]],[],false,["d-icon","html-safe"]]',moduleName:"discourse/components/categories-boxes-topic.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((r=(0,n.default)("topic.pinned","topic.closed","topic.archived"),l=o={tagName:"li",attributeBindings:["topic.id:data-topic-id"],topicStatusIcon:(e,t,i)=>e?"thumbtack":t||i?"lock":"far-file-alt"},a="topicStatusIcon",u=[r],c=Object.getOwnPropertyDescriptor(o,"topicStatusIcon"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/categories-boxes-with-topics",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/object/computed","@ember/utils"],(function(e,t,i,n,r,o){var s,l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"/ZHLmQf0",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[1,"  "],[10,0],[15,"data-notification-level",[30,1,["notificationLevelString"]]],[15,5,[52,[51,[30,0,["noCategoryStyle"]]],[28,[37,3],[[30,1,["color"]]],null]]],[15,0,[29,["category category-box category-box-",[30,1,["slug"]],"\\n      ",[52,[30,1,["isMuted"]],"muted"],"\\n      ",[52,[30,0,["noCategoryStyle"]],"no-category-boxes-style"]]]],[12],[1,"\\n    "],[10,0],[14,0,"category-box-inner"],[12],[1,"\\n      "],[10,0],[14,0,"category-box-heading"],[12],[1,"\\n        "],[10,3],[14,0,"parent-box-link"],[15,6,[30,1,["url"]]],[12],[1,"\\n"],[41,[51,[30,1,["isMuted"]]],[[[41,[30,1,["uploaded_logo","url"]],[[[1,"              "],[8,[39,5],null,[["@category"],[[30,1]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n          "],[10,"h3"],[12],[1,"\\n            "],[8,[39,6],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["read_restricted"]],[[[1,"              "],[1,[28,[35,7],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1,"            "],[1,[30,1,["name"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[51,[30,1,["isMuted"]]],[[[1,"        "],[10,0],[14,0,"featured-topics"],[12],[1,"\\n"],[41,[30,1,["topics"]],[[[1,"            "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["topics"]]],null]],null],null,[[[1,"                "],[8,[39,8],null,[["@topic"],[[30,2]]],null],[1,"\\n"]],[2]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[8,[39,9],null,[["@name","@outletArgs"],["category-box-below-each-category",[28,[37,10],null,[["category"],[[30,1]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[1]],null]],["c","topic"],false,["each","-track-array","unless","category-color-variable","if","category-logo","category-title-before","d-icon","categories-boxes-topic","plugin-outlet","hash"]]',moduleName:"discourse/components/categories-boxes-with-topics.hbs",isStrictMode:!1})
var u,c,d,p,m,h,f=(0,t.setComponentTemplate)(a,t.default.extend((s=(0,n.default)("categories.[].uploaded_logo.url"),l={tagName:"section",classNameBindings:[":category-boxes-with-topics","anyLogos:with-logos:no-logos"],noCategoryStyle:(0,r.equal)("siteSettings.category_style","none"),lockIcon:"lock",anyLogos(){return this.categories.any((e=>!(0,o.isEmpty)(e.get("uploaded_logo.url"))))}},u=l,c="anyLogos",d=[s],p=Object.getOwnPropertyDescriptor(l,"anyLogos"),m=l,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),l)))
e.default=f})),define("discourse/components/categories-boxes",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/object/computed","@ember/utils"],(function(e,t,i,n,r,o){var s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"C4N+Ahlg",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@name","@outletArgs"],["category-box-before-each-box",[28,[37,3],null,[["category"],[[30,1]]]]]],null],[1,"\\n\\n  "],[10,0],[15,5,[52,[51,[30,0,["noCategoryStyle"]]],[28,[37,5],[[30,1,["color"]]],null]]],[15,"data-category-id",[30,1,["id"]]],[15,"data-notification-level",[30,1,["notificationLevelString"]]],[15,"data-url",[30,1,["url"]]],[15,0,[29,["category category-box category-box-",[30,1,["slug"]],"\\n      ",[52,[30,1,["isMuted"]],"muted"],"\\n      ",[52,[30,0,["noCategoryStyle"]],"no-category-boxes-style"]]]],[12],[1,"\\n    "],[10,0],[14,0,"category-box-inner"],[12],[1,"\\n"],[41,[51,[30,1,["isMuted"]]],[[[1,"        "],[10,0],[14,0,"category-logo"],[12],[1,"\\n"],[41,[30,1,["uploaded_logo","url"]],[[[1,"            "],[8,[39,7],null,[["@category"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"category-details"],[12],[1,"\\n        "],[10,0],[14,0,"category-box-heading"],[12],[1,"\\n          "],[10,3],[14,0,"parent-box-link"],[15,6,[30,1,["url"]]],[12],[1,"\\n            "],[10,"h3"],[12],[1,"\\n              "],[8,[39,8],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["read_restricted"]],[[[1,"                "],[1,[28,[35,9],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1,"              "],[1,[30,1,["name"]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n\\n"],[41,[51,[30,1,["isMuted"]]],[[[1,"          "],[10,0],[14,0,"description"],[12],[1,"\\n            "],[1,[28,[35,10],[[30,1,["description_excerpt"]]],null]],[1,"\\n          "],[13],[1,"\\n\\n"],[41,[30,1,["isGrandParent"]],[[[42,[28,[37,1],[[28,[37,1],[[30,1,["subcategories"]]],null]],null],null,[[[1,"              "],[10,0],[15,"data-category-id",[30,2,["id"]]],[15,"data-notification-level",[30,2,["notificationLevelString"]]],[15,5,[28,[37,11],[[30,2,["color"]]],null]],[15,0,[29,["subcategory with-subcategories\\n                  ",[52,[30,2,["uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n                "],[10,0],[14,0,"subcategory-box-inner"],[12],[1,"\\n                  "],[8,[39,12],null,[["@tagName","@category"],["h4",[30,2]]],null],[1,"\\n"],[41,[30,2,["subcategories"]],[[[1,"                    "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,2,["subcategories"]]],null]],null],null,[[[41,[51,[30,3,["isMuted"]]],[[[1,"                          "],[10,1],[14,0,"subcategory"],[12],[1,"\\n                            "],[8,[39,8],null,[["@category"],[[30,3]]],null],[1,"\\n                            "],[1,[28,[35,13],[[30,3]],[["hideParent"],["true"]]]],[1,"\\n                          "],[13],[1,"\\n"]],[]],null]],[3]],null],[1,"                    "],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[2]],null]],[]],[[[41,[30,1,["subcategories"]],[[[1,"            "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["subcategories"]]],null]],null],null,[[[1,"                "],[10,3],[14,0,"subcategory"],[15,6,[30,4,["url"]]],[12],[1,"\\n                  "],[10,1],[14,0,"subcategory-image-placeholder"],[12],[1,"\\n"],[41,[30,4,["uploaded_logo","url"]],[[[1,"                      "],[8,[39,7],null,[["@category"],[[30,4]]],null],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n\\n                  "],[1,[28,[35,13],[[30,4]],[["hideParent"],["true"]]]],[1,"\\n                "],[13],[1,"\\n"]],[4]],null],[1,"            "],[13],[1,"\\n          "]],[]],null]],[]]]],[]],null],[1,"      "],[13],[1,"\\n\\n      "],[8,[39,2],null,[["@name","@outletArgs"],["category-box-below-each-category",[28,[37,3],null,[["category"],[[30,1]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,2],null,[["@name","@outletArgs"],["category-box-after-each-box",[28,[37,3],null,[["category"],[[30,1]]]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[8,[39,2],null,[["@name","@outletArgs"],["category-boxes-after-boxes",[28,[37,3],null,[["category"],[[30,0,["c"]]]]]]],null]],["c","subcategory","subsubcategory","sc"],false,["each","-track-array","plugin-outlet","hash","unless","category-color-variable","if","category-logo","category-title-before","d-icon","html-safe","border-color","category-title-link","category-link"]]',moduleName:"discourse/components/categories-boxes.hbs",isStrictMode:!1})
var d=(0,t.setComponentTemplate)(c,t.default.extend((s=(0,n.default)("categories.[].uploaded_logo.url"),l=(0,n.default)("categories.[].subcategories"),u(a={tagName:"section",classNameBindings:[":category-boxes","anyLogos:with-logos:no-logos","hasSubcategories:with-subcategories"],noCategoryStyle:(0,r.equal)("siteSettings.category_style","none"),lockIcon:"lock",anyLogos(){return this.categories.any((e=>!(0,o.isEmpty)(e.get("uploaded_logo.url"))))},hasSubcategories(){return this.categories.any((e=>!(0,o.isEmpty)(e.get("subcategories"))))}},"anyLogos",[s],Object.getOwnPropertyDescriptor(a,"anyLogos"),a),u(a,"hasSubcategories",[l],Object.getOwnPropertyDescriptor(a,"hasSubcategories"),a),a)))
e.default=d})),define("discourse/components/categories-only",["exports","@ember/component","@ember/template-factory","@ember/object","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r,o){var s,l,a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"VErhlOHv",block:'[[[41,[30,0,["categories"]],[[[41,[30,0,["filteredCategories"]],[[[1,"    "],[10,"table"],[15,0,[29,["category-list ",[52,[30,0,["showTopics"]],"with-topics"]]]],[12],[1,"\\n      "],[10,"thead"],[12],[1,"\\n        "],[10,"tr"],[12],[1,"\\n          "],[10,"th"],[14,0,"category"],[12],[10,1],[14,"role","heading"],[14,"aria-level","2"],[14,1,"categories-only-category"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[13],[1,"\\n          "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,1],["categories.topics"],null]],[13],[1,"\\n"],[41,[30,0,["showTopics"]],[[[1,"            "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,1],["categories.latest"],null]],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,"tbody"],[14,"aria-labelledby","categories-only-category"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categories"]]],null]],null],null,[[[1,"          "],[8,[39,4],null,[["@category","@showTopics"],[[30,1],[30,0,["showTopics"]]]],null],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["mutedCategories"]],[[[1,"    "],[10,0],[14,0,"muted-categories"],[12],[1,"\\n      "],[11,3],[24,6,""],[24,0,"muted-categories-link"],[4,[38,5],["click",[30,0,["toggleShowMuted"]]],null],[12],[1,"\\n        "],[10,"h3"],[14,0,"muted-categories-heading"],[12],[1,[28,[35,1],["categories.muted"],null]],[13],[1,"\\n"],[41,[30,0,["mutedToggleIcon"]],[[[1,"          "],[1,[28,[35,6],[[30,0,["mutedToggleIcon"]]],null]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "],[10,"table"],[15,0,[29,["category-list\\n          ",[52,[30,0,["showTopics"]],"with-topics"],"\\n          ",[52,[51,[30,0,["showMutedCategories"]]],"hidden"]]]],[12],[1,"\\n        "],[10,"thead"],[12],[1,"\\n          "],[10,"tr"],[12],[1,"\\n            "],[10,"th"],[14,0,"category"],[12],[10,1],[14,"role","heading"],[14,"aria-level","2"],[14,1,"categories-only-category-muted"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[13],[1,"\\n            "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,1],["categories.topics"],null]],[13],[1,"\\n"],[41,[30,0,["showTopics"]],[[[1,"              "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,1],["categories.latest"],null]],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"tbody"],[14,"aria-labelledby","categories-only-category-muted"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categories"]]],null]],null],null,[[[1,"            "],[8,[39,4],null,[["@category","@showTopics","@listType"],[[30,2],[30,0,["showTopics"]],"muted"]],null],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["below-categories-only","div",[28,[37,9],null,[["categories","showTopics"],[[30,0,["categories"]],[30,0,["showTopics"]]]]]]],null]],["category","category"],false,["if","i18n","each","-track-array","parent-category-row","on","d-icon","unless","plugin-outlet","hash"]]',moduleName:"discourse/components/categories-only.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend((s=(0,r.default)("showMutedCategories","filteredCategories.length"),l=(0,r.default)("showMuted","filteredCategories.length"),a=(0,r.default)("categories","categories.length"),u=(0,r.default)("categories","categories.length"),d(c={tagName:"",showMuted:!1,noCategoryStyle:(0,o.equal)("siteSettings.category_style","none"),mutedToggleIcon(e,t){if(0!==t)return e?"minus":"plus"},showMutedCategories:(e,t)=>e||0===t,filteredCategories:(e,t)=>e&&0!==t?e.filter((e=>!e.isHidden)):[],mutedCategories:(e,t)=>e&&0!==t?e.firstObject.parent_category_id?[]:e.filterBy("hasMuted"):[],toggleShowMuted(e){e?.preventDefault(),this.toggleProperty("showMuted")}},"mutedToggleIcon",[s],Object.getOwnPropertyDescriptor(c,"mutedToggleIcon"),c),d(c,"showMutedCategories",[l],Object.getOwnPropertyDescriptor(c,"showMutedCategories"),c),d(c,"filteredCategories",[a],Object.getOwnPropertyDescriptor(c,"filteredCategories"),c),d(c,"mutedCategories",[u],Object.getOwnPropertyDescriptor(c,"mutedCategories"),c),d(c,"toggleShowMuted",[n.action],Object.getOwnPropertyDescriptor(c,"toggleShowMuted"),c),c)))
e.default=m})),define("discourse/components/categories-topic-list",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ejrbR/Xn",block:'[[[10,0],[14,"role","heading"],[14,"aria-level","2"],[14,0,"table-heading"],[12],[1,"\\n  "],[1,[28,[35,0],[[28,[37,1],["filters.",[30,0,["filter"]],".title"],null]],null]],[1,"\\n  "],[8,[39,2],null,[["@name","@connectorTagName"],["categories-topics-table-heading","div"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["topics"]],[[[42,[28,[37,5],[[28,[37,5],[[30,0,["topics"]]],null]],null],null,[[[1,"    "],[8,[39,6],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1,"  "],[10,0],[14,0,"more-topics"],[12],[1,"\\n"],[41,[28,[37,7],[[30,0,["siteSettings","desktop_category_page_style"]],"categories_and_latest_topics_created_date"],null],[[[1,"      "],[10,3],[15,6,[28,[37,8],[[28,[37,1],["/",[30,0,["filter"]],"?order=created"],null]],null]],[14,0,"btn btn-default pull-right"],[12],[1,[28,[35,0],["more"],null]],[13],[1,"\\n"]],[]],[[[1,"      "],[10,3],[15,6,[28,[37,8],[[28,[37,1],["/",[30,0,["filter"]]],null]],null]],[14,0,"btn btn-default pull-right"],[12],[1,[28,[35,0],["more"],null]],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"no-topics"],[12],[1,"\\n    "],[10,"h3"],[12],[1,[28,[35,0],[[28,[37,1],["topics.none.",[30,0,["filter"]]],null]],null]],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["t"],false,["i18n","concat","plugin-outlet","if","each","-track-array","latest-topic-list-item","eq","get-url"]]',moduleName:"discourse/components/categories-topic-list.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend())
e.default=r})),define("discourse/components/categories-with-featured-topics",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"Ee+adfCO",block:'[[[8,[39,0],null,[["@categories","@showTopics"],[[30,0,["categories"]],"true"]],null]],[],false,["categories-only"]]',moduleName:"discourse/components/categories-with-featured-topics.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/category-list-item",["exports","@ember/component","discourse-common/utils/decorators"],(function(e,t,i){var n,r,o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u="normal",c="muted"
var d=t.default.extend((n=(0,i.default)("category.isHidden","category.hasMuted","listType"),r=(0,i.default)("category.isMuted","listType"),o=(0,i.default)("topicTrackingState.messageCount"),s=(0,i.default)("topicTrackingState.messageCount"),a(l={tagName:"",category:null,listType:u,isHidden:(e,t,i)=>e&&i===u||!t&&i===c,isMuted:(e,t)=>e&&t===u||!e&&t===c,unreadTopicsCount(){return this.category.unreadTopicsCount},newTopicsCount(){return this.category.newTopicsCount}},"isHidden",[n],Object.getOwnPropertyDescriptor(l,"isHidden"),l),a(l,"isMuted",[r],Object.getOwnPropertyDescriptor(l,"isMuted"),l),a(l,"unreadTopicsCount",[o],Object.getOwnPropertyDescriptor(l,"unreadTopicsCount"),l),a(l,"newTopicsCount",[s],Object.getOwnPropertyDescriptor(l,"newTopicsCount"),l),l))
e.default=d})),define("discourse/components/category-logo",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"6dTe8CI5",block:'[[[10,0],[14,0,"category-logo aspect-image"],[12],[1,"\\n"],[41,[28,[37,1],[[30,1,["uploaded_logo","url"]],[30,1,["uploaded_logo_dark","url"]]],null],[[[1,"    "],[10,"picture"],[12],[1,"\\n      "],[10,"source"],[15,"srcset",[30,1,["uploaded_logo_dark","url"]]],[15,"width",[30,1,["uploaded_logo_dark","width"]]],[15,"height",[30,1,["uploaded_logo_dark","height"]]],[14,"media","(prefers-color-scheme: dark)"],[12],[13],[1,"\\n      "],[8,[39,2],null,[["@src","@width","@height"],[[30,0,["defaultCategoryLogo","url"]],[30,0,["defaultCategoryLogo","width"]],[30,0,["defaultCategoryLogo","height"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[30,1,["uploaded_logo","url"]],[[[1,"    "],[8,[39,2],null,[["@src","@width","@height"],[[30,1,["uploaded_logo","url"]],[30,1,["uploaded_logo","width"]],[30,1,["uploaded_logo","height"]]]],null],[1,"\\n  "]],[]],null]],[]]],[13]],["@category"],false,["if","and","cdn-img"]]',moduleName:"discourse/components/category-logo.hbs",isStrictMode:!1})
let a=(o=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="session",n=this,(i=s)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get defaultCategoryLogo(){return this.session.defaultColorSchemeIsDark&&this.args.category.uploaded_logo_dark?this.args.category.uploaded_logo_dark:this.args.category.uploaded_logo}},u=o.prototype,c="session",d=[r.inject],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),s=h,o)
var u,c,d,p,m,h
e.default=a,(0,t.setComponentTemplate)(l,a)})),define("discourse/components/category-name-fields",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"YT41FuCy",block:'[[[10,"section"],[14,0,"field"],[12],[1,"\\n"],[41,[51,[30,0,["category","isUncategorizedCategory"]]],[[[1,"    "],[10,"section"],[14,0,"field-item"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["category.name"],null]],[13],[1,"\\n      "],[8,[39,2],null,[["@value","@placeholderKey","@maxlength","@class"],[[30,0,["category","name"]],"category.name_placeholder","50","category-name"]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"  "],[10,"section"],[14,0,"field-item"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["category.slug"],null]],[13],[1,"\\n    "],[8,[39,2],null,[["@value","@placeholderKey","@maxlength"],[[30,0,["category","slug"]],"category.slug_placeholder","255"]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["unless","i18n","text-field"]]',moduleName:"discourse/components/category-name-fields.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/category-permission-row",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/object/computed","discourse-common/utils/decorators","I18n","discourse/models/permission-type"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p,m,h,f,g,b,y
function _(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v=(0,i.createTemplateFactory)({id:"i7pSAw7L",block:'[[[10,1],[14,0,"group-name"],[12],[1,"\\n  "],[10,1],[14,0,"group-name-label"],[12],[1,[30,0,["group_name"]]],[13],[1,"\\n  "],[11,3],[24,0,"remove-permission"],[24,6,""],[4,[38,0],["click",[30,0,["removeRow"]]],null],[12],[1,"\\n    "],[1,[28,[35,1],["far-trash-alt"],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,1],[14,0,"options actionable"],[12],[1,"\\n  "],[8,[39,2],null,[["@icon","@class","@disabled"],["check-square","btn btn-flat see",true]],null],[1,"\\n\\n  "],[8,[39,2],null,[["@icon","@action","@translatedTitle","@class","@disabled"],[[30,0,["canReplyIcon"]],[28,[37,3],[[30,0],"setPermissionReply"],null],[30,0,["replyTooltip"]],[28,[37,4],["btn btn-flat reply-toggle ",[30,0,["replyGranted"]]],null],[30,0,["replyDisabled"]]]],null],[1,"\\n\\n  "],[8,[39,2],null,[["@icon","@action","@translatedTitle","@class","@disabled"],[[30,0,["canCreateIcon"]],[28,[37,3],[[30,0],"setPermissionFull"],null],[30,0,["createTooltip"]],[28,[37,4],["btn btn-flat create-toggle ",[30,0,["createGranted"]]],null],[30,0,["createDisabled"]]]],null],[1,"\\n"],[13]],[],false,["on","d-icon","d-button","action","concat"]]',moduleName:"discourse/components/category-permission-row.hbs",isStrictMode:!1}),w="everyone"
var k=(0,t.setComponentTemplate)(v,t.default.extend((a=(0,o.default)("type"),u=(0,o.default)("type"),c=(0,o.default)("type"),d=(0,o.default)("type"),p=(0,o.default)("type"),m=(0,o.observes)("everyonePermissionType"),h=(0,o.default)("everyonePermissionType","type"),f=(0,o.default)("replyDisabled"),g=(0,o.default)("everyonePermissionType","type"),b=(0,o.default)("createDisabled"),_(y={classNames:["permission-row","row-body"],canCreate:(0,r.equal)("type",l.default.FULL),everyonePermissionType:(0,r.alias)("everyonePermission.permission_type"),canReply:e=>e===l.default.CREATE_POST||e===l.default.FULL,canReplyIcon(){return this.canReply?"check-square":"far-square"},canCreateIcon(){return this.canCreate?"check-square":"far-square"},replyGranted(){return this.type<=l.default.CREATE_POST?"reply-granted":""},createGranted(){return this.type===l.default.FULL?"create-granted":""},inheritFromEveryone(){this.group_name!==w&&this.everyonePermissionType<this.type&&this.updatePermission(this.everyonePermissionType)},replyDisabled(e){return!!(this.group_name!==w&&e&&e<=l.default.CREATE_POST)},replyTooltip:e=>e?s.default.t("category.permissions.inherited"):s.default.t("category.permissions.toggle_reply"),createDisabled(e){return!(this.group_name===w||!e||e!==l.default.FULL)},createTooltip:e=>e?s.default.t("category.permissions.inherited"):s.default.t("category.permissions.toggle_full"),updatePermission(e){this.category.updatePermission(this.group_name,e)},removeRow(e){e?.preventDefault(),this.category.removePermission(this.group_name)},actions:{setPermissionReply(){this.type<=l.default.CREATE_POST?this.updatePermission(l.default.READONLY):this.updatePermission(l.default.CREATE_POST)},setPermissionFull(){this.group_name!==w&&this.everyonePermissionType===l.default.FULL||(this.type===l.default.FULL?this.updatePermission(l.default.CREATE_POST):this.updatePermission(l.default.FULL))}}},"canReply",[a],Object.getOwnPropertyDescriptor(y,"canReply"),y),_(y,"canReplyIcon",[u],Object.getOwnPropertyDescriptor(y,"canReplyIcon"),y),_(y,"canCreateIcon",[c],Object.getOwnPropertyDescriptor(y,"canCreateIcon"),y),_(y,"replyGranted",[d],Object.getOwnPropertyDescriptor(y,"replyGranted"),y),_(y,"createGranted",[p],Object.getOwnPropertyDescriptor(y,"createGranted"),y),_(y,"inheritFromEveryone",[m],Object.getOwnPropertyDescriptor(y,"inheritFromEveryone"),y),_(y,"replyDisabled",[h],Object.getOwnPropertyDescriptor(y,"replyDisabled"),y),_(y,"replyTooltip",[f],Object.getOwnPropertyDescriptor(y,"replyTooltip"),y),_(y,"createDisabled",[g],Object.getOwnPropertyDescriptor(y,"createDisabled"),y),_(y,"createTooltip",[b],Object.getOwnPropertyDescriptor(y,"createTooltip"),y),_(y,"removeRow",[n.action],Object.getOwnPropertyDescriptor(y,"removeRow"),y),y)))
e.default=k})),define("discourse/components/category-read-only-banner",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"/z0WbsYv",block:'[[[41,[30,0,["shouldShow"]],[[[1,"  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"alert alert-info category-read-only-banner"],[12],[1,"\\n      "],[1,[28,[35,1],[[30,0,["category","read_only_banner"]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","html-safe"]]',moduleName:"discourse/components/category-read-only-banner.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((o={user(){return this.currentUser},shouldShow:(0,n.and)("category.read_only_banner","readOnly","user")},l=o,a="user",u=[r.default],c=Object.getOwnPropertyDescriptor(o,"user"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/category-title-before",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"xN5FMwDU",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["category-title-before",[28,[37,1],null,[["category"],[[30,0,["category"]]]]]]],null]],[],false,["plugin-outlet","hash"]]',moduleName:"discourse/components/category-title-before.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:""}))
e.default=r}))
define("discourse/components/category-title-link",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"wRw/fpvu",block:'[[[10,3],[14,0,"category-title-link"],[15,6,[30,0,["category","url"]]],[12],[1,"\\n  "],[10,0],[14,0,"category-text-title"],[12],[1,"\\n    "],[8,[39,0],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"],[41,[30,0,["category","read_restricted"]],[[[1,"      "],[1,[28,[35,2],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1,"    "],[10,1],[14,0,"category-name"],[12],[1,[28,[35,3],[[30,0,["category","name"]]],null]],[13],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["category","uploaded_logo","url"]],[[[1,"    "],[8,[39,4],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"]],[]],null],[13]],[],false,["category-title-before","if","d-icon","dir-span","category-logo"]]',moduleName:"discourse/components/category-title-link.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:"h3",lockIcon:"lock"}))
e.default=r})),define("discourse/components/category-unread",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"1dGC4P7h",block:'[[[41,[30,0,["unreadTopicsCount"]],[[[1,"  "],[10,3],[15,6,[30,0,["category","unreadUrl"]]],[15,"title",[28,[37,1],["topic.unread_topics"],[["count"],[[30,0,["unreadTopicsCount"]]]]]],[14,0,"badge new-posts badge-notification"],[12],[1,[28,[35,1],["filters.unread.lower_title_with_count"],[["count"],[[30,0,["unreadTopicsCount"]]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["newTopicsCount"]],[[[1,"  "],[10,3],[15,6,[30,0,["category","newUrl"]]],[15,"title",[28,[37,1],["topic.new_topics"],[["count"],[[30,0,["newTopicsCount"]]]]]],[14,0,"badge new-posts badge-notification"],[12],[1,[28,[35,1],["filters.new.lower_title_with_count"],[["count"],[[30,0,["newTopicsCount"]]]]]],[13],[1,"\\n"]],[]],null]],[],false,["if","i18n"]]',moduleName:"discourse/components/category-unread.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:"span"}))
e.default=r})),define("discourse/components/cdn-img",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","discourse-common/lib/get-url","@ember/template"],(function(e,t,i,n,r,o){var s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"o771xwmc",block:'[[[41,[30,0,["src"]],[[[1,"  "],[10,"img"],[15,"src",[30,0,["cdnSrc"]]],[15,"width",[30,0,["width"]]],[15,"height",[30,0,["height"]]],[15,5,[30,0,["style"]]],[14,"alt",""],[12],[13],[1,"\\n"]],[]],null]],[],false,["if"]]',moduleName:"discourse/components/cdn-img.hbs",isStrictMode:!1})
var d=(0,t.setComponentTemplate)(c,t.default.extend((s=(0,n.default)("src"),l=(0,n.default)("width","height"),u(a={tagName:"",cdnSrc:e=>(0,r.getURLWithCDN)(e),style(e,t){if(e&&t)return(0,o.htmlSafe)(`--aspect-ratio: ${e/t};`)}},"cdnSrc",[s],Object.getOwnPropertyDescriptor(a,"cdnSrc"),a),u(a,"style",[l],Object.getOwnPropertyDescriptor(a,"style"),a),a)))
e.default=d})),define("discourse/components/char-counter",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"V+rYmbch",block:'[[[11,0],[16,0,[28,[37,0],["char-counter",[52,[28,[37,2],[[30,1,["length"]],[30,2]],null],"exceeded"]],null]],[17,3],[12],[1,"\\n  "],[18,4,null],[1,"\\n  "],[10,"small"],[14,0,"char-counter__ratio"],[12],[1,"\\n    "],[1,[30,1,["length"]]],[1,"/"],[1,[30,2]],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[14,"aria-live","polite"],[14,0,"sr-only"],[12],[1,"\\n    "],[1,[52,[28,[37,2],[[30,1,["length"]],[30,2]],null],[28,[37,4],["char_counter.exceeded"],null]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["@value","@max","&attrs","&default"],false,["concat-class","if","gt","yield","i18n"]]',moduleName:"discourse/components/char-counter.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/choose-message",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/utils","@ember/runloop","discourse-common/utils/decorators","discourse/lib/search"],(function(e,t,i,n,r,o,s,l){var a,u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"vpQ4YaL5",block:'[[[10,"label"],[14,"for","choose-message-title"],[12],[1,[28,[35,0],["choose_message.title.search"],null]],[13],[1,"\\n\\n"],[8,[39,1],null,[["@value","@placeholderKey","@id"],[[30,0,["messageTitle"]],"choose_message.title.placeholder","choose-message-title"]],null],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1,"  "],[10,2],[12],[1,[28,[35,0],["loading"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["noResults"]],[[[1,"    "],[10,2],[12],[1,[28,[35,0],["choose_message.none_found"],null]],[13],[1,"\\n"]],[]],[[[42,[28,[37,4],[[28,[37,4],[[30,0,["messages"]]],null]],null],null,[[[1,"      "],[10,0],[14,0,"controls existing-message"],[12],[1,"\\n        "],[10,"label"],[14,0,"radio"],[12],[1,"\\n          "],[11,"input"],[16,1,[29,["choose-message-",[30,1,["id"]]]]],[24,3,"choose_message_id"],[24,4,"radio"],[4,[38,5],["click",[28,[37,6],[[30,0,["chooseMessage"]],[30,1]],null]],null],[12],[13],[1,"\\n          "],[10,1],[14,0,"message-title"],[12],[1,"\\n            "],[1,[30,1,["title"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[1]],null]],[]]]],[]]]],["m"],false,["i18n","text-field","if","each","-track-array","on","fn"]]',moduleName:"discourse/components/choose-message.hbs",isStrictMode:!1})
var h=(0,t.setComponentTemplate)(m,t.default.extend((a=(0,s.observes)("messageTitle"),u=(0,s.observes)("messages"),c=(0,s.debounce)(300),p(d={loading:null,noResults:null,messages:null,messageTitleChanged(){this.setProperties({loading:!0,noResults:!0,selectedTopicId:null}),this.search(this.messageTitle)},messagesChanged(){const e=this.messages
e&&this.set("noResults",0===e.length),this.set("loading",!1)},search(e){(0,r.isEmpty)(e)?this.setProperties({messages:null,loading:!1}):(0,l.searchForTerm)(e,{typeFilter:"private_messages",searchForId:!0,restrictToArchetype:"private_message"}).then((e=>{e?.posts?.length?this.set("messages",e.posts.mapBy("topic").filter((e=>e.get("id")!==this.currentTopicId))):this.setProperties({messages:null,loading:!1})}))},chooseMessage(e,t){t?.preventDefault()
const i=(0,n.get)(e,"id")
this.set("selectedTopicId",i),(0,o.next)((()=>$(`#choose-message-${i}`).prop("checked","true")))}},"messageTitleChanged",[a],Object.getOwnPropertyDescriptor(d,"messageTitleChanged"),d),p(d,"messagesChanged",[u],Object.getOwnPropertyDescriptor(d,"messagesChanged"),d),p(d,"search",[c],Object.getOwnPropertyDescriptor(d,"search"),d),p(d,"chooseMessage",[n.action],Object.getOwnPropertyDescriptor(d,"chooseMessage"),d),d)))
e.default=h})),define("discourse/components/choose-topic",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/object","discourse-common/lib/debounce","@ember/utils","discourse/lib/search","discourse-common/config/environment"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p
function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,i.createTemplateFactory)({id:"x765sMxB",block:'[[[10,"label"],[14,"for","choose-topic-title"],[12],[1,"\\n"],[41,[30,0,["labelIcon"]],[[[1,"    "],[1,[28,[35,1],[[30,0,["labelIcon"]]],null]],[1,"\\n"]],[]],null],[1,"  "],[10,1],[12],[1,[28,[35,2],[[30,0,["labelText"]]],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,3],null,[["@value","@placeholderKey","@id"],[[30,0,["topicTitle"]],"choose_topic.title.placeholder","choose-topic-title"]],null],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1,"  "],[10,2],[12],[1,[28,[35,2],["loading"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["noResults"]],[[[1,"    "],[10,2],[12],[1,[28,[35,2],["choose_topic.none_found"],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"choose-topic-list"],[14,"role","radiogroup"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["topics"]]],null]],null],null,[[[1,"        "],[10,0],[14,0,"controls existing-topic"],[12],[1,"\\n          "],[10,"label"],[14,0,"radio"],[12],[1,"\\n            "],[8,[39,6],[[16,1,[28,[37,7],["choose-topic-",[30,1,["id"]]],null]],[24,3,"choose_topic_id"],[4,[38,9],["click",[28,[37,10],[[30,0],"chooseTopic",[30,1]],null]],null]],[["@checked","@type"],[[28,[37,8],[[30,1,["id"]],[30,0,["selectedTopicId"]]],null],"radio"]],null],[1,"\\n            "],[8,[39,11],null,[["@topic","@disableActions"],[[30,1],true]],null],[1,"\\n            "],[10,1],[14,0,"topic-title"],[12],[1,"\\n              "],[1,[28,[35,12],[[30,1,["title"]]],null]],[1,"\\n            "],[13],[1,"\\n            "],[10,1],[14,0,"topic-categories"],[12],[1,"\\n              "],[1,[28,[35,13],[[30,1,["category"]]],[["recursive","hideParent","link"],[true,true,false]]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n"]],[]]]],[]]]],["t"],false,["if","d-icon","i18n","text-field","each","-track-array","input","concat","eq","on","action","topic-status","replace-emoji","bound-category-link"]]',moduleName:"discourse/components/choose-topic.hbs",isStrictMode:!1})
var f=(0,t.setComponentTemplate)(h,t.default.extend((u=(0,n.observes)("topicTitle"),c=(0,n.default)("label"),d=(0,n.observes)("topics"),p={loading:null,noResults:null,topics:null,selectedTopicId:null,currentTopicId:null,additionalFilters:null,topicTitle:null,label:null,loadOnInit:!1,topicChangedCallback:null,init(){this._super(...arguments),this.additionalFilters=this.additionalFilters||"",this.topicTitle=this.topicTitle||"",this.loadOnInit&&!(0,s.isEmpty)(this.additionalFilters)&&(0,l.searchForTerm)(this.additionalFilters,{}).then((e=>{e?.posts?.length>0?this.set("topics",e.posts.mapBy("topic").filter((e=>e.id!==this.currentTopicId))):this.setProperties({topics:null,loading:!1})}))},didInsertElement(){this._super(...arguments),document.getElementById("choose-topic-title").addEventListener("keydown",this._handleEnter)},willDestroyElement(){this._super(...arguments),document.getElementById("choose-topic-title").removeEventListener("keydown",this._handleEnter)},topicTitleChanged(){this.oldTopicTitle!==this.topicTitle&&(this.setProperties({loading:!0,noResults:!0,selectedTopicId:null,oldTopicTitle:this.topicTitle}),this.searchDebounced(this.topicTitle))},labelText:e=>e||"choose_topic.title.search",topicsChanged(){this.topics&&this.set("noResults",0===this.topics.length),this.set("loading",!1)},searchDebounced(e){(0,o.default)(this,this.search,e,a.INPUT_DELAY)},search(e){if(!this.element||this.isDestroying||this.isDestroyed)return
if((0,s.isEmpty)(e)&&(0,s.isEmpty)(this.additionalFilters))return this.setProperties({topics:null,loading:!1}),void this.onSearchEmptied?.()
const t=this.currentTopicId,i=`${e} ${this.additionalFilters}`,n={};(0,s.isEmpty)(e)||(n.typeFilter="topic",n.restrictToArchetype="regular",n.searchForId=!0),(0,l.searchForTerm)(i,n).then((i=>{e===this.topicTitle&&(i?.posts?.length>0?(this.set("topics",i.posts.mapBy("topic").filter((e=>e.id!==t))),1===this.topics.length&&this.send("chooseTopic",this.topics[0])):this.setProperties({topics:null,loading:!1}))}))},chooseTopic(e){this.set("selectedTopicId",e.id),this.topicChangedCallback&&this.topicChangedCallback(e)},_handleEnter(e){"Enter"===e.key&&e.preventDefault()}},m(p,"topicTitleChanged",[u],Object.getOwnPropertyDescriptor(p,"topicTitleChanged"),p),m(p,"labelText",[c],Object.getOwnPropertyDescriptor(p,"labelText"),p),m(p,"topicsChanged",[d],Object.getOwnPropertyDescriptor(p,"topicsChanged"),p),m(p,"chooseTopic",[r.action],Object.getOwnPropertyDescriptor(p,"chooseTopic"),p),p)))
e.default=f})),define("discourse/components/color-picker-choice",["exports","@ember/component","I18n","discourse-common/utils/decorators","@ember/template"],(function(e,t,i,n,r){var o,s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=t.default.extend((o=(0,n.default)("color","usedColors"),s=(0,n.default)("isUsed"),l=(0,n.default)("color"),u(a={tagName:"button",attributeBindings:["style","title"],classNameBindings:[":colorpicker","isUsed:used-color:unused-color"],isUsed:(e,t)=>(t||[]).includes(e.toUpperCase()),title:e=>e?i.default.t("category.already_used"):null,style:e=>(0,r.htmlSafe)(`background-color: #${e};`),click(e){e.preventDefault(),this.selectColor(this.color)}},"isUsed",[o],Object.getOwnPropertyDescriptor(a,"isUsed"),a),u(a,"title",[s],Object.getOwnPropertyDescriptor(a,"title"),a),u(a,"style",[l],Object.getOwnPropertyDescriptor(a,"style"),a),a))
e.default=c})),define("discourse/components/color-picker",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"onNtuCxk",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["colors"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@color","@usedColors","@selectColor"],[[30,1],[30,0,["usedColors"]],[28,[37,3],[[30,0],"selectColor"],null]]],[["default"],[[[[1,"\\n    "],[1,[28,[35,4],["check"],null]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]],null]],["c"],false,["each","-track-array","color-picker-choice","action","d-icon"]]',moduleName:"discourse/components/color-picker.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({classNames:"colors-container",actions:{selectColor(e){this.set("value",e)}}}))
e.default=r})),define("discourse/components/composer-action-title",["exports","@ember/component","@ember/template-factory","discourse/models/composer","I18n","@ember/object/computed","discourse-common/utils/decorators","discourse-common/lib/icon-library","@ember/template","pretty-text/sanitizer"],(function(e,t,i,n,r,o,s,l,a,u){var c,d
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"kE5+VbA9",block:'[[[8,[39,0],null,[["@composerModel","@replyOptions","@canWhisper","@openComposer","@closeComposer","@action","@tabindex","@topic","@post","@whisper","@noBump","@options"],[[30,0,["model"]],[30,0,["model","replyOptions"]],[30,0,["canWhisper"]],[30,0,["openComposer"]],[30,0,["closeComposer"]],[30,0,["model","action"]],[30,0,["tabindex"]],[30,0,["model","topic"]],[30,0,["model","post"]],[30,0,["model","whisper"]],[30,0,["model","noBump"]],[28,[37,1],null,[["mobilePlacementStrategy"],["fixed"]]]]],null],[1,"\\n\\n"],[10,1],[14,0,"action-title"],[12],[1,"\\n  "],[1,[30,0,["actionTitle"]]],[1,"\\n"],[13]],[],false,["composer-actions","hash"]]',moduleName:"discourse/components/composer-action-title.hbs",isStrictMode:!1}),m={[n.PRIVATE_MESSAGE]:"topic.private_message",[n.CREATE_TOPIC]:"topic.create_long",[n.CREATE_SHARED_DRAFT]:"composer.create_shared_draft",[n.EDIT_SHARED_DRAFT]:"composer.edit_shared_draft"}
var h,f,g,b,y,_,v=(0,t.setComponentTemplate)(p,t.default.extend((c=(0,s.default)("options","action","model.tags","model.category"),d={classNames:["composer-action-title"],options:(0,o.alias)("model.replyOptions"),action:(0,o.alias)("model.action"),actionTitle(e,t){let i=this.model.customizationFor("actionTitle")
if(i)return i
if(m[t])return r.default.t(m[t])
switch(t){case n.REPLY:if(e.userAvatar&&e.userLink)return this._formatReplyToUserPost(e.userAvatar,e.userLink)
if(e.topicLink)return this._formatReplyToTopic(e.topicLink)
case n.EDIT:if(e.userAvatar&&e.userLink&&e.postLink)return this._formatEditUserPost(e.userAvatar,e.userLink,e.postLink,e.originalUser)}},_formatEditUserPost(e,t,i,n){let r=`\n      <a class="post-link" href="${i.href}">${i.anchor}</a>\n      ${e}\n      <span class="username">${t.anchor}</span>\n    `
return n&&(r+=`\n        ${(0,l.iconHTML)("share",{class:"reply-to-glyph"})}\n        ${n.avatar}\n        <span class="original-username">${n.username}</span>\n      `),(0,a.htmlSafe)(r)},_formatReplyToTopic(e){return(0,a.htmlSafe)(`<a class="topic-link" href="${e.href}" data-topic-id="${this.get("model.topic.id")}">${e.anchor}</a>`)},_formatReplyToUserPost(e,t){const i=`<a class="user-link" href="${t.href}">${(0,u.escape)(t.anchor)}</a>`
return(0,a.htmlSafe)(`${e}${i}`)}},h=d,f="actionTitle",g=[c],b=Object.getOwnPropertyDescriptor(d,"actionTitle"),y=d,_={},Object.keys(b).forEach((function(e){_[e]=b[e]})),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=g.slice().reverse().reduce((function(e,t){return t(h,f,e)||e}),_),y&&void 0!==_.initializer&&(_.value=_.initializer?_.initializer.call(y):void 0,_.initializer=void 0),void 0===_.initializer&&(Object.defineProperty(h,f,_),_=null),d)))
e.default=v})),define("discourse/components/composer-body",["exports","@ember/runloop","discourse-common/lib/later","discourse-common/utils/decorators","@ember/component","discourse/models/composer","discourse/mixins/key-enter-escape","discourse-common/lib/debounce","discourse/lib/offset-calculator","discourse/lib/safari-hacks"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f
function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=["touchstart","mousedown"],y=["touchmove","mousemove"],_=["touchend","mouseup"]
function v(e){return e.clientY||e.touches&&e.touches[0]&&e.touches[0].clientY}var w=r.default.extend(s.default,(c=(0,n.default)("composer.action"),d=(0,n.default)("currentUser.primary_group_name"),p=(0,n.default)("composer.composeState"),m=(0,n.observes)("composeState"),h=(0,n.observes)("composeState","composer.{action,canEditTopicFeaturedLink}"),f={elementId:"reply-control",classNameBindings:["composer.creatingPrivateMessage:private-message","composeState","composer.loading","prefixedComposerAction","composer.canEditTitle:edit-title","composer.createdPost:created-post","composer.creatingTopic:topic","composer.whisper:composing-whisper","composer.sharedDraft:composing-shared-draft","showPreview:show-preview:hide-preview","currentUserPrimaryGroupClass"],prefixedComposerAction:e=>e?`composer-action-${e}`:"",currentUserPrimaryGroupClass:e=>e&&`group-${e}`,composeState:e=>e||o.default.CLOSED,keyUp(){this.typed()
const e=new Date
this._lastKeyUp=e,(0,t.cancel)(this._lastKeyTimeout),this._lastKeyTimeout=(0,i.default)((()=>{e===this._lastKeyUp&&this.appEvents.trigger("composer:find-similar")}),1e3)},disableFullscreen(){this.composeState!==o.default.OPEN&&u.default.blur&&u.default.blur()},setupComposerResizeEvents(){this.origComposerSize=0,this.lastMousePos=0,b.forEach((e=>{this.element.querySelector(".grippie")?.addEventListener(e,this.startDragHandler,{passive:!1})}))},performDragHandler(){this.appEvents.trigger("composer:div-resizing"),this.element.classList.add("clear-transitions")
const e=v(event)
let t=this.origComposerSize+(this.lastMousePos-e)
t=Math.min(t,window.innerHeight-(0,a.headerOffset)())
const i=parseInt(getComputedStyle(this.element).minHeight,10)
t=Math.max(i,t),this.set("composer.composerHeight",`${t}px`),this.keyValueStore.set({key:"composerHeight",value:this.get("composer.composerHeight")}),document.documentElement.style.setProperty("--composer-height",t?`${t}px`:""),this._triggerComposerResized()},_triggerComposerResized(){(0,t.schedule)("afterRender",(()=>{(0,l.default)(this,this.composerResized,300)}))},composerResized(){!this.element||this.isDestroying||this.isDestroyed||this.appEvents.trigger("composer:resized")},startDragHandler(e){e.preventDefault(),this.origComposerSize=this.element.offsetHeight,this.lastMousePos=v(e),y.forEach((e=>{document.addEventListener(e,this.throttledPerformDrag)})),_.forEach((e=>{document.addEventListener(e,this.endDragHandler)})),this.appEvents.trigger("composer:resize-started")},endDragHandler(){this.appEvents.trigger("composer:resize-ended"),y.forEach((e=>{document.removeEventListener(e,this.throttledPerformDrag)})),_.forEach((e=>{document.removeEventListener(e,this.endDragHandler)})),this.element.classList.remove("clear-transitions"),this.element.focus()},throttledPerformDrag(e){e.preventDefault(),(0,t.throttle)(this,this.performDragHandler,e,20)},didInsertElement(){this._super(...arguments),this.setupComposerResizeEvents()
const e=()=>{this.get("composer.composeState")===o.default.OPEN&&this.appEvents.trigger("composer:opened")}
e(),this.element.addEventListener("transitionend",(t=>{"height"===t.propertyName&&e()})),(0,u.default)(this.element)},willDestroyElement(){this._super(...arguments),b.forEach((e=>{this.element.querySelector(".grippie")?.removeEventListener(e,this.startDragHandler)})),(0,t.cancel)(this._lastKeyTimeout)},click(){this.openIfDraft()}},g(f,"prefixedComposerAction",[c],Object.getOwnPropertyDescriptor(f,"prefixedComposerAction"),f),g(f,"currentUserPrimaryGroupClass",[d],Object.getOwnPropertyDescriptor(f,"currentUserPrimaryGroupClass"),f),g(f,"composeState",[p],Object.getOwnPropertyDescriptor(f,"composeState"),f),g(f,"disableFullscreen",[m],Object.getOwnPropertyDescriptor(f,"disableFullscreen"),f),g(f,"performDragHandler",[n.bind],Object.getOwnPropertyDescriptor(f,"performDragHandler"),f),g(f,"_triggerComposerResized",[h],Object.getOwnPropertyDescriptor(f,"_triggerComposerResized"),f),g(f,"startDragHandler",[n.bind],Object.getOwnPropertyDescriptor(f,"startDragHandler"),f),g(f,"endDragHandler",[n.bind],Object.getOwnPropertyDescriptor(f,"endDragHandler"),f),g(f,"throttledPerformDrag",[n.bind],Object.getOwnPropertyDescriptor(f,"throttledPerformDrag"),f),f))
e.default=w})),define("discourse/components/composer-container",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s,l
function a(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"a7yymO23",block:'[[[8,[39,0],null,[["@composer","@showPreview","@openIfDraft","@typed","@cancelled","@save"],[[30,0,["composer","model"]],[30,0,["composer","showPreview"]],[30,0,["composer","openIfDraft"]],[30,0,["composer","typed"]],[30,0,["composer","cancelled"]],[30,0,["composer","saveAction"]]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"grippie"],[12],[13],[1,"\\n\\n"],[41,[30,0,["composer","visible"]],[[[1,"    "],[8,[39,2],null,[["@composer","@messageCount","@addLinkLookup"],[[30,0,["composer","model"]],[30,0,["composer","messageCount"]],[30,0,["composer","addLinkLookup"]]]],null],[1,"\\n\\n"],[41,[30,0,["composer","showFullScreenPrompt"]],[[[1,"      "],[8,[39,3],null,[["@removeFullScreenExitPrompt"],[[30,0,["composer","removeFullScreenExitPrompt"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","model","viewOpenOrFullscreen"]],[[[1,"      "],[10,0],[14,"role","form"],[15,"aria-label",[28,[37,4],[[30,0,["composer","saveLabel"]]],null]],[15,0,[29,["reply-area\\n          ",[52,[30,0,["composer","canEditTags"]],"with-tags","without-tags"],"\\n          ",[52,[30,0,["composer","model","showCategoryChooser"]],"with-category","without-category"]]]],[12],[1,"\\n        "],[10,1],[14,0,"composer-open-plugin-outlet-container"],[12],[1,"\\n          "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["composer-open","div",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"reply-to"],[12],[1,"\\n"],[41,[51,[30,0,["composer","model","viewFullscreen"]]],[[[1,"            "],[10,0],[14,0,"reply-details"],[12],[1,"\\n              "],[8,[39,8],null,[["@model","@openComposer","@closeComposer","@canWhisper"],[[30,0,["composer","model"]],[30,0,["composer","openComposer"]],[30,0,["composer","closeComposer"]],[30,0,["composer","canWhisper"]]]],null],[1,"\\n\\n              "],[8,[39,5],null,[["@name","@outletArgs"],["composer-action-after",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["composer","site","mobileView"]]],[[[41,[30,0,["composer","model","unlistTopic"]],[[[1,"                  "],[10,1],[14,0,"unlist"],[12],[1,"("],[1,[28,[35,9],["composer.unlist"],null]],[1,")"],[13],[1,"\\n"]],[]],null],[41,[30,0,["composer","isWhispering"]],[[[41,[30,0,["composer","model","noBump"]],[[[1,"                    "],[10,1],[14,0,"no-bump"],[12],[1,[28,[35,10],["anchor"],null]],[13],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["composer","canEdit"]],[[[1,"                "],[8,[39,11],null,[["@onClick","@showInput","@icon","@class"],[[30,0,["composer","displayEditReason"]],[30,0,["composer","showEditReason"]],"info-circle","display-edit-reason"]],[["default"],[[[[1,"\\n                  "],[8,[39,12],null,[["@value","@id","@maxlength","@placeholderKey"],[[30,0,["composer","editReason"]],"edit-reason","255","composer.edit_reason_placeholder"]],null],[1,"\\n                "]],[]]]]],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,5],null,[["@name","@outletArgs"],["before-composer-controls",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n\\n          "],[8,[39,13],null,[["@composeState","@showToolbar","@toggleComposer","@toggleToolbar","@toggleFullscreen","@disableTextarea"],[[30,0,["composer","model","composeState"]],[30,0,["composer","showToolbar"]],[30,0,["composer","toggle"]],[30,0,["composer","toggleToolbar"]],[30,0,["composer","fullscreenComposer"]],[30,0,["composer","disableTextarea"]]]],null],[1,"\\n        "],[13],[1,"\\n\\n        "],[8,[39,14],null,[["@topic","@composer","@lastValidatedAt","@canWhisper","@storeToolbarState","@onPopupMenuAction","@showUploadModal","@popupMenuOptions","@draftStatus","@isUploading","@isProcessingUpload","@allowUpload","@uploadIcon","@isCancellable","@uploadProgress","@groupsMentioned","@cannotSeeMention","@hereMention","@importQuote","@togglePreview","@processPreview","@showToolbar","@afterRefresh","@focusTarget","@disableTextarea","@formTemplateIds"],[[30,0,["composer","topic"]],[30,0,["composer","model"]],[30,0,["composer","lastValidatedAt"]],[30,0,["composer","canWhisper"]],[30,0,["composer","storeToolbarState"]],[30,0,["composer","onPopupMenuAction"]],[28,[37,15],["showUploadSelector"],null],[30,0,["composer","popupMenuOptions"]],[30,0,["composer","model","draftStatus"]],[30,0,["composer","isUploading"]],[30,0,["composer","isProcessingUpload"]],[30,0,["composer","allowUpload"]],[30,0,["composer","uploadIcon"]],[30,0,["composer","isCancellable"]],[30,0,["composer","uploadProgress"]],[30,0,["composer","groupsMentioned"]],[30,0,["composer","cannotSeeMention"]],[30,0,["composer","hereMention"]],[30,0,["composer","importQuote"]],[30,0,["composer","togglePreview"]],[30,0,["composer","showPreview"]],[30,0,["composer","showToolbar"]],[30,0,["composer","afterRefresh"]],[30,0,["composer","focusTarget"]],[30,0,["composer","disableTextarea"]],[30,0,["composer","formTemplateIds"]]]],[["default"],[[[[1,"\\n          "],[10,0],[14,0,"composer-fields"],[12],[1,"\\n            "],[8,[39,5],null,[["@name","@outletArgs"],["before-composer-fields",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n"],[41,[51,[30,0,["composer","model","viewFullscreen"]]],[[[41,[30,0,["composer","model","canEditTitle"]],[[[41,[30,0,["composer","model","creatingPrivateMessage"]],[[[1,"                  "],[10,0],[14,0,"user-selector"],[12],[1,"\\n                    "],[8,[39,16],null,[["@topicId","@recipients","@hasGroups","@focusTarget","@class"],[[30,0,["composer","topicModel","id"]],[30,0,["composer","model","targetRecipients"]],[30,0,["composer","model","hasTargetGroups"]],[30,0,["composer","focusTarget"]],[28,[37,17],["users-input",[52,[30,0,["composer","showWarning"]]," can-warn"]],null]]],null],[1,"\\n"],[41,[30,0,["composer","showWarning"]],[[[1,"                      "],[10,"label"],[14,0,"add-warning"],[12],[1,"\\n                        "],[8,[39,18],null,[["@type","@checked"],["checkbox",[30,0,["composer","model","isWarning"]]]],null],[1,"\\n                        "],[10,1],[12],[1,[28,[35,9],["composer.add_warning"],null]],[13],[1,"\\n                      "],[13],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n"]],[]],null],[1,"\\n                "],[10,0],[15,0,[29,["title-and-category\\n                    ",[52,[30,0,["composer","showPreview"]],"with-preview"]]]],[12],[1,"\\n                  "],[8,[39,19],null,[["@composer","@lastValidatedAt","@focusTarget"],[[30,0,["composer","model"]],[30,0,["composer","lastValidatedAt"]],[30,0,["composer","focusTarget"]]]],null],[1,"\\n\\n"],[41,[30,0,["composer","model","showCategoryChooser"]],[[[1,"                    "],[10,0],[14,0,"category-input"],[12],[1,"\\n                      "],[8,[39,20],null,[["@value","@onChange","@options"],[[30,0,["composer","model","categoryId"]],[30,0,["composer","updateCategory"]],[28,[37,6],null,[["disabled","scopedCategoryId","prioritizedCategoryId"],[[30,0,["composer","disableCategoryChooser"]],[30,0,["composer","scopedCategoryId"]],[30,0,["composer","prioritizedCategoryId"]]]]]]],null],[1,"\\n                      "],[8,[39,21],null,[["@validation"],[[30,0,["composer","categoryValidation"]]]],null],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","canEditTags"]],[[[1,"                    "],[8,[39,22],null,[["@value","@onChange","@options"],[[30,0,["composer","model","tags"]],[28,[37,23],[[30,0],[28,[37,24],[[30,0,["composer","model","tags"]]],null]],null],[28,[37,6],null,[["disabled","categoryId","minimum"],[[30,0,["composer","disableTagsChooser"]],[30,0,["composer","model","categoryId"]],[30,0,["composer","model","minimumRequiredTags"]]]]]]],null],[1,"\\n                    "],[8,[39,21],null,[["@validation"],[[30,0,["composer","tagValidation"]]]],null],[1,"\\n"]],[]],null],[1,"\\n                  "],[8,[39,5],null,[["@name","@outletArgs"],["after-title-and-category",[28,[37,6],null,[["model","tagValidation","canEditTags","disabled"],[[30,0,["composer","model"]],[30,0,["composer","tagValidation"]],[30,0,["composer","canEditTags"]],[30,0,["composer","disableTagsChooser"]]]]]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n              "],[10,1],[12],[1,"\\n                "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["composer-fields","div",[28,[37,6],null,[["model","showPreview"],[[30,0,["composer","model"]],[30,0,["composer","showPreview"]]]]]]],null],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "]],[]]]]],[1,"\\n\\n        "],[10,1],[12],[1,"\\n          "],[8,[39,5],null,[["@name","@outletArgs"],["composer-after-composer-editor",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"submit-panel"],[12],[1,"\\n          "],[10,1],[12],[1,"\\n            "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["composer-fields-below","div",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"save-or-cancel"],[12],[1,"\\n            "],[8,[39,25],null,[["@action","@icon","@label","@forwardEvent","@disableSubmit"],[[30,0,["composer","saveAction"]],[30,0,["composer","saveIcon"]],[30,0,["composer","saveLabel"]],true,[30,0,["composer","disableSubmit"]]]],null],[1,"\\n\\n"],[41,[30,0,["composer","site","mobileView"]],[[[1,"              "],[11,3],[24,6,""],[16,"title",[28,[37,9],["cancel"],null]],[24,0,"cancel"],[4,[38,26],["click",[30,0,["composer","cancel"]]],null],[12],[1,"\\n"],[41,[30,0,["composer","canEdit"]],[[[1,"                  "],[1,[28,[35,10],["times"],null]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,10],["far-trash-alt"],null]],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n"]],[]],[[[1,"              "],[11,3],[24,6,""],[24,0,"cancel"],[4,[38,26],["click",[30,0,["composer","cancel"]]],null],[12],[1,[28,[35,9],["close"],null]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["composer","site","mobileView"]],[[[41,[30,0,["composer","whisperOrUnlistTopic"]],[[[1,"                "],[10,1],[14,0,"whisper"],[12],[1,"\\n                  "],[1,[28,[35,10],["far-eye-slash"],null]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","model","noBump"]],[[[1,"                "],[10,1],[14,0,"no-bump"],[12],[1,[28,[35,10],["anchor"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n            "],[10,1],[12],[1,"\\n              "],[8,[39,5],null,[["@name","@outletArgs"],["composer-after-save-or-cancel",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n"],[41,[30,0,["composer","site","mobileView"]],[[[1,"            "],[10,1],[12],[1,"\\n              "],[8,[39,5],null,[["@name","@outletArgs"],["composer-mobile-buttons-bottom",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n\\n"],[41,[30,0,["composer","allowUpload"]],[[[1,"              "],[10,3],[14,1,"mobile-file-upload"],[15,0,[29,["btn btn-default no-text mobile-file-upload\\n                  ",[52,[30,0,["composer","isUploading"]],"hidden"]]]],[15,"aria-label",[28,[37,9],["composer.upload_title"],null]],[12],[1,"\\n                "],[1,[28,[35,10],[[30,0,["composer","uploadIcon"]]],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n            "],[11,3],[24,6,""],[24,0,"btn btn-default no-text mobile-preview"],[16,"title",[28,[37,9],["composer.show_preview"],null]],[16,"aria-label",[28,[37,9],["preview"],null]],[4,[38,26],["click",[30,0,["composer","togglePreview"]]],null],[12],[1,"\\n              "],[1,[28,[35,10],["desktop"],null]],[1,"\\n            "],[13],[1,"\\n\\n"],[41,[30,0,["composer","showPreview"]],[[[1,"              "],[8,[39,27],null,[["@action","@class","@ariaLabel","@icon"],[[30,0,["composer","togglePreview"]],"hide-preview","composer.hide_preview","pencil-alt"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[28,[37,28],[[30,0,["composer","isUploading"]],[30,0,["composer","isProcessingUpload"]]],null],[[[1,"            "],[10,0],[14,1,"file-uploading"],[12],[1,"\\n"],[41,[30,0,["composer","isProcessingUpload"]],[[[1,"                "],[1,[28,[35,29],null,[["size"],["small"]]]],[10,1],[12],[1,[28,[35,9],["upload_selector.processing"],null]],[13],[1,"\\n"]],[]],[[[1,"                "],[1,[28,[35,29],null,[["size"],["small"]]]],[10,1],[12],[1,[28,[35,9],["upload_selector.uploading"],null]],[1,"\\n                  "],[1,[30,0,["composer","uploadProgress"]]],[1,"%"],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["composer","isCancellable"]],[[[1,"                "],[11,3],[24,6,""],[24,1,"cancel-file-upload"],[4,[38,26],["click",[30,0,["composer","cancelUpload"]]],null],[12],[1,[28,[35,10],["times"],null]],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[10,0],[15,0,[52,[30,0,["composer","isUploading"]],"hidden"]],[14,1,"draft-status"],[12],[1,"\\n"],[41,[30,0,["composer","model","draftStatus"]],[[[1,"              "],[10,1],[14,0,"draft-error"],[15,"title",[30,0,["composer","model","draftStatus"]]],[12],[1,"\\n"],[41,[30,0,["composer","model","draftConflictUser"]],[[[1,"                  "],[1,[28,[35,30],[[30,0,["composer","model","draftConflictUser"]]],[["imageSize"],["small"]]]],[1,"\\n                  "],[1,[28,[35,10],["user-edit"],null]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,10],["exclamation-triangle"],null]],[1,"\\n"]],[]]],[41,[51,[30,0,["composer","site","mobileView"]]],[[[1,"                  "],[1,[30,0,["composer","model","draftStatus"]]],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n\\n"],[41,[51,[30,0,["site","mobileView"]]],[[[1,"            "],[8,[39,27],null,[["@action","@translatedTitle","@icon","@class"],[[30,0,["composer","togglePreview"]],[30,0,["composer","toggleText"]],"angle-double-left",[28,[37,17],["btn-flat btn-mini-toggle toggle-preview ",[52,[51,[30,0,["composer","showPreview"]]],"active"]],null]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"saving-text"],[12],[1,"\\n"],[41,[30,0,["composer","model","createdPost"]],[[[1,"          "],[1,[28,[35,9],["composer.saved"],null]],[1,"\\n          "],[11,3],[16,6,[30,0,["composer","createdPost","url"]]],[24,0,"permalink"],[4,[38,26],["click",[30,0,["composer","viewNewReply"]]],null],[12],[1,[28,[35,9],["composer.view_new_post"],null]],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,9],["composer.saving"],null]],[1,"\\n          "],[1,[28,[35,29],null,[["size"],["small"]]]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"draft-text"],[12],[1,"\\n"],[41,[30,0,["composer","model","topic"]],[[[1,"          "],[1,[28,[35,10],["share"],null]],[1,"\\n          "],[1,[28,[35,31],[[30,0,["composer","draftTitle"]]],null]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,9],["composer.saved_draft"],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n\\n      "],[8,[39,13],null,[["@composeState","@toggleFullscreen","@toggleComposer","@toggleToolbar"],[[30,0,["composer","model","composeState"]],[30,0,["composer","openIfDraft"]],[30,0,["composer","toggle"]],[30,0,["composer","toggleToolbar"]]]],null],[1,"\\n"]],[]]]],[]],null]],[]]]]]],[],false,["composer-body","if","composer-messages","composer-fullscreen-prompt","I18n","plugin-outlet","hash","unless","composer-action-title","i18n","d-icon","link-to-input","text-field","composer-toggles","composer-editor","route-action","composer-user-selector","concat","input","composer-title","category-chooser","popup-input-tip","mini-tag-chooser","action","mut","composer-save-button","on","d-button","or","loading-spinner","avatar","html-safe"]]',moduleName:"discourse/components/composer-container.hbs",isStrictMode:!1})
let d=(o=class extends n.default{constructor(){super(...arguments),a(this,"composer",s,this),a(this,"site",l,this)}},s=u(o.prototype,"composer",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=u(o.prototype,"site",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)
e.default=d,(0,t.setComponentTemplate)(c,d)})),define("discourse/components/composer-editor",["exports","@ember/component","@ember/template-factory","discourse/lib/uploads","@ember/object/computed","@uppy/core","pretty-text/upload-short-url","discourse/lib/utilities","discourse-common/utils/decorators","discourse/lib/link-hashtags","discourse/lib/hashtag-autocomplete","discourse/lib/link-mentions","@ember/runloop","discourse-common/lib/later","discourse/models/composer","discourse/mixins/composer-upload-uppy","discourse/mixins/composer-video-thumbnail-uppy","@ember/object","I18n","discourse/lib/ajax","discourse-common/lib/debounce","discourse-common/lib/raw-templates","discourse-common/lib/icon-library","discourse-common/config/environment","discourse/lib/load-oneboxes","discourse/lib/put-cursor-at-end","discourse/lib/user-search","discourse/lib/user-status-on-autocomplete"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w,k,x,P,O,T,S){var j,C,z,I,E,M,D,N
function L(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addComposerUploadHandler=function(e,t){F.push({extensions:e,method:t})},e.addComposerUploadMarkdownResolver=function(e){B.push(e)},e.addComposerUploadPreProcessor=function(e,t){if(!(e.prototype instanceof o.BasePlugin))throw new Error("Composer upload preprocessors must inherit from the Uppy BasePlugin class.")
R.push({pluginClass:e,optionsResolverFn:t})},e.cleanUpComposerUploadHandler=function(){F.length=0},e.cleanUpComposerUploadMarkdownResolver=function(){B=[]},e.cleanUpComposerUploadPreProcessor=function(){R=[]},e.default=void 0
const A=(0,i.createTemplateFactory)({id:"1+yT9+X2",block:'[[[8,[39,0],null,[["@value","@placeholder","@previewUpdated","@markdownOptions","@extraButtons","@importQuote","@showUploadModal","@togglePreview","@processPreview","@validation","@loading","@forcePreview","@showLink","@composerEvents","@onExpandPopupMenuOptions","@onPopupMenuAction","@popupMenuOptions","@formTemplateIds","@replyingToTopic","@editingPost","@disabled","@outletArgs"],[[30,0,["composer","reply"]],[30,0,["replyPlaceholder"]],[28,[37,1],[[30,0],"previewUpdated"],null],[30,0,["markdownOptions"]],[28,[37,1],[[30,0],"extraButtons"],null],[28,[37,1],[[30,0],"importQuote"],null],[30,0,["showUploadModal"]],[28,[37,1],[[30,0],"togglePreview"],null],[30,0,["processPreview"]],[30,0,["validation"]],[30,0,["composer","loading"]],[30,0,["forcePreview"]],[30,0,["showLink"]],true,[28,[37,1],[[30,0],"onExpandPopupMenuOptions"],null],[30,0,["onPopupMenuAction"]],[30,0,["popupMenuOptions"]],[30,0,["formTemplateIds"]],[30,0,["composer","replyingToTopic"]],[30,0,["composer","editingPost"]],[30,0,["disableTextarea"]],[28,[37,2],null,[["composer","editorType"],[[30,0,["composer"]],"composer"]]]]],[["default"],[[[[1,"\\n  "],[18,1,null],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[30,0,["allowUpload"]],[[[1,"  "],[8,[39,5],[[24,3,"file-uploader"]],[["@fileInputId","@allowMultiple"],["file-uploader",true]],null],[1,"\\n"]],[]],null]],["&default"],false,["d-editor","action","hash","yield","if","pick-files-button"]]',moduleName:"discourse/components/composer-editor.hbs",isStrictMode:!1}),U=/!\[(.*?)\|(\d{1,4}x\d{1,4})(,\s*\d{1,3}%)?(.*?)\]\((upload:\/\/.*?)\)(?!(.*`))/g
let F=[]
let R=[]
let B=[]
var q=(0,t.setComponentTemplate)(A,t.default.extend(f.default,g.default,(j=(0,a.default)("composer.requiredCategoryMissing"),C=(0,a.observes)("focusTarget"),z=(0,a.on)("didInsertElement"),I=(0,a.default)("composer.reply","composer.replyLength","composer.missingReplyCharacters","composer.minimumPostLength","lastValidatedAt"),E=(0,a.debounce)(2e3),M=(0,a.debounce)(2e3),D=(0,a.on)("willDestroyElement"),N={classNameBindings:["showToolbar:toolbar-visible",":wmd-controls"],editorClass:".d-editor",fileUploadElementId:"file-uploader",mobileFileUploaderId:"mobile-file-upload",composerEventPrefix:"composer",uploadType:"composer",uppyId:"composer-editor-uppy",composerModel:(0,r.alias)("composer"),composerModelContentKey:"reply",editorInputClass:".d-editor-input",shouldBuildScrollMap:!0,scrollMap:null,processPreview:!0,uploadMarkdownResolvers:B,uploadPreProcessors:R,uploadHandlers:F,init(){this._super(...arguments),this.warnedCannotSeeMentions=[],this.warnedGroupMentions=[]},replyPlaceholder(e){if(e)return"composer.reply_placeholder_choose_category"
return`composer.${(0,n.authorizesOneOrMoreImageExtensions)(this.currentUser.staff,this.siteSettings)?"reply_placeholder":"reply_placeholder_no_images"}`},showLink(){return this.currentUser&&"none"!==this.currentUser.link_posting_access},setFocus(){"editor"===this.focusTarget&&(0,O.default)(this.element.querySelector("textarea"))},markdownOptions(){return{previewing:!0,formatUsername:l.formatUsername,lookupAvatarByPostNumber:(e,t)=>{const i=this.topic
if(!i)return
const n=i.get("postStream.posts")
if(n&&t===i.get("id")){const t=n.findBy("post_number",e)
if(t)return(0,l.tinyAvatar)(t.get("avatar_template"))}},lookupPrimaryUserGroupByPostNumber:(e,t)=>{const i=this.topic
if(!i)return
const n=i.get("postStream.posts")
if(n&&t===i.get("id")){const t=n.findBy("post_number",e)
if(t)return t.primary_group_name}},hashtagTypesInPriorityOrder:this.site.hashtag_configurations["topic-composer"],hashtagIcons:this.site.hashtag_icons}},_afterMentionComplete(e){this.composer.set("reply",e),(0,p.schedule)("afterRender",(()=>{const e=this.element.querySelector(".d-editor-input")
e?.blur(),e?.focus()}))},_composerEditorInit(){const e=$(this.element.querySelector(".d-editor-input"))
this.siteSettings.enable_mentions&&e.autocomplete({template:(0,w.findRawTemplate)("user-selector-autocomplete"),dataSource:e=>((0,S.destroyTippyInstances)(),(0,T.default)({term:e,topicId:this.topic?.id,categoryId:this.topic?.category_id||this.composer?.categoryId,includeGroups:!0}).then((e=>((0,S.initUserStatusHtml)(e.users),e)))),onRender:e=>{(0,S.renderUserStatusHtml)(e)},key:"@",transformComplete:e=>e.username||e.name,afterComplete:this._afterMentionComplete,triggerRule:e=>!(0,l.inCodeBlock)(e.value,(0,l.caretPosition)(e)),onClose:S.destroyTippyInstances}),this.element.querySelector(".d-editor-input")?.addEventListener("scroll",this._throttledSyncEditorAndPreviewScroll),this.get("composer.canEditTitle")||(0,O.default)(this.element.querySelector(".d-editor-input")),this.allowUpload&&(this._bindUploadTarget(),this._bindMobileUploadButton()),this.appEvents.trigger(`${this.composerEventPrefix}:will-open`)},validation(e,t,i,n,r){if(this.get("composer.post.post_type")===this.site.get("post_types.small_action"))return
let o
if(t<1)o=y.default.t("composer.error.post_missing")
else if(i>0){o=y.default.t("composer.error.post_length",{count:n})
const e=this.get("currentUser.trust_level")
0!==e&&1!==e||(o+="<br/>"+y.default.t("composer.error.try_like",{heart:(0,k.iconHTML)("heart",{label:y.default.t("likes_lowercase",{count:1})})}))}return o?b.default.create({failed:!0,reason:o,lastShownAt:r}):void 0},_resetShouldBuildScrollMap(){this.set("shouldBuildScrollMap",!0)},_handleInputInteraction(e){const t=this.element.querySelector(".d-editor-preview-wrapper")
$(t).is(":visible")&&(t.removeEventListener("scroll",this._handleInputOrPreviewScroll),e.target.addEventListener("scroll",this._handleInputOrPreviewScroll))},_handleInputOrPreviewScroll(e){this._syncScroll(this._syncEditorAndPreviewScroll,$(e.target),$(this.element.querySelector(".d-editor-preview-wrapper")))},_handlePreviewInteraction(e){this.element.querySelector(".d-editor-input")?.removeEventListener("scroll",this._handleInputOrPreviewScroll),e.target?.addEventListener("scroll",this._handleInputOrPreviewScroll)},_syncScroll(e,t,i){this.scrollMap&&!this.shouldBuildScrollMap||(this.set("scrollMap",this._buildScrollMap(t,i)),this.set("shouldBuildScrollMap",!1)),(0,p.throttle)(this,e,t,i,this.scrollMap,20)},_buildScrollMap(e,t){let i=$("<div />").css({position:"absolute",height:"auto",visibility:"hidden",width:e[0].clientWidth,"font-size":e.css("font-size"),"font-family":e.css("font-family"),"line-height":e.css("line-height"),"white-space":e.css("white-space")}).appendTo("body")
const n=[]
let r=0
e.val().split("\n").forEach((e=>{if(n.push(r),0===e.length)r++
else{let t,n
i.text(e),t=parseFloat(i.css("height")),n=parseFloat(i.css("line-height")),r+=Math.round(t/n)}})),n.push(r),i.remove()
const o=t.offset().top,s=t.scrollTop()-o-(e.offset().top-o),l=[],a=[]
for(let c=0;c<r;c++)a.push(-1)
l.push(0),a[0]=0,t.find(".preview-sync-line").each(((e,t)=>{let i=$(t),r=i.data("line-number"),o=n[r]
0!==o&&l.push(o),a[o]=Math.round(i.offset().top+s)})),l.push(r),a[r]=t[0].scrollHeight
let u=0
for(let c=1;c<r;c++){if(-1!==a[c]){u++
continue}let e=l[u],t=l[u+1]
a[c]=((a[t]*(c-e)+a[e]*(t-c))/(t-e)).toFixed(2)}return a},_throttledSyncEditorAndPreviewScroll(e){const t=$(this.element.querySelector(".d-editor-preview-wrapper"));(0,p.throttle)(this,this._syncEditorAndPreviewScroll,$(e.target),t,20)},_syncEditorAndPreviewScroll(e,t){if(!e)return
if(0===e.scrollTop())return void t.scrollTop(0)
const i=e[0].scrollHeight,n=t[0].scrollHeight
if(e.height()+e.scrollTop()+100>i)return void t.scrollTop(n)
const r=e.scrollTop()*(n/i)
t.scrollTop(r+50)},_renderUnseenMentions(e,t){(0,d.fetchUnseenMentions)({names:t,topicId:this.get("composer.topic.id"),allowedNames:this.get("composer.targetRecipients")?.split(",")}).then((t=>{(0,d.linkSeenMentions)(e,this.siteSettings),this._warnMentionedGroups(e),this._warnCannotSeeMention(e),this._warnHereMention(t.here_count)}))},_renderUnseenHashtags(e){let t
const i=this.site.hashtag_configurations["topic-composer"]
t=this.siteSettings.enable_experimental_hashtag_autocomplete?(0,c.linkSeenHashtagsInContext)(i,e):(0,u.linkSeenHashtags)(e),t.length>0&&(this.siteSettings.enable_experimental_hashtag_autocomplete?(0,c.fetchUnseenHashtagsInContext)(i,t).then((()=>{(0,c.linkSeenHashtagsInContext)(i,e)})):(0,u.fetchUnseenHashtags)(t).then((()=>{(0,u.linkSeenHashtags)(e)})))},_warnMentionedGroups(e){(0,p.schedule)("afterRender",(()=>{e.querySelectorAll(".mention-group[data-mentionable-user-count]").forEach((e=>{const{name:t}=e.dataset
this.warnedGroupMentions.includes(t)||this._isInQuote(e)||(this.warnedGroupMentions.push(t),this.groupsMentioned({name:t,userCount:e.dataset.mentionableUserCount,maxMentions:e.dataset.maxMentions}))}))}))},_warnCannotSeeMention(e){this.composer.draftKey!==h.default.NEW_PRIVATE_MESSAGE_KEY&&(e.querySelectorAll(".mention[data-reason]").forEach((e=>{const{name:t}=e.dataset
this.warnedCannotSeeMentions.includes(t)||(this.warnedCannotSeeMentions.push(t),this.cannotSeeMention({name:t,reason:e.dataset.reason}))})),e.querySelectorAll(".mention-group[data-reason]").forEach((e=>{const{name:t}=e.dataset
this.warnedCannotSeeMentions.includes(t)||(this.warnedCannotSeeMentions.push(t),this.cannotSeeMention({name:t,reason:e.dataset.reason,notifiedCount:e.dataset.notifiedUserCount,isGroup:!0}))})))},_warnHereMention(e){e&&0!==e&&this.hereMention(e)},_handleImageScaleButtonClick(e){if(!e.target.classList.contains("scale-btn"))return
const t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),i=e.target.dataset.scale,n=this.get("composer.reply").match(U)
if(n){const e=n[t]
if(e){const r=e.replace(U,`![$1|$2, ${i}%$4]($5)`)
this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,n[t],r,{regex:U,index:t})}}e.preventDefault()},resetImageControls(e){const t=e.querySelector(".scale-btn-container"),i=e.querySelector(".delete-image-button"),n=e.querySelector(".alt-text-readonly-container"),r=e.querySelector(".alt-text-edit-container")
t.removeAttribute("hidden"),i.removeAttribute("hidden"),n.removeAttribute("hidden"),e.removeAttribute("editing"),r.setAttribute("hidden","true")},commitAltText(e){const t=parseInt(e.getAttribute("data-image-index"),10),i=this.get("composer.reply").match(U)[t],n=e.querySelector("input.alt-text-input"),r=i.replace(U,`![${n.value}|$2$3$4]($5)`)
this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,i,r),this.resetImageControls(e)},_handleAltTextInputKeypress(e){if(e.target.classList.contains("alt-text-input")&&("["!==e.key&&"]"!==e.key||e.preventDefault(),"Enter"===e.key)){const t=e.target.closest(".button-wrapper")
this.commitAltText(t)}},_handleAltTextEditButtonClick(e){if(!e.target.classList.contains("alt-text-edit-btn"))return
const t=e.target.closest(".button-wrapper"),i=t.querySelector(".scale-btn-container"),n=t.querySelector(".delete-image-button"),r=t.querySelector(".alt-text-readonly-container"),o=r.querySelector(".alt-text"),s=t.querySelector(".alt-text-edit-container"),l=s.querySelector(".alt-text-input")
t.setAttribute("editing","true"),i.setAttribute("hidden","true"),n.setAttribute("hidden","true"),r.setAttribute("hidden","true"),l.value=o.textContent,s.removeAttribute("hidden"),l.focus(),e.preventDefault()},_handleAltTextOkButtonClick(e){if(!e.target.classList.contains("alt-text-edit-ok"))return
const t=e.target.closest(".button-wrapper")
this.commitAltText(t)},_handleAltTextCancelButtonClick(e){if(!e.target.classList.contains("alt-text-edit-cancel"))return
const t=e.target.closest(".button-wrapper")
this.resetImageControls(t)},_handleImageDeleteButtonClick(e){if(!e.target.classList.contains("delete-image-button"))return
const t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),i=this.get("composer.reply").match(U)
this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,i[t],"",{regex:U,index:t})},_handleImageGridButtonClick(e){if(!e.target.classList.contains("wrap-image-grid-button"))return
const t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),i=this.get("composer.reply"),n=i.match(U),r=t+parseInt(e.target.dataset.imageCount,10)-1,o=this.element.querySelector(".d-editor-input")
o.selectionStart=i.indexOf(n[t]),o.selectionEnd=i.indexOf(n[r])+n[r].length,this.appEvents.trigger(`${this.composerEventPrefix}:apply-surround`,"[grid]","[/grid]","grid_surround",{useBlockMode:!0})},_registerImageAltTextButtonClick(e){e.addEventListener("click",this._handleAltTextEditButtonClick),e.addEventListener("click",this._handleAltTextOkButtonClick),e.addEventListener("click",this._handleAltTextCancelButtonClick),e.addEventListener("click",this._handleImageDeleteButtonClick),e.addEventListener("keypress",this._handleAltTextInputKeypress),e.addEventListener("click",this._handleImageGridButtonClick)},_composerClosed(){this._unbindMobileUploadButton(),this.appEvents.trigger(`${this.composerEventPrefix}:will-close`),(0,p.next)((()=>{(0,m.default)((()=>this.appEvents.trigger(`${this.composerEventPrefix}:closed`)),(0,x.isTesting)()?0:400)})),this.element.querySelector(".d-editor-input")?.removeEventListener("scroll",this._throttledSyncEditorAndPreviewScroll)
const e=this.element.querySelector(".d-editor-preview-wrapper")
e?.removeEventListener("click",this._handleImageScaleButtonClick),e?.removeEventListener("click",this._handleAltTextEditButtonClick),e?.removeEventListener("click",this._handleAltTextOkButtonClick),e?.removeEventListener("click",this._handleImageDeleteButtonClick),e?.removeEventListener("click",this._handleImageGridButtonClick),e?.removeEventListener("click",this._handleAltTextCancelButtonClick),e?.removeEventListener("keypress",this._handleAltTextInputKeypress)},onExpandPopupMenuOptions(e){const t=e.selected
e.selectText(t.start,t.end-t.start),this.storeToolbarState(e)},showPreview(){this.send("togglePreview")},_isInQuote(e){let t=e.parentElement
for(;t&&!this._isPreviewRoot(t);){if(this._isQuote(t))return!0
t=t.parentElement}return!1},_isPreviewRoot:e=>"DIV"===e.tagName&&e.classList.contains("d-editor-preview"),_isQuote:e=>"ASIDE"===e.tagName&&e.classList.contains("quote"),_cursorIsOnEmptyLine(){const e=this.element.querySelector(".d-editor-input"),t=e.selectionStart
return 0===t||"\n"===e.value.charAt(t-1)},_findMatchingUploadHandler(e){return this.uploadHandlers.find((t=>{const i=t.extensions.join("|")
return new RegExp(`\\.(${i})$`,"i").test(e)}))},actions:{importQuote(e){this.importQuote(e)},onExpandPopupMenuOptions(e){this.onExpandPopupMenuOptions(e)},togglePreview(){this.togglePreview()},extraButtons(e){e.addButton({id:"quote",group:"fontStyles",icon:"far-comment",sendAction:this.importQuote,title:"composer.quote_post_title",unshift:!0}),this.allowUpload&&this.uploadIcon&&!this.site.mobileView&&e.addButton({id:"upload",group:"insertions",icon:this.uploadIcon,title:"upload",sendAction:this.showUploadModal}),e.addButton({id:"options",group:"extras",icon:"cog",title:"composer.options",sendAction:this.onExpandPopupMenuOptions.bind(this),popupMenu:!0})},previewUpdated(e){const t=$(e),i=(0,d.linkSeenMentions)(e,this.siteSettings)
let n
i.length&&(0,v.default)(this,this._renderUnseenMentions,e,i,450),this._warnMentionedGroups(e),this._warnCannotSeeMention(e)
const r=this.site.hashtag_configurations["topic-composer"]
n=this.siteSettings.enable_experimental_hashtag_autocomplete?(0,c.linkSeenHashtagsInContext)(r,e):(0,u.linkSeenHashtags)(e),n.length>0&&(0,v.default)(this,this._renderUnseenHashtags,e,450);(0,v.default)(this,(()=>{const t=this.get("composer.post")
let i=!1
t&&!t.get("refreshedPost")&&(i=!0)
const n=(0,P.loadOneboxes)(e,_.ajax,this.get("composer.topic.id"),this.get("composer.category.id"),this.siteSettings.max_oneboxes_per_post,i)
i&&n>0&&t.set("refreshedPost",!0)}),450),(0,s.resolveAllShortUrls)(_.ajax,this.siteSettings,e),e.addEventListener("click",this._handleImageScaleButtonClick),this._registerImageAltTextButtonClick(e),this.trigger("previewRefreshed",e),this.afterRefresh(t)}}},L(N,"replyPlaceholder",[j],Object.getOwnPropertyDescriptor(N,"replyPlaceholder"),N),L(N,"showLink",[a.default],Object.getOwnPropertyDescriptor(N,"showLink"),N),L(N,"setFocus",[C],Object.getOwnPropertyDescriptor(N,"setFocus"),N),L(N,"markdownOptions",[a.default],Object.getOwnPropertyDescriptor(N,"markdownOptions"),N),L(N,"_afterMentionComplete",[a.bind],Object.getOwnPropertyDescriptor(N,"_afterMentionComplete"),N),L(N,"_composerEditorInit",[z],Object.getOwnPropertyDescriptor(N,"_composerEditorInit"),N),L(N,"validation",[I],Object.getOwnPropertyDescriptor(N,"validation"),N),L(N,"_handleInputInteraction",[a.bind],Object.getOwnPropertyDescriptor(N,"_handleInputInteraction"),N),L(N,"_handleInputOrPreviewScroll",[a.bind],Object.getOwnPropertyDescriptor(N,"_handleInputOrPreviewScroll"),N),L(N,"_handlePreviewInteraction",[a.bind],Object.getOwnPropertyDescriptor(N,"_handlePreviewInteraction"),N),L(N,"_throttledSyncEditorAndPreviewScroll",[a.bind],Object.getOwnPropertyDescriptor(N,"_throttledSyncEditorAndPreviewScroll"),N),L(N,"_warnMentionedGroups",[E],Object.getOwnPropertyDescriptor(N,"_warnMentionedGroups"),N),L(N,"_warnCannotSeeMention",[M],Object.getOwnPropertyDescriptor(N,"_warnCannotSeeMention"),N),L(N,"_handleImageScaleButtonClick",[a.bind],Object.getOwnPropertyDescriptor(N,"_handleImageScaleButtonClick"),N),L(N,"_handleAltTextInputKeypress",[a.bind],Object.getOwnPropertyDescriptor(N,"_handleAltTextInputKeypress"),N),L(N,"_handleAltTextEditButtonClick",[a.bind],Object.getOwnPropertyDescriptor(N,"_handleAltTextEditButtonClick"),N),L(N,"_handleAltTextOkButtonClick",[a.bind],Object.getOwnPropertyDescriptor(N,"_handleAltTextOkButtonClick"),N),L(N,"_handleAltTextCancelButtonClick",[a.bind],Object.getOwnPropertyDescriptor(N,"_handleAltTextCancelButtonClick"),N),L(N,"_handleImageDeleteButtonClick",[a.bind],Object.getOwnPropertyDescriptor(N,"_handleImageDeleteButtonClick"),N),L(N,"_handleImageGridButtonClick",[a.bind],Object.getOwnPropertyDescriptor(N,"_handleImageGridButtonClick"),N),L(N,"_composerClosed",[D],Object.getOwnPropertyDescriptor(N,"_composerClosed"),N),N)))
e.default=q})),define("discourse/components/composer-fullscreen-prompt",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"inbDeZ+q",block:'[[[11,0],[24,0,"composer-fullscreen-prompt"],[4,[38,0],["animationend",[30,1]],null],[12],[1,"\\n  "],[1,[28,[35,1],[[28,[37,2],["composer.exit_fullscreen_prompt"],null]],null]],[1,"\\n"],[13]],["@removeFullScreenExitPrompt"],false,["on","html-safe","i18n"]]',moduleName:"discourse/components/composer-fullscreen-prompt.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/composer-message",["exports","@ember/component","discourse-common/lib/deprecated","discourse-common/utils/decorators","discourse-common/lib/get-owner"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l,a,u,c,d,p,m=t.default.extend((o=(0,n.default)("message.templateName"),l=s={classNameBindings:[":composer-popup","message.extraClass"],layout(e){return(0,r.getOwner)(this).lookup(`template:composer/${e}`)},actions:{closeMessage(){(0,i.default)('You should use `action=(closeMessage message)` instead of `action=(action "closeMessage")`',{id:"discourse.composer-message.closeMessage"}),this.closeMessage(this.message)}}},a="layout",u=[o],c=Object.getOwnPropertyDescriptor(s,"layout"),d=s,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),s))
e.default=m})),define("discourse/components/composer-messages",["exports","@ember/component","@ember/template-factory","@ember-decorators/component","@ember/object","I18n","discourse/lib/link-lookup","@ember/object/computed","discourse/lib/ajax","@ember/service","@glimmer/tracking","discourse-common/config/environment","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){var m,h,f,g,b,y,_,v
function w(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function k(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function x(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const P=(0,i.createTemplateFactory)({id:"ui8KcclT",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["messages"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@message","@closeMessage","@shareModal","@switchPM"],[[30,1],[28,[37,3],[[30,0],"closeMessage"],null],[28,[37,4],[[28,[37,5],[[30,0,["showShareModal"]]],null],true],null],[28,[37,3],[[30,0],"switchPM"],null]]],null],[1,"\\n"],[41,[30,0,["showShareModal"]],[[[1,"    "],[8,[39,7],null,[["@closeModal","@model"],[[28,[37,4],[[28,[37,5],[[30,0,["showShareModal"]]],null],false],null],[30,0,["shareModalData"]]]],null],[1,"\\n"]],[]],null]],[1]],null]],["message"],false,["each","-track-array","composer-message","action","fn","mut","if","modal/share-topic"]]',moduleName:"discourse/components/composer-messages.hbs",isStrictMode:!1})
let O={},T=(m=(0,n.classNameBindings)(":composer-popup-container","hidden"),h=(0,l.not)("composer.viewOpenOrFullscreen"),f=(0,p.debounce)(d.INPUT_DELAY),m((b=class extends t.default{constructor(){super(...arguments),w(this,"modal",y,this),w(this,"showShareModal",_,this),k(this,"checkedMessages",!1),k(this,"messages",null),k(this,"messagesByTemplate",null),k(this,"queuedForTyping",null),k(this,"similarTopics",null),k(this,"usersNotSeen",null),k(this,"recipientNames",[]),w(this,"hidden",v,this),k(this,"_lastSimilaritySearch",null),k(this,"_similarTopicsMessage",null)}didInsertElement(){super.didInsertElement(...arguments),this.appEvents.on("composer:typed-reply",this,this._typedReply),this.appEvents.on("composer:opened",this,this._findMessages),this.appEvents.on("composer:find-similar",this,this._findSimilar),this.appEvents.on("composer-messages:close",this,this._closeTop),this.appEvents.on("composer-messages:create",this,this._create),this.reset()}willDestroyElement(){super.willDestroyElement(...arguments),this.appEvents.off("composer:typed-reply",this,this._typedReply),this.appEvents.off("composer:opened",this,this._findMessages),this.appEvents.off("composer:find-similar",this,this._findSimilar),this.appEvents.off("composer-messages:close",this,this._closeTop),this.appEvents.off("composer-messages:create",this,this._create)}_closeTop(){this.isDestroying||this.isDestroyed||(this.messages.popObject(),this.set("messageCount",this.messages.length))}_removeMessage(e){this.messages.removeObject(e),this.set("messageCount",this.messages.length)}_create(e){this.isDestroying||this.isDestroyed||(this.reset(),this.popup(r.default.create(e)))}reset(){this.setProperties({messages:[],messagesByTemplate:{},queuedForTyping:[],checkedMessages:!1,similarTopics:[]})}async _typedReply(){if(!this.isDestroying&&!this.isDestroyed){for(const e of this.queuedForTyping){if(this.composer.whisper&&e.hide_if_whisper)return
this.popup(e)}if(this.composer.privateMessage){if(this.composer.targetRecipientsArray.length>0&&this.composer.targetRecipientsArray.every((e=>e.name===this.currentUser.username))){const e=this.composer.store.createRecord("composer-message",{id:"yourself_confirm",templateName:"education",title:o.default.t("composer.yourself_confirm.title"),body:o.default.t("composer.yourself_confirm.body")})
this.popup(e)}const e=this.composer.targetRecipientsArray.filter((e=>"user"===e.type)).map((e=>{let{name:t}=e
return t}))
if(e.length>0&&e.length!==this.recipientNames.length&&!e.every(((e,t)=>e===this.recipientNames[t]))){this.recipientNames=e
const t=await(0,a.ajax)("/composer_messages/user_not_seen_in_a_while",{type:"GET",data:{usernames:e}})
if(this.isDestroying||this.isDestroyed)return
if(t.user_count>0&&this.usersNotSeen!==t.usernames.join("-")){this.set("usersNotSeen",t.usernames.join("-")),this.messagesByTemplate.education=void 0
let e,i=[]
t.usernames.forEach(((e,t)=>{i[t]=`<a class='mention' href='/u/${e}'>@${e}</a>`})),e=1===t.user_count?"composer.user_not_seen_in_a_while.single":"composer.user_not_seen_in_a_while.multiple"
const n=this.composer.store.createRecord("composer-message",{id:"user-not-seen",templateName:"education",body:o.default.t(e,{usernames:i.join(", "),time_ago:t.time_ago})})
this.popup(n)}}}}}async _findSimilar(){if(this.isDestroying||this.isDestroyed)return
if(!this.composer.creatingTopic)return
if(this.composer?.category?.form_template_ids.length>0)return
const e=(this.composer.reply||"").slice(0,200),t=this.composer.title||""
if(t.length<this.siteSettings.min_title_similar_length)return
const i=t+e
if(i===this._lastSimilaritySearch)return
this._lastSimilaritySearch=i,this._similarTopicsMessage||=this.composer.store.createRecord("composer-message",{id:"similar_topics",templateName:"similar-topics",extraClass:"similar-topics"})
const n=await this.composer.store.find("similar-topic",{title:t,raw:e})
this.isDestroying||this.isDestroyed||(this.similarTopics.clear(),this.similarTopics.pushObjects(n.content),this.similarTopics.length>0?(this._similarTopicsMessage.set("similarTopics",this.similarTopics),this.popup(this._similarTopicsMessage)):this._similarTopicsMessage&&this.hideMessage(this._similarTopicsMessage))}async _findMessages(){if(this.isDestroying||this.isDestroyed)return
if(this.checkedMessages)return
const e={composer_action:this.composer.action},t=this.composer.topic?.id,i=this.composer.post?.id
t&&(e.topic_id=t),i&&(e.post_id=i)
const n=`${e.composer_action}${e.topic_id}${e.post_id}`
let r
if(O.cacheKey===n)r=O.messages
else{if(r=await this.composer.store.find("composer-message",e),this.isDestroying||this.isDestroyed)return
O={messages:r,cacheKey:n}}r.extras?.duplicate_lookup&&this.addLinkLookup(new s.default(r.extras.duplicate_lookup)),this.set("checkedMessages",!0),r.forEach((e=>{e.wait_for_typing?this.queuedForTyping.addObject(e):this.popup(e)}))}closeMessage(e,t){t?.preventDefault(),this._removeMessage(e)}hideMessage(e){this._removeMessage(e),this.messagesByTemplate[e.templateName]=void 0}popup(e){this.messagesByTemplate[e.templateName]||(this.messages.pushObject(e),this.set("messageCount",this.messages.length),this.messagesByTemplate[e.templateName]=e)}get shareModalData(){const{topic:e}=this.composer
return{topic:e,category:e.category,allowInvites:e.details.can_invite_to&&!e.archived&&!e.closed&&!e.deleted}}switchPM(e){this.composer.set("action","privateMessage"),this.composer.set("targetRecipients",e.reply_username),this._removeMessage(e)}},y=x(b.prototype,"modal",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=x(b.prototype,"showShareModal",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=x(b.prototype,"hidden",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x(b.prototype,"_typedReply",[f],Object.getOwnPropertyDescriptor(b.prototype,"_typedReply"),b.prototype),x(b.prototype,"closeMessage",[r.action],Object.getOwnPropertyDescriptor(b.prototype,"closeMessage"),b.prototype),x(b.prototype,"hideMessage",[r.action],Object.getOwnPropertyDescriptor(b.prototype,"hideMessage"),b.prototype),x(b.prototype,"popup",[r.action],Object.getOwnPropertyDescriptor(b.prototype,"popup"),b.prototype),x(b.prototype,"switchPM",[r.action],Object.getOwnPropertyDescriptor(b.prototype,"switchPM"),b.prototype),g=b))||g)
e.default=T,(0,t.setComponentTemplate)(P,T)})),define("discourse/components/composer-save-button",["exports","@ember/component","@ember/template-factory","@glimmer/component","I18n","discourse/lib/utilities"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"WCQq3SOQ",block:'[[[8,[39,0],[[16,0,[29,["btn-primary create ",[52,[30,1],"disabled"]]]],[17,2]],[["@translatedTitle","@label","@action","@icon","@forwardEvent"],[[30,0,["translatedTitle"]],[30,3],[30,4],[30,5],[30,6]]],null]],["@disabledSubmit","&attrs","@label","@action","@icon","@forwardEvent"],false,["d-button","if"]]',moduleName:"discourse/components/composer-save-button.hbs",isStrictMode:!1})
class l extends n.default{get translatedTitle(){return r.default.t("composer.title",{modifier:(0,o.translateModKey)("Meta+")})}}e.default=l,(0,t.setComponentTemplate)(s,l)})),define("discourse/components/composer-title",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse-common/utils/decorators","@ember/runloop","@ember/object","I18n","discourse/lib/ajax","discourse-common/lib/debounce","discourse-common/config/environment","pretty-text/oneboxer","pretty-text/oneboxer-cache","discourse/lib/put-cursor-at-end"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g,b,y,_
function v(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const w=(0,i.createTemplateFactory)({id:"D8lYh/AJ",block:'[[[8,[39,0],null,[["@value","@id","@maxLength","@placeholderKey","@aria-label","@disabled","@autocomplete"],[[30,0,["composer","title"]],"reply-title",[30,0,["titleMaxLength"]],[30,0,["composer","titlePlaceholder"]],[28,[37,1],[[30,0,["composer","titlePlaceholder"]]],null],[30,0,["disabled"]],"off"]],null],[1,"\\n\\n"],[8,[39,2],null,[["@validation"],[[30,0,["validation"]]]],null]],[],false,["text-field","I18n","popup-input-tip"]]',moduleName:"discourse/components/composer-title.hbs",isStrictMode:!1})
var k=(0,t.setComponentTemplate)(w,t.default.extend((h=(0,r.default)("composer.titleLength","composer.missingTitleCharacters","composer.minimumTitleLength","lastValidatedAt"),f=(0,r.default)("watchForLink"),g=(0,r.observes)("composer.titleLength","watchForLink"),b=(0,r.observes)("composer.replyLength"),y=(0,r.default)("composer.title","composer.titleLength"),_={classNames:["title-input"],watchForLink:(0,n.alias)("composer.canEditTopicFeaturedLink"),disabled:(0,n.or)("composer.loading","composer.disableTitleInput"),didInsertElement(){this._super(...arguments),"title"===this.focusTarget&&(0,m.default)(this.element.querySelector("input")),this.get("composer.titleLength")>0&&(0,u.default)(this,this._titleChanged,10)},validation(e,t,i,n){let r
if(e<1?r=l.default.t("composer.error.title_missing"):t>0?r=l.default.t("composer.error.title_too_short",{count:i}):e>this.siteSettings.max_topic_title_length&&(r=l.default.t("composer.error.title_too_long",{count:this.siteSettings.max_topic_title_length})),r)return s.default.create({failed:!0,reason:r,lastShownAt:n})},titleMaxLength(e){return e?null:this.siteSettings.max_topic_title_length},_titleChanged(){0===this.get("composer.titleLength")&&this.set("autoPosted",!1),!this.autoPosted&&this.watchForLink&&((0,c.isTesting)()?(0,o.next)((()=>this._checkForUrl())):(0,u.default)(this,this._checkForUrl,500))},_clearFeaturedLink(){this.watchForLink&&this.bodyIsDefault()&&this.set("composer.featuredLink",null)},_checkForUrl(){if(this.element&&!this.isDestroying&&!this.isDestroyed&&this.isAbsoluteUrl&&this.bodyIsDefault()){if(this.get("composer.title").match(new RegExp("^https?:\\/\\/"+window.location.hostname,"i")))return
this.set("composer.loading",!0)
const e=document.createElement("a")
e.href=this.get("composer.title")
const t=(0,d.load)({elem:e,refresh:!1,ajax:a.ajax,synchronous:!0,categoryId:this.get("composer.category.id"),topicId:this.get("composer.topic.id")})
t&&t.then?t.then((()=>{const t=(0,p.lookupCache)(this.get("composer.title"))
this._updatePost(t||e)})).finally((()=>{this.set("composer.loading",!1),(0,o.schedule)("afterRender",(()=>{(0,m.default)(this.element.querySelector("input"))}))})):(this._updatePost(t),this.set("composer.loading",!1),(0,o.schedule)("afterRender",(()=>{(0,m.default)(this.element.querySelector("input"))})))}},_updatePost(e){if(e){const t=document.createRange().createContextualFragment(e),i=this.composer
if(this.set("autoPosted",!0),this.set("composer.featuredLink",this.get("composer.title")),i.appendText(this.get("composer.title"),null,{block:!0}),t.querySelector(".twitterstatus"))return void this.set("composer.title","")
const n=t.querySelector("h3, h4"),r=n&&n.textContent||t.firstElementChild&&t.firstElementChild.title
if(r)this.changeTitle(r)
else{const e=t.firstChild&&t.firstChild.attributes&&t.firstChild.attributes.title||t.querySelector("[title]")&&t.querySelector("[title]").attributes.title
e&&this.changeTitle(e)}}},changeTitle(e){e&&e.length>0&&this.set("composer.title",e.trim())},isAbsoluteUrl:(e,t)=>t>0&&/^(https?:)?\/\/[\w\.\-]+/i.test(e)&&!/\s/.test(e),bodyIsDefault(){const e=this.get("composer.reply")||""
return 0===e.length||e===(this.get("composer.category.topic_template")||"")}},v(_,"validation",[h],Object.getOwnPropertyDescriptor(_,"validation"),_),v(_,"titleMaxLength",[f],Object.getOwnPropertyDescriptor(_,"titleMaxLength"),_),v(_,"_titleChanged",[g],Object.getOwnPropertyDescriptor(_,"_titleChanged"),_),v(_,"_clearFeaturedLink",[b],Object.getOwnPropertyDescriptor(_,"_clearFeaturedLink"),_),v(_,"isAbsoluteUrl",[y],Object.getOwnPropertyDescriptor(_,"isAbsoluteUrl"),_),_)))
e.default=k})),define("discourse/components/composer-toggles",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o,s,l,a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"Sq1nta7E",block:'[[[10,0],[14,0,"composer-controls"],[12],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,0],null,[["@name","@connectorTagName"],["before-composer-toggles","div"]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1,"    "],[8,[39,2],null,[["@class","@icon","@action","@title","@preventFocus"],["btn-flat toggle-toolbar btn-mini-toggle","bars",[30,0,["toggleToolbar"]],[30,0,["toggleToolbarTitle"]],true]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showFullScreenButton"]],[[[1,"    "],[8,[39,2],null,[["@class","@icon","@action","@title"],["btn-flat toggle-fullscreen btn-mini-toggle",[30,0,["fullscreenIcon"]],[30,0,["toggleFullscreen"]],[30,0,["fullscreenTitle"]]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,2],null,[["@class","@icon","@action","@title"],["btn-flat toggler toggle-minimize btn-mini-toggle",[30,0,["toggleIcon"]],[30,0,["toggleComposer"]],[30,0,["toggleTitle"]]]],null],[1,"\\n"],[13]],[],false,["plugin-outlet","if","d-button"]]',moduleName:"discourse/components/composer-toggles.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend((r=(0,n.default)("composeState"),o=(0,n.default)("showToolbar"),s=(0,n.default)("composeState"),l=(0,n.default)("composeState"),a=(0,n.default)("composeState"),u=(0,n.default)("disableTextarea"),d(c={tagName:"",toggleTitle:e=>"draft"===e||"saving"===e?"composer.abandon":"composer.collapse",toggleToolbarTitle:e=>e?"composer.hide_toolbar":"composer.show_toolbar",fullscreenTitle:e=>"draft"===e?"composer.open":"fullscreen"===e?"composer.exit_fullscreen":"composer.enter_fullscreen",toggleIcon:e=>"draft"===e||"saving"===e?"times":"chevron-down",fullscreenIcon:e=>"draft"===e?"chevron-up":"fullscreen"===e?"discourse-compress":"discourse-expand",showFullScreenButton(e){return!this.site.mobileView&&!e}},"toggleTitle",[r],Object.getOwnPropertyDescriptor(c,"toggleTitle"),c),d(c,"toggleToolbarTitle",[o],Object.getOwnPropertyDescriptor(c,"toggleToolbarTitle"),c),d(c,"fullscreenTitle",[s],Object.getOwnPropertyDescriptor(c,"fullscreenTitle"),c),d(c,"toggleIcon",[l],Object.getOwnPropertyDescriptor(c,"toggleIcon"),c),d(c,"fullscreenIcon",[a],Object.getOwnPropertyDescriptor(c,"fullscreenIcon"),c),d(c,"showFullScreenButton",[u],Object.getOwnPropertyDescriptor(c,"showFullScreenButton"),c),c)))
e.default=m})),define("discourse/components/composer-user-selector",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"KhWwI0hr",block:'[[[8,[39,0],null,[["@id","@value","@onChange","@options"],["private-message-users",[30,0,["splitRecipients"]],[28,[37,1],[[30,0],"updateRecipients"],null],[28,[37,2],null,[["topicId","none","includeMessageableGroups","allowEmails","autoWrap"],[[30,0,["topicId"]],"composer.users_placeholder",true,[30,0,["currentUser","can_send_private_email_messages"]],true]]]]],null]],[],false,["email-group-user-chooser","action","hash"]]',moduleName:"discourse/components/composer-user-selector.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((r=(0,n.default)("recipients"),o={init(){this._super(...arguments),this.set("_groups",[])},didInsertElement(){this._super(...arguments),"usernames"===this.focusTarget&&this.element.querySelector(".select-kit .select-kit-header").focus()},splitRecipients:e=>Array.isArray(e)?e:e?e.split(",").filter(Boolean):[],_updateGroups(e,t){const i=[]
this._groups.forEach((t=>{e.includes(t)&&i.addObject(t)})),t.forEach((e=>{i.includes(e)||i.addObject(e)})),this.setProperties({_groups:i,hasGroups:i.length>0})},actions:{updateRecipients(e,t){const i=t.filterBy("isGroup").mapBy("id")
this._updateGroups(e,i),this.set("recipients",e.join(","))}}},l=o,a="splitRecipients",u=[r],c=Object.getOwnPropertyDescriptor(o,"splitRecipients"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/conditional-in-element",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"qfxJbZN7",block:'[[[41,[30,1],[[[1,"  "],[18,4,null],[1,"\\n"]],[]],[[[41,[30,2],[[[41,[30,3],[[[1,"    "],[40,[[[18,4,null]],[]],"%cursor:0%",[28,[37,3],[[30,2]],null],null],[1,"\\n"]],[]],[[[1,"    "],[40,[[[18,4,null]],[]],"%cursor:1%",[28,[37,3],[[30,2]],null]],[1,"\\n"]],[]]]],[]],null]],[]]]],["@inline","@element","@append","&default"],false,["if","yield","in-element","-in-el-null"]]',moduleName:"discourse/components/conditional-in-element.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/conditional-loading-section",["exports","@ember/component","@ember/template-factory","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"liv03Qpv",block:'[[[41,[30,0,["isLoading"]],[[[1,"  "],[10,1],[14,0,"title"],[12],[1,[30,0,["title"]]],[13],[1,"\\n  "],[10,0],[15,0,[29,["spinner ",[30,0,["size"]]]]],[12],[13],[1,"\\n"]],[]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]]]],["&default"],false,["if","yield"]]',moduleName:"discourse/components/conditional-loading-section.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({classNames:["conditional-loading-section"],classNameBindings:["isLoading"],isLoading:!1,title:n.default.t("conditional_loading_section.loading")}))
e.default=o})),define("discourse/components/conditional-loading-spinner",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"Q7FxPccy",block:'[[[41,[30,0,["condition"]],[[[1,"  "],[10,0],[15,0,[29,["spinner ",[30,0,["size"]]]]],[12],[13],[1,"\\n"]],[]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]]]],["&default"],false,["if","yield"]]',moduleName:"discourse/components/conditional-loading-spinner.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((r=(0,n.default)("size"),l=o={classNameBindings:[":loading-container","containerClass","condition:visible"],containerClass:e=>"small"===e?"inline-spinner":void 0},a="containerClass",u=[r],c=Object.getOwnPropertyDescriptor(o,"containerClass"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/connector-container",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend()
e.default=i})),define("discourse/components/cook-text",["exports","@ember/component","@ember/template-factory","discourse/lib/ajax","discourse/lib/text","discourse/lib/load-oneboxes","pretty-text/upload-short-url"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"H1GBkE6g",block:'[[[1,[30,0,["cooked"]]]],[],false,[]]',moduleName:"discourse/components/cook-text.hbs",isStrictMode:!1}),a=t.default.extend({cooked:null,didReceiveAttrs(){this._super(...arguments),(0,r.cookAsync)(this.rawText).then((e=>{this.set("cooked",e)}))},didRender(){this._super(...arguments),this.paintOneboxes&&(0,o.loadOneboxes)(this.element,n.ajax,this.topicId,this.categoryId,this.siteSettings.max_oneboxes_per_post,!1),(0,s.resolveAllShortUrls)(n.ajax,this.siteSettings,this.element,this.opts)}})
a.reopenClass({positionalParams:["rawText"]})
var u=(0,t.setComponentTemplate)(l,a)
e.default=u})),define("discourse/components/copy-button",["exports","@ember/component","@ember/template-factory","@ember/object","discourse-common/lib/debounce","discourse-common/utils/decorators"],(function(e,t,i,n,r,o){var s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"wdmdMUSu",block:'[[[8,[39,0],null,[["@class","@icon","@action"],[[30,0,["copyClass"]],[30,0,["copyIcon"]],[28,[37,1],[[30,0],"copy"],null]]],null]],[],false,["d-button","action"]]',moduleName:"discourse/components/copy-button.hbs",isStrictMode:!1})
var u=(0,t.setComponentTemplate)(a,t.default.extend((l(s={tagName:"",copyIcon:"copy",copyClass:"btn-primary",_restoreButton(){this.isDestroying||this.isDestroyed||(this.set("copyIcon","copy"),this.set("copyClass","btn-primary"))},copy(){const e=document.querySelector(this.selector)
e.select(),e.setSelectionRange(0,e.value.length)
try{document.execCommand("copy"),this.copied&&this.copied(),this.set("copyIcon","check"),this.set("copyClass","btn-primary ok"),(0,r.default)(this._restoreButton,3e3)}catch(t){}}},"_restoreButton",[o.bind],Object.getOwnPropertyDescriptor(s,"_restoreButton"),s),l(s,"copy",[n.action],Object.getOwnPropertyDescriptor(s,"copy"),s),s)))
e.default=u})),define("discourse/components/count-i18n",["exports","@ember/component","@ember/template-factory","I18n","@ember/template"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"xtZTkig+",block:'[[[1,[30,0,["i18nCount"]]]],[],false,[]]',moduleName:"discourse/components/count-i18n.hbs",isStrictMode:!1})
var s=(0,t.setComponentTemplate)(o,t.default.extend({tagName:"span",i18nCount:null,didReceiveAttrs(){this._super(...arguments)
let e=this.key+(this.suffix||"")
this.currentUser?.new_new_view_enabled&&"topic_count_new"===e&&(e="topic_count_latest"),this.set("i18nCount",(0,r.htmlSafe)(n.default.t(e,{count:this.count})))}}))
e.default=s})),define("discourse/components/create-account",["exports","@ember/component","discourse/lib/cookie","discourse-common/utils/decorators"],(function(e,t,i,n){var r
function o(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=t.default.extend((r={classNames:["create-account-body"],userInputFocus(e){const t=e.target.parentElement.parentElement
t.classList.contains("value-entered")||t.classList.toggle("value-entered")},userInputFocusOut(e){const t=e.target.parentElement.parentElement
0===e.target.value.length&&t.classList.contains("value-entered")&&t.classList.toggle("value-entered")},actionOnEnter(e){if(!this.disabled&&"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),this.action(),!1},selectKitFocus(e){const t=document.getElementById(e.target.getAttribute("for"))
t?.classList.contains("select-kit")&&(e.preventDefault(),t.querySelector(".select-kit-header").click())},didInsertElement(){this._super(...arguments),(0,i.default)("email")&&this.set("email",(0,i.default)("email"))
let e=document.getElementsByClassName("user-fields")[0]
if(e&&(e=e.getElementsByClassName("ember-text-field")),e)for(let t of e)t.addEventListener("focus",this.userInputFocus),t.addEventListener("focusout",this.userInputFocusOut)
this.element.addEventListener("keydown",this.actionOnEnter),this.element.addEventListener("click",this.selectKitFocus)},willDestroyElement(){this._super(...arguments),this.element.removeEventListener("keydown",this.actionOnEnter),this.element.removeEventListener("click",this.selectKitFocus)
let e=document.getElementsByClassName("user-fields")[0]
if(e&&(e=e.getElementsByClassName("ember-text-field")),e)for(let t of e)t.removeEventListener("focus",this.userInputFocus),t.removeEventListener("focusout",this.userInputFocusOut)}},o(r,"actionOnEnter",[n.bind],Object.getOwnPropertyDescriptor(r,"actionOnEnter"),r),o(r,"selectKitFocus",[n.bind],Object.getOwnPropertyDescriptor(r,"selectKitFocus"),r),r))
e.default=s})),define("discourse/components/create-invite-uploader",["exports","@ember/component","@ember/template-factory","@ember/object","discourse/mixins/uppy-upload","discourse-common/utils/decorators"],(function(e,t,i,n,r,o){var s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"Uioc8Hgb",block:'[[[18,1,[[28,[37,1],null,[["data","uploading","uploadProgress","uploaded","submitDisabled","startUpload"],[[30,0,["data"]],[30,0,["uploading"]],[30,0,["uploadProgress"]],[30,0,["uploaded"]],[30,0,["submitDisabled"]],[28,[37,2],[[30,0],"startUpload"],null]]]]]]],["&default"],false,["yield","hash","action"]]',moduleName:"discourse/components/create-invite-uploader.hbs",isStrictMode:!1})
var u=(0,t.setComponentTemplate)(a,t.default.extend(r.default,(l(s={id:"create-invite-uploader",tagName:"div",type:"csv",autoStartUploads:!1,uploadUrl:"/invites/upload_csv",preventDirectS3Uploads:!0,fileInputSelector:"#csv-file",validateUploadedFilesOptions:()=>({bypassNewUserRestriction:!0,csvOnly:!0}),submitDisabled:(e,t)=>!e||t,uploadDone(){this.set("uploaded",!0)},startUpload(){this._startUpload()}},"submitDisabled",[(0,o.default)("filesAwaitingUpload","uploading")],Object.getOwnPropertyDescriptor(s,"submitDisabled"),s),l(s,"startUpload",[n.action],Object.getOwnPropertyDescriptor(s,"startUpload"),s),s)))
e.default=u})),define("discourse/components/create-topic-button",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"nNWdBeR7",block:'[[[41,[30,0,["canCreateTopic"]],[[[1,"  "],[8,[39,1],null,[["@class","@id","@action","@icon","@disabled","@label"],[[30,0,["btnClass"]],"create-topic",[30,0,["action"]],"plus",[30,0,["disabled"]],[30,0,["label"]]]],null],[1,"\\n  "],[18,1,null],[1,"\\n"]],[]],null]],["&default"],false,["if","d-button","yield"]]',moduleName:"discourse/components/create-topic-button.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:"",label:"topic.create",btnClass:"btn-default"}))
e.default=r})),define("discourse/components/custom-html",["exports","@ember/template-factory","@ember/component","discourse/helpers/custom-html","discourse-common/lib/get-owner","discourse-common/lib/deprecated"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=i.default.extend({triggerAppEvent:null,init(){this._super(...arguments)
const e=this.name,i=(0,n.getCustomHTML)(e)
if(i)this.set("html",i),this.set("layout",(0,t.createTemplateFactory)({id:"vq7QF/DL",block:'[[[1,[30,0,["html"]]]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/discourse/components/custom-html.js",isStrictMode:!1}))
else{const t=(0,r.getOwner)(this).lookup(`template:${e}`)
t&&((0,o.default)("Defining an hbs template for CustomHTML rendering is deprecated. Use plugin outlets instead.",{id:"discourse.custom_html_template"}),this.set("layout",t))}},didInsertElement(){this._super(...arguments),"true"===this.triggerAppEvent&&this.appEvents.trigger(`inserted-custom-html:${this.name}`)},willDestroyElement(){this._super(...arguments),"true"===this.triggerAppEvent&&this.appEvents.trigger(`destroyed-custom-html:${this.name}`)}})
e.default=s}))
define("discourse/components/d-button",["exports","@ember/component","@ember/template-factory","@ember/service","@ember/object","@ember/object/computed","discourse/components/glimmer-component-with-deprecated-parent-view","discourse-common/lib/deprecated","discourse/lib/url","I18n"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f,g,b
function y(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function _(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v=(0,i.createTemplateFactory)({id:"qVZmEOaq",block:'[[[11,"button"],[16,0,[28,[37,0],[[30,1],[52,[30,2],"is-loading"],[52,[30,0,["btnLink"]],"btn-link","btn"],[52,[30,0,["noText"]],"no-text"],[30,0,["btnType"]]],null]],[16,1,[30,3]],[16,"form",[30,4]],[16,"aria-controls",[30,5]],[16,"aria-expanded",[30,0,["computedAriaExpanded"]]],[16,"tabindex",[30,6]],[16,4,[28,[37,2],[[30,7],"button"],null]],[17,8],[16,"disabled",[30,0,["isDisabled"]]],[16,"title",[30,0,["computedTitle"]]],[16,"aria-label",[30,0,["computedAriaLabel"]]],[4,[38,3],["keydown",[30,0,["keyDown"]]],null],[4,[38,3],["click",[30,0,["click"]]],null],[4,[38,3],["mousedown",[30,0,["mouseDown"]]],null],[12],[1,"\\n"],[41,[30,2],[[[1,[28,[35,4],["spinner"],[["class"],["loading-icon"]]]]],[]],[[[41,[30,9],[[[1,[28,[35,4],[[30,9]],null]]],[]],null]],[]]],[41,[30,0,["computedLabel"]],[[[10,1],[14,0,"d-button-label"],[12],[1,[28,[35,5],[[30,0,["computedLabel"]]],null]],[41,[30,10],[[[1,"…"]],[]],null],[13]],[]],[[[41,[28,[37,6],[[48,[30,11]]],null],[[[1,"​\\n"]],[]],null]],[]]],[18,11,null],[1,"\\n"],[13]],["@class","@isLoading","@id","@form","@ariaControls","@tabindex","@type","&attrs","@icon","@ellipsis","&default"],false,["concat-class","if","or","on","d-icon","html-safe","not","has-block","yield"]]',moduleName:"discourse/components/d-button.hbs",isStrictMode:!1}),w=["DButton no longer supports @action as a string. Please refactor to use an closure action instead.",{id:"discourse.d-button-action-string"}]
let k=(c=(0,o.notEmpty)("args.icon"),d=(0,o.equal)("args.display","link"),p=(0,o.empty)("computedLabel"),m=class extends s.default{constructor(){super(...arguments),y(this,"router",h,this),y(this,"btnIcon",f,this),y(this,"btnLink",g,this),y(this,"noText",b,this),"string"==typeof this.args.action&&(0,l.default)(...w)}get forceDisabled(){return!!this.args.isLoading}get isDisabled(){return this.forceDisabled||this.args.disabled}get btnType(){return this.args.icon?this.computedLabel?"btn-icon-text":"btn-icon":this.computedLabel?"btn-text":void 0}get computedTitle(){return this.args.title?u.default.t(this.args.title):this.args.translatedTitle}get computedLabel(){return this.args.label?u.default.t(this.args.label):this.args.translatedLabel}get computedAriaLabel(){return this.args.ariaLabel?u.default.t(this.args.ariaLabel):this.args.translatedAriaLabel?this.args.translatedAriaLabel:void 0}get computedAriaExpanded(){return!0===this.args.ariaExpanded?"true":!1===this.args.ariaExpanded?"false":void 0}keyDown(e){this.args.onKeyDown?(e.stopPropagation(),this.args.onKeyDown(e)):"Enter"===e.key&&this._triggerAction(e)}click(e){return this._triggerAction(e)}mouseDown(e){this.args.preventFocus&&e.preventDefault()}_triggerAction(e){const{action:t,route:i,href:n}=this.args
if(t||i||n?.length){if(t){const{actionParam:i,forwardEvent:n}=this.args
if("string"==typeof t){if((0,l.default)(...w),!this._target?.send)throw new Error("DButton could not find a target for the action. Use a closure action instead")
this._target.send(t,i)}else"object"==typeof t&&t.value?n?t.value(i,e):t.value(i):"function"==typeof t&&(n?t(i,e):t(i))}else i?this.router.transitionTo(i):n?.length&&a.default.routeTo(n)
return e.preventDefault(),e.stopPropagation(),!1}}},h=_(m.prototype,"router",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=_(m.prototype,"btnIcon",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=_(m.prototype,"btnLink",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=_(m.prototype,"noText",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_(m.prototype,"keyDown",[r.action],Object.getOwnPropertyDescriptor(m.prototype,"keyDown"),m.prototype),_(m.prototype,"click",[r.action],Object.getOwnPropertyDescriptor(m.prototype,"click"),m.prototype),_(m.prototype,"mouseDown",[r.action],Object.getOwnPropertyDescriptor(m.prototype,"mouseDown"),m.prototype),m)
e.default=k,(0,t.setComponentTemplate)(v,k)})),define("discourse/components/d-document",["exports","@ember/component","I18n","discourse-common/utils/decorators","discourse/lib/logout","@ember/service","discourse/lib/ajax"],(function(e,t,i,n,r,o,s){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.addPluginDocumentTitleCounter=function(e){a.push(e)},e.default=void 0
let a=[]
var u,c,d,p,m,h,f=t.default.extend((l={tagName:"",documentTitle:(0,o.inject)(),dialog:(0,o.inject)(),_showingLogout:!1,didInsertElement(){this._super(...arguments),this.documentTitle.setTitle(document.title),document.addEventListener("visibilitychange",this._focusChanged),document.addEventListener("resume",this._focusChanged),document.addEventListener("freeze",this._focusChanged),this.session.hasFocus=!0,this.appEvents.on("notifications:changed",this,this._updateNotifications),(0,s.setLogoffCallback)((()=>this.displayLogoff()))},willDestroyElement(){this._super(...arguments),(0,s.setLogoffCallback)(null),document.removeEventListener("visibilitychange",this._focusChanged),document.removeEventListener("resume",this._focusChanged),document.removeEventListener("freeze",this._focusChanged),this.appEvents.off("notifications:changed",this,this._updateNotifications)},_updateNotifications(e){if(!this.currentUser)return
let t=a.reduce(((e,t)=>e+t()),0)
t+=this.currentUser.all_unread_notifications_count,this.currentUser.unseen_reviewable_count&&(t+=this.currentUser.unseen_reviewable_count),this.documentTitle.updateNotificationCount(t,{forced:e?.forced})},_focusChanged(){"hidden"===document.visibilityState?this.session.hasFocus&&this.documentTitle.setFocus(!1):this.hasFocus||this.documentTitle.setFocus(!0)},displayLogoff(){this._showingLogout||(this._showingLogout=!0,this.messageBus.stop(),this.dialog.alert({message:i.default.t("logout"),confirmButtonLabel:"refresh",didConfirm:()=>(0,r.default)(),didCancel:()=>(0,r.default)()}))}},u=l,c="_focusChanged",d=[n.bind],p=Object.getOwnPropertyDescriptor(l,"_focusChanged"),m=l,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),l))
e.default=f})),define("discourse/components/d-editor",["exports","@ember/component","@ember/template-factory","discourse/lib/ajax","discourse/lib/keyboard-shortcuts","discourse/lib/utilities","discourse-common/utils/decorators","pretty-text/emoji","discourse/lib/text","@ember/runloop","I18n","@discourse/itsatrap","rsvp","discourse/lib/autocomplete","discourse/lib/hashtag-autocomplete","discourse-common/lib/deprecated","discourse-common/lib/debounce","discourse-common/lib/raw-templates","discourse-common/lib/get-owner","discourse-common/config/environment","discourse/lib/link-hashtags","discourse/lib/link-mentions","discourse/lib/load-oneboxes","discourse/lib/load-script","pretty-text/upload-short-url","@ember/service","discourse/lib/show-modal","discourse/lib/text-direction","pretty-text/emoji/data","discourse/lib/intercept-click","@ember/object","discourse/mixins/textarea-text-manipulation"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w,k,x,P,O,T,S,j,C,z,I){var E,M,D,N,L,A
function U(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addToolbarCallback=H,e.clearToolbarCallbacks=function(){B=[]},e.default=void 0,e.onToolbarCreate=function(e){(0,f.default)("`onToolbarCreate` is deprecated, use the plugin api instead.",{id:"discourse.d-editor.on-toolbar-create"}),H(e)}
const F=(0,i.createTemplateFactory)({id:"TdPTwiBR",block:'[[[10,0],[15,0,[29,["d-editor-container\\n    ",[52,[30,0,["showFormTemplateForm"]],"has-form-template"]]]],[12],[1,"\\n  "],[10,0],[14,0,"d-editor-textarea-column"],[12],[1,"\\n    "],[18,4,null],[1,"\\n"],[41,[30,0,["showFormTemplateForm"]],[[[41,[28,[37,2],[[30,1,["length"]],1],null],[[[1,"        "],[8,[39,3],null,[["@class","@filteredIds","@value","@onChange","@options"],["composer-select-form-template",[30,1],[30,0,["selectedFormTemplateId"]],[30,0,["updateSelectedFormTemplateId"]],[28,[37,4],null,[["maximum"],[1]]]]],null],[1,"\\n"]],[]],null],[1,"      "],[10,"form"],[14,1,"form-template-form"],[12],[1,"\\n        "],[8,[39,5],null,[["@id"],[[30,0,["selectedFormTemplateId"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[15,0,[29,["d-editor-textarea-wrapper\\n          ",[52,[30,0,["disabled"]],"disabled"],"\\n          ",[52,[30,0,["isEditorFocused"]],"in-focus"]]]],[12],[1,"\\n        "],[10,0],[14,0,"d-editor-button-bar"],[14,"role","toolbar"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["toolbar","groups"]]],null]],null],null,[[[42,[28,[37,7],[[28,[37,7],[[30,2,["buttons"]]],null]],null],null,[[[41,[30,3,["popupMenu"]],[[[1,"                "],[8,[39,8],null,[["@content","@onChange","@onOpen","@class","@tabindex","@onKeydown","@options"],[[30,0,["popupMenuOptions"]],[30,0,["onPopupMenuAction"]],[28,[37,9],[[30,0],[30,3,["action"]],[30,3]],null],[30,3,["className"]],-1,[30,0,["rovingButtonBar"]],[28,[37,4],null,[["icon","focusAfterOnChange"],[[30,3,["icon"]],false]]]]],null],[1,"\\n"]],[]],[[[1,"                "],[8,[39,10],null,[["@action","@type","@actionParam","@translatedTitle","@label","@icon","@class","@preventFocus","@tabindex","@onKeyDown"],[[30,3,["action"]],"button",[30,3],[30,3,["title"]],[30,3,["label"]],[30,3,["icon"]],[30,3,["className"]],[30,3,["preventFocus"]],[30,3,["tabindex"]],[30,0,["rovingButtonBar"]]]],null],[1,"\\n"]],[]]]],[3]],null]],[2]],null],[1,"        "],[13],[1,"\\n\\n        "],[8,[39,11],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n        "],[8,[39,12],null,[["@autocomplete","@tabindex","@value","@class","@placeholder","@aria-label","@disabled","@input","@focusIn","@focusOut"],["off",[30,0,["tabindex"]],[30,0,["value"]],"d-editor-input",[30,0,["placeholderTranslated"]],[30,0,["placeholderTranslated"]],[30,0,["disabled"]],[30,0,["change"]],[28,[37,9],[[30,0],"focusIn"],null],[28,[37,9],[[30,0],"focusOut"],null]]],null],[1,"\\n        "],[8,[39,13],null,[["@validation"],[[30,0,["validation"]]]],null],[1,"\\n        "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["after-d-editor","div",[30,0,["outletArgs"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[15,0,[29,["d-editor-preview-wrapper ",[52,[30,0,["forcePreview"]],"force-preview"]]]],[12],[1,"\\n    "],[10,0],[14,0,"d-editor-preview"],[12],[1,"\\n"],[41,[51,[30,0,["siteSettings","enable_diffhtml_preview"]]],[[[1,"        "],[1,[28,[35,16],[[30,0,["preview"]]],null]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,1],[14,0,"d-editor-plugin"],[12],[1,"\\n      "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["editor-preview","div",[30,0,["outletArgs"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,17],null,[["@isActive","@isEditorFocused","@initialFilter","@emojiSelected","@onEmojiPickerClose"],[[30,0,["emojiPickerIsActive"]],[30,0,["isEditorFocused"]],[30,0,["emojiFilter"]],[28,[37,9],[[30,0],"emojiSelected"],null],[30,0,["onEmojiPickerClose"]]]],null]],["@formTemplateIds","group","b","&default"],false,["if","yield","gt","form-template-chooser","hash","form-template-field/wrapper","each","-track-array","toolbar-popup-menu-options","action","d-button","conditional-loading-spinner","d-textarea","popup-input-tip","plugin-outlet","unless","html-safe","emoji-picker"]]',moduleName:"discourse/components/d-editor.hbs",isStrictMode:!1})
function R(e,t){return c.default.t(e)===t?null:e}let B=[]
class q{constructor(e){var t=this
const{siteSettings:i,capabilities:n}=e
this.shortcuts={},this.context=null,this.groups=[{group:"fontStyles",buttons:[]},{group:"insertions",buttons:[]},{group:"extras",buttons:[]}],this.addButton({id:"bold",group:"fontStyles",icon:"bold",label:R("composer.bold_label","B"),shortcut:"B",preventFocus:!0,trimLeading:!0,perform:e=>e.applySurround("**","**","bold_text")}),this.addButton({id:"italic",group:"fontStyles",icon:"italic",label:R("composer.italic_label","I"),shortcut:"I",preventFocus:!0,trimLeading:!0,perform:e=>e.applySurround("*","*","italic_text")}),e.showLink&&this.addButton({id:"link",group:"insertions",shortcut:"K",preventFocus:!0,trimLeading:!0,sendAction:e=>this.context.send("showLinkModal",e)}),this.addButton({id:"blockquote",group:"insertions",icon:"quote-right",shortcut:"Shift+9",preventFocus:!0,perform:e=>e.applyList("> ","blockquote_text",{applyEmptyLines:!0,multiline:!0})}),n.touch||(this.addButton({id:"code",group:"insertions",shortcut:"E",preventFocus:!0,trimLeading:!0,action:function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n]
return t.context.send("formatCode",i)}}),this.addButton({id:"bullet",group:"extras",icon:"list-ul",shortcut:"Shift+8",title:"composer.ulist_title",preventFocus:!0,perform:e=>e.applyList("* ","list_item")}),this.addButton({id:"list",group:"extras",icon:"list-ol",shortcut:"Shift+7",title:"composer.olist_title",preventFocus:!0,perform:e=>e.applyList((e=>e?`${parseInt(e,10)+1}. `:"1. "),"list_item")})),i.support_mixed_text_direction&&this.addButton({id:"toggle-direction",group:"extras",icon:"exchange-alt",shortcut:"Shift+6",title:"composer.toggle_direction",preventFocus:!0,perform:e=>e.toggleDirection()}),this.groups[this.groups.length-1].lastGroup=!0}addButton(e){const t=this.groups.findBy("group",e.group)
if(!t)throw new Error(`Couldn't find toolbar group ${e.group}`)
const i={id:e.id,tabindex:e.tabindex||"-1",className:e.className||e.id,label:e.label,icon:e.label?null:e.icon||e.id,action:e.action||(e=>this.context.send("toolbarButton",e)),perform:e.perform||function(){},trimLeading:e.trimLeading,popupMenu:e.popupMenu||!1,preventFocus:e.preventFocus||!1}
e.sendAction&&(i.sendAction=e.sendAction)
const n=c.default.t(e.title||`composer.${e.id}_title`)
if(e.shortcut){const t=`${(0,o.translateModKey)(r.PLATFORM_KEY_MODIFIER+"+")}${(0,o.translateModKey)(e.shortcut)}`
i.title=`${n} (${t})`,this.shortcuts[`${r.PLATFORM_KEY_MODIFIER}+${e.shortcut}`.toLowerCase()]=i}else i.title=n
e.unshift?t.buttons.unshift(i):t.buttons.push(i)}}function H(e){B.push(e)}var W=(0,t.setComponentTemplate)(F,t.default.extend(I.default,(E=(0,s.default)("formTemplateIds","replyingToTopic","editingPost"),M=(0,s.default)("placeholder"),D=(0,s.on)("willDestroyElement"),N=(0,s.default)(),L=(0,s.observes)("ready","value","processPreview"),A={classNames:["d-editor"],ready:!1,lastSel:null,_itsatrap:null,showLink:!0,emojiPickerIsActive:!1,emojiFilter:"",emojiStore:(0,O.inject)("emoji-store"),isEditorFocused:!1,processPreview:!0,composerFocusSelector:"#reply-control .d-editor-input",selectedFormTemplateId:(0,z.computed)("formTemplateIds",{get(){return this._selectedFormTemplateId?this._selectedFormTemplateId:this.formTemplateIds?.[0]},set(e,t){return this._selectedFormTemplateId=t}}),updateSelectedFormTemplateId(e){this.selectedFormTemplateId=e},showFormTemplateForm:(e,t,i)=>e?.length>0&&!t&&!i,placeholderTranslated:e=>e?c.default.t(e):null,_readyNow(){this.set("ready",!0),this.autofocus&&this._textarea.focus()},init(){this._super(...arguments),this.register=(0,y.getRegister)(this)},didInsertElement(){this._super(...arguments),this._previewMutationObserver=this._disablePreviewTabIndex(),this._textarea=this.element.querySelector("textarea.d-editor-input"),this._$textarea=$(this._textarea),this._applyEmojiAutocomplete(this._$textarea),this._applyHashtagAutocomplete(this._$textarea),(0,u.scheduleOnce)("afterRender",this,this._readyNow),this._itsatrap=new d.default(this._textarea)
const e=this.get("toolbar.shortcuts")
Object.keys(e).forEach((t=>{const i=e[t]
this._itsatrap.bind(t,(()=>(i.action(i),!1)))})),this._itsatrap.bind("tab",(()=>this.indentSelection("right"))),this._itsatrap.bind("shift+tab",(()=>this.indentSelection("left"))),this._itsatrap.bind(`${r.PLATFORM_KEY_MODIFIER}+shift+.`,(()=>this.send("insertCurrentTime"))),this.element.querySelector(".d-editor-preview").addEventListener("click",this._handlePreviewLinkClick),this.composerEvents&&(this.appEvents.on("composer:insert-block",this,"insertBlock"),this.appEvents.on("composer:insert-text",this,"insertText"),this.appEvents.on("composer:replace-text",this,"replaceText"),this.appEvents.on("composer:apply-surround",this,"_applySurround"),this.appEvents.on("composer:indent-selected-text",this,"indentSelection"))},_handlePreviewLinkClick(e){if(!(0,C.wantsNewWindow)(e))return"A"===e.target.tagName?(e.target.classList.contains("mention")&&this.appEvents.trigger("click.discourse-preview-user-card-mention",$(e.target)),e.target.classList.contains("mention-group")&&this.appEvents.trigger("click.discourse-preview-group-card-mention-group",$(e.target)),e.preventDefault(),!1):void 0},_shutDown(){this.composerEvents&&(this.appEvents.off("composer:insert-block",this,"insertBlock"),this.appEvents.off("composer:insert-text",this,"insertText"),this.appEvents.off("composer:replace-text",this,"replaceText"),this.appEvents.off("composer:apply-surround",this,"_applySurround"),this.appEvents.off("composer:indent-selected-text",this,"indentSelection")),this._itsatrap?.destroy(),this._itsatrap=null,this.element.querySelector(".d-editor-preview")?.removeEventListener("click",this._handlePreviewLinkClick),this._previewMutationObserver?.disconnect(),(0,_.isTesting)()&&this.element.removeEventListener("paste",this.paste),this._cachedCookFunction=null},toolbar(){const e=new q(this.getProperties("site","siteSettings","showLink","capabilities"))
e.context=this,B.forEach((t=>t(e))),this.extraButtons&&this.extraButtons(e)
const t=e.groups.mapBy("buttons").flat().firstObject
return t&&(t.tabindex=0),e},cachedCookAsync(e){if(this._cachedCookFunction)return p.Promise.resolve(this._cachedCookFunction(e))
const t=this.markdownOptions||{}
return(0,a.generateCookFunction)(t).then((t=>(this._cachedCookFunction=t,t(e))))},_updatePreview(){if("inDOM"!==this._state||!this.processPreview)return
const e=this.value
this.cachedCookAsync(e).then((e=>{if(this.isDestroyed)return
if(this.preview===e)return
this.set("preview",e)
let t=p.Promise.resolve()
if(this.siteSettings.enable_diffhtml_preview){const i=document.createElement("div")
i.innerHTML=e,(0,v.linkSeenHashtags)(i),(0,w.linkSeenMentions)(i,this.siteSettings),(0,P.resolveCachedShortUrls)(this.siteSettings,i),(0,k.loadOneboxes)(i,n.ajax,null,null,this.siteSettings.max_oneboxes_per_post,!1,!0),t=(0,x.default)("/javascripts/diffhtml.min.js").then((()=>{const e=this.element.querySelector(".d-editor-preview")
window.diff.release(e),window.diff.innerHTML(e,i.innerHTML)}))}t.then((()=>{(0,u.schedule)("afterRender",(()=>{if("inDOM"!==this._state||!this.element)return
const e=this.element.querySelector(".d-editor-preview")
e&&this.previewUpdated&&this.previewUpdated(e)}))}))}))},_watchForChanges(){this.ready&&((0,_.isTesting)()?this._updatePreview():(0,g.default)(this,this._updatePreview,30))},_applyHashtagAutocomplete(){(0,h.setupHashtagAutocomplete)(this.site.hashtag_configurations["topic-composer"],this._$textarea,this.siteSettings,{afterComplete:e=>{this.set("value",e),(0,u.schedule)("afterRender",this,this.focusTextArea)}})},_applyEmojiAutocomplete(e){this.siteSettings.enable_emoji&&e.autocomplete({template:(0,b.findRawTemplate)("emoji-selector-autocomplete"),key:":",afterComplete:e=>{this.set("value",e),(0,u.schedule)("afterRender",this,this.focusTextArea)},onKeyUp:(e,t)=>{if((0,o.inCodeBlock)(e,t))return!1
const i=/(?:^|[\s.\?,@\/#!%&*;:\[\]{}=\-_()])(:(?!:).?[\w-]*:?(?!:)(?:t\d?)?:?) ?$/gi.exec(e.substring(0,t))
return i&&i[1]?[i[1]]:void 0},transformComplete:t=>t.code?(this.emojiStore.track(t.code),`${t.code}:`):(e.autocomplete({cancel:!0}),this.set("emojiPickerIsActive",!0),this.set("emojiFilter",t.term),""),dataSource:e=>new p.Promise((t=>{const i=`:${e}`
if((e=e.toLowerCase()).length<this.siteSettings.emoji_autocomplete_min_chars)return t(m.SKIP)
if(""===e)return this.emojiStore.favorites.length?t(this.emojiStore.favorites.filter((e=>!this.site.denied_emojis?.includes(e))).slice(0,5)):t(["slight_smile","smile","wink","sunny","blush"])
const n=this.get("site.custom_emoji_translation")||{},r=Object.assign({},j.translations,n)
if(r[i])return t([r[i]])
const o=this.get("site.denied_emojis")||[],s=e.match(/^:?(.*?):t([2-6])?$/)
if(s){const e=s[1],i=s[2]
if((0,l.isSkinTonableEmoji)(e)&&!o.includes(e))return t(i?[`${e}:t${i}`]:[2,3,4,5,6].map((t=>`${e}:t${t}`)))}return t((0,l.emojiSearch)(e,{maxResults:5,diversity:this.emojiStore.diversity,exclude:o}))})).then((e=>e===m.SKIP?[]:e.map((e=>({code:e,src:(0,a.emojiUrlFor)(e)}))))).then((t=>(t.length&&t.push({label:c.default.t("composer.more_emoji"),term:e}),t))),triggerRule:e=>!(0,o.inCodeBlock)(e.value,(0,o.caretPosition)(e))})},_applyList(e,t,i,n){if(e.value.includes("\n"))this.applySurround(e,t,"",i,n)
else{const[n,r]=(0,I.getHead)(t)
e.start===e.end&&(e.value=c.default.t(`composer.${i}`))
const o=e.pre.trim(),s=e.value.startsWith(n)?e.value.slice(r):`${n}${e.value}`,l=o.length?`${o}\n\n`:"",a=e.post.trim(),u=a.length?`\n\n${a}`:a
this.set("value",`${l}${s}${u}`),this.selectText(l.length,s.length)}},_applySurround(e,t,i,n){const r=this.getSelected()
this.applySurround(r,e,t,i,n)},_toggleDirection(){let e="ltr"===(this._$textarea.attr("dir")?this._$textarea.attr("dir"):(0,S.siteDir)())?"rtl":"ltr"
this._$textarea.attr("dir",e).focus()},rovingButtonBar(e){let t,i=e.target
if("ArrowRight"===e.code)t="nextElementSibling"
else{if("ArrowLeft"!==e.code)return!0
t="previousElementSibling"}for(;i.parentNode&&!i.parentNode.classList.contains("d-editor-button-bar");)i=i.parentNode
let n=i[t]
if(n){for(;"BUTTON"!==n.tagName&&!n.classList.contains("select-kit")||n.classList.contains("hidden");)n=n[t]
"DETAILS"===n?.tagName&&(n=n.querySelector("summary")),n?.focus()}return!0},onEmojiPickerClose(){this.isDestroyed||this.isDestroying||this.set("emojiPickerIsActive",!1)},actions:{emoji(){this.disabled||this.set("emojiPickerIsActive",!this.emojiPickerIsActive)},toolbarButton(e){var t=this
if(this.disabled)return
const i=this.getSelected(e.trimLeading),n={selected:i,selectText:(e,t)=>this.selectText(e,t,{scroll:!1}),applySurround:(e,t,n,r)=>this.applySurround(i,e,t,n,r),applyList:(e,t,n)=>this._applyList(i,e,t,n),formatCode:function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n]
return t.send("formatCode",i)},addText:e=>this.addText(i,e),getText:()=>this.value,toggleDirection:()=>this._toggleDirection()}
if(e.sendAction)return e.sendAction(n)
e.perform(n)},showLinkModal(e){if(this.disabled)return
let t=""
this._lastSel=e.selected,this._lastSel&&(t=this._lastSel.value),(0,T.default)("insert-hyperlink").setProperties({linkText:t,toolbarEvent:e})},formatCode(){if(this.disabled)return
const e=this.getSelected("",{lineVal:!0}),t=e.value,i=t.includes("\n"),n=0===e.lineVal.trim().length,r="4-spaces-indent"===this.siteSettings.code_formatting_style
if(i){if(r)return this.applySurround(e,"    ","","code_text")
{const t="\n"!==e.pre[-1]&&""!==e.pre?"\n":"",i="\n"!==e.post[0]?"\n":""
return this.addText(e,`${t}\`\`\`\n${e.value}\n\`\`\`${i}`)}}if(0===t.length&&n){if(r){const t=c.default.t("composer.code_text")
return this.set("value",`${e.pre}    ${t}${e.post}`),this.selectText(e.pre.length+4,t.length)}return this.applySurround(e,"```\n","\n```","paste_code_text")}return this.applySurround(e,"`","`","code_title")},insertCurrentTime(){const e=this.getSelected("",{lineVal:!0}),t=this.currentUser.user_option.timezone,i=moment().format("HH:mm:ss"),n=moment().format("YYYY-MM-DD")
this.addText(e,`[date=${n} time=${i} timezone="${t}"]`)},focusIn(){this.set("isEditorFocused",!0)},focusOut(){this.set("isEditorFocused",!1)}},_disablePreviewTabIndex(){const e=new MutationObserver((function(){document.querySelectorAll(".d-editor-preview a").forEach((e=>{e.setAttribute("tabindex","-1")}))}))
return e.observe(document.querySelector(".d-editor-preview"),{childList:!0,subtree:!0,attributes:!1,characterData:!0}),e}},U(A,"updateSelectedFormTemplateId",[z.action],Object.getOwnPropertyDescriptor(A,"updateSelectedFormTemplateId"),A),U(A,"showFormTemplateForm",[E],Object.getOwnPropertyDescriptor(A,"showFormTemplateForm"),A),U(A,"placeholderTranslated",[M],Object.getOwnPropertyDescriptor(A,"placeholderTranslated"),A),U(A,"_handlePreviewLinkClick",[s.bind],Object.getOwnPropertyDescriptor(A,"_handlePreviewLinkClick"),A),U(A,"_shutDown",[D],Object.getOwnPropertyDescriptor(A,"_shutDown"),A),U(A,"toolbar",[N],Object.getOwnPropertyDescriptor(A,"toolbar"),A),U(A,"_watchForChanges",[L],Object.getOwnPropertyDescriptor(A,"_watchForChanges"),A),U(A,"rovingButtonBar",[z.action],Object.getOwnPropertyDescriptor(A,"rovingButtonBar"),A),U(A,"onEmojiPickerClose",[z.action],Object.getOwnPropertyDescriptor(A,"onEmojiPickerClose"),A),A)))
e.default=W})),define("discourse/components/d-modal-body",["exports","@ember/component","@ember/template-factory","@glimmer/component","discourse/lib/implicit-injections","@ember/object","@glimmer/tracking","@ember/service"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"1xFN9sSk",block:'[[[1,"\\n"],[11,0],[16,1,[30,1]],[16,0,[28,[37,0],["modal-body",[30,2]],null]],[24,"tabindex","-1"],[17,3],[4,[38,1],[[30,0,["didInsert"]]],null],[4,[38,2],[[30,0,["willDestroy"]]],null],[12],[1,"\\n  "],[18,4,null],[1,"\\n"],[13]],["@id","@class","&attrs","&default"],false,["concat-class","did-insert","will-destroy","yield"]]',moduleName:"discourse/components/d-modal-body.hbs",isStrictMode:!1}),g="d-modal-body should only be used inside a legacy controller-based d-modal. https://meta.discourse.org/t/268057"
let b=(0,r.disableImplicitInjections)((u=class extends n.default{constructor(){super(...arguments),m(this,"appEvents",c,this),m(this,"modal",d,this),m(this,"fixed",p,this)}didInsert(e){e.closest(".d-modal:not(.d-modal-legacy")&&console.error(g),this.appEvents.trigger("modal-body:clearFlash")
const t=e.closest(".d-modal.fixed-modal")
t&&(this.fixed=!0,$(t).modal("show"),this.modal.hidden=!1),this.appEvents.trigger("modal:body-shown",function(e,t){const i={}
for(const n of t)n in e&&(i[n]=e[n])
return i}(this.args,["title","rawTitle","fixed","subtitle","rawSubtitle","submitOnEnter","dismissable","headerClass","modalClass","titleAriaElementId"]))}willDestroy(){this.appEvents.trigger("modal:body-dismissed")}},c=h(u.prototype,"appEvents",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(u.prototype,"modal",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=h(u.prototype,"fixed",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h(u.prototype,"didInsert",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"didInsert"),u.prototype),h(u.prototype,"willDestroy",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"willDestroy"),u.prototype),a=u))||a
e.default=b,(0,t.setComponentTemplate)(f,b)})),define("discourse/components/d-modal-cancel",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"VLiVAZ1b",block:'[[[8,[39,0],null,[["@class","@action","@translatedLabel"],["btn-flat d-modal-cancel",[30,1],[28,[37,1],["cancel"],null]]],null]],["@close"],false,["d-button","i18n"]]',moduleName:"discourse/components/d-modal-cancel.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/d-modal-legacy",["exports","@ember/component","@ember/template-factory","@glimmer/component","I18n","@ember/runloop","discourse-common/utils/decorators","discourse/lib/implicit-injections","@ember/service","@ember/object","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m,h,f,g,b
function y(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function _(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v=(0,i.createTemplateFactory)({id:"SNXWhxy6",block:'[[[1,"\\n"],[1,"\\n"],[11,0],[16,0,[28,[37,0],[[30,0,["modalClass"]],[30,0,["modalStyle"]],[52,[30,0,["hasPanels"]],"has-panels"],[52,[30,1],"hidden"],"d-modal-legacy"],null]],[16,1,[52,[28,[37,2],[[30,0,["modalStyle"]],"inline-modal"],null],"discourse-modal"]],[24,"data-keyboard","false"],[24,"aria-modal","true"],[24,"role","dialog"],[16,"aria-labelledby",[30,0,["ariaLabelledby"]]],[17,2],[4,[38,3],[[30,0,["setupListeners"]]],null],[4,[38,4],[[30,0,["cleanupListeners"]]],null],[4,[38,5],["mousedown",[30,0,["handleMouseDown"]]],null],[12],[1,"\\n  "],[10,0],[14,0,"modal-outer-container"],[12],[1,"\\n    "],[10,0],[14,0,"modal-middle-container"],[12],[1,"\\n      "],[10,0],[14,0,"modal-inner-container"],[12],[1,"\\n        "],[8,[39,6],null,[["@name","@connectorTagName"],["above-modal-header","div"]],null],[1,"\\n        "],[10,0],[15,0,[29,["modal-header ",[30,0,["headerClass"]]]]],[12],[1,"\\n"],[41,[30,0,["dismissable"]],[[[1,"            "],[8,[39,7],null,[["@icon","@action","@class","@title"],["times",[28,[37,8],["closeModal","initiatedByCloseButton"],null],"btn-flat modal-close close","modal.close"]],null],[1,"\\n"]],[]],null],[1,"\\n          "],[10,0],[14,0,"modal-title-wrapper"],[12],[1,"\\n"],[41,[30,0,["title"]],[[[1,"              "],[10,0],[14,0,"title"],[12],[1,"\\n                "],[10,"h3"],[14,1,"discourse-modal-title"],[12],[1,[30,0,["title"]]],[13],[1,"\\n\\n"],[41,[30,0,["subtitle"]],[[[1,"                  "],[10,2],[14,0,"subtitle"],[12],[1,[30,0,["subtitle"]]],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"]],[]],null],[1,"\\n            "],[10,1],[14,1,"modal-header-after-title"],[12],[13],[1,"\\n          "],[13],[1,"\\n\\n"],[41,[30,0,["panels"]],[[[1,"            "],[10,"ul"],[14,0,"modal-tabs"],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["panels"]]],null]],null],null,[[[1,"                "],[8,[39,11],null,[["@panel","@panelsLength","@selectedPanel","@onSelectPanel"],[[30,3],[30,0,["panels","length"]],[30,4],[30,5]]],null],[1,"\\n"]],[3]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n\\n        "],[10,0],[14,1,"modal-alert"],[14,"role","alert"],[15,0,[52,[30,0,["flash"]],[28,[37,0],["alert",[28,[37,12],["alert-",[28,[37,13],[[30,0,["flash","messageClass"]],"success"],null]],null]],null]]],[12],[1,[30,0,["flash","text"]]],[13],[1,"\\n\\n        "],[18,7,null],[1,"\\n\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["errors"]]],null]],null],null,[[[1,"          "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n            "],[10,"button"],[14,0,"close"],[14,"data-dismiss","alert"],[15,"aria-label",[28,[37,15],["modal.dismiss_error"],null]],[14,4,"button"],[12],[1,"×"],[13],[1,"\\n            "],[1,[30,6]],[1,"\\n          "],[13],[1,"\\n"]],[6]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["@hidden","&attrs","panel","@selectedPanel","@onSelectPanel","error","&default"],false,["concat-class","if","not-eq","did-insert","will-destroy","on","plugin-outlet","d-button","route-action","each","-track-array","modal-tab","concat","or","yield","i18n"]]',moduleName:"discourse/components/d-modal-legacy.hbs",isStrictMode:!1})
let w=(0,l.disableImplicitInjections)((p=class extends n.default{constructor(){super(...arguments),y(this,"appEvents",m,this),y(this,"modal",h,this),y(this,"wrapperElement",f,this),y(this,"modalBodyData",g,this),y(this,"flash",b,this)}get modalStyle(){return"inline-modal"===this.args.modalStyle?"inline-modal":"fixed-modal"}get submitOnEnter(){return!("submitOnEnter"in this.modalBodyData)||this.modalBodyData.submitOnEnter}get dismissable(){return!("dismissable"in this.modalBodyData)||this.modalBodyData.dismissable}get title(){return this.modalBodyData.title?r.default.t(this.modalBodyData.title):this.modalBodyData.rawTitle?this.modalBodyData.rawTitle:this.args.title}get subtitle(){return this.modalBodyData.subtitle?r.default.t(this.modalBodyData.subtitle):this.modalBodyData.rawSubtitle||this.args.subtitle}get headerClass(){return this.modalBodyData.headerClass}get panels(){return this.args.panels}get errors(){return this.args.errors}setupListeners(e){this.appEvents.on("modal:body-shown",this._modalBodyShown),this.appEvents.on("modal-body:flash",this._flash),this.appEvents.on("modal-body:clearFlash",this._clearFlash),document.documentElement.addEventListener("keydown",this._handleModalEvents),this.wrapperElement=e}cleanupListeners(){this.appEvents.off("modal:body-shown",this._modalBodyShown),this.appEvents.off("modal-body:flash",this._flash),this.appEvents.off("modal-body:clearFlash",this._clearFlash),document.documentElement.removeEventListener("keydown",this._handleModalEvents)}get ariaLabelledby(){return this.modalBodyData.titleAriaElementId?this.modalBodyData.titleAriaElementId:this.args.titleAriaElementId?this.args.titleAriaElementId:this.args.title?"discourse-modal-title":void 0}get modalClass(){return this.modalBodyData.modalClass||this.args.modalClass}triggerClickOnEnter(e){return!!this.submitOnEnter&&!(e.target.closest("form")||document.activeElement&&"TEXTAREA"===document.activeElement.nodeName)}handleMouseDown(e){if(this.dismissable)return e.target.classList.contains("modal-middle-container")||e.target.classList.contains("modal-outer-container")?this.args.closeModal?.("initiatedByClickOut"):void 0}_modalBodyShown(e){this.isDestroying||this.isDestroyed||(e.fixed&&(this.modal.hidden=!1),this.modalBodyData=e,(0,o.next)((()=>{(0,o.schedule)("afterRender",(()=>{this._trapTab()}))})))}_handleModalEvents(e){this.args.hidden||("Escape"===e.key&&this.dismissable&&(0,o.next)((()=>this.args.closeModal("initiatedByESC"))),"Enter"===e.key&&this.triggerClickOnEnter(e)&&(this.wrapperElement.querySelector(".modal-footer .btn-primary")?.click(),e.preventDefault()),"Tab"===e.key&&this._trapTab(e))}_trapTab(e){if(this.args.hidden)return!0
const t=this.wrapperElement.querySelector(".modal-inner-container")
if(!t)return
let i='[autofocus], a, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])'
if(!e){const e=t.querySelector("[autofocus]")
return void(e&&document.activeElement===e||(e||t.querySelector(i+", button:not(.modal-close)")||t.querySelector(".modal-body"))?.focus())}i+=", button:enabled"
const n=t.querySelector(i),r=t.querySelectorAll(i),o=r[r.length-1]
e.shiftKey?document.activeElement===n&&(o?.focus(),e.preventDefault()):document.activeElement===o&&((t.querySelector(".modal-close")||n)?.focus(),e.preventDefault())}_clearFlash(){this.flash=null}_flash(e){this.flash=e}},m=_(p.prototype,"appEvents",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=_(p.prototype,"modal",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=_(p.prototype,"wrapperElement",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=_(p.prototype,"modalBodyData",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),b=_(p.prototype,"flash",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_(p.prototype,"setupListeners",[u.action],Object.getOwnPropertyDescriptor(p.prototype,"setupListeners"),p.prototype),_(p.prototype,"cleanupListeners",[u.action],Object.getOwnPropertyDescriptor(p.prototype,"cleanupListeners"),p.prototype),_(p.prototype,"handleMouseDown",[u.action],Object.getOwnPropertyDescriptor(p.prototype,"handleMouseDown"),p.prototype),_(p.prototype,"_modalBodyShown",[s.bind],Object.getOwnPropertyDescriptor(p.prototype,"_modalBodyShown"),p.prototype),_(p.prototype,"_handleModalEvents",[s.bind],Object.getOwnPropertyDescriptor(p.prototype,"_handleModalEvents"),p.prototype),_(p.prototype,"_clearFlash",[s.bind],Object.getOwnPropertyDescriptor(p.prototype,"_clearFlash"),p.prototype),_(p.prototype,"_flash",[s.bind],Object.getOwnPropertyDescriptor(p.prototype,"_flash"),p.prototype),d=p))||d
e.default=w,(0,t.setComponentTemplate)(v,w)})),define("discourse/components/d-modal",["exports","@embroider/macros/es-compat","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@glimmer/tracking","@ember/service"],(function(e,t,i,n,r,o,s,l){var a,u,c
function d(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function p(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CLOSE_INITIATED_BY_MODAL_SHOW=e.CLOSE_INITIATED_BY_ESC=e.CLOSE_INITIATED_BY_CLICK_OUTSIDE=e.CLOSE_INITIATED_BY_BUTTON=void 0
const h=(0,n.createTemplateFactory)({id:"X64XvR7x",block:'[[[1,"\\n"],[8,[39,0],null,[["@element","@inline"],[[30,0,["modal","containerElement"]],[30,1]]],[["default"],[[[[1,"\\n  "],[8,[30,0,["dynamicElement"]],[[16,0,[28,[37,1],["modal","d-modal",[52,[30,1],"inline-modal","fixed-modal"]],null]],[24,"data-keyboard","false"],[24,"aria-modal","true"],[24,"role","dialog"],[16,"aria-labelledby",[52,[30,2],"discourse-modal-title"]],[17,3],[4,[38,3],[[30,0,["setupListeners"]]],null],[4,[38,4],[[30,0,["cleanupListeners"]]],null],[4,[38,5],["mouseup",[30,0,["handleMouseUp"]]],null]],null,[["default"],[[[[1,"\\n    "],[10,0],[14,0,"modal-outer-container"],[12],[1,"\\n      "],[10,0],[14,0,"modal-middle-container"],[12],[1,"\\n        "],[10,0],[14,0,"modal-inner-container"],[12],[1,"\\n          "],[18,9,null],[1,"\\n\\n"],[41,[28,[37,7],[[30,0,["dismissable"]],[30,2],[48,[30,10]],[48,[30,11]]],null],[[[1,"            "],[10,0],[15,0,[28,[37,1],["modal-header",[30,4]],null]],[12],[1,"\\n"],[41,[30,0,["dismissable"]],[[[1,"                "],[8,[39,9],null,[["@icon","@action","@class","@title"],["times",[30,0,["handleCloseButton"]],"btn-flat modal-close close","modal.close"]],null],[1,"\\n"]],[]],null],[1,"\\n              "],[18,11,null],[1,"\\n\\n              "],[10,0],[14,0,"modal-title-wrapper"],[12],[1,"\\n"],[41,[30,2],[[[1,"                  "],[10,0],[14,0,"title"],[12],[1,"\\n                    "],[10,"h3"],[14,1,"discourse-modal-title"],[12],[1,[30,2]],[13],[1,"\\n\\n"],[41,[30,5],[[[1,"                      "],[10,2],[14,0,"subtitle"],[12],[1,[30,5]],[13],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n"]],[]],null],[1,"\\n                "],[18,10,null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[18,12,null],[1,"\\n\\n          "],[1,[28,[30,0,["validateFlashType"]],[[30,6]],null]],[1,"\\n"],[41,[30,7],[[[1,"            "],[10,0],[14,1,"modal-alert"],[14,"role","alert"],[15,0,[28,[37,1],["alert",[52,[30,6],[28,[37,10],["alert-",[30,6]],null]]],null]],[12],[1,[30,7]],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[10,0],[15,0,[28,[37,1],["modal-body",[30,8]],null]],[14,"tabindex","-1"],[12],[1,"\\n"],[41,[48,[30,13]],[[[1,"              "],[18,13,null],[1,"\\n"]],[]],[[[1,"              "],[18,14,null],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n\\n"],[41,[48,[30,15]],[[[1,"            "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n              "],[18,15,null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[18,16,null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"],[41,[51,[30,1]],[[[1,"    "],[10,0],[14,0,"modal-backdrop"],[12],[13],[1,"\\n"]],[]],null]],[]]]]]],["@inline","@title","&attrs","@headerClass","@subtitle","@flashType","@flash","@bodyClass","&aboveHeader","&headerBelowTitle","&headerAboveTitle","&belowHeader","&body","&default","&footer","&belowFooter"],false,["conditional-in-element","concat-class","if","did-insert","will-destroy","on","yield","or","has-block","d-button","concat","unless"]]',moduleName:"discourse/components/d-modal.hbs",isStrictMode:!1})
let f=(0,t.default)(require("ember-cached-decorator-polyfill")).cached
const g="initiatedByCloseButton"
e.CLOSE_INITIATED_BY_BUTTON=g
const b="initiatedByESC"
e.CLOSE_INITIATED_BY_ESC=b
const y="initiatedByClickOut"
e.CLOSE_INITIATED_BY_CLICK_OUTSIDE=y
e.CLOSE_INITIATED_BY_MODAL_SHOW="initiatedByModalShow"
const _=["success","error","warning","info"]
let v=(a=class extends r.default{constructor(){super(...arguments),d(this,"modal",u,this),d(this,"wrapperElement",c,this)}setupListeners(e){document.documentElement.addEventListener("keydown",this.handleDocumentKeydown),this.wrapperElement=e,this.trapTab()}cleanupListeners(){document.documentElement.removeEventListener("keydown",this.handleDocumentKeydown)}get dismissable(){return!!this.args.closeModal&&(!("dismissable"in this.args)||this.args.dismissable)}shouldTriggerClickOnEnter(e){return!1!==this.args.submitOnEnter&&(!e.target.closest("form")&&"TEXTAREA"!==document.activeElement?.nodeName)}handleMouseUp(e){if(0===e.button&&this.dismissable)return e.target.classList.contains("modal-middle-container")||e.target.classList.contains("modal-outer-container")?this.args.closeModal?.({initiatedBy:y}):void 0}handleDocumentKeydown(e){this.args.hidden||("Escape"===e.key&&this.dismissable&&this.args.closeModal({initiatedBy:b}),"Enter"===e.key&&this.shouldTriggerClickOnEnter(e)&&(this.wrapperElement.querySelector(".modal-footer .btn-primary")?.click(),e.preventDefault()),"Tab"===e.key&&this.trapTab(e))}trapTab(e){if(this.args.hidden)return!0
const t=this.wrapperElement.querySelector(".modal-inner-container")
if(!t)return
let i='[autofocus], a, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])'
if(!e){const e=t.querySelector("[autofocus]")
return void(e&&document.activeElement===e||(e||t.querySelector(i+", button:not(.modal-close)")||t.querySelector(".modal-body"))?.focus())}i+=", button:enabled"
const n=t.querySelector(i),r=t.querySelectorAll(i),o=r[r.length-1]
e.shiftKey?document.activeElement===n&&(o?.focus(),e.preventDefault()):document.activeElement===o&&((t.querySelector(".modal-close")||n)?.focus(),e.preventDefault())}handleCloseButton(){this.args.closeModal({initiatedBy:g})}validateFlashType(e){if(e&&!_.includes(e))throw`@flashType must be one of ${_.join(", ")}`}get dynamicElement(){const e=this.args.tagName||"div"
if(!["div","form"].includes(e))throw"@tagName must be form or div"
return class extends i.default{constructor(){super(...arguments),p(this,"tagName",e)}}}},u=m(a.prototype,"modal",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(a.prototype,"wrapperElement",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(a.prototype,"setupListeners",[o.action],Object.getOwnPropertyDescriptor(a.prototype,"setupListeners"),a.prototype),m(a.prototype,"cleanupListeners",[o.action],Object.getOwnPropertyDescriptor(a.prototype,"cleanupListeners"),a.prototype),m(a.prototype,"handleMouseUp",[o.action],Object.getOwnPropertyDescriptor(a.prototype,"handleMouseUp"),a.prototype),m(a.prototype,"handleDocumentKeydown",[o.action],Object.getOwnPropertyDescriptor(a.prototype,"handleDocumentKeydown"),a.prototype),m(a.prototype,"trapTab",[o.action],Object.getOwnPropertyDescriptor(a.prototype,"trapTab"),a.prototype),m(a.prototype,"handleCloseButton",[o.action],Object.getOwnPropertyDescriptor(a.prototype,"handleCloseButton"),a.prototype),m(a.prototype,"validateFlashType",[o.action],Object.getOwnPropertyDescriptor(a.prototype,"validateFlashType"),a.prototype),m(a.prototype,"dynamicElement",[f],Object.getOwnPropertyDescriptor(a.prototype,"dynamicElement"),a.prototype),a)
e.default=v,(0,i.setComponentTemplate)(h,v)})),define("discourse/components/d-navigation-item",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"+xi/G5Mq",block:'[[[11,"li"],[16,"aria-current",[30,0,["ariaCurrent"]]],[16,"title",[30,1]],[16,0,[30,2]],[17,3],[12],[1,"\\n  "],[8,[39,0],null,[["@route"],[[30,4]]],[["default"],[[[[1,"\\n    "],[18,5,null],[1,"\\n  "]],[]]]]],[1,"\\n"],[13]],["@title","@class","&attrs","@route","&default"],false,["link-to","yield"]]',moduleName:"discourse/components/d-navigation-item.hbs",isStrictMode:!1})
let a=(o=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="router",n=this,(i=s)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get ariaCurrent(){return"parentNav"===this.args.ariaCurrentContext&&this.router.currentRouteName!==this.args.route&&this.router.currentRoute.parent.name.includes(this.args.route)?"page":this.router.currentRouteName!==this.args.route?null:"subNav"===this.args.ariaCurrentContext?"location":"page"}},u=o.prototype,c="router",d=[r.inject],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),s=h,o)
var u,c,d,p,m,h
e.default=a,(0,t.setComponentTemplate)(l,a)})),define("discourse/components/d-navigation",["exports","@ember/component","@ember/template-factory","discourse/mixins/filter-mode","discourse/models/nav-item","discourse-common/utils/decorators","discourse/lib/notification-levels","discourse-common/lib/get-owner","@ember/template","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f,g,b,y,_,v,w,k,x,P
function O(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const T=(0,i.createTemplateFactory)({id:"q41M6g7l",block:'[[[8,[39,0],null,[["@categories","@category","@noSubcategories","@tag","@additionalTags"],[[30,0,["categories"]],[30,0,["category"]],[30,0,["noSubcategories"]],[30,0,["tag"]],[30,0,["additionalTags"]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["additionalTags"]]],[[[1,"  "],[8,[39,2],null,[["@navItems","@filterMode","@category"],[[30,0,["navItems"]],[30,0,["filterMode"]],[30,0,["category"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["notCategoriesRoute"]],[30,0,["site","mobileView"]],[30,0,["canBulk"]]],null],[[[1,"    "],[8,[39,5],null,[["@parentController","@tagName"],["discovery/topics",""]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showCategoryAdmin"]],[[[1,"    "],[8,[39,6],null,[["@onChange","@options"],[[28,[37,7],[[30,0],"selectCategoryAdminDropdownAction"],null],[28,[37,8],null,[["triggerOnChangeOnTab"],[false]]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,4],[[30,0,["category"]],[30,0,["showCategoryEdit"]]],null],[[[1,"    "],[8,[39,9],null,[["@class","@action","@icon","@title"],["btn-default edit-category",[30,0,["editCategory"]],"wrench","category.edit_title"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["tag"]],[[[41,[30,0,["showToggleInfo"]],[[[1,"      "],[8,[39,9],null,[["@icon","@class","@ariaLabel","@action","@id"],[[52,[30,0,["currentUser","staff"]],"wrench","info-circle"],"btn-default","tagging.info",[30,0,["toggleInfo"]],"show-tag-info"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n  "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["before-create-topic-button","div",[28,[37,8],null,[["canCreateTopic","createTopicDisabled","createTopicLabel","additionalTags","category","tag"],[[30,0,["canCreateTopic"]],[30,0,["createTopicDisabled"]],[30,0,["createTopicLabel"]],[30,0,["additionalTags"]],[30,0,["category"]],[30,0,["tag"]]]]]]],null],[1,"\\n\\n  "],[8,[39,11],null,[["@canCreateTopic","@action","@disabled","@label","@btnClass","@canCreateTopicOnTag"],[[30,0,["canCreateTopic"]],[28,[37,7],[[30,0],"clickCreateTopicButton"],null],[30,0,["createTopicButtonDisabled"]],[30,0,["createTopicLabel"]],[30,0,["createTopicClass"]],[30,0,["canCreateTopicOnTag"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["createTopicButtonDisabled"]],[[[1,"      "],[8,[39,12],null,null,[["default"],[[[[1,[28,[35,13],["topic.create_disabled_category"],null]]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n\\n  "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["after-create-topic-button","div",[28,[37,8],null,[["canCreateTopic","createTopicDisabled","createTopicLabel","category"],[[30,0,["canCreateTopic"]],[30,0,["createTopicDisabled"]],[30,0,["createTopicLabel"]],[30,0,["category"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["category"]],[[[41,[51,[30,0,["tag"]]],[[[41,[30,0,["showCategoryNotifications"]],[[[1,"        "],[8,[39,14],null,[["@value","@category","@onChange"],[[30,0,["categoryNotificationLevel"]],[30,0,["category"]],[28,[37,7],[[30,0],"changeCategoryNotificationLevel"],null]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["tag"]],[[[41,[51,[30,0,["category"]]],[[[41,[30,0,["showTagNotifications"]],[[[1,"        "],[8,[39,15],null,[["@onChange","@value"],[[30,0,["changeTagNotificationLevel"]],[30,0,["tagNotification","notification_level"]]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[13]],[],false,["bread-crumbs","unless","navigation-bar","if","and","bulk-select-toggle","categories-admin-dropdown","action","hash","d-button","plugin-outlet","create-topic-button","d-tooltip","i18n","category-notifications-button","tag-notifications-button"]]',moduleName:"discourse/components/d-navigation.hbs",isStrictMode:!1})
var S=(0,t.setComponentTemplate)(T,t.default.extend(n.default,(c=(0,o.default)("site.categoriesList"),d=(0,o.default)("category"),p=(0,o.default)("category.notification_level"),m=(0,o.default)("tagNotification","additionalTags"),h=(0,o.default)("category","createTopicDisabled"),f=(0,o.default)("createTopicDisabled","hasDraft","categoryReadOnlyBanner","canCreateTopicOnTag","tag.id"),g=(0,o.default)("categoryReadOnlyBanner","hasDraft"),b=(0,o.default)("hasDraft"),y=(0,o.default)("category.can_edit"),_=(0,o.default)("additionalTags","category","tag.id"),v=(0,o.default)("filterType","category","noSubcategories","tag.id","router.currentRoute.queryParams","skipCategoriesNavItem"),w=(0,o.default)("filterType"),k=(0,o.default)(),O(x={router:(0,u.inject)(),dialog:(0,u.inject)(),tagName:"",categories(e){return this.currentUser?.indirectly_muted_category_ids?e.filter((e=>!this.currentUser.indirectly_muted_category_ids.includes(e.id))):e},showCategoryNotifications(e){return e&&this.currentUser},categoryNotificationLevel(e){return this.currentUser?.indirectly_muted_category_ids?.includes(this.category.id)?s.NotificationLevels.MUTED:e},showTagNotifications:(e,t)=>e&&!t,categoryReadOnlyBanner(e,t){if(e&&this.currentUser&&t)return e.read_only_banner},createTopicButtonDisabled:(e,t,i,n,r)=>!(!r||n)||!(i&&!t)&&e,createTopicClass(e,t){let i=["btn-default"]
return t?i.push("open-draft"):e&&i.push("disabled"),i.join(" ")},createTopicLabel:e=>e?"topic.open_draft":"topic.create",showCategoryEdit:e=>e,showToggleInfo:(e,t,i)=>!e&&!t&&"none"!==i,navItems(e,t,i,n,o,s){return r.default.buildList(t,{filterType:e,noSubcategories:i,currentRouteQueryParams:o,tagId:n,siteSettings:this.siteSettings,skipCategoriesNavItem:s})},notCategoriesRoute:e=>"categories"!==e,canBulk(){return(0,l.getOwner)(this).lookup("controller:discovery/topics").canBulkSelect},actions:{changeCategoryNotificationLevel(e){this.category.setNotification(e)},selectCategoryAdminDropdownAction(e){switch(e){case"create":this.createCategory()
break
case"reorder":this.reorderCategories()}},clickCreateTopicButton(){this.categoryReadOnlyBanner&&!this.hasDraft?this.dialog.alert({message:(0,a.htmlSafe)(this.categoryReadOnlyBanner)}):this.createTopic()}}},"categories",[c],Object.getOwnPropertyDescriptor(x,"categories"),x),O(x,"showCategoryNotifications",[d],Object.getOwnPropertyDescriptor(x,"showCategoryNotifications"),x),O(x,"categoryNotificationLevel",[p],Object.getOwnPropertyDescriptor(x,"categoryNotificationLevel"),x),O(x,"showTagNotifications",[m],Object.getOwnPropertyDescriptor(x,"showTagNotifications"),x),O(x,"categoryReadOnlyBanner",[h],Object.getOwnPropertyDescriptor(x,"categoryReadOnlyBanner"),x),O(x,"createTopicButtonDisabled",[f],Object.getOwnPropertyDescriptor(x,"createTopicButtonDisabled"),x),O(x,"createTopicClass",[g],Object.getOwnPropertyDescriptor(x,"createTopicClass"),x),O(x,"createTopicLabel",[b],Object.getOwnPropertyDescriptor(x,"createTopicLabel"),x),O(x,"showCategoryEdit",[y],(P=(P=Object.getOwnPropertyDescriptor(x,"showCategoryEdit"))?P.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return P}}),x),O(x,"showToggleInfo",[_],Object.getOwnPropertyDescriptor(x,"showToggleInfo"),x),O(x,"navItems",[v],Object.getOwnPropertyDescriptor(x,"navItems"),x),O(x,"notCategoriesRoute",[w],Object.getOwnPropertyDescriptor(x,"notCategoriesRoute"),x),O(x,"canBulk",[k],Object.getOwnPropertyDescriptor(x,"canBulk"),x),x)))
e.default=S})),define("discourse/components/d-popover",["exports","@ember/component","@ember/template-factory","discourse-common/lib/icon-library","tippy.js","@ember/object/internals","@ember/object","@ember/runloop","discourse/lib/d-popover"],(function(e,t,i,n,r,o,s,l,a){var u
function c(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"0xUvVv99",block:'[[[11,0],[16,1,[30,0,["componentId"]]],[16,0,[29,["d-popover ",[30,0,["class"]]," ",[52,[30,0,["isExpanded"]],"is-expanded"]]]],[4,[38,1],["click",[28,[37,2],[[30,0],"close"],null]],null],[12],[1,"\\n  "],[18,1,[[28,[37,4],null,[["isExpanded"],[[30,0,["isExpanded"]]]]]]],[1,"\\n"],[13]],["&default"],false,["if","on","action","yield","hash"]]',moduleName:"discourse/components/d-popover.hbs",isStrictMode:!1})
let p=(u=class extends t.default{constructor(){super(...arguments),c(this,"tagName",""),c(this,"isExpanded",!1),c(this,"options",null),c(this,"class",null)}didInsertElement(){this._super(...arguments),this._tippyInstance=this._setupTippy()}willDestroyElement(){this._super(...arguments),this._tippyInstance?.destroy()}get componentId(){return(0,o.guidFor)(this)}close(e){e.preventDefault(),this.isExpanded&&this._tippyInstance?.hide()}_setupTippy(){const e={trigger:"click",zIndex:1400,arrow:(0,n.iconHTML)("tippy-rounded-arrow"),interactive:!0,allowHTML:!1,appendTo:"parent",hideOnClick:!0,plugins:[a.hideOnEscapePlugin],content:this.options?.content||document.getElementById(this.componentId).querySelector(":scope > .d-popover-content, :scope > div, :scope > ul"),onShow:()=>((0,l.next)((()=>{this.isDestroyed||this.isDestroying||this.set("isExpanded",!0)})),!0),onHide:()=>((0,l.next)((()=>{this.isDestroyed||this.isDestroying||this.set("isExpanded",!1)})),!0)},t=document.getElementById(this.componentId).querySelector(':scope > .d-popover-trigger, :scope > .btn, :scope > [role="button"]')
if(!t)return null
const i=(0,r.default)(t,Object.assign({},e,this.options||{}))
return i?.id?i:null}},m=u.prototype,h="close",f=[s.action],g=Object.getOwnPropertyDescriptor(u.prototype,"close"),b=u.prototype,y={},Object.keys(g).forEach((function(e){y[e]=g[e]})),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=f.slice().reverse().reduce((function(e,t){return t(m,h,e)||e}),y),b&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(b):void 0,y.initializer=void 0),void 0===y.initializer&&(Object.defineProperty(m,h,y),y=null),u)
var m,h,f,g,b,y
e.default=p,(0,t.setComponentTemplate)(d,p)})),define("discourse/components/d-section",["exports","discourse-common/lib/deprecated","@ember/component","discourse/mixins/scroll-top","@ember/runloop"],(function(e,t,i,n,r){function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class s extends i.default{constructor(){super(...arguments),o(this,"tagName",null),o(this,"pageClass",null),o(this,"bodyClass",null),o(this,"scrollTop",!0),o(this,"currentClasses",new Set)}didInsertElement(){this._super(...arguments),"false"!==this.scrollTop?this.scrollTop&&(0,n.scrollTop)():(0,t.default)("Uses boolean instead of string for scrollTop.",{since:"2.8.0.beta9",dropFrom:"2.9.0.beta1",id:"discourse.d-section.scroll-top-boolean"})}didReceiveAttrs(){this._super(...arguments),(0,r.scheduleOnce)("afterRender",this,this._updateClasses)}willDestroyElement(){this._super(...arguments),(0,r.scheduleOnce)("afterRender",this,this._removeClasses)}_updateClasses(){if(this.isDestroying||this.isDestroyed)return
const e=new Set
if(this.pageClass&&e.add(`${this.pageClass}-page`),this.bodyClass)for(const i of this.bodyClass.split(" "))e.add(i)
document.body.classList.add(...e)
const t=[...this.currentClasses].filter((t=>!e.has(t)))
document.body.classList.remove(...t),this.currentClasses=e}_removeClasses(){document.body.classList.remove(...this.currentClasses)}}e.default=s})),define("discourse/components/d-textarea",["exports","@ember/legacy-built-in-components"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.TextArea.extend({attributeBindings:["aria-label"]})
e.default=i})),define("discourse/components/d-toggle-switch",["exports","@ember/component","@ember/template-factory","@glimmer/component","I18n"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"stl/lTif",block:'[[[10,0],[14,0,"d-toggle-switch"],[12],[1,"\\n  "],[10,"label"],[14,0,"d-toggle-switch--label"],[12],[1,"\\n"],[1,"    "],[11,"button"],[24,0,"d-toggle-switch__checkbox"],[24,4,"button"],[24,"role","switch"],[16,"aria-checked",[30,0,["checked"]]],[17,1],[12],[13],[1,"\\n"],[1,"\\n    "],[10,1],[14,0,"d-toggle-switch__checkbox-slider"],[12],[1,"\\n"],[41,[30,2],[[[1,"        "],[1,[28,[35,1],["check"],null]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,1],[14,0,"d-toggle-switch__checkbox-label"],[12],[1,"\\n    "],[1,[30,0,["computedLabel"]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["&attrs","@state"],false,["if","d-icon"]]',moduleName:"discourse/components/d-toggle-switch.hbs",isStrictMode:!1})
class s extends n.default{get computedLabel(){return this.args.label?r.default.t(this.args.label):this.args.translatedLabel}get checked(){return this.args.state?"true":"false"}}e.default=s,(0,t.setComponentTemplate)(o,s)})),define("discourse/components/d-tooltip",["exports","@ember/component","@ember/template-factory","@ember/runloop","discourse-common/lib/icon-library","tippy.js","ember"],(function(e,t,i,n,r,o,s){function l(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"j/A+y0fx",block:'[[[10,0],[12],[1,"\\n  "],[18,1,null],[1,"\\n"],[13]],["&default"],false,["yield"]]',moduleName:"discourse/components/d-tooltip.hbs",isStrictMode:!1})
class u extends t.default{constructor(){super(...arguments),l(this,"tagName",""),l(this,"interactive",!1),l(this,"placement",this.args?.placement||"bottom-start")}didInsertElement(){this._super(...arguments),this._initTippy()}willDestroyElement(){this._super(...arguments),this._tippyInstance.destroy()}stopPropagation(e,t){t.preventDefault(),t.stopPropagation()}_initTippy(){(0,n.schedule)("afterRender",(()=>{const e=s.default.ViewUtils.getViewBounds(this),t=e.firstNode,i=e.parentElement,n=this.interactive
this._tippyInstance=(0,o.default)(i,{interactive:n,content:t,trigger:this.capabilities.touch?"click":"mouseenter",theme:this.attrs.theme||"d-tooltip",arrow:!!this.attrs.arrow&&(0,r.iconHTML)("tippy-rounded-arrow"),placement:this.placement,onTrigger:this.stopPropagation,onUntrigger:this.stopPropagation})}))}}e.default=u,(0,t.setComponentTemplate)(a,u)})),define("discourse/components/date-input",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","I18n","rsvp","@ember/object","discourse/lib/load-script","@ember/runloop"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"1XRLewO+",block:'[[[8,[39,0],[[24,0,"date-picker"],[16,"placeholder",[30,0,["placeholder"]]],[16,1,[30,0,["inputId"]]],[4,[38,2],["input",[28,[37,3],[[30,0],"onChangeDate"],null]],null]],[["@type","@value"],[[30,0,["inputType"]],[28,[37,1],[[30,0,["value"]]],null]]],null],[1,"\\n\\n"],[41,[51,[30,0,["useGlobalPickerContainer"]]],[[[1,"  "],[10,0],[14,0,"picker-container"],[12],[13],[1,"\\n"]],[]],null]],[],false,["input","readonly","on","action","unless"]]',moduleName:"discourse/components/date-input.hbs",isStrictMode:!1})
var g=(0,t.setComponentTemplate)(f,t.default.extend((u=(0,n.default)("site.mobileView"),c=(0,n.on)("willDestroyElement"),d=(0,n.default)("_placeholder"),p={classNames:["d-date-input"],date:null,_picker:null,inputType(){return this.useNativePicker?"date":"text"},useNativePicker:function(){const e=document.createElement("input")
return e.setAttribute("type","date"),e.setAttribute("value","a"),"a"!==e.value}(),click(e){e.stopPropagation()},didInsertElement(){this._super(...arguments),(0,a.schedule)("afterRender",(()=>{if(!this.element||this.isDestroying||this.isDestroying)return
let e
const t=document.getElementById(this.containerId)
e=this.useNativePicker?this._loadNativePicker(t):this._loadPikadayPicker(t),e.then((e=>{if(this._picker=e,this._picker&&this.date){const e=this.date instanceof moment?this.date:moment(this.date)
this._picker.setDate(e,!0)}}))}))},didUpdateAttrs(){if(this._super(...arguments),this._picker&&this.date){const e=this.date instanceof moment?this.date:moment(this.date)
this._picker.setDate(e,!0)}if(this._picker&&this.relativeDate){const e=this.relativeDate instanceof moment?this.relativeDate:moment(this.relativeDate)
this._picker.setMinDate(e,!0)}this._picker&&!this.date&&this._picker.setDate(null)},_loadPikadayPicker(e){return(0,l.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:r.default.t("dates.previous_month"),nextMonth:r.default.t("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysShort()},onSelect:e=>this._handleSelection(e)}
return this.relativeDate&&(t=Object.assign({},t,{minDate:moment(this.relativeDate).toDate()})),new Pikaday(Object.assign({},t,this._opts()))}))},_loadNativePicker(e){const t=(e||this.element).querySelector("input.date-picker")
return t.onchange=()=>this._handleSelection(t.value),t.hide=()=>{},t.destroy=()=>{},t.setDate=e=>{t.value=e?moment(e).format("YYYY-MM-DD"):null},t.setMinDate=e=>{t.min=e},this.date&&t.setDate(this.date),o.Promise.resolve(t)},_handleSelection(e){!this.element||this.isDestroying||this.isDestroyed||this.onChange&&this.onChange(e?moment(e):null)},_destroy(){this._picker&&(this._picker.destroy(),this._picker=null)},placeholder:{get:e=>e||r.default.t("dates.placeholder"),set(e){return this.set("_placeholder",e),e}},_opts:()=>null,onChangeDate(e){this._handleSelection(e.target.value)}},h(p,"inputType",[u],Object.getOwnPropertyDescriptor(p,"inputType"),p),h(p,"_destroy",[c],Object.getOwnPropertyDescriptor(p,"_destroy"),p),h(p,"placeholder",[d],(m=(m=Object.getOwnPropertyDescriptor(p,"placeholder"))?m.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return m}}),p),h(p,"onChangeDate",[s.action],Object.getOwnPropertyDescriptor(p,"onChangeDate"),p),p)))
e.default=g})),define("discourse/components/date-picker-future",["exports","discourse/components/date-picker"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({_opts(){return{defaultDate:this.defaultDate||moment().add(1,"day").toDate(),setDefaultDate:!!this.defaultDate,minDate:this.minDate||moment().toDate()}}})
e.default=i})),define("discourse/components/date-picker-past",["exports","discourse/components/date-picker"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({_opts(){return{defaultDate:moment(this.defaultDate,"YYYY-MM-DD").toDate()||new Date,setDefaultDate:!!this.defaultDate,maxDate:new Date}}})
e.default=i})),define("discourse/components/date-picker",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","I18n","discourse/lib/load-script","@ember/runloop"],(function(e,t,i,n,r,o,s){var l,a,u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"kT0NJodg",block:'[[[8,[39,0],[[24,0,"date-picker"],[16,"placeholder",[30,0,["placeholder"]]],[24,"autocomplete","off"]],[["@type","@value"],[[30,0,["inputType"]],[30,0,["value"]]]],null]],[],false,["input"]]',moduleName:"discourse/components/date-picker.hbs",isStrictMode:!1}),h="YYYY-MM-DD"
var f=(0,t.setComponentTemplate)(m,t.default.extend((l=(0,n.default)("site.mobileView"),a=(0,n.on)("didInsertElement"),u=(0,n.on)("willDestroyElement"),c=(0,n.default)(),p(d={classNames:["date-picker-wrapper"],_picker:null,value:null,inputType:e=>e?"date":"text",_loadDatePicker(){if(this.site.mobileView)this._loadNativePicker()
else{const e=document.getElementById(this.containerId)
this._loadPikadayPicker(e)}},_loadPikadayPicker(e){(0,o.default)("/javascripts/pikaday.js").then((()=>{(0,s.schedule)("afterRender",(()=>{const t={field:this.element.querySelector(".date-picker"),container:e||null,bound:null===e,format:h,firstDay:1,i18n:{previousMonth:r.default.t("dates.previous_month"),nextMonth:r.default.t("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysMin()},onSelect:e=>this._handleSelection(e)}
this._picker=new Pikaday(Object.assign(t,this._opts()))}))}))},_loadNativePicker(){const e=this.element.querySelector("input.date-picker")
e.onchange=()=>this._handleSelection(e.value),e.hide=()=>{},e.destroy=()=>{},this._picker=e},_handleSelection(e){const t=moment(e).format(h)
!this.element||this.isDestroying||this.isDestroyed||this.onSelect&&this.onSelect(t)},_destroy(){this._picker&&(this._picker.destroy(),this._picker=null)},placeholder:()=>r.default.t("dates.placeholder"),_opts:()=>null},"inputType",[l],Object.getOwnPropertyDescriptor(d,"inputType"),d),p(d,"_loadDatePicker",[a],Object.getOwnPropertyDescriptor(d,"_loadDatePicker"),d),p(d,"_destroy",[u],Object.getOwnPropertyDescriptor(d,"_destroy"),d),p(d,"placeholder",[c],Object.getOwnPropertyDescriptor(d,"placeholder"),d),d)))
e.default=f})),define("discourse/components/date-time-input-range",["exports","@ember/component","@ember/template-factory","@ember/object"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"yd3SyU/2",block:'[[[8,[39,0],null,[["@date","@onChange","@showTime","@class","@placeholder","@timezone"],[[30,0,["from"]],[28,[37,1],[[30,0],"onChangeRanges",[28,[37,2],null,[["prop"],["from"]]]],null],[30,0,["showFromTime"]],"from",[28,[37,3],["dates.from_placeholder"],null],[30,1]]],null],[1,"\\n\\n"],[8,[39,0],null,[["@date","@relativeDate","@onChange","@timeFirst","@showTime","@clearable","@class","@placeholder","@timezone"],[[30,0,["to"]],[30,0,["from"]],[28,[37,1],[[30,0],"onChangeRanges",[28,[37,2],null,[["prop"],["to"]]]],null],[30,0,["toTimeFirst"]],[30,0,["showToTime"]],[30,0,["clearable"]],"to",[28,[37,3],["dates.to_placeholder"],null],[30,1]]],null]],["@timezone"],false,["date-time-input","action","hash","i18n"]]',moduleName:"discourse/components/date-time-input-range.hbs",isStrictMode:!1})
var s,l,a,u,c,d,p=(0,t.setComponentTemplate)(o,t.default.extend((s=r={classNames:["d-date-time-input-range"],from:null,to:null,onChangeTo:null,onChangeFrom:null,toTimeFirst:!1,showToTime:!0,showFromTime:!0,clearable:!1,onChangeRanges(e,t){if(this.onChange){const i={from:this.from,to:this.to},n={}
"from"===e.prop&&(this.to&&t?.isAfter(this.to)?(n[e.prop]=t,n.to=t.clone().add(1,"hour")):n[e.prop]=t),"to"===e.prop&&(t&&t.isBefore(this.from)?n[e.prop]=this.from.clone().add(1,"hour"):n[e.prop]=t)
const r=Object.assign({},i,n)
this.onChange(r)}}},l="onChangeRanges",a=[n.action],u=Object.getOwnPropertyDescriptor(r,"onChangeRanges"),c=r,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r)))
e.default=p})),define("discourse/components/date-time-input",["exports","@ember/component","@ember/template-factory","@ember/object"],(function(e,t,i,n){var r,o
function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"po7ciQSt",block:'[[[41,[51,[30,0,["timeFirst"]]],[[[1,"  "],[8,[39,1],null,[["@date","@placeholder","@relativeDate","@onChange","@useGlobalPickerContainer"],[[30,0,["date"]],[30,0,["placeholder"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeDate"],null],[30,0,["useGlobalPickerContainer"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showTime"]],[[[1,"  "],[8,[39,4],null,[["@date","@relativeDate","@onChange"],[[30,0,["date"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeTime"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["timeFirst"]],[[[1,"  "],[8,[39,1],null,[["@date","@placeholder","@relativeDate","@onChange","@useGlobalPickerContainer"],[[30,0,["date"]],[30,0,["placeholder"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeDate"],null],[30,0,["useGlobalPickerContainer"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["clearable"]],[[[1,"  "],[8,[39,5],null,[["@class","@icon","@action"],["btn-default clear-date-time","times",[28,[37,2],[[30,0],"onClear"],null]]],null],[1,"\\n"]],[]],null]],[],false,["unless","date-input","action","if","time-input","d-button"]]',moduleName:"discourse/components/date-time-input.hbs",isStrictMode:!1})
var a=(0,t.setComponentTemplate)(l,t.default.extend((r=(0,n.computed)("timezone"),s(o={classNames:["d-date-time-input"],date:null,relativeDate:null,showTime:!0,clearable:!1,hours:(0,n.computed)("date","showTime",(function(){return this.date&&this.get("showTime")?this.date.hours():null})),minutes:(0,n.computed)("date","showTime",(function(){return this.date&&this.get("showTime")?this.date.minutes():null})),onClear(){this.onChange(null)},onChangeTime(e){if(this.onChange){const t=this.date?this.date:this.relativeDate?this.relativeDate:moment.tz(this.resolvedTimezone)
this.onChange(moment.tz({year:t.year(),month:t.month(),day:t.date(),hours:e.hours,minutes:e.minutes},this.resolvedTimezone))}},onChangeDate(e){e?this.onChange?.(moment.tz({year:e.year(),month:e.month(),day:e.date(),hours:this.hours||0,minutes:this.minutes||0},this.resolvedTimezone)):this.onClear()},get resolvedTimezone(){return this.timezone||moment.tz.guess()}},"onClear",[n.action],Object.getOwnPropertyDescriptor(o,"onClear"),o),s(o,"onChangeTime",[n.action],Object.getOwnPropertyDescriptor(o,"onChangeTime"),o),s(o,"onChangeDate",[n.action],Object.getOwnPropertyDescriptor(o,"onChangeDate"),o),s(o,"resolvedTimezone",[r],Object.getOwnPropertyDescriptor(o,"resolvedTimezone"),o),o)))
e.default=a})),define("discourse/components/desktop-notification-config",["exports","@ember/component","@ember/template-factory","discourse/lib/desktop-notifications","discourse/lib/push-notifications","discourse/lib/key-value-store","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p,m,h,f
function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=(0,i.createTemplateFactory)({id:"1DocfkXR",block:'[[[41,[30,0,["isNotSupported"]],[[[1,"  "],[8,[39,1],null,[["@icon","@class","@label","@disabled"],["bell-slash","btn-default","user.desktop_notifications.not_supported","true"]],null],[1,"\\n"]],[]],null],[41,[30,0,["isDeniedPermission"]],[[[1,"  "],[8,[39,1],null,[["@icon","@class","@label","@action","@disabled"],["bell-slash","btn-default","user.desktop_notifications.perm_denied_btn",[28,[37,2],[[30,0],"recheckPermission"],null],"true"]],null],[1,"\\n  "],[1,[28,[35,3],["user.desktop_notifications.perm_denied_expl"],null]],[1,"\\n"]],[]],[[[41,[30,0,["isSubscribed"]],[[[1,"    "],[8,[39,1],null,[["@icon","@class","@label","@action"],["far-bell-slash","btn-default","user.desktop_notifications.disable",[28,[37,2],[[30,0],"turnoff"],null]]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,1],null,[["@icon","@class","@label","@action"],["far-bell","btn-default","user.desktop_notifications.enable",[28,[37,2],[[30,0],"turnon"],null]]],null],[1,"\\n"]],[]]]],[]]]],[],false,["if","d-button","action","i18n"]]',moduleName:"discourse/components/desktop-notification-config.hbs",isStrictMode:!1}),y=new o.default(n.context)
var _=(0,t.setComponentTemplate)(b,t.default.extend((a=(0,s.default)("isNotSupported"),u=(0,s.default)("isNotSupported","notificationsPermission"),c=(0,s.default)("isNotSupported","notificationsPermission"),d=(0,s.default)("isGrantedPermission","notificationsDisabled"),p=(0,s.default)("isEnabled","isEnabledPush","notificationsDisabled"),g(m={classNames:["controls"],notificationsPermission:e=>e?"":Notification.permission,notificationsDisabled:{set:e=>(y.setItem("notifications-disabled",e),y.getItem("notifications-disabled")),get:()=>y.getItem("notifications-disabled")},isNotSupported:()=>void 0===window.Notification,isDeniedPermission:(e,t)=>!e&&"denied"===t,isGrantedPermission:(e,t)=>!e&&"granted"===t,isEnabledDesktop:(e,t)=>!!e&&!t,isEnabledPush:{set(e){const t=this.currentUser
return!!t&&(r.keyValueStore.setItem((0,r.userSubscriptionKey)(t),e),r.keyValueStore.getItem((0,r.userSubscriptionKey)(t)))},get(){const e=this.currentUser
return!!e&&r.keyValueStore.getItem((0,r.userSubscriptionKey)(e))}},isEnabled:(0,l.or)("isEnabledDesktop","isEnabledPush"),isSubscribed(e,t,i){return!!e&&(this.isPushNotificationsPreferred()?"subscribed"===t:""===i)},isPushNotificationsPreferred(){return(this.site.mobileView||this.siteSettings.enable_desktop_push_notifications)&&(0,r.isPushNotificationsSupported)()},actions:{recheckPermission(){this.notifyPropertyChange("notificationsPermission")},turnoff(){this.isEnabledDesktop&&(this.set("notificationsDisabled","disabled"),this.notifyPropertyChange("notificationsPermission")),this.isEnabledPush&&(0,r.unsubscribe)(this.currentUser,(()=>{this.set("isEnabledPush","")}))},turnon(){this.isPushNotificationsPreferred()?(0,r.subscribe)((()=>{this.set("isEnabledPush","subscribed")}),this.siteSettings.vapid_public_key_bytes):(this.set("notificationsDisabled",""),Notification.requestPermission((()=>{(0,n.confirmNotification)(this.siteSettings),this.notifyPropertyChange("notificationsPermission")})))}}},"notificationsPermission",[a],Object.getOwnPropertyDescriptor(m,"notificationsPermission"),m),g(m,"notificationsDisabled",[s.default],(h=(h=Object.getOwnPropertyDescriptor(m,"notificationsDisabled"))?h.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return h}}),m),g(m,"isNotSupported",[s.default],Object.getOwnPropertyDescriptor(m,"isNotSupported"),m),g(m,"isDeniedPermission",[u],Object.getOwnPropertyDescriptor(m,"isDeniedPermission"),m),g(m,"isGrantedPermission",[c],Object.getOwnPropertyDescriptor(m,"isGrantedPermission"),m),g(m,"isEnabledDesktop",[d],Object.getOwnPropertyDescriptor(m,"isEnabledDesktop"),m),g(m,"isEnabledPush",[s.default],(f=(f=Object.getOwnPropertyDescriptor(m,"isEnabledPush"))?f.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return f}}),m),g(m,"isSubscribed",[p],Object.getOwnPropertyDescriptor(m,"isSubscribed"),m),m)))
e.default=_})),define("discourse/components/dialog-holder",["exports","dialog-holder/components/dialog-holder"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("discourse/components/dialog-messages/group-delete",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"dD9SF6Sc",block:'[[[41,[30,1,["members","length"]],[[[1,"  "],[10,2],[12],[1,"\\n    "],[1,[28,[35,1],["users"],null]],[1,"\\n    "],[1,[28,[35,2],["admin.groups.delete_details"],[["count"],[[30,1,["members","length"]]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[41,[30,1,["message_count"]],[[[1,"  "],[10,2],[12],[1,"\\n    "],[1,[28,[35,1],["envelope"],null]],[1,"\\n    "],[1,[28,[35,2],["admin.groups.delete_with_messages_confirm"],[["count"],[[30,1,["message_count"]]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[12],[1,"\\n  "],[1,[28,[35,1],["exclamation-triangle"],null]],[1,"\\n  "],[1,[28,[35,2],["admin.groups.delete_warning"],null]],[1,"\\n"],[13]],["@model"],false,["if","d-icon","i18n"]]',moduleName:"discourse/components/dialog-messages/group-delete.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/dialog-messages/second-factor-confirm-phrase",["exports","@ember/component","@ember/template-factory","@glimmer/component","I18n","@ember/object","@ember/service","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l){var a,u,c,d
function p(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function m(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"5+JmmGB3",block:'[[[1,[28,[35,0],["user.second_factor.delete_confirm_header"],null]],[1,"\\n\\n"],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,1,["totps"]]],null]],null],null,[[[1,"    "],[10,"li"],[12],[1,[30,2,["name"]]],[13],[1,"\\n"]],[2]],null],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,1,["security_keys"]]],null]],null],null,[[[1,"    "],[10,"li"],[12],[1,[30,3,["name"]]],[13],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,0,["currentUser","second_factor_backup_enabled"]],[[[1,"    "],[10,"li"],[12],[1,[28,[35,0],["user.second_factor_backup.title"],null]],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,2],[12],[1,"\\n  "],[1,[28,[35,4],[[28,[37,0],["user.second_factor.delete_confirm_instruction"],[["confirm"],[[30,0,["disabledString"]]]]]],null]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,5],[[4,[38,6],["input",[30,0,["onConfirmPhraseInput"]]],null]],[["@value","@id","@autocorrect","@autocapitalize"],[[30,0,["confirmPhraseInput"]],"confirm-phrase","off","off"]],null]],["@model","totp","sk"],false,["i18n","each","-track-array","if","html-safe","text-field","on"]]',moduleName:"discourse/components/dialog-messages/second-factor-confirm-phrase.hbs",isStrictMode:!1})
let g=(a=class extends n.default{constructor(){super(...arguments),p(this,"dialog",u,this),p(this,"currentUser",c,this),p(this,"confirmPhraseInput",d,this),m(this,"disabledString",r.default.t("user.second_factor.disable"))}onConfirmPhraseInput(){this.confirmPhraseInput===this.disabledString?this.dialog.set("confirmButtonDisabled",!1):this.dialog.set("confirmButtonDisabled",!0)}},u=h(a.prototype,"dialog",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=h(a.prototype,"currentUser",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(a.prototype,"confirmPhraseInput",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),h(a.prototype,"onConfirmPhraseInput",[o.action],Object.getOwnPropertyDescriptor(a.prototype,"onConfirmPhraseInput"),a.prototype),a)
e.default=g,(0,t.setComponentTemplate)(f,g)})),define("discourse/components/directory-item",["exports","@ember/component","@ember/template-factory","discourse/lib/computed"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"bO8B+DJZ",block:'[[[10,0],[14,0,"directory-table__cell"],[12],[1,"\\n  "],[8,[39,0],null,[["@user"],[[30,0,["item","user"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["columns"]]],null]],null],null,[[[41,[28,[37,4],null,[["column"],[[30,1]]]],[[[1,"    "],[10,0],[14,0,"directory-table__cell--user-field"],[12],[1,"\\n      "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n        "],[10,1],[12],[1,[30,1,["name"]]],[13],[1,"\\n      "],[13],[1,"\\n      "],[1,[28,[35,5],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"directory-table__cell"],[12],[1,"\\n      "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n        "],[10,1],[12],[1,"\\n"],[41,[30,1,["icon"]],[[[1,"            "],[1,[28,[35,6],[[30,1,["icon"]]],null]],[1,"\\n"]],[]],null],[1,"          "],[1,[28,[35,7],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[1,[28,[35,8],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["showTimeRead"]],[[[1,"  "],[10,0],[14,0,"directory-table__cell time-read"],[12],[1,"\\n    "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n      "],[10,1],[12],[1,[28,[35,9],["directory.time_read"],null]],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n      "],[1,[28,[35,10],[[30,0,["item","time_read"]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["column"],false,["user-info","each","-track-array","if","directory-column-is-user-field","directory-item-user-field-value","d-icon","directory-item-label","directory-item-value","i18n","format-duration"]]',moduleName:"discourse/components/directory-item.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({tagName:"div",classNames:["directory-table__row"],classNameBindings:["me"],me:(0,n.propertyEqual)("item.user.id","currentUser.id"),columns:null}))
e.default=o})),define("discourse/components/directory-table",["exports","@ember/component","@ember/template-factory","@ember/object"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"l/tNHSdq",block:'[[[8,[39,0],null,null,[["header","body"],[[[[1,"\\n    "],[8,[39,1],null,[["@field","@order","@asc"],["username",[30,0,["order"]],[30,0,["asc"]]]],null],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["columns"]]],null]],null],null,[[[1,"      "],[8,[39,1],null,[["@field","@icon","@order","@asc","@automatic","@translated","@onActiveRender"],[[30,1,["name"]],[30,1,["icon"]],[30,0,["order"]],[30,0,["asc"]],[28,[37,4],null,[["column"],[[30,1]]]],[30,1,["user_field_id"]],[30,0,["setActiveHeader"]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["showTimeRead"]],[[[1,"      "],[10,0],[14,0,"directory-table__column-header"],[12],[1,"\\n        "],[10,0],[14,0,"header-contents"],[12],[1,"\\n          "],[1,[28,[35,6],["directory.time_read"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]],[[[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["items"]]],null]],null],null,[[[1,"      "],[8,[39,7],null,[["@item","@columns","@showTimeRead"],[[30,2],[30,0,["columns"]],[30,0,["showTimeRead"]]]],null],[1,"\\n"]],[2]],null],[1,"  "]],[]]]]]],["column","item"],false,["responsive-table","table-header-toggle","each","-track-array","directory-column-is-automatic","if","i18n","directory-item"]]',moduleName:"discourse/components/directory-table.hbs",isStrictMode:!1})
var s,l,a,u,c,d,p=(0,t.setComponentTemplate)(o,t.default.extend((r={_table:null,didInsertElement(){this._super(...arguments),this.setProperties({_table:this.element.querySelector(".directory-table"),_columnCount:this.showTimeRead?this.attrs.columns.value.length+1:this.attrs.columns.value.length}),this._table.style.gridTemplateColumns=`minmax(13em, 3fr) repeat(${this._columnCount}, minmax(max-content, 1fr))`},setActiveHeader(e){this._table||this.set("_table",document.querySelector(".directory-table"))
const t=e.offsetLeft+e.offsetWidth+10-this._table.offsetWidth
t>0&&(this._table.scrollLeft=t)}},s=r,l="setActiveHeader",a=[n.action],u=Object.getOwnPropertyDescriptor(r,"setActiveHeader"),c=r,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r)))
e.default=p})),define("discourse/components/disabled-icon",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"Yu+SPuoe",block:'[[[1,[28,[35,0],[[30,0,["icon"]]],[["class"],["fa-stack-1x"]]]],[1,"\\n\\n"],[41,[30,0,["disabled"]],[[[1,"  "],[1,[28,[35,0],["ban"],[["class"],["fa-stack-2x"]]]],[1,"\\n"]],[]],null]],[],false,["d-icon","if"]]',moduleName:"discourse/components/disabled-icon.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:"span",classNameBindings:[":fa-stack"]}))
e.default=r})),define("discourse/components/discourse-banner",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/object"],(function(e,t,i,n,r){var o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"RHrpRg2h",block:'[[[41,[30,0,["visible"]],[[[1,"  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,1,"banner"],[15,0,[30,0,["overlay"]]],[12],[1,"\\n      "],[10,0],[14,0,"floated-buttons"],[12],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1,"          "],[10,3],[15,6,[30,0,["banner","url"]]],[14,0,"btn btn-flat edit-banner"],[12],[1,"\\n            "],[1,[28,[35,1],["pencil-alt"],null]],[1,"\\n"],[41,[51,[30,0,["site","mobileView"]]],[[[1,"              "],[1,[28,[35,3],[[28,[37,4],["banner.edit"],null]],null]],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[1,"\\n        "],[8,[39,5],null,[["@icon","@action","@class","@title"],["times",[28,[37,6],[[30,0],"dismiss"],null],"btn btn-flat close","banner.close"]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,1,"banner-content"],[12],[1,"\\n        "],[1,[28,[35,3],[[30,0,["content"]]],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-icon","unless","html-safe","i18n","d-button","action"]]',moduleName:"discourse/components/discourse-banner.hbs",isStrictMode:!1})
var c=(0,t.setComponentTemplate)(u,t.default.extend((o=(0,n.default)("banner.html"),s=(0,n.default)("user.dismissed_banner_key","banner.key","hide"),a(l={hide:!1,content(e){const t=document.createElement("div")
return t.innerHTML=e,t.querySelectorAll("[id^='heading--']").forEach((e=>{e.removeAttribute("id")})),t.innerHTML},visible(e,t,i){return e=e||this.keyValueStore.get("dismissed_banner_key"),t&&(t=parseInt(t,10)),e&&(e=parseInt(e,10)),!i&&t&&e!==t},dismiss(){this.user?this.user.dismissBanner(this.get("banner.key")):(this.set("hide",!0),this.keyValueStore.set({key:"dismissed_banner_key",value:this.get("banner.key")}))}},"content",[o],Object.getOwnPropertyDescriptor(l,"content"),l),a(l,"visible",[s],Object.getOwnPropertyDescriptor(l,"visible"),l),a(l,"dismiss",[r.action],Object.getOwnPropertyDescriptor(l,"dismiss"),l),l)))
e.default=c})),define("discourse/components/discourse-linked-text",["exports","@ember/component","@ember/template-factory","I18n","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"DQBQg4Aa",block:'[[[1,[28,[35,0],[[30,0,["translatedText"]]],null]]],[],false,["html-safe"]]',moduleName:"discourse/components/discourse-linked-text.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((o=(0,r.default)("text","textParams"),s={tagName:"span",translatedText(e){if(e)return n.default.t(...arguments)},click(e){return"A"===e.target.tagName.toUpperCase()&&this.action(this.actionParam),!1}},a=s,u="translatedText",c=[o],d=Object.getOwnPropertyDescriptor(s,"translatedText"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/discourse-root",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({tagName:"div",classNames:["discourse-root"]})
e.default=i}))
define("discourse/components/discourse-tag-bound",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","discourse-common/lib/get-url"],(function(e,t,i,n,r){var o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"MDll+Ehk",block:'[[[1,[30,0,["tagRecord","id"]]]],[],false,[]]',moduleName:"discourse/components/discourse-tag-bound.hbs",isStrictMode:!1})
var c=(0,t.setComponentTemplate)(u,t.default.extend((o=(0,n.default)("tagRecord.id"),s=(0,n.default)("tagRecord.id"),a(l={tagName:"a",classNameBindings:[":discourse-tag","style","tagClass"],attributeBindings:["href"],tagClass:e=>"tag-"+e,href:e=>(0,r.default)("/tag/"+e)},"tagClass",[o],Object.getOwnPropertyDescriptor(l,"tagClass"),l),a(l,"href",[s],Object.getOwnPropertyDescriptor(l,"href"),l),l)))
e.default=c})),define("discourse/components/discourse-topic",["exports","@ember/utils","@ember/runloop","discourse-common/lib/later","discourse/mixins/add-archetype-class","discourse/lib/click-track","@ember/component","discourse/lib/url","discourse/mixins/mobile-scroll-direction","discourse/mixins/scrolling","@ember/object/computed","discourse/lib/utilities","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){var m,h,f
function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var b=s.default.extend(r.default,u.default,a.default,(m=(0,p.observes)("enteredAt"),h=(0,p.observes)("mobileScrollDirection"),f={userFilters:(0,c.alias)("topic.userFilters"),classNameBindings:["multiSelect","topic.archetype","topic.is_warning","topic.category.read_restricted:read_restricted","topic.deleted:deleted-topic"],menuVisible:!0,SHORT_POST:1200,postStream:(0,c.alias)("topic.postStream"),archetype:(0,c.alias)("topic.archetype"),dockAt:0,_lastShowTopic:null,mobileScrollDirection:null,pauseHeaderTopicUpdate:!1,_enteredTopic(){this.enteredAt&&this.lastEnteredAt!==this.enteredAt&&(this._lastShowTopic=null,(0,i.schedule)("afterRender",this.scrolled),this.set("lastEnteredAt",this.enteredAt))},_highlightPost(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};((0,t.isBlank)(n.jump)||!1!==n.jump)&&(0,i.scheduleOnce)("afterRender",null,d.highlightPost,e)},_hideTopicInHeader(){this.appEvents.trigger("header:hide-topic"),this._lastShowTopic=!1},_showTopicInHeader(e){this.pauseHeaderTopicUpdate||(this.appEvents.trigger("header:show-topic",e),this._lastShowTopic=!0)},_updateTopic(e,t){if(null===e)return this._hideTopicInHeader(),void(t&&!this.pauseHeaderTopicUpdate&&(this.pauseHeaderTopicUpdate=!0,this._lastShowTopic=!0,(0,n.default)((()=>{this._lastShowTopic=!1,this.pauseHeaderTopicUpdate=!1}),t)))
const i=window.pageYOffset||document.documentElement.scrollTop
this._lastShowTopic=this.shouldShowTopicInHeader(e,i),this._lastShowTopic?this._showTopicInHeader(e):this._hideTopicInHeader()},didInsertElement(){this._super(...arguments),this.bindScrolling(),window.addEventListener("resize",this.scrolled),$(this.element).on("click.discourse-redirect",".cooked a, a.track-link",(e=>o.default.trackClick(e,this.siteSettings))),this.appEvents.on("discourse:focus-changed",this,"gotFocus"),this.appEvents.on("post:highlight",this,"_highlightPost"),this.appEvents.on("header:update-topic",this,"_updateTopic")},willDestroyElement(){this._super(...arguments),this.unbindScrolling(),window.removeEventListener("resize",this.scrolled),$(this.element).off("click.discourse-redirect",".cooked a, a.track-link"),this.resetExamineDockCache(),this._hideTopicInHeader(),this.appEvents.off("discourse:focus-changed",this,"gotFocus"),this.appEvents.off("post:highlight",this,"_highlightPost"),this.appEvents.off("header:update-topic",this,"_updateTopic")},gotFocus(e){e&&this.scrolled()},resetExamineDockCache(){this.set("dockAt",0)},shouldShowTopicInHeader(e,t){return t>this.dockAt&&(!this.site.mobileView||"down"===this.mobileScrollDirection)},scrolled(){if(this.isDestroyed||this.isDestroying||"inDOM"!==this._state)return
const e=window.pageYOffset||document.documentElement.scrollTop
if(0===this.dockAt){const e=document.querySelector("#topic-title")
e&&this.set("dockAt",e.getBoundingClientRect().top+window.scrollY)}this.set("hasScrolled",e>0)
const t=this.shouldShowTopicInHeader(this.topic,e)
if(t!==this._lastShowTopic)if(t)this._showTopicInHeader(this.topic)
else if(!l.default.isJumpScheduled()){1===(this.topic.get("postStream.loadingNearPost")||1)&&this._hideTopicInHeader()}this.site.mobileView&&this.hasScrolled&&(0,i.throttle)(this,this.calculateDirection,e,300),this.appEvents.trigger("topic:scrolled",e)},toggleMobileHeaderTopic(){return this.appEvents.trigger("header:update-topic","down"===this.mobileScrollDirection?this.topic:null)}},g(f,"_enteredTopic",[m],Object.getOwnPropertyDescriptor(f,"_enteredTopic"),f),g(f,"scrolled",[p.bind],Object.getOwnPropertyDescriptor(f,"scrolled"),f),g(f,"toggleMobileHeaderTopic",[h],Object.getOwnPropertyDescriptor(f,"toggleMobileHeaderTopic"),f),f))
e.default=b})),define("discourse/components/discovery-categories",["exports","@ember/component","discourse/mixins/url-refresh"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n="categories-list"
var r=t.default.extend(i.default,{classNames:["contents"],didInsertElement(){this._super(...arguments),document.body.classList.add(n)},willDestroyElement(){this._super(...arguments),document.body.classList.remove(n)}})
e.default=r})),define("discourse/components/discovery-topics-list",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/runloop","discourse/mixins/load-more","discourse/mixins/url-refresh","@ember/service"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"2dYw8TOC",block:'[[[18,1,[[28,[37,1],null,[["saveScrollPosition"],[[30,0,["saveScrollPosition"]]]]]]]],["&default"],false,["yield","hash"]]',moduleName:"discourse/components/discovery-topics-list.hbs",isStrictMode:!1})
var g=(0,t.setComponentTemplate)(f,t.default.extend(s.default,o.default,(a=(0,n.on)("didInsertElement"),u=(0,n.observes)("model"),c=(0,n.on)("didInsertElement"),d=(0,n.on)("willDestroyElement"),p=(0,n.observes)("incomingCount"),m={classNames:["contents"],eyelineSelector:".topic-list-item",documentTitle:(0,l.inject)(),_readjustScrollPosition(){const e=this.session.topicListScrollPosition
e>=0?(0,r.schedule)("afterRender",(()=>{!this.element||this.isDestroying||this.isDestroyed||(0,r.next)((()=>window.scrollTo(0,e)))})):(0,r.scheduleOnce)("afterRender",this,this.loadMoreUnlessFull)},_monitorTrackingState(){this.stateChangeCallbackId=this.topicTrackingState.onStateChange((()=>this._updateTrackingTopics()))},_removeTrackingStateChangeMonitor(){this.stateChangeCallbackId&&this.topicTrackingState.offStateChange(this.stateChangeCallbackId)},_updateTrackingTopics(){this.topicTrackingState.updateTopics(this.model.topics)},_updateTitle(){this.documentTitle.updateContextCount(this.incomingCount)},saveScrollPosition(){this.session.set("topicListScrollPosition",$(window).scrollTop())},actions:{loadMore(){var e=this
this.documentTitle.updateContextCount(0),this.model.loadMore().then((function(){let{moreTopicsUrl:t,newTopics:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
i&&i.length&&e.autoAddTopicsToBulkSelect&&e.bulkSelectEnabled&&e.addTopicsToBulkSelect(i),(0,r.schedule)("afterRender",(()=>e.saveScrollPosition())),t&&$(window).height()>=$(document).height()&&e.send("loadMore"),e.loadingComplete&&e.loadingComplete()}))}}},h(m,"_readjustScrollPosition",[a,u],Object.getOwnPropertyDescriptor(m,"_readjustScrollPosition"),m),h(m,"_monitorTrackingState",[c],Object.getOwnPropertyDescriptor(m,"_monitorTrackingState"),m),h(m,"_removeTrackingStateChangeMonitor",[d],Object.getOwnPropertyDescriptor(m,"_removeTrackingStateChangeMonitor"),m),h(m,"_updateTitle",[p],Object.getOwnPropertyDescriptor(m,"_updateTitle"),m),m)))
e.default=g})),define("discourse/components/edit-category-general",["exports","@ember/component","@ember/template-factory","@ember/runloop","discourse/models/category","@ember/object","discourse/components/edit-category-panel","discourse/helpers/category-link","discourse-common/utils/decorators","discourse-common/lib/get-url","@ember/utils","@ember/object/computed","discourse-common/lib/later"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){var m,h,f,g,b
function y(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const _=(0,i.createTemplateFactory)({id:"y6NKjsES",block:'[[[41,[30,0,["category","isUncategorizedCategory"]],[[[1,"  "],[10,2],[14,0,"warning"],[12],[1,"\\n    "],[1,[28,[35,1],["exclamation-triangle"],null]],[1,"\\n    "],[1,[28,[35,2],[[28,[37,3],["category.uncategorized_general_warning"],[["settingLink","customizeLink"],[[30,0,["uncategorizedSiteSettingLink"]],[30,0,["customizeTextContentLink"]]]]]],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"form"],[12],[1,"\\n  "],[8,[39,4],null,[["@category","@tagName"],[[30,0,["category"]],""]],null],[1,"\\n\\n"],[41,[30,0,["canSelectParentCategory"]],[[[1,"    "],[10,"section"],[14,0,"field parent-category"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,3],["category.parent"],null]],[13],[1,"\\n      "],[8,[39,5],null,[["@value","@categories","@allowSubCategories","@allowRestrictedCategories","@onChange","@options"],[[30,0,["category","parent_category_id"]],[30,0,["parentCategories"]],true,true,[28,[37,6],[[30,0],[28,[37,7],[[30,0,["category","parent_category_id"]]],null]],null],[28,[37,8],null,[["allowUncategorized","excludeCategoryId","none"],[false,[30,0,["category","id"]],true]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["subCategories"]],[[[1,"    "],[10,"section"],[14,0,"field subcategories"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,3],["categories.subcategories"],null]],[13],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["subCategories"]]],null]],null],null,[[[1,"        "],[1,[28,[35,11],[[30,1]],[["hideParent"],["true"]]]],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDescription"]],[[[1,"    "],[10,"section"],[14,0,"field description"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,3],["category.description"],null]],[13],[1,"\\n"],[41,[30,0,["category","description"]],[[[1,"        "],[1,[28,[35,2],[[30,0,["category","description"]]],null]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,3],["category.no_description"],null]],[1,"\\n"]],[]]],[41,[30,0,["category","topic_url"]],[[[1,"        "],[10,"br"],[12],[13],[1,"\\n        "],[8,[39,12],null,[["@class","@action","@icon","@label"],["btn-default edit-category-description",[28,[37,6],[[30,0],"showCategoryTopic"],null],"pencil-alt","category.change_in_category_topic"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"section"],[14,0,"field category-colors"],[12],[1,"\\n"],[41,[30,0,["noCategoryStyle"]],[[[1,"      "],[10,"label"],[12],[1,"\\n        "],[1,[28,[35,1],["exclamation-triangle"],null]],[1,"\\n        "],[1,[28,[35,3],["category.colors_disabled"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,"label"],[12],[1,[28,[35,3],["category.badge_colors"],null]],[13],[1,"\\n      "],[10,0],[14,0,"category-color-editor"],[12],[1,"\\n        "],[1,[28,[35,2],[[30,0,["categoryBadgePreview"]]],null]],[1,"\\n\\n        "],[10,"section"],[14,0,"field"],[12],[1,"\\n          "],[10,1],[14,0,"color-title"],[12],[1,[28,[35,3],["category.background_color"],null]],[1,":"],[13],[1,"\\n          "],[10,0],[14,0,"colorpicker-wrapper"],[12],[1,"\\n            "],[8,[39,13],null,[["@hexValue","@valid"],[[30,0,["category","color"]],[30,0,["category","colorValid"]]]],null],[1,"\\n            "],[8,[39,14],null,[["@colors","@usedColors","@value"],[[30,0,["backgroundColors"]],[30,0,["usedBackgroundColors"]],[30,0,["category","color"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,"section"],[14,0,"field"],[12],[1,"\\n          "],[10,1],[14,0,"color-title"],[12],[1,[28,[35,3],["category.foreground_color"],null]],[1,":"],[13],[1,"\\n          "],[10,0],[14,0,"colorpicker-wrapper edit-text-color"],[12],[1,"\\n            "],[8,[39,13],null,[["@hexValue"],[[30,0,["category","text_color"]]]],null],[1,"\\n            "],[8,[39,14],null,[["@colors","@value","@id"],[[30,0,["foregroundColors"]],[30,0,["category","text_color"]],"edit-text-color"]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"],[13]],["s"],false,["if","d-icon","html-safe","i18n","category-name-fields","category-chooser","action","mut","hash","each","-track-array","category-badge","d-button","color-input","color-picker"]]',moduleName:"discourse/components/edit-category-general.hbs",isStrictMode:!1})
var v=(0,t.setComponentTemplate)(_,(0,s.buildCategoryPanel)("general",(m=(0,a.default)("category.id","category.color"),h=(0,a.default)("category.parent_category_id","category.name","category.color","category.text_color"),f=(0,a.default)("category.id"),g=(0,a.default)("category.isUncategorizedCategory","category.id","category.topic_url"),b={init(){this._super(...arguments),this.foregroundColors=["FFFFFF","000000"]},didInsertElement(){this._super(...arguments),this._focusCategoryName()},willDestroyElement(){this._super(...arguments),this._laterFocus&&(0,n.cancel)(this._laterFocus)},canSelectParentCategory:(0,d.not)("category.isUncategorizedCategory"),uncategorizedSiteSettingLink:(0,u.default)("/admin/site_settings/category/all_results?filter=allow_uncategorized_topics"),customizeTextContentLink:(0,u.default)("/admin/customize/site_texts?q=uncategorized"),backgroundColors(){const e=this.site.get("categoriesList")
return this.siteSettings.category_colors.split("|").map((function(e){return e.toUpperCase()})).concat(e.map((function(e){return e.color.toUpperCase()}))).uniq()},noCategoryStyle(){return"none"===this.siteSettings.category_style},usedBackgroundColors(e,t){return this.site.get("categoriesList").map((function(i){return e&&t.toUpperCase()===i.color.toUpperCase()?null:i.color.toUpperCase()}),this).compact()},parentCategories(){return this.site.get("categoriesList").filter((e=>e.level+1<this.siteSettings.max_category_nesting))},categoryBadgePreview(e,t,i,n){const o=this.category,s=r.default.create({name:t,color:i,text_color:n,parent_category_id:parseInt(e,10),read_restricted:o.get("read_restricted")})
return(0,l.categoryBadgeHTML)(s,{link:!1})},subCategories:e=>(0,c.isEmpty)(e)?null:r.default.list().filterBy("parent_category_id",e),showDescription:(e,t,i)=>!e&&t&&i,showCategoryTopic(){return window.open(this.get("category.topic_url"),"_blank").focus(),!1},_focusCategoryName(){this._laterFocus=(0,p.default)((()=>{const e=this.element.querySelector(".category-name")
e&&e.focus()}),25)}},y(b,"backgroundColors",[a.default],Object.getOwnPropertyDescriptor(b,"backgroundColors"),b),y(b,"noCategoryStyle",[a.default],Object.getOwnPropertyDescriptor(b,"noCategoryStyle"),b),y(b,"usedBackgroundColors",[m],Object.getOwnPropertyDescriptor(b,"usedBackgroundColors"),b),y(b,"parentCategories",[a.default],Object.getOwnPropertyDescriptor(b,"parentCategories"),b),y(b,"categoryBadgePreview",[h],Object.getOwnPropertyDescriptor(b,"categoryBadgePreview"),b),y(b,"subCategories",[f],Object.getOwnPropertyDescriptor(b,"subCategories"),b),y(b,"showDescription",[g],Object.getOwnPropertyDescriptor(b,"showDescription"),b),y(b,"showCategoryTopic",[o.action],Object.getOwnPropertyDescriptor(b,"showCategoryTopic"),b),b)))
e.default=v})),define("discourse/components/edit-category-images",["exports","@ember/component","@ember/template-factory","@ember/object","discourse/components/edit-category-panel","discourse-common/utils/decorators"],(function(e,t,i,n,r,o){var s,l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"1Wgldckd",block:'[[[10,"section"],[14,0,"field category-logo"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.logo"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@class","@id"],[[30,0,["logoImageUrl"]],[28,[37,2],[[30,0],"logoUploadDone"],null],[28,[37,2],[[30,0],"logoUploadDeleted"],null],"category_logo","no-repeat contain-image","category-logo-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-logo"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.logo_dark"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@class","@id"],[[30,0,["logoImageDarkUrl"]],[28,[37,2],[[30,0],"logoDarkUploadDone"],null],[28,[37,2],[[30,0],"logoDarkUploadDeleted"],null],"category_logo_dark","no-repeat contain-image","category-dark-logo-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-background-image"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.background_image"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["backgroundImageUrl"]],[28,[37,2],[[30,0],"backgroundUploadDone"],null],[28,[37,2],[[30,0],"backgroundUploadDeleted"],null],"category_background","category-background-uploader"]],null],[1,"\\n"],[13]],[],false,["i18n","uppy-image-uploader","action"]]',moduleName:"discourse/components/edit-category-images.hbs",isStrictMode:!1})
var p=(0,t.setComponentTemplate)(d,(0,r.buildCategoryPanel)("images").extend((s=(0,o.default)("category.uploaded_background.url"),l=(0,o.default)("category.uploaded_logo.url"),a=(0,o.default)("category.uploaded_logo_dark.url"),c(u={backgroundImageUrl:e=>e||"",logoImageUrl:e=>e||"",logoImageDarkUrl:e=>e||"",actions:{logoUploadDone(e){this._setFromUpload("category.uploaded_logo",e)},logoUploadDeleted(){this._deleteUpload("category.uploaded_logo")},logoDarkUploadDone(e){this._setFromUpload("category.uploaded_logo_dark",e)},logoDarkUploadDeleted(){this._deleteUpload("category.uploaded_logo_dark")},backgroundUploadDone(e){this._setFromUpload("category.uploaded_background",e)},backgroundUploadDeleted(){this._deleteUpload("category.uploaded_background")}},_deleteUpload(e){this.set(e,n.default.create({id:null,url:null}))},_setFromUpload(e,t){this.set(e,n.default.create({url:t.url,id:t.id}))}},"backgroundImageUrl",[s],Object.getOwnPropertyDescriptor(u,"backgroundImageUrl"),u),c(u,"logoImageUrl",[l],Object.getOwnPropertyDescriptor(u,"logoImageUrl"),u),c(u,"logoImageDarkUrl",[a],Object.getOwnPropertyDescriptor(u,"logoImageDarkUrl"),u),u)))
e.default=p})),define("discourse/components/edit-category-panel",["exports","@ember/component","@ember/template-factory","@ember/object/computed"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.buildCategoryPanel=function(e,t){return o.extend({activeTab:(0,n.equal)("selectedTab",e),classNameBindings:[":edit-category-tab","activeTab::hide",`:edit-category-tab-${e}`]},t||{})},e.default=void 0
const r=(0,i.createTemplateFactory)({id:"j67r9u89",block:'[[[46,[30,0,["customComponent"]],null,[["tab","selectedTab","category"],[[30,0,["tab"]],[30,0,["selectedTab"]],[30,0,["category"]]]],null]],[],false,["component"]]',moduleName:"discourse/components/edit-category-panel.hbs",isStrictMode:!1}),o=t.default.extend({})
var s=(0,t.setComponentTemplate)(r,o)
e.default=s})),define("discourse/components/edit-category-security",["exports","@ember/component","@ember/template-factory","discourse/models/permission-type","discourse/components/edit-category-panel","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r,o,s){var l,a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"tuR4Pwcq",block:'[[[10,"section"],[14,0,"field"],[12],[1,"\\n"],[41,[30,0,["category","is_special"]],[[[41,[30,0,["category","isUncategorizedCategory"]],[[[1,"      "],[10,2],[14,0,"warning"],[12],[1,[28,[35,1],["category.uncategorized_security_warning"],null]],[13],[1,"\\n"]],[]],[[[1,"      "],[10,2],[14,0,"warning"],[12],[1,[28,[35,1],["category.special_warning"],null]],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[51,[30,0,["category","is_special"]]],[[[1,"    "],[10,0],[14,0,"category-permissions-table"],[12],[1,"\\n      "],[10,0],[14,0,"permission-row row-header"],[12],[1,"\\n        "],[10,1],[14,0,"group-name"],[12],[1,[28,[35,1],["category.permissions.group"],null]],[13],[1,"\\n        "],[10,1],[14,0,"options"],[12],[1,"\\n          "],[10,1],[14,0,"cell"],[12],[1,[28,[35,1],["category.permissions.see"],null]],[13],[1,"\\n          "],[10,1],[14,0,"cell"],[12],[1,[28,[35,1],["category.permissions.reply"],null]],[13],[1,"\\n          "],[10,1],[14,0,"cell"],[12],[1,[28,[35,1],["category.permissions.create"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["category","permissions"]]],null]],null],null,[[[1,"        "],[8,[39,5],null,[["@group_name","@type","@category","@everyonePermission"],[[30,1,["group_name"]],[30,1,["permission_type"]],[30,0,["category"]],[30,0,["everyonePermission"]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[51,[30,0,["category","permissions"]]],[[[1,"        "],[10,0],[14,0,"permission-row row-empty"],[12],[1,"\\n          "],[1,[28,[35,1],["category.permissions.no_groups_selected"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["category","availableGroups"]],[[[1,"        "],[10,0],[14,0,"add-group"],[12],[1,"\\n          "],[10,1],[14,0,"group-name"],[12],[1,"\\n            "],[8,[39,6],null,[["@class","@content","@onChange","@value","@valueProperty","@nameProperty","@options"],["available-groups",[30,0,["category","availableGroups"]],[28,[37,7],[[30,0],"onSelectGroup"],null],null,null,null,[28,[37,8],null,[["none"],["category.security_add_group"]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["everyoneGrantedFull"]],[[[1,"      "],[10,2],[14,0,"warning"],[12],[1,[28,[35,1],["category.permissions.everyone_has_access"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[8,[39,9],null,[["@name","@outletArgs"],["category-custom-security",[28,[37,8],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"],[13]],["p"],false,["if","i18n","unless","each","-track-array","category-permission-row","combo-box","action","hash","plugin-outlet"]]',moduleName:"discourse/components/edit-category-security.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,(0,r.buildCategoryPanel)("security",(l=(0,o.default)("category.permissions.@each.permission_type"),a=(0,o.default)("category.permissions.@each.permission_type"),u=(0,o.default)("everyonePermission"),d(c={selectedGroup:null,noGroupSelected:(0,s.not)("selectedGroup"),everyonePermission:e=>e.findBy("group_name","everyone"),everyoneGrantedFull(){return this.everyonePermission&&this.everyonePermission.permission_type===n.default.FULL},minimumPermission:e=>e?e.permission_type:n.default.READONLY,actions:{onSelectGroup(e){this.category.addPermission({group_name:e,permission_type:this.minimumPermission})}}},"everyonePermission",[l],Object.getOwnPropertyDescriptor(c,"everyonePermission"),c),d(c,"everyoneGrantedFull",[a],Object.getOwnPropertyDescriptor(c,"everyoneGrantedFull"),c),d(c,"minimumPermission",[u],Object.getOwnPropertyDescriptor(c,"minimumPermission"),c),c)))
e.default=m})),define("discourse/components/edit-category-settings",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse/models/group","I18n","discourse/lib/constants","discourse/components/edit-category-panel","discourse-common/utils/decorators","discourse/lib/computed","@ember/object"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addCategorySortCriteria=function(e){g.push(e)},e.default=void 0
const f=(0,i.createTemplateFactory)({id:"bj6yzbk4",block:'[[[10,"section"],[12],[1,"\\n"],[41,[30,0,["showPositionInput"]],[[[1,"    "],[10,"section"],[14,0,"field position-fields"],[12],[1,"\\n      "],[10,"label"],[14,"for","category-position"],[12],[1,"\\n        "],[1,[28,[35,1],["category.position"],null]],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,2],null,[["@number","@id","@class","@type","@min"],[[30,0,["category","position"]],"category-position","position-input","number","0"]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["showPositionInput"]]],[[[1,"    "],[10,"section"],[14,0,"field position-disabled"],[12],[1,"\\n      "],[1,[28,[35,4],[[28,[37,1],["category.position_disabled"],[["url"],[[28,[37,5],["/admin/site_settings/category/all_results?filter=fixed_category_positions"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"section"],[14,0,"field num-featured-topics"],[12],[1,"\\n    "],[10,"label"],[14,"for","category-number-featured-topics"],[12],[1,"\\n"],[41,[30,0,["category","parent_category_id"]],[[[1,"        "],[1,[28,[35,1],["category.subcategory_num_featured_topics"],null]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,1],["category.num_featured_topics"],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[8,[39,2],null,[["@number","@id","@type","@min"],[[30,0,["category","num_featured_topics"]],"category-number-featured-topics","number","1"]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field search-priority"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["category.search_priority.label"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,6],null,[["@valueProperty","@id","@content","@value","@onChange","@options"],["value","category-search-priority",[30,0,["searchPrioritiesOptions"]],[30,0,["category","search_priority"]],[28,[37,7],[[30,0],[28,[37,8],[[30,0,["category","search_priority"]]],null]],null],[28,[37,9],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_badges"]],[[[1,"    "],[10,"section"],[14,0,"field allow-badges"],[12],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","allow_badges"]]]],null],[1,"\\n        "],[1,[28,[35,1],["category.allow_badges_label"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1,"    "],[10,"section"],[14,0,"field topic-featured-link-allowed"],[12],[1,"\\n      "],[10,0],[14,0,"allowed-topic-featured-link-category"],[12],[1,"\\n        "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n          "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","topic_featured_link_allowed"]]]],null],[1,"\\n          "],[1,[28,[35,1],["category.topic_featured_link_allowed"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"section"],[14,0,"field navigate-to-first-post-after-read"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","navigate_to_first_post_after_read"]]]],null],[1,"\\n      "],[1,[28,[35,1],["category.navigate_to_first_post_after_read"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field all-topics-wiki"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","all_topics_wiki"]]]],null],[1,"\\n      "],[1,[28,[35,1],["category.all_topics_wiki"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field allow-unlimited-owner-edits-on-first-post"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","allow_unlimited_owner_edits_on_first_post"]]]],null],[1,"\\n      "],[1,[28,[35,1],["category.allow_unlimited_owner_edits_on_first_post"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,1],["category.settings_sections.moderation"],null]],[13],[1,"\\n"],[41,[30,0,["siteSettings","enable_category_group_moderation"]],[[[1,"    "],[10,"section"],[14,0,"field reviewable-by-group"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["category.reviewable_by_group"],null]],[13],[1,"\\n      "],[8,[39,11],null,[["@groupFinder","@single","@groupNames","@placeholderKey"],[[30,0,["groupFinder"]],"true",[30,0,["category","reviewable_by_group_name"]],"category.review_group_name"]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"section"],[14,0,"field require-topic-approval"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","custom_fields","require_topic_approval"]]]],null],[1,"\\n      "],[1,[28,[35,1],["category.require_topic_approval"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field require-reply-approval"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","custom_fields","require_reply_approval"]]]],null],[1,"\\n      "],[1,[28,[35,1],["category.require_reply_approval"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field default-slow-mode"],[12],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,"for","category-default-slow-mode"],[12],[1,"\\n        "],[1,[28,[35,1],["category.default_slow_mode"],null]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"category-default-slow-mode-seconds"],[12],[1,"\\n        "],[8,[39,12],null,[["@id","@durationMinutes","@onChange"],["category-default-slow-mode",[30,0,["category","defaultSlowModeMinutes"]],[28,[37,7],[[30,0],"onDefaultSlowModeDurationChange"],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field auto-close"],[12],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,"for","topic-auto-close"],[12],[1,"\\n        "],[1,[28,[35,1],["topic.auto_close.label"],null]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"category-topic-auto-close-hours"],[12],[1,"\\n        "],[8,[39,12],null,[["@id","@durationHours","@hiddenIntervals","@onChange"],["topic-auto-close",[30,0,["category","auto_close_hours"]],[30,0,["hiddenRelativeIntervals"]],[28,[37,7],[[30,0],"onAutoCloseDurationChange"],null]]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","auto_close_based_on_last_post"]]]],null],[1,"\\n        "],[1,[28,[35,1],["topic.auto_close.based_on_last_post"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field num-auto-bump-daily"],[12],[1,"\\n    "],[10,"label"],[14,"for","category-number-daily-bump"],[12],[1,"\\n      "],[1,[28,[35,1],["category.num_auto_bump_daily"],null]],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,2],null,[["@number","@id","@type","@min"],[[30,0,["category","custom_fields","num_auto_bump_daily"]],"category-number-daily-bump","number","0"]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field auto-bump-cooldown-days"],[12],[1,"\\n    "],[10,"label"],[14,"for","category-auto-bump-cooldown-days"],[12],[1,"\\n      "],[1,[28,[35,1],["category.auto_bump_cooldown_days"],null]],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,2],null,[["@number","@id","@type","@min"],[[30,0,["category","category_setting","auto_bump_cooldown_days"]],"category-auto-bump-cooldown-days","number","0"]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,1],["category.settings_sections.appearance"],null]],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field default-view-field"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["category.default_view"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,6],null,[["@valueProperty","@id","@content","@value","@options"],["value","category-default-view",[30,0,["availableViews"]],[30,0,["category","default_view"]],[28,[37,9],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field default-top-period-field"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["category.default_top_period"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,6],null,[["@valueProperty","@id","@content","@value","@options"],["value","category-default-period",[30,0,["availableTopPeriods"]],[30,0,["category","default_top_period"]],[28,[37,9],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field sort-order"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["category.sort_order"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,6],null,[["@valueProperty","@content","@value","@options","@onChange"],["value",[30,0,["availableSorts"]],[30,0,["category","sort_order"]],[28,[37,9],null,[["none"],["category.sort_options.default"]]],[28,[37,7],[[30,0],[28,[37,8],[[30,0,["category","sort_order"]]],null]],null]]],null],[1,"\\n"],[41,[51,[30,0,["isDefaultSortOrder"]]],[[[1,"        "],[8,[39,6],null,[["@valueProperty","@content","@value","@options","@onChange"],["value",[30,0,["sortAscendingOptions"]],[30,0,["sortAscendingOption"]],[28,[37,9],null,[["none","placementStrategy"],["category.sort_options.default","absolute"]]],[28,[37,7],[[30,0],[28,[37,8],[[30,0,["category","sort_ascending"]]],null]],null]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field default-filter"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["category.default_list_filter"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,6],null,[["@id","@valueProperty","@content","@value"],["category-default-filter","value",[30,0,["availableListFilters"]],[30,0,["category","default_list_filter"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["isParentCategory"]],[[[1,"    "],[10,"section"],[14,0,"field show-subcategory-list-field"],[12],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","show_subcategory_list"]]]],null],[1,"\\n        "],[1,[28,[35,1],["category.show_subcategory_list"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showSubcategoryListStyle"]],[[[1,"    "],[10,"section"],[14,0,"field subcategory-list-style-field"],[12],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[1,[28,[35,1],["category.subcategory_list_style"],null]],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,6],null,[["@valueProperty","@id","@content","@value","@options"],["value","subcategory-list-style",[30,0,["availableSubcategoryListStyles"]],[30,0,["category","subcategory_list_style"]],[28,[37,9],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"section"],[14,0,"field category-read-only-banner"],[12],[1,"\\n    "],[10,"label"],[14,"for","read-only-message"],[12],[1,[28,[35,1],["category.read_only_banner"],null]],[13],[1,"\\n    "],[8,[39,13],null,[["@valueProperty","@id","@value","@options"],["value","read-only-message",[30,0,["category","read_only_banner"]],[28,[37,9],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,1],["category.settings_sections.email"],null]],[13],[1,"\\n\\n"],[41,[30,0,["emailInEnabled"]],[[[1,"    "],[10,"section"],[14,0,"field category-email-in"],[12],[1,"\\n      "],[10,"label"],[14,"for","category-email-in"],[12],[1,"\\n        "],[1,[28,[35,14],["envelope"],null]],[1,"\\n        "],[1,[28,[35,1],["category.email_in"],null]],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,13],null,[["@id","@class","@value"],["category-email-in","email-in",[30,0,["category","email_in"]]]],null],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[1,[28,[35,14],["info-circle"],null]],[1,"\\n        "],[8,[39,15],null,null,[["default"],[[[[1,[28,[35,1],["category.email_in_tooltip"],null]]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,"section"],[14,0,"field email-in-allow-strangers"],[12],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","email_in_allow_strangers"]]]],null],[1,"\\n        "],[1,[28,[35,1],["category.email_in_allow_strangers"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,"section"],[14,0,"field mailinglist-mirror"],[12],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","mailinglist_mirror"]]]],null],[1,"\\n        "],[1,[28,[35,1],["category.mailinglist_mirror"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,16],null,[["@name","@connectorTagName","@outletArgs"],["category-email-in","div",[28,[37,9],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["emailInEnabled"]]],[[[1,"    "],[10,"section"],[14,0,"field email-in-disabled"],[12],[1,"\\n      "],[1,[28,[35,4],[[28,[37,1],["category.email_in_disabled"],[["setting_url"],[[28,[37,5],["/admin/site_settings/category/all_results?filter=email_in"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[8,[39,16],null,[["@name","@outletArgs"],["category-custom-settings",[28,[37,9],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"],[13]],[],false,["if","i18n","number-field","unless","html-safe","get-url","combo-box","action","mut","hash","input","group-selector","relative-time-picker","text-field","d-icon","d-tooltip","plugin-outlet"]]',moduleName:"discourse/components/edit-category-settings.hbs",isStrictMode:!1}),g=[]
var b=(0,t.setComponentTemplate)(f,(0,l.buildCategoryPanel)("settings",(d=(0,a.default)("category.isParent","category.parent_category_id"),p=(0,a.default)("category.sort_ascending"),h(m={emailInEnabled:(0,u.setting)("email_in"),showPositionInput:(0,u.setting)("fixed_category_positions"),isParentCategory:(e,t)=>e||!t,showSubcategoryListStyle:(0,n.and)("category.show_subcategory_list","isParentCategory"),isDefaultSortOrder:(0,n.empty)("category.sort_order"),availableSubcategoryListStyles:()=>[{name:o.default.t("category.subcategory_list_styles.rows"),value:"rows"},{name:o.default.t("category.subcategory_list_styles.rows_with_featured_topics"),value:"rows_with_featured_topics"},{name:o.default.t("category.subcategory_list_styles.boxes"),value:"boxes"},{name:o.default.t("category.subcategory_list_styles.boxes_with_featured_topics"),value:"boxes_with_featured_topics"}],groupFinder:e=>r.default.findAll({term:e,ignore_automatic:!0}),availableViews:()=>[{name:o.default.t("filters.latest.title"),value:"latest"},{name:o.default.t("filters.top.title"),value:"top"}],availableTopPeriods:()=>["all","yearly","quarterly","monthly","weekly","daily"].map((e=>({name:o.default.t(`filters.top.${e}.title`),value:e}))),availableListFilters:()=>["all","none"].map((e=>({name:o.default.t(`category.list_filters.${e}`),value:e}))),searchPrioritiesOptions(){const e=[]
return Object.entries(s.SEARCH_PRIORITIES).forEach((t=>{const[i,n]=t
e.push({name:o.default.t(`category.search_priority.options.${i}`),value:n})})),e},availableSorts:()=>["likes","op_likes","views","posts","activity","posters","category","created"].concat(g).map((e=>({name:o.default.t("category.sort_options."+e),value:e}))).sort(((e,t)=>e.name.localeCompare(t.name))),sortAscendingOption:e=>"false"!==e&&("true"===e||e),sortAscendingOptions:()=>[{name:o.default.t("category.sort_ascending"),value:!0},{name:o.default.t("category.sort_descending"),value:!1}],hiddenRelativeIntervals:()=>["mins"],onAutoCloseDurationChange(e){let t=e?e/60:null
this.set("category.auto_close_hours",t)},onDefaultSlowModeDurationChange(e){let t=e?60*e:null
this.set("category.default_slow_mode_seconds",t)}},"isParentCategory",[d],Object.getOwnPropertyDescriptor(m,"isParentCategory"),m),h(m,"availableSubcategoryListStyles",[a.default],Object.getOwnPropertyDescriptor(m,"availableSubcategoryListStyles"),m),h(m,"availableViews",[a.default],Object.getOwnPropertyDescriptor(m,"availableViews"),m),h(m,"availableTopPeriods",[a.default],Object.getOwnPropertyDescriptor(m,"availableTopPeriods"),m),h(m,"availableListFilters",[a.default],Object.getOwnPropertyDescriptor(m,"availableListFilters"),m),h(m,"searchPrioritiesOptions",[a.default],Object.getOwnPropertyDescriptor(m,"searchPrioritiesOptions"),m),h(m,"availableSorts",[a.default],Object.getOwnPropertyDescriptor(m,"availableSorts"),m),h(m,"sortAscendingOption",[p],Object.getOwnPropertyDescriptor(m,"sortAscendingOption"),m),h(m,"sortAscendingOptions",[a.default],Object.getOwnPropertyDescriptor(m,"sortAscendingOptions"),m),h(m,"hiddenRelativeIntervals",[a.default],Object.getOwnPropertyDescriptor(m,"hiddenRelativeIntervals"),m),h(m,"onAutoCloseDurationChange",[c.action],Object.getOwnPropertyDescriptor(m,"onAutoCloseDurationChange"),m),h(m,"onDefaultSlowModeDurationChange",[c.action],Object.getOwnPropertyDescriptor(m,"onDefaultSlowModeDurationChange"),m),m)))
e.default=b})),define("discourse/components/edit-category-tab",["exports","@ember/component","@ember/template-factory","discourse/lib/url","I18n","discourse-common/utils/decorators","@ember/object","@ember/object/computed","discourse-common/lib/get-url","discourse/lib/computed","@ember/runloop","@ember/string"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f
function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=(0,i.createTemplateFactory)({id:"KoewHw43",block:'[[[11,3],[24,6,""],[16,0,[52,[30,0,["active"]],"active"]],[4,[38,1],["click",[30,0,["select"]]],null],[12],[1,[30,0,["title"]]],[13]],[],false,["if","on"]]',moduleName:"discourse/components/edit-category-tab.hbs",isStrictMode:!1})
var y=(0,t.setComponentTemplate)(b,t.default.extend((p=(0,o.default)("tab"),m=(0,o.default)("tab"),h=(0,o.default)("params.slug","params.parentSlug"),f={tagName:"li",classNameBindings:["active","tabClassName"],newCategory:(0,l.empty)("params.slug"),tabClassName:e=>"edit-category-"+e,active:(0,u.propertyEqual)("selectedTab","tab"),title:e=>r.default.t(`category.${(0,d.underscore)(e)}`),didInsertElement(){this._super(...arguments),(0,c.scheduleOnce)("afterRender",this,this._addToCollection)},willDestroyElement(){this._super(...arguments),this.setProperties({selectedTab:"general",params:{}})},_addToCollection(){this.panels.addObject(this.tabClassName)},fullSlug(e,t){const i=t&&e?`${t}/${e}`:e
return(0,a.default)(`/c/${i}/edit/${this.tab}`)},select(e){e?.preventDefault(),this.set("selectedTab",this.tab),this.newCategory||n.default.routeTo(this.fullSlug)}},g(f,"tabClassName",[p],Object.getOwnPropertyDescriptor(f,"tabClassName"),f),g(f,"title",[m],Object.getOwnPropertyDescriptor(f,"title"),f),g(f,"fullSlug",[h],Object.getOwnPropertyDescriptor(f,"fullSlug"),f),g(f,"select",[s.action],Object.getOwnPropertyDescriptor(f,"select"),f),f)))
e.default=y})),define("discourse/components/edit-category-tags",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse/components/edit-category-panel","@ember/object"],(function(e,t,i,n,r,o){var s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"iQWyU1v4",block:'[[[10,"section"],[14,0,"field minimum-required-tags"],[12],[1,"\\n  "],[10,"label"],[14,"for","category-minimum-tags"],[12],[1,"\\n    "],[1,[28,[35,0],["category.minimum_required_tags"],null]],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,1],null,[["@value","@id","@type","@min"],[[30,0,["category","minimum_required_tags"]],"category-minimum-tags","number","0"]],null],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"field allowed-tags"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.tags_allowed_tags"],null]],[13],[1,"\\n  "],[8,[39,2],null,[["@id","@tags","@everyTag","@excludeSynonyms","@unlimitedTagCount","@onChange","@options"],["category-allowed-tags",[30,0,["category","allowed_tags"]],true,true,true,[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","allowed_tags"]]],null]],null],[28,[37,5],null,[["filterPlaceholder"],["category.tags_placeholder"]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field allowed-tag-groups"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.tags_allowed_tag_groups"],null]],[13],[1,"\\n  "],[8,[39,6],null,[["@id","@tagGroups","@onChange"],["category-allowed-tag-groups",[30,0,["category","allowed_tag_groups"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","allowed_tag_groups"]]],null]],null]]],null],[1,"\\n  "],[8,[39,7],[[24,0,"manage-tag-groups"]],[["@route"],["tagGroups"]],[["default"],[[[[1,[28,[35,0],["category.manage_tag_groups_link"],null]]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field allow-global-tags"],[12],[1,"\\n  "],[10,"label"],[12],[1,"\\n    "],[8,[39,8],[[24,1,"allow_global_tags"],[16,"disabled",[30,0,["disableAllowGlobalTags"]]]],[["@type","@checked"],["checkbox",[30,0,["category","allow_global_tags"]]]],null],[1,"\\n    "],[1,[28,[35,0],["category.allow_global_tags_label"],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field tags-tab-description"],[12],[1,"\\n  "],[1,[28,[35,0],["category.tags_tab_description"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field required-tag-group-description"],[12],[1,"\\n  "],[1,[28,[35,0],["category.required_tag_group.description"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field with-items"],[12],[1,"\\n  "],[10,"section"],[14,0,"field-item required-tag-groups"],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["category","required_tag_groups"]]],null]],null],null,[[[1,"      "],[10,0],[14,0,"required-tag-group-row"],[12],[1,"\\n        "],[8,[39,1],null,[["@value","@type","@min"],[[30,1,["min_count"]],"number","1"]],null],[1,"\\n        "],[8,[39,6],null,[["@tagGroups","@onChange","@options"],[[52,[30,1,["name"]],[28,[37,12],[[30,1,["name"]]],null],[28,[37,12],null,null]],[28,[37,3],[[30,0],"onTagGroupChange",[30,1]],null],[28,[37,5],null,[["maximum","filterPlaceholder"],[1,"category.required_tag_group.placeholder"]]]]],null],[1,"\\n        "],[8,[39,13],null,[["@label","@action","@icon","@class"],["category.required_tag_group.delete",[28,[37,3],[[30,0],"deleteRequiredTagGroup",[30,1]],null],"trash-alt","delete-required-tag-group"]],null],[1,"\\n      "],[13],[1,"\\n"]],[1]],null],[1,"    "],[8,[39,13],null,[["@label","@action","@icon","@class"],["category.required_tag_group.add",[28,[37,3],[[30,0],"addRequiredTagGroup"],null],"plus","add-required-tag-group"]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["rtg"],false,["i18n","text-field","tag-chooser","action","mut","hash","tag-group-chooser","link-to","input","each","-track-array","if","array","d-button"]]',moduleName:"discourse/components/edit-category-tags.hbs",isStrictMode:!1})
var u=(0,t.setComponentTemplate)(a,(0,r.buildCategoryPanel)("tags",(l(s={allowedTagsEmpty:(0,n.empty)("category.allowed_tags"),allowedTagGroupsEmpty:(0,n.empty)("category.allowed_tag_groups"),disableAllowGlobalTags:(0,n.and)("allowedTagsEmpty","allowedTagGroupsEmpty"),onTagGroupChange(e,t){(0,o.set)(e,"name",t[0])},addRequiredTagGroup(){this.category.required_tag_groups.pushObject({min_count:1})},deleteRequiredTagGroup(e){this.category.required_tag_groups.removeObject(e)}},"onTagGroupChange",[o.action],Object.getOwnPropertyDescriptor(s,"onTagGroupChange"),s),l(s,"addRequiredTagGroup",[o.action],Object.getOwnPropertyDescriptor(s,"addRequiredTagGroup"),s),l(s,"deleteRequiredTagGroup",[o.action],Object.getOwnPropertyDescriptor(s,"deleteRequiredTagGroup"),s),s)))
e.default=u})),define("discourse/components/edit-category-topic-template",["exports","@ember/component","@ember/template-factory","discourse/components/edit-category-panel","discourse-common/utils/decorators","@ember/runloop","@ember/object"],(function(e,t,i,n,r,o,s){var l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"txN6Vm0a",block:'[[[41,[30,0,["siteSettings","experimental_form_templates"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"toggle-template-type"],[4,[38,2],["click",[30,0,["toggleTemplateType"]]],null]],[["@state","@label"],[[30,0,["showFormTemplate"]],[30,0,["templateTypeToggleLabel"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["showFormTemplate"]],[[[1,"    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,3],null,[["@class","@value","@onChange"],["select-category-template",[30,0,["category","form_template_ids"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["category","form_template_ids"]]],null]],null]]],null],[1,"\\n\\n      "],[10,2],[14,0,"select-category-template__info desc"],[12],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1,"          "],[8,[39,6],null,[["@route"],["adminCustomizeFormTemplates"]],[["default"],[[[[1,"\\n            "],[1,[28,[35,7],["admin.form_templates.edit_category.select_template_help"],null]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,8],null,[["@value","@showLink"],[[30,0,["category","topic_template"]],[30,0,["showInsertLinkButton"]]]],null],[1,"\\n"]],[]]]],[]],[[[1,"  "],[8,[39,8],null,[["@value","@showLink"],[[30,0,["category","topic_template"]],[30,0,["showInsertLinkButton"]]]],null],[1,"\\n"]],[]]]],[],false,["if","d-toggle-switch","on","form-template-chooser","action","mut","link-to","i18n","d-editor"]]',moduleName:"discourse/components/edit-category-topic-template.hbs",isStrictMode:!1})
var p=(0,t.setComponentTemplate)(d,(0,n.buildCategoryPanel)("topic-template",(l=(0,r.default)("showFormTemplate"),a=(0,r.observes)("activeTab","showFormTemplate"),c(u={showFormTemplate:(0,s.computed)("category.form_template_ids",{get(){return Boolean(this.category.form_template_ids.length)},set:(e,t)=>t}),templateTypeToggleLabel:e=>e?"admin.form_templates.edit_category.toggle_form_template":"admin.form_templates.edit_category.toggle_freeform",toggleTemplateType(){this.toggleProperty("showFormTemplate"),this.showFormTemplate||this.set("category.form_template_ids",[])},_activeTabChanged(){this.activeTab&&!this.showFormTemplate&&(0,o.schedule)("afterRender",(()=>this.element.querySelector(".d-editor-input").focus()))}},"templateTypeToggleLabel",[l],Object.getOwnPropertyDescriptor(u,"templateTypeToggleLabel"),u),c(u,"toggleTemplateType",[s.action],Object.getOwnPropertyDescriptor(u,"toggleTemplateType"),u),c(u,"_activeTabChanged",[a],Object.getOwnPropertyDescriptor(u,"_activeTabChanged"),u),u)))
e.default=p})),define("discourse/components/edit-topic-timer-form",["exports","@ember/component","@ember/template-factory","discourse/controllers/edit-topic-timer","select-kit/components/future-date-input-selector","discourse-common/utils/decorators","@ember/object/computed","I18n","@ember/object","@ember/utils","discourse/lib/keyboard-shortcuts","discourse/lib/time-shortcut","@discourse/itsatrap"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){var m,h,f,g,b,y,_,v,w
function k(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const x=(0,i.createTemplateFactory)({id:"wd3LjfKa",block:'[[[10,"form"],[12],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[8,[39,0],null,[["@class","@onChange","@content","@value"],["timer-type",[30,0,["onChangeStatusType"]],[30,0,["timerTypes"]],[30,0,["statusType"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["publishToCategory"]],[[[1,"    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["topic.topic_status_update.publish_to"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@value","@onChange","@options"],[[30,0,["topicTimer","category_id"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["topicTimer","category_id"]]],null]],null],[28,[37,6],null,[["excludeCategoryId"],[[30,0,["excludeCategoryId"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showFutureDateInput"]],[[[1,"    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["topic.topic_status_update.when"],null]],[13],[1,"\\n    "],[8,[39,7],null,[["@timeShortcuts","@prefilledDatetime","@onTimeSelected","@hiddenOptions","@_itsatrap"],[[30,0,["timeOptions"]],[30,0,["topicTimer","execute_at"]],[30,0,["onTimeSelected"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["_itsatrap"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["useDuration"]],[[[1,"    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["topic.topic_status_update.duration"],null]],[13],[1,"\\n      "],[8,[39,8],null,[["@onChange","@durationMinutes"],[[28,[37,4],[[30,0],"durationChanged"],null],[28,[37,9],[[30,0,["topicTimer","duration_minutes"]]],null]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["willCloseImmediately"]],[[[1,"    "],[10,0],[14,0,"warning"],[12],[1,"\\n      "],[1,[28,[35,10],["exclamation-triangle"],null]],[1,"\\n      "],[1,[30,0,["willCloseI18n"]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showTopicTimerInfo"]],[[[1,"    "],[10,0],[14,0,"alert alert-info modal-topic-timer-info"],[12],[1,"\\n      "],[8,[39,11],null,[["@statusType","@executeAt","@basedOnLastPost","@durationMinutes","@categoryId"],[[30,0,["statusType"]],[30,0,["executeAt"]],[30,0,["topicTimer","based_on_last_post"]],[30,0,["topicTimer","duration_minutes"]],[30,0,["topicTimer","category_id"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["combo-box","if","i18n","category-chooser","action","mut","hash","time-shortcut-picker","relative-time-picker","readonly","d-icon","topic-timer-info"]]',moduleName:"discourse/components/edit-topic-timer-form.hbs",isStrictMode:!1})
var P=(0,t.setComponentTemplate)(x,t.default.extend((m=(0,o.default)("autoDeleteReplies"),h=(0,o.default)("topic.visible"),f=(0,o.default)(),g=(0,o.default)("topicTimer.updateTime","topicTimer.duration_minutes","useDuration"),b=(0,o.default)("isBasedOnLastPost","topicTimer.duration_minutes","topic.last_posted_at"),y=(0,o.default)("isBasedOnLastPost","topic.last_posted_at"),_=(0,o.default)("durationType"),v=(0,o.default)("statusType","isCustom","topicTimer.updateTime","willCloseImmediately","topicTimer.category_id","useDuration","topicTimer.duration_minutes"),w={statusType:(0,s.readOnly)("topicTimer.status_type"),autoOpen:(0,s.equal)("statusType",n.OPEN_STATUS_TYPE),autoClose:(0,s.equal)("statusType",n.CLOSE_STATUS_TYPE),autoCloseAfterLastPost:(0,s.equal)("statusType",n.CLOSE_AFTER_LAST_POST_STATUS_TYPE),autoDelete:(0,s.equal)("statusType",n.DELETE_STATUS_TYPE),autoBump:(0,s.equal)("statusType",n.BUMP_TYPE),publishToCategory:(0,s.equal)("statusType",n.PUBLISH_TO_CATEGORY_STATUS_TYPE),autoDeleteReplies:(0,s.equal)("statusType",n.DELETE_REPLIES_TYPE),showTimeOnly:(0,s.or)("autoOpen","autoDelete","autoBump"),showFutureDateInput:(0,s.or)("showTimeOnly","publishToCategory","autoClose"),useDuration:(0,s.or)("isBasedOnLastPost","autoDeleteReplies","autoCloseAfterLastPost"),duration:null,_itsatrap:null,init(){this._super(...arguments),c.default.pause(),this.set("_itsatrap",new p.default),this.set("duration",this.initialDuration)},get initialDuration(){return this.useDuration&&this.topicTimer.duration_minutes?"days"===this.durationType?this.topicTimer.duration_minutes/60/24:this.topicTimer.duration_minutes/60:null},willDestroyElement(){this._super(...arguments),this._itsatrap.destroy(),this.set("_itsatrap",null),c.default.unpause()},durationType:e=>e?"days":"hours",excludeCategoryId(e){if(e)return this.get("topic.category_id")},timeOptions(){const e=this.currentUser.user_option.timezone,t=(0,d.timeShortcuts)(e)
return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.twoWeeks(),t.nextMonth(),t.sixMonths()]},hiddenTimeShortcutOptions:()=>[d.TIME_SHORTCUT_TYPES.NONE,d.TIME_SHORTCUT_TYPES.LATER_TODAY,d.TIME_SHORTCUT_TYPES.LATER_THIS_WEEK],isCustom:(0,s.equal)("timerType","custom"),isBasedOnLastPost:(0,s.equal)("statusType","close_after_last_post"),executeAt:(e,t,i)=>i?moment().add(parseFloat(t),"minutes").format(r.FORMAT):e,willCloseImmediately(e,t,i){if(e&&t){let e=moment(i)
return e=e.add(t,"minutes"),e<moment()}},willCloseI18n(e,t){if(e){const e=Math.round((new Date-new Date(t))/36e5)
return l.default.t("topic.auto_close_momentarily",{count:e})}},durationLabel:e=>l.default.t(`topic.topic_status_update.num_of_${e}`),showTopicTimerInfo(e,t,i,r,o,s,l){if(!e||r)return!1
if(e===n.PUBLISH_TO_CATEGORY_STATUS_TYPE&&(0,u.isEmpty)(o))return!1
if(t&&i){if(moment(i)<moment())return!1}else if(s)return l
return i},onTimeSelected(e,t){this.set("timerType",e),this.onChangeInput(e,t)},durationChanged(e){this.set("topicTimer.duration_minutes",e)}},k(w,"durationType",[m],Object.getOwnPropertyDescriptor(w,"durationType"),w),k(w,"excludeCategoryId",[h],Object.getOwnPropertyDescriptor(w,"excludeCategoryId"),w),k(w,"timeOptions",[f],Object.getOwnPropertyDescriptor(w,"timeOptions"),w),k(w,"hiddenTimeShortcutOptions",[o.default],Object.getOwnPropertyDescriptor(w,"hiddenTimeShortcutOptions"),w),k(w,"executeAt",[g],Object.getOwnPropertyDescriptor(w,"executeAt"),w),k(w,"willCloseImmediately",[b],Object.getOwnPropertyDescriptor(w,"willCloseImmediately"),w),k(w,"willCloseI18n",[y],Object.getOwnPropertyDescriptor(w,"willCloseI18n"),w),k(w,"durationLabel",[_],Object.getOwnPropertyDescriptor(w,"durationLabel"),w),k(w,"showTopicTimerInfo",[v],Object.getOwnPropertyDescriptor(w,"showTopicTimerInfo"),w),k(w,"onTimeSelected",[a.action],Object.getOwnPropertyDescriptor(w,"onTimeSelected"),w),k(w,"durationChanged",[a.action],Object.getOwnPropertyDescriptor(w,"durationChanged"),w),w)))
e.default=P})),define("discourse/components/email-dropdown",["exports","@ember/object","select-kit/components/dropdown-select-box","I18n","@ember/service"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=i.default.extend((o={router:(0,r.inject)(),classNames:["email-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,t.computed)("email",(function(){const e=[]
return this.email.primary&&e.push({id:"updateEmail",icon:"pencil-alt",name:n.default.t("user.email.update_email"),description:""}),!this.email.primary&&this.email.confirmed&&e.push({id:"setPrimaryEmail",icon:"star",name:n.default.t("user.email.set_primary"),description:""}),this.email.primary||e.push({id:"destroyEmail",icon:"times",name:n.default.t("user.email.destroy"),description:""}),e})),onChange(e){switch(e){case"updateEmail":this.router.transitionTo("preferences.email")
break
case"setPrimaryEmail":this.setPrimaryEmail(this.email.email)
break
case"destroyEmail":this.destroyEmail(this.email.email)}}},s=o,l="onChange",a=[t.action],u=Object.getOwnPropertyDescriptor(o,"onChange"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/components/emoji-group-buttons",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"iC9BVZ2M",block:'[[[1,"\\n"],[11,"button"],[24,"data-section","smileys_&_emotion"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"smileys_&_emotion"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":grinning:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","people_&_body"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"people_&_body"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":wave:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","animals_&_nature"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"animals_&_nature"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":evergreen_tree:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","food_&_drink"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"food_&_drink"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":hamburger:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","travel_&_places"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"travel_&_places"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":airplane:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","activities"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"activities"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":soccer:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","objects"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"objects"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":eyeglasses:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","symbols"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"symbols"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":white_check_mark:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","flags"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"flags"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":checkered_flag:"],null]],[1,"\\n"],[13]],[],false,["on","fn","replace-emoji"]]',moduleName:"discourse/components/emoji-group-buttons.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/emoji-group-sections",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"gU4b+9w9",block:'[[[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","smileys_&_emotion"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.smileys_&_emotion"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":grinning:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiley:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smile:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":grin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":laughing:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sweat_smile:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rofl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":joy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":slightly_smiling_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":upside_down_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":melting_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wink:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blush:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":innocent:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiling_face_with_three_hearts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":star_struck:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kissing_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kissing:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiling_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kissing_closed_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kissing_smiling_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiling_face_with_tear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yum:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stuck_out_tongue:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stuck_out_tongue_winking_eye:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crazy_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stuck_out_tongue_closed_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":money_mouth_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hugs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_hand_over_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_open_eyes_and_hand_over_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_peeking_eye:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shushing_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thinking:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":saluting_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zipper_mouth_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_raised_eyebrow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":neutral_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":expressionless:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dotted_line_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_in_clouds:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smirk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":unamused:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":roll_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":grimacing:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_exhaling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lying_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":relieved:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pensive:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sleepy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":drooling_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sleeping:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mask:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_thermometer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_head_bandage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nauseated_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_vomiting:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sneezing_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hot_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cold_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woozy_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dizzy_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_spiral_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":exploding_head:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cowboy_hat_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":partying_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":disguised_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sunglasses:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nerd_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_monocle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":confused:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_diagonal_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":worried:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":slightly_frowning_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":frowning_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":open_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hushed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":astonished:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flushed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pleading_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_holding_back_tears:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":frowning_with_open_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":anguished:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fearful:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cold_sweat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":disappointed_relieved:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sob:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scream:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":confounded:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":persevere:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":disappointed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sweat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":weary:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tired_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yawning_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":triumph:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":angry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_symbols_over_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiling_imp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":imp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":skull:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":skull_and_crossbones:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":poop:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clown_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":japanese_ogre:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":japanese_goblin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ghost:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":alien:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":space_invader:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":robot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiley_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smile_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":joy_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart_eyes_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smirk_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kissing_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scream_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crying_cat_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pouting_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":see_no_evil:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hear_no_evil:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":speak_no_evil:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kiss:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":love_letter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cupid:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gift_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sparkling_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heartpulse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heartbeat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":revolving_hearts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":two_hearts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart_decoration:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_heart_exclamation:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":broken_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart_on_fire:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mending_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orange_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yellow_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blue_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":purple_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brown_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":100:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":anger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dizzy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sweat_drops:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dash:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hole:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bomb:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":speech_balloon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eye_in_speech_bubble:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":left_speech_bubble:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":right_anger_bubble:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thought_balloon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zzz:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","people_&_body"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.people_&_body"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":wave:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raised_back_of_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raised_hand_with_fingers_splayed:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raised_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vulcan_salute:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rightwards_hand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leftwards_hand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palm_down_hand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palm_up_hand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ok_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pinched_fingers:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pinching_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":v:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crossed_fingers:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hand_with_index_finger_and_thumb_crossed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":love_you_gesture:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":metal:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":call_me_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":point_left:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":point_right:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":point_up_2:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fu:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":point_down:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":point_up:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":index_pointing_at_the_viewer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":+1:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":-1:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":facepunch:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fist_left:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fist_right:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clap:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raised_hands:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart_hands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":open_hands:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palms_up_together:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":handshake:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pray:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":writing_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nail_care:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":selfie:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":muscle:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mechanical_arm:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mechanical_leg:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leg:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":foot:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ear:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hear_with_hearing_aid:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nose:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":anatomical_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lungs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tooth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eye:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tongue:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lips:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":biting_lip:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baby:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":child:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boy:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":girl:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":adult:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blonde_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bearded_person:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_beard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_beard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_red_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_curly_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_white_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_bald:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_red_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_red_hair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_curly_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_curly_hair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_white_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_white_hair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_bald:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_bald:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blonde_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_blond_hair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":older_adult:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":older_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":older_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_frowning:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":frowning_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":frowning_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_pouting:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pouting_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pouting_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_gesturing_no:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_good_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_good_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_gesturing_ok:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ok_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ok_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_tipping_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tipping_hand_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tipping_hand_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_raising_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raising_hand_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raising_hand_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":deaf_person:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":deaf_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":deaf_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bowing_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_bowing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bowing_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_facepalming:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_facepalming:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_facepalming:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_shrugging:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_shrugging:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_shrugging:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":health_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_health_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_health_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":student:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_student:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_student:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":teacher:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_teacher:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_teacher:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":judge:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_judge:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_judge:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":farmer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_farmer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_farmer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cook:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_cook:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_cook:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mechanic:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_mechanic:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_mechanic:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":factory_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_factory_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_factory_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":office_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_office_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_office_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scientist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_scientist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_scientist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":technologist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_technologist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_technologist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":singer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_singer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_singer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":artist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_artist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_artist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pilot:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_pilot:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_pilot:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":astronaut:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_astronaut:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_astronaut:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":firefighter:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_firefighter:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_firefighter:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":policeman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_police_officer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":policewoman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":male_detective:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_detective:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":female_detective:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guardsman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_guard:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guardswoman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ninja:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":construction_worker_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_construction_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":construction_worker_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_with_crown:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":prince:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":princess:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_with_turban:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_wearing_turban:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_with_turban:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_with_gua_pi_mao:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_with_headscarf:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_in_tuxedo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_in_tuxedo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_in_tuxedo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bride_with_veil:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_with_veil:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_with_veil:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pregnant_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pregnant_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pregnant_person:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":breast_feeding:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_feeding_baby:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_feeding_baby:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_feeding_baby:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":angel:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":santa:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mrs_claus:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mx_claus:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":superhero:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_superhero:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_superhero:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":supervillain:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_supervillain:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_supervillain:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mage:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_mage:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_mage:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fairy:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_fairy:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_fairy:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vampire:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_vampire:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_vampire:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":merperson:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":merman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mermaid:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":elf:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_elf:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_elf:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":genie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_genie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_genie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zombie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_zombie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_zombie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":troll:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_getting_massage:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":massage_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":massage_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_getting_haircut:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":haircut_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":haircut_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":walking_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_walking:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":walking_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_standing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_standing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_standing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_kneeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_kneeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_kneeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_with_white_cane:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_with_probing_cane:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_with_probing_cane:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_in_motorized_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_in_motorized_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_in_motorized_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_in_manual_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_in_manual_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_in_manual_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":running_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_running:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":running_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dancer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_dancing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":business_suit_levitating:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dancing_women:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dancing_men:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":women_with_bunny_ears:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_in_steamy_room:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_in_steamy_room:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_in_steamy_room:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_climbing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_climbing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_climbing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_fencing:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":horse_racing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":skier:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snowboarder:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":golfing_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_golfing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":golfing_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":surfing_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_surfing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":surfing_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rowing_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_rowing_boat:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rowing_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":swimming_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_swimming:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":swimming_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":basketball_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_bouncing_ball:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":basketball_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":weight_lifting_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_lifting_weights:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":weight_lifting_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":biking_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_biking:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":biking_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain_biking_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_mountain_biking:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain_biking_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_cartwheeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_cartwheeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_cartwheeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":people_wrestling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":men_wrestling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":women_wrestling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_playing_water_polo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_playing_water_polo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_playing_water_polo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_playing_handball:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_playing_handball:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_playing_handball:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_juggling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_juggling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_juggling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_in_lotus_position:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_in_lotus_position:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_in_lotus_position:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bath:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sleeping_bed:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":people_holding_hands:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":two_women_holding_hands:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couple:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":two_men_holding_hands:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couplekiss_man_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kiss_woman_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couplekiss_man_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couplekiss_woman_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couple_with_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couple_with_heart_woman_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couple_with_heart_man_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couple_with_heart_woman_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_woman_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_woman_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_woman_girl_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_woman_boy_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_woman_girl_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_man_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_man_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_man_girl_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_man_boy_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_man_girl_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_woman_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_woman_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_woman_girl_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_woman_boy_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_woman_girl_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_boy_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_girl_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_girl_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_boy_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_girl_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_girl_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":speaking_head:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bust_in_silhouette:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":busts_in_silhouette:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":people_hugging:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":footprints:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","animals_&_nature"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.animals_&_nature"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":monkey_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":monkey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gorilla:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orangutan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dog2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guide_dog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":service_dog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":poodle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wolf:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fox_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raccoon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cat2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lion:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tiger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tiger2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leopard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":horse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":racehorse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":unicorn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zebra:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":deer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bison:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ox:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":water_buffalo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cow2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pig:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pig2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pig_nose:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ram:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sheep:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":goat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dromedary_camel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":camel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":llama:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":giraffe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":elephant:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mammoth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rhinoceros:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hippopotamus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mouse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mouse2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hamster:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rabbit:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rabbit2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chipmunk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beaver:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hedgehog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":polar_bear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":koala:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":panda_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sloth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":otter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":skunk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kangaroo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":badger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":paw_prints:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":turkey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chicken:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rooster:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hatching_chick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baby_chick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hatched_chick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bird:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":penguin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dove:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eagle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":duck:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":swan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":owl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dodo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":feather:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flamingo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":peacock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":parrot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":frog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crocodile:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":turtle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lizard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dragon_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dragon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sauropod:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":t_rex:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":whale:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":whale2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dolphin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":seal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fish:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tropical_fish:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blowfish:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":octopus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shell:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coral:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":butterfly:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bug:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ant:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":honeybee:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beetle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lady_beetle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cricket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cockroach:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spider:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spider_web:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scorpion:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mosquito:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fly:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":worm:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":microbe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bouquet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cherry_blossom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_flower:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lotus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rosette:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rose:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wilted_flower:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hibiscus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sunflower:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blossom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tulip:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":seedling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":potted_plant:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":evergreen_tree:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":deciduous_tree:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palm_tree:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cactus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ear_of_rice:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":herb:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shamrock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":four_leaf_clover:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":maple_leaf:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fallen_leaf:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leaves:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":empty_nest:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nest_with_eggs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","food_&_drink"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.food_&_drink"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":grapes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":melon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":watermelon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tangerine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lemon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":banana:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pineapple:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mango:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":apple:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_apple:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":peach:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cherries:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":strawberry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blueberries:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kiwi_fruit:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tomato:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":olive:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coconut:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":avocado:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eggplant:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":potato:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":carrot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":corn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hot_pepper:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bell_pepper:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cucumber:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leafy_green:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":broccoli:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":garlic:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":onion:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mushroom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":peanuts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beans:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chestnut:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bread:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":croissant:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baguette_bread:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flatbread:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pretzel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bagel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pancakes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":waffle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cheese:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":meat_on_bone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":poultry_leg:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cut_of_meat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bacon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hamburger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fries:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pizza:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hotdog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sandwich:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":taco:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":burrito:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tamale:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stuffed_flatbread:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":falafel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":egg:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fried_egg:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shallow_pan_of_food:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stew:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fondue:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bowl_with_spoon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_salad:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":popcorn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":butter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":salt:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":canned_food:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bento:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rice_cracker:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rice_ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rice:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":curry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ramen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spaghetti:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sweet_potato:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oden:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sushi:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fried_shrimp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fish_cake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":moon_cake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dango:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dumpling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fortune_cookie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":takeout_box:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crab:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lobster:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shrimp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":squid:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oyster:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":icecream:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shaved_ice:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ice_cream:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":doughnut:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cookie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":birthday:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cupcake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chocolate_bar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":candy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lollipop:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":custard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":honey_pot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baby_bottle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":milk_glass:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coffee:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":teapot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":champagne:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wine_glass:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cocktail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tropical_drink:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beers:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clinking_glasses:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tumbler_glass:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pouring_liquid:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cup_with_straw:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bubble_tea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beverage_box:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":maté:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ice_cube:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chopsticks:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":plate_with_cutlery:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fork_and_knife:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spoon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hocho:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":amphora:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","travel_&_places"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.travel_&_places"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":earth_africa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":earth_americas:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":earth_asia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":globe_with_meridians:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":world_map:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":japan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":compass:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain_snow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":volcano:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mount_fuji:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":camping:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beach_umbrella:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":desert:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":desert_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":national_park:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stadium:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":classical_building:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":building_construction:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wood:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hut:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":houses:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":derelict_house:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":house:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":house_with_garden:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":office:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":post_office:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":european_post_office:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hospital:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bank:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hotel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":love_hotel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":convenience_store:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":school:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":department_store:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":factory:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":japanese_castle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":european_castle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wedding:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tokyo_tower:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":statue_of_liberty:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":church:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mosque:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hindu_temple:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":synagogue:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shinto_shrine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kaaba:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fountain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tent:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":foggy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":night_with_stars:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cityscape:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sunrise_over_mountains:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sunrise:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":city_sunset:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":city_sunrise:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bridge_at_night:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hotsprings:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":carousel_horse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":playground_slide:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ferris_wheel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":roller_coaster:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":barber:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":circus_tent:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":steam_locomotive:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":railway_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bullettrain_side:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bullettrain_front:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":train2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":metro:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":light_rail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":station:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tram:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":monorail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain_railway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":train:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oncoming_bus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trolleybus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":minibus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ambulance:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fire_engine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":police_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oncoming_police_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":taxi:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oncoming_taxi:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":red_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oncoming_automobile:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blue_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pickup_truck:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":truck:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":articulated_lorry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tractor:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":racing_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":motorcycle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":motor_scooter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":manual_wheelchair:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":motorized_wheelchair:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":auto_rickshaw:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bike:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kick_scooter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":skateboard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":roller_skate:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":busstop:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":motorway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":railway_track:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oil_drum:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fuelpump:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wheel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rotating_light:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":traffic_light:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vertical_traffic_light:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stop_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":construction:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":anchor:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ring_buoy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sailboat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":canoe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":speedboat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":passenger_ship:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ferry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":motor_boat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ship:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":airplane:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":small_airplane:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flight_departure:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flight_arrival:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":parachute:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":seat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":helicopter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":suspension_railway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain_cableway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":aerial_tramway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":artificial_satellite:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rocket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flying_saucer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bellhop_bell:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":luggage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hourglass:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hourglass_flowing_sand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":watch:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":alarm_clock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stopwatch:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":timer_clock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mantelpiece_clock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock12:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock1230:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock1:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock130:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock230:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock3:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock330:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock4:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock430:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock5:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock530:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock6:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock630:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock7:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock730:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock8:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock830:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock9:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock930:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock10:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock1030:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock11:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock1130:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":new_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":waxing_crescent_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":first_quarter_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":waxing_gibbous_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":full_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":waning_gibbous_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":last_quarter_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":waning_crescent_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crescent_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":new_moon_with_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":first_quarter_moon_with_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":last_quarter_moon_with_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thermometer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sunny:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":full_moon_with_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sun_with_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ringer_planet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":star:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":star2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stars:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":milky_way:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cloud:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":partly_sunny:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cloud_with_lightning_and_rain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sun_behind_small_cloud:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sun_behind_large_cloud:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sun_behind_rain_cloud:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cloud_with_rain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cloud_with_snow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cloud_with_lightning:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tornado:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wind_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cyclone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rainbow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":closed_umbrella:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":open_umbrella:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":umbrella:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":parasol_on_ground:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zap:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snowflake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snowman_with_snow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snowman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":comet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fire:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":droplet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ocean:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","activities"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.activities"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":jack_o_lantern:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":christmas_tree:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fireworks:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sparkler:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":firecracker:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sparkles:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":balloon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tada:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":confetti_ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tanabata_tree:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bamboo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dolls:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flags:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wind_chime:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rice_scene:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":red_gift_envelope:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ribbon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gift:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":reminder_ribbon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tickets:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ticket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":medal_military:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trophy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":medal_sports:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":1st_place_medal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":2nd_place_medal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":3rd_place_medal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":soccer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baseball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":softball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":basketball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":volleyball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":football:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rugby_football:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tennis:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flying_disc:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bowling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cricket_bat_and_ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":field_hockey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ice_hockey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lacrosse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ping_pong:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":badminton:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boxing_glove:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":martial_arts_uniform:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":goal_net:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":golf:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ice_skate:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fishing_pole_and_fish:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":diving_mask:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":running_shirt_with_sash:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ski:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sled:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":curling_stone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yo-yo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kite:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":8ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crystal_ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":magic_wand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nazar_amulet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hamsa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":video_game:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":joystick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":slot_machine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":game_die:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jigsaw:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":teddy_bear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":piñata:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mirror_ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nesting_dolls:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spades:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hearts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":diamonds:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clubs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chess_pawn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_joker:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mahjong:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flower_playing_cards:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":performing_arts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":framed_picture:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":art:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thread:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sewing_needle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yarn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":knot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","objects"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.objects"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":eyeglasses:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dark_sunglasses:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":goggles:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lab_coat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":safety_vest:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":necktie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tshirt:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jeans:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scarf:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gloves:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":socks:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dress:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kimono:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sari:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":one_piece_swimsuit:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":briefs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shorts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bikini:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":womans_clothes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":purse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":handbag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pouch:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shopping:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":school_satchel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thong_sandal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mans_shoe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":athletic_shoe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hiking_boot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flat_shoe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":high_heel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sandal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ballet_shoes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crown:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":womans_hat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tophat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mortar_board:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":billed_cap:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":military_helmet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rescue_worker_helmet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":prayer_beads:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lipstick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ring:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gem:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mute:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":speaker:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sound:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":loud_sound:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":loudspeaker:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mega:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":postal_horn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bell:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_bell:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":musical_score:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":musical_note:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":notes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":studio_microphone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":level_slider:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":control_knobs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":microphone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":headphones:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":radio:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":saxophone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":accordion:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guitar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":musical_keyboard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trumpet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":violin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":banjo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":drum:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":long_drum:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":iphone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":calling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":phone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":telephone_receiver:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pager:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fax:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":battery:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":low_battery:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":electric_plug:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":computer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":desktop_computer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":printer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":keyboard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":computer_mouse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trackball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":minidisc:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":floppy_disk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cd:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dvd:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":abacus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":movie_camera:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":film_strip:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":film_projector:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clapper:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tv:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":camera:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":camera_flash:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":video_camera:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vhs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mag_right:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":candle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bulb:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flashlight:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":izakaya_lantern:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":diya_lamp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":notebook_with_decorative_cover:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":closed_book:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":open_book:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_book:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blue_book:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orange_book:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":books:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":notebook:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ledger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":page_with_curl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scroll:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":page_facing_up:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":newspaper:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":newspaper_roll:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bookmark_tabs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bookmark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":label:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":moneybag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dollar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":euro:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pound:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":money_with_wings:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":credit_card:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":receipt:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":email:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":e-mail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":incoming_envelope:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":envelope_with_arrow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":outbox_tray:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":inbox_tray:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":package:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mailbox:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mailbox_closed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mailbox_with_mail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mailbox_with_no_mail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":postbox:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ballot_box:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pencil2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_nib:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fountain_pen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":paintbrush:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crayon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":memo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":briefcase:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":file_folder:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":open_file_folder:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":card_index_dividers:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":date:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":calendar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spiral_notepad:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spiral_calendar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":card_index:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chart_with_upwards_trend:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chart_with_downwards_trend:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bar_chart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clipboard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pushpin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":round_pushpin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":paperclip:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":paperclips:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":straight_ruler:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":triangular_ruler:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scissors:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":card_file_box:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":file_cabinet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wastebasket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":unlock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lock_with_ink_pen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":closed_lock_with_key:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":key:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":old_key:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hammer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":axe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hammer_and_pick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hammer_and_wrench:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dagger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crossed_swords:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gun:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boomerang:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bow_and_arrow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shield:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":carpentry_saw:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wrench:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":screwdriver:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nut_and_bolt:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clamp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":balance_scale:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":probing_cane:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":link:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chains:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hook:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":toolbox:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":magnet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ladder:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":alembic:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":test_tube:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":petri_dish:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dna:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":microscope:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":telescope:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":satellite:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":syringe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":drop_of_blood:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pill:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":adhesive_bandage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crutch:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stethoscope:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":xray:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":door:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":elevator:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mirror:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":window:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couch_and_lamp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chair:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":toilet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":plunger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shower:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bathtub:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mouse_trap:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":razor:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lotion_bottle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":safety_pin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":broom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":basket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":roll_of_toilet_paper:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bucket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":soap:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bubbles:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":toothbrush:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sponge:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fire_extinguisher:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shopping_cart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smoking:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coffin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":headstone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":funeral_urn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":moyai:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":placard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":identification_card:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","symbols"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.symbols"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":atm:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":put_litter_in_its_place:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":potable_water:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wheelchair:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mens:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":womens:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":restroom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baby_symbol:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wc:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":passport_control:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":customs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baggage_claim:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":left_luggage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":warning:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":children_crossing:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_entry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_entry_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_bicycles:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_smoking:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":do_not_litter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":non-potable_water:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_pedestrians:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_mobile_phones:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":underage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":radioactive:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":biohazard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_up:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_upper_right:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_right:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_lower_right:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_down:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_lower_left:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_left:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_upper_left:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_up_down:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":left_right_arrow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leftwards_arrow_with_hook:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_right_hook:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_heading_up:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_heading_down:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrows_clockwise:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrows_counterclockwise:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":back:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":end:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":on:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":soon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":top:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":place_of_worship:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":atom_symbol:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":om:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":star_of_david:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wheel_of_dharma:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yin_yang:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":latin_cross:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orthodox_cross:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":star_and_crescent:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":peace_symbol:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":menorah:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":six_pointed_star:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":aries:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":taurus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gemini:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cancer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":virgo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":libra:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scorpius:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sagittarius:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":capricorn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":aquarius:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pisces:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ophiuchus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":twisted_rightwards_arrows:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":repeat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":repeat_one:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_forward:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fast_forward:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":next_track_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":play_or_pause_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_backward:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rewind:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":previous_track_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_up_small:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_double_up:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_down_small:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_double_down:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pause_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stop_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":record_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eject_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cinema:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":low_brightness:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":high_brightness:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":signal_strength:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vibration_mode:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mobile_phone_off:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":female_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":male_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":transgender_symbol:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_multiplication_x:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_plus_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_minus_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_division_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_equals_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":infinity:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bangbang:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":interrobang:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":question:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":grey_question:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":grey_exclamation:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":exclamation:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wavy_dash:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":currency_exchange:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_dollar_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":medical_symbol:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":recycle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fleur_de_lis:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trident:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":name_badge:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beginner:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":o:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_check_mark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ballot_box_with_check:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_check_mark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":x:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":negative_squared_cross_mark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":curly_loop:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":loop:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":part_alternation_mark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eight_spoked_asterisk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eight_pointed_black_star:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sparkle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":copyright:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":registered:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tm:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hash:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":asterisk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zero:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":one:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":two:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":three:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":four:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":five:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":six:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":seven:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eight:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":keycap_ten:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":capital_abcd:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":abcd:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":1234:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":symbols:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":abc:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":a:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ab:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":b:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cool:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":free:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":information_source:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":id:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":m:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":new:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ng:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":o2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ok:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":parking:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sos:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":up:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":koko:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u6708:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u6709:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u6307:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ideograph_advantage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u5272:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u7121:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u7981:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":accept:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u7533:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u5408:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u7a7a:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":congratulations:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":secret:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u55b6:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u6e80:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":red_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orange_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yellow_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":large_blue_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":purple_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brown_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":red_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orange_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yellow_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blue_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":purple_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brown_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_large_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_large_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_medium_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_medium_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_medium_small_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_medium_small_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_small_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_small_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":large_orange_diamond:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":large_blue_diamond:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":small_orange_diamond:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":small_blue_diamond:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":small_red_triangle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":small_red_triangle_down:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":diamond_shape_with_a_dot_inside:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":radio_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_square_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_square_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","flags"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.flags"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":checkered_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":triangular_flag_on_post:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crossed_flags:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rainbow_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":transgender_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pirate_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ascension_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":andorra:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":united_arab_emirates:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":afghanistan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":antigua_barbuda:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":anguilla:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":albania:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":armenia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":angola:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":antarctica:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":argentina:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":american_samoa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":austria:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":australia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":aruba:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":aland_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":azerbaijan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bosnia_herzegovina:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":barbados:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bangladesh:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":belgium:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":burkina_faso:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bulgaria:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bahrain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":burundi:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":benin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_barthelemy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bermuda:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brunei:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bolivia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":caribbean_netherlands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brazil:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bahamas:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bhutan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bouvet_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":botswana:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":belarus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":belize:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":canada:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cocos_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":congo_kinshasa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":central_african_republic:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":congo_brazzaville:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":switzerland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cote_divoire:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cook_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chile:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cameroon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":colombia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clipperton_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":costa_rica:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cuba:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cape_verde:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":curacao:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":christmas_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cyprus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":czech_republic:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":de:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":diego_garcia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":djibouti:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":denmark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dominica:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dominican_republic:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":algeria:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ceuta_and_melilla:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ecuador:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":estonia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":egypt:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":western_sahara:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eritrea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":es:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ethiopia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eu:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":finland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fiji:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":falkland_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":micronesia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":faroe_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fr:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gabon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":uk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":grenada:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":georgia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":french_guiana:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guernsey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ghana:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gibraltar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":greenland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gambia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guinea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guadeloupe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":equatorial_guinea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":greece:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":south_georgia_south_sandwich_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guatemala:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guam:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guinea_bissau:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guyana:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hong_kong:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heard_and_mc_donald_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":honduras:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":croatia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":haiti:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hungary:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":canary_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":indonesia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ireland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":israel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":isle_of_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":india:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":british_indian_ocean_territory:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":iraq:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":iran:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":iceland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":it:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jersey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jamaica:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jordan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kenya:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kyrgyzstan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cambodia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kiribati:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":comoros:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_kitts_nevis:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":north_korea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kr:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kuwait:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cayman_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kazakhstan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":laos:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lebanon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_lucia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":liechtenstein:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sri_lanka:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":liberia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lesotho:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lithuania:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":luxembourg:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":latvia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":libya:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":morocco:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":monaco:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":moldova:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":montenegro:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_martin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":madagascar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":marshall_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":macedonia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mali:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":myanmar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mongolia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":macau:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":northern_mariana_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":martinique:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mauritania:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":montserrat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":malta:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mauritius:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":maldives:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":malawi:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mexico:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":malaysia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mozambique:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":namibia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":new_caledonia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":niger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":norfolk_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nigeria:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nicaragua:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":netherlands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":norway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nepal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nauru:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":niue:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":new_zealand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":panama:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":peru:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":french_polynesia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":papua_new_guinea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":philippines:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pakistan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":poland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_pierre_miquelon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pitcairn_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":puerto_rico:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palestinian_territories:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":portugal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palau:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":paraguay:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":qatar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":reunion:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":romania:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":serbia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ru:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rwanda:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":saudi_arabia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":solomon_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":seychelles:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sudan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sweden:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":singapore:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_helena:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":slovenia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":svalbard_and_jan_mayen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":slovakia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sierra_leone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":san_marino:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":senegal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":somalia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":suriname:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":south_sudan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sao_tome_principe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":el_salvador:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sint_maarten:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":syria:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":swaziland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tristan_da_cunha:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":turks_caicos_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chad:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":french_southern_territories:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":togo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thailand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tajikistan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tokelau:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":timor_leste:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":turkmenistan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tunisia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tonga:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tr:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trinidad_tobago:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tuvalu:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":taiwan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tanzania:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ukraine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":uganda:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":us_outlying_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":united_nations:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":us:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":uruguay:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":uzbekistan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vatican_city:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_vincent_grenadines:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":venezuela:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":british_virgin_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":us_virgin_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vietnam:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vanuatu:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wallis_futuna:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":samoa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kosovo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yemen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mayotte:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":south_africa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zambia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zimbabwe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":england:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scotland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wales:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","replace-emoji","hash"]]',moduleName:"discourse/components/emoji-group-sections.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/emoji-picker",["exports","@ember/component","@ember/template-factory","@ember/object","discourse-common/utils/decorators","pretty-text/emoji","discourse/lib/text","discourse/lib/utilities","@ember/runloop","discourse-common/lib/later","@popperjs/core","@ember/template","@ember/service","@ember/string"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g
function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,i.createTemplateFactory)({id:"t5GJPzcc",block:'[[[41,[30,0,["isActive"]],[[[1,"  "],[11,0],[16,0,[29,["emoji-picker ",[52,[30,0,["isActive"]],"opened"]]]],[4,[38,1],["keydown",[28,[37,2],[[30,0],"keydown"],null]],null],[12],[1,"\\n"],[1,"    "],[10,0],[14,0,"emoji-picker-category-buttons"],[12],[1,"\\n"],[41,[30,0,["recentEmojis","length"]],[[[1,"        "],[11,"button"],[24,"data-section","recent"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,3],[[30,0,["onCategorySelection"]],"recent"],null]],null],[12],[1,"\\n          "],[1,[28,[35,4],[":star:"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[8,[39,5],null,[["@onCategorySelection","@tagName"],[[30,0,["onCategorySelection"]],""]],null],[1,"\\n\\n"],[42,[28,[37,7],[[30,0,["customEmojis"]]],null],null,[[[1,"        "],[11,"button"],[16,"data-section",[28,[37,8],["custom-",[30,2]],null]],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,3],[[30,0,["onCategorySelection"]],[28,[37,8],["custom-",[30,2]],null]],null]],null],[12],[1,"\\n          "],[1,[28,[35,4],[[28,[37,8],[":",[30,1,["firstObject","code"]],":"],null]],null]],[1,"\\n        "],[13],[1,"\\n"]],[1,2]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"emoji-picker-content"],[12],[1,"\\n      "],[10,0],[14,0,"emoji-picker-search-container"],[12],[1,"\\n        "],[8,[39,9],[[24,0,"filter"],[24,3,"filter"],[16,"placeholder",[28,[37,10],["emoji_picker.filter_placeholder"],null]],[24,"autocomplete","off"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[4,[38,1],["input",[28,[37,2],[[30,0],"onFilterChange"],null]],null]],[["@value","@type"],[[30,3],"search"]],null],[1,"\\n\\n        "],[1,[28,[35,11],["search"],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[11,0],[24,0,"emoji-picker-emoji-area"],[24,"role","button"],[4,[38,1],["click",[30,0,["onEmojiSelection"]]],null],[4,[38,1],["mouseover",[30,0,["onEmojiHover"]]],null],[12],[1,"\\n        "],[10,0],[14,0,"results"],[12],[13],[1,"\\n\\n        "],[10,0],[14,0,"emojis-container"],[12],[1,"\\n"],[41,[30,0,["recentEmojis","length"]],[[[1,"            "],[10,0],[14,0,"section recent"],[14,"data-section","recent"],[12],[1,"\\n              "],[10,0],[14,0,"section-header"],[12],[1,"\\n                "],[10,1],[14,0,"title"],[12],[1,[28,[35,10],["emoji_picker.recent"],null]],[13],[1,"\\n                "],[8,[39,12],null,[["@icon","@action","@class"],["trash-alt",[28,[37,2],[[30,0],"onClearRecent"],null],"trash-recent"]],null],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"section-group"],[12],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,0,["recentEmojis"]]],null]],null],null,[[[1,"                  "],[1,[28,[35,4],[[28,[37,8],[":",[30,4],":"],null],[28,[37,14],null,[["lazy","tabIndex","class"],[true,"0","recent-emoji"]]]],null]],[1,"\\n"]],[4]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,15],null,null,null],[1,"\\n\\n"],[42,[28,[37,7],[[30,0,["customEmojis"]]],null],null,[[[1,"            "],[10,0],[14,0,"section"],[15,"data-section",[29,["custom-",[30,6]]]],[12],[1,"\\n              "],[10,0],[14,0,"section-header"],[12],[1,"\\n                "],[10,1],[14,0,"title"],[12],[1,"\\n                  "],[1,[28,[35,10],[[28,[37,8],["emoji_picker.",[30,6]],null]],[["translatedFallback"],[[30,6]]]]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"],[41,[30,5,["length"]],[[[1,"                "],[10,0],[14,0,"section-group"],[12],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,5]],null]],null],null,[[[1,"                    "],[10,1],[12],[1,"\\n                      "],[10,"img"],[15,"title",[30,7,["code"]]],[14,"width","20"],[14,"height","20"],[14,"loading","lazy"],[14,0,"emoji"],[15,"src",[30,7,["src"]]],[12],[13],[1,"\\n                    "],[13],[1,"\\n"]],[7]],null],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[5,6]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"emoji-picker-footer"],[12],[1,"\\n        "],[10,0],[14,0,"emoji-picker-emoji-info"],[12],[1,"\\n"],[41,[30,0,["hoveredEmoji"]],[[[1,"            "],[1,[28,[35,4],[[28,[37,8],[":",[30,0,["hoveredEmoji"]],":"],null]],null]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"emoji-picker-diversity-picker"],[12],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,0,["diversityScales"]]],null]],null],null,[[[1,"            "],[8,[39,12],null,[["@icon","@class","@title","@action"],[[30,8,["icon"]],[28,[37,8],["diversity-scale ",[30,8,["name"]]],null],[30,8,["title"]],[28,[37,2],[[30,0],"onDiversitySelection",[30,9]],null]]],null],[1,"\\n"]],[8,9]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1,"    "],[11,0],[24,"role","button"],[24,0,"emoji-picker-modal-overlay"],[4,[38,1],["click",[30,0,["onClose"]]],null],[12],[13],[1,"\\n"]],[]],null]],[]],null]],["emojis","group","@initialFilter","emoji","emojis","group","emoji","diversityScale","index"],false,["if","on","action","fn","replace-emoji","emoji-group-buttons","each","-each-in","concat","input","i18n","d-icon","d-button","-track-array","hash","emoji-group-sections"]]',moduleName:"discourse/components/emoji-picker.hbs",isStrictMode:!1})
var _=(0,t.setComponentTemplate)(y,t.default.extend((h=(0,r.default)("emojiStore.diversity"),f=(0,r.observes)("isActive"),g={emojiStore:(0,p.inject)("emoji-store"),tagName:"",customEmojis:null,recentEmojis:null,hoveredEmoji:null,isActive:!1,usePopper:!0,placement:"auto",initialFilter:"",elements:{searchInput:".emoji-picker-search-container input",picker:".emoji-picker-emoji-area"},init(){this._super(...arguments),this.set("customEmojis",function(){const e=(0,o.extendedEmojiList)(),t=[]
for(const[i,n]of e.entries())t[n.group]=t[n.group]||[],t[n.group].push({code:i,src:(0,s.emojiUrlFor)(i)})
return t}()),"IntersectionObserver"in window&&(this._sectionObserver=this._setupSectionObserver())},didInsertElement(){this._super(...arguments),this.appEvents.on("emoji-picker:close",this,"onClose")},selectedDiversity:e=>e,_setup(){this.isActive?this.onShow():this.onClose()},willDestroyElement(){this._super(...arguments),this._sectionObserver&&this._sectionObserver.disconnect(),this.appEvents.off("emoji-picker:close",this,"onClose")},onShow(){this.set("recentEmojis",this.emojiStore.favorites),(0,a.schedule)("afterRender",(()=>{this._applyFilter(this.initialFilter),document.addEventListener("click",this.handleOutsideClick)
const e=document.querySelector(".emoji-picker")
if(!e)return
const t=this._getPopperAnchor()
if(!this.site.isMobileDevice&&this.usePopper&&t){const i=[{name:"preventOverflow"},{name:"offset",options:{offset:[5,5]}}]
"auto"===this.placement&&window.innerWidth<2*t.clientWidth&&i.push({name:"computeStyles",enabled:!0,fn(e){let{state:t}=e
return t.styles.popper={...t.styles.popper,position:"fixed",left:(window.innerWidth-t.rects.popper.width)/2+"px",top:"50%",transform:"translateY(-50%)"},t}}),this._popper=(0,c.createPopper)(t,e,{placement:this.placement})}(0,u.default)((()=>{(0,a.schedule)("afterRender",(()=>{if(!this.site.isMobileDevice||this.isEditorFocused){const t=e.querySelector("input.filter")
t&&t.focus(),this._sectionObserver&&e.querySelectorAll(".emojis-container .section .section-header").forEach((e=>this._sectionObserver.observe(e)))}0!==this.selectedDiversity&&this._applyDiversity(this.selectedDiversity)}))}),50)}))},onClose(e){e?.stopPropagation(),document.removeEventListener("click",this.handleOutsideClick),this.onEmojiPickerClose&&this.onEmojiPickerClose(e)},diversityScales:(0,n.computed)("selectedDiversity",(function(){return["default","light","medium-light","medium","medium-dark","dark"].map(((e,t)=>({name:e,title:`emoji_picker.${(0,m.underscore)(e)}_tone`,icon:t+1===this.selectedDiversity?"check":""})))})),onClearRecent(){this.emojiStore.favorites=[],this.set("recentEmojis",[])},onDiversitySelection(e){const t=e+1
this.emojiStore.diversity=t,this._applyDiversity(t)},onEmojiHover(e){const t=e.target
if(!t.classList.contains("emoji")||"IMG"!==t.tagName)return!1
this._updateEmojiPreview(e.target.title)},onEmojiSelection(e){const t=e.target
if(!t.classList.contains("emoji")||"IMG"!==t.tagName)return!1
let i=e.target.title
i=this._codeWithDiversity(i,this.selectedDiversity),this.emojiSelected(i),this._trackEmojiUsage(i,{refresh:!t.parentNode.parentNode.classList.contains("recent")}),this.site.isMobileDevice&&this.onClose(e)},onCategorySelection(e,t){t?.preventDefault()
const i=document.querySelector(`.emoji-picker-emoji-area .section[data-section="${e}"]`)
i&&i.scrollIntoView()},keydown(e){const t=document.querySelectorAll(".emoji-picker-emoji-area .emoji")
let i
if("ArrowDown"===e.key&&this._focusedOn(this.elements.searchInput))return this._updateEmojiPreview(t[0].title),t[0].focus(),e.preventDefault(),!1
if("Escape"===e.key){this.onClose(e)
const t=e.path||e.composedPath&&e.composedPath(),i=t.find((e=>e?.classList?.contains("chat-composer-container")))
return t.find((e=>e?.classList?.contains("d-editor")))?document.querySelector(".d-editor-input")?.focus():i?document.querySelector(".chat-composer__input")?.focus():document.querySelector("textarea")?.focus(),!1}if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(e.key)){if(!this._focusedOn(this.elements.picker))return
if(Array.from(t).find(((t,n)=>(i=n,t.isEqualNode(e.target)))),"ArrowRight"===e.key){let e=i+1
e<t.length?(this._updateEmojiPreview(t[e].title),t[e].focus()):e>=t.length&&(this._updateEmojiPreview(t[0].title),t[0].focus())}if("ArrowLeft"===e.key){const e=i-1
i>0&&(this._updateEmojiPreview(t[e].title),t[e].focus())}const n=t[i]
if("ArrowDown"===e.key){const e=[...t].filter((e=>e.offsetTop>n.offsetTop)).find((e=>e.offsetLeft===n.offsetLeft))
this._updateEmojiPreview(e.title),e?.focus()}if("ArrowUp"===e.key){const e=[...t].reverse().filter((e=>e.offsetTop<n.offsetTop)).find((e=>e.offsetLeft===n.offsetLeft))
e?(this._updateEmojiPreview(e.title),e.focus()):(this.set("hoveredEmoji",null),document.querySelector(this.elements.searchInput).focus())}return e.preventDefault(),!1}if("Enter"===e.key){if(!this._focusedOn(".emoji"))return
return this.onEmojiSelection(e),this.onClose(e),e.preventDefault(),!1}},onFilterChange(e){this._applyFilter(e.target.value)},_focusedOn:e=>document.activeElement.closest(e)?document.activeElement:null,_applyFilter(e){const t=document.querySelector(".emoji-picker"),i=document.querySelector(".emoji-picker-emoji-area .results")
i.innerHTML="",e?(i.innerHTML=(0,o.emojiSearch)(e.toLowerCase(),{diversity:this.emojiStore.diversity,exclude:this.site.denied_emojis}).map(this._replaceEmoji).join(""),t.classList.add("has-filter"),i.scrollIntoView()):t.classList.remove("has-filter")},_trackEmojiUsage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
this.emojiStore.track(e),t.refresh&&this.set("recentEmojis",[...this.emojiStore.favorites])},_replaceEmoji(e){const t=(0,s.emojiUnescape)(`:${(0,l.escapeExpression)(e)}:`,{lazy:!0,tabIndex:"0"})
return(0,d.htmlSafe)(t)},_codeWithDiversity:(e,t)=>/:t\d/.test(e)?e:t>1&&(0,o.isSkinTonableEmoji)(e)?`${e}:t${t}`:e,_applyDiversity(e){const t=document.querySelector(".emoji-picker-emoji-area")
t&&t.querySelectorAll(".emoji.diversity").forEach((t=>{const i=this._codeWithDiversity(t.title,e)
t.src=(0,s.emojiUrlFor)(i)}))},_setupSectionObserver:()=>new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.parentNode.dataset.section,i=document.querySelector(".emoji-picker .emoji-picker-category-buttons")
if(!i)return
const n=i.querySelector(`.category-button[data-section="${t}"]`)
i.querySelectorAll(".category-button").forEach((e=>e.classList.remove("current"))),n&&n.classList.add("current")}}))}),{threshold:1}),_getPopperAnchor:()=>document.querySelector(".emoji-picker-anchor")??document.querySelector(".d-editor-textarea-wrapper"),_updateEmojiPreview(e){return this.set("hoveredEmoji",this._codeWithDiversity(e,this.selectedDiversity))},handleOutsideClick(e){const t=document.querySelector(".emoji-picker")
t&&!t.contains(e.target)&&this.onClose(e)}},b(g,"selectedDiversity",[h],Object.getOwnPropertyDescriptor(g,"selectedDiversity"),g),b(g,"_setup",[f],Object.getOwnPropertyDescriptor(g,"_setup"),g),b(g,"onShow",[n.action],Object.getOwnPropertyDescriptor(g,"onShow"),g),b(g,"onClose",[n.action],Object.getOwnPropertyDescriptor(g,"onClose"),g),b(g,"onClearRecent",[n.action],Object.getOwnPropertyDescriptor(g,"onClearRecent"),g),b(g,"onDiversitySelection",[n.action],Object.getOwnPropertyDescriptor(g,"onDiversitySelection"),g),b(g,"onEmojiHover",[n.action],Object.getOwnPropertyDescriptor(g,"onEmojiHover"),g),b(g,"onEmojiSelection",[n.action],Object.getOwnPropertyDescriptor(g,"onEmojiSelection"),g),b(g,"onCategorySelection",[n.action],Object.getOwnPropertyDescriptor(g,"onCategorySelection"),g),b(g,"keydown",[n.action],Object.getOwnPropertyDescriptor(g,"keydown"),g),b(g,"onFilterChange",[n.action],Object.getOwnPropertyDescriptor(g,"onFilterChange"),g),b(g,"handleOutsideClick",[r.bind],Object.getOwnPropertyDescriptor(g,"handleOutsideClick"),g),g)))
e.default=_})),define("discourse/components/emoji-uploader",["exports","@ember/component","@ember/template-factory","I18n","@ember/utils","discourse/mixins/uppy-upload","@ember/object","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r,o,s,l,a){var u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"8MGvt300",block:'[[[10,0],[14,0,"emoji-uploader form-horizontal"],[12],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,1],[14,0,"label"],[12],[1,"\\n      "],[1,[28,[35,0],["admin.emoji.name"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"input"],[12],[1,"\\n      "],[8,[39,1],[[24,1,"emoji-name"],[24,3,"name"],[16,"placeholder",[28,[37,0],["admin.emoji.name"],null]],[4,[38,3],["input",[28,[37,4],[[30,0],[28,[37,5],[[30,0,["name"]]],null]],[["value"],["target.value"]]]],null]],[["@value"],[[28,[37,2],[[30,0,["name"]]],null]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,1],[14,0,"label"],[12],[1,"\\n      "],[1,[28,[35,0],["admin.emoji.group"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"input"],[12],[1,"\\n      "],[8,[39,6],null,[["@name","@id","@value","@content","@onChange","@valueProperty","@nameProperty","@options"],["group","emoji-group-selector",[30,0,["group"]],[30,0,["newEmojiGroups"]],[28,[37,4],[[30,0],"createEmojiGroup"],null],null,null,[28,[37,7],null,[["allowAny"],[true]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,0],[14,0,"input"],[12],[1,"\\n      "],[10,"input"],[14,0,"hidden-upload-field"],[15,"disabled",[30,0,["uploading"]]],[14,"multiple","true"],[14,"accept",".png,.gif"],[14,4,"file"],[12],[13],[1,"\\n      "],[8,[39,8],null,[["@class","@translatedLabel","@icon","@action","@disabled"],["btn-primary",[30,0,["buttonLabel"]],"plus",[28,[37,4],[[30,0],"chooseFiles"],null],[30,0,["uploading"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","input","readonly","on","action","mut","combo-box","hash","d-button"]]',moduleName:"discourse/components/emoji-uploader.hbs",isStrictMode:!1}),h="default"
var f=(0,t.setComponentTemplate)(m,t.default.extend(o.default,(u=(0,l.default)("uploading","uploadProgress"),c=(0,l.default)("uploading"),d={type:"emoji",uploadUrl:"/admin/customize/emojis",hasName:(0,a.notEmpty)("name"),hasGroup:(0,a.notEmpty)("group"),group:"default",emojiGroups:null,newEmojiGroups:null,tagName:null,preventDirectS3Uploads:!0,didReceiveAttrs(){this._super(...arguments),this.set("newEmojiGroups",this.emojiGroups)},createEmojiGroup(e){let t=this.newEmojiGroups
e!==h&&(t=this.emojiGroups.concat([e]).uniq()),this.setProperties({newEmojiGroups:t,group:e})},_perFileData(){const e={}
return(0,r.isEmpty)(this.name)||(e.name=this.name,this.set("name",null)),(0,r.isEmpty)(this.group)||this.group===h||(e.group=this.group),e},validateUploadedFilesOptions:()=>({imagesOnly:!0}),uploadDone(e){this.done(e,this.group),this.set("name",null)},chooseFiles(){this.fileInputEl.click()},buttonLabel:(e,t)=>e?`${n.default.t("admin.emoji.uploading")} ${t}%`:n.default.t("admin.emoji.add"),buttonIcon:e=>e?"spinner":"plus"},p(d,"createEmojiGroup",[s.action],Object.getOwnPropertyDescriptor(d,"createEmojiGroup"),d),p(d,"chooseFiles",[s.action],Object.getOwnPropertyDescriptor(d,"chooseFiles"),d),p(d,"buttonLabel",[u],Object.getOwnPropertyDescriptor(d,"buttonLabel"),d),p(d,"buttonIcon",[c],Object.getOwnPropertyDescriptor(d,"buttonIcon"),d),d)))
e.default=f})),define("discourse/components/empty-state",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"4aK7qGYk",block:'[[[10,0],[14,0,"empty-state-container"],[12],[1,"\\n  "],[10,0],[14,0,"empty-state"],[12],[1,"\\n    "],[10,1],[14,"data-test-title",""],[14,0,"empty-state-title"],[12],[1,[30,1]],[13],[1,"\\n    "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n      "],[10,2],[14,"data-test-body",""],[12],[1,[30,2]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["@title","@body"],false,[]]',moduleName:"discourse/components/empty-state.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/expand-post",["exports","@ember/component","@ember/template-factory","discourse/lib/ajax"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"ySzYa6KQ",block:'[[[41,[30,0,["item","truncated"]],[[[1,"  "],[10,3],[14,6,""],[15,0,[52,[30,0,["expanded"]],"collapse-item","expand-item"]],[15,"onclick",[28,[37,1],[[30,0],"toggleItem"],null]],[15,"title",[28,[37,2],["post.expand_collapse"],null]],[12],[1,"\\n"],[41,[30,0,["expanded"]],[[[1,"      "],[1,[28,[35,3],["chevron-up"],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,3],["chevron-down"],null]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],[],false,["if","action","i18n","d-icon"]]',moduleName:"discourse/components/expand-post.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({tagName:"",expanded:null,_loading:!1,actions:{toggleItem(){if(this._loading)return!1
const e=this.item
if(this.expanded)return this.set("expanded",!1),e.set("expandedExcerpt",null),!1
const t=e.get("topic_id"),i=e.get("post_number")
return this._loading=!0,(0,n.ajax)(`/posts/by_number/${t}/${i}.json`).then((t=>{this.set("expanded",!0),e.set("expandedExcerpt",t.cooked)})).finally((()=>this._loading=!1)),!1}}}))
e.default=o})),define("discourse/components/expanding-text-area",["exports","discourse-common/utils/decorators","@ember/legacy-built-in-components","discourse/lib/autosize","@ember/runloop"],(function(e,t,i,n,r){var o,s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=i.TextArea.extend((o=(0,t.on)("didInsertElement"),s=(0,t.observes)("value"),l=(0,t.on)("willDestroyElement"),u(a={_startWatching(){(0,r.schedule)("afterRender",(()=>{$(this.element).focus(),(0,n.default)(this.element)}))},_updateAutosize(){this.element.value=this.value
const e=document.createEvent("Event")
e.initEvent("autosize:update",!0,!1),this.element.dispatchEvent(e)},_disableAutosize(){n.default.destroy($(this.element))}},"_startWatching",[o],Object.getOwnPropertyDescriptor(a,"_startWatching"),a),u(a,"_updateAutosize",[s],Object.getOwnPropertyDescriptor(a,"_updateAutosize"),a),u(a,"_disableAutosize",[l],Object.getOwnPropertyDescriptor(a,"_disableAutosize"),a),a))
e.default=c})),define("discourse/components/featured-topic",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"3LpWP1hz",block:'[[[1,[28,[35,0],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n"],[10,3],[15,6,[30,0,["topic","lastUnreadUrl"]]],[14,0,"title"],[12],[1,[28,[35,1],[[30,0,["topic","fancyTitle"]]],null]],[13],[1,"\\n"],[8,[39,2],null,[["@unreadPosts","@unseen","@url"],[[30,0,["topic","unread_posts"]],[30,0,["topic","unseen"]],[30,0,["topic","lastUnreadUrl"]]]],null],[1,"\\n\\n"],[10,3],[15,6,[30,0,["topic","lastPostUrl"]]],[14,0,"last-posted-at"],[12],[1,[28,[35,3],[[30,0,["topic","last_posted_at"]]],null]],[13]],[],false,["raw","html-safe","topic-post-badges","format-age"]]',moduleName:"discourse/components/featured-topic.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({classNameBindings:[":featured-topic"],attributeBindings:["topic.id:data-topic-id"],click(e){if(e.target.closest(".last-posted-at"))return this.appEvents.trigger("topic-entrance:show",{topic:this.topic,position:$(e.target).offset()}),!1}}))
e.default=r})),define("discourse/components/flag-action-type",["exports","@ember/component","@ember/template-factory","@ember/object/computed","I18n","discourse/models/post-action-type","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s){var l,a,u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"INCMEpb3",block:'[[[41,[30,0,["isNotifyUser"]],[[[1,"  "],[10,"h3"],[12],[1,[30,0,["formattedName"]]],[13],[1,"\\n  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[10,"label"],[14,0,"radio"],[12],[1,"\\n      "],[11,"input"],[16,1,[29,["radio_",[30,0,["flag","name_key"]]]]],[24,3,"post_action_type_index"],[24,4,"radio"],[4,[38,1],["click",[28,[37,2],[[30,0],"changePostActionType",[30,0,["flag"]]],null]],null],[12],[13],[1,"\\n\\n      "],[10,0],[14,0,"flag-action-type-details"],[12],[1,"\\n        "],[10,1],[14,0,"description"],[12],[1,[28,[35,3],[[30,0,["flag","description"]]],null]],[13],[1,"\\n"],[41,[30,0,["showMessageInput"]],[[[1,"          "],[8,[39,4],[[24,3,"message"],[24,0,"flag-message"],[16,"placeholder",[30,0,["customPlaceholder"]]],[16,"aria-label",[28,[37,5],["flagging.notify_user_textarea_label"],null]]],[["@value"],[[30,0,["message"]]]],null],[1,"          "],[10,0],[15,0,[29,["custom-message-length ",[30,0,["customMessageLengthClasses"]]]]],[12],[1,[30,0,["customMessageLength"]]],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["staffFlagsAvailable"]],[[[1,"    "],[10,"hr"],[12],[13],[1,"\\n    "],[10,"h3"],[12],[1,[28,[35,5],["flagging.notify_staff"],null]],[13],[1,"\\n"]],[]],null]],[]],[[[1,"  "],[10,0],[15,0,[29,["controls ",[30,0,["flag","name_key"]]]]],[12],[1,"\\n    "],[10,"label"],[14,0,"radio"],[12],[1,"\\n      "],[11,"input"],[16,1,[29,["radio_",[30,0,["flag","name_key"]]]]],[24,3,"post_action_type_index"],[24,4,"radio"],[4,[38,1],["click",[28,[37,2],[[30,0],"changePostActionType",[30,0,["flag"]]],null]],null],[12],[13],[1,"\\n      "],[10,0],[14,0,"flag-action-type-details"],[12],[1,"\\n        "],[10,"strong"],[12],[1,[30,0,["formattedName"]]],[13],[1,"\\n"],[41,[30,0,["showDescription"]],[[[1,"          "],[10,0],[14,0,"description"],[12],[1,[28,[35,3],[[30,0,["description"]]],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["showMessageInput"]],[[[1,"          "],[8,[39,4],[[24,3,"message"],[24,0,"flag-message"],[16,"placeholder",[30,0,["customPlaceholder"]]],[16,"aria-label",[28,[37,5],["flagging.notify_moderators_textarea_label"],null]]],[["@value"],[[30,0,["message"]]]],null],[1,"          "],[10,0],[15,0,[29,["custom-message-length ",[30,0,["customMessageLengthClasses"]]]]],[12],[1,[30,0,["customMessageLength"]]],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],[],false,["if","on","action","html-safe","textarea","i18n"]]',moduleName:"discourse/components/flag-action-type.hbs",isStrictMode:!1})
var g=(0,t.setComponentTemplate)(f,t.default.extend((l=(0,s.default)("flag.name_key"),a=(0,s.default)("flag.name","flag.name_key","flag.is_custom_flag","username"),u=(0,s.default)("flag","selectedFlag"),c=(0,s.default)("flag.description","flag.short_description"),d=(0,s.default)("message.length"),p=(0,s.default)("message.length"),h(m={classNames:["flag-action-type"],customPlaceholder:e=>r.default.t("flagging.custom_placeholder_"+e),formattedName:(e,t,i,n)=>i?e.replace(/{{username}}|%{username}/,n):r.default.t("flagging.formatted_name."+t),selected:(e,t)=>e===t,showMessageInput:(0,n.and)("flag.is_custom_flag","selected"),showDescription:(0,n.not)("showMessageInput"),isNotifyUser:(0,n.equal)("flag.name_key","notify_user"),description(e,t){return this.site.mobileView?t:e},customMessageLengthClasses(e){return e<this.siteSettings.min_personal_message_post_length?"too-short":"ok"},customMessageLength(e){const t=e||0,i=this.siteSettings.min_personal_message_post_length
return 0===t?r.default.t("flagging.custom_message.at_least",{count:i}):t<i?r.default.t("flagging.custom_message.more",{count:i-t}):r.default.t("flagging.custom_message.left",{count:o.MAX_MESSAGE_LENGTH-t})},actions:{changePostActionType(e){this.changePostActionType(e)}}},"customPlaceholder",[l],Object.getOwnPropertyDescriptor(m,"customPlaceholder"),m),h(m,"formattedName",[a],Object.getOwnPropertyDescriptor(m,"formattedName"),m),h(m,"selected",[u],Object.getOwnPropertyDescriptor(m,"selected"),m),h(m,"description",[c],Object.getOwnPropertyDescriptor(m,"description"),m),h(m,"customMessageLengthClasses",[d],Object.getOwnPropertyDescriptor(m,"customMessageLengthClasses"),m),h(m,"customMessageLength",[p],Object.getOwnPropertyDescriptor(m,"customMessageLength"),m),m)))
e.default=g})),define("discourse/components/flag-selection",["exports","@ember/component","@ember/template-factory","@ember/runloop","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"US7eVXzz",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["flags"]]],null]],null],null,[[[1,"  "],[18,2,[[30,1]]],[1,"\\n"]],[1]],[[[1,"  "],[1,[28,[35,3],["flagging.cant"],null]],[1,"\\n"]],[]]]],["f","&default"],false,["each","-track-array","yield","i18n"]]',moduleName:"discourse/components/flag-selection.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((o=(0,r.observes)("nameKey"),a=s={_selectRadio(){this.element.querySelector("input[type='radio']").checked=!1
const e=this.nameKey
if(!e)return
const t=this.element.querySelector("#radio_"+e)
t&&(t.checked="true")},selectedChanged(){(0,n.next)(this,this._selectRadio)}},u="selectedChanged",c=[o],d=Object.getOwnPropertyDescriptor(s,"selectedChanged"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/flat-button",["exports","@ember/component","@ember/template-factory","I18n","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"Y4OXmcyw",block:'[[[1,[28,[35,0],[[30,0,["icon"]]],null]]],[],false,["d-icon"]]',moduleName:"discourse/components/flat-button.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((o=(0,r.default)("title"),a=s={tagName:"button",classNames:["btn-flat"],attributeBindings:["disabled","translatedTitle:title"],translatedTitle(e){if(e)return n.default.t(e)},keyDown(e){if("Enter"===e.key)return this.action?.(),!1},click(){return this.action?.(),!1}},u="translatedTitle",c=[o],d=Object.getOwnPropertyDescriptor(s,"translatedTitle"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/footer-message",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"GDfczIhQ",block:'[[[41,[30,0,["education"]],[[[10,0],[14,0,"education"],[12],[1,[28,[35,1],[[30,0,["education"]]],null]],[13]],[]],null],[1,"\\n"],[10,"h3"],[12],[1,"\\n  "],[1,[30,0,["message"]]],[1,"\\n  "],[18,1,null],[1,"\\n"],[13]],["&default"],false,["if","html-safe","yield"]]',moduleName:"discourse/components/footer-message.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({classNames:["footer-message"]}))
e.default=r})),define("discourse/components/footer-nav",["exports","discourse/lib/utilities","discourse/mixins/mobile-scroll-direction","discourse/components/mount-widget","discourse/mixins/scrolling","discourse-common/utils/decorators","@ember/runloop"],(function(e,t,i,n,r,o,s){var l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=n.default.extend(r.default,i.default,(l=(0,o.observes)("mobileScrollDirection"),a=(0,o.observes)("currentRouteIndex"),u={widget:"footer-nav",mobileScrollDirection:null,scrollEventDisabled:!1,classNames:["footer-nav","visible"],routeHistory:[],currentRouteIndex:0,canGoBack:!1,canGoForward:!1,backForwardClicked:null,buildArgs(){return{canGoBack:this.canGoBack,canGoForward:this.canGoForward}},didInsertElement(){this._super(...arguments),this.appEvents.on("page:changed",this,"_routeChanged"),this.capabilities.isAppWebview&&(this.appEvents.on("modal:body-shown",this,"_modalOn"),this.appEvents.on("modal:body-dismissed",this,"_modalOff")),this.capabilities.isIpadOS?document.body.classList.add("footer-nav-ipad"):(this.bindScrolling(),window.addEventListener("resize",this.scrolled,!1),this.appEvents.on("composer:opened",this,"_composerOpened"),this.appEvents.on("composer:closed",this,"_composerClosed"),document.body.classList.add("footer-nav-visible"))},willDestroyElement(){this._super(...arguments),this.appEvents.off("page:changed",this,"_routeChanged"),this.capabilities.isAppWebview&&(this.appEvents.off("modal:body-shown",this,"_modalOn"),this.appEvents.off("modal:body-removed",this,"_modalOff")),this.capabilities.isIpadOS?document.body.classList.remove("footer-nav-ipad"):(this.unbindScrolling(),window.removeEventListener("resize",this.scrolled),this.appEvents.off("composer:opened",this,"_composerOpened"),this.appEvents.off("composer:closed",this,"_composerClosed"))},scrolled(){this.isDestroyed||this.isDestroying||"inDOM"!==this._state||this.scrollEventDisabled||(0,s.throttle)(this,this.calculateDirection,window.pageYOffset,150)},toggleMobileFooter(){this.element.classList.toggle("visible",null===this.mobileScrollDirection),document.body.classList.toggle("footer-nav-visible",null===this.mobileScrollDirection)},_routeChanged(e){this.backForwardClicked?this.backForwardClicked=null:(this.routeHistory.push(e.url),this.set("currentRouteIndex",this.routeHistory.length),this.queueRerender())},_composerOpened(){this.set("mobileScrollDirection","down"),this.set("scrollEventDisabled",!0)},_composerClosed(){this.set("mobileScrollDirection",null),this.set("scrollEventDisabled",!1)},_modalOn(){const e=document.querySelector(".modal-backdrop")
e&&(0,t.postRNWebviewMessage)("headerBg",getComputedStyle(e)["background-color"])},_modalOff(){const e=document.querySelector(".d-header")
e&&(0,t.postRNWebviewMessage)("headerBg",getComputedStyle(e)["background-color"])},goBack(){this.set("currentRouteIndex",this.currentRouteIndex-1),this.backForwardClicked=!0,window.history.back()},goForward(){this.set("currentRouteIndex",this.currentRouteIndex+1),this.backForwardClicked=!0,window.history.forward()},setBackForward(){let e=this.currentRouteIndex
this.set("canGoBack",!!(e>1||document.referrer)),this.set("canGoForward",e<this.routeHistory.length)}},c(u,"toggleMobileFooter",[l],Object.getOwnPropertyDescriptor(u,"toggleMobileFooter"),u),c(u,"setBackForward",[a],Object.getOwnPropertyDescriptor(u,"setBackForward"),u),u))
var p=d
e.default=p})),define("discourse/components/form-template-field/checkbox",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"aSdirxqi",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","checkbox"],[12],[1,"\\n  "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n    "],[8,[39,0],[[16,3,[30,1,["label"]]],[24,0,"form-template-field__checkbox"],[16,"required",[52,[30,2,["required"]],"required",""]]],[["@type"],["checkbox"]],null],[1,"\\n    "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"      "],[1,[28,[35,2],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@attributes","@validations"],false,["input","if","d-icon"]]',moduleName:"discourse/components/form-template-field/checkbox.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/form-template-field/dropdown",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"ZB/aKUA7",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","dropdown"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1,"    "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n      "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"        "],[1,[28,[35,1],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,"  "],[10,"select"],[15,3,[30,1,["label"]]],[14,0,"form-template-field__dropdown"],[15,"required",[52,[30,2,["required"]],"required",""]],[12],[1,"\\n"],[41,[30,1,["none_label"]],[[[1,"      "],[10,"option"],[14,0,"form-template-field__dropdown-placeholder"],[14,2,""],[14,"disabled",""],[14,"selected",""],[14,"hidden",""],[12],[1,[30,1,["none_label"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,3],[[28,[37,3],[[30,3]],null]],null],null,[[[1,"      "],[10,"option"],[15,2,[30,4]],[12],[1,[30,4]],[13],[1,"\\n"]],[4]],null],[1,"  "],[13],[1,"\\n"],[13]],["@attributes","@validations","@choices","choice"],false,["if","d-icon","each","-track-array"]]',moduleName:"discourse/components/form-template-field/dropdown.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/form-template-field/input",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"J62BMWnb",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","input"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1,"    "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n      "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"        "],[1,[28,[35,1],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n"]],[]],null],[1,"\\n  "],[8,[39,2],[[16,3,[30,1,["label"]]],[24,0,"form-template-field__input"],[16,"placeholder",[30,1,["placeholder"]]],[16,"required",[52,[30,2,["required"]],"required",""]],[16,"pattern",[30,2,["pattern"]]],[16,"minLength",[30,2,["min"]]],[16,"maxLength",[30,2,["max"]]]],[["@type"],[[52,[30,2,["type"]],[30,2,["type"]],"text"]]],null],[1,"\\n"],[13]],["@attributes","@validations"],false,["if","d-icon","input"]]',moduleName:"discourse/components/form-template-field/input.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o}))
define("discourse/components/form-template-field/multi-select",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"Fm6SqN95",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","multi-select"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1,"    "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n      "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"        "],[1,[28,[35,1],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,"  "],[10,"select"],[15,3,[30,1,["label"]]],[14,0,"form-template-field__multi-select"],[15,"required",[52,[30,2,["required"]],"required",""]],[14,"multiple","multiple"],[12],[1,"\\n"],[41,[30,1,["none_label"]],[[[1,"      "],[10,"option"],[14,0,"form-template-field__multi-select-placeholder"],[14,2,""],[14,"disabled",""],[14,"hidden",""],[12],[1,[30,1,["none_label"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,3],[[28,[37,3],[[30,3]],null]],null],null,[[[1,"      "],[10,"option"],[15,2,[30,4]],[12],[1,[30,4]],[13],[1,"\\n"]],[4]],null],[1,"  "],[13],[1,"\\n"],[13]],["@attributes","@validations","@choices","choice"],false,["if","d-icon","each","-track-array"]]',moduleName:"discourse/components/form-template-field/multi-select.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/form-template-field/textarea",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"rTM6WnKy",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","textarea"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1,"    "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n      "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"        "],[1,[28,[35,1],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"  "],[8,[39,2],[[16,3,[30,1,["label"]]],[24,0,"form-template-field__textarea"],[16,"placeholder",[30,1,["placeholder"]]],[16,"pattern",[30,2,["pattern"]]],[16,"minLength",[30,2,["min"]]],[16,"maxLength",[30,2,["max"]]],[16,"required",[52,[30,2,["required"]],"required",""]]],null,null],[1,""],[13]],["@attributes","@validations"],false,["if","d-icon","textarea"]]',moduleName:"discourse/components/form-template-field/textarea.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/form-template-field/upload",["exports","@ember/component","@ember/template-factory","discourse/mixins/uppy-upload","@ember/object","@glimmer/tracking","@ember/string","discourse/lib/uploads"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p,m,h,f,g
function b(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function y(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const _=(0,i.createTemplateFactory)({id:"sPLGtWlm",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","upload"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1,"    "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n      "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"        "],[1,[28,[35,1],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"input"],[15,3,[30,1,["label"]]],[15,2,[30,0,["uploadValue"]]],[14,4,"hidden"],[12],[13],[1,"\\n\\n  "],[8,[39,2],null,[["@fileInputClass","@fileInputId","@allowMultiple","@showButton","@onFilesPicked","@icon","@label","@fileInputDisabled","@acceptedFormatsOverride","@acceptedFileTypesString"],["form-template-field__upload",[30,0,["fileUploadElementId"]],[30,1,["allow_multiple"]],true,true,"upload",[30,0,["uploadStatus"]],[30,0,["disabled"]],[30,1,["file_types"]],[30,1,["file_types"]]]],null],[1,"\\n\\n"],[41,[30,0,["uploadedFiles"]],[[[1,"    "],[10,"ul"],[14,0,"form-template-field__uploaded-files"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["uploadedFiles"]]],null]],null],null,[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[1,[28,[35,1],["file"],null]],[1,"\\n          "],[10,3],[15,6,[30,3,["url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,3,["file_name"]]],[13],[1,"\\n          "],[10,1],[12],[1,[30,3,["human_filesize"]]],[13],[1,"\\n        "],[13],[1,"\\n"]],[3]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[13]],["@attributes","@validations","file"],false,["if","d-icon","pick-files-button","each","-track-array"]]',moduleName:"discourse/components/form-template-field/upload.hbs",isStrictMode:!1})
let v=(a=(0,r.computed)("uploading","uploadValue"),u=class extends(t.default.extend(n.default)){constructor(){super(...arguments),b(this,"uploadValue",c,this),b(this,"uploadComplete",d,this),b(this,"uploadedFiles",p,this),b(this,"disabled",m,this),b(this,"fileUploadElementId",h,this),b(this,"fileInputSelector",f,this),b(this,"id",g,this)}get uploadStatus(){return this.uploading||this.uploadValue?!this.uploading&&this.uploadValue?(this.uploadComplete=!0,"upload"):"uploading":"upload"}uploadDone(e){this.uploadComplete&&(this.uploadedFiles=[],this.uploadValue="")
const t=this.buildMarkdown(e)
this.uploadedFiles.pushObject(e),this.uploadValue&&this.allowMultipleFiles?this.uploadValue=`${this.uploadValue}\n${t}`:this.uploadValue=t}buildMarkdown(e){return(0,l.isImage)(e.url)?`![${e.file_name}|${e.width}x${e.height}](${e.short_url})`:(0,l.isAudio)(e.url)?`![${e.file_name}|audio](${e.short_url})`:(0,l.isVideo)(e.url)?`![${e.file_name}|video](${e.short_url})`:`[${e.file_name}|attachment](${e.short_url}) (${e.human_filesize})`}},c=y(u.prototype,"uploadValue",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=y(u.prototype,"uploadComplete",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=y(u.prototype,"uploadedFiles",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=y(u.prototype,"disabled",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.uploading}}),h=y(u.prototype,"fileUploadElementId",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.attributes?.label?`${(0,s.dasherize)(this.attributes.label)}-uploader`:`${this.elementId}-uploader`}}),f=y(u.prototype,"fileInputSelector",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`#${this.fileUploadElementId}`}}),g=y(u.prototype,"id",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.fileUploadElementId}}),y(u.prototype,"uploadStatus",[a],Object.getOwnPropertyDescriptor(u.prototype,"uploadStatus"),u.prototype),u)
e.default=v,(0,t.setComponentTemplate)(_,v)})),define("discourse/components/form-template-field/wrapper",["exports","@ember/component","@ember/template-factory","@glimmer/component","js-yaml","@glimmer/tracking","discourse/models/form-template","@ember/object"],(function(e,t,i,n,r,o,s,l){var a,u,c
function d(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"qfM/v4t8",block:'[[[41,[30,0,["parsedTemplate"]],[[[1,"  "],[11,0],[24,0,"form-template-form__wrapper"],[4,[38,1],[[30,0,["refreshTemplate"]],[30,1]],null],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["parsedTemplate"]]],null]],null],null,[[[1,"      "],[46,[28,[37,5],["form-template-field/",[30,2,["type"]]],null],null,[["attributes","choices","validations"],[[30,2,["attributes"]],[30,2,["choices"]],[30,2,["validations"]]]],null],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n    "],[1,[30,0,["error"]]],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["@id","content"],false,["if","did-update","each","-track-array","component","concat"]]',moduleName:"discourse/components/form-template-field/wrapper.hbs",isStrictMode:!1})
let h=(a=class extends n.default{constructor(){super(...arguments),d(this,"error",u,this),d(this,"parsedTemplate",c,this),this.args.content?this._loadTemplate(this.args.content):this.args.id&&this._fetchTemplate(this.args.id)}_loadTemplate(e){try{this.parsedTemplate=r.default.load(e)}catch(t){this.error=t}}refreshTemplate(){if(!Array.isArray(this.args?.id)||0!==this.args?.id.length)return this._fetchTemplate(this.args.id)}async _fetchTemplate(e){const t=await s.default.findById(e),i=await t.form_template.template
return this._loadTemplate(i)}},u=p(a.prototype,"error",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=p(a.prototype,"parsedTemplate",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p(a.prototype,"refreshTemplate",[l.action],Object.getOwnPropertyDescriptor(a.prototype,"refreshTemplate"),a.prototype),a)
e.default=h,(0,t.setComponentTemplate)(m,h)})),define("discourse/components/future-date-input",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/object/computed","I18n","select-kit/components/future-date-input-selector","discourse-common/utils/decorators","discourse/lib/time-shortcut"],(function(e,t,i,n,r,o,s,l,a){var u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"h88ZSmfg",block:'[[[10,0],[14,0,"future-date-input"],[12],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[15,0,[30,0,["labelClasses"]]],[12],[1,"\\n      "],[41,[30,0,["displayLabelIcon"]],[[[1,[28,[35,1],[[30,0,["displayLabelIcon"]]],null]]],[]],null],[1,[30,0,["displayLabel"]]],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,2],null,[["@value","@content","@clearable","@onChangeInput","@onChange","@options"],[[28,[37,3],[[30,0,["selection"]]],null],[30,0,["shortcuts"]],[30,0,["clearable"]],[30,0,["onChangeInput"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["selection"]]],null]],null],[28,[37,6],null,[["none"],["time_shortcut.select_timeframe"]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["displayDateAndTimePicker"]],[[[1,"    "],[10,0],[14,0,"control-group future-date-input-date-picker"],[12],[1,"\\n      "],[1,[28,[35,1],["calendar-alt"],null]],[1,"\\n      "],[8,[39,7],null,[["@value","@defaultDate","@onSelect"],[[30,0,["_date"]],[30,0,["_date"]],[28,[37,4],[[30,0],"onChangeDate"],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group future-date-input-time-picker"],[12],[1,"\\n      "],[1,[28,[35,1],["far-clock"],null]],[1,"\\n      "],[8,[39,8],[[24,"placeholder","--:--"],[24,0,"time-input"],[16,"disabled",[30,0,["timeInputDisabled"]]],[4,[38,9],["input",[28,[37,4],[[30,0],"onChangeTime"],[["value"],["target.value"]]]],null]],[["@type","@value"],["time",[30,0,["_time"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["if","d-icon","future-date-input-selector","readonly","action","mut","hash","date-picker-future","input","on"]]',moduleName:"discourse/components/future-date-input.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend((u=(0,l.default)("customShortcuts"),c={selection:null,includeDateTime:!0,isCustom:(0,r.equal)("selection","custom"),displayDateAndTimePicker:(0,r.and)("includeDateTime","isCustom"),displayLabel:null,labelClasses:null,timeInputDisabled:(0,r.empty)("_date"),userTimezone:null,onChangeInput:null,_date:null,_time:null,init(){this._super(...arguments),this.userTimezone=this.currentUser.user_option.timezone},didReceiveAttrs(){if(this._super(...arguments),this.label&&this.set("displayLabel",o.default.t(this.label)),this.input){const e=moment(this.input),t=this._findClosestShortcut(e)
t?this.set("selection",t.id):this.setProperties({selection:a.TIME_SHORTCUT_TYPES.CUSTOM,_date:e.format("YYYY-MM-DD"),_time:e.format("HH:mm")})}},shortcuts(e){let t
t=e&&e.length?e:(0,a.extendedDefaultTimeShortcuts)(this.userTimezone)
const i=(0,a.timeShortcuts)(this.userTimezone)
return this.includeDateTime&&t.push(i.custom()),this.includeNow&&t.push(i.now()),t=(0,a.hideDynamicTimeShortcuts)(t,this.userTimezone,this.siteSettings),t.map((e=>({id:e.id,name:o.default.t(e.label),time:e.time,timeFormatted:(0,a.formatTime)(e),icon:e.icon})))},onChangeDate(e){e||this.set("_time",null),this._dateTimeChanged(e,this._time)},onChangeTime(e){this._date&&this._dateTimeChanged(this._date,e)},_dateTimeChanged(e,t){t=t?` ${t}`:""
const i=moment(`${e}${t}`)
i.isValid()?this.onChangeInput?.(i.format(s.FORMAT)):this.onChangeInput?.(null)},_findClosestShortcut(e){return this.shortcuts.find((t=>{if(t.time){const i=t.time.diff(e)
return 0<=i&&i<6e4}}))}},d(c,"shortcuts",[u],Object.getOwnPropertyDescriptor(c,"shortcuts"),c),d(c,"onChangeDate",[n.action],Object.getOwnPropertyDescriptor(c,"onChangeDate"),c),d(c,"onChangeTime",[n.action],Object.getOwnPropertyDescriptor(c,"onChangeTime"),c),c)))
e.default=m})),define("discourse/components/generated-invite-link",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"cN5BYJjK",block:'[[[10,2],[12],[1,[28,[35,0],["user.invited.link_generated"],null]],[13],[1,"\\n"],[10,2],[12],[1,"\\n  "],[10,"input"],[15,2,[30,0,["link"]]],[14,0,"invite-link-input"],[14,4,"text"],[12],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["email"]],[[[1,"  "],[10,2],[12],[1,[28,[35,0],["user.invited.valid_for"],[["email"],[[30,0,["email"]]]]]],[13],[1,"\\n"]],[]],null]],[],false,["i18n","if"]]',moduleName:"discourse/components/generated-invite-link.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({didInsertElement(){this._super(...arguments)
const e=this.element.querySelector(".invite-link-input")
e.focus(),e.select()}}))
e.default=r})),define("discourse/components/glimmer-component-with-deprecated-parent-view",["exports","@glimmer/component","@glimmer/manager","@glimmer/component/-private/ember-component-manager","@glimmer/reference"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class o extends i.CustomComponentManager{create(e,t,i,n,o,s){const l=super.create(...arguments)
return l.component.parentView=o.view,o.view=l.component,l.component._target=(0,r.valueForRef)(s),l}getCapabilities(){return{...super.getCapabilities(),createCaller:!0}}}class s extends t.default{}e.default=s,(0,i.setInternalComponentManager)(new o((e=>new n.default(e))),s)})),define("discourse/components/global-notice",["exports","@ember/component","@ember/template-factory","@ember/object","discourse/lib/cookie","I18n","discourse-common/utils/decorators","@ember/template","@ember/service"],(function(e,t,i,n,r,o,s,l,a){var u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addGlobalNotice=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
m.push(f.create({text:e,id:t,options:i}))},e.default=void 0
const p=(0,i.createTemplateFactory)({id:"mNSdtos2",block:'[[[10,0],[14,0,"global-notice"],[12],[1,"\\n"],[41,[30,0,["visible"]],[[[42,[28,[37,2],[[28,[37,2],[[30,0,["notices"]]],null]],null],null,[[[1,"      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[10,0],[15,1,[29,["global-notice-",[30,1,["id"]]]]],[15,0,[29,["alert alert-",[30,1,["options","level"]]," ",[30,1,["id"]]]]],[12],[1,"\\n"],[41,[30,1,["options","html"]],[[[1,"            "],[1,[28,[35,3],[[30,1,["options","html"]]],null]],[1,"\\n"]],[]],null],[1,"\\n          "],[10,1],[14,0,"text"],[12],[1,[28,[35,3],[[30,1,["text"]]],null]],[13],[1,"\\n\\n"],[41,[30,1,["options","dismissable"]],[[[1,"            "],[8,[39,4],null,[["@class","@icon","@action","@actionParam"],["btn-flat close","times",[28,[37,5],[[30,0],"dismissNotice"],null],[30,1]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[1]],null]],[]],null],[13]],["notice"],false,["if","each","-track-array","html-safe","d-button","action"]]',moduleName:"discourse/components/global-notice.hbs",isStrictMode:!1}),m=[]
const h="dismissed-global-notice-v2",f=n.default.extend({logsNoticeService:(0,a.inject)("logsNotice"),text:null,id:null,options:null,init(){this._super(...arguments)
this.options=this.set("options",Object.assign({dismissable:!1,html:null,level:"info",persistentDismiss:!0,onDismiss:null,visibility:null,dismissDuration:null},this.options||{}))}})
var g=(0,t.setComponentTemplate)(p,t.default.extend((u=(0,s.default)("site.isReadOnly","site.isStaffWritesOnly","siteSettings.login_required","siteSettings.disable_emails","siteSettings.global_notice","session.safe_mode","logNotice.{id,text,hidden}"),c={tagName:"",router:(0,a.inject)(),logsNoticeService:(0,a.inject)("logsNotice"),logNotice:null,init(){this._super(...arguments),this.logsNoticeService.addObserver("hidden",this._handleLogsNoticeUpdate),this.logsNoticeService.addObserver("text",this._handleLogsNoticeUpdate)},willDestroyElement(){this._super(...arguments),this.logsNoticeService.removeObserver("text",this._handleLogsNoticeUpdate),this.logsNoticeService.removeObserver("hidden",this._handleLogsNoticeUpdate)},get visible(){return!this.router.currentRouteName.startsWith("wizard.")},notices(e,t,i,n,s,l,a){let u=[]
return"1"===(0,r.default)("dosp")&&((0,r.removeCookie)("dosp",{path:"/"}),u.push(f.create({text:i?o.default.t("forced_anonymous_login_required"):o.default.t("forced_anonymous"),id:"forced-anonymous"}))),l&&u.push(f.create({text:o.default.t("safe_mode.enabled"),id:"safe-mode"})),t?u.push(f.create({text:o.default.t("staff_writes_only_mode.enabled"),id:"alert-staff-writes-only"})):e&&u.push(f.create({text:o.default.t("read_only_mode.enabled"),id:"alert-read-only"})),"yes"===n?u.push(f.create({text:o.default.t("emails_are_disabled"),id:"alert-emails-disabled"})):"non-staff"===n&&u.push(f.create({text:o.default.t("emails_are_disabled_non_staff"),id:"alert-emails-disabled"})),s?.length>0&&u.push(f.create({text:s,id:"alert-global-notice"})),a&&u.push(a),u.concat(m).filter((e=>{if(e.options.visibility)return e.options.visibility(e)
const t=`${h}-${e.id}`,i=this.keyValueStore.get(t)
if(!i)return!0
if(!e.options.persistentDismiss)return!0
if(e.options.dismissDuration){const t=moment(i).add(e.options.dismissDuration)
return moment().isAfter(t)}return!1}))},dismissNotice(e){e.options.onDismiss&&e.options.onDismiss(e),e.options.persistentDismiss&&this.keyValueStore.set({key:`${h}-${e.id}`,value:moment().toISOString(!0)})
const t=document.getElementById(`global-notice-${e.id}`)
t&&(t.style.display="none")},_handleLogsNoticeUpdate(){const{logsNoticeService:e}=this,t=f.create({text:(0,l.htmlSafe)(this.logsNoticeService.message),id:"alert-logs-notice",options:{dismissable:!0,persistentDismiss:!1,visibility:()=>!e.hidden,onDismiss(){e.set("text","")}}})
this.set("logNotice",t)}},d(c,"notices",[u],Object.getOwnPropertyDescriptor(c,"notices"),c),d(c,"dismissNotice",[n.action],Object.getOwnPropertyDescriptor(c,"dismissNotice"),c),d(c,"_handleLogsNoticeUpdate",[s.bind],Object.getOwnPropertyDescriptor(c,"_handleLogsNoticeUpdate"),c),c)))
e.default=g})),define("discourse/components/google-icon",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"iJcU6ZHA",block:'[[[10,"svg"],[14,0,"fa d-icon d-icon-custom-google-oauth2 svg-icon"],[14,"viewBox","0 0 48 48"],[12],[10,"defs"],[12],[10,"path"],[14,1,"a"],[14,"d","M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"],[12],[13],[13],[10,"clipPath"],[14,1,"b"],[12],[10,"use"],[14,6,"#a"],[14,"overflow","visible"],[12],[13],[13],[10,"path"],[14,"clip-path","url(#b)"],[14,"fill","#FBBC05"],[14,"d","M0 37V11l17 13z"],[12],[13],[10,"path"],[14,"clip-path","url(#b)"],[14,"fill","#EA4335"],[14,"d","M0 11l17 13 7-6.1L48 14V0H0z"],[12],[13],[10,"path"],[14,"clip-path","url(#b)"],[14,"fill","#34A853"],[14,"d","M0 37l30-23 7.9 1L48 0v48H0z"],[12],[13],[10,"path"],[14,"clip-path","url(#b)"],[14,"fill","#4285F4"],[14,"d","M48 48L17 24l-4-3 35-10z"],[12],[13],[13]],[],false,[]]',moduleName:"discourse/components/google-icon.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/google-search",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse-common/utils/decorators","discourse-common/lib/get-url"],(function(e,t,i,n,r,o){var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"g2bohitX",block:'[[[10,"form"],[14,"action","//google.com/search"],[14,1,"google-search"],[14,0,"inline-form"],[12],[1,"\\n  "],[10,"input"],[14,3,"q"],[15,"aria-label",[28,[37,0],["search.search_google"],null]],[15,2,[30,0,["searchTerm"]]],[14,4,"text"],[12],[13],[1,"\\n  "],[10,"input"],[14,3,"as_sitesearch"],[15,2,[30,0,["siteUrl"]]],[14,4,"hidden"],[12],[13],[1,"\\n  "],[10,"button"],[14,0,"btn btn-primary"],[14,4,"submit"],[12],[1,[28,[35,0],["search.search_google_button"],null]],[13],[1,"\\n"],[13]],[],false,["i18n"]]',moduleName:"discourse/components/google-search.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((s={classNames:["google-search-form"],classNameBindings:["hidden:hidden"],hidden:(0,n.alias)("siteSettings.login_required"),siteUrl:()=>`${location.protocol}//${location.host}${(0,o.default)("/")}`},a=s,u="siteUrl",c=[r.default],d=Object.getOwnPropertyDescriptor(s,"siteUrl"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/group-activity-filter",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"BgR64wzx",block:'[[[8,[39,0],null,[["@route","@query"],[[28,[37,1],["group.activity.",[30,0,["filter"]]],null],[28,[37,2],null,[["category_id"],[[30,0,["categoryId"]]]]]]],[["default"],[[[[1,"\\n  "],[1,[28,[35,3],[[28,[37,1],["groups.",[30,0,["filter"]]],null]],null]],[1,"\\n"]],[]]]]]],[],false,["link-to","concat","hash","i18n"]]',moduleName:"discourse/components/group-activity-filter.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:"li"}))
e.default=r})),define("discourse/components/group-card-contents",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/object/computed","discourse/mixins/card-contents-base","discourse/mixins/cleans-up","rsvp","discourse-common/utils/decorators","discourse/lib/url","discourse/lib/computed","discourse/lib/utilities"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f,g,b
function y(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const _=(0,i.createTemplateFactory)({id:"KjYrcb7p",block:'[[[41,[30,0,["visible"]],[[[1,"  "],[10,0],[14,0,"card-content"],[12],[1,"\\n"],[41,[30,0,["loading"]],[[[1,"      "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n        "],[10,0],[14,0,"group-card-avatar"],[12],[1,"\\n          "],[10,0],[14,0,"card-avatar-placeholder animated-placeholder placeholder-animation"],[12],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n        "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n        "],[10,0],[14,0,"group-card-avatar"],[12],[1,"\\n          "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"card-huge-avatar"],[4,[38,1],["click",[28,[37,2],[[30,0,["handleShowGroup"]],[30,0,["group"]]],null]],null],[12],[1,"\\n            "],[8,[39,3],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["group","name"]],[30,0,["group","flair_url"]],[30,0,["group","flair_bg_color"]],[30,0,["group","flair_color"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"names"],[12],[1,"\\n          "],[10,1],[12],[1,"\\n            "],[10,"h1"],[15,0,[30,0,["group","name"]]],[12],[1,"\\n              "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"group-page-link"],[4,[38,1],["click",[28,[37,2],[[30,0,["handleShowGroup"]],[30,0,["group"]]],null]],null],[12],[1,[30,0,["group","name"]]],[13],[1,"\\n            "],[13],[1,"\\n"],[41,[30,0,["group","full_name"]],[[[1,"              "],[10,"h2"],[14,0,"full-name"],[12],[1,[30,0,["group","full_name"]]],[13],[1,"\\n"]],[]],[[[1,"              "],[10,"h2"],[14,0,"username"],[12],[1,[30,0,["group","name"]]],[13],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"ul"],[14,0,"usercard-controls group-details-button"],[12],[1,"\\n          "],[10,"li"],[12],[1,"\\n            "],[8,[39,4],null,[["@model","@showLogin"],[[30,0,["group"]],[28,[37,5],["showLogin"],null]]],null],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["group","messageable"]],[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,6],null,[["@action","@class","@icon","@label"],[[28,[37,7],[[30,0],"messageGroup"],null],"btn-primary group-message-button inline","envelope","groups.message"]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["group","bio_excerpt"]],[[[1,"        "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n          "],[10,0],[14,0,"bio"],[12],[1,"\\n            "],[1,[28,[35,8],[[30,0,["group","bio_excerpt"]]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["group","members"]],[[[1,"        "],[10,0],[14,0,"card-row third-row"],[12],[1,"\\n          "],[10,0],[14,0,"members metadata"],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["group","members"]]],null]],null],null,[[[1,"              "],[11,3],[16,6,[30,1,["path"]]],[24,0,"card-tiny-avatar"],[4,[38,1],["click",[30,0,["close"]]],null],[12],[1,[28,[35,11],[[30,1],"tiny"],null]],[13],[1,"\\n"]],[1]],null],[41,[30,0,["showMoreMembers"]],[[[1,"              "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"more-members-link"],[4,[38,1],["click",[28,[37,2],[[30,0,["handleShowGroup"]],[30,0,["group"]]],null]],null],[12],[1,"\\n                "],[10,1],[14,0,"more-members-count"],[12],[1,"+"],[1,[30,0,["moreMembersCount"]]],[1,"\\n                  "],[1,[28,[35,12],["more"],null]],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],["user"],false,["if","on","fn","avatar-flair","group-membership-button","route-action","d-button","action","html-safe","each","-track-array","bound-avatar","i18n"]]',moduleName:"discourse/components/group-card-contents.hbs",isStrictMode:!1})
var v=(0,t.setComponentTemplate)(_,t.default.extend(o.default,s.default,(p=(0,a.default)("group.user_count","group.members.length"),m=(0,a.default)("group.name"),h=(0,a.default)("group"),f={elementId:"group-card",mentionSelector:"a.mention-group",classNames:["no-bg","group-card"],classNameBindings:["visible:show","showBadges","hasCardBadgeImage","isFixed:fixed","groupClass"],allowBackgrounds:(0,c.setting)("allow_profile_backgrounds"),showBadges:(0,c.setting)("enable_badges"),postStream:(0,r.alias)("topic.postStream"),showMoreMembers:(0,r.gt)("moreMembersCount",0),group:null,moreMembersCount:(e,t)=>e-t,groupClass:e=>e?`group-card-${e}`:"",groupPath:e=>(0,u.groupPath)(e.name),_showCallback(e,t){return this._positionCard(t),this.setProperties({visible:!0,loading:!0}),this.store.find("group",e).then((e=>(this.setProperties({group:e}),e.flair_url||e.flair_bg_color||e.set("flair_url","fa-users"),e.can_see_members&&e.members.length<10?e.reloadMembers({limit:10},!0):l.Promise.resolve()))).catch((()=>this._close())).finally((()=>this.set("loading",null)))},_close(){this.set("group",null),this._super(...arguments)},cleanUp(){this._close()},close(e){e?.preventDefault(),this._close()},handleShowGroup(e,t){if(t&&(0,d.modKeysPressed)(t).length>0)return!1
t?.preventDefault(),this.showGroup(e),this._close()},actions:{cancelFilter(){const e=this.postStream
e.cancelFilter(),e.refresh(),this._close()},messageGroup(){this.createNewMessageViaParams({recipients:this.get("group.name"),hasGroups:!0})},showGroup(e){this.handleShowGroup(e)}}},y(f,"moreMembersCount",[p],(g=(g=Object.getOwnPropertyDescriptor(f,"moreMembersCount"))?g.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return g}}),f),y(f,"groupClass",[m],(b=(b=Object.getOwnPropertyDescriptor(f,"groupClass"))?b.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return b}}),f),y(f,"groupPath",[h],Object.getOwnPropertyDescriptor(f,"groupPath"),f),y(f,"close",[n.action],Object.getOwnPropertyDescriptor(f,"close"),f),y(f,"handleShowGroup",[n.action],Object.getOwnPropertyDescriptor(f,"handleShowGroup"),f),f)))
e.default=v})),define("discourse/components/group-flair-inputs",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","I18n","@ember/object","discourse/lib/ajax","discourse-common/lib/icon-library","discourse-common/lib/debounce","discourse-common/lib/get-url"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f,g,b
function y(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const _=(0,i.createTemplateFactory)({id:"4wOAUhT8",block:'[[[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[14,"for","flair_url"],[12],[1,[28,[35,0],["groups.flair_url"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"radios"],[12],[1,"\\n    "],[10,"label"],[14,0,"radio-label"],[14,"for","avatar-flair-icon"],[12],[1,"\\n      "],[8,[39,1],null,[["@name","@id","@value","@selection"],["avatar-flair-icon","avatar-flair-icon","icon",[30,0,["model","flair_type"]]]],null],[1,"\\n      "],[10,"b"],[12],[1,[28,[35,0],["groups.flair_type.icon"],null]],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,"label"],[14,0,"radio-label"],[14,"for","avatar-flair-image"],[12],[1,"\\n      "],[8,[39,1],null,[["@name","@id","@value","@selection"],["avatar-flair-image","avatar-flair-image","image",[30,0,["model","flair_type"]]]],null],[1,"\\n      "],[10,"b"],[12],[1,[28,[35,0],["groups.flair_type.image"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["flairPreviewIcon"]],[[[1,"    "],[8,[39,3],null,[["@name","@value","@options","@onChange"],["icon",[30,0,["model","flair_icon"]],[28,[37,4],null,[["maximum"],[1]]],[28,[37,5],[[30,0],[28,[37,6],[[30,0,["model","flair_icon"]]],null]],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["flairPreviewImage"]],[[[1,"    "],[8,[39,7],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id","@class"],[[30,0,["flairImageUrl"]],[28,[37,5],[[30,0],"setFlairImage"],null],[28,[37,5],[[30,0],"removeFlairImage"],null],"group_flair","group-flair-uploader","no-repeat contain-image"]],null],[1,"\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.flair_upload_description"],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]],null]],[]]],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[14,"for","flair_bg_color"],[12],[1,[28,[35,0],["groups.flair_bg_color"],null]],[13],[1,"\\n\\n  "],[8,[39,8],null,[["@name","@class","@value","@placeholderKey"],["flair_bg_color","group-flair-bg-color input-xxlarge",[30,0,["model","flair_bg_color"]],"groups.flair_bg_color_placeholder"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["flairPreviewIcon"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,"for","flair_color"],[12],[1,[28,[35,0],["groups.flair_color"],null]],[13],[1,"\\n\\n    "],[8,[39,8],null,[["@name","@class","@value","@placeholderKey"],["flair_color","group-flair-color input-xxlarge",[30,0,["model","flair_color"]],"groups.flair_color_placeholder"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[30,0,["flairPreviewLabel"]]],[13],[1,"\\n\\n  "],[10,0],[14,0,"avatar-flair-preview"],[12],[1,"\\n    "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n      "],[10,"img"],[14,"width","45"],[14,"height","45"],[15,"src",[30,0,["demoAvatarUrl"]]],[14,0,"avatar actor"],[14,"alt",""],[12],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[28,[37,9],[[30,0,["model","flair_icon"]],[30,0,["flairImageUrl"]],[30,0,["model","flairBackgroundHexColor"]]],null],[[[1,"      "],[8,[39,10],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["model","name"]],[52,[30,0,["flairPreviewIcon"]],[30,0,["model","flair_icon"]],[52,[30,0,["flairPreviewImage"]],[30,0,["flairImageUrl"]],""]],[30,0,["model","flairBackgroundHexColor"]],[30,0,["model","flairHexColor"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],[],false,["i18n","radio-button","if","icon-picker","hash","action","mut","uppy-image-uploader","text-field","or","avatar-flair"]]',moduleName:"discourse/components/group-flair-inputs.hbs",isStrictMode:!1})
var v=(0,t.setComponentTemplate)(_,t.default.extend((c=(0,n.default)("model.flair_type"),d=(0,n.default)("model.flair_icon"),p=(0,n.on)("didInsertElement"),m=(0,n.observes)("model.flair_icon"),h=(0,n.default)("model.flair_type"),f=(0,n.default)("model.flair_url"),g=(0,n.default)("flairPreviewImage"),y(b={classNames:["group-flair-inputs"],demoAvatarUrl:()=>(0,u.default)("/images/avatar.png"),flairPreviewIcon:e=>e&&"icon"===e,flairPreviewIconUrl:e=>e?(0,l.convertIconClass)(e):"",_loadSVGIcon(e){e&&(0,a.default)(this,this._loadIcon,1e3)},_loadIcon(){if(!this.model.flair_icon)return
const e=(0,l.convertIconClass)(this.model.flair_icon),t="#svg-sprites",i="ajax-icon-holder",n=`${t} .${i}`
e&&($(`${t} symbol#${e}`).length||(0,s.ajax)(`/svg-sprite/search/${e}`).then((function(e){0===$(n).length&&$(t).append(`<div class="${i}">`),$(n).html(`<svg xmlns='http://www.w3.org/2000/svg' style='display: none;'>${e}</svg>`)})))},flairPreviewImage:e=>e&&"image"===e,flairImageUrl:e=>e&&e.includes("/")?e:null,flairPreviewLabel(e){const t=e?"image":"icon"
return r.default.t(`groups.flair_preview_${t}`)},setFlairImage(e){this.model.setProperties({flair_url:(0,u.default)(e.url),flair_upload_id:e.id})},removeFlairImage(){this.model.setProperties({flair_url:null,flair_upload_id:null})}},"demoAvatarUrl",[n.default],Object.getOwnPropertyDescriptor(b,"demoAvatarUrl"),b),y(b,"flairPreviewIcon",[c],Object.getOwnPropertyDescriptor(b,"flairPreviewIcon"),b),y(b,"flairPreviewIconUrl",[d],Object.getOwnPropertyDescriptor(b,"flairPreviewIconUrl"),b),y(b,"_loadSVGIcon",[p,m],Object.getOwnPropertyDescriptor(b,"_loadSVGIcon"),b),y(b,"flairPreviewImage",[h],Object.getOwnPropertyDescriptor(b,"flairPreviewImage"),b),y(b,"flairImageUrl",[f],Object.getOwnPropertyDescriptor(b,"flairImageUrl"),b),y(b,"flairPreviewLabel",[g],Object.getOwnPropertyDescriptor(b,"flairPreviewLabel"),b),y(b,"setFlairImage",[o.action],Object.getOwnPropertyDescriptor(b,"setFlairImage"),b),y(b,"removeFlairImage",[o.action],Object.getOwnPropertyDescriptor(b,"removeFlairImage"),b),b)))
e.default=v})),define("discourse/components/group-imap-email-settings",["exports","@ember/component","@ember/template-factory","discourse/lib/email-provider-default-settings","@ember/utils","discourse/lib/ajax-error","discourse-common/utils/decorators","@ember/object","discourse/lib/ajax"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"XifFg+v9",block:'[[[10,0],[14,0,"group-imap-email-settings"],[12],[1,"\\n  "],[10,"form"],[14,0,"groups-form form-horizontal groups-form-imap"],[12],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","imap_server"],[12],[1,[28,[35,0],["groups.manage.email.credentials.imap_server"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"imap_server"],[24,"tabindex","8"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["text",[30,0,["form","imap_server"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"label"],[14,"for","enable_ssl_imap"],[12],[1,"\\n        "],[8,[39,1],[[24,1,"enable_ssl_imap"],[24,"tabindex","11"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@checked"],["checkbox",[30,0,["form","imap_ssl"]]]],null],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.credentials.imap_ssl"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","imap_port"],[12],[1,[28,[35,0],["groups.manage.email.credentials.imap_port"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"imap_port"],[24,"tabindex","9"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid",[30,0,["form","imap_port"]]],null]],null]],[["@type","@value"],["text",[30,0,["form","imap_port"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group group-imap-mailboxes"],[12],[1,"\\n"],[41,[30,0,["mailboxes"]],[[[1,"          "],[10,"label"],[14,"for","imap_mailbox_name"],[12],[1,[28,[35,0],["groups.manage.email.mailboxes.synchronized"],null]],[13],[1,"\\n          "],[8,[39,5],null,[["@name","@id","@value","@valueProperty","@content","@tabindex","@onChange","@options"],["imap_mailbox_name","imap_mailbox",[30,0,["group","imap_mailbox_name"]],"value",[30,0,["mailboxes"]],"10",[28,[37,3],[[30,0],[28,[37,6],[[30,0,["group","imap_mailbox_name"]]],null]],null],[28,[37,7],null,[["none"],["groups.manage.email.mailboxes.disabled"]]]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,0],[14,0,"group-imap-prefill-options"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.email.prefill.title"],null]],[1,"\\n      "],[11,3],[24,1,"prefill_imap_gmail"],[24,6,""],[4,[38,2],["click",[28,[37,8],[[30,0,["prefillSettings"]],"gmail"],null]],null],[12],[1,[28,[35,0],["groups.manage.email.prefill.gmail"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[51,[30,0,["mailboxSelected"]]],[[[1,"    "],[10,0],[14,0,"alert alert-error imap-no-mailbox-selected"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.email.imap_mailbox_not_selected"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n    "],[8,[39,10],null,[["@disabled","@class","@action","@icon","@label","@tabindex","@title"],[[28,[37,11],[[30,0,["missingSettings"]],[30,0,["testingSettings"]]],null],"btn-primary test-imap-settings",[28,[37,3],[[30,0],"testImapSettings"],null],"cog","groups.manage.email.test_settings","12","groups.manage.email.settings_required"]],null],[1,"\\n\\n    "],[8,[39,12],null,[["@size","@condition"],["small",[30,0,["testingSettings"]]]],null],[1,"\\n\\n"],[41,[30,0,["imapSettingsValid"]],[[[1,"      "],[10,1],[14,0,"imap-settings-ok"],[12],[1,"\\n        "],[1,[28,[35,13],["check-circle"],null]],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.imap_settings_valid"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["group","imap_updated_at"]],[[[1,"    "],[10,0],[14,0,"group-email-last-updated-details for-imap"],[12],[1,"\\n      "],[10,"small"],[12],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.last_updated"],null]],[1,"\\n        "],[10,"strong"],[12],[1,[28,[35,14],[[30,0,["group","imap_updated_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.last_updated_by"],null]],[1,"\\n        "],[8,[39,15],null,[["@route","@model"],["user",[30,0,["group","imap_updated_by","username"]]]],[["default"],[[[[1,[30,0,["group","imap_updated_by","username"]]]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["i18n","input","on","action","if","combo-box","mut","hash","fn","unless","d-button","or","conditional-loading-spinner","d-icon","format-date","link-to"]]',moduleName:"discourse/components/group-imap-email-settings.hbs",isStrictMode:!1})
var g=(0,t.setComponentTemplate)(f,t.default.extend((u=(0,s.default)("group.email_username","group.email_password","form.imap_server","form.imap_port"),c=(0,s.default)("group.imap_mailboxes"),d=(0,s.default)("group.imap_mailbox_name","mailboxes.length"),p=(0,s.on)("init"),h(m={tagName:"",form:null,missingSettings:(e,t,i,n)=>[e,t,i,n].some((e=>(0,r.isEmpty)(e))),mailboxes:e=>e?e.map((e=>({name:e,value:e}))):[],mailboxSelected:(e,t)=>0===t||!(0,r.isEmpty)(e),resetSettingsValid(){this.set("imapSettingsValid",!1)},_fillForm(){this.set("form",l.default.create({imap_server:this.group.imap_server,imap_port:(this.group.imap_port||"").toString(),imap_ssl:this.group.imap_ssl}))},prefillSettings(e,t){t?.preventDefault(),this.form.setProperties((0,n.default)(e,"imap"))},testImapSettings(){const e={host:this.form.imap_server,port:this.form.imap_port,ssl:this.form.imap_ssl,username:this.group.email_username,password:this.group.email_password}
return this.set("testingSettings",!0),this.set("imapSettingsValid",!1),(0,a.ajax)(`/groups/${this.group.id}/test_email_settings`,{type:"POST",data:Object.assign(e,{protocol:"imap"})}).then((()=>{this.set("imapSettingsValid",!0),this.group.setProperties({imap_server:this.form.imap_server,imap_port:this.form.imap_port,imap_ssl:this.form.imap_ssl})})).catch(o.popupAjaxError).finally((()=>this.set("testingSettings",!1)))}},"missingSettings",[u],Object.getOwnPropertyDescriptor(m,"missingSettings"),m),h(m,"mailboxes",[c],Object.getOwnPropertyDescriptor(m,"mailboxes"),m),h(m,"mailboxSelected",[d],Object.getOwnPropertyDescriptor(m,"mailboxSelected"),m),h(m,"resetSettingsValid",[l.action],Object.getOwnPropertyDescriptor(m,"resetSettingsValid"),m),h(m,"_fillForm",[p],Object.getOwnPropertyDescriptor(m,"_fillForm"),m),h(m,"prefillSettings",[l.action],Object.getOwnPropertyDescriptor(m,"prefillSettings"),m),h(m,"testImapSettings",[l.action],Object.getOwnPropertyDescriptor(m,"testImapSettings"),m),m)))
e.default=g})),define("discourse/components/group-manage-email-settings",["exports","@ember/component","@ember/template-factory","@ember/utils","discourse-common/utils/decorators","I18n","@ember/service","@ember/object"],(function(e,t,i,n,r,o,s,l){var a,u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"DXpBXUXQ",block:'[[[10,0],[14,0,"group-manage-email-settings"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,0],["groups.manage.email.smtp_title"],null]],[13],[1,"\\n  "],[10,2],[12],[1,[28,[35,0],["groups.manage.email.smtp_instructions"],null]],[13],[1,"\\n\\n  "],[10,"label"],[14,"for","enable_smtp"],[12],[1,"\\n    "],[8,[39,1],[[24,1,"enable_smtp"],[24,"tabindex","1"],[4,[38,2],["input",[30,0,["smtpEnabledChange"]]],null]],[["@type","@checked"],["checkbox",[30,0,["group","smtp_enabled"]]]],null],[1,"\\n    "],[1,[28,[35,0],["groups.manage.email.enable_smtp"],null]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["group","smtp_enabled"]],[[[1,"    "],[8,[39,4],null,[["@group","@smtpSettingsValid"],[[30,0,["group"]],[30,0,["smtpSettingsValid"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","enable_imap"]],[[[1,"    "],[10,0],[14,0,"group-manage-email-imap-wrapper"],[12],[1,"\\n      "],[10,"br"],[12],[13],[1,"\\n\\n      "],[10,"h3"],[12],[1,[28,[35,0],["groups.manage.email.imap_title"],null]],[13],[1,"\\n      "],[10,2],[12],[1,"\\n        "],[1,[28,[35,5],[[28,[37,0],["groups.manage.email.imap_instructions"],null]],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"alert alert-warning"],[12],[1,[28,[35,0],["groups.manage.email.imap_alpha_warning"],null]],[13],[1,"\\n\\n      "],[10,"label"],[14,"for","enable_imap"],[12],[1,"\\n        "],[8,[39,1],[[16,"disabled",[28,[37,6],[[30,0,["enableImapSettings"]]],null]],[24,1,"enable_imap"],[24,"tabindex","8"],[4,[38,2],["input",[30,0,["imapEnabledChange"]]],null]],[["@type","@checked"],["checkbox",[30,0,["group","imap_enabled"]]]],null],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.enable_imap"],null]],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["group","imap_enabled"]],[[[1,"        "],[8,[39,7],null,[["@group","@imapSettingsValid"],[[30,0,["group"]],[30,0,["imapSettingsValid"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"group-manage-email-additional-settings-wrapper"],[12],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"h3"],[12],[1,[28,[35,0],["groups.manage.email.imap_additional_settings"],null]],[13],[1,"\\n      "],[10,"label"],[14,0,"control-group-inline"],[14,"for","allow_unknown_sender_topic_replies"],[12],[1,"\\n        "],[8,[39,1],[[24,3,"allow_unknown_sender_topic_replies"],[24,1,"allow_unknown_sender_topic_replies"],[24,"tabindex","13"]],[["@type","@checked"],["checkbox",[30,0,["group","allow_unknown_sender_topic_replies"]]]],null],[1,"\\n        "],[10,1],[12],[1,[28,[35,0],["groups.manage.email.settings.allow_unknown_sender_topic_replies"],null]],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,2],[12],[1,[28,[35,0],["groups.manage.email.settings.allow_unknown_sender_topic_replies_hint"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"br"],[12],[13],[1,"\\n  "],[8,[39,8],null,[["@model","@disabled","@beforeSave","@afterSave","@tabindex"],[[30,0,["group"]],[28,[37,6],[[30,0,["emailSettingsValid"]]],null],[30,0,["beforeSave"]],[30,0,["afterSave"]],"15"]],null],[1,"\\n"],[13]],[],false,["i18n","input","on","if","group-smtp-email-settings","html-safe","not","group-imap-email-settings","group-manage-save-button"]]',moduleName:"discourse/components/group-manage-email-settings.hbs",isStrictMode:!1})
var h=(0,t.setComponentTemplate)(m,t.default.extend((a=(0,r.on)("init"),u=(0,r.default)("emailSettingsValid","group.smtp_enabled","group.imap_enabled"),c=(0,r.default)("smtpSettingsValid","imapSettingsValid","group.smtp_enabled","group.imap_enabled"),p(d={tagName:"",dialog:(0,s.inject)(),imapSettingsValid:!1,smtpSettingsValid:!1,_determineSettingsValid(){this.set("imapSettingsValid",this.group.imap_enabled&&this.group.imap_server),this.set("smtpSettingsValid",this.group.smtp_enabled&&this.group.smtp_server)},enableImapSettings:(e,t,i)=>t&&(e||i),emailSettingsValid:(e,t,i,n)=>(!i||e)&&(!n||t),_anySmtpFieldsFilled(){return[this.group.smtp_server,this.group.smtp_port,this.group.email_username,this.group.email_password].some((e=>!(0,n.isEmpty)(e)))},_anyImapFieldsFilled(){return[this.group.imap_server,this.group.imap_port].some((e=>!(0,n.isEmpty)(e)))},smtpEnabledChange(e){!e.target.checked&&this.group.smtp_enabled&&this._anySmtpFieldsFilled()&&this.dialog.confirm({message:o.default.t("groups.manage.email.smtp_disable_confirm"),didConfirm:()=>this.group.set("smtp_enabled",!0),didCancel:()=>this.group.set("imap_enabled",!1)}),this.group.set("smtp_enabled",e.target.checked)},imapEnabledChange(e){!e.target.checked&&this.group.imap_enabled&&this._anyImapFieldsFilled()&&this.dialog.confirm({message:o.default.t("groups.manage.email.imap_disable_confirm"),didConfirm:()=>this.group.set("imap_enabled",!0)}),this.group.set("imap_enabled",e.target.checked)},afterSave(){this.store.find("group",this.group.name).then((()=>{this._determineSettingsValid()}))}},"_determineSettingsValid",[a],Object.getOwnPropertyDescriptor(d,"_determineSettingsValid"),d),p(d,"enableImapSettings",[u],Object.getOwnPropertyDescriptor(d,"enableImapSettings"),d),p(d,"emailSettingsValid",[c],Object.getOwnPropertyDescriptor(d,"emailSettingsValid"),d),p(d,"smtpEnabledChange",[l.action],Object.getOwnPropertyDescriptor(d,"smtpEnabledChange"),d),p(d,"imapEnabledChange",[l.action],Object.getOwnPropertyDescriptor(d,"imapEnabledChange"),d),p(d,"afterSave",[l.action],Object.getOwnPropertyDescriptor(d,"afterSave"),d),d)))
e.default=h})),define("discourse/components/group-manage-logs-filter",["exports","@ember/component","@ember/template-factory","I18n","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"iyx+TSc/",block:'[[[41,[30,0,["value"]],[[[1,"  "],[8,[39,1],null,[["@class","@action","@actionParam","@icon","@translatedLabel"],["btn-default group-manage-logs-filter",[28,[37,2],[[30,0],"clearFilter"],null],[30,0,["type"]],"times-circle",[28,[37,3],[[30,0,["label"]],": ",[30,0,["filterText"]]],null]]],null],[1,"\\n"]],[]],null]],[],false,["if","d-button","action","concat"]]',moduleName:"discourse/components/group-manage-logs-filter.hbs",isStrictMode:!1})
var c=(0,t.setComponentTemplate)(u,t.default.extend((o=(0,r.default)("type"),s=(0,r.default)("value","type"),a(l={tagName:"",label:e=>n.default.t(`groups.manage.logs.${e}`),filterText:(e,t)=>"action"===t?n.default.t(`group_histories.actions.${e}`):e,actions:{clearFilter(e){this.clearFilter(e)}}},"label",[o],Object.getOwnPropertyDescriptor(l,"label"),l),a(l,"filterText",[s],Object.getOwnPropertyDescriptor(l,"filterText"),l),l)))
e.default=c})),define("discourse/components/group-manage-logs-row",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"tjlFinZy",block:'[[[10,"tr"],[14,0,"group-manage-logs-row"],[12],[1,"\\n  "],[10,"td"],[12],[1,"\\n    "],[8,[39,0],null,[["@class","@action","@actionParam","@translatedLabel"],["btn-default",[28,[37,1],[[30,0],"filter"],null],[28,[37,2],null,[["value","key"],[[30,0,["log","action"]],"action"]]],[30,0,["log","actionTitle"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,"\\n    "],[10,1],[12],[1,[28,[35,3],[[30,0,["log","acting_user"]]],[["imageSize"],["tiny"]]]],[13],[1,"\\n    "],[8,[39,0],null,[["@class","@action","@actionParam","@translatedLabel"],["btn-default",[28,[37,1],[[30,0],"filter"],null],[28,[37,2],null,[["value","key"],[[30,0,["log","acting_user","username"]],"acting_user"]]],[30,0,["log","acting_user","username"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["log","target_user"]],[[[1,"      "],[10,1],[12],[1,[28,[35,3],[[30,0,["log","target_user"]]],[["imageSize"],["tiny"]]]],[13],[1,"\\n      "],[8,[39,0],null,[["@class","@action","@actionParam","@translatedLabel"],["btn-default",[28,[37,1],[[30,0],"filter"],null],[28,[37,2],null,[["value","key"],[[30,0,["log","target_user","username"]],"target_user"]]],[30,0,["log","target_user","username"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["log","subject"]],[[[1,"      "],[8,[39,0],null,[["@class","@action","@actionParam","@translatedLabel"],["btn-default",[28,[37,1],[[30,0],"filter"],null],[28,[37,2],null,[["value","key"],[[30,0,["log","subject"]],"subject"]]],[30,0,["log","subject"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,[28,[35,5],[[30,0,["log","created_at"]]],null]],[13],[1,"\\n\\n  "],[10,"td"],[14,0,"group-manage-logs-expand-details"],[12],[1,"\\n"],[41,[30,0,["log","prev_value"]],[[[1,"      "],[8,[39,0],null,[["@action","@icon"],[[28,[37,1],[[30,0],"toggleDetails"],null],[52,[30,0,["expandDetails"]],"angle-up","angle-down"]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["expandDetails"]],[[[1,"  "],[10,"tr"],[12],[1,"\\n    "],[10,"td"],[14,"colspan","6"],[12],[1,"\\n      "],[10,2],[12],[1,"\\n        "],[10,"strong"],[12],[1,[28,[35,6],["groups.manage.logs.from"],null]],[13],[1,":\\n        "],[10,"code"],[12],[1,[30,0,["log","prev_value"]]],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,2],[12],[1,"\\n        "],[10,"strong"],[12],[1,[28,[35,6],["groups.manage.logs.to"],null]],[13],[1,":\\n        "],[10,"code"],[12],[1,[30,0,["log","new_value"]]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["d-button","action","hash","avatar","if","bound-date","i18n"]]',moduleName:"discourse/components/group-manage-logs-row.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:"",expandDetails:!1,actions:{toggleDetails(){this.toggleProperty("expandDetails")},filter(e){this.set(`filters.${e.key}`,e.value)}}}))
e.default=r})),define("discourse/components/group-manage-save-button",["exports","@ember/component","@ember/template-factory","I18n","discourse-common/utils/decorators","discourse/lib/ajax-error","discourse/controllers/groups-new","discourse/lib/show-modal","@ember/object/computed"],(function(e,t,i,n,r,o,s,l,a){var u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"7X1p6C+t",block:'[[[41,[30,0,["privateGroupNameNotice"]],[[[1,"  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"alert alert-warning alert-private-group-name"],[12],[1,"\\n      "],[1,[30,0,["privateGroupNameNotice"]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[10,0],[14,0,"control-group buttons group-manage-save-button"],[12],[1,"\\n  "],[8,[39,1],null,[["@action","@disabled","@class","@translatedLabel"],[[28,[37,2],[[30,0],"save"],null],[28,[37,3],[[30,0,["disabled"]],[30,0,["saving"]]],null],"btn btn-primary group-manage-save",[30,0,["savingText"]]]],null],[1,"\\n"],[41,[30,0,["saved"]],[[[1,"    "],[10,1],[12],[1,[28,[35,4],["saved"],null]],[13],[1,"\\n"]],[]],null],[13]],[],false,["if","d-button","action","or","i18n"]]',moduleName:"discourse/components/group-manage-save-button.hbs",isStrictMode:!1})
var h=(0,t.setComponentTemplate)(m,t.default.extend((u=(0,r.default)("saving"),c=(0,r.default)("model.visibility_level","model.primary_group","hasFlair"),p(d={saving:null,disabled:!1,updateExistingUsers:null,hasFlair:(0,a.or)("model.flair_icon","model.flair_upload_id"),savingText:e=>e?n.default.t("saving"):n.default.t("save"),privateGroupNameNotice(e,t,i){if(0!==e)return t?n.default.t("admin.groups.manage.alert.primary_group",{group_name:this.model.name}):i?n.default.t("admin.groups.manage.alert.flair_group",{group_name:this.model.name}):void 0},actions:{save(){this.beforeSave&&this.beforeSave(),this.set("saving",!0)
const e=this.model;(0,s.popupAutomaticMembershipAlert)(e.id,e.automatic_membership_email_domains)
const t={}
return null!==this.updateExistingUsers&&(t.update_existing_users=this.updateExistingUsers),e.save(t).then((()=>{this.setProperties({saved:!0,updateExistingUsers:null}),this.afterSave&&this.afterSave()})).catch((e=>{const t=e.jqXHR.responseJSON
if(422===e.jqXHR.status&&t.user_count){const e=(0,l.default)("group-default-notifications",{model:{count:t.user_count}})
e.set("onClose",(()=>{this.updateExistingUsers=e.updateExistingUsers,this.send("save")}))}else(0,o.popupAjaxError)(e)})).finally((()=>this.set("saving",!1)))}}},"savingText",[u],Object.getOwnPropertyDescriptor(d,"savingText"),d),p(d,"privateGroupNameNotice",[c],Object.getOwnPropertyDescriptor(d,"privateGroupNameNotice"),d),d)))
e.default=h})),define("discourse/components/group-member-dropdown",["exports","select-kit/components/dropdown-select-box","I18n","@ember/object"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({pluginApiIdentifiers:["group-member-dropdown"],classNames:["group-member-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,n.computed)("member.owner","member.primary",(function(){const e=[{id:"removeMember",name:i.default.t("groups.members.remove_member"),description:i.default.t("groups.members.remove_member_description",{username:this.get("member.username")}),icon:"user-times"}]
return this.canAdminGroup?this.member.owner?e.push({id:"removeOwner",name:i.default.t("groups.members.remove_owner"),description:i.default.t("groups.members.remove_owner_description",{username:this.get("member.username")}),icon:"shield-alt"}):e.push({id:"makeOwner",name:i.default.t("groups.members.make_owner"),description:i.default.t("groups.members.make_owner_description",{username:this.get("member.username")}),icon:"shield-alt"}):this.canEditGroup&&!this.member.owner&&e.push({id:"makeOwner",name:i.default.t("groups.members.make_owner"),description:i.default.t("groups.members.make_owner_description",{username:this.get("member.username")}),icon:"shield-alt"}),this.currentUser.staff&&(this.member.primary?e.push({id:"removePrimary",name:i.default.t("groups.members.remove_primary"),description:i.default.t("groups.members.remove_primary_description",{username:this.get("member.username")}),icon:"id-card"}):e.push({id:"makePrimary",name:i.default.t("groups.members.make_primary"),description:i.default.t("groups.members.make_primary_description",{username:this.get("member.username")}),icon:"id-card"})),e}))})
e.default=r})),define("discourse/components/group-member",["exports","@ember/component","@ember/template-factory","@ember/object"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"BwRq/Bxa",block:'[[[10,3],[15,6,[30,0,["member","adminPath"]]],[12],[1,"\\n  "],[1,[28,[35,0],[[30,0,["member"]]],[["imageSize"],["small"]]]],[1,"\\n"],[13],[1,"\\n"],[10,1],[12],[1,[30,0,["member","username"]]],[13],[1,"\\n"],[41,[51,[30,0,["automatic"]]],[[[1,"  "],[11,3],[24,6,""],[24,0,"remove"],[4,[38,2],["click",[30,0,["remove"]]],null],[12],[1,"\\n    "],[1,[28,[35,3],["times"],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["avatar","unless","on","d-icon"]]',moduleName:"discourse/components/group-member.hbs",isStrictMode:!1})
var s,l,a,u,c,d,p=(0,t.setComponentTemplate)(o,t.default.extend((s=r={classNames:["item"],remove(e){e?.preventDefault(),this.removeAction(this.member)}},l="remove",a=[n.action],u=Object.getOwnPropertyDescriptor(r,"remove"),c=r,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r)))
e.default=p})),define("discourse/components/group-membership-button",["exports","@ember/component","@ember/template-factory","I18n","discourse/lib/cookie","discourse-common/utils/decorators","discourse/lib/ajax-error","@ember/service","discourse/lib/show-modal"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"K2YBCCL3",block:'[[[41,[30,0,["canJoinGroup"]],[[[1,"  "],[8,[39,1],null,[["@action","@class","@icon","@label","@disabled"],[[28,[37,2],[[30,0],"joinGroup"],null],"btn-default group-index-join","user-plus","groups.join",[30,0,["updatingMembership"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["canLeaveGroup"]],[[[1,"  "],[8,[39,1],null,[["@action","@class","@icon","@label","@disabled"],[[28,[37,2],[[30,0],"leaveGroup"],null],"btn-danger group-index-leave","user-times","groups.leave",[30,0,["updatingMembership"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["canRequestMembership"]],[[[1,"  "],[8,[39,1],null,[["@action","@class","@disabled","@icon","@label"],[[28,[37,2],[[30,0],"showRequestMembershipForm"],null],"btn-default group-index-request",[30,0,["loading"]],"user-plus","groups.request"]],null],[1,"\\n"]],[]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]]]],[]]]],[]]]],["&default"],false,["if","d-button","action","yield"]]',moduleName:"discourse/components/group-membership-button.hbs",isStrictMode:!1})
var g=(0,t.setComponentTemplate)(f,t.default.extend((u=(0,o.default)("model.public_admission","userIsGroupUser"),c=(0,o.default)("model.public_exit","userIsGroupUser"),d=(0,o.default)("model.allow_membership_requests","userIsGroupUser"),p=(0,o.default)("model.is_group_user"),h(m={classNames:["group-membership-button"],dialog:(0,l.inject)(),canJoinGroup:(e,t)=>e&&!t,canLeaveGroup:(e,t)=>e&&t,canRequestMembership:(e,t)=>e&&!t,userIsGroupUser:e=>!!e,_showLoginModal(){this.showLogin(),(0,r.default)("destination_url",window.location.href)},removeFromGroup(){const e=this.model
e.leave().then((()=>{e.set("is_group_user",!1),this.appEvents.trigger("group:leave",e)})).catch(s.popupAjaxError).finally((()=>this.set("updatingMembership",!1)))},actions:{joinGroup(){if(this.currentUser){this.set("updatingMembership",!0)
const e=this.model
e.join().then((()=>{e.set("is_group_user",!0),this.appEvents.trigger("group:join",e)})).catch(s.popupAjaxError).finally((()=>{this.set("updatingMembership",!1)}))}else this._showLoginModal()},leaveGroup(){if(this.set("updatingMembership",!0),!this.model.public_admission)return this.dialog.yesNoConfirm({message:n.default.t("groups.confirm_leave"),didConfirm:()=>this.removeFromGroup(),didCancel:()=>this.set("updatingMembership",!1)})
this.removeFromGroup()},showRequestMembershipForm(){this.currentUser?(0,a.default)("request-group-membership-form",{model:this.model}):this._showLoginModal()}}},"canJoinGroup",[u],Object.getOwnPropertyDescriptor(m,"canJoinGroup"),m),h(m,"canLeaveGroup",[c],Object.getOwnPropertyDescriptor(m,"canLeaveGroup"),m),h(m,"canRequestMembership",[d],Object.getOwnPropertyDescriptor(m,"canRequestMembership"),m),h(m,"userIsGroupUser",[p],Object.getOwnPropertyDescriptor(m,"userIsGroupUser"),m),m)))
e.default=g})),define("discourse/components/group-navigation",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ggWWXikP",block:'[[[8,[39,0],null,[["@class","@desktopClass"],["group-nav","nav nav-pills"]],[["default"],[[[[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,2],null,[["@route"],["groups.index"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["groups.index.all"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,4],null,[["@groups","@value"],[[30,0,["group","extras","visible_group_names"]],[30,0,["group","name"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["tabs"]]],null]],null],null,[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,2],[[16,"title",[30,1,["message"]]],[16,0,[30,1,["name"]]]],[["@route","@model"],[[30,1,["route"]],[30,0,["group"]]]],[["default"],[[[[1,"\\n        "],[41,[30,1,["icon"]],[[[1,[28,[35,7],[[30,1,["icon"]]],null]]],[]],null],[1,"\\n        "],[1,[30,1,["message"]]],[1,"\\n        "],[41,[30,1,["count"]],[[[10,1],[14,0,"count"],[12],[1,"("],[1,[30,1,["count"]]],[1,")"],[13]],[]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[1]],null],[1,"  "],[8,[39,8],null,[["@name","@outletArgs","@connectorTagName"],["group-reports-nav-item",[28,[37,9],null,[["group"],[[30,0,["group"]]]]],"li"]],null],[1,"\\n"]],[]]]]]],["tab"],false,["mobile-nav","if","link-to","i18n","group-dropdown","each","-track-array","d-icon","plugin-outlet","hash"]]',moduleName:"discourse/components/group-navigation.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:""}))
e.default=r})),define("discourse/components/group-post",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","discourse-common/lib/get-url","discourse/lib/settings","discourse/lib/computed","discourse/lib/url","I18n"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m,h
function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"jtc9DTuJ",block:'[[[10,0],[14,0,"user-stream-item__header info"],[12],[1,"\\n  "],[10,3],[15,6,[30,0,["userUrl"]]],[15,"data-user-card",[30,0,["post","user","username"]]],[14,0,"avatar-link"],[12],[1,"\\n    "],[1,[28,[35,0],[[30,0,["post","user"]]],[["imageSize","extraClasses","ignoreTitle"],["large","actor","true"]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"user-stream-item__details"],[12],[1,"\\n    "],[10,0],[14,0,"stream-topic-title"],[12],[1,"\\n      "],[10,1],[14,0,"title"],[12],[1,"\\n        "],[10,3],[15,6,[30,0,["postUrl"]]],[15,"aria-label",[30,0,["titleAriaLabel"]]],[12],[1,"\\n          "],[1,[28,[35,1],[[30,0,["post","topic","fancyTitle"]]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"group-post-category"],[12],[1,[28,[35,2],[[30,0,["post","category"]]],null]],[13],[1,"\\n"],[41,[30,0,["post","user"]],[[[1,"      "],[10,0],[14,0,"group-member-info names"],[12],[1,"\\n        "],[10,1],[14,0,"name"],[12],[1,[30,0,["name"]]],[13],[1,"\\n        "],[41,[30,0,["post","user","title"]],[[[10,1],[14,0,"user-title"],[12],[1,[30,0,["post","user","title"]]],[13]],[]],null],[1,"\\n        "],[8,[39,4],null,[["@name","@outletArgs"],["group-post-additional-member-info",[28,[37,5],null,[["user"],[[30,0,["post","user"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[8,[39,6],null,[["@item"],[[30,0,["post"]]]],null],[1,"\\n  "],[10,1],[14,0,"time"],[12],[1,[28,[35,7],[[30,0,["post","created_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"excerpt"],[12],[1,"\\n"],[41,[30,0,["post","expandedExcerpt"]],[[[1,"    "],[1,[28,[35,1],[[30,0,["post","expandedExcerpt"]]],null]],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,1],[[30,0,["post","excerpt"]]],null]],[1,"\\n"]],[]]],[13]],[],false,["avatar","html-safe","category-link","if","plugin-outlet","hash","expand-post","format-date"]]',moduleName:"discourse/components/group-post.hbs",isStrictMode:!1})
var b=(0,t.setComponentTemplate)(g,t.default.extend((u=(0,n.default)("post.url"),c=(0,n.default)("post.user"),d=(0,n.default)("post.user"),p=(0,n.default)("post.user.username"),m=(0,n.default)("post.topic.title","post.post_number"),f(h={classNameBindings:[":user-stream-item",":item","moderatorAction","primaryGroup"],postUrl:e=>(0,r.default)(e),moderatorAction:(0,s.propertyEqual)("post.post_type","site.post_types.moderator_action"),name:e=>(0,o.prioritizeNameInUx)(e.name)?e.name:e.username,primaryGroup(e){if(e.primary_group_name)return`group-${e.primary_group_name}`},userUrl:e=>(0,l.userPath)(e.toLowerCase()),titleAriaLabel:(e,t)=>a.default.t("groups.aria_post_number",{postNumber:t,title:e})},"postUrl",[u],Object.getOwnPropertyDescriptor(h,"postUrl"),h),f(h,"name",[c],Object.getOwnPropertyDescriptor(h,"name"),h),f(h,"primaryGroup",[d],Object.getOwnPropertyDescriptor(h,"primaryGroup"),h),f(h,"userUrl",[p],Object.getOwnPropertyDescriptor(h,"userUrl"),h),f(h,"titleAriaLabel",[m],Object.getOwnPropertyDescriptor(h,"titleAriaLabel"),h),h)))
e.default=b})),define("discourse/components/group-selector",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","I18n","discourse-common/lib/raw-templates","@ember/utils"],(function(e,t,i,n,r,o,s){var l,a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"xrzpIVwv",block:'[[[10,"input"],[15,"placeholder",[30,0,["placeholder"]]],[14,0,"group-selector"],[14,3,"groups"],[14,4,"text"],[12],[13]],[],false,[]]',moduleName:"discourse/components/group-selector.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend((l=(0,n.default)("placeholderKey"),a=(0,n.observes)("groupNames"),u=(0,n.on)("didInsertElement"),d(c={placeholder:e=>e?r.default.t(e):"",_update(){"true"===this.canReceiveUpdates&&this._initializeAutocomplete({updateData:!0})},_initializeAutocomplete(e){let t,i=this.groupNames
$(this.element.querySelector("input")).autocomplete({debounced:!0,allowAny:!1,items:Array.isArray(i)?i:(0,s.isEmpty)(i)?[]:[i],single:this.single,fullWidthWrap:this.fullWidthWrap,updateData:!(!e||!e.updateData)&&e.updateData,onChangeItems:e=>{t=e,this.onChangeCallback?this.onChangeCallback(this.groupNames,t):this.set("groupNames",e.join(","))},transformComplete:e=>e.name,dataSource:e=>this.groupFinder(e).then((e=>t?e.filter((e=>!t.any((t=>t===e.name)))):e)),template:(0,o.findRawTemplate)("group-selector-autocomplete")})}},"placeholder",[l],Object.getOwnPropertyDescriptor(c,"placeholder"),c),d(c,"_update",[a],Object.getOwnPropertyDescriptor(c,"_update"),c),d(c,"_initializeAutocomplete",[u],Object.getOwnPropertyDescriptor(c,"_initializeAutocomplete"),c),c)))
e.default=m})),define("discourse/components/group-smtp-email-settings",["exports","@ember/component","@ember/template-factory","discourse/lib/email-provider-default-settings","@ember/utils","discourse/lib/ajax-error","discourse-common/utils/decorators","@ember/object","discourse/lib/ajax"],(function(e,t,i,n,r,o,s,l,a){var u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"RaciMW/t",block:'[[[10,0],[14,0,"group-smtp-email-settings"],[12],[1,"\\n  "],[10,"form"],[14,0,"groups-form form-horizontal"],[12],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","username"],[12],[1,[28,[35,0],["groups.manage.email.credentials.username"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"username"],[24,"tabindex","1"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["text",[30,0,["form","email_username"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","smtp_server"],[12],[1,[28,[35,0],["groups.manage.email.credentials.smtp_server"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"smtp_server"],[24,"tabindex","4"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["text",[30,0,["form","smtp_server"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"label"],[14,"for","enable_ssl"],[12],[1,"\\n        "],[8,[39,1],[[24,1,"enable_ssl"],[24,"tabindex","6"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@checked"],["checkbox",[30,0,["form","smtp_ssl"]]]],null],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.credentials.smtp_ssl"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","password"],[12],[1,[28,[35,0],["groups.manage.email.credentials.password"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"password"],[24,"tabindex","2"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["password",[30,0,["form","email_password"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","smtp_port"],[12],[1,[28,[35,0],["groups.manage.email.credentials.smtp_port"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"smtp_port"],[24,"tabindex","5"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid",[30,0,["form","smtp_port"]]],null]],null]],[["@type","@value"],["text",[30,0,["form","smtp_port"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","from_alias"],[12],[1,[28,[35,0],["groups.manage.email.settings.from_alias"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"from_alias"],[24,1,"from_alias"],[24,"tabindex","3"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["text",[30,0,["form","email_from_alias"]]]],null],[1,"\\n        "],[10,2],[12],[1,[28,[35,0],["groups.manage.email.settings.from_alias_hint"],null]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,0],[14,0,"group-smtp-prefill-options"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.email.prefill.title"],null]],[1,"\\n      "],[11,3],[24,1,"prefill_smtp_gmail"],[24,6,""],[4,[38,2],["click",[28,[37,4],[[30,0,["prefillSettings"]],"gmail"],null]],null],[12],[1,[28,[35,0],["groups.manage.email.prefill.gmail"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n    "],[8,[39,5],null,[["@disabled","@class","@action","@icon","@label","@tabindex","@title"],[[28,[37,6],[[30,0,["missingSettings"]],[30,0,["testingSettings"]]],null],"btn-primary test-smtp-settings",[28,[37,3],[[30,0],"testSmtpSettings"],null],"cog","groups.manage.email.test_settings","7","groups.manage.email.settings_required"]],null],[1,"\\n\\n    "],[8,[39,7],null,[["@size","@condition"],["small",[30,0,["testingSettings"]]]],null],[1,"\\n\\n"],[41,[30,0,["smtpSettingsValid"]],[[[1,"      "],[10,1],[14,0,"smtp-settings-ok"],[12],[1,"\\n        "],[1,[28,[35,9],["check-circle"],null]],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.smtp_settings_valid"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["group","smtp_updated_at"]],[[[1,"    "],[10,0],[14,0,"group-email-last-updated-details for-smtp"],[12],[1,"\\n      "],[10,"small"],[12],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.last_updated"],null]],[1,"\\n        "],[10,"strong"],[12],[1,[28,[35,10],[[30,0,["group","smtp_updated_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.last_updated_by"],null]],[1,"\\n        "],[8,[39,11],null,[["@route","@model"],["user",[30,0,["group","smtp_updated_by","username"]]]],[["default"],[[[[1,[30,0,["group","smtp_updated_by","username"]]]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["i18n","input","on","action","fn","d-button","or","conditional-loading-spinner","if","d-icon","format-date","link-to"]]',moduleName:"discourse/components/group-smtp-email-settings.hbs",isStrictMode:!1})
var h=(0,t.setComponentTemplate)(m,t.default.extend((u=(0,s.default)("form.email_username","form.email_password","form.smtp_server","form.smtp_port"),c=(0,s.on)("init"),p(d={tagName:"",form:null,missingSettings:(e,t,i,n)=>[e,t,i,n].some((e=>(0,r.isEmpty)(e))),resetSettingsValid(){this.set("smtpSettingsValid",!1)},_fillForm(){this.set("form",l.default.create({email_username:this.group.email_username,email_password:this.group.email_password,email_from_alias:this.group.email_from_alias,smtp_server:this.group.smtp_server,smtp_port:(this.group.smtp_port||"").toString(),smtp_ssl:this.group.smtp_ssl}))},prefillSettings(e,t){t?.preventDefault(),this.form.setProperties((0,n.default)(e,"smtp"))},testSmtpSettings(){const e={host:this.form.smtp_server,port:this.form.smtp_port,ssl:this.form.smtp_ssl,username:this.form.email_username,password:this.form.email_password}
return this.set("testingSettings",!0),this.set("smtpSettingsValid",!1),(0,a.ajax)(`/groups/${this.group.id}/test_email_settings`,{type:"POST",data:Object.assign(e,{protocol:"smtp"})}).then((()=>{this.set("smtpSettingsValid",!0),this.group.setProperties({smtp_server:this.form.smtp_server,smtp_port:this.form.smtp_port,smtp_ssl:this.form.smtp_ssl,email_username:this.form.email_username,email_from_alias:this.form.email_from_alias,email_password:this.form.email_password})})).catch(o.popupAjaxError).finally((()=>this.set("testingSettings",!1)))}},"missingSettings",[u],Object.getOwnPropertyDescriptor(d,"missingSettings"),d),p(d,"resetSettingsValid",[l.action],Object.getOwnPropertyDescriptor(d,"resetSettingsValid"),d),p(d,"_fillForm",[c],Object.getOwnPropertyDescriptor(d,"_fillForm"),d),p(d,"prefillSettings",[l.action],Object.getOwnPropertyDescriptor(d,"prefillSettings"),d),p(d,"testSmtpSettings",[l.action],Object.getOwnPropertyDescriptor(d,"testSmtpSettings"),d),d)))
e.default=h})),define("discourse/components/groups-form-interaction-fields",["exports","@ember/component","@ember/template-factory","I18n","discourse/lib/notification-levels","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r,o,s){var l,a,u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"ZUf1ERjK",block:'[[[41,[30,0,["canAdminGroup"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["admin.groups.manage.interaction.visibility"],null]],[13],[1,"\\n    "],[10,"label"],[14,"for","visiblity"],[12],[1,[28,[35,1],["admin.groups.manage.interaction.visibility_levels.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@name","@valueProperty","@value","@content","@class","@onChange","@options"],["alias","value",[30,0,["model","visibility_level"]],[30,0,["visibilityLevelOptions"]],"groups-form-visibility-level",[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","visibility_level"]]],null]],null],[28,[37,5],null,[["castInteger"],[true]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["admin.groups.manage.interaction.visibility_levels.description"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,"for","visiblity"],[12],[1,[28,[35,1],["admin.groups.manage.interaction.members_visibility_levels.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@name","@valueProperty","@value","@content","@class","@onChange"],["alias","value",[30,0,["membersVisibilityLevel"]],[30,0,["visibilityLevelOptions"]],"groups-form-members-visibility-level",[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","members_visibility_level"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,0,["membersVisibilityPrivate"]],[[[1,"      "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n        "],[1,[28,[35,1],["admin.groups.manage.interaction.members_visibility_levels.description"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["groups.manage.interaction.posting"],null]],[13],[1,"\\n  "],[10,"label"],[14,"for","alias"],[12],[1,[28,[35,1],["groups.alias_levels.mentionable"],null]],[13],[1,"\\n\\n  "],[8,[39,2],null,[["@name","@valueProperty","@value","@content","@class","@onChange"],["alias","value",[30,0,["mentionableLevel"]],[30,0,["aliasLevelOptions"]],"groups-form-mentionable-level",[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","mentionable_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,"for","alias"],[12],[1,[28,[35,1],["groups.alias_levels.messageable"],null]],[13],[1,"\\n\\n  "],[8,[39,2],null,[["@name","@valueProperty","@value","@content","@class","@onChange"],["alias","value",[30,0,["messageableLevel"]],[30,0,["aliasLevelOptions"]],"groups-form-messageable-level",[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","messageable_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canAdminGroup"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[8,[39,6],[[24,0,"groups-form-publish-read-state"]],[["@type","@checked"],["checkbox",[30,0,["model","publish_read_state"]]]],null],[1,"\\n\\n      "],[1,[28,[35,1],["admin.groups.manage.interaction.publish_read_state"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showEmailSettings"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["admin.groups.manage.interaction.email"],null]],[13],[1,"\\n    "],[10,"label"],[14,"for","incoming_email"],[12],[1,[28,[35,1],["admin.groups.manage.interaction.incoming_email"],null]],[13],[1,"\\n\\n    "],[8,[39,7],null,[["@name","@class","@value","@placeholderKey"],["incoming_email","input-xxlarge groups-form-incoming-email",[30,0,["model","incoming_email"]],"admin.groups.manage.interaction.incoming_email_placeholder"]],null],[1,"\\n\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["group-email-in","div",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["groups.manage.interaction.notification"],null]],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,1],["groups.notification_level"],null]],[13],[1,"\\n\\n  "],[8,[39,9],null,[["@value","@class","@options","@onChange"],[[30,0,["defaultNotificationLevel"]],"groups-form-default-notification-level",[28,[37,5],null,[["i18nPrefix"],["groups.notifications"]]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","default_notification_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["groups-interaction-custom-options","div",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],[],false,["if","i18n","combo-box","action","mut","hash","input","text-field","plugin-outlet","notifications-button"]]',moduleName:"discourse/components/groups-form-interaction-fields.hbs",isStrictMode:!1})
var h=(0,t.setComponentTemplate)(m,t.default.extend((l=(0,o.default)("model.default_notification_level","watchingNotificationLevel"),a=(0,o.default)("siteSettings.email_in","model.automatic","currentUser.admin"),u=(0,o.default)("model.isCreated","model.can_admin_group","currentUser.can_create_group"),c=(0,o.default)("membersVisibilityLevel"),d={init(){this._super(...arguments),this.visibilityLevelOptions=[{name:n.default.t("admin.groups.manage.interaction.visibility_levels.public"),value:0},{name:n.default.t("admin.groups.manage.interaction.visibility_levels.logged_on_users"),value:1},{name:n.default.t("admin.groups.manage.interaction.visibility_levels.members"),value:2},{name:n.default.t("admin.groups.manage.interaction.visibility_levels.staff"),value:3},{name:n.default.t("admin.groups.manage.interaction.visibility_levels.owners"),value:4}],this.aliasLevelOptions=[{name:n.default.t("groups.alias_levels.nobody"),value:0},{name:n.default.t("groups.alias_levels.only_admins"),value:1},{name:n.default.t("groups.alias_levels.mods_and_admins"),value:2},{name:n.default.t("groups.alias_levels.members_mods_and_admins"),value:3},{name:n.default.t("groups.alias_levels.owners_mods_and_admins"),value:4},{name:n.default.t("groups.alias_levels.everyone"),value:99}],this.watchingNotificationLevel=r.NotificationLevels.WATCHING},membersVisibilityLevel:(0,s.or)("model.members_visibility_level","visibilityLevelOptions.firstObject.value"),messageableLevel:(0,s.or)("model.messageable_level","aliasLevelOptions.firstObject.value"),mentionableLevel:(0,s.or)("model.mentionable_level","aliasLevelOptions.firstObject.value"),defaultNotificationLevel:(e,t)=>Object.values(r.NotificationLevels).includes(e)?e:t,showEmailSettings:(e,t,i)=>e&&i&&!t,canAdminGroup:(e,t,i)=>!e&&i||e&&t,membersVisibilityPrivate(e){return e!==this.visibilityLevelOptions.firstObject.value}},p(d,"defaultNotificationLevel",[l],Object.getOwnPropertyDescriptor(d,"defaultNotificationLevel"),d),p(d,"showEmailSettings",[a],Object.getOwnPropertyDescriptor(d,"showEmailSettings"),d),p(d,"canAdminGroup",[u],Object.getOwnPropertyDescriptor(d,"canAdminGroup"),d),p(d,"membersVisibilityPrivate",[c],Object.getOwnPropertyDescriptor(d,"membersVisibilityPrivate"),d),d)))
e.default=h})),define("discourse/components/groups-form-membership-fields",["exports","@ember/component","@ember/template-factory","I18n","@ember/object","@ember/object/computed","discourse-common/utils/decorators","discourse/models/associated-group"],(function(e,t,i,n,r,o,s,l){var a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"JR2tMCfa",block:'[[[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["groups.manage.membership.access"],null]],[13],[1,"\\n\\n  "],[10,"label"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"group-form-public-admission"],[16,"disabled",[30,0,["disablePublicSetting"]]]],[["@type","@checked"],["checkbox",[30,0,["model","public_admission"]]]],null],[1,"\\n\\n    "],[1,[28,[35,0],["groups.public_admission"],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"label"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"group-form-public-exit"]],[["@type","@checked"],["checkbox",[30,0,["model","public_exit"]]]],null],[1,"\\n\\n    "],[1,[28,[35,0],["groups.public_exit"],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"label"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"group-form-allow-membership-requests"],[16,"disabled",[30,0,["disableMembershipRequestSetting"]]]],[["@type","@checked"],["checkbox",[30,0,["model","allow_membership_requests"]]]],null],[1,"\\n\\n    "],[1,[28,[35,0],["groups.allow_membership_requests"],null]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["model","allow_membership_requests"]],[[[1,"    "],[10,0],[12],[1,"\\n      "],[10,"label"],[14,"for","membership-request-template"],[12],[1,"\\n        "],[1,[28,[35,0],["groups.membership_request_template"],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,3],null,[["@name","@class","@value"],["membership-request-template","group-form-membership-request-template input-xxlarge",[30,0,["model","membership_request_template"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[41,[30,0,["model","can_admin_group"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["admin.groups.manage.membership.automatic"],null]],[13],[1,"\\n\\n    "],[10,"label"],[14,"for","automatic_membership"],[12],[1,"\\n      "],[1,[28,[35,0],["admin.groups.manage.membership.automatic_membership_email_domains"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@name","@class","@value","@choices","@settingName","@nameProperty","@valueProperty","@onChange","@options"],["automatic_membership","group-form-automatic-membership-automatic",[30,0,["emailDomains"]],[30,0,["emailDomains"]],"name",null,null,[28,[37,5],[[30,0],"onChangeEmailDomainsSetting"],null],[28,[37,6],null,[["allowAny"],[true]]]]],null],[1,"\\n\\n"],[41,[30,0,["showAssociatedGroups"]],[[[1,"      "],[10,"label"],[14,"for","automatic_membership_associated_groups"],[12],[1,"\\n        "],[1,[28,[35,0],["admin.groups.manage.membership.automatic_membership_associated_groups"],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,4],null,[["@name","@class","@value","@choices","@settingName","@nameProperty","@valueProperty","@onChange"],["automatic_membership_associated_groups","group-form-automatic-membership-associated-groups",[30,0,["model","associatedGroupIds"]],[30,0,["associatedGroups"]],"name","label","id",[28,[37,5],[[30,0],[28,[37,7],[[30,0,["model","associated_group_ids"]]],null]],null]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["groups-form-membership-below-automatic","div",[28,[37,6],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["admin.groups.manage.membership.effects"],null]],[13],[1,"\\n    "],[10,"label"],[14,"for","grant_trust_level"],[12],[1,[28,[35,0],["admin.groups.manage.membership.trust_levels_title"],null]],[13],[1,"\\n\\n    "],[8,[39,9],null,[["@name","@valueProperty","@value","@content","@class","@onChange"],["grant_trust_level","value",[30,0,["groupTrustLevel"]],[30,0,["trustLevelOptions"]],"groups-form-grant-trust-level",[28,[37,5],[[30,0],[28,[37,7],[[30,0,["model","grant_trust_level"]]],null]],null]]],null],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[8,[39,1],[[24,0,"groups-form-primary-group"]],[["@type","@checked"],["checkbox",[30,0,["model","primary_group"]]]],null],[1,"\\n\\n      "],[1,[28,[35,0],["admin.groups.manage.membership.primary_group"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,"for","title"],[12],[1,"\\n      "],[1,[28,[35,0],["admin.groups.default_title"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,1],[[24,3,"title"],[24,0,"input-xxlarge"]],[["@value"],[[30,0,["model","title"]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["admin.groups.default_title_description"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEdit"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[8,[39,10],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["i18n","input","if","expanding-text-area","list-setting","action","hash","mut","plugin-outlet","combo-box","group-flair-inputs"]]',moduleName:"discourse/components/groups-form-membership-fields.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend((a=(0,s.default)("model.visibility_level","model.public_admission"),u=(0,s.default)("model.visibility_level","model.allow_membership_requests"),c={tokenSeparator:"|",showAssociatedGroups:(0,o.readOnly)("site.can_associate_groups"),init(){this._super(...arguments),this.trustLevelOptions=[{name:n.default.t("admin.groups.manage.membership.trust_levels_none"),value:0},{name:1,value:1},{name:2,value:2},{name:3,value:3},{name:4,value:4}],this.showAssociatedGroups&&this.loadAssociatedGroups()},canEdit:(0,o.not)("model.automatic"),groupTrustLevel:(0,r.computed)("model.grant_trust_level","trustLevelOptions",(function(){return this.model.get("grant_trust_level")||this.trustLevelOptions.firstObject.value})),disableMembershipRequestSetting:(e,t)=>(e=parseInt(e,10),t||e>1),disablePublicSetting:(e,t)=>(e=parseInt(e,10),t||e>1),emailDomains:(0,r.computed)("model.emailDomains",(function(){return this.model.emailDomains.split(this.tokenSeparator).filter(Boolean)})),loadAssociatedGroups(){l.default.list().then((e=>this.set("associatedGroups",e)))},actions:{onChangeEmailDomainsSetting(e){this.set("model.automatic_membership_email_domains",e.join(this.tokenSeparator))}}},d(c,"disableMembershipRequestSetting",[a],Object.getOwnPropertyDescriptor(c,"disableMembershipRequestSetting"),c),d(c,"disablePublicSetting",[u],Object.getOwnPropertyDescriptor(c,"disablePublicSetting"),c),c)))
e.default=m})),define("discourse/components/groups-form-profile-fields",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/object","discourse/models/group","I18n","discourse-common/lib/debounce","@ember/utils","@ember/object/computed","discourse/lib/ajax-error"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"C65S5baD",block:'[[[41,[30,0,["canEdit"]],[[[41,[30,0,["currentUser","can_create_group"]],[[[1,"    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[14,"for","name"],[12],[1,[28,[35,1],["groups.name"],null]],[13],[1,"\\n\\n      "],[8,[39,2],null,[["@name","@class","@value","@placeholderKey"],["name","input-xxlarge group-form-name",[30,0,["nameInput"]],"admin.groups.name_placeholder"]],null],[1,"\\n\\n      "],[8,[39,3],null,[["@validation"],[[30,0,["nameValidation"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,"for","full_name"],[12],[1,[28,[35,1],["groups.manage.full_name"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@name","@class","@value"],["full_name","input-xxlarge group-form-full-name",[30,0,["model","full_name"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[14,"for","bio"],[12],[1,[28,[35,1],["groups.bio"],null]],[13],[1,"\\n  "],[8,[39,4],null,[["@value","@class"],[[30,0,["model","bio_raw"]],"group-form-bio input-xxlarge"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["model","automatic"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[8,[39,5],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEdit"]],[[[1,"  "],[18,1,null],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["group-edit","div",[28,[37,8],null,[["group"],[[30,0,["model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["&default"],false,["if","i18n","text-field","input-tip","d-editor","group-flair-inputs","yield","plugin-outlet","hash"]]',moduleName:"discourse/components/groups-form-profile-fields.hbs",isStrictMode:!1})
var g=(0,t.setComponentTemplate)(f,t.default.extend((d=(0,n.default)("basicNameValidation","uniqueNameValidation"),p=(0,n.observes)("nameInput"),m={disableSave:null,nameInput:null,didInsertElement(){this._super(...arguments)
const e=this.get("model.name")
e?this.set("nameInput",e):this.set("disableSave",!0)},canEdit:(0,u.not)("model.automatic"),nameValidation:(e,t)=>t||e,_validateName(){if(this.nameInput!==this.get("model.name"))return void 0===this.nameInput?this._failedInputValidation():""===this.nameInput?(this.set("uniqueNameValidation",null),this._failedInputValidation(s.default.t("admin.groups.new.name.blank"))):this.nameInput.length<this.siteSettings.min_username_length?this._failedInputValidation(s.default.t("admin.groups.new.name.too_short")):this.nameInput.length>this.siteSettings.max_username_length?this._failedInputValidation(s.default.t("admin.groups.new.name.too_long")):(this.checkGroupNameDebounced(),this._failedInputValidation(s.default.t("admin.groups.new.name.checking")))},checkGroupNameDebounced(){(0,l.default)(this,this._checkGroupName,500)},_checkGroupName(){(0,a.isEmpty)(this.nameInput)||o.default.checkName(this.nameInput).then((e=>{const t="uniqueNameValidation"
if(e.available)this.set(t,r.default.create({ok:!0,reason:s.default.t("admin.groups.new.name.available")})),this.set("disableSave",!1),this.set("model.name",this.nameInput)
else{let i
i=e.errors?e.errors.join(" "):s.default.t("admin.groups.new.name.not_available"),this.set(t,this._failedInputValidation(i))}})).catch(c.popupAjaxError)},_failedInputValidation(e){this.set("disableSave",!0)
const t={failed:!0}
e&&(t.reason=e),this.set("basicNameValidation",r.default.create(t))}},h(m,"nameValidation",[d],Object.getOwnPropertyDescriptor(m,"nameValidation"),m),h(m,"_validateName",[p],Object.getOwnPropertyDescriptor(m,"_validateName"),m),m)))
e.default=g})),define("discourse/components/groups-info",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"xvzLkauX",block:'[[[41,[30,0,["showFullName"]],[[[1,"  "],[10,1],[14,0,"groups-info-name"],[12],[1,[30,0,["group","full_name"]]],[13],[1,"\\n"]],[]],[[[1,"  "],[10,1],[14,0,"groups-info-name"],[12],[1,[30,0,["group","displayName"]]],[13],[1,"\\n"]],[]]]],[],false,["if"]]',moduleName:"discourse/components/groups-info.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((r=(0,n.default)("group.full_name"),l=o={tagName:"span",classNames:["group-info-details"],showFullName:e=>e&&e.length},a="showFullName",u=[r],c=Object.getOwnPropertyDescriptor(o,"showFullName"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/header-extra-info",["exports","discourse-common/lib/deprecated"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.needsSecondRowIf=function(){(0,t.default)("`needsSecondRowIf` is deprecated. Use widget hooks on `header-second-row`",{id:"discourse.header-extra-info.needs-second-row-if"})}}))
define("discourse/components/hidden-details",["exports","@ember/component","@ember/template-factory","@ember/object"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"1wq56MIi",block:'[[[41,[51,[30,0,["expanded"]]],[[[1,"  "],[8,[39,1],null,[["@action","@class","@label"],[[28,[37,2],[[30,0],"expand"],null],"btn-link",[30,0,["label"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["expanded"]],[[[1,"  "],[10,1],[14,0,"description"],[14,"aria-live","assertive"],[12],[1,[30,0,["details"]]],[13],[1,"\\n"]],[]],null]],[],false,["unless","d-button","action","if"]]',moduleName:"discourse/components/hidden-details.hbs",isStrictMode:!1})
var s,l,a,u,c,d,p=(0,t.setComponentTemplate)(o,t.default.extend((s=r={expand(){this.set("expanded",!0)}},l="expand",a=[n.action],u=Object.getOwnPropertyDescriptor(r,"expand"),c=r,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r)))
e.default=p})),define("discourse/components/highlight-search",["exports","discourse-common/utils/decorators","@ember/component","discourse/lib/highlight-search"],(function(e,t,i,n){var r,o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l,a,u,c,d,p,m=i.default.extend((r=(0,t.on)("didInsertElement"),o=(0,t.observes)("highlight"),l=s={tagName:"span",_highlightOnInsert(){const e=this.highlight;(0,n.default)(this.element,e)}},a="_highlightOnInsert",u=[r,o],c=Object.getOwnPropertyDescriptor(s,"_highlightOnInsert"),d=s,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),s))
e.default=m})),define("discourse/components/highlight-text",["exports","discourse-common/lib/deprecated","discourse/components/highlight-search"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=i.default.extend({init(){this._super(...arguments),(0,t.default)("`highlight-text` component is deprecated,  use the `highlight-search` instead.",{id:"discourse.highlight-text-component"})}})
e.default=n})),define("discourse/components/honeypot-input",["exports","discourse/components/text-field","discourse-common/utils/decorators"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((n=(0,i.on)("init"),o=r={_init(){navigator.userAgent.includes("Chrome")?this.set("type","text"):this.set("type","password")}},s="_init",l=[n],a=Object.getOwnPropertyDescriptor(r,"_init"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/components/horizontal-overflow-nav",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","discourse-common/utils/decorators","@ember/service","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"6xDtbyK8",block:'[[[1,"\\n"],[10,"nav"],[15,0,[29,["horizontal-overflow-nav ",[52,[30,0,["hasScroll"]],"has-scroll"]]]],[15,"aria-label",[30,1]],[12],[1,"\\n"],[41,[30,0,["hasScroll"]],[[[1,"    "],[11,3],[24,"role","button"],[24,"data-direction","left"],[16,0,[28,[37,1],["horizontal-overflow-nav__scroll-left",[52,[30,0,["hideLeftScroll"]],"disabled"]],null]],[4,[38,2],["mousedown",[30,0,["horizontalScroll"]]],null],[4,[38,2],["mouseup",[30,0,["stopScroll"]]],null],[4,[38,2],["mouseleave",[30,0,["stopScroll"]]],null],[12],[1,"\\n      "],[1,[28,[35,3],["chevron-left"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[11,"ul"],[16,0,[29,["nav-pills action-list ",[30,2]]]],[17,3],[4,[38,4],[[30,0,["checkScroll"]]],null],[4,[38,2],["scroll",[30,0,["watchScroll"]]],null],[4,[38,5],[[30,0,["scrollToActive"]]],null],[4,[38,2],["mousedown",[30,0,["scrollDrag"]]],null],[12],[1,"\\n    "],[18,4,null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["hasScroll"]],[[[1,"    "],[11,3],[24,"role","button"],[16,0,[28,[37,1],["horizontal-overflow-nav__scroll-right",[52,[30,0,["hideRightScroll"]],"disabled"]],null]],[4,[38,2],["mousedown",[30,0,["horizontalScroll"]]],null],[4,[38,2],["mouseup",[30,0,["stopScroll"]]],null],[4,[38,2],["mouseleave",[30,0,["stopScroll"]]],null],[12],[1,"\\n      "],[1,[28,[35,3],["chevron-right"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["@ariaLabel","@className","&attrs","&default"],false,["if","concat-class","on","d-icon","on-resize","did-insert","yield"]]',moduleName:"discourse/components/horizontal-overflow-nav.hbs",isStrictMode:!1})
let b=(a=class extends n.default{constructor(){super(...arguments),m(this,"site",u,this),m(this,"hasScroll",c,this),m(this,"hideRightScroll",d,this),m(this,"hideLeftScroll",p,this),h(this,"scrollInterval",void 0)}scrollToActive(e){const t=e.querySelector("a.active")
t?.scrollIntoView({block:"nearest",inline:"center"})}checkScroll(e){this.site.mobileView||(this.watchScroll(e),this.hasScroll=e.target.scrollWidth>e.target.offsetWidth)}stopScroll(){clearInterval(this.scrollInterval)}watchScroll(e){this.site.mobileView||(e.target.offsetWidth+e.target.scrollLeft===e.target.scrollWidth?(this.hideRightScroll=!0,clearInterval(this.scrollInterval)):this.hideRightScroll=!1,0===e.target.scrollLeft?(this.hideLeftScroll=!0,clearInterval(this.scrollInterval)):this.hideLeftScroll=!1)}scrollDrag(e){if(this.site.mobileView||!this.hasScroll)return
e.preventDefault()
const t=e.target.closest(".nav-pills"),i=t.scrollLeft,n=e.clientX,r=function(e){let r=e.clientX-n
t.scrollLeft=i-r}
t.querySelectorAll("a").forEach((e=>{e.style.cursor="grabbing"}))
document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function(){document.removeEventListener("mousemove",r),t.querySelectorAll("a").forEach((e=>{e.style.cursor="pointer"}))}),{once:!0})}horizontalScroll(e){if(1!==e.which)return
let t=175,i=e.target.previousElementSibling
"left"===e.target.dataset.direction&&(t*=-1,i=e.target.nextElementSibling),i.scrollLeft+=t,this.scrollInterval=setInterval((function(){i.scrollLeft+=t}),50)}},u=f(a.prototype,"site",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(a.prototype,"hasScroll",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=f(a.prototype,"hideRightScroll",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=f(a.prototype,"hideLeftScroll",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f(a.prototype,"scrollToActive",[o.bind],Object.getOwnPropertyDescriptor(a.prototype,"scrollToActive"),a.prototype),f(a.prototype,"checkScroll",[o.bind],Object.getOwnPropertyDescriptor(a.prototype,"checkScroll"),a.prototype),f(a.prototype,"stopScroll",[o.bind],Object.getOwnPropertyDescriptor(a.prototype,"stopScroll"),a.prototype),f(a.prototype,"watchScroll",[o.bind],Object.getOwnPropertyDescriptor(a.prototype,"watchScroll"),a.prototype),f(a.prototype,"scrollDrag",[o.bind],Object.getOwnPropertyDescriptor(a.prototype,"scrollDrag"),a.prototype),f(a.prototype,"horizontalScroll",[r.action],Object.getOwnPropertyDescriptor(a.prototype,"horizontalScroll"),a.prototype),a)
e.default=b,(0,t.setComponentTemplate)(g,b)})),define("discourse/components/html-with-links",["exports","discourse/lib/click-track","@ember/component"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=i.default.extend({click(e){"A"===e?.target?.tagName&&(0,t.shouldOpenInNewTab)(e.target.href)&&(0,t.openLinkInNewTab)(e,e.target)}})
e.default=n})),define("discourse/components/iframed-html",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({tagName:"iframe",html:null,className:"",classNameBindings:["html:iframed-html","className"],sandbox:"allow-same-origin",attributeBindings:["sandbox:sandbox"],didRender(){this._super(...arguments)
const e=this.element.contentWindow.document
e.open("text/html","replace"),e.write(this.html),e.close()}})
e.default=i})),define("discourse/components/ignored-user-list-item",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"+uqZF9Fq",block:'[[[10,0],[14,0,"ignored-user-list-item"],[12],[1,"\\n  "],[10,1],[14,0,"ignored-user-name"],[12],[1,[30,0,["item"]]],[13],[1,"\\n  "],[8,[39,0],null,[["@class","@action","@icon"],["remove-ignored-user no-text btn-icon",[28,[37,1],[[30,0],"removeIgnoredUser",[30,0,["item"]]],null],"times"]],null],[1,"\\n"],[13]],[],false,["d-button","action"]]',moduleName:"discourse/components/ignored-user-list-item.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:"div",items:null,actions:{removeIgnoredUser(e){this.onRemoveIgnoredUser(e)}}}))
e.default=r})),define("discourse/components/ignored-user-list",["exports","@ember/component","@ember/template-factory","discourse/models/user","discourse/lib/ajax-error","discourse/lib/show-modal"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"v8R14dR3",block:'[[[10,0],[14,0,"ignored-list"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["items"]]],null]],null],null,[[[1,"    "],[8,[39,2],null,[["@item","@onRemoveIgnoredUser"],[[30,1],[28,[37,3],[[30,0],"removeIgnoredUser"],null]]],null],[1,"\\n"]],[1]],[[[1,"    "],[1,[28,[35,4],["user.user_notifications.ignore_no_users"],null]],[1,"\\n"]],[]]],[13],[1,"\\n"],[10,0],[14,0,"instructions"],[12],[1,[28,[35,4],["user.ignored_users_instructions"],null]],[13],[1,"\\n"],[10,0],[12],[8,[39,5],null,[["@action","@class","@icon","@label"],[[28,[37,3],[[30,0],"newIgnoredUser"],null],"btn-default","plus","user.user_notifications.add_ignored_user"]],null],[13]],["item"],false,["each","-track-array","ignored-user-list-item","action","i18n","d-button"]]',moduleName:"discourse/components/ignored-user-list.hbs",isStrictMode:!1})
var l=(0,t.setComponentTemplate)(s,t.default.extend({item:null,actions:{removeIgnoredUser(e){this.set("saved",!1),this.items.removeObject(e),n.default.findByUsername(e).then((e=>{e.updateNotificationLevel({level:"normal",actingUser:this.model}).catch(r.popupAjaxError).finally((()=>this.set("saved",!0)))}))},newIgnoredUser(){(0,o.default)("ignore-duration-with-username",{model:this.model}).setProperties({ignoredUsername:null,onUserIgnored:e=>{this.items.addObject(e)}})}}}))
e.default=l})),define("discourse/components/images-uploader",["exports","@ember/component","@ember/template-factory","I18n","discourse/mixins/uppy-upload","discourse-common/utils/decorators"],(function(e,t,i,n,r,o){var s,l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"jrOoDhht",block:'[[[10,"label"],[14,0,"btn"],[15,"disabled",[30,0,["uploadingOrProcessing"]]],[15,"title",[28,[37,0],["admin.site_settings.uploaded_image_list.upload.title"],null]],[12],[1,"\\n  "],[1,[28,[35,1],["far-image"],null]],[1," "],[1,[30,0,["uploadButtonText"]]],[1,"\\n  "],[10,"input"],[14,0,"hidden-upload-field"],[15,"disabled",[30,0,["uploading"]]],[14,"accept","image/*"],[14,"multiple",""],[14,4,"file"],[12],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["uploadingOrProcessing"]],[[[1,"  "],[10,1],[12],[1,[28,[35,0],["upload_selector.uploading"],null]],[1," "],[1,[30,0,["uploadProgress"]]],[1,"%"],[13],[1,"\\n"]],[]],null]],[],false,["i18n","d-icon","if"]]',moduleName:"discourse/components/images-uploader.hbs",isStrictMode:!1})
var u,c,d,p,m,h,f=(0,t.setComponentTemplate)(a,t.default.extend(r.default,(s=(0,o.default)("uploadingOrProcessing"),u=l={type:"avatar",tagName:"span",uploadButtonText:e=>e?n.default.t("uploading"):n.default.t("upload"),validateUploadedFilesOptions:()=>({imagesOnly:!0}),uploadDone(e){this.done(e)}},c="uploadButtonText",d=[s],p=Object.getOwnPropertyDescriptor(l,"uploadButtonText"),m=l,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),l)))
e.default=f})),define("discourse/components/input-tip",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse-common/lib/icon-library","@ember/template"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"NJB4NWMD",block:'[[[41,[30,0,["tipReason"]],[[[1,"  "],[1,[30,0,["tipIcon"]]],[1,"\\n  "],[1,[30,0,["tipReason"]]],[1,"\\n"]],[]],null]],[],false,["if"]]',moduleName:"discourse/components/input-tip.hbs",isStrictMode:!1})
var l=(0,t.setComponentTemplate)(s,t.default.extend({classNameBindings:[":tip","good","bad"],tipIcon:null,tipReason:null,bad:(0,n.alias)("validation.failed"),good:(0,n.not)("bad"),tipIconHTML(){let e=(0,r.iconHTML)(this.good?"check":"times")
return(0,o.htmlSafe)(`${e}`)},didReceiveAttrs(){this._super(...arguments)
let e=this.get("validation.reason")
e?(this.set("tipIcon",this.tipIconHTML()),this.set("tipReason",e)):(this.set("tipIcon",null),this.set("tipReason",null))}}))
e.default=l})),define("discourse/components/invite-link-panel",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"VFTo8kCX",block:"[[],[],false,[]]",moduleName:"discourse/components/invite-link-panel.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/invite-panel",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/object/computed","discourse/models/group","I18n","discourse/models/invite","discourse-common/utils/decorators","discourse/lib/utilities","discourse/lib/pwa-utils","discourse/lib/computed","@ember/utils"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){var m,h,f,g,b,y,_,v,w,k,x,P,O,T,S
function j(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const C=(0,i.createTemplateFactory)({id:"+j/RCZwF",block:'[[[41,[30,0,["inviteModel","error"]],[[[1,"  "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n    "],[1,[28,[35,1],[[30,0,["errorMessage"]]],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"body"],[12],[1,"\\n"],[41,[30,0,["inviteModel","finished"]],[[[41,[30,0,["inviteModel","inviteLink"]],[[[1,"      "],[8,[39,2],null,[["@link","@email"],[[30,0,["inviteModel","inviteLink"]],[30,0,["invitee"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"success-message"],[12],[1,"\\n        "],[1,[28,[35,1],[[30,0,["successMessage"]]],null]],[1,"\\n      "],[13],[1,"\\n"]],[]]]],[]],[[[1,"    "],[10,0],[14,0,"invite-user-control"],[12],[1,"\\n      "],[10,"label"],[14,0,"instructions"],[12],[1,[30,0,["inviteInstructions"]]],[13],[1,"\\n      "],[10,0],[14,0,"invite-user-input-wrapper"],[12],[1,"\\n"],[41,[30,0,["allowExistingMembers"]],[[[1,"          "],[8,[39,3],null,[["@class","@value","@onChange","@options"],["invite-user-input",[30,0,["invitee"]],[28,[37,4],[[30,0],"updateInvitee"],null],[28,[37,5],null,[["maximum","allowEmails","excludeCurrentUser","includeMessageableGroups","filterPlaceholder","fullWidthWrap"],[1,[30,0,["canInviteViaEmail"]],true,[30,0,["isPM"]],[30,0,["placeholderKey"]],true]]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,6],null,[["@class","@value","@placeholderKey"],["email-or-username-input",[30,0,["invitee"]],"topic.invite_reply.email_placeholder"]],null],[1,"\\n"]],[]]],[41,[30,0,["capabilities","hasContactPicker"]],[[[1,"          "],[8,[39,7],null,[["@icon","@action","@class"],["address-book",[28,[37,4],[[30,0],"searchContact"],null],"btn-primary open-contact-picker"]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["showGroups"]],[[[1,"      "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n        "],[10,"label"],[15,0,[29,["instructions ",[30,0,["showGroupsClass"]]]]],[12],[1,"\\n          "],[1,[28,[35,8],["topic.automatically_add_to_groups"],null]],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,9],null,[["@content","@value","@labelProperty","@onChange"],[[30,0,["allGroups"]],[30,0,["groupIds"]],"name",[28,[37,4],[[30,0],[28,[37,10],[[30,0,["groupIds"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showCustomMessage"]],[[[1,"      "],[10,0],[14,0,"show-custom-message-control"],[12],[1,"\\n        "],[10,"label"],[14,0,"instructions"],[12],[1,"\\n          "],[8,[39,11],null,[["@class","@action","@text"],["optional",[28,[37,4],[[30,0],"showCustomMessageBox"],null],"invite.custom_message"]],null],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["hasCustomMessage"]],[[[1,"          "],[8,[39,12],[[16,"placeholder",[30,0,["customMessagePlaceholder"]]]],[["@value"],[[30,0,["customMessage"]]]],null],[1,""]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["showApprovalMessage"]],[[[1,"    "],[10,"label"],[14,0,"instructions approval-notice"],[12],[1,"\\n      "],[1,[28,[35,8],["invite.approval_not_required"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"footer"],[12],[1,"\\n"],[41,[30,0,["inviteModel","finished"]],[[[1,"    "],[8,[39,7],null,[["@class","@action","@label"],["btn-primary",[28,[37,4],[[30,0],"sendCloseModal"],null],"close"]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,7],null,[["@icon","@action","@class","@disabled","@label"],[[30,0,["inviteIcon"]],[28,[37,4],[[30,0],"createInvite"],null],"btn-primary send-invite",[30,0,["disabled"]],[30,0,["buttonTitle"]]]],null],[1,"\\n"],[41,[30,0,["showCopyInviteButton"]],[[[1,"      "],[8,[39,7],null,[["@icon","@action","@class","@disabled","@label"],["link",[28,[37,4],[[30,0],"generateInviteLink"],null],"btn-primary generate-invite-link",[30,0,["disabledCopyLink"]],"user.invited.generate_link"]],null],[1,"\\n"]],[]],null]],[]]],[13]],[],false,["if","html-safe","generated-invite-link","email-group-user-chooser","action","hash","text-field","d-button","i18n","group-chooser","mut","discourse-linked-text","textarea"]]',moduleName:"discourse/components/invite-panel.hbs",isStrictMode:!1})
var z=(0,t.setComponentTemplate)(C,t.default.extend((m=(0,a.default)("isAdmin","invitee","invitingToTopic","isPrivateTopic","groupIds","inviteModel.saving","inviteModel.details.can_invite_to"),h=(0,a.default)("isAdmin","invitee","inviteModel.saving","isPrivateTopic","groupIds","hasCustomMessage"),f=(0,a.default)("inviteModel.saving"),g=(0,a.default)("inviteModel"),b=(0,a.default)("inviteModel","inviteModel.details.can_invite_via_email"),y=(0,a.default)("isPM","canInviteViaEmail"),_=(0,a.default)("isAdmin","inviteModel.group_users"),v=(0,a.default)("isGroupOwnerOrAdmin","invitee","isPrivateTopic","isPM","invitingToTopic","canInviteViaEmail"),w=(0,a.default)("invitee"),k=(0,a.default)("isPM","invitingToTopic","invitee","isPrivateTopic","isAdmin","canInviteViaEmail"),x=(0,a.default)("isPrivateTopic"),P=(0,a.default)("isPM","invitee","invitingExistingUserToTopic"),O=(0,a.default)("isPM"),T=(0,a.default)("canInviteViaEmail"),S={tagName:null,groupIds:null,allGroups:null,inviteModel:(0,r.alias)("panel.model.inviteModel"),userInvitedShow:(0,r.alias)("panel.model.userInvitedShow"),isStaff:(0,r.readOnly)("currentUser.staff"),isAdmin:(0,r.readOnly)("currentUser.admin"),invitee:null,isInviteeGroup:!1,hasCustomMessage:!1,customMessage:null,inviteIcon:"envelope",invitingExistingUserToTopic:!1,init(){this._super(...arguments),this.setDefaultSelectedGroups(),this.setGroupOptions()},willDestroyElement(){this._super(...arguments),this.reset()},disabled:(e,t,i,n,r,o,s)=>!!o||(!!(0,p.isEmpty)(t)||(!i&&!(0,u.emailValid)(t)||(!(e||!n||!(0,u.emailValid)(t))||!!(n&&(0,p.isEmpty)(r)&&(0,u.emailValid)(t))))),disabledCopyLink:(e,t,i,n,r,o)=>!!o||(!!i||(!!(0,p.isEmpty)(t)||(!(0,u.emailValid)(t)||(!(e||!n||!(0,u.emailValid)(t))||!!(n&&(0,p.isEmpty)(r)&&(0,u.emailValid)(t)))))),buttonTitle:e=>e?"topic.inviting":"topic.invite_reply.action",invitingToTopic(e){return e!==this.currentUser},canInviteViaEmail(e,t){return e===this.currentUser||t},showCopyInviteButton:(e,t)=>t&&!e,topicId:(0,r.alias)("inviteModel.id"),isPrivateTopic:(0,r.and)("invitingToTopic","inviteModel.category.read_restricted"),isPM:(0,r.equal)("inviteModel.archetype","private_message"),allowExistingMembers:(0,r.alias)("invitingToTopic"),isGroupOwnerOrAdmin:(e,t)=>e||t&&t.some((e=>e.owner)),showGroups:(e,t,i,n,r,o)=>e&&o&&!n&&((0,u.emailValid)(t)||i||!r),showCustomMessage(e){return this.inviteModel===this.currentUser||(0,u.emailValid)(e)},inviteInstructions(e,t,i,n,r,o){return o?e?s.default.t("topic.invite_private.email_or_username"):t?n&&!r?s.default.t("topic.invite_reply.to_username"):(0,p.isEmpty)(i)?s.default.t("topic.invite_reply.to_topic_blank"):(0,u.emailValid)(i)?(this.set("inviteIcon","envelope"),s.default.t("topic.invite_reply.to_topic_email")):(this.set("inviteIcon","hand-point-right"),s.default.t("topic.invite_reply.to_topic_username")):s.default.t("topic.invite_reply.to_forum"):s.default.t("topic.invite_reply.discourse_connect_enabled")},showGroupsClass:e=>e?"required":"optional",successMessage(e,t,i){return this.isInviteeGroup?s.default.t("topic.invite_private.success_group"):e?s.default.t("topic.invite_private.success"):i?s.default.t("topic.invite_reply.success_existing_email",{invitee:t}):(0,u.emailValid)(t)?s.default.t("topic.invite_reply.success_email",{invitee:t}):s.default.t("topic.invite_reply.success_username")},errorMessage:e=>e?s.default.t("topic.invite_private.error"):s.default.t("topic.invite_reply.error"),placeholderKey:e=>e?"topic.invite_private.email_or_username_placeholder":"topic.invite_reply.username_placeholder",showApprovalMessage:(0,r.and)("isStaff","siteSettings.must_approve_users"),customMessagePlaceholder:(0,d.i18n)("invite.custom_message_placeholder"),reset(){this.setProperties({invitee:null,isInviteeGroup:!1,hasCustomMessage:!1,customMessage:null,invitingExistingUserToTopic:!1,groupIds:[]}),this.inviteModel.setProperties({error:!1,saving:!1,finished:!1,inviteLink:null})},setDefaultSelectedGroups(){this.set("groupIds",[])},setGroupOptions(){o.default.findAll().then((e=>{this.set("allGroups",e.filterBy("automatic",!1))}))},sendCloseModal(){this.attrs.close()},createInvite(){if(this.disabled)return
const e=this.groupIds,t=this.userInvitedShow,i=this.inviteModel
i.setProperties({saving:!0,error:!1})
const r=e=>{e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors?this.set("errorMessage",e.jqXHR.responseJSON.errors[0]):this.set("errorMessage",this.isPM?s.default.t("topic.invite_private.error"):s.default.t("topic.invite_reply.error")),i.setProperties({saving:!1,error:!0})}
return this.isInviteeGroup?this.inviteModel.createGroupInvite(this.invitee.trim()).then((()=>{i.setProperties({saving:!1,finished:!0}),this.inviteModel.reload().then((()=>{this.appEvents.trigger("post-stream:refresh")}))})).catch(r):this.inviteModel.createInvite(this.invitee.trim(),e,this.customMessage).then((e=>{i.setProperties({saving:!1,finished:!0}),!this.invitingToTopic&&t?l.default.findInvitedBy(this.currentUser,t.get("filter")).then((e=>{t.setProperties({model:e,totalInvites:e.invites.length})})):this.isPM&&e&&e.user?(this.get("inviteModel.details.allowed_users").pushObject(n.default.create(e.user)),this.appEvents.trigger("post-stream:refresh",{force:!0})):this.invitingToTopic&&(0,u.emailValid)(this.invitee.trim())&&e&&e.user&&this.set("invitingExistingUserToTopic",!0)})).catch(r)},generateInviteLink(){if(this.disabled)return
const e=this.groupIds,t=this.userInvitedShow,i=this.inviteModel
let n
return i.setProperties({saving:!0,error:!1}),this.invitingToTopic&&(n=this.get("inviteModel.id")),i.generateInviteLink(this.invitee.trim(),e,n).then((e=>{i.setProperties({saving:!1,finished:!0,inviteLink:e.link}),t&&l.default.findInvitedBy(this.currentUser,t.get("filter")).then((e=>{t.setProperties({model:e,totalInvites:e.invites.length})}))})).catch((e=>{e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors?this.set("errorMessage",e.jqXHR.responseJSON.errors[0]):this.set("errorMessage",this.isPM?s.default.t("topic.invite_private.error"):s.default.t("topic.invite_reply.error")),i.setProperties({saving:!1,error:!0})}))},showCustomMessageBox(){this.toggleProperty("hasCustomMessage"),this.hasCustomMessage?this.inviteModel===this.currentUser?this.set("customMessage",s.default.t("invite.custom_message_template_forum")):this.set("customMessage",s.default.t("invite.custom_message_template_topic")):this.set("customMessage",null)},searchContact(){(0,c.getNativeContact)(this.capabilities,["email"],!1).then((e=>{this.set("invitee",e[0].email[0])}))},updateInvitee(e,t){let i=t.findBy("id",e[0])
!i&&t.length&&(i="string"==typeof t[0]?{id:t[0]}:t[0]),i?this.setProperties({invitee:i.id.trim(),isInviteeGroup:i.isGroup||!1}):this.setProperties({invitee:null,isInviteeGroup:!1})}},j(S,"disabled",[m],Object.getOwnPropertyDescriptor(S,"disabled"),S),j(S,"disabledCopyLink",[h],Object.getOwnPropertyDescriptor(S,"disabledCopyLink"),S),j(S,"buttonTitle",[f],Object.getOwnPropertyDescriptor(S,"buttonTitle"),S),j(S,"invitingToTopic",[g],Object.getOwnPropertyDescriptor(S,"invitingToTopic"),S),j(S,"canInviteViaEmail",[b],Object.getOwnPropertyDescriptor(S,"canInviteViaEmail"),S),j(S,"showCopyInviteButton",[y],Object.getOwnPropertyDescriptor(S,"showCopyInviteButton"),S),j(S,"isGroupOwnerOrAdmin",[_],Object.getOwnPropertyDescriptor(S,"isGroupOwnerOrAdmin"),S),j(S,"showGroups",[v],Object.getOwnPropertyDescriptor(S,"showGroups"),S),j(S,"showCustomMessage",[w],Object.getOwnPropertyDescriptor(S,"showCustomMessage"),S),j(S,"inviteInstructions",[k],Object.getOwnPropertyDescriptor(S,"inviteInstructions"),S),j(S,"showGroupsClass",[x],Object.getOwnPropertyDescriptor(S,"showGroupsClass"),S),j(S,"successMessage",[P],Object.getOwnPropertyDescriptor(S,"successMessage"),S),j(S,"errorMessage",[O],Object.getOwnPropertyDescriptor(S,"errorMessage"),S),j(S,"placeholderKey",[T],Object.getOwnPropertyDescriptor(S,"placeholderKey"),S),j(S,"sendCloseModal",[n.action],Object.getOwnPropertyDescriptor(S,"sendCloseModal"),S),j(S,"createInvite",[n.action],Object.getOwnPropertyDescriptor(S,"createInvite"),S),j(S,"generateInviteLink",[n.action],Object.getOwnPropertyDescriptor(S,"generateInviteLink"),S),j(S,"showCustomMessageBox",[n.action],Object.getOwnPropertyDescriptor(S,"showCustomMessageBox"),S),j(S,"searchContact",[n.action],Object.getOwnPropertyDescriptor(S,"searchContact"),S),j(S,"updateInvitee",[n.action],Object.getOwnPropertyDescriptor(S,"updateInvitee"),S),S)))
e.default=z})),define("discourse/components/latest-topic-list-item",["exports","@ember/component","@ember/template-factory","discourse/components/topic-list-item","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"JVtE5ShY",block:'[[[8,[39,0],null,[["@name","@connectorTagName"],["above-latest-topic-list-item","div"]],null],[1,"\\n"],[10,0],[14,0,"topic-poster"],[12],[1,"\\n  "],[8,[39,1],null,[["@user"],[[30,0,["topic","lastPosterUser"]]]],[["default"],[[[[1,"\\n    "],[1,[28,[35,2],[[30,0,["topic","lastPosterUser"]]],[["imageSize"],["large"]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[39,3],null,[["@user"],[[30,0,["topic","lastPosterUser"]]]],null],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"main-link"],[12],[1,"\\n  "],[10,0],[14,0,"top-row"],[12],[1,"\\n    "],[1,[28,[35,4],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n    "],[1,[28,[35,5],[[30,0,["topic"]]],null]],[41,[30,0,["topic","featured_link"]],[[[1,"      "],[1,[28,[35,7],[[30,0,["topic"]]],null]],[1,"\\n"]],[]],null],[1,"    "],[8,[39,8],null,[["@unreadPosts","@unseen","@url"],[[30,0,["topic","unread_posts"]],[30,0,["topic","unseen"]],[30,0,["topic","lastUnreadUrl"]]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"bottom-row"],[12],[1,"\\n    "],[1,[28,[35,9],[[30,0,["topic","category"]]],null]],[1,[28,[35,10],[[30,0,["topic"]]],[["mode"],["list"]]]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"topic-stats"],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item-post-count","div",[28,[37,11],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n  "],[1,[28,[35,4],["list/posts-count-column"],[["topic","tagName"],[[30,0,["topic"]],"div"]]]],[1,"\\n  "],[10,0],[14,0,"topic-last-activity"],[12],[1,"\\n    "],[10,3],[15,6,[30,0,["topic","lastPostUrl"]]],[15,"title",[30,0,["topic","bumpedAtTitle"]]],[12],[1,[28,[35,12],[[30,0,["topic","bumpedAt"]]],[["format","noTitle"],["tiny","true"]]]],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["plugin-outlet","user-link","avatar","user-avatar-flair","raw","topic-link","if","topic-featured-link","topic-post-badges","category-link","discourse-tags","hash","format-date"]]',moduleName:"discourse/components/latest-topic-list-item.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((o=(0,r.default)("topic"),s={attributeBindings:["topic.id:data-topic-id"],classNameBindings:[":latest-topic-list-item","unboundClassNames"],showEntrance:n.showEntrance,navigateToTopic:n.navigateToTopic,click(e){return!1!==this.showEntrance(e)&&this.unhandledRowClick(e,this.topic)},unhandledRowClick(){},unboundClassNames(e){let t=[]
return e.get("category")&&t.push("category-"+e.get("category.fullSlug")),e.get("tags")&&e.get("tags").forEach((e=>t.push("tag-"+e))),["liked","archived","bookmarked","pinned","closed","visited"].forEach((i=>{e.get(i)&&t.push(i)})),t.join(" ")}},a=s,u="unboundClassNames",c=[o],d=Object.getOwnPropertyDescriptor(s,"unboundClassNames"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/link-to-input",["exports","@ember/component","@ember/template-factory","@ember/runloop"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"O5u4qHpi",block:'[[[41,[30,0,["showInput"]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]],[[[1,"  "],[10,3],[14,6,""],[12],[1,"\\n"],[41,[30,0,["key"]],[[[1,"      "],[1,[28,[35,2],[[30,0,["key"]]],null]],[1,"\\n"]],[]],null],[41,[30,0,["icon"]],[[[1,"      "],[1,[28,[35,3],[[30,0,["icon"]]],null]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["&default"],false,["if","yield","i18n","d-icon"]]',moduleName:"discourse/components/link-to-input.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({showInput:!1,click(){return this.onClick(),(0,n.schedule)("afterRender",(()=>{$(this.element).find("input").focus()})),!1}}))
e.default=o})),define("discourse/components/links-redirect",["exports","discourse/lib/click-track","@ember/component"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=i.default.extend({click(e){if("A"===e?.target?.tagName)return t.default.trackClick(e,this.siteSettings)}})
e.default=n})),define("discourse/components/load-more",["exports","@ember/component","discourse/mixins/load-more"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend(i.default,{init(){this._super(...arguments),this.set("eyelineSelector",this.selector)},actions:{loadMore(){this.action()}}})
e.default=n})),define("discourse/components/loading-slider-fallback-spinner",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"m+Umja1h",block:'[[[41,[30,0,["loadingSlider","stillLoading"]],[[[1,"  "],[10,0],[14,0,"loading-slider-fallback-spinner"],[12],[1,[34,1]],[13],[1,"\\n"]],[]],null]],[],false,["if","loading-spinner"]]',moduleName:"discourse/components/loading-slider-fallback-spinner.hbs",isStrictMode:!1})
let a=(o=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="loadingSlider",n=this,(i=s)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}},u=o.prototype,c="loadingSlider",d=[r.inject],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),s=h,o)
var u,c,d,p,m,h
e.default=a,(0,t.setComponentTemplate)(l,a)})),define("discourse/components/login-buttons",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","discourse/models/login-method"],(function(e,t,i,n,r){var o
function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"QLQXuuL/",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["buttons"]]],null]],null],null,[[[1,"  "],[11,"button"],[16,0,[29,["btn btn-social ",[30,1,["name"]]]]],[16,"aria-label",[30,1,["screenReaderTitle"]]],[24,"tabindex","3"],[24,4,"button"],[4,[38,2],["click",[28,[37,3],[[30,0],[30,0,["externalLogin"]],[30,1]],null]],null],[12],[1,"\\n"],[41,[30,1,["isGoogle"]],[[[1,"      "],[8,[39,5],null,null,null],[1,"\\n"]],[]],[[[41,[30,1,["icon"]],[[[1,"      "],[1,[28,[35,6],[[30,1,["icon"]]],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,6],["sign-in-alt"],null]],[1,"\\n    "]],[]]]],[]]],[1,"    "],[1,[30,1,["title"]]],[1,"\\n  "],[13],[1,"\\n"]],[1]],null],[8,[39,7],null,[["@name"],["after-login-buttons"]],null]],["b"],false,["each","-track-array","on","action","if","google-icon","d-icon","plugin-outlet"]]',moduleName:"discourse/components/login-buttons.hbs",isStrictMode:!1})
var a=(0,t.setComponentTemplate)(l,t.default.extend((s(o={elementId:"login-buttons",classNameBindings:["hidden"],hidden:(e,t)=>0===e&&!t,buttons:()=>(0,r.findAll)(),actions:{externalLogin(e){this.externalLogin(e)}}},"hidden",[(0,n.default)("buttons.length","showLoginWithEmailLink")],Object.getOwnPropertyDescriptor(o,"hidden"),o),s(o,"buttons",[n.default],Object.getOwnPropertyDescriptor(o,"buttons"),o),o)))
e.default=a})),define("discourse/components/login-modal",["exports","@ember/component","discourse/lib/cookie","@ember/runloop"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({didInsertElement(){this._super(...arguments)
const e=$("#hidden-login-form input[name=username]").val()
e?(this.set("loginName",e),this.set("loginPassword",$("#hidden-login-form input[name=password]").val())):(0,i.default)("email")&&this.set("loginName",(0,i.default)("email")),(0,n.schedule)("afterRender",(()=>{$("#login-account-password, #login-account-name, #login-second-factor").keydown((e=>{"Enter"===e.key&&this.action()}))}))}})
e.default=r})),define("discourse/components/menu-panel",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"o6oAg5CT",block:'[[[10,0],[15,0,[28,[37,0],["menu-panel",[30,1]],null]],[14,"data-max-width","500"],[12],[1,"\\n  "],[10,0],[14,0,"panel-body"],[12],[1,"\\n    "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n      "],[18,2,null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["@animationClass","&default"],false,["concat-class","yield"]]',moduleName:"discourse/components/menu-panel.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/mobile-category-topic",["exports","@ember/component","@ember/template-factory","discourse/components/topic-list-item"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"vbE3wQWQ",block:'[[[10,"td"],[14,0,"main-link"],[12],[1,"\\n  "],[10,0],[14,0,"topic-inset"],[12],[1,"\\n    "],[1,[28,[35,0],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n    "],[1,[28,[35,1],[[30,0,["topic"]]],null]],[1,"\\n"],[41,[30,0,["topic","unseen"]],[[[1,"      "],[10,1],[14,0,"badge-notification new-topic"],[12],[13],[1,"\\n"]],[]],null],[1,"    "],[10,1],[15,0,[28,[37,3],[[30,0,["topic","last_posted_at"]]],null]],[15,"title",[28,[37,4],[[30,0,["topic","last_posted_at"]]],null]],[12],[1,[28,[35,5],[[30,0,["topic","last_posted_at"]]],null]],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,"td"],[14,0,"num posts"],[12],[1,[28,[35,0],["list/post-count-or-badges"],[["topic","postBadgesEnabled"],[[30,0,["topic"]],"true"]]]],[13]],[],false,["raw","topic-link","if","cold-age-class","raw-date","format-age"]]',moduleName:"discourse/components/mobile-category-topic.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({tagName:"tr",classNameBindings:[":category-topic-link","topic.archived","topic.visited"],click:n.showEntrance}))
e.default=o})),define("discourse/components/mobile-nav",["exports","discourse-common/utils/decorators","@ember/component","@ember/object","@ember/runloop","@ember/service","discourse-common/lib/deprecated"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=i.default.extend((l=(0,t.on)("init"),a={_init(){if(!this.get("site.mobileView")){let e=this.desktopClass
e&&(e=e.split(" "),this.set("classNames",e))}this.currentPath&&(0,s.default)("{{mobile-nav}} no longer requires the currentPath property",{since:"2.7.0.beta4",dropFrom:"2.9.0.beta1",id:"discourse.mobile-nav.currentPath"})},tagName:"ul",selectedHtml:null,classNames:["mobile-nav"],router:(0,o.inject)(),currentRouteChanged(){this.set("expanded",!1),(0,r.next)((()=>this._updateSelectedHtml()))},_updateSelectedHtml(){if(!this.element||this.isDestroying||this.isDestroyed)return
const e=this.element.querySelector(".active")
e&&e.innerHTML&&this.set("selectedHtml",e.innerHTML)},didInsertElement(){this._super(...arguments),this._updateSelectedHtml(),this.router.on("routeDidChange",this,this.currentRouteChanged)},willDestroyElement(){this.router.off("routeDidChange",this,this.currentRouteChanged)},toggleExpanded(e){e?.preventDefault(),this.toggleProperty("expanded"),(0,r.next)((()=>{this.expanded&&$(window).off("click.mobile-nav").on("click.mobile-nav",(e=>{if(!this.element||this.isDestroying||this.isDestroyed)return
const t=this.element.querySelector(".expander")
t&&e.target!==t&&(this.set("expanded",!1),$(window).off("click.mobile-nav"))}))}))}},u(a,"_init",[l],Object.getOwnPropertyDescriptor(a,"_init"),a),u(a,"toggleExpanded",[n.action],Object.getOwnPropertyDescriptor(a,"toggleExpanded"),a),a))
e.default=c})),define("discourse/components/modal-container",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/object"],(function(e,t,i,n,r,o){var s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"fb4BMvXD",block:'[[[11,0],[24,0,"modal-container"],[4,[38,0],[[30,0,["modal","setContainerElement"]]],null],[12],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["modal","activeModal"]],[[[42,[28,[37,3],[[28,[37,3],[[28,[37,4],[[30,0,["modal","activeModal"]]],null]],null]],null],null,[[[1,"    "],[8,[30,1,["component"]],null,[["@model","@closeModal"],[[30,1,["opts","model"]],[30,0,["closeModal"]]]],null],[1,"\\n"]],[1]],null]],[]],null],[1,"\\n"],[8,[39,5],null,[["@modalClass","@title","@titleAriaElementId","@panels","@selectedPanel","@onSelectPanel","@hidden","@errors","@closeModal"],[[52,[30,0,["modal","isLegacy"]],[28,[37,6],["modal","d-modal",[30,0,["modal","modalClass"]],[52,[30,0,["modal","opts","panels"]],"has-tabs"]],null]],[30,0,["modal","title"]],[30,0,["modal","opts","titleAriaElementId"]],[30,0,["modal","opts","panels"]],[30,0,["modal","selectedPanel"]],[30,0,["modal","onSelectPanel"]],[30,0,["modal","hidden"]],[30,0,["modal","errors"]],[30,0,["closeModal"]]]],[["default"],[[[[1,"\\n  "],[46,[28,[37,8],["modalBody"],null],null,null,null],[1,"\\n"]],[]]]]]],["activeModal"],false,["did-insert","if","each","-track-array","array","d-modal-legacy","concat-class","component","-outlet"]]',moduleName:"discourse/components/modal-container.hbs",isStrictMode:!1})
let c=(s=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="modal",n=this,(i=l)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}closeModal(e){this.modal.close(e)}},l=a(s.prototype,"modal",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a(s.prototype,"closeModal",[o.action],Object.getOwnPropertyDescriptor(s.prototype,"closeModal"),s.prototype),s)
e.default=c,(0,t.setComponentTemplate)(u,c)})),define("discourse/components/modal-footer-close",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"GXOYbIIB",block:'[[[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,0],null,[["@class","@action","@label"],["btn-primary",[28,[37,1],["closeModal"],null],"close"]],null],[1,"\\n"],[13]],[],false,["d-button","route-action"]]',moduleName:"discourse/components/modal-footer-close.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/modal-panel",["exports","@ember/component","@ember/template-factory","discourse/lib/computed"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"EsquPdWp",block:'[[[46,[30,0,["panelComponent"]],null,[["panel","close"],[[30,0,["panel"]],[28,[37,1],["closeModal"],null]]],null]],[],false,["component","route-action"]]',moduleName:"discourse/components/modal-panel.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({panel:null,panelComponent:(0,n.fmt)("panel.id","%@-panel"),classNameBindings:["panel.id"],classNames:["modal-panel"]}))
e.default=o})),define("discourse/components/modal-tab",["exports","@ember/component","@ember/template-factory","I18n","discourse-common/utils/decorators","@ember/object/computed","discourse/lib/computed"],(function(e,t,i,n,r,o,s){var l,a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"ud88QZyP",block:'[[[1,[30,0,["title"]]]],[],false,[]]',moduleName:"discourse/components/modal-tab.hbs",isStrictMode:!1})
var c,d,p,m,h,f,g=(0,t.setComponentTemplate)(u,t.default.extend((l=(0,r.default)("panel.title","panel.rawTitle"),a={tagName:"li",classNames:["modal-tab"],panel:null,selectedPanel:null,panelsLength:null,classNameBindings:["isActive","singleTab","panel.id"],singleTab:(0,o.equal)("panelsLength",1),isActive:(0,s.propertyEqual)("panel.id","selectedPanel.id"),title:(e,t)=>e?n.default.t(e):t,click(){this.set("selectedPanel",this.panel),this.onSelectPanel&&this.onSelectPanel(this.panel)}},c=a,d="title",p=[l],m=Object.getOwnPropertyDescriptor(a,"title"),h=a,f={},Object.keys(m).forEach((function(e){f[e]=m[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),f),h&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(h):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(c,d,f),f=null),a)))
e.default=g})),define("discourse/components/modal/activation-edit",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","discourse/lib/user-activation","discourse/components/modal/activation-resent"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m
function h(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"2N97crKX",block:'[[[8,[39,0],null,[["@closeModal","@title","@flash"],[[30,1],[28,[37,1],["login.change_email"],null],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n    "],[8,[39,2],null,[["@email","@updateNewEmail"],[[30,2,["newEmail"]],[30,0,["updateNewEmail"]]]],null],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["changeEmail"]],"login.submit_new_email",[30,0,["submitDisabled"]]]],null],[1,"\\n    "],[8,[39,3],null,[["@action","@label"],[[30,1],"close"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","activation-email-form","d-button"]]',moduleName:"discourse/components/modal/activation-edit.hbs",isStrictMode:!1})
let b=(u=class extends n.default{constructor(){super(...arguments),h(this,"login",c,this),h(this,"modal",d,this),h(this,"newEmail",p,this),h(this,"flash",m,this)}get submitDisabled(){return this.newEmail===this.args.model.currentEmail}changeEmail(){(0,l.changeEmail)({username:this.login?.loginName,password:this.login?.loginPassword,email:this.args.model.newEmail}).then((()=>{this.modal.show(a.default,{model:{currentEmail:this.args.model.newEmail}})})).catch((e=>this.flash=e))}updateNewEmail(e){this.newEmail=e.target.value}},c=f(u.prototype,"login",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=f(u.prototype,"modal",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=f(u.prototype,"newEmail",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.newEmail}}),m=f(u.prototype,"flash",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(u.prototype,"changeEmail",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"changeEmail"),u.prototype),f(u.prototype,"updateNewEmail",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"updateNewEmail"),u.prototype),u)
e.default=b,(0,t.setComponentTemplate)(g,b)})),define("discourse/components/modal/activation-resent",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"m2FNS6ta",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["log_in"],null],[30,1]]],[["body"],[[[[1,"\\n    "],[1,[28,[35,2],[[28,[37,1],["login.sent_activation_email_again"],[["currentEmail"],[[30,2,["currentEmail"]]]]]],null]],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","html-safe"]]',moduleName:"discourse/components/modal/activation-resent.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/modal/customize-form-template-view",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@ember/service","I18n","discourse/lib/ajax-error","discourse/lib/ajax","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m
function h(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"2x9+Frg2",block:'[[[8,[39,0],[[24,0,"customize-form-template-view-modal"]],[["@title","@closeModal"],[[30,1,["name"]],[30,2]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,1],[[24,0,"form-templates__preview-toggle"],[4,[38,2],["click",[30,0,["togglePreview"]]],null]],[["@state","@label"],[[30,0,["showPreview"]],"admin.form_templates.view_template.toggle_preview"]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["showPreview"]],[[[1,"      "],[8,[39,4],null,[["@id"],[[30,1,["id"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,5],null,[["@lang","@code"],["yaml",[30,1,["template"]]]],null],[1,"\\n"]],[]]],[1,"  "]],[]],[[[1,"\\n    "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["editTemplate"]],"pencil-alt","admin.form_templates.view_template.edit"]],null],[1,"\\n    "],[8,[39,7],null,[["@close"],[[30,2]]],null],[1,"\\n    "],[8,[39,6],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[30,0,["deleteTemplate"]],"trash-alt","admin.form_templates.view_template.delete"]],null],[1,"\\n  "]],[]]]]]],["@model","@closeModal"],false,["d-modal","d-toggle-switch","on","if","form-template-field/wrapper","highlighted-code","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/customize-form-template-view.hbs",isStrictMode:!1})
let b=(c=class extends n.default{constructor(){super(...arguments),h(this,"router",d,this),h(this,"dialog",p,this),h(this,"showPreview",m,this)}togglePreview(){this.showPreview=!this.showPreview}editTemplate(){this.router.transitionTo("adminCustomizeFormTemplates.edit",this.model)}deleteTemplate(){return this.dialog.yesNoConfirm({message:s.default.t("admin.form_templates.delete_confirm",{template_name:this.model.name}),didConfirm:()=>{(0,a.ajax)(`/admin/customize/form-templates/${this.model.id}.json`,{type:"DELETE"}).then((()=>{this.args.refreshModel()})).catch(l.popupAjaxError)}})}},d=f(c.prototype,"router",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=f(c.prototype,"dialog",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=f(c.prototype,"showPreview",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f(c.prototype,"togglePreview",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"togglePreview"),c.prototype),f(c.prototype,"editTemplate",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"editTemplate"),c.prototype),f(c.prototype,"deleteTemplate",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"deleteTemplate"),c.prototype),c)
e.default=b,(0,t.setComponentTemplate)(g,b)}))
define("discourse/components/modal/dismiss-new",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object"],(function(e,t,i,n,r){var o
function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"mdSzRY/S",block:'[[[8,[39,0],null,[["@closeModal","@title"],[[30,1],[28,[37,1],["topics.bulk.dismiss_new_modal.title"],null]]],[["body","footer"],[[[[1,"\\n    "],[10,2],[12],[1,"\\n      "],[8,[39,2],null,[["@labelKey","@checked","@class"],["topics.bulk.dismiss_new_modal.topics",[30,0,["dismissTopics"]],"dismiss-topics"]],null],[1,"\\n      "],[8,[39,2],null,[["@labelKey","@checked","@class"],["topics.bulk.dismiss_new_modal.posts",[30,0,["dismissPosts"]],"dismiss-posts"]],null],[1,"\\n      "],[8,[39,2],null,[["@labelKey","@checked","@class"],["topics.bulk.dismiss_new_modal.untrack",[30,0,["untrack"]],"untrack"]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,1,"dismiss-read-confirm"],[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["dismissed"]],"check","topics.bulk.dismiss"]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","preference-checkbox","d-button"]]',moduleName:"discourse/components/modal/dismiss-new.hbs",isStrictMode:!1})
let a=(o=class extends n.default{constructor(){super(...arguments),s(this,"dismissTopics",!0),s(this,"dismissPosts",!0),s(this,"untrack",!1)}dismissed(){this.args.model.dismissCallback({dismissTopics:this.dismissTopics,dismissPosts:this.dismissPosts,untrack:this.untrack}),this.args.closeModal()}},u=o.prototype,c="dismissed",d=[r.action],p=Object.getOwnPropertyDescriptor(o.prototype,"dismissed"),m=o.prototype,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),o)
var u,c,d,p,m,h
e.default=a,(0,t.setComponentTemplate)(l,a)})),define("discourse/components/modal/dismiss-notification-confirmation",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"uP5EhAqN",block:'[[[8,[39,0],[[24,0,"dismiss-notification-confirmation"]],[["@headerClass","@closeModal"],["hidden",[30,1]]],[["body","footer"],[[[[1,"\\n    "],[1,[30,2,["confirmationMessage"]]],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,1],[[24,0,"btn-primary"]],[["@icon","@action","@label"],["check",[30,0,["dismiss"]],"notifications.dismiss_confirmation.dismiss"]],null],[1,"\\n    "],[8,[39,1],[[24,0,"btn-default"]],[["@action","@label"],[[30,1],"notifications.dismiss_confirmation.cancel"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","d-button"]]',moduleName:"discourse/components/modal/dismiss-notification-confirmation.hbs",isStrictMode:!1})
let l=(o=class extends n.default{dismiss(){this.args.model?.dismissNotifications?.(),this.args.closeModal()}},a=o.prototype,u="dismiss",c=[r.action],d=Object.getOwnPropertyDescriptor(o.prototype,"dismiss"),p=o.prototype,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),o)
var a,u,c,d,p,m
e.default=l,(0,t.setComponentTemplate)(s,l)})),define("discourse/components/modal/dismiss-read",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"yS+Xv4Y7",block:'[[[8,[39,0],[[24,0,"dismiss-read-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],[[30,2,["title"]]],[["count"],[[30,2,["count"]]]]]]],[["body","footer"],[[[[1,"\\n    "],[10,2],[12],[1,"\\n      "],[8,[39,2],null,[["@labelKey","@checked"],["topics.bulk.also_dismiss_topics",[30,0,["dismissTopics"]]]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"],[24,1,"dismiss-read-confirm"]],[["@action","@icon","@label"],[[28,[37,4],["dismissReadTopics",[30,0,["dismissTopics"]]],null],"check","topics.bulk.dismiss"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","preference-checkbox","d-button","route-action"]]',moduleName:"discourse/components/modal/dismiss-read.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/modal/do-not-disturb",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@glimmer/tracking","@ember/service"],(function(e,t,i,n,r,o,s){var l,a,u,c
function d(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"Nvt2jk94",block:'[[[8,[39,0],[[24,0,"do-not-disturb-modal"]],[["@title","@closeModal","@flash"],[[28,[37,1],["pause_notifications.title"],null],[30,1],[30,0,["flash"]]]],[["body"],[[[[1,"\\n    "],[8,[39,2],null,null,[["default"],[[[[1,"\\n      "],[8,[39,3],null,[["@class","@tileId","@activeTile","@onChange"],["do-not-disturb-tile","30",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,1],["pause_notifications.options.half_hour"],null]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[39,3],null,[["@class","@tileId","@activeTile","@onChange"],["do-not-disturb-tile","60",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,1],["pause_notifications.options.one_hour"],null]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[39,3],null,[["@class","@tileId","@activeTile","@onChange"],["do-not-disturb-tile","120",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,1],["pause_notifications.options.two_hours"],null]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[39,3],null,[["@class","@tileId","@activeTile","@onChange"],["do-not-disturb-tile","tomorrow",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,1],["pause_notifications.options.tomorrow"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[2]]]]],[1,"\\n\\n    "],[8,[39,4],null,[["@action","@label"],[[30,0,["navigateToNotificationSchedule"]],"pause_notifications.set_schedule"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","grid"],false,["d-modal","i18n","tap-tile-grid","tap-tile","d-button"]]',moduleName:"discourse/components/modal/do-not-disturb.hbs",isStrictMode:!1})
let h=(l=class extends n.default{constructor(){super(...arguments),d(this,"currentUser",a,this),d(this,"router",u,this),d(this,"flash",c,this)}async saveDuration(e){try{await this.currentUser.enterDoNotDisturbFor(e),this.args.closeModal()}catch(t){this.flash=t}}navigateToNotificationSchedule(){this.router.transitionTo("preferences.notifications",this.currentUser),this.args.closeModal()}},a=p(l.prototype,"currentUser",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=p(l.prototype,"router",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(l.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(l.prototype,"saveDuration",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"saveDuration"),l.prototype),p(l.prototype,"navigateToNotificationSchedule",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"navigateToNotificationSchedule"),l.prototype),l)
e.default=h,(0,t.setComponentTemplate)(m,h)})),define("discourse/components/modal/form-template-form-preview",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"pchady3e",block:'[[[8,[39,0],[[24,0,"form-template-form-preview-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["admin.form_templates.preview_modal.title"],null]]],[["body"],[[[[1,"\\n    "],[8,[39,2],null,[["@content"],[[30,2]]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@content"],false,["d-modal","i18n","form-template-field/wrapper"]]',moduleName:"discourse/components/modal/form-template-form-preview.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/modal/fullscreen-code",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@ember/service","discourse/lib/highlight-syntax","discourse/lib/codeblock-buttons"],(function(e,t,i,n,r,o,s,l){var a,u,c
function d(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"lnTl7U5+",block:'[[[8,[39,0],[[24,0,"fullscreen-code-modal"],[4,[38,1],[[30,0,["applyCodeblockButtons"]]],null]],[["@closeModal"],[[30,0,["closeModal"]]]],[["body"],[[[[1,"\\n    "],[10,"pre"],[12],[1,"      "],[10,"code"],[15,0,[30,1,["codeClasses"]]],[12],[1,[30,1,["code"]]],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]]],["@model"],false,["d-modal","did-insert"]]',moduleName:"discourse/components/modal/fullscreen-code.hbs",isStrictMode:!1})
let h=(a=class extends n.default{constructor(){super(...arguments),d(this,"siteSettings",u,this),d(this,"session",c,this)}closeModal(){this.codeBlockButtons.cleanup(),this.args.closeModal()}applyCodeblockButtons(e){const t=e.querySelector(".modal-body");(0,s.default)(t,this.siteSettings,this.session),this.codeBlockButtons=new l.default({showFullscreen:!1,showCopy:!0}),this.codeBlockButtons.attachToGeneric(t)}},u=p(a.prototype,"siteSettings",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(a.prototype,"session",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(a.prototype,"closeModal",[r.action],Object.getOwnPropertyDescriptor(a.prototype,"closeModal"),a.prototype),p(a.prototype,"applyCodeblockButtons",[r.action],Object.getOwnPropertyDescriptor(a.prototype,"applyCodeblockButtons"),a.prototype),a)
e.default=h,(0,t.setComponentTemplate)(m,h)})),define("discourse/components/modal/fullscreen-table",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"Jy0xGDEL",block:'[[[8,[39,0],[[24,0,"fullscreen-table-modal"]],[["@closeModal"],[[30,1]]],[["body"],[[[[1,"\\n    "],[1,[30,2,["tableHtml"]]],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal"]]',moduleName:"discourse/components/modal/fullscreen-table.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/modal/group-add-members",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@ember/utils","@glimmer/tracking","discourse/lib/utilities","I18n","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f,g,b
function y(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function _(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v=(0,i.createTemplateFactory)({id:"SeI+koFz",block:'[[[8,[39,0],[[24,0,"group-add-members-modal"]],[["@title","@closeModal","@flash"],[[30,0,["title"]],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n    "],[10,"form"],[14,0,"form-vertical group-add-members"],[12],[1,"\\n      "],[10,2],[12],[1,[28,[35,1],["groups.add_members.description"],null]],[13],[1,"\\n      "],[10,0],[14,0,"input-group"],[12],[1,"\\n        "],[8,[39,2],null,[["@value","@onChange","@options"],[[30,0,["usernamesAndEmails"]],[30,0,["setUsernamesAndEmails"]],[28,[37,3],null,[["allowEmails","filterPlaceholder"],[[30,0,["currentUser","can_invite_to_forum"]],[52,[30,0,["currentUser","can_invite_to_forum"]],"groups.add_members.usernames_or_emails_placeholder","groups.add_members.usernames_placeholder"]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,2,["can_admin_group"]],[[[1,"        "],[10,0],[14,0,"input-group"],[12],[1,"\\n          "],[10,"label"],[12],[1,"\\n            "],[8,[39,5],[[24,1,"set-owner"],[16,"disabled",[30,0,["emails"]]]],[["@type","@checked"],["checkbox",[30,0,["setOwner"]]]],null],[1,"\\n            "],[1,[28,[35,1],["groups.add_members.set_owner"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"input-group"],[12],[1,"\\n        "],[10,"label"],[12],[1,"\\n          "],[8,[39,5],[[16,"disabled",[28,[37,6],[[28,[37,7],[[30,0,["usernames"]]],null],[30,0,["emails"]]],null]]],[["@type","@checked"],["checkbox",[30,0,["notifyUsers"]]]],null],[1,"\\n          "],[1,[28,[35,1],["groups.add_members.notify_users"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,8],[[24,0,"add btn-primary"]],[["@action","@icon","@disabled","@label"],[[30,0,["addMembers"]],"plus",[28,[37,9],[[30,0,["loading"]],[28,[37,7],[[30,0,["usernamesAndEmails"]]],null]],null],"groups.add"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","email-group-user-chooser","hash","if","input","and","not","d-button","or"]]',moduleName:"discourse/components/modal/group-add-members.hbs",isStrictMode:!1})
let w=(c=class extends n.default{constructor(){super(...arguments),y(this,"currentUser",d,this),y(this,"router",p,this),y(this,"loading",m,this),y(this,"setOwner",h,this),y(this,"notifyUsers",f,this),y(this,"usernamesAndEmails",g,this),y(this,"flash",b,this)}get title(){return a.default.t("groups.add_members.title",{group_name:this.args.model.fullName||this.args.model.name})}get usernames(){return this.usernamesAndEmails.reject(l.emailValid).join(",")}get emails(){return this.usernamesAndEmails.filter(l.emailValid).join(",")}setUsernamesAndEmails(e){this.usernamesAndEmails=e,this.emails&&(this.usernames||(this.notifyUsers=!1),this.setOwner=!1)}addMembers(){if((0,o.isEmpty)(this.usernamesAndEmails))return
this.loading=!0;(this.setOwner?this.args.model.addOwners(this.usernames,!0,this.notifyUsers):this.args.model.addMembers(this.usernames,!0,this.notifyUsers,this.emails)).then((()=>{this.router.transitionTo("group.members",this.args.model.name,{queryParams:{...this.usernames&&{filter:this.usernames}}}),this.args.closeModal()})).catch((e=>this.flash=e)).finally((()=>this.loading=!1))}},d=_(c.prototype,"currentUser",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=_(c.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=_(c.prototype,"loading",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=_(c.prototype,"setOwner",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=_(c.prototype,"notifyUsers",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=_(c.prototype,"usernamesAndEmails",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),b=_(c.prototype,"flash",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_(c.prototype,"setUsernamesAndEmails",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"setUsernamesAndEmails"),c.prototype),_(c.prototype,"addMembers",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"addMembers"),c.prototype),c)
e.default=w,(0,t.setComponentTemplate)(v,w)})),define("discourse/components/modal/json-schema-editor",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","discourse-common/utils/decorators","virtual-dom","discourse-common/lib/icon-library","discourse/lib/load-script","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h
function f(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=(0,i.createTemplateFactory)({id:"O3ggFh3E",block:'[[[8,[39,0],[[24,0,"json-schema-editor-modal"]],[["@flash","@flashType","@closeModal","@title"],[[30,0,["flash"]],[30,0,["flashType"]],[30,1],[28,[37,1],["admin.site_settings.json_schema.modal_title"],[["name"],[[30,2]]]]]],[["body","footer"],[[[[1,"\\n    "],[11,0],[24,1,"json-editor-holder"],[4,[38,2],[[30,0,["buildJsonEditor"]]],null],[4,[38,3],[[30,0,["teardownJsonEditor"]]],null],[12],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,4],null,[["@class","@action","@label"],["btn-primary",[30,0,["saveChanges"]],"save"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@settingName"],false,["d-modal","i18n","did-insert","will-destroy","d-button"]]',moduleName:"discourse/components/modal/json-schema-editor.hbs",isStrictMode:!1})
let y=(c=class extends n.default{constructor(){super(...arguments),f(this,"editor",d,this),f(this,"value",p,this),f(this,"flash",m,this),f(this,"flashType",h,this)}get settingName(){return this.args.settingName.replace(/\_/g," ")}buildJsonEditor(e){(0,a.default)("/javascripts/jsoneditor.js").then(this._loadEditor.bind(this,e))}teardownJsonEditor(){this.editor?.destroy()}saveChanges(){const e=this.editor.validate()
e.length?(this.flash=e.mapBy("message").join("\n"),this.flashType="error"):(this.value=JSON.stringify(this.editor.getValue()),this.args.updateValue(this.value),this.args.closeModal())}_loadEditor(e){let{JSONEditor:t}=window
t.defaults.options.theme="bootstrap4",t.defaults.iconlibs={discourseIcons:_},t.defaults.options.iconlib="discourseIcons",this.editor=new t(e,{schema:this.args.jsonSchema,disable_array_delete_all_rows:!0,disable_array_delete_last_row:!0,disable_array_reorder:!1,disable_array_copy:!1,enable_array_copy:!0,disable_edit_json:!0,disable_properties:!0,disable_collapse:!1,remove_button_labels:!0,show_errors:"never",startval:this.value?JSON.parse(this.value):null})}},d=g(c.prototype,"editor",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=g(c.prototype,"value",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.value}}),m=g(c.prototype,"flash",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=g(c.prototype,"flashType",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g(c.prototype,"buildJsonEditor",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"buildJsonEditor"),c.prototype),g(c.prototype,"teardownJsonEditor",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"teardownJsonEditor"),c.prototype),g(c.prototype,"saveChanges",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"saveChanges"),c.prototype),g(c.prototype,"_loadEditor",[o.afterRender],Object.getOwnPropertyDescriptor(c.prototype,"_loadEditor"),c.prototype),c)
e.default=y
class _{constructor(){this.mapping={delete:"trash-alt",add:"plus",moveup:"arrow-up",movedown:"arrow-down",copy:"copy",collapse:"chevron-down",expand:"chevron-up"}}getIcon(e){if(this.mapping[e])return(0,s.create)((0,l.iconNode)(this.mapping[e]))}}(0,t.setComponentTemplate)(b,y)})),define("discourse/components/modal/keyboard-shortcuts-help",["exports","@ember/component","@ember/template-factory","@glimmer/component","I18n","discourse/lib/utilities","discourse/lib/keyboard-shortcuts","@ember/service"],(function(e,t,i,n,r,o,s,l){var a,u
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"JmrDmfbC",block:'[[[8,[39,0],[[24,0,"keyboard-shortcuts-modal"]],[["@title","@closeModal"],[[28,[37,1],["keyboard_shortcuts_help.title"],null],[30,1]]],[["body"],[[[[1,"\\n    "],[10,0],[14,1,"keyboard-shortcuts-help"],[12],[1,"\\n      "],[10,0],[14,0,"keyboard-shortcuts-help__container"],[12],[1,"\\n"],[42,[28,[37,3],[[30,0,["shortcuts"]]],null],null,[[[1,"          "],[10,"section"],[15,0,[29,["shortcut-category span-",[30,2,["count"]],"\\n              shortcut-category-",[30,3]]]],[12],[1,"\\n            "],[10,"h4"],[12],[1,[28,[35,1],[[28,[37,4],["keyboard_shortcuts_help.",[30,3],".title"],null]],null]],[13],[1,"\\n            "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,3],[[30,2,["shortcuts"]]],null],null,[[[1,"                "],[10,"li"],[12],[1,[28,[35,5],[[30,4]],null]],[13],[1,"\\n"]],[4,5]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[2,3]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]]],["@closeModal","shortcutCategory","category","shortcut","name"],false,["d-modal","i18n","each","-each-in","concat","html-safe"]]',moduleName:"discourse/components/modal/keyboard-shortcuts-help.hbs",isStrictMode:!1}),d="keyboard_shortcuts_help",p=r.default.t("shortcut_modifier_key.shift"),m=(0,o.translateModKey)("Alt"),h=(0,o.translateModKey)("Meta"),f=r.default.t("shortcut_modifier_key.ctrl"),g=r.default.t("shortcut_modifier_key.enter"),b=r.default.t(`${d}.shortcut_key_delimiter_comma`),y=r.default.t(`${d}.shortcut_key_delimiter_plus`),_={shift:p,alt:m,meta:h,ctrl:f,enter:g,comma:b,plus:y}
function v(e,t,i,n){const o=[e,t].reject((e=>0===e.length)).map((e=>e.map((e=>`<kbd>${e}</kbd>`)).join(i))).map((e=>"space"!==n?w(e):e)),[s,l]=o
return 1===o.length?s:"or"===n?r.default.t(`${d}.shortcut_delimiter_or`,{shortcut1:s,shortcut2:l}):"slash"===n?r.default.t(`${d}.shortcut_delimiter_slash`,{shortcut1:s,shortcut2:l}):"space"===n?w(r.default.t(`${d}.shortcut_delimiter_space`,{shortcut1:s,shortcut2:l})):void 0}function w(e){return`<span dir="ltr">${e}</span>`}function k(e,t){let{keys1:i=[],keys2:n=[],keysDelimiter:o=b,shortcutsDelimiter:s="or"}=t
const l={shortcut:v(i,n,o,s)}
return r.default.t(`${d}.${e}`,l)}let x=(a=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="currentUser",n=this,(i=u)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get shortcuts(){let e={jump_to:{shortcuts:this._buildJumpToSection()},application:{shortcuts:{hamburger_menu:k("application.hamburger_menu",{keys1:["="]}),user_profile_menu:k("application.user_profile_menu",{keys1:["p"]}),create:k("application.create",{keys1:["c"]}),show_incoming_updated_topics:k("application.show_incoming_updated_topics",{keys1:["."]}),search:k("application.search",{keys1:["/"],keys2:[f,m,"f"],keysDelimiter:y}),help:k("application.help",{keys1:["?"]}),dismiss_new:k("application.dismiss_new",{keys1:["x","r"]}),dismiss_topics:k("application.dismiss_topics",{keys1:["x","t"]}),log_out:k("application.log_out",{keys1:[p,"z"],keys2:[p,"z"],keysDelimiter:y,shortcutsDelimiter:"space"})}},actions:{shortcuts:{bookmark_topic:k("actions.bookmark_topic",{keys1:["f"]}),reply_as_new_topic:k("actions.reply_as_new_topic",{keys1:["t"]}),reply_topic:k("actions.reply_topic",{keys1:[p,"r"],keysDelimiter:y}),reply_post:k("actions.reply_post",{keys1:["r"]}),quote_post:k("actions.quote_post",{keys1:["q"]}),pin_unpin_topic:k("actions.pin_unpin_topic",{keys1:[p,"p"],keysDelimiter:y}),share_topic:k("actions.share_topic",{keys1:[p,"s"],keysDelimiter:y}),share_post:k("actions.share_post",{keys1:["s"]}),like:k("actions.like",{keys1:["l"]}),flag:k("actions.flag",{keys1:["!"]}),bookmark:k("actions.bookmark",{keys1:["b"]}),edit:k("actions.edit",{keys1:["e"]}),delete:k("actions.delete",{keys1:["d"]}),mark_muted:k("actions.mark_muted",{keys1:["m","m"]}),mark_regular:k("actions.mark_regular",{keys1:["m","r"]}),mark_tracking:k("actions.mark_tracking",{keys1:["m","t"]}),mark_watching:k("actions.mark_watching",{keys1:["m","w"]}),print:k("actions.print",{keys1:[h,"p"],keysDelimiter:y}),defer:k("actions.defer",{keys1:[p,"u"],keysDelimiter:y}),topic_admin_actions:k("actions.topic_admin_actions",{keys1:[p,"a"],keysDelimiter:y})}},navigation:{shortcuts:{back:k("navigation.back",{keys1:["u"]}),jump:k("navigation.jump",{keys1:["#"]}),up_down:k("navigation.up_down",{keys1:["k"],keys2:["j"],shortcutsDelimiter:"slash"}),open:k("navigation.open",{keys1:["o"],keys2:[g]}),next_prev:k("navigation.next_prev",{keys1:[p,"j"],keys2:[p,"k"],keysDelimiter:y,shortcutsDelimiter:"slash"}),go_to_unread_post:k("navigation.go_to_unread_post",{keys1:[p,"l"],keysDelimiter:y})}},composing:{shortcuts:{return:k("composing.return",{keys1:[p,"c"],keysDelimiter:y}),fullscreen:k("composing.fullscreen",{keys1:[p,"F11"],keysDelimiter:y}),insertCurrentTime:k("composing.insert_current_time",{keys1:[h,p,"."],keysDelimiter:y})}},bookmarks:{shortcuts:{enter:k("bookmarks.enter",{keys1:[g]}),later_today:k("bookmarks.later_today",{keys1:["l","t"]}),later_this_week:k("bookmarks.later_this_week",{keys1:["l","w"]}),tomorrow:k("bookmarks.tomorrow",{keys1:["n","d"]}),next_business_week:k("bookmarks.next_business_week",{keys1:["n","b","w"]}),next_business_day:k("bookmarks.next_business_day",{keys1:["n","b","d"]}),custom:k("bookmarks.custom",{keys1:["c","r"]}),none:k("bookmarks.none",{keys1:["n","r"]}),delete:k("bookmarks.delete",{keys1:["d","d"]})}},search_menu:{shortcuts:{prev_next:k("search_menu.prev_next",{keys1:["&uarr;"],keys2:["&darr;"],shortcutsDelimiter:"slash"}),insert_url:k("search_menu.insert_url",{keys1:["a"]}),full_page_search:k("search_menu.full_page_search",{keys1:[h,"Enter"],keysDelimiter:y})}}}
return this._buildExtraShortcuts(e),this._addCountsToShortcutCategories(e),e}_buildExtraShortcuts(e){for(const[t,i]of Object.entries(s.extraKeyboardShortcutsHelp))i.forEach((i=>{e[t]||(e[t]={}),e[t].shortcuts||(e[t].shortcuts={}),e[t].shortcuts[i.name]=k(i.name,this._transformExtraDefinition(i.definition))}))}_addCountsToShortcutCategories(e){for(const[t,i]of Object.entries(e))e[t].count=Object.keys(i.shortcuts).length}_transformExtraDefinition(e){return e.keys1&&(e.keys1=e.keys1.map((e=>this._translateKeys(e)))),e.keys2&&(e.keys2=e.keys2.map((e=>this._translateKeys(e)))),e.keysDelimiter&&(e.keysDelimiter=this._translateKeys(e.keysDelimiter)),e.shortcutsDelimiter&&(e.shortcutsDelimiter=this._translateKeys(e.shortcutsDelimiter)),e}_translateKeys(e){for(const[t,i]of Object.entries(_))e=e.replace(t,i)
return e}_buildJumpToSection(){const e={home:k("jump_to.home",{keys1:["g","h"]}),latest:k("jump_to.latest",{keys1:["g","l"]}),new:k("jump_to.new",{keys1:["g","n"]}),unread:k("jump_to.unread",{keys1:["g","u"]}),categories:k("jump_to.categories",{keys1:["g","c"]}),top:k("jump_to.top",{keys1:["g","t"]}),bookmarks:k("jump_to.bookmarks",{keys1:["g","b"]}),profile:k("jump_to.profile",{keys1:["g","p"]})}
return this.currentUser?.can_send_private_messages&&(e.messages=k("jump_to.messages",{keys1:["g","m"]})),Object.assign(e,{drafts:k("jump_to.drafts",{keys1:["g","d"]}),next:k("jump_to.next",{keys1:["g","j"]}),previous:k("jump_to.previous",{keys1:["g","k"]})}),e}},P=a.prototype,O="currentUser",T=[l.inject],S={configurable:!0,enumerable:!0,writable:!0,initializer:null},C={},Object.keys(S).forEach((function(e){C[e]=S[e]})),C.enumerable=!!C.enumerable,C.configurable=!!C.configurable,("value"in C||C.initializer)&&(C.writable=!0),C=T.slice().reverse().reduce((function(e,t){return t(P,O,e)||e}),C),j&&void 0!==C.initializer&&(C.value=C.initializer?C.initializer.call(j):void 0,C.initializer=void 0),void 0===C.initializer&&(Object.defineProperty(P,O,C),C=null),u=C,a)
var P,O,T,S,j,C
e.default=x,(0,t.setComponentTemplate)(c,x)})),define("discourse/components/modal/not-activated",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@ember/service","discourse/lib/user-activation","discourse/components/modal/activation-resent","discourse/components/modal/activation-edit"],(function(e,t,i,n,r,o,s,l,a){var u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"TGat4oqW",block:'[[[8,[39,0],null,[["@closeModal","@title"],[[30,1],[28,[37,1],["log_in"],null]]],[["body","footer"],[[[[1,"\\n    "],[1,[28,[35,2],[[28,[37,1],["login.not_activated"],[["sentTo"],[[30,2,["sentTo"]]]]]],null]],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],null,[["@sendActivationEmail","@editActivationEmail"],[[30,0,["sendActivationEmail"]],[30,0,["editActivationEmail"]]]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","html-safe","activation-controls"]]',moduleName:"discourse/components/modal/not-activated.hbs",isStrictMode:!1})
let m=(u=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="modal",n=this,(i=c)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}sendActivationEmail(){(0,s.resendActivationEmail)(this.username).then((()=>{this.modal.show(l.default,{model:{currentEmail:this.args.model.currentEmail}})}))}editActivationEmail(){this.modal.show(a.default,{model:{currentEmail:this.args.model.currentEmail,newEmail:this.args.model.currentEmail}})}},c=d(u.prototype,"modal",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(u.prototype,"sendActivationEmail",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"sendActivationEmail"),u.prototype),d(u.prototype,"editActivationEmail",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"editActivationEmail"),u.prototype),u)
e.default=m,(0,t.setComponentTemplate)(p,m)})),define("discourse/components/modal/second-factor-add-security-key",["exports","@ember/component","@ember/template-factory","discourse/lib/webauthn","@glimmer/component","I18n","@ember/service","@ember/object","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m
function h(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"BMG5vl6F",block:'[[[8,[39,0],[[4,[38,2],[[30,0,["securityKeyRequested"]]],null]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.second_factor.security_key.add"],null]]],[["body"],[[[[1,"\\n    "],[8,[39,3],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"        "],[10,0],[14,0,"control-group"],[12],[1,"\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[1,[28,[35,5],[[28,[37,1],["user.second_factor.enable_security_key_description"],null]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,6],[[24,1,"security-key-name"],[24,"placeholder","security key name"]],[["@value"],[[30,0,["securityKeyName"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[51,[30,0,["webauthnUnsupported"]]],[[[1,"            "],[8,[39,8],[[24,0,"btn-primary add-security-key"]],[["@action","@label"],[[30,0,["registerSecurityKey"]],"user.second_factor.security_key.register"]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","did-insert","conditional-loading-spinner","if","html-safe","input","unless","d-button"]]',moduleName:"discourse/components/modal/second-factor-add-security-key.hbs",isStrictMode:!1})
let b=(u=class extends r.default{constructor(){super(...arguments),h(this,"capabilities",c,this),h(this,"loading",d,this),h(this,"errorMessage",p,this),h(this,"securityKeyName",m,this)}get webauthnUnsupported(){return!(0,n.isWebauthnSupported)()}securityKeyRequested(){let e
e=this.capabilities.isIOS&&!this.capabilities.isIpadOS?"user.second_factor.security_key.iphone_default_name":this.capabilities.isAndroid?"user.second_factor.security_key.android_default_name":"user.second_factor.security_key.default_name",this.securityKeyName=e,this.loading=!0,this.args.model.secondFactor.requestSecurityKeyChallenge().then((e=>{e.error?this.errorMessage=e.error:(this.errorMessage=(0,n.isWebauthnSupported)()?null:o.default.t("login.security_key_support_missing_error"),this.loading=!1,this.challenge=e.challenge,this.relayingParty={id:e.rp_id,name:e.rp_name},this.supported_algorithms=e.supported_algorithms,this.user_secure_id=e.user_secure_id,this.existing_active_credential_ids=e.existing_active_credential_ids)})).catch((e=>{this.args.closeModal(),this.args.model.onError(e)})).finally((()=>this.loading=!1))}registerSecurityKey(){if(!this.securityKeyName)return void(this.errorMessage=o.default.t("user.second_factor.security_key.name_required_error"))
const e={challenge:Uint8Array.from(this.challenge,(e=>e.charCodeAt(0))),rp:{name:this.relayingParty.name,id:this.relayingParty.id},user:{id:Uint8Array.from(this.user_secure_id,(e=>e.charCodeAt(0))),displayName:this.args.model.secondFactor.username_lower,name:this.args.model.secondFactor.username_lower},pubKeyCredParams:this.supported_algorithms.map((e=>({type:"public-key",alg:e}))),excludeCredentials:this.existing_active_credential_ids.map((e=>({type:"public-key",id:(0,n.stringToBuffer)(atob(e))}))),timeout:2e4,attestation:"none",authenticatorSelection:{userVerification:"discouraged"}}
navigator.credentials.create({publicKey:e}).then((e=>{let t={id:e.id,rawId:(0,n.bufferToBase64)(e.rawId),type:e.type,attestation:(0,n.bufferToBase64)(e.response.attestationObject),clientData:(0,n.bufferToBase64)(e.response.clientDataJSON),name:this.securityKeyName}
this.args.model.secondFactor.registerSecurityKey(t).then((e=>{e.error?this.errorMessage=e.error:(this.args.model.markDirty(),this.errorMessage=null,this.args.closeModal())})).catch((e=>this.args.model.onError(e))).finally((()=>this.loading=!1))}),(e=>{"InvalidStateError"!==e.name?"NotAllowedError"!==e.name?this.errorMessage=e.message:this.errorMessage=o.default.t("user.second_factor.security_key.not_allowed_error"):this.errorMessage=o.default.t("user.second_factor.security_key.already_added_error")}))}},c=f(u.prototype,"capabilities",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=f(u.prototype,"loading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=f(u.prototype,"errorMessage",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=f(u.prototype,"securityKeyName",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(u.prototype,"securityKeyRequested",[l.action],Object.getOwnPropertyDescriptor(u.prototype,"securityKeyRequested"),u.prototype),f(u.prototype,"registerSecurityKey",[l.action],Object.getOwnPropertyDescriptor(u.prototype,"registerSecurityKey"),u.prototype),u)
e.default=b,(0,t.setComponentTemplate)(g,b)})),define("discourse/components/modal/second-factor-add-totp",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@glimmer/tracking","I18n"],(function(e,t,i,n,r,o,s){var l,a,u,c,d,p,m
function h(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"4Mb4p7hU",block:'[[[8,[39,0],[[4,[38,2],[[30,0,["totpRequested"]]],null]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.second_factor.totp.add"],null]]],[["body"],[[[[1,"\\n    "],[8,[39,3],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"        "],[10,0],[14,0,"control-group"],[12],[1,"\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[1,[28,[35,5],[[28,[37,1],["user.second_factor.enable_description"],null]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,0],[14,0,"qr-code"],[12],[1,"\\n            "],[10,"img"],[15,"src",[28,[37,5],[[30,0,["secondFactorImage"]]],null]],[12],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,2],[12],[1,"\\n"],[41,[30,0,["showSecondFactorKey"]],[[[1,"              "],[10,0],[14,0,"second-factor-key"],[12],[1,"\\n                "],[1,[30,0,["secondFactorKey"]]],[1,"\\n              "],[13],[1,"\\n"]],[]],[[[1,"              "],[11,3],[24,6,""],[24,0,"show-second-factor-key"],[4,[38,6],["click",[30,0,["enableShowSecondFactorKey"]]],null],[12],[1,[28,[35,1],["user.second_factor.show_key_description"],null]],[13],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label input-prepend"],[12],[1,[28,[35,1],["user.second_factor.name"],null]],[13],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,7],null,[["@value","@inputId","@placeholder"],[[30,0,["secondFactorName"]],"second-factor-name",[28,[37,1],["user.second_factor.totp.default_name"],null]]],null],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,"label"],[14,0,"control-label input-prepend"],[12],[1,[28,[35,1],["user.second_factor.label"],null]],[13],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,8],[[24,0,"second-factor-token-input"],[16,"maxlength",6],[24,"placeholder","123456"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,"autofocus","autofocus"]],[["@value","@inputId"],[[30,0,["secondFactorToken"]],"second-factor-token"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,9],[[24,0,"btn-primary add-totp"]],[["@action","@label"],[[30,0,["enableSecondFactor"]],"enable"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","did-insert","conditional-loading-spinner","if","html-safe","on","second-factor-input","text-field","d-button"]]',moduleName:"discourse/components/modal/second-factor-add-totp.hbs",isStrictMode:!1})
let b=(l=class extends n.default{constructor(){super(...arguments),h(this,"loading",a,this),h(this,"secondFactorImage",u,this),h(this,"secondFactorKey",c,this),h(this,"showSecondFactorKey",d,this),h(this,"errorMessage",p,this),h(this,"secondFactorToken",m,this)}totpRequested(){this.args.model.secondFactor.createSecondFactorTotp().then((e=>{e.error?this.errorMessage=e.error:(this.errorMessage=null,this.secondFactorKey=e.key,this.secondFactorImage=e.qr)})).catch((e=>{this.args.closeModal(),this.args.model.onError(e)})).finally((()=>this.loading=!1))}enableShowSecondFactorKey(e){e.preventDefault(),e.stopImmediatePropagation(),this.showSecondFactorKey=!0}enableSecondFactor(){this.secondFactorToken&&this.secondFactorName?(this.loading=!0,this.args.model.secondFactor.enableSecondFactorTotp(this.secondFactorToken,this.secondFactorName).then((e=>{e.error?this.errorMessage=e.error:(this.args.model.markDirty(),this.errorMessage=null,this.args.closeModal())})).catch((e=>this.args.model.onError(e))).finally((()=>this.loading=!1))):this.errorMessage=s.default.t("user.second_factor.totp.name_and_code_required_error")}},a=f(l.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=f(l.prototype,"secondFactorImage",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(l.prototype,"secondFactorKey",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=f(l.prototype,"showSecondFactorKey",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=f(l.prototype,"errorMessage",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=f(l.prototype,"secondFactorToken",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(l.prototype,"totpRequested",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"totpRequested"),l.prototype),f(l.prototype,"enableShowSecondFactorKey",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"enableShowSecondFactorKey"),l.prototype),f(l.prototype,"enableSecondFactor",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"enableSecondFactor"),l.prototype),l)
e.default=b,(0,t.setComponentTemplate)(g,b)})),define("discourse/components/modal/second-factor-backup-edit",["exports","@ember/component","@ember/template-factory","@glimmer/component","I18n","discourse/models/user","discourse-common/utils/decorators","@glimmer/tracking","@ember/object"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m,h,f,g,b
function y(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function _(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v=(0,i.createTemplateFactory)({id:"qdJq14tP",block:'[[[8,[39,0],[[24,0,"second-factor-backup-edit-modal"]],[["@title","@closeModal"],[[28,[37,1],["user.second_factor_backup.title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["successMessage"]],[[[1,"      "],[10,0],[14,0,"alert alert-success"],[12],[1,"\\n        "],[1,[30,0,["successMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"      "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n        "],[1,[30,0,["errorMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,3],null,[["@isLoading"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["backupCodes"]],[[[1,"        "],[10,"h3"],[12],[1,[28,[35,1],["user.second_factor_backup.codes.title"],null]],[13],[1,"\\n        "],[10,2],[12],[1,[28,[35,1],["user.second_factor_backup.codes.description"],null]],[13],[1,"\\n        "],[8,[39,4],null,[["@copyBackupCode","@backupCodes"],[[30,0,["copyBackupCode"]],[30,0,["backupCodes"]]]],null],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["backupEnabled"]],[[[1,"      "],[1,[28,[35,5],[[28,[37,1],["user.second_factor_backup.remaining_codes"],[["count"],[[30,0,["remainingCodes"]]]]]],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,5],[[28,[37,1],["user.second_factor_backup.not_enabled"],null]],null]],[1,"\\n"]],[]]],[1,"  "]],[]],[[[1,"\\n    "],[10,0],[14,0,"actions"],[12],[1,"\\n"],[41,[30,0,["backupEnabled"]],[[[1,"        "],[8,[39,6],[[24,0,"btn-primary"]],[["@icon","@action","@type","@isLoading","@label"],["redo",[30,0,["generateSecondFactorCodes"]],"submit",[30,0,["loading"]],"user.second_factor_backup.regenerate"]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@type","@disabled","@label"],[[30,0,["generateSecondFactorCodes"]],"submit",[30,0,["loading"]],"user.second_factor_backup.enable"]],null],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","if","conditional-loading-section","backup-codes","html-safe","d-button"]]',moduleName:"discourse/components/modal/second-factor-backup-edit.hbs",isStrictMode:!1})
let w=(u=(0,s.debounce)(2e3),c=class extends n.default{constructor(){super(...arguments),y(this,"loading",d,this),y(this,"errorMessage",p,this),y(this,"successMessage",m,this),y(this,"backupEnabled",h,this),y(this,"remainingCodes",f,this),y(this,"backupCodes",g,this),y(this,"secondFactorMethod",b,this)}copyBackupCode(e){e?this.successMessage=r.default.t("user.second_factor_backup.copied_to_clipboard"):this.errorMessage=r.default.t("user.second_factor_backup.copy_to_clipboard_error"),this._hideCopyMessage()}generateSecondFactorCodes(){this.loading=!0,this.args.model.secondFactor.generateSecondFactorCodes().then((e=>{e.error?this.errorMessage=e.error:(this.args.model.markDirty(),this.errorMessage=null,this.backupCodes=e.backup_codes,this.args.model.setBackupEnabled(!0),this.backupEnabled=!0,this.remainingCodes=e.backup_codes.length,this.args.model.setCodesRemaining(this.remainingCodes))})).catch((e=>{this.args.closeModal(),this.args.model.onError(e)})).finally((()=>this.loading=!1))}_hideCopyMessage(){this.successMessage=null,this.errorMessage=null}},d=_(c.prototype,"loading",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=_(c.prototype,"errorMessage",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=_(c.prototype,"successMessage",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=_(c.prototype,"backupEnabled",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.secondFactor.second_factor_backup_enabled}}),f=_(c.prototype,"remainingCodes",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.secondFactor.second_factor_remaining_backup_codes}}),g=_(c.prototype,"backupCodes",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=_(c.prototype,"secondFactorMethod",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return o.SECOND_FACTOR_METHODS.TOTP}}),_(c.prototype,"copyBackupCode",[a.action],Object.getOwnPropertyDescriptor(c.prototype,"copyBackupCode"),c.prototype),_(c.prototype,"generateSecondFactorCodes",[a.action],Object.getOwnPropertyDescriptor(c.prototype,"generateSecondFactorCodes"),c.prototype),_(c.prototype,"_hideCopyMessage",[u],Object.getOwnPropertyDescriptor(c.prototype,"_hideCopyMessage"),c.prototype),c)
e.default=w,(0,t.setComponentTemplate)(v,w)})),define("discourse/components/modal/second-factor-edit-security-key",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@glimmer/tracking"],(function(e,t,i,n,r,o){var s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"xWkJoH8/",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["user.second_factor.security_key.edit"],null],[30,1]]],[["body","footer"],[[[[1,"\\n    "],[10,"form"],[14,0,"form-horizontal"],[12],[1,"\\n      "],[10,0],[14,0,"input-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","security-key-name"],[12],[1,[28,[35,1],["user.second_factor.security_key.edit_description"],null]],[13],[1,"\\n        "],[8,[39,2],[[24,3,"security-key-name"]],[["@type","@value"],["text",[30,2,["securityKey","name"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["editSecurityKey"]],"user.second_factor.security_key.save"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","input","d-button"]]',moduleName:"discourse/components/modal/second-factor-edit-security-key.hbs",isStrictMode:!1})
let c=(s=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="loading",n=this,(i=l)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}editSecurityKey(){this.loading=!0,this.args.model.user.updateSecurityKey(this.args.model.securityKey.id,this.args.model.securityKey.name,!1).then((e=>{e.error||this.args.model.markDirty()})).catch((e=>{this.args.model.onError(e)})).finally((()=>{this.loading=!1,this.args.closeModal()}))}},l=a(s.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a(s.prototype,"editSecurityKey",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"editSecurityKey"),s.prototype),s)
e.default=c,(0,t.setComponentTemplate)(u,c)})),define("discourse/components/modal/second-factor-edit",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@glimmer/tracking"],(function(e,t,i,n,r,o){var s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"k9fwqn2A",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["user.second_factor.edit_title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"input-group"],[12],[1,"\\n      "],[10,"label"],[14,"for","authenticator-name"],[12],[1,[28,[35,1],["user.second_factor.edit_description"],null]],[13],[1,"\\n      "],[8,[39,2],[[24,3,"authenticator-name"]],[["@type","@value"],["text",[30,2,["secondFactor","name"]]]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["editSecondFactor"]],"user.second_factor.save"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","input","d-button"]]',moduleName:"discourse/components/modal/second-factor-edit.hbs",isStrictMode:!1})
let c=(s=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="loading",n=this,(i=l)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}editSecondFactor(){this.loading=!0,this.args.model.user.updateSecondFactor(this.args.model.secondFactor.id,this.args.model.secondFactor.name,!1,this.args.model.secondFactor.method).then((e=>{e.error||this.args.model.markDirty()})).catch((e=>{this.args.closeModal(),this.args.model.onError(e)})).finally((()=>{this.loading=!1,this.args.closeModal()}))}},l=a(s.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a(s.prototype,"editSecondFactor",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"editSecondFactor"),s.prototype),s)
e.default=c,(0,t.setComponentTemplate)(u,c)})),define("discourse/components/modal/share-topic",["exports","@ember/component","@ember/template-factory","@ember/object","discourse-common/lib/get-url","discourse-common/utils/decorators","@ember/object/computed","discourse/lib/formatter","discourse/lib/sharing","discourse/lib/show-modal","discourse/mixins/buffered-content","I18n","discourse/models/category","discourse-common/lib/get-owner"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g,b
function y(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const _=(0,i.createTemplateFactory)({id:"d5TwfCKn",block:'[[[8,[39,0],[[24,0,"share-topic-modal"]],[["@title","@subtitle","@closeModal","@flash","@flashType"],[[52,[30,0,["post"]],[28,[37,2],["post.share.title"],[["post_number"],[[30,0,["post","post_number"]]]]],[28,[37,2],["topic.share.title"],null]],[52,[30,0,["post"]],[30,0,["displayDate"]]],[30,1],[30,0,["flash"]],[30,0,["flashType"]]]],[["default"],[[[[1,"\\n  "],[10,"form"],[12],[1,"\\n    "],[10,0],[14,0,"input-group invite-link"],[12],[1,"\\n      "],[10,"label"],[14,"for","invite-link"],[12],[1,"\\n        "],[1,[52,[30,0,["post"]],[28,[37,2],["post.share.instructions"],[["post_number"],[[30,0,["post","post_number"]]]]],[28,[37,2],["topic.share.instructions"],null]]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n        "],[8,[39,3],[[24,1,"invite-link"],[24,3,"invite-link"],[24,0,"invite-link"],[16,"readonly",true]],[["@value"],[[30,0,["url"]]]],null],[1,"\\n        "],[8,[39,4],null,[["@selector"],["input.invite-link"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"link-share-actions"],[12],[1,"\\n      "],[10,0],[14,0,"sources"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["sources"]]],null]],null],null,[[[1,"          "],[8,[39,7],null,[["@source","@title","@action"],[[30,2],[30,0,["topic","title"]],[28,[37,8],[[30,0],"share"],null]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["allowInvites"]],[[[1,"          "],[8,[39,9],null,[["@class","@label","@icon","@action"],["btn-default invite","topic.share.invite_users","user-plus",[28,[37,8],[[30,0],"inviteUsers"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["topic","details","can_reply_as_new_topic"]],[[[41,[30,0,["topic","isPrivateMessage"]],[[[1,"            "],[8,[39,9],null,[["@action","@class","@icon","@aria-label","@title","@label"],[[28,[37,8],[[30,0],"replyAsNewTopic"],null],"btn-default new-topic","plus","post.reply_as_new_private_message","post.reply_as_new_private_message","user.new_private_message"]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,9],null,[["@action","@class","@icon","@aria-label","@title","@label"],[[28,[37,8],[[30,0],"replyAsNewTopic"],null],"btn-default new-topic","plus","post.reply_as_new_topic","post.reply_as_new_topic","topic.create"]],null],[1,"\\n"]],[]]]],[]],null],[1,"        "],[8,[39,10],null,[["@name","@outletArgs"],["share-topic-sources",[28,[37,11],null,[["topic","post"],[[30,0,["topic"]],[30,0,["post"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["@closeModal","s"],false,["d-modal","if","i18n","input","copy-button","each","-track-array","share-source","action","d-button","plugin-outlet","hash"]]',moduleName:"discourse/components/modal/share-topic.hbs",isStrictMode:!1}),v=t.default.extend((0,c.bufferedProperty)("invite"),(h=(0,o.default)("post.shareUrl","topic.shareUrl"),f=(0,o.default)("post.created_at","post.wiki","post.last_wiki_edit"),g=(0,o.default)("topic.{isPrivateMessage,invisible,category.read_restricted}"),y(b={topic:(0,s.readOnly)("model.topic"),post:(0,s.readOnly)("model.post"),category:(0,s.readOnly)("model.category"),allowInvites:(0,s.readOnly)("model.allowInvites"),didInsertElement(){this._showRestrictedGroupWarning(),this._selectUrl(),this._super()},_showRestrictedGroupWarning(){this.category&&p.default.fetchVisibleGroups(this.category.id).then((e=>{e.groups.length>0&&this.setProperties({flash:d.default.t("topic.share.restricted_groups",{count:e.groups.length,groupNames:e.groups.join(", ")}),flashType:"warning"})}))},_selectUrl(){const e=document.querySelector("input.invite-link")
e&&!this.site.mobileView&&(e.setSelectionRange(0,this.url.length),e.focus())},url:(e,t)=>e?(0,r.getAbsoluteURL)(e):t?(0,r.getAbsoluteURL)(t):void 0,displayDate(e,t,i){const n=t&&i?i:e
return(0,l.longDateNoYear)(new Date(n))},sources(e){const t=this.siteSettings.login_required||e?.isPrivateMessage||e?.invisible||e?.category?.read_restricted
return a.default.activeSources(this.siteSettings.share_links,t)},share(e){a.default.shareSource(e,{title:this.topic.title,url:this.url})},inviteUsers(){const e=(0,u.default)("create-invite")
e.setProperties({inviteToTopic:!0,topics:[this.topic]}),e.buffered.setProperties({topicId:this.topic.id,topicTitle:this.topic.title})},replyAsNewTopic(){const e=this.topic.postStream,t=this.post?.id||e.findPostIdForPostNumber(1),i=e.findLoadedPost(t),n=(0,m.getOwner)(this).lookup("controller:topic")
n.actions.replyAsNewTopic.call(n,i),this.closeModal()}},"_showRestrictedGroupWarning",[o.afterRender],Object.getOwnPropertyDescriptor(b,"_showRestrictedGroupWarning"),b),y(b,"_selectUrl",[o.afterRender],Object.getOwnPropertyDescriptor(b,"_selectUrl"),b),y(b,"url",[h],Object.getOwnPropertyDescriptor(b,"url"),b),y(b,"displayDate",[f],Object.getOwnPropertyDescriptor(b,"displayDate"),b),y(b,"sources",[g],Object.getOwnPropertyDescriptor(b,"sources"),b),y(b,"share",[n.action],Object.getOwnPropertyDescriptor(b,"share"),b),y(b,"inviteUsers",[n.action],Object.getOwnPropertyDescriptor(b,"inviteUsers"),b),y(b,"replyAsNewTopic",[n.action],Object.getOwnPropertyDescriptor(b,"replyAsNewTopic"),b),b))
v.reopenClass({modalClass:"share-topic-modal"})
var w=(0,t.setComponentTemplate)(_,v)
e.default=w})),define("discourse/components/modal/sidebar-section-form",["exports","@embroider/macros/es-compat","@ember/component","@ember/template-factory","discourse/lib/ajax","@ember/utils","discourse/lib/ajax-error","@ember/service","I18n","discourse/lib/text","@glimmer/tracking","@ember/array","discourse/lib/constants","discourse-common/utils/decorators","@ember/object"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h){var f,g,b,y,_,v,w,k,x,P,O,T,S,j,C,z,I,E,M,D,N,L,A,U,F
function R(e,t){H(e,t),t.add(e)}function B(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function $(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function q(e,t,i){H(e,t),t.set(e,i)}function H(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function W(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function V(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}function G(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const K=(0,n.createTemplateFactory)({id:"9JyjQJK8",block:'[[[8,[39,0],[[24,0,"sidebar-section-form-modal"]],[["@closeModal","@flash","@flashType","@title"],[[30,1],[30,0,["flash"]],[30,0,["flashType"]],[28,[37,1],[[30,0,["header"]]],null]]],[["body","footer"],[[[[1,"\\n    "],[10,"form"],[14,0,"form-horizontal sidebar-section-form"],[12],[1,"\\n"],[41,[51,[30,0,["transformedModel","hideTitleInput"]]],[[[1,"        "],[10,0],[14,0,"sidebar-section-form__input-wrapper"],[12],[1,"\\n          "],[10,"label"],[14,"for","section-name"],[12],[1,"\\n            "],[1,[28,[35,1],["sidebar.sections.custom.title.label"],null]],[1,"\\n          "],[13],[1,"\\n\\n          "],[8,[39,3],[[24,3,"section-name"],[16,0,[30,0,["transformedModel","titleCssClass"]]],[4,[38,4],["input",[28,[37,5],[[30,0],[28,[37,6],[[30,0,["transformedModel","title"]]],null]],[["value"],["target.value"]]]],null]],[["@type","@value"],["text",[30,0,["transformedModel","title"]]]],null],[1,"\\n\\n"],[41,[30,0,["transformedModel","invalidTitleMessage"]],[[[1,"            "],[10,0],[14,0,"title warning"],[12],[1,"\\n              "],[1,[30,0,["transformedModel","invalidTitleMessage"]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"row-wrapper header"],[12],[1,"\\n        "],[10,0],[14,0,"input-group link-icon"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.icon.label"],null]],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"input-group link-name"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.name.label"],null]],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"input-group link-url"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.value.label"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["activeLinks"]]],null]],null],null,[[[1,"        "],[8,[39,10],null,[["@link","@deleteLink","@reorderCallback"],[[30,2],[30,0,["deleteLink"]],[30,0,["reorder"]]]],null],[1,"\\n"]],[2]],null],[1,"      "],[8,[39,11],null,[["@action","@class","@title","@icon","@label","@ariaLabel"],[[28,[37,5],[[30,0],"addLink"],null],"btn-flat btn-text add-link","sidebar.sections.custom.links.add","plus","sidebar.sections.custom.links.add","sidebar.sections.custom.links.add"]],null],[1,"\\n"],[41,[30,0,["transformedModel","sectionType"]],[[[1,"        "],[10,"hr"],[12],[13],[1,"\\n        "],[10,"h3"],[12],[1,[28,[35,1],["sidebar.sections.custom.more_menu"],null]],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["activeSecondaryLinks"]]],null]],null],null,[[[1,"          "],[8,[39,10],null,[["@link","@deleteLink","@reorderCallback"],[[30,3],[30,0,["deleteLink"]],[30,0,["reorder"]]]],null],[1,"\\n"]],[3]],null],[1,"        "],[8,[39,11],null,[["@action","@class","@title","@icon","@label","@ariaLabel"],[[28,[37,5],[[30,0],"addSecondaryLink"],null],"btn-flat btn-text add-link","sidebar.sections.custom.links.add","plus","sidebar.sections.custom.links.add","sidebar.sections.custom.links.add"]],null],[1,"\\n\\n"]],[]],null],[41,[28,[37,12],[[30,0,["currentUser","staff"]]],null],[[[1,"        "],[10,0],[15,0,[29,["row-wrapper mark-public-wrapper\\n            ",[52,[30,0,["transformedModel","sectionType"]],"-disabled"]]]],[12],[1,"\\n          "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n"],[41,[30,0,["transformedModel","sectionType"]],[[[1,"              "],[8,[39,13],null,[["@placement"],["top-start"]],[["default"],[[[[1,"\\n                "],[1,[28,[35,1],["sidebar.sections.custom.always_public"],null]],[1,"\\n              "]],[]]]]],[1,"\\n"]],[]],null],[1,"            "],[8,[39,3],[[24,0,"mark-public"],[16,"disabled",[30,0,["transformedModel","sectionType"]]]],[["@type","@checked"],["checkbox",[30,0,["transformedModel","public"]]]],null],[1,"\\n            "],[1,[28,[35,1],["sidebar.sections.custom.public"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,11],null,[["@id","@action","@class","@label","@ariaLabel","@disabled"],["save-section",[28,[37,5],[[30,0],"save"],null],"btn-primary","sidebar.sections.custom.save","sidebar.sections.custom.save",[28,[37,14],[[30,0,["transformedModel","valid"]]],null]]],null],[1,"\\n"],[41,[30,0,["canDelete"]],[[[1,"      "],[8,[39,11],null,[["@icon","@id","@class","@action","@label","@ariaLabel"],["trash-alt","delete-section","btn-danger delete",[28,[37,5],[[30,0],"delete"],null],"sidebar.sections.custom.delete","sidebar.sections.custom.delete"]],null],[1,"\\n"]],[]],null],[41,[30,0,["transformedModel","sectionType"]],[[[1,"      "],[8,[39,11],null,[["@action","@class","@icon","@title","@label","@ariaLabel"],[[28,[37,5],[[30,0],"resetToDefault"],null],"btn-flat btn-text reset-link","undo","sidebar.sections.custom.links.reset","sidebar.sections.custom.links.reset","sidebar.sections.custom.links.reset"]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],["@closeModal","link","link"],false,["d-modal","i18n","unless","input","on","action","mut","if","each","-track-array","sidebar/section-form-link","d-button","and","d-tooltip","not"]]',moduleName:"discourse/components/modal/sidebar-section-form.hbs",isStrictMode:!1})
let Y=(0,t.default)(require("ember-cached-decorator-polyfill")).cached
const J=[/^\/my\/[a-z_\-\/]+$/,/^\/pub\/[a-z_\-\/]+$/,/^\/safe-mode$/]
let Q=(_=new WeakMap,v=new WeakMap,g=G((f=class{constructor(e){let{title:t,links:i,secondaryLinks:n,id:r,publicSection:o,sectionType:s,hideTitleInput:l}=e
q(this,v,{get:Z,set:void 0}),q(this,_,{get:X,set:void 0}),$(this,"title",g,this),$(this,"links",b,this),$(this,"secondaryLinks",y,this),this.title=t,this.public=o,this.sectionType=s,this.links=i,this.secondaryLinks=n,this.id=r,this.hideTitleInput=l}get valid(){const e=this.links.filter((e=>!e._destroy)).concat(this.secondaryLinks?.filter((e=>!e._destroy))||[]),t=e.length>0&&e.every((e=>e.valid))
return this.validTitle&&t}get validTitle(){return!V(this,_)&&!V(this,v)}get invalidTitleMessage(){if(void 0!==this.title)return V(this,_)?a.default.t("sidebar.sections.custom.title.validation.blank"):V(this,v)?a.default.t("sidebar.sections.custom.title.validation.maximum",{count:p.SIDEBAR_SECTION.max_title_length}):void 0}get titleCssClass(){return void 0===this.title||this.validTitle?"":"warning"}}).prototype,"title",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=G(f.prototype,"links",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=G(f.prototype,"secondaryLinks",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f)
function X(){return(0,o.isEmpty)(this.title)}function Z(){return this.title.length>p.SIDEBAR_SECTION.max_title_length}let ee=(T=new WeakMap,S=new WeakMap,j=new WeakMap,C=new WeakMap,z=new WeakMap,I=new WeakMap,E=new WeakMap,M=new WeakSet,D=new WeakSet,k=G((w=class{constructor(e){let{router:t,icon:i,name:n,value:r,id:o,objectId:s,segment:l}=e
R(this,D),R(this,M),q(this,E,{get:le,set:void 0}),q(this,I,{get:se,set:void 0}),q(this,z,{get:oe,set:void 0}),q(this,C,{get:re,set:void 0}),q(this,j,{get:ne,set:void 0}),q(this,S,{get:ie,set:void 0}),q(this,T,{get:te,set:void 0}),$(this,"icon",k,this),$(this,"name",x,this),$(this,"value",P,this),$(this,"_destroy",O,this),this.router=t,this.icon=i||"link",this.name=n,this.value=r,this.id=o,this.httpHost="http://"+window.location.host,this.httpsHost="https://"+window.location.host,this.objectId=s,this.segment=l}get path(){return this.value?.replace(this.httpHost,"").replace(this.httpsHost,"")}get valid(){return this.validIcon&&this.validName&&this.validValue}get validIcon(){return!V(this,T)&&!V(this,S)}get validName(){return!V(this,j)&&!V(this,C)}get validValue(){return!V(this,z)&&!V(this,I)&&!V(this,E)}get invalidIconMessage(){return V(this,T)?a.default.t("sidebar.sections.custom.links.icon.validation.blank"):V(this,S)?a.default.t("sidebar.sections.custom.links.icon.validation.maximum",{count:p.SIDEBAR_URL.max_icon_length}):void 0}get invalidNameMessage(){if(void 0!==this.name)return V(this,j)?a.default.t("sidebar.sections.custom.links.name.validation.blank"):V(this,C)?a.default.t("sidebar.sections.custom.links.name.validation.maximum",{count:p.SIDEBAR_URL.max_name_length}):void 0}get invalidValueMessage(){if(void 0!==this.value)return V(this,z)?a.default.t("sidebar.sections.custom.links.value.validation.blank"):V(this,I)?a.default.t("sidebar.sections.custom.links.value.validation.maximum",{count:p.SIDEBAR_URL.max_value_length}):V(this,E)?a.default.t("sidebar.sections.custom.links.value.validation.invalid"):void 0}get iconCssClass(){return void 0===this.icon||this.validIcon?"":"warning"}get nameCssClass(){return void 0===this.name||this.validName?"":"warning"}get valueCssClass(){return void 0===this.value||this.validValue?"":"warning"}get external(){return this.value&&!(this.value.startsWith(this.httpHost)||this.value.startsWith(this.httpsHost)||this.value.startsWith("/"))}get isPrimary(){return"primary"===this.segment}}).prototype,"icon",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=G(w.prototype,"name",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=G(w.prototype,"value",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=G(w.prototype,"_destroy",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w)
function te(){return(0,o.isEmpty)(this.icon)}function ie(){return this.icon.length>p.SIDEBAR_URL.max_icon_length}function ne(){return(0,o.isEmpty)(this.name)}function re(){return this.name.length>p.SIDEBAR_URL.max_name_length}function oe(){return(0,o.isEmpty)(this.value)}function se(){return this.value.length>p.SIDEBAR_URL.max_value_length}function le(){return this.path&&(this.external?!B(this,M,ae).call(this):!B(this,D,ue).call(this))}function ae(){try{return new URL(this.value)}catch{return!1}}function ue(){return"unknown"!==this.router.recognize(this.path).name||J.some((e=>this.path.match(e)))}let ce=(N=class extends i.default{constructor(){super(...arguments),$(this,"dialog",L,this),$(this,"router",A,this),$(this,"flash",U,this),$(this,"flashType",F,this),W(this,"nextObjectId",0)}get transformedModel(){const e=this.model?.section
return new Q(e?{title:e.title,publicSection:e.public,sectionType:e.section_type,links:e.links.reduce(((e,t)=>("primary"===t.segment&&(this.nextObjectId++,e.push(this.initLink(t))),e)),(0,d.A)()),secondaryLinks:e.links.reduce(((e,t)=>("secondary"===t.segment&&(this.nextObjectId++,e.push(this.initLink(t))),e)),(0,d.A)()),id:e.id,hideTitleInput:this.model.hideSectionHeader}:{links:(0,d.A)([new ee({router:this.router,objectId:this.nextObjectId,segment:"primary"})])})}initLink(e){return new ee({router:this.router,icon:e.icon,name:e.name,value:e.value,id:e.id,objectId:this.nextObjectId,segment:e.segment})}create(){return(0,r.ajax)("/sidebar_sections",{type:"POST",contentType:"application/json",dataType:"json",data:JSON.stringify({title:this.transformedModel.title,public:this.transformedModel.public,links:this.transformedModel.links.map((e=>({icon:e.icon,name:e.name,value:e.path})))})}).then((e=>{this.currentUser.set("sidebar_sections",this.currentUser.sidebar_sections.concat(e.sidebar_section)),this.closeModal()})).catch((e=>{this.flash=(0,u.sanitize)((0,s.extractError)(e)),this.flashType="error"}))}update(){return(0,r.ajax)(`/sidebar_sections/${this.transformedModel.id}`,{type:"PUT",contentType:"application/json",dataType:"json",data:JSON.stringify({title:this.transformedModel.title,public:this.transformedModel.public,links:this.transformedModel.links.concat(this.transformedModel?.secondaryLinks||[]).map((e=>({id:e.id,icon:e.icon,name:e.name,value:e.path,segment:e.segment,_destroy:e._destroy})))})}).then((e=>{const t=this.currentUser.sidebar_sections.map((t=>t.id===e.sidebar_section.id?e.sidebar_section:t))
this.currentUser.set("sidebar_sections",t),this.closeModal()})).catch((e=>{this.flash=(0,u.sanitize)((0,s.extractError)(e)),this.flashType="error"}))}get activeLinks(){return this.transformedModel.links.filter((e=>!e._destroy))}get activeSecondaryLinks(){return this.transformedModel.secondaryLinks?.filter((e=>!e._destroy))}get header(){return this.transformedModel.id?"sidebar.sections.custom.edit":"sidebar.sections.custom.add"}reorder(e,t,i){if(e===t.objectId)return
let n=this.transformedModel.links.find((t=>t.objectId===e))
if(n||(n=this.transformedModel.secondaryLinks.find((t=>t.objectId===e))),n.isPrimary?this.transformedModel.links.removeObject(n):this.transformedModel.secondaryLinks?.removeObject(n),t.isPrimary){const e=this.transformedModel.links.indexOf(t)
n.segment="primary",this.transformedModel.links.insertAt(i?e:e+1,n)}else{n.segment="secondary"
const e=this.transformedModel.secondaryLinks.indexOf(t)
this.transformedModel.secondaryLinks.insertAt(i?e:e+1,n)}}get canDelete(){return this.transformedModel.id&&!this.transformedModel.sectionType}deleteLink(e){e.id?e._destroy="1":e.isPrimary?this.transformedModel.links.removeObject(e):this.transformedModel.secondaryLinks.removeObject(e)}addLink(){this.nextObjectId=this.nextObjectId+1,this.transformedModel.links.pushObject(new ee({router:this.router,objectId:this.nextObjectId,segment:"primary"}))}addSecondaryLink(){this.nextObjectId=this.nextObjectId+1,this.transformedModel.secondaryLinks.pushObject(new ee({router:this.router,objectId:this.nextObjectId,segment:"secondary"}))}resetToDefault(){return this.dialog.yesNoConfirm({message:a.default.t("sidebar.sections.custom.reset_confirm"),didConfirm:()=>(0,r.ajax)(`/sidebar_sections/reset/${this.transformedModel.id}`,{type:"PUT"}).then((e=>{this.currentUser.sidebar_sections.shiftObject(),this.currentUser.sidebar_sections.unshiftObject(e.sidebar_section),this.closeModal()})).catch((e=>{this.flash=(0,u.sanitize)((0,s.extractError)(e)),this.flashType="error"}))})}save(){this.transformedModel.id?this.update():this.create()}delete(){return this.dialog.yesNoConfirm({message:a.default.t("sidebar.sections.custom.delete_confirm"),didConfirm:()=>(0,r.ajax)(`/sidebar_sections/${this.transformedModel.id}`,{type:"DELETE"}).then((()=>{const e=this.currentUser.sidebar_sections.filter((e=>e.id!==this.transformedModel.id))
this.currentUser.set("sidebar_sections",e),this.closeModal()})).catch((e=>{this.flash=(0,u.sanitize)((0,s.extractError)(e)),this.flashType="error"}))})}},L=G(N.prototype,"dialog",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=G(N.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=G(N.prototype,"flash",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=G(N.prototype,"flashType",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G(N.prototype,"transformedModel",[Y],Object.getOwnPropertyDescriptor(N.prototype,"transformedModel"),N.prototype),G(N.prototype,"reorder",[m.bind],Object.getOwnPropertyDescriptor(N.prototype,"reorder"),N.prototype),G(N.prototype,"deleteLink",[m.bind],Object.getOwnPropertyDescriptor(N.prototype,"deleteLink"),N.prototype),G(N.prototype,"addLink",[h.action],Object.getOwnPropertyDescriptor(N.prototype,"addLink"),N.prototype),G(N.prototype,"addSecondaryLink",[h.action],Object.getOwnPropertyDescriptor(N.prototype,"addSecondaryLink"),N.prototype),G(N.prototype,"resetToDefault",[h.action],Object.getOwnPropertyDescriptor(N.prototype,"resetToDefault"),N.prototype),G(N.prototype,"save",[h.action],Object.getOwnPropertyDescriptor(N.prototype,"save"),N.prototype),G(N.prototype,"delete",[h.action],Object.getOwnPropertyDescriptor(N.prototype,"delete"),N.prototype),N)
e.default=ce,(0,i.setComponentTemplate)(K,ce)})),define("discourse/components/mount-widget",["exports","@ember/component","@ember/template-factory","@ember/runloop","virtual-dom","discourse/widgets/widget","discourse/lib/dirty-keys","discourse/widgets/hooks","@ember/string","discourse-common/lib/get-owner","@ember/array/proxy"],(function(e,t,i,n,r,o,s,l,a,u,c){Object.defineProperty(e,"__esModule",{value:!0}),e.addWidgetCleanCallback=function(e,t){p[e]=p[e]||[],p[e].push(t)},e.default=void 0,e.resetWidgetCleanCallbacks=function(){p={}}
const d=(0,i.createTemplateFactory)({id:"PIUkwqeT",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["_childComponents"]]],null]],null],null,[[[40,[[[1,"    "],[8,[30,1,["component"]],null,[["@data"],[[30,1,["data"]]]],null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,3],[[30,1,["element"]]],null],null]],[1]],null]],["info"],false,["each","-track-array","in-element","-in-el-null"]]',moduleName:"discourse/components/mount-widget.hbs",isStrictMode:!1})
let p={}
var m=(0,t.setComponentTemplate)(d,t.default.extend({_tree:null,_rootNode:null,_timeout:null,_widgetClass:null,_renderCallback:null,_childEvents:null,_dispatched:null,dirtyKeys:null,init(){this._super(...arguments)
const e=this.widget
this.register=(0,u.getRegister)(this),this._widgetClass=(0,o.queryRegistry)(e)||this.register.lookupFactory(`widget:${e}`),this._widgetClass?.class&&(this._widgetClass=this._widgetClass.class),this._widgetClass||console.error(`Error: Could not find widget: ${e}`),this._childEvents=[],this._connected=[],this._childComponents=c.default.create({content:[]}),this._dispatched=[],this.dirtyKeys=new s.default(e)},didInsertElement(){l.WidgetClickHook.setupDocumentCallback(),this._rootNode=document.createElement("div"),this.element.appendChild(this._rootNode),this._timeout=(0,n.scheduleOnce)("render",this,this.rerenderWidget)},willClearRender(){const e=p[this.widget]
e&&e.forEach((e=>e(this._tree))),this._connected.forEach((e=>e.destroy())),this._connected.length=0,(0,o.traverseCustomWidgets)(this._tree,(e=>e.destroy())),this._rootNode=(0,r.patch)(this._rootNode,(0,r.diff)(this._tree,null)),this._tree=null},willDestroyElement(){this._dispatched.forEach((e=>{const[t,i]=e
this.appEvents.off(t,this,i)})),(0,n.cancel)(this._timeout)},afterRender(){},beforePatch(){},afterPatch(){},eventDispatched(e,t,i){t="function"==typeof t?t(i):t
const n=(0,a.camelize)(e.replace(/:/,"-"))
this.dirtyKeys.keyDirty(t,{onRefresh:n,refreshArg:i}),this.queueRerender()},dispatch(e,t){this._childEvents.push(e)
const i=i=>this.eventDispatched(e,t,i)
this._dispatched.push([e,i]),this.appEvents.on(e,this,i)},queueRerender(e){e&&!this._renderCallback&&(this._renderCallback=e),(0,n.scheduleOnce)("render",this,this.rerenderWidget)},buildArgs(){},rerenderWidget(){if((0,n.cancel)(this._timeout),this._rootNode){if(!this._widgetClass)return
const e=Date.now(),t=this.args||this.buildArgs(),i={model:this.model,dirtyKeys:this.dirtyKeys},n=new this._widgetClass(t,this.register,i)
n._rerenderable=this,n._emberView=this
const s=(0,r.diff)(this._tree||this._rootNode,n);(0,o.traverseCustomWidgets)(this._tree,(e=>e.willRerenderWidget())),this.beforePatch(),this._rootNode=(0,r.patch)(this._rootNode,s),this.afterPatch(),this._tree=n,(0,o.traverseCustomWidgets)(n,(e=>e.didRenderWidget())),this._renderCallback&&(this._renderCallback(),this._renderCallback=null),this.afterRender(),this.dirtyKeys.renderedKey("*"),this.profileWidget&&console.log(Date.now()-e)}},mountChildComponent(e){this._childComponents.pushObject(e)},unmountChildComponent(e){this._childComponents.removeObject(e)}}))
e.default=m})),define("discourse/components/nav-item",["exports","@ember/component","@ember/template-factory","I18n","discourse-common/utils/decorators","discourse-common/lib/icon-library","@ember/service","@ember/template"],(function(e,t,i,n,r,o,s,l){var a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"PSWcUtEC",block:'[[[41,[30,0,["routeParam"]],[[[1,"  "],[8,[39,1],null,[["@route","@model"],[[30,0,["route"]],[30,0,["routeParam"]]]],[["default"],[[[[1,[30,0,["contents"]]]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["route"]],[[[1,"  "],[8,[39,1],null,[["@route"],[[30,0,["route"]]]],[["default"],[[[[1,[30,0,["contents"]]]],[]]]]],[1,"\\n"]],[]],[[[1,"  "],[10,3],[15,6,[28,[37,2],[[30,0,["path"]]],null]],[14,"data-auto-route","true"],[12],[1,[30,0,["contents"]]],[13],[1,"\\n"]],[]]]],[]]]],[],false,["if","link-to","get-url"]]',moduleName:"discourse/components/nav-item.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend((a=(0,r.default)("label","i18nLabel","icon"),u=(0,r.default)("route","router.currentRoute"),d(c={tagName:"li",classNameBindings:["active"],router:(0,s.inject)(),contents(e,t,i){let r=t||n.default.t(e)
return i?(0,l.htmlSafe)(`${(0,o.iconHTML)(i)} ${r}`):r},active(e,t){if(!e)return
const i=this.routeParam
return i&&t?t.params.filter===i:this.router.isActive(e)}},"contents",[a],Object.getOwnPropertyDescriptor(c,"contents"),c),d(c,"active",[u],Object.getOwnPropertyDescriptor(c,"active"),c),c)))
e.default=m})),define("discourse/components/navigation-bar",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/object","discourse/lib/url","discourse/mixins/filter-mode","@ember/runloop"],(function(e,t,i,n,r,o,s,l){var a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"HTKYckl3",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["navItems"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@content","@filterMode","@category","@class"],[[30,1],[30,0,["filterMode"]],[30,0,["category"]],[28,[37,3],["nav-item_",[30,1,["name"]]],null]]],null],[1,"\\n"]],[1]],null],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["extra-nav-item","li",[28,[37,5],null,[["category","filterMode"],[[30,0,["category"]],[30,0,["filterMode"]]]]]]],null]],["navItem"],false,["each","-track-array","navigation-item","concat","plugin-outlet","hash"]]',moduleName:"discourse/components/navigation-bar.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend(s.default,(a=(0,n.default)("filterType","navItems"),u=(0,n.observes)("expanded"),c={tagName:"ul",classNameBindings:[":nav",":nav-pills"],elementId:"navigation-bar",init(){this._super(...arguments)},selectedNavItem(e,t){let i=t.find((e=>!0===e.active))
if(i=i||t.find((t=>t.get("filterType")===e)),!i){let t=this.connectors,n=this.category
t&&n&&t.forEach((t=>{if(t.connectorClass&&"function"==typeof t.connectorClass.path&&"function"==typeof t.connectorClass.displayName){t.connectorClass.path(n).indexOf(e)>0&&(i={displayName:t.connectorClass.displayName()})}}))}return i||t[0]},closedNav(){this.expanded||this.ensureDropClosed()},ensureDropClosed(){!this.element||this.isDestroying||this.isDestroyed||(this.expanded&&this.set("expanded",!1),$(window).off("click.navigation-bar"),o.default.appEvents.off("dom:clean",this,this.ensureDropClosed))},toggleDrop(e){e?.preventDefault(),this.set("expanded",!this.expanded),this.expanded&&(o.default.appEvents.on("dom:clean",this,this.ensureDropClosed),(0,l.next)((()=>{this.expanded&&($(this.element.querySelector(".drop a")).on("click",(()=>(this.element.querySelector(".drop").style.display="none",(0,l.next)((()=>{this.ensureDropClosed()})),!0))),$(window).on("click.navigation-bar",(()=>(this.ensureDropClosed(),!0))))})))}},d(c,"selectedNavItem",[a],Object.getOwnPropertyDescriptor(c,"selectedNavItem"),c),d(c,"closedNav",[u],Object.getOwnPropertyDescriptor(c,"closedNav"),c),d(c,"toggleDrop",[r.action],Object.getOwnPropertyDescriptor(c,"toggleDrop"),c),c)))
e.default=m})),define("discourse/components/navigation-item",["exports","@ember/component","@ember/template-factory","discourse/mixins/filter-mode","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"CWwm5MmY",block:'[[[10,3],[15,6,[30,0,["hrefLink"]]],[15,0,[30,0,["activeClass"]]],[12],[1,"\\n"],[41,[30,0,["hasIcon"]],[[[1,"    "],[10,1],[15,0,[30,0,["content","name"]]],[12],[13],[1,"\\n"]],[]],null],[1,"  "],[1,[30,0,["content","displayName"]]],[1,"\\n"],[13]],[],false,["if"]]',moduleName:"discourse/components/navigation-item.hbs",isStrictMode:!1})
var c=(0,t.setComponentTemplate)(u,t.default.extend(n.default,(o=(0,r.default)("content.filterType","filterType","content.active"),s=(0,r.default)("content.count"),l={tagName:"li",classNameBindings:["active","content.hasIcon:has-icon","content.classNames","isHidden:hidden","content.name"],attributeBindings:["content.title:title"],hidden:!1,activeClass:"",hrefLink:null,active:(e,t,i)=>void 0!==i?i:e===t,isHidden(e){return!this.active&&this.currentUser&&this.currentUser.trust_level>0&&("new"===this.content.get("name")||"unread"===this.content.get("name"))&&e<1},didReceiveAttrs(){this._super(...arguments)
const e=this.content
let t=e.get("href"),i=new URLSearchParams,n=!1
if(e.get("includeCategoryId")){let e=this.get("content.category.id")
e&&i.set("category_id",e)}e.currentRouteQueryParams&&(e.currentRouteQueryParams.filter&&(n=!0),e.currentRouteQueryParams.f&&i.set("f",e.currentRouteQueryParams.f)),"categories_and_latest_topics_created_date"===this.siteSettings.desktop_category_page_style&&i.set("order","created")
const r=i.toString();(n||r)&&(t+=`?${r}`),this.set("hrefLink",t),this.set("activeClass",this.active?"active":"")}},a(l,"active",[o],Object.getOwnPropertyDescriptor(l,"active"),l),a(l,"isHidden",[s],Object.getOwnPropertyDescriptor(l,"isHidden"),l),l)))
e.default=c})),define("discourse/components/notification-consent-banner",["exports","@ember/component","@ember/template-factory","discourse/components/desktop-notification-config","discourse-common/utils/decorators","discourse/lib/push-notifications"],(function(e,t,i,n,r,o){var s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"ci2ncIyQ",block:'[[[41,[30,0,["showNotificationPromptBanner"]],[[[1,"  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"consent_banner alert alert-info"],[12],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[1,[28,[35,1],["user.desktop_notifications.consent_prompt"],null]],[1,"\\n        "],[8,[39,2],null,[["@display","@action","@label"],["link",[28,[37,3],[[30,0],"turnon"],null],"user.desktop_notifications.enable"]],null],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,2],null,[["@icon","@action","@class","@title"],["times",[28,[37,3],[[30,0],"dismiss"],null],"btn btn-flat close","banner.close"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","i18n","d-button","action"]]',moduleName:"discourse/components/notification-consent-banner.hbs",isStrictMode:!1}),d="dismissed-prompt"
var p=(0,t.setComponentTemplate)(c,n.default.extend((s=(0,r.default)("isNotSupported","isEnabled","bannerDismissed","currentUser.any_posts"),l={bannerDismissed:{set:e=>(o.keyValueStore.setItem(d,e),o.keyValueStore.getItem(d)),get:()=>o.keyValueStore.getItem(d)},showNotificationPromptBanner(e,t,i,n){return this.siteSettings.push_notifications_prompt&&!e&&this.currentUser&&(this.capabilities.isPwa||n)&&"denied"!==Notification.permission&&"granted"!==Notification.permission&&!t&&!i},actions:{turnon(){this._super(...arguments),this.set("bannerDismissed",!0)},dismiss(){this.set("bannerDismissed",!0)}}},u(l,"bannerDismissed",[r.default],(a=(a=Object.getOwnPropertyDescriptor(l,"bannerDismissed"))?a.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return a}}),l),u(l,"showNotificationPromptBanner",[s],Object.getOwnPropertyDescriptor(l,"showNotificationPromptBanner"),l),l)))
e.default=p})),define("discourse/components/number-field",["exports","I18n","discourse/components/text-field","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=["Enter","Backspace","Tab","Delete","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9"]
var c=i.default.extend((r=(0,n.default)("number"),o=(0,n.default)("placeholderKey"),a(s={classNameBindings:["invalid"],keyDown:function(e){return u.includes(e.key)||"-"===e.key&&parseInt(this.get("min"),10)<0},value:{get:e=>parseInt(e,10),set(e){const t=parseInt(e,10)
return isNaN(t)?(this.set("invalid",!0),e):(this.set("invalid",!1),this.set("number",t),t.toString())}},placeholder:e=>e?t.default.t(e):""},"value",[r],(l=(l=Object.getOwnPropertyDescriptor(s,"value"))?l.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return l}}),s),a(s,"placeholder",[o],Object.getOwnPropertyDescriptor(s,"placeholder"),s),s))
e.default=c})),define("discourse/components/offline-indicator",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@ember/service"],(function(e,t,i,n,r,o){var s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"yIV0M2Jw",block:'[[[41,[30,0,["showing"]],[[[1,"  "],[10,0],[14,0,"offline-indicator"],[12],[1,"\\n    "],[10,1],[12],[1,[28,[35,1],["offline_indicator.no_internet"],null]],[13],[1,"\\n    "],[8,[39,2],null,[["@label","@display","@action"],["offline_indicator.refresh_page","link",[30,0,["refresh"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","i18n","d-button"]]',moduleName:"discourse/components/offline-indicator.hbs",isStrictMode:!1})
let c=(s=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="networkConnectivity",n=this,(i=l)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get showing(){return!this.networkConnectivity.connected}refresh(){window.location.reload(!0)}},l=a(s.prototype,"networkConnectivity",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a(s.prototype,"refresh",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"refresh"),s.prototype),s)
e.default=c,(0,t.setComponentTemplate)(u,c)})),define("discourse/components/page-loading-slider",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/runloop","@glimmer/tracking","@ember/object","discourse-common/utils/decorators","@ember/template"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m
function h(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"S6peMUgH",block:'[[[41,[30,0,["loadingSlider","enabled"]],[[[1,"  "],[11,0],[16,0,[28,[37,1],["loading-indicator-container",[30,0,["state"]],[52,[30,0,["capabilities","isAppWebview"]],"discourse-hub-webview"]],null]],[16,5,[30,0,["containerStyle"]]],[4,[38,2],["transitionend",[30,0,["onContainerTransitionEnd"]]],null],[12],[1,"\\n    "],[11,0],[24,0,"loading-indicator"],[4,[38,2],["transitionend",[30,0,["onBarTransitionEnd"]]],null],[12],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","concat-class","on"]]',moduleName:"discourse/components/page-loading-slider.hbs",isStrictMode:!1})
var b=(0,t.setComponentTemplate)(g,(c=class extends n.default{constructor(){super(...arguments),h(this,"loadingSlider",d,this),h(this,"capabilities",p,this),h(this,"state",m,this),this.loadingSlider.on("stateChanged",this.stateChanged)}stateChanged(e){this._deferredStateChange&&((0,o.cancel)(this._deferredStateChange),this._deferredStateChange=null),e&&this.ready?this.state="loading":e?(this.state="ready",this._deferredStateChange=(0,o.next)((()=>this.state="loading"))):this.state="done"}destroy(){this.loadingSlider.off("stateChange",this,"stateChange"),super.destroy()}onContainerTransitionEnd(e){e.target===e.currentTarget&&"opacity"===e.propertyName&&(this.state="ready")}onBarTransitionEnd(e){e.target===e.currentTarget&&"transform"===e.propertyName&&"loading"===this.state&&(this.state="still-loading")}get containerStyle(){const e=this.loadingSlider.averageLoadingDuration.toFixed(2)
return(0,u.htmlSafe)(`--loading-duration: ${e}s`)}},d=f(c.prototype,"loadingSlider",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=f(c.prototype,"capabilities",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=f(c.prototype,"state",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"ready"}}),f(c.prototype,"stateChanged",[a.bind],Object.getOwnPropertyDescriptor(c.prototype,"stateChanged"),c.prototype),f(c.prototype,"onContainerTransitionEnd",[l.action],Object.getOwnPropertyDescriptor(c.prototype,"onContainerTransitionEnd"),c.prototype),f(c.prototype,"onBarTransitionEnd",[l.action],Object.getOwnPropertyDescriptor(c.prototype,"onBarTransitionEnd"),c.prototype),c))
e.default=b})),define("discourse/components/parent-category-row",["exports","@ember/component","@ember/template-factory","discourse/components/category-list-item"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"/L1keS9o",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1,"  "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-above-each-category",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n  "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,0,[29,[[52,[30,0,["category","description_excerpt"]],"has-description","no-description"],"\\n      ",[52,[30,0,["category","uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n    "],[10,"td"],[15,0,[29,["category\\n        ",[52,[30,0,["isMuted"]],"muted"],"\\n        ",[52,[30,0,["noCategoryStyle"]],"no-category-style"]]]],[15,5,[52,[51,[30,0,["noCategoryStyle"]]],[28,[37,4],[[30,0,["category","color"]]],null]]],[12],[1,"\\n      "],[8,[39,5],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n      "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["below-category-title-link","div",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["category","description_excerpt"]],[[[1,"        "],[10,0],[14,0,"category-description"],[12],[1,"\\n          "],[1,[28,[35,6],[[30,0,["category","description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["category","isGrandParent"]],[[[1,"        "],[10,"table"],[14,0,"category-list subcategories-with-subcategories"],[12],[1,"\\n          "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"              "],[8,[39,9],null,[["@category","@listType"],[[30,1],[30,0,["listType"]]]],null],[1,"\\n"]],[1]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[41,[30,0,["category","subcategories"]],[[[1,"        "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"            "],[8,[39,10],null,[["@category","@listType"],[[30,2],[30,0,["listType"]]]],null],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n      "]],[]],null]],[]]],[1,"    "],[13],[1,"\\n\\n    "],[10,"td"],[14,0,"topics"],[12],[1,"\\n      "],[10,0],[15,"title",[30,0,["category","statTitle"]]],[12],[1,[28,[35,11],[[30,0,["category","stat"]]],null]],[13],[1,"\\n      "],[8,[39,12],null,[["@category","@tagName","@class","@unreadTopicsCount","@newTopicsCount"],[[30,0,["category"]],"div","unread-new",[30,0,["unreadTopicsCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["showTopics"]],[[[1,"        "],[10,"td"],[14,0,"latest"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","featuredTopics"]]],null]],null],null,[[[1,"            "],[8,[39,13],null,[["@topic"],[[30,3]]],null],[1,"\\n"]],[3]],null],[1,"        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["subcategory","subcategory","t"],false,["unless","plugin-outlet","hash","if","category-color-variable","category-title-link","dir-span","each","-track-array","sub-category-row","sub-category-item","html-safe","category-unread","featured-topic"]]',moduleName:"discourse/components/parent-category-row.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,n.default.extend({}))
e.default=o})),define("discourse/components/password-field",["exports","discourse/components/text-field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({canToggle:!1,keyPress(e){e.which>=65&&e.which<=90&&!e.shiftKey||e.which>=97&&e.which<=122&&e.shiftKey?(this.set("canToggle",!0),this.set("capsLockOn",!0)):(e.which>=65&&e.which<=90&&e.shiftKey||e.which>=97&&e.which<=122&&!e.shiftKey)&&(this.set("canToggle",!0),this.set("capsLockOn",!1))},keyUp(e){20===e.which&&this.canToggle&&this.toggleProperty("capsLockOn")},focusOut(){this.set("capsLockOn",!1)},focusIn(){this.set("canToggle",!1)}})
e.default=i})),define("discourse/components/pending-post",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","discourse/lib/load-oneboxes","discourse/lib/ajax","pretty-text/upload-short-url"],(function(e,t,i,n,r,o,s){var l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"QxNva+5p",block:'[[[8,[39,0],null,[["@item"],[[30,1]]],null]],["@post"],false,["user-stream-item"]]',moduleName:"discourse/components/pending-post.hbs",isStrictMode:!1})
var c=(0,t.setComponentTemplate)(u,t.default.extend((a(l={didRender(){this._loadOneboxes(),this._resolveUrls()},_loadOneboxes(){(0,r.loadOneboxes)(this.element,o.ajax,this.post.topic_id,this.post.category_id,this.siteSettings.max_oneboxes_per_post,!0)},_resolveUrls(){(0,s.resolveAllShortUrls)(o.ajax,this.siteSettings,this.element,this.opts)}},"_loadOneboxes",[n.afterRender],Object.getOwnPropertyDescriptor(l,"_loadOneboxes"),l),a(l,"_resolveUrls",[n.afterRender],Object.getOwnPropertyDescriptor(l,"_resolveUrls"),l),l)))
e.default=c})),define("discourse/components/pick-files-button",["exports","@ember/component","@ember/template-factory","@ember/utils","discourse/lib/uploads","@ember/object","discourse-common/utils/decorators","I18n","@ember/service"],(function(e,t,i,n,r,o,s,l,a){var u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"+leCynKR",block:'[[[41,[30,0,["showButton"]],[[[1,"  "],[8,[39,1],null,[["@action","@label","@icon"],[[28,[37,2],[[30,0],"openSystemFilePicker"],null],[30,0,["label"]],[30,0,["icon"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["acceptsAllFormats"]],[[[1,"  "],[10,"input"],[15,1,[30,0,["fileInputId"]]],[15,0,[30,0,["fileInputClass"]]],[15,"multiple",[30,0,["allowMultiple"]]],[15,"disabled",[30,0,["fileInputDisabled"]]],[14,4,"file"],[12],[13],[1,"\\n"]],[]],[[[1,"  "],[10,"input"],[15,1,[30,0,["fileInputId"]]],[15,0,[30,0,["fileInputClass"]]],[15,"accept",[30,0,["acceptedFormats"]]],[15,"multiple",[30,0,["allowMultiple"]]],[15,"disabled",[30,0,["fileInputDisabled"]]],[14,4,"file"],[12],[13],[1,"\\n"]],[]]]],[],false,["if","d-button","action"]]',moduleName:"discourse/components/pick-files-button.hbs",isStrictMode:!1})
var h=(0,t.setComponentTemplate)(m,t.default.extend((u=(0,s.default)(),c=(0,s.default)(),d={dialog:(0,a.inject)(),fileInputId:null,fileInputClass:null,fileInputDisabled:!1,classNames:["pick-files-button"],acceptedFormatsOverride:null,allowMultiple:!1,showButton:!1,didInsertElement(){if(this._super(...arguments),this.onFilesPicked){const e=this.element.querySelector("input")
this.set("fileInput",e),e.addEventListener("change",this.onChange,!1)}},willDestroyElement(){this._super(...arguments),this.onFilesPicked&&this.fileInput.removeEventListener("change",this.onChange)},onChange(){const e=this.fileInput.files
this._filesPicked(e)},acceptsAllFormats(){return this.capabilities.isIOS||(0,r.authorizesAllExtensions)(this.currentUser.staff,this.siteSettings)},acceptedFormats(){if(!(0,n.isBlank)(this.acceptedFormatsOverride))return this.acceptedFormatsOverride
return(0,r.authorizedExtensions)(this.currentUser.staff,this.siteSettings).map((e=>`.${e}`)).join()},openSystemFilePicker(){this.fileInput.click()},_filesPicked(e){if(e&&e.length)if(this._haveAcceptedTypes(e));else{const e=l.default.t("pick_files_button.unsupported_file_picked",{types:this.acceptedFileTypesString})
this.dialog.alert(e)}},_haveAcceptedTypes(e){for(const t of e)if(!this._hasAcceptedExtensionOrType(t))return!1
return!0},_hasAcceptedExtensionOrType(e){const t=this._fileExtension(e.name)
return this.acceptedFormats.includes(`.${t}`)||this.acceptedFormats.includes(e.type)},_fileExtension:e=>e.split(".").pop()},p(d,"onChange",[s.bind],Object.getOwnPropertyDescriptor(d,"onChange"),d),p(d,"acceptsAllFormats",[u],Object.getOwnPropertyDescriptor(d,"acceptsAllFormats"),d),p(d,"acceptedFormats",[c],Object.getOwnPropertyDescriptor(d,"acceptedFormats"),d),p(d,"openSystemFilePicker",[o.action],Object.getOwnPropertyDescriptor(d,"openSystemFilePicker"),d),d)))
e.default=h}))
define("discourse/components/plugin-connector",["exports","@ember/object","@ember/component","discourse-common/utils/decorators","discourse/lib/plugin-connectors","discourse-common/lib/deprecated"],(function(e,t,i,n,r,o){var s
Object.defineProperty(e,"__esModule",{value:!0}),e.addPluginOutletDecorator=function(e,t){l[e]=l[e]||[],l[e].push(t)},e.default=void 0,e.resetDecorators=function(){l={}}
let l={}
var a,u,c,d,p,m,h=i.default.extend((s={init(){this._super(...arguments)
const e=this.args||{}
Object.keys(e).forEach((e=>{(0,t.defineProperty)(this,e,(0,t.computed)("args",(()=>(this.args||{})[e])))}))
const i=this.deprecatedArgs||{}
Object.keys(i).forEach((e=>{(0,t.defineProperty)(this,e,(0,t.computed)("deprecatedArgs",(()=>((0,o.default)(`The ${e} property is deprecated, but is being used in ${this.layoutName}`,{id:"discourse.plugin-connector.deprecated-arg"}),(this.deprecatedArgs||{})[e]))))}))
const n=this.connector.connectorClass
if(this.set("actions",n?.actions),this.actions)for(const[t,r]of Object.entries(this.actions))this.set(t,r.bind(this))
const s=(0,r.buildArgsWithDeprecations)(e,i)
n?.setupComponent?.call(this,s,this)},didReceiveAttrs(){this._super(...arguments),this._decoratePluginOutlets()},_decoratePluginOutlets(){(l[this.connector.outletName]||[]).forEach((e=>e(this.element,this.args)))},willDestroyElement(){this._super(...arguments)
const e=this.connector.connectorClass
e?.teardownComponent?.call(this,this)},send(e){const t=this.connector.connectorClass,i=t?.actions?.[e]
for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o]
return i?i.call(this,...r):this._super(e,...r)}},a=s,u="_decoratePluginOutlets",c=[n.afterRender],d=Object.getOwnPropertyDescriptor(s,"_decoratePluginOutlets"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s))
e.default=h})),define("discourse/components/plugin-outlet",["exports","@embroider/macros/es-compat","@ember/component","@ember/template-factory","discourse/components/glimmer-component-with-deprecated-parent-view","discourse/lib/plugin-connectors","discourse-common/lib/helpers","discourse-common/lib/deprecated","@ember/object","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l,a,u){var c
function d(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,n.createTemplateFactory)({id:"W3f9Lk6U",block:'[[[41,[30,1],[[[1,"  "],[8,[30,0,["wrapperComponent"]],null,[["@tagName"],[[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["connectors"]]],null]],null],null,[[[41,[30,2,["componentClass"]],[[[1,"        "],[8,[30,2,["componentClass"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],null],[1,"\\n"]],[]],[[[41,[30,3],[[[1,"        "],[8,[30,2,["templateOnly"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,3],null,[["@connector","@args","@deprecatedArgs","@outletArgs","@class","@tagName","@layout"],[[30,2],[30,0,["outletArgs"]],[30,4],[30,0,["outletArgsWithDeprecations"]],[30,2,["classicClassNames"]],[28,[37,4],[[30,5],""],null],[30,2,["template"]]]],null],[1,"\\n      "]],[]]]],[]]]],[2]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]],[[[42,[28,[37,2],[[28,[37,2],[[30,0,["connectors"]]],null]],null],null,[[[41,[30,6,["componentClass"]],[[[1,"      "],[8,[30,6,["componentClass"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],null],[1,"\\n"]],[]],[[[41,[30,3],[[[1,"      "],[8,[30,6,["templateOnly"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,3],null,[["@connector","@args","@deprecatedArgs","@outletArgs","@class","@tagName","@layout"],[[30,6],[30,0,["outletArgs"]],[30,4],[30,0,["outletArgsWithDeprecations"]],[30,6,["classicClassNames"]],[28,[37,4],[[30,5],""],null],[30,6,["template"]]]],null],[1,"\\n    "]],[]]]],[]]]],[6]],null]],[]]]],["@tagName","c","@defaultGlimmer","@deprecatedArgs","@connectorTagName","c"],false,["if","each","-track-array","plugin-connector","or"]]',moduleName:"discourse/components/plugin-outlet.hbs",isStrictMode:!1})
let h=(0,t.default)(require("ember-cached-decorator-polyfill")).cached
let f=(c=class extends r.default{constructor(){const e=(super(...arguments),d(this,"context",{...(0,s.helperContext)(),get parentView(){return this.parentView},get(){return(0,l.default)("Plugin outlet context is no longer an EmberObject - using `get()` is deprecated.",{id:"discourse.plugin-outlet-context-get"}),(0,a.get)(this,...arguments)}}),this)
return this.args.tagName&&(0,l.default)(`The \`tagName\` argument to PluginOutlet is deprecated. If a wrapper element is required, define it manually around the outlet call. (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-tag-name"}),this.args.args&&(0,l.default)(`PluginOutlet arguments should now be passed using \`@outletArgs=\` instead of \`@args=\` (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-args"}),e}get connectors(){return(0,o.renderedConnectorsFor)(this.args.name,this.outletArgsWithDeprecations,this.context)}get outletArgs(){return this.args.outletArgs||this.args.args||{}}get outletArgsWithDeprecations(){return this.args.deprecatedArgs?(0,o.buildArgsWithDeprecations)(this.outletArgs,this.args.deprecatedArgs||{}):this.outletArgs}get parentView(){return(0,l.default)(`parentView should not be used within plugin outlets. Use the available outlet arguments, or inject a service which can provide the context you need. (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-parent-view"}),this._parentView}set parentView(e){this._parentView=e}get wrapperComponent(){return g}},p(c.prototype,"outletArgs",[h],Object.getOwnPropertyDescriptor(c.prototype,"outletArgs"),c.prototype),p(c.prototype,"outletArgsWithDeprecations",[h],Object.getOwnPropertyDescriptor(c.prototype,"outletArgsWithDeprecations"),c.prototype),c)
e.default=f
class g extends i.default{get parentView(){return this._parentView.parentView}set parentView(e){this._parentView=e}}(0,i.setComponentTemplate)(m,f)})),define("discourse/components/popup-input-tip",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse-common/utils/decorators","@ember/template","@ember/service"],(function(e,t,i,n,r,o,s){var l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"3kGtAn2e",block:'[[[1,[30,0,["tipReason"]]],[1," "],[1,[28,[35,0],["times-circle"],null]]],[],false,["d-icon"]]',moduleName:"discourse/components/popup-input-tip.hbs",isStrictMode:!1})
var p=(0,t.setComponentTemplate)(d,t.default.extend((l=(0,r.default)("bad"),a=(0,r.default)("validation.reason"),u={composer:(0,s.inject)(),tagName:"a",classNameBindings:[":popup-tip","good","bad","lastShownAt::hide"],attributeBindings:["role","ariaLabel","tabindex"],tipReason:null,lastShownAt:(0,n.or)("shownAt","validation.lastShownAt"),bad:(0,n.reads)("validation.failed"),good:(0,n.not)("bad"),tabindex:"0",role(e){if(e)return"alert"},ariaLabel:e=>e?.replace(/(<([^>]+)>)/gi,""),dismiss(){this.set("shownAt",null),this.composer.clearLastValidatedAt(),this.element.previousElementSibling?.focus()},click(){this.dismiss()},keyDown(e){"Enter"===e.key&&this.dismiss()},didReceiveAttrs(){this._super(...arguments)
let e=this.get("validation.reason")
e?this.set("tipReason",(0,o.htmlSafe)(`${e}`)):this.set("tipReason",null)}},c(u,"role",[l],Object.getOwnPropertyDescriptor(u,"role"),u),c(u,"ariaLabel",[a],Object.getOwnPropertyDescriptor(u,"ariaLabel"),u),u)))
e.default=p})),define("discourse/components/popup-menu",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ceqSN3Cy",block:'[[[10,"h3"],[12],[1,[28,[35,0],[[30,0,["title"]]],null]],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n  "],[18,1,null],[1,"\\n"],[13]],["&default"],false,["i18n","yield"]]',moduleName:"discourse/components/popup-menu.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/preference-checkbox",["exports","@ember/component","@ember/template-factory","I18n","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"RADlXyEF",block:'[[[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n  "],[8,[39,0],[[16,"disabled",[30,0,["disabled"]]]],[["@type","@checked"],["checkbox",[30,0,["checked"]]]],null],[1,"\\n  "],[1,[30,0,["label"]]],[1,"\\n"],[13]],[],false,["input"]]',moduleName:"discourse/components/preference-checkbox.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((o=(0,r.default)("labelKey"),a=s={classNames:["controls"],label:e=>n.default.t(e),change(){return!this.warning||!this.checked||(this.warning(),!1)}},u="label",c=[o],d=Object.getOwnPropertyDescriptor(s,"label"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/private-message-glyph",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"N6MsCHwi",block:'[[[41,[30,0,["shouldShow"]],[[[41,[30,0,["href"]],[[[1,"    "],[10,3],[15,6,[30,0,["href"]]],[15,"title",[28,[37,1],[[30,0,["title"]]],null]],[15,"aria-label",[28,[37,1],[[30,0,["ariaLabel"]]],null]],[12],[1,"\\n      "],[10,1],[14,0,"private-message-glyph-wrapper"],[12],[1,"\\n        "],[1,[28,[35,2],["envelope"],[["class"],["private-message-glyph"]]]],[1,"\\n      "],[13],[1,"\\n    "],[13]],[]],[[[1,"    "],[10,1],[14,0,"private-message-glyph-wrapper"],[12],[1,"\\n      "],[1,[28,[35,2],["envelope"],[["class"],["private-message-glyph"]]]],[1,"\\n    "],[13]],[]]]],[]],null]],[],false,["if","i18n","d-icon"]]',moduleName:"discourse/components/private-message-glyph.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:null,href:null,title:null,ariaLabel:null,shouldShow:null}))
e.default=r})),define("discourse/components/pwa-install-banner",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o,s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"fYm3E/4F",block:'[[[41,[30,0,["showPWAInstallBanner"]],[[[1,"  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"pwa-install-banner alert alert-info"],[12],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,1],null,[["@action","@text","@textParams"],[[28,[37,2],[[30,0],"turnOn"],null],"pwa.install_banner",[28,[37,3],null,[["title"],[[30,0,["siteSettings","title"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,4],null,[["@icon","@action","@class","@title"],["times",[28,[37,2],[[30,0],"dismiss"],null],"btn btn-flat close","banner.close"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","discourse-linked-text","action","hash","d-button"]]',moduleName:"discourse/components/pwa-install-banner.hbs",isStrictMode:!1}),d="dismissed-pwa-install-banner"
var p=(0,t.setComponentTemplate)(c,t.default.extend((r=(0,n.on)("didInsertElement"),o=(0,n.on)("willDestroyElement"),s=(0,n.default)("deferredInstallPromptEvent","bannerDismissed"),u(l={deferredInstallPromptEvent:null,_onInstallPrompt(e){e.preventDefault(),this.set("deferredInstallPromptEvent",e)},_registerListener(){window.addEventListener("beforeinstallprompt",this._onInstallPrompt)},_unregisterListener(){window.removeEventListener("beforeinstallprompt",this._onInstallPrompt)},bannerDismissed:{set(e){return this.keyValueStore.set({key:d,value:e}),this.keyValueStore.get(d)},get(){return this.keyValueStore.get(d)}},showPWAInstallBanner(e,t){return this.capabilities.isAndroid&&this.get("currentUser.trust_level")>0&&e&&!window.matchMedia("(display-mode: standalone)").matches&&!this.capabilities.isAppWebview&&!t},actions:{turnOn(){this.set("bannerDismissed",!0),this.deferredInstallPromptEvent.prompt()},dismiss(){this.set("bannerDismissed",!0)}}},"_onInstallPrompt",[n.bind],Object.getOwnPropertyDescriptor(l,"_onInstallPrompt"),l),u(l,"_registerListener",[r],Object.getOwnPropertyDescriptor(l,"_registerListener"),l),u(l,"_unregisterListener",[o],Object.getOwnPropertyDescriptor(l,"_unregisterListener"),l),u(l,"bannerDismissed",[n.default],(a=(a=Object.getOwnPropertyDescriptor(l,"bannerDismissed"))?a.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return a}}),l),u(l,"showPWAInstallBanner",[s],Object.getOwnPropertyDescriptor(l,"showPWAInstallBanner"),l),l)))
e.default=p})),define("discourse/components/quote-button",["exports","@ember/component","@ember/template-factory","discourse/lib/computed","discourse/lib/ajax","discourse/lib/ajax-error","discourse/lib/utilities","I18n","discourse-common/config/environment","discourse/mixins/key-enter-escape","discourse/lib/sharing","@ember/object","@ember/object/computed","discourse-common/utils/decorators","discourse-common/lib/debounce","discourse-common/lib/get-url","@ember/runloop","discourse/lib/to-markdown","discourse-common/utils/escape-regexp","@popperjs/core","discourse/lib/virtual-element-from-text-range"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v){var w,k,x,P,O,T
function S(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const j=(0,i.createTemplateFactory)({id:"F+9didTg",block:'[[[10,0],[14,0,"buttons"],[12],[1,"\\n"],[41,[30,0,["embedQuoteButton"]],[[[1,"    "],[8,[39,1],null,[["@class","@action","@icon","@label","@title"],["btn-flat insert-quote",[28,[37,2],[[30,0],"insertQuote"],null],"quote-left","post.quote_reply","post.quote_reply_shortcut"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","enable_fast_edit"]],[[[41,[30,0,["_canEditPost"]],[[[1,"      "],[8,[39,1],null,[["@icon","@action","@label","@class","@title"],["pencil-alt",[28,[37,2],[[30,0],"_toggleFastEditForm"],null],"post.quote_edit","btn-flat quote-edit-label","post.quote_edit_shortcut"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["quoteSharingEnabled"]],[[[1,"    "],[10,1],[14,0,"quote-sharing"],[12],[1,"\\n"],[41,[30,0,["quoteSharingShowLabel"]],[[[1,"        "],[8,[39,1],null,[["@icon","@label","@class"],["share","post.quote_share","btn-flat quote-share-label"]],null],[1,"\\n"]],[]],null],[1,"\\n      "],[10,1],[14,0,"quote-share-buttons"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["quoteSharingSources"]]],null]],null],null,[[[1,"          "],[8,[39,1],null,[["@class","@action","@translatedTitle","@icon"],["btn-flat",[28,[37,2],[[30,0],"share",[30,1]],null],[30,1,["title"]],[30,1,["icon"]]]],null],[1,"\\n"]],[1]],null],[1,"        "],[8,[39,5],null,[["@name","@connectorTagName"],["quote-share-buttons-after","div"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"extra"],[12],[1,"\\n"],[41,[30,0,["siteSettings","enable_fast_edit"]],[[[41,[30,0,["_displayFastEditInput"]],[[[1,"      "],[10,0],[14,0,"fast-edit-container"],[12],[1,"\\n        "],[8,[39,6],[[24,1,"fast-edit-input"]],[["@value"],[[30,0,["_fastEditNewSelection"]]]],null],[1,"        "],[8,[39,1],null,[["@action","@class","@icon","@label","@translatedTitle","@disabled","@isLoading"],[[28,[37,2],[[30,0],"_saveFastEdit"],null],"btn-small btn-primary save-fast-edit","pencil-alt","composer.save_edit",[30,0,["_saveEditButtonTitle"]],[30,0,["_saveFastEditDisabled"]],[30,0,["_isSavingFastEdit"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"  "],[8,[39,5],null,[["@name","@connectorTagName"],["quote-button-after","div"]],null],[1,"\\n"],[13]],["source"],false,["if","d-button","action","each","-track-array","plugin-outlet","textarea"]]',moduleName:"discourse/components/quote-button.hbs",isStrictMode:!1})
function C(e){const t=e.querySelector(".title")
if(!t)return
const i=t.querySelector("a:not(.back)")
return i?i.textContent.trim():t.textContent.trim().replace(/:$/,"")}function z(e){return e.replace(/[\u201C\u201D]/g,'"').replace(/[\u2018\u2019]/g,"'")}var I=(0,t.setComponentTemplate)(j,t.default.extend(u.default,(w=(0,m.default)("topic.{isPrivateMessage,invisible,category}"),k=(0,m.default)("topic.isPrivateMessage"),x=(0,m.default)("topic.{isPrivateMessage,invisible,category}"),P=(0,m.default)("topic.{id,slug}","quoteState"),O=(0,m.default)("topic.details.can_create_post","topic.details.can_reply_as_new_topic"),T={classNames:["quote-button"],classNameBindings:["visible","_displayFastEditInput:fast-editing","animated"],visible:!1,animated:!1,privateCategory:(0,p.alias)("topic.category.read_restricted"),editPost:null,_popper:null,popperPlacement:"top-start",popperOffset:[0,3],_isFastEditable:!1,_displayFastEditInput:!1,_fastEditInitialSelection:null,_fastEditNewSelection:null,_isSavingFastEdit:!1,_canEditPost:!1,_saveEditButtonTitle:l.default.t("composer.title",{modifier:(0,s.translateModKey)("Meta+")}),_isMouseDown:!1,_reselected:!1,_hideButton(){this.quoteState.clear(),this.set("visible",!1),this.set("animated",!1),this.set("_isFastEditable",!1),this.set("_displayFastEditInput",!1),this.set("_fastEditInitialSelection",null),this.set("_fastEditNewSelection",null),this._teardownSelectionListeners()},_selectionChanged(){if(this._displayFastEditInput)return void(this.textRange=(0,v.default)())
const e=this.quoteState,t=window.getSelection()
if(t.isCollapsed)return void(this.visible&&this._hideButton())
let i,n
for(let s=0;s<t.rangeCount;s++){const e=t.getRangeAt(s),r=$(e.startContainer),o=$(e.commonAncestorContainer)
if(0===r.closest(".cooked").length)return
if(i=i||e,n=n||o.closest(".boxed, .reply").data("post-id"),0===o.closest(".contents").length||!n)return void(this.visible&&this._hideButton())}const r=(0,s.selectedElement)(),o=(0,s.selectedText)(),l=$(r),a=l.find(".cooked")[0]||l.closest(".cooked")[0]
let u={full:!((0,s.selectedRange)().startOffset>0)&&o===(0,b.default)(a.innerHTML)}
for(let s=r;s&&"ARTICLE"!==s.tagName;s=s.parentElement)if("ASIDE"===s.tagName&&s.classList.contains("quote")){u.username=s.dataset.username||C(s),u.post=s.dataset.post,u.topic=s.dataset.topic
break}if(e.selected(n,o,u),this.set("visible",e.buffer.length>0),this.siteSettings.enable_fast_edit&&(this.set("_canEditPost",this.topic.postStream.findLoadedPost(n)?.can_edit),this._canEditPost)){const t=new RegExp((0,y.default)(e.buffer),"gi"),i=a.innerHTML.match(t),n=/[^\x00-\x7F]/
e.buffer.length<1||e.buffer.includes("|")||e.buffer.match(/\n/g)||i?.length>1||n.test(e.buffer)?(this.set("_isFastEditable",!1),this.set("_fastEditInitialSelection",null),this.set("_fastEditNewSelection",null)):1===i?.length&&(this.set("_isFastEditable",!0),this.set("_fastEditInitialSelection",e.buffer),this.set("_fastEditNewSelection",e.buffer))}if(this._prevSelection===o)return
this._prevSelection=o
const c=this.site.isMobileDevice,{isIOS:d,isAndroid:p,isOpera:m}=this.capabilities;(c||d||p||m)&&(this.popperPlacement="bottom-start",this.popperOffset=[0,25]),(0,g.schedule)("afterRender",(()=>{!this.element||this.isDestroying||this.isDestroyed||(this.textRange=(0,v.default)(),this._setupSelectionListeners(),this._popper=(0,_.createPopper)(this.textRange,this.element,{placement:this.popperPlacement,modifiers:[{name:"computeStyles",options:{adaptive:!1}},{name:"offset",options:{offset:this.popperOffset}}]}),this.animated||(0,g.next)((()=>this.set("animated",!0))))}))},_updateRect(){this.textRange?.updateRect()},_setupSelectionListeners(){document.body.addEventListener("mouseup",this._updateRect),window.addEventListener("scroll",this._updateRect),document.scrollingElement.addEventListener("scroll",this._updateRect)},_teardownSelectionListeners(){document.body.removeEventListener("mouseup",this._updateRect),window.removeEventListener("scroll",this._updateRect),document.scrollingElement.removeEventListener("scroll",this._updateRect)},didInsertElement(){this._super(...arguments)
const{isWinphone:e,isAndroid:t}=this.capabilities,i=e||t?a.INPUT_DELAY:25,n=()=>{(0,h.default)(this,this._selectionChanged,i)}
$(document).on("mousedown.quote-button",(e=>{this._prevSelection=null,this._isMouseDown=!0,this._reselected=!1,e.target.classList.contains("fast-edit-input")||0===$(e.target).closest(".quote-button, .create, .share, .reply-new").length&&this._hideButton()})).on("mouseup.quote-button",(e=>{e.target.classList.contains("fast-edit-input")||(this._prevSelection=null,this._isMouseDown=!1,n())})).on("selectionchange.quote-button",(()=>{this._isMouseDown||this._reselected||n()})),this.appEvents.on("quote-button:quote",this,"insertQuote"),this.appEvents.on("quote-button:edit",this,"_toggleFastEditForm")},willDestroyElement(){this._popper?.destroy(),$(document).off("mousedown.quote-button").off("mouseup.quote-button").off("selectionchange.quote-button"),this.appEvents.off("quote-button:quote",this,"insertQuote"),this.appEvents.off("quote-button:edit",this,"_toggleFastEditForm"),this._teardownSelectionListeners()},quoteSharingEnabled(e){return!(this.site.mobileView||"none"===this.siteSettings.share_quote_visibility||this.currentUser&&"anonymous"===this.siteSettings.share_quote_visibility||0===this.quoteSharingSources.length||this.privateCategory||this.currentUser&&e.invisible)},quoteSharingSources(e){return c.default.activeSources(this.siteSettings.share_quote_buttons,this.siteSettings.login_required||e)},quoteSharingShowLabel(){return this.quoteSharingSources.length>1},shareUrl(e,t){const i=t.postId,n=e.postStream.findLoadedPost(i).post_number
return(0,f.getAbsoluteURL)((0,s.postUrl)(e.slug,e.id,n))},embedQuoteButton(e,t){return(e||t)&&this.currentUser?.get("user_option.enable_quoting")},_saveFastEditDisabled:(0,n.propertyEqual)("_fastEditInitialSelection","_fastEditNewSelection"),insertQuote(){this.attrs.selectText().then((()=>this._hideButton()))},_toggleFastEditForm(){if(!this._isFastEditable){const e=this.quoteState.postId,t=this.topic.postStream.findLoadedPost(e)
return(0,r.ajax)(`/posts/${t.id}`,{type:"GET",cache:!1}).then((e=>{let i=0
const n=e.raw.split("\n"),r=z(this.quoteState.buffer.split("\n")[0].replace(/^\* /,""))
n.some(((e,t)=>{if(e.length&&e.includes(r))return i=t,!0})),this.editPost(t),document.querySelector("#reply-control")?.addEventListener("transitionend",(()=>{const e=document.querySelector(".d-editor-input")
!e||this.isDestroyed||this.isDestroying||((0,s.setCaretPosition)(e,n.slice(0,i).join("\n").length+(i>0?1:0)),e.blur(),e.focus())}))}))}this.toggleProperty("_displayFastEditInput"),(0,g.schedule)("afterRender",(()=>{this.site.mobileView&&(this.textRange=document.querySelector("#main-outlet"),this._popper?.update()),(0,g.next)((()=>document.querySelector("#fast-edit-input")?.focus()))}))},_saveFastEdit(){const e=this.quoteState?.postId,t=this.topic.postStream.findLoadedPost(e)
return this.set("_isSavingFastEdit",!0),(0,r.ajax)(`/posts/${t.id}`,{type:"GET",cache:!1}).then((e=>{const i=e.raw.replace(z(this._fastEditInitialSelection),z(this._fastEditNewSelection))
t.save({raw:i}).catch(o.popupAjaxError).finally((()=>{this.set("_isSavingFastEdit",!1),this._hideButton()}))})).catch(o.popupAjaxError)},save(){this._displayFastEditInput&&!this._saveFastEditDisabled&&this._saveFastEdit()},cancelled(){this._hideButton()},share(e){c.default.shareSource(e,{url:this.shareUrl,title:this.topic.title,quote:window.getSelection().toString()})}},S(T,"_updateRect",[m.bind],Object.getOwnPropertyDescriptor(T,"_updateRect"),T),S(T,"quoteSharingEnabled",[w],Object.getOwnPropertyDescriptor(T,"quoteSharingEnabled"),T),S(T,"quoteSharingSources",[k],Object.getOwnPropertyDescriptor(T,"quoteSharingSources"),T),S(T,"quoteSharingShowLabel",[x],Object.getOwnPropertyDescriptor(T,"quoteSharingShowLabel"),T),S(T,"shareUrl",[P],Object.getOwnPropertyDescriptor(T,"shareUrl"),T),S(T,"embedQuoteButton",[O],Object.getOwnPropertyDescriptor(T,"embedQuoteButton"),T),S(T,"insertQuote",[d.action],Object.getOwnPropertyDescriptor(T,"insertQuote"),T),S(T,"_toggleFastEditForm",[d.action],Object.getOwnPropertyDescriptor(T,"_toggleFastEditForm"),T),S(T,"_saveFastEdit",[d.action],Object.getOwnPropertyDescriptor(T,"_saveFastEdit"),T),S(T,"save",[d.action],Object.getOwnPropertyDescriptor(T,"save"),T),S(T,"cancelled",[d.action],Object.getOwnPropertyDescriptor(T,"cancelled"),T),S(T,"share",[d.action],Object.getOwnPropertyDescriptor(T,"share"),T),T)))
e.default=I})),define("discourse/components/radio-button",["exports","@ember/component","discourse-common/utils/decorators"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((n=(0,i.default)("value","selection"),o=r={tagName:"input",type:"radio",attributeBindings:["name","type","value","checked:checked","disabled:disabled"],click(){const e=$(this.element).val()
this.onChange?this.onChange(e):(this.selection===e&&this.set("selection",void 0),this.set("selection",e))},checked:(e,t)=>e===t},s="checked",l=[n],a=Object.getOwnPropertyDescriptor(r,"checked"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/components/related-messages",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","discourse-common/lib/get-url"],(function(e,t,i,n,r){var o
function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"cYc+Lrud",block:'[[[10,0],[14,1,"related-messages"],[14,0,"suggested-topics"],[14,"role","complementary"],[14,"aria-labelledby","related-messages-title"],[12],[1,"\\n  "],[10,"h3"],[14,0,"suggested-topics-title"],[14,1,"related-messages-title"],[12],[1,"\\n    "],[1,[28,[35,0],["related_messages.title"],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"topics"],[12],[1,"\\n    "],[8,[39,1],null,[["@hideCategory","@showPosters","@topics"],["true","true",[30,0,["topic","relatedMessages"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["targetUser"]],[[[1,"    "],[10,"h3"],[14,0,"see-all-pms-message"],[12],[1,"\\n      "],[1,[28,[35,3],[[28,[37,0],["related_messages.see_all"],[["path","username"],[[30,0,["searchLink"]],[30,0,["targetUser","username"]]]]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["i18n","basic-topic-list","if","html-safe"]]',moduleName:"discourse/components/related-messages.hbs",isStrictMode:!1})
var a=(0,t.setComponentTemplate)(l,t.default.extend((s(o={tagName:"",targetUser(e){if(!e||!e.isPrivateMessage)return
const t=e.details.allowed_users
return e.relatedMessages&&e.relatedMessages.length>=5&&2===t.length&&0===e.details.allowed_groups.length&&t.find((e=>e.username===this.currentUser.username))?t.find((e=>e.username!==this.currentUser.username)):void 0},searchLink(){return(0,r.default)(`/search?expanded=true&q=%40${this.targetUser.username}%20in%3Apersonal-direct`)}},"targetUser",[(0,n.default)("topic")],Object.getOwnPropertyDescriptor(o,"targetUser"),o),s(o,"searchLink",[n.default],Object.getOwnPropertyDescriptor(o,"searchLink"),o),o)))
e.default=a})),define("discourse/components/relative-time-picker",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/utils","I18n","@ember/object"],(function(e,t,i,n,r,o,s){var l,a,u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"fPqKxuBQ",block:'[[[10,0],[14,0,"relative-time-picker"],[12],[1,"\\n  "],[8,[39,0],[[24,0,"relative-time-duration"],[16,"min",[30,0,["durationMin"]]],[16,"step",[30,0,["durationStep"]]],[16,1,[30,0,["id"]]],[4,[38,1],["change",[28,[37,2],[[30,0],"onChangeDuration"],null]],null]],[["@type","@value"],["number",[30,0,["duration"]]]],null],[1,"\\n  "],[8,[39,3],null,[["@content","@value","@class","@onChange"],[[30,0,["intervals"]],[30,0,["selectedInterval"]],"relative-time-intervals",[28,[37,2],[[30,0],"onChangeInterval"],null]]],null],[1,"\\n"],[13]],[],false,["input","on","action","combo-box"]]',moduleName:"discourse/components/relative-time-picker.hbs",isStrictMode:!1})
var g=(0,t.setComponentTemplate)(f,t.default.extend((l=(0,n.on)("init"),a=(0,n.on)("init"),u=(0,n.default)("selectedInterval"),c=(0,n.default)("selectedInterval"),d=(0,n.default)("duration"),p=(0,n.default)("selectedInterval","duration"),h(m={tagName:"",selectedInterval:"mins",durationMinutes:null,durationHours:null,duration:null,hiddenIntervals:null,cloneDuration(){const e=Object.hasOwn(this.attrs,"durationHours"),t=Object.hasOwn(this.attrs,"durationMinutes")
if(e&&t)throw new Error("relative-time needs initial duration in hours OR minutes, both are not supported")
e?this._setInitialDurationFromHours(this.durationHours):this._setInitialDurationFromMinutes(this.durationMinutes)},setHiddenIntervals(){this.hiddenIntervals=this.hiddenIntervals||[]},_roundedDuration(e){let t=parseFloat(e.toFixed(2))
return t%1==0?parseInt(t,10):t},_setInitialDurationFromHours(e){null===e?this.setProperties({duration:e,selectedInterval:"hours"}):e>=8760?this.setProperties({duration:this._roundedDuration(e/365/24),selectedInterval:"years"}):e>=730?this.setProperties({duration:this._roundedDuration(e/30/24),selectedInterval:"months"}):e>=24?this.setProperties({duration:this._roundedDuration(e/24),selectedInterval:"days"}):e<1?this.setProperties({duration:this._roundedDuration(60*e),selectedInterval:"mins"}):this.setProperties({duration:e,selectedInterval:"hours"})},_setInitialDurationFromMinutes(e){e>=525600?this.setProperties({duration:this._roundedDuration(e/365/60/24),selectedInterval:"years"}):e>=43800?this.setProperties({duration:this._roundedDuration(e/30/60/24),selectedInterval:"months"}):e>=1440?this.setProperties({duration:this._roundedDuration(e/60/24),selectedInterval:"days"}):e>=60?this.setProperties({duration:this._roundedDuration(e/60),selectedInterval:"hours"}):this.setProperties({duration:e,selectedInterval:"mins"})},durationMin:e=>"mins"===e?1:.1,durationStep:e=>"mins"===e?1:.05,intervals(e){const t=e?parseFloat(e):0
return[{id:"mins",name:o.default.t("relative_time_picker.minutes",{count:t})},{id:"hours",name:o.default.t("relative_time_picker.hours",{count:t})},{id:"days",name:o.default.t("relative_time_picker.days",{count:t})},{id:"months",name:o.default.t("relative_time_picker.months",{count:t})},{id:"years",name:o.default.t("relative_time_picker.years",{count:t})}].filter((e=>!this.hiddenIntervals.includes(e.id)))},calculatedMinutes(e,t){if((0,r.isBlank)(t))return null
t=parseFloat(t)
let i=0
switch(e){case"mins":i=Math.ceil(t)
break
case"hours":i=60*t
break
case"days":i=60*t*24
break
case"months":i=60*t*24*30
break
case"years":i=60*t*24*365}return i},onChangeInterval(e){this.set("selectedInterval",e),this.onChange&&this.onChange(this.calculatedMinutes)},onChangeDuration(){this.onChange&&this.onChange(this.calculatedMinutes)}},"cloneDuration",[l],Object.getOwnPropertyDescriptor(m,"cloneDuration"),m),h(m,"setHiddenIntervals",[a],Object.getOwnPropertyDescriptor(m,"setHiddenIntervals"),m),h(m,"durationMin",[u],Object.getOwnPropertyDescriptor(m,"durationMin"),m),h(m,"durationStep",[c],Object.getOwnPropertyDescriptor(m,"durationStep"),m),h(m,"intervals",[d],Object.getOwnPropertyDescriptor(m,"intervals"),m),h(m,"calculatedMinutes",[p],Object.getOwnPropertyDescriptor(m,"calculatedMinutes"),m),h(m,"onChangeInterval",[s.action],Object.getOwnPropertyDescriptor(m,"onChangeInterval"),m),h(m,"onChangeDuration",[s.action],Object.getOwnPropertyDescriptor(m,"onChangeDuration"),m),m)))
e.default=g})),define("discourse/components/responsive-table",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@glimmer/tracking"],(function(e,t,i,n,r){var o,s,l,a,u
function c(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"8n0K9JK6",block:'[[[10,0],[14,0,"directory-table-container"],[12],[1,"\\n  "],[11,0],[24,0,"directory-table-top-scroll"],[4,[38,0],["scroll",[30,0,["onTopScroll"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"directory-table-top-scroll-fake-content"],[12],[13],[1,"\\n  "],[13],[1,"\\n  "],[11,0],[16,0,[28,[37,1],["directory-table",[30,1]],null]],[24,"role","table"],[16,"aria-label",[30,2]],[16,5,[30,3]],[4,[38,2],[[30,0,["checkScroll"]]],null],[4,[38,3],[[30,0,["checkScroll"]],[30,4]],null],[4,[38,4],[[30,0,["checkScroll"]]],null],[4,[38,0],["scroll",[30,0,["onBottomScroll"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"directory-table__header"],[12],[1,"\\n      "],[18,5,null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"directory-table__body"],[12],[1,"\\n      "],[18,6,null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["@className","@ariaLabel","@style","@updates","&header","&body"],false,["on","concat-class","did-insert","did-update","on-resize","yield"]]',moduleName:"discourse/components/responsive-table.hbs",isStrictMode:!1})
let m=(o=class extends t.default{constructor(){super(...arguments),c(this,"lastScrollPosition",s,this),c(this,"ticking",l,this),c(this,"_table",a,this),c(this,"_topHorizontalScrollBar",u,this)}checkScroll(){const e=document.querySelector(".directory-table-top-scroll-fake-content")
this._table.getBoundingClientRect().bottom<window.innerHeight?e.style.height=0:(e.style.width=`${this._table.scrollWidth}px`,e.style.height="1px")}onTopScroll(){this.onHorizontalScroll(this._topHorizontalScrollBar,this._table)}onBottomScroll(){this.onHorizontalScroll(this._table,this._topHorizontalScrollBar)}onHorizontalScroll(e,t){this.set("lastScrollPosition",e?.scrollLeft),this.ticking||(window.requestAnimationFrame((()=>{t.scrollLeft=this.lastScrollPosition,this.set("ticking",!1)})),this.set("ticking",!0))}},s=d(o.prototype,"lastScrollPosition",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),l=d(o.prototype,"ticking",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=d(o.prototype,"_table",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return document.querySelector(".directory-table")}}),u=d(o.prototype,"_topHorizontalScrollBar",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return document.querySelector(".directory-table-top-scroll")}}),d(o.prototype,"checkScroll",[n.bind],Object.getOwnPropertyDescriptor(o.prototype,"checkScroll"),o.prototype),d(o.prototype,"onTopScroll",[n.bind],Object.getOwnPropertyDescriptor(o.prototype,"onTopScroll"),o.prototype),d(o.prototype,"onBottomScroll",[n.bind],Object.getOwnPropertyDescriptor(o.prototype,"onBottomScroll"),o.prototype),d(o.prototype,"onHorizontalScroll",[n.bind],Object.getOwnPropertyDescriptor(o.prototype,"onHorizontalScroll"),o.prototype),o)
e.default=m,(0,t.setComponentTemplate)(p,m)})),define("discourse/components/reviewable-bundled-action",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/text-direction"],(function(e,t,i,n,r,o){var s,l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"AnthLQER",block:'[[[41,[30,0,["multiple"]],[[[1,"  "],[8,[39,1],null,[["@class","@nameProperty","@content","@onChange","@options"],["reviewable-action-dropdown btn-icon-text","label",[30,0,["bundle","actions"]],[28,[37,2],[[30,0],"performById"],null],[28,[37,3],null,[["showCaret","disabled","placement","translatedNone"],[true,[30,0,["reviewableUpdating"]],[30,0,["placement"]],[30,0,["bundle","label"]]]]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,4],null,[["@class","@action","@translatedLabel","@disabled"],[[28,[37,5],["reviewable-action ",[28,[37,6],[[30,0,["first","id"]]],null]," ",[30,0,["first","button_class"]]],null],[28,[37,2],[[30,0],"perform",[30,0,["first"]]],null],[30,0,["first","label"]],[30,0,["reviewableUpdating"]]]],null],[1,"\\n"]],[]]]],[],false,["if","dropdown-select-box","action","hash","d-button","concat","dasherize"]]',moduleName:"discourse/components/reviewable-bundled-action.hbs",isStrictMode:!1})
var u,c,d,p,m,h,f=(0,t.setComponentTemplate)(a,t.default.extend((s=(0,r.default)(),l={tagName:"",multiple:(0,n.gt)("bundle.actions.length",1),first:(0,n.alias)("bundle.actions.firstObject"),placement(){return`${this.site.mobileView?"top":"bottom"}-${(0,o.isRTL)()?"end":"start"}`},actions:{performById(e){this.attrs.performAction(this.get("bundle.actions").findBy("id",e))},perform(e){this.attrs.performAction(e)}}},u=l,c="placement",d=[s],p=Object.getOwnPropertyDescriptor(l,"placement"),m=l,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),l)))
e.default=f})),define("discourse/components/reviewable-claimed-topic",["exports","@ember/component","@ember/template-factory","discourse/lib/ajax","discourse-common/utils/decorators","discourse/lib/ajax-error"],(function(e,t,i,n,r,o){var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"qZRJRkIF",block:'[[[41,[30,0,["enabled"]],[[[1,"  "],[10,0],[14,0,"reviewable-claimed-topic"],[12],[1,"\\n"],[41,[30,0,["claimedBy"]],[[[1,"      "],[10,0],[14,0,"claimed-by"],[12],[1,"\\n        "],[1,[28,[35,1],[[30,0,["claimedBy"]]],[["imageSize"],["small"]]]],[1,"\\n        "],[10,1],[14,0,"claimed-username"],[12],[1,[30,0,["claimedBy","username"]]],[13],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,2],null,[["@icon","@class","@action","@disabled","@title"],["times","btn-small unclaim",[28,[37,3],[[30,0],"unclaim"],null],[30,0,["unassigning"]],"review.unclaim.help"]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,2],null,[["@icon","@class","@title","@action"],["user-plus","btn-small claim","review.claim.title",[28,[37,3],[[30,0],"claim"],null]]],null],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],[],false,["if","avatar","d-button","action"]]',moduleName:"discourse/components/reviewable-claimed-topic.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((a=s={tagName:"",enabled(){return"disabled"!==this.siteSettings.reviewable_claiming},actions:{unclaim(){(0,n.ajax)(`/reviewable_claimed_topics/${this.topicId}`,{type:"DELETE"}).then((()=>{this.set("claimedBy",null)}))},claim(){this.store.createRecord("reviewable-claimed-topic").save({topic_id:this.topicId}).then((()=>{this.set("claimedBy",this.currentUser)})).catch(o.popupAjaxError)}}},u="enabled",c=[r.default],d=Object.getOwnPropertyDescriptor(s,"enabled"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/reviewable-conversation-post",["exports","@ember/component","@ember/template-factory","@ember/object/computed"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"rEzH4/zT",block:'[[[41,[30,0,["post"]],[[[1,"  "],[10,0],[14,0,"reviewable-conversation-post"],[12],[1,"\\n"],[41,[30,0,["showUsername"]],[[[1,"      "],[8,[39,1],[[24,0,"username"]],[["@route","@model"],["user",[30,0,["post","user"]]]],[["default"],[[[[1,"@"],[1,[30,0,["post","user","username"]]]],[]]]]],[1,"\\n"]],[]],null],[1,"    "],[1,[28,[35,2],[[30,0,["post","excerpt"]]],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","link-to","html-safe"]]',moduleName:"discourse/components/reviewable-conversation-post.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({showUsername:(0,n.gte)("index",1)}))
e.default=o})),define("discourse/components/reviewable-created-by-name",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"rgvcFOht",block:'[[[10,0],[14,0,"names"],[12],[1,"\\n  "],[10,1],[14,0,"username"],[12],[1,"\\n"],[41,[30,0,["user"]],[[[1,"      "],[8,[39,1],null,[["@user"],[[30,0,["user"]]]],[["default"],[[[[1,[30,0,["user","username"]]]],[]]]]],[1,"\\n"],[41,[30,0,["user","silenced"]],[[[1,"        "],[1,[28,[35,2],["ban"],[["title"],["user.silenced_tooltip"]]]],[1,"\\n"]],[]],null]],[]],[[[1,"      "],[1,[28,[35,3],["review.deleted_user"],null]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["after-reviewable-post-user","div",[28,[37,5],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n"],[13]],[],false,["if","user-link","d-icon","i18n","plugin-outlet","hash"]]',moduleName:"discourse/components/reviewable-created-by-name.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-created-by",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"1b0dD0sL",block:'[[[10,0],[14,0,"created-by"],[12],[1,"\\n"],[41,[30,0,["user"]],[[[1,"    "],[8,[39,1],null,[["@user"],[[30,0,["user"]]]],[["default"],[[[[1,[28,[35,2],[[30,0,["user"]]],[["imageSize"],["large"]]]]],[]]]]],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,3],["far-trash-alt"],[["class"],["deleted-user-avatar"]]]],[1,"\\n"]],[]]],[13]],[],false,["if","user-link","avatar","d-icon"]]',moduleName:"discourse/components/reviewable-created-by.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-field-category",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@glimmer/tracking"],(function(e,t,i,n,r,o){var s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"HLHNYAx5",block:'[[[8,[39,0],null,[["@value","@onChange"],[[30,0,["categoryId"]],[30,0,["onChange"]]]],null]],[],false,["category-chooser"]]',moduleName:"discourse/components/reviewable-field-category.hbs",isStrictMode:!1})
var c=(0,t.setComponentTemplate)(u,(s=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="categoryId",n=this,(i=l)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}onChange(e){this.categoryId=e,this.args.categoryChanged?.(e)}},l=a(s.prototype,"categoryId",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.value}}),a(s.prototype,"onChange",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"onChange"),s.prototype),s))
e.default=c})),define("discourse/components/reviewable-field-editor",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"adhFukNT",block:'[[[8,[39,0],null,[["@value","@change"],[[30,0,["value"]],[30,0,["valueChanged"]]]],null]],[],false,["d-editor"]]',moduleName:"discourse/components/reviewable-field-editor.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-field-tags",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"JKyUkA0b",block:'[[[8,[39,0],null,[["@value","@onChange","@options"],[[30,0,["value"]],[28,[37,1],[[30,0],"onChange"],null],[28,[37,2],null,[["categoryId"],[[30,0,["tagCategoryId"]]]]]]],null]],[],false,["mini-tag-chooser","action","hash"]]',moduleName:"discourse/components/reviewable-field-tags.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({actions:{onChange(e){this.set("value",e),this.valueChanged&&this.valueChanged({target:{value:e}})}}}))
e.default=r})),define("discourse/components/reviewable-field-text",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"tBQ611mt",block:'[[[8,[39,0],[[24,0,"reviewable-input-text"],[4,[38,1],["change",[30,0,["valueChanged"]]],null]],[["@value"],[[30,0,["value"]]]],null]],[],false,["input","on"]]',moduleName:"discourse/components/reviewable-field-text.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-field-textarea",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"qWCiGgyG",block:'[[[8,[39,0],[[24,0,"reviewable-input-textarea"],[4,[38,1],["change",[30,0,["valueChanged"]]],null]],[["@value"],[[30,0,["value"]]]],null]],[],false,["textarea","on"]]',moduleName:"discourse/components/reviewable-field-textarea.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-field",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"yOMLoOfQ",block:'[[[41,[30,0,["value"]],[[[1,"  "],[10,0],[15,0,[30,0,["classes"]]],[12],[1,"\\n    "],[10,0],[14,0,"name"],[12],[1,[30,0,["name"]]],[13],[1,"\\n    "],[10,0],[14,0,"value"],[12],[1,[30,0,["value"]]],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if"]]',moduleName:"discourse/components/reviewable-field.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-flagged-post",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@glimmer/tracking","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s){var l,a,u
function c(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function d(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"S1KfGTXD",block:'[[[10,0],[14,0,"flagged-post-header"],[12],[1,"\\n  "],[8,[39,0],null,[["@reviewable","@tagName"],[[30,1],""]],null],[1,"\\n  "],[8,[39,1],null,[["@reviewable","@tagName"],[[30,1],""]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n  "],[8,[39,2],null,[["@user","@tagName"],[[30,1,["target_created_by"]],""]],null],[1,"\\n  "],[10,0],[14,0,"post-contents"],[12],[1,"\\n    "],[8,[39,3],null,[["@reviewable","@createdBy","@tagName"],[[30,1],[30,1,["target_created_by"]],""]],null],[1,"\\n    "],[11,0],[16,0,[29,["post-body ",[52,[30,0,["isCollapsed"]],"is-collapsed"]]]],[4,[38,5],[[30,0,["calculatePostBodySize"]],[30,1]],null],[12],[1,"\\n"],[41,[30,1,["blank_post"]],[[[1,"        "],[10,2],[12],[1,[28,[35,6],["review.deleted_post"],null]],[13],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,7],[[30,1,["cooked"]]],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["isLongPost"]],[[[1,"      "],[8,[39,8],null,[["@class","@action","@label","@icon"],["btn-default btn-icon post-body__toggle-btn",[30,0,["toggleContent"]],[30,0,["collapseButtonProps","label"]],[30,0,["collapseButtonProps","icon"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[10,1],[12],[1,"\\n      "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["after-reviewable-flagged-post-body","div",[28,[37,10],null,[["model"],[[30,1]]]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[18,2,null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@reviewable","&default"],false,["reviewable-topic-link","reviewable-post-edits","reviewable-created-by","reviewable-post-header","if","did-insert","i18n","html-safe","d-button","plugin-outlet","hash","yield"]]',moduleName:"discourse/components/reviewable-flagged-post.hbs",isStrictMode:!1})
let h=(l=class extends n.default{constructor(){super(...arguments),c(this,"isCollapsed",a,this),c(this,"isLongPost",u,this),d(this,"maxPostHeight",300)}toggleContent(){this.isCollapsed=!this.isCollapsed}calculatePostBodySize(e){e?.offsetHeight>this.maxPostHeight?(this.isCollapsed=!0,this.isLongPost=!0):(this.isCollapsed=!1,this.isLongPost=!1)}get collapseButtonProps(){return this.isCollapsed?{label:"review.show_more",icon:"chevron-down"}:{label:"review.show_less",icon:"chevron-up"}}},a=p(l.prototype,"isCollapsed",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=p(l.prototype,"isLongPost",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p(l.prototype,"toggleContent",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"toggleContent"),l.prototype),p(l.prototype,"calculatePostBodySize",[s.bind],Object.getOwnPropertyDescriptor(l.prototype,"calculatePostBodySize"),l.prototype),l)
e.default=h,(0,t.setComponentTemplate)(m,h)})),define("discourse/components/reviewable-histories",["exports","@ember/component","@ember/template-factory","@ember/object/computed"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"kw2eCqwR",block:'[[[41,[30,0,["filteredHistories"]],[[[1,"  "],[10,"table"],[14,0,"reviewable-histories"],[12],[1,"\\n    "],[10,"thead"],[12],[1,"\\n      "],[10,"tr"],[12],[1,"\\n        "],[10,"th"],[14,"colspan","3"],[12],[1,[28,[35,1],["review.history.title"],null]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["filteredHistories"]]],null]],null],null,[[[41,[51,[30,1,["created"]]],[[[1,"          "],[10,"tr"],[12],[1,"\\n            "],[10,"td"],[12],[1,"\\n              "],[1,[28,[35,5],[[30,1]],null]],[1,"\\n            "],[13],[1,"\\n            "],[10,"td"],[12],[1,"\\n              "],[8,[39,6],null,[["@user"],[[30,0,["rs","user"]]]],[["default"],[[[[1,"\\n                "],[1,[28,[35,7],[[30,1,["created_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n                "],[1,[30,1,["created_by","username"]]],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n            "],[10,"td"],[12],[1,[28,[35,8],[[30,1,["created_at"]]],[["format"],["medium"]]]],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["rh"],false,["if","i18n","each","-track-array","unless","reviewable-history-description","user-link","avatar","format-date"]]',moduleName:"discourse/components/reviewable-histories.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({filteredHistories:(0,n.filterBy)("histories","created",!1)}))
e.default=o})),define("discourse/components/reviewable-item",["exports","@ember/component","@ember/template-factory","discourse/models/category","I18n","discourse/lib/ajax","@ember/string","discourse-common/utils/decorators","discourse/lib/optional-service","discourse/lib/ajax-error","@ember/object","discourse/lib/show-modal","@ember/service","discourse-common/lib/get-owner"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g,b,y,_,v,w
function k(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addPluginReviewableParam=function(e,t){O[e]?O[e].push(t):O[e]=[t]},e.default=void 0
const x=(0,i.createTemplateFactory)({id:"rYujlEaP",block:'[[[10,0],[15,"data-reviewable-id",[30,0,["reviewable","id"]]],[15,0,[29,["reviewable-item ",[30,0,["customClasses"]]]]],[12],[1,"\\n  "],[10,0],[14,0,"reviewable-meta-data"],[12],[1,"\\n    "],[10,1],[15,0,[28,[37,0],["reviewable-type",[30,0,["reviewable","humanTypeCssClass"]]],null]],[12],[1,[30,0,["reviewable","humanType"]]],[13],[1,"\\n"],[41,[30,0,["reviewable","reply_count"]],[[[1,"      "],[10,1],[14,0,"reply-count"],[12],[1,[28,[35,2],["review.replies"],[["count"],[[30,0,["reviewable","reply_count"]]]]]],[13],[1,"\\n"]],[]],null],[1,"    "],[10,1],[14,0,"created-at"],[12],[1,"\\n      "],[8,[39,3],null,[["@route","@model"],["review.show",[30,0,["reviewable","id"]]]],[["default"],[[[[1,[28,[35,4],[[30,0,["reviewable","created_at"]]],null]]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,1],[14,0,"status"],[12],[1,"\\n      "],[1,[28,[35,5],[[30,0,["reviewable","status"]],[30,0,["reviewable","type"]]],null]],[1,"\\n    "],[13],[1,"\\n    "],[11,3],[24,6,""],[16,"title",[28,[37,2],["review.explain.why"],null]],[24,0,"explain"],[4,[38,6],["click",[28,[37,7],[[30,0,["explainReviewable"]],[30,0,["reviewable"]]],null]],null],[12],[1,"\\n      "],[1,[28,[35,8],["question-circle"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"reviewable-contents"],[12],[1,"\\n"],[41,[30,0,["editing"]],[[[1,"      "],[10,0],[14,0,"editable-fields"],[12],[1,"\\n"],[41,[30,0,["reviewable","created_by"]],[[[1,"          "],[10,0],[14,0,"editable-created-by"],[12],[1,"\\n            "],[1,[28,[35,9],[[30,0,["reviewable","created_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n            "],[8,[39,10],null,[["@user","@tagName"],[[30,0,["reviewable","created_by"]],""]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["reviewable","editable_fields"]]],null]],null],null,[[[1,"          "],[10,0],[15,0,[29,["editable-field ",[28,[37,13],[[30,1,["id"]]],null]]]],[12],[1,"\\n            "],[46,[28,[37,15],["reviewable-field-",[30,1,["type"]]],null],null,[["tagName","value","tagCategoryId","valueChanged","categoryChanged"],["",[28,[37,16],[[30,0,["reviewable"]],[30,1,["id"]]],null],[30,0,["tagCategoryId"]],[28,[37,17],[[30,0],"valueChanged",[30,1,["id"]]],null],[28,[37,17],[[30,0],"categoryChanged"],null]]],null],[1,"\\n          "],[13],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n"]],[]],[[[46,[30,0,["reviewableComponent"]],null,[["reviewable","tagName"],[[30,0,["reviewable"]],""]],[["default"],[[[[1,"        "],[8,[39,18],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n"]],[]]]]]],[]]],[1,"  "],[13],[1,"\\n\\n"],[41,[28,[37,19],[[30,0,["reviewable","type"]],"ReviewableFlaggedPost"],null],[[[41,[28,[37,19],[[30,0,["reviewable","status"]],0],null],[[[1,"      "],[10,"h3"],[14,0,"reviewable-item__context-question"],[12],[1,"\\n        "],[1,[30,0,["reviewable","flaggedPostContextQuestion"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n  "],[10,0],[14,0,"reviewable-actions"],[12],[1,"\\n"],[41,[30,0,["reviewable","last_performing_username"]],[[[1,"      "],[10,0],[14,0,"stale-help"],[12],[1,[28,[35,20],[[28,[37,2],["review.stale_help"],[["username"],[[30,0,["reviewable","last_performing_username"]]]]]],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["claimEnabled"]],[[[1,"        "],[10,0],[14,0,"claimed-actions"],[12],[1,"\\n          "],[10,1],[14,0,"help"],[12],[1,[28,[35,20],[[30,0,["claimHelp"]]],null]],[13],[1,"\\n          "],[8,[39,21],null,[["@topicId","@claimedBy"],[[30,0,["topicId"]],[30,0,["reviewable","claimed_by"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canPerform"]],[[[41,[30,0,["editing"]],[[[1,"          "],[8,[39,22],null,[["@class","@disabled","@icon","@action","@label"],["btn-primary reviewable-action save-edit",[30,0,["disabled"]],"check",[28,[37,17],[[30,0],"saveEdit"],null],"review.save"]],null],[1,"\\n          "],[8,[39,22],null,[["@class","@disabled","@icon","@action","@label"],["btn-danger reviewable-action cancel-edit",[30,0,["disabled"]],"times",[28,[37,17],[[30,0],"cancelEdit"],null],"review.cancel"]],null],[1,"\\n"]],[]],[[[42,[28,[37,12],[[28,[37,12],[[30,0,["reviewable","bundled_actions"]]],null]],null],null,[[[1,"            "],[8,[39,23],null,[["@bundle","@performAction","@reviewableUpdating"],[[30,2],[28,[37,17],[[30,0],"perform"],null],[30,0,["disabled"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["reviewable","can_edit"]],[[[1,"            "],[8,[39,22],null,[["@class","@disabled","@icon","@action","@label"],["reviewable-action edit",[30,0,["disabled"]],"pencil-alt",[28,[37,17],[[30,0],"edit"],null],"review.edit"]],null],[1,"\\n"]],[]],null]],[]]]],[]],null]],[]]],[1,"  "],[13],[1,"\\n\\n"],[13]],["f","bundle"],false,["concat-class","if","i18n","link-to","age-with-tooltip","reviewable-status","on","fn","d-icon","avatar","reviewable-created-by-name","each","-track-array","dasherize","component","concat","editable-value","action","reviewable-scores","eq","html-safe","reviewable-claimed-topic","d-button","reviewable-bundled-action"]]',moduleName:"discourse/components/reviewable-item.hbs",isStrictMode:!1})
let P={}
const O={}
var T=(0,t.setComponentTemplate)(x,t.default.extend((h=(0,l.default)("reviewable.type","reviewable.last_performing_username","siteSettings.blur_tl0_flagged_posts_media","reviewable.target_created_by_trust_level"),f=(0,l.default)("reviewable.topic","reviewable.topic_id","reviewable.removed_topic_id"),g=(0,l.default)("siteSettings.reviewable_claiming","topicId"),b=(0,l.default)("claimEnabled","siteSettings.reviewable_claiming","reviewable.claimed_by"),y=(0,l.default)("siteSettings.reviewable_claiming","reviewable.claimed_by"),_=(0,l.default)("reviewable.type"),v=(0,l.default)("_updates.category_id","reviewable.category.id"),k(w={adminTools:(0,a.default)(),dialog:(0,p.inject)(),tagName:"",updating:null,editing:!1,_updates:null,customClasses(e,t,i,n){let r=(0,s.dasherize)(e)
return t&&(r=`${r} reviewable-stale`),i&&0===n&&(r=`${r} blur-images`),r},topicId:(e,t,i)=>e&&e.id||t||i,claimEnabled:(e,t)=>"disabled"!==e&&!!t,canPerform(e,t,i){return!e||(i?i.id===this.currentUser.id:"required"!==t)},claimHelp(e,t){return t?t.id===this.currentUser.id?r.default.t("review.claim_help.claimed_by_you"):r.default.t("review.claim_help.claimed_by_other",{username:t.username}):"optional"===e?r.default.t("review.claim_help.optional"):r.default.t("review.claim_help.required")},reviewableComponent(e){if(void 0!==P[e])return P[e]
const t=(0,s.dasherize)(e),i=(0,m.getOwner)(this),n=i.hasRegistration(`component:${t}`)||i.hasRegistration(`template:components/${t}`)
return P[e]=n?t:null,P[e]},tagCategoryId:(e,t)=>e||t,_performConfirmed(e){let t=this.reviewable,i=()=>{let i=t.get("version")
this.set("updating",!0)
const n={send_email:t.sendEmail,reject_reason:t.rejectReason}
return(O[t.type]||[]).forEach((e=>{t[e]&&(n[e]=t[e])})),(0,o.ajax)(`/review/${t.id}/perform/${e.id}?version=${i}`,{type:"PUT",data:n}).then((e=>{let i=e.reviewable_perform_result
if(void 0!==i.reviewable_count&&this.currentUser.updateReviewableCount(i.reviewable_count),void 0!==i.unseen_reviewable_count&&this.currentUser.set("unseen_reviewable_count",i.unseen_reviewable_count),!this.attrs.remove)return this.store.find("reviewable",t.id)
this.attrs.remove(i.remove_reviewable_ids)})).catch(u.popupAjaxError).finally((()=>this.set("updating",!1)))}
if(e.client_action){let n=this[`client${(0,s.classify)(e.client_action)}`]
return n?n.call(this,t,i):void console.error(`No handler for ${e.client_action} found`)}return i()},clientSuspend(e,t){this._penalize("showSuspendModal",e,t)},clientSilence(e,t){this._penalize("showSilenceModal",e,t)},_penalize(e,t,i){let n=this.adminTools
if(n){let r=t.get("target_created_by"),o=t.get("post_id"),s=t.get("raw")
return n[e](r,{postId:o,postEdit:s,before:i})}},explainReviewable(e,t){t?.preventDefault(),(0,d.default)("explain-reviewable",{title:"review.explain.title",model:e})},actions:{edit(){this.set("editing",!0),this.set("_updates",{payload:{}})},cancelEdit(){this.set("editing",!1)},saveEdit(){let e=this._updates
return Object.keys(e).forEach((t=>{let i=e[t]
"object"==typeof i&&0===Object.keys(i).length&&delete e[t]})),this.set("updating",!0),this.reviewable.update(e).then((()=>this.set("editing",!1))).catch(u.popupAjaxError).finally((()=>this.set("updating",!1)))},categoryChanged(e){let t=n.default.findById(e)
t||(t=n.default.findUncategorized()),(0,c.set)(this._updates,"category_id",t.id)},valueChanged(e,t){(0,c.set)(this._updates,e,t.target.value)},perform(e){if(this.updating)return
const t=e.get("confirm_message")
let i=e.get("require_reject_reason"),n=e.get("custom_modal")
if(t)this.dialog.confirm({message:t,didConfirm:()=>this._performConfirmed(e)})
else if(i)(0,d.default)("reject-reason-reviewable",{title:"review.reject_reason.title",model:this.reviewable}).setProperties({performConfirmed:this._performConfirmed,action:e})
else{if(!n)return this._performConfirmed(e);(0,d.default)(n,{title:`review.${n}.title`,model:this.reviewable}).setProperties({performConfirmed:this._performConfirmed,action:e})}}}},"customClasses",[h],Object.getOwnPropertyDescriptor(w,"customClasses"),w),k(w,"topicId",[f],Object.getOwnPropertyDescriptor(w,"topicId"),w),k(w,"claimEnabled",[g],Object.getOwnPropertyDescriptor(w,"claimEnabled"),w),k(w,"canPerform",[b],Object.getOwnPropertyDescriptor(w,"canPerform"),w),k(w,"claimHelp",[y],Object.getOwnPropertyDescriptor(w,"claimHelp"),w),k(w,"reviewableComponent",[_],Object.getOwnPropertyDescriptor(w,"reviewableComponent"),w),k(w,"tagCategoryId",[v],Object.getOwnPropertyDescriptor(w,"tagCategoryId"),w),k(w,"_performConfirmed",[l.bind],Object.getOwnPropertyDescriptor(w,"_performConfirmed"),w),k(w,"explainReviewable",[c.action],Object.getOwnPropertyDescriptor(w,"explainReviewable"),w),w)))
e.default=T})),define("discourse/components/reviewable-post-edits",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/object","@ember/object/computed","discourse/widgets/post-edits-indicator","discourse/lib/formatter","discourse/lib/show-modal"],(function(e,t,i,n,r,o,s,l,a){var u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"5lZNHzZN",block:'[[[41,[30,0,["hasEdits"]],[[[1,"  "],[11,3],[24,6,""],[16,0,[29,["has-edits ",[30,0,["historyClass"]]]]],[16,"title",[28,[37,1],["post.last_edited_on"],[["dateTime"],[[30,0,["editedDate"]]]]]],[4,[38,2],["click",[30,0,["showEditHistory"]]],null],[12],[1,"\\n    "],[1,[28,[35,3],["pencil-alt"],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","i18n","on","d-icon"]]',moduleName:"discourse/components/reviewable-post-edits.hbs",isStrictMode:!1})
var h=(0,t.setComponentTemplate)(m,t.default.extend((u=(0,n.default)("reviewable.post_updated_at"),c=(0,n.default)("reviewable.post_updated_at"),p(d={hasEdits:(0,o.gt)("reviewable.post_version",1),historyClass(e){return(0,s.historyHeat)(this.siteSettings,new Date(e))},editedDate:e=>(0,l.longDate)(e),showEditHistory(e){e?.preventDefault()
let t=this.get("reviewable.post_id")
this.store.find("post",t).then((e=>{let i=(0,a.default)("history",{model:e,modalClass:"history-modal"})
i.refresh(t,"latest"),i.set("post",e),i.set("topicController",null)}))}},"historyClass",[u],Object.getOwnPropertyDescriptor(d,"historyClass"),d),p(d,"editedDate",[c],Object.getOwnPropertyDescriptor(d,"editedDate"),d),p(d,"showEditHistory",[r.action],Object.getOwnPropertyDescriptor(d,"showEditHistory"),d),d)))
e.default=h})),define("discourse/components/reviewable-post-header",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ZpWg80nO",block:'[[[10,0],[14,0,"reviewable-post-header"],[12],[1,"\\n  "],[8,[39,0],null,[["@user","@tagName"],[[30,0,["createdBy"]],""]],null],[1,"\\n"],[41,[30,0,["reviewable","reply_to_post_number"]],[[[1,"    "],[10,3],[15,6,[28,[37,2],[[30,0,["reviewable","topic_url"]],"/",[30,0,["reviewable","reply_to_post_number"]]],null]],[14,0,"reviewable-reply-to"],[12],[1,"\\n      "],[1,[28,[35,3],["share"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["review.in_reply_to"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["reviewable-created-by-name","if","concat","d-icon","i18n"]]',moduleName:"discourse/components/reviewable-post-header.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-post",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"s7pXfIjv",block:'[[[10,0],[14,0,"flagged-post-header"],[12],[1,"\\n  "],[8,[39,0],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n  "],[8,[39,1],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n  "],[8,[39,2],null,[["@user","@tagName"],[[30,0,["reviewable","target_created_by"]],""]],null],[1,"\\n  "],[10,0],[14,0,"post-contents"],[12],[1,"\\n    "],[8,[39,3],null,[["@reviewable","@createdBy","@tagName"],[[30,0,["reviewable"]],[30,0,["reviewable","target_created_by"]],""]],null],[1,"\\n    "],[10,0],[14,0,"post-body"],[12],[1,"\\n"],[41,[30,0,["reviewable","blank_post"]],[[[1,"        "],[10,2],[12],[1,[28,[35,5],["review.deleted_post"],null]],[13],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,6],[[30,0,["reviewable","cooked"]]],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[18,1,null],[1,"\\n  "],[13],[1,"\\n"],[13]],["&default"],false,["reviewable-topic-link","reviewable-post-edits","reviewable-created-by","reviewable-post-header","if","i18n","html-safe","yield"]]',moduleName:"discourse/components/reviewable-post.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-queued-post",["exports","@ember/component","@ember/template-factory","@ember/object","discourse/lib/show-modal"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"hQ3qqNUb",block:'[[[8,[39,0],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"title-text"],[12],[1,"\\n    "],[1,[28,[35,1],["plus-square"],[["title"],["review.new_topic"]]]],[1,"\\n    "],[1,[30,0,["reviewable","payload","title"]]],[1,"\\n  "],[13],[1,"\\n  "],[1,[28,[35,2],[[30,0,["reviewable","category"]]],null]],[1,"\\n  "],[8,[39,3],null,[["@tags","@tagName"],[[30,0,["reviewable","payload","tags"]],""]],null],[1,"\\n"],[41,[30,0,["reviewable","payload","via_email"]],[[[1,"    "],[11,3],[24,6,""],[24,0,"show-raw-email"],[4,[38,5],["click",[30,0,["showRawEmail"]]],null],[12],[1,"\\n      "],[1,[28,[35,1],["envelope"],[["title"],["post.via_email"]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n  "],[8,[39,6],null,[["@user","@tagName"],[[30,0,["reviewable","created_by"]],""]],null],[1,"\\n\\n  "],[10,0],[14,0,"post-contents"],[12],[1,"\\n    "],[8,[39,7],null,[["@reviewable","@createdBy","@tagName"],[[30,0,["reviewable"]],[30,0,["reviewable","created_by"]],""]],null],[1,"\\n\\n    "],[8,[39,8],null,[["@rawText","@class","@categoryId","@topicId","@paintOneboxes","@opts"],[[30,0,["reviewable","payload","raw"]],"post-body",[30,0,["reviewable","category_id"]],[30,0,["reviewable","topic_id"]],true,[28,[37,9],null,[["removeMissing"],[true]]]]],null],[1,"\\n\\n    "],[18,1,null],[1,"\\n  "],[13],[1,"\\n"],[13]],["&default"],false,["reviewable-topic-link","d-icon","category-badge","reviewable-tags","if","on","reviewable-created-by","reviewable-post-header","cook-text","hash","yield"]]',moduleName:"discourse/components/reviewable-queued-post.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((l=o={showRawEmail(e){e?.preventDefault(),(0,r.default)("raw-email").set("rawEmail",this.reviewable.payload.raw_email)}},a="showRawEmail",u=[n.action],c=Object.getOwnPropertyDescriptor(o,"showRawEmail"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m}))
define("discourse/components/reviewable-score",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"lxHMsd8I",block:'[[[10,"tr"],[14,0,"reviewable-score"],[12],[1,"\\n  "],[10,"td"],[14,0,"user"],[12],[1,"\\n    "],[8,[39,0],null,[["@user"],[[30,0,["rs","user"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,1],[[30,0,["rs","user"]]],[["imageSize"],["tiny"]]]],[1,"\\n      "],[1,[30,0,["rs","user","username"]]],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,"\\n    "],[1,[28,[35,2],[[30,0,["rs","created_at"]]],[["format"],["tiny"]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,"\\n    "],[1,[28,[35,3],[[30,0,["rs","score_type","icon"]]],null]],[1,"\\n    "],[1,[30,0,["title"]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["showStatus"]],[[[1,"    "],[10,"td"],[14,0,"reviewed-by"],[12],[1,"\\n"],[41,[30,0,["rs","reviewed_by"]],[[[1,"        "],[8,[39,0],null,[["@user"],[[30,0,["rs","reviewed_by"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,1],[[30,0,["rs","reviewed_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n          "],[1,[30,0,["rs","reviewed_by","username"]]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],[[[1,"        —\\n"]],[]]],[1,"    "],[13],[1,"\\n\\n    "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["rs","reviewed_by"]],[[[1,"        "],[1,[28,[35,2],[[30,0,["rs","reviewed_at"]]],[["format"],["tiny"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,"td"],[12],[1,"\\n      "],[1,[28,[35,5],[[30,0,["rs","status"]],[30,0,["reviewable","type"]]],null]],[1,"\\n    "],[13],[1,"\\n\\n"]],[]],[[[1,"    "],[10,"td"],[14,"colspan","4"],[12],[13],[1,"\\n"]],[]]],[13]],[],false,["user-link","avatar","format-date","d-icon","if","reviewable-status"]]',moduleName:"discourse/components/reviewable-score.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((o=(0,n.default)("rs.score_type.title","reviewable.target_created_by"),s={tagName:"",showStatus:(0,r.gt)("rs.status",0),title:(e,t)=>e&&t?e.replace(/{{username}}|%{username}/,t.username):e},a=s,u="title",c=[o],d=Object.getOwnPropertyDescriptor(s,"title"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/reviewable-scores",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"YdwCcfyc",block:'[[[41,[30,0,["reviewable","reviewable_scores"]],[[[1,"  "],[10,0],[14,0,"reviewable-scores__table-wrapper"],[12],[1,"\\n    "],[10,"table"],[14,0,"reviewable-scores"],[12],[1,"\\n      "],[10,"thead"],[12],[1,"\\n        "],[10,"tr"],[12],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.submitted_by"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.date"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.type"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.reviewed_by"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.reviewed_timestamp"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.status"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["reviewable","reviewable_scores"]]],null]],null],null,[[[1,"          "],[8,[39,4],null,[["@rs","@reviewable"],[[30,1],[30,0,["reviewable"]]]],null],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["reviewable","reviewable_scores"]]],null]],null],null,[[[41,[30,2,["reason"]],[[[1,"      "],[10,0],[14,0,"reviewable-score-reason"],[12],[1,[28,[35,5],[[30,2,["reason"]]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["reviewable_conversation"]],[[[1,"      "],[10,0],[14,0,"reviewable-conversation"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,2,["reviewable_conversation","conversation_posts"]]],null]],null],null,[[[1,"          "],[8,[39,6],null,[["@post","@index"],[[30,3],[30,4]]],null],[1,"\\n"]],[3,4]],null],[1,"        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,3],[15,6,[30,2,["reviewable_conversation","permalink"]]],[14,0,"btn btn-small"],[12],[1,"\\n            "],[1,[28,[35,1],["review.conversation.view_full"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[2]],null],[1,"\\n"]],[]],null]],["rs","rs","p","index"],false,["if","i18n","each","-track-array","reviewable-score","html-safe","reviewable-conversation-post"]]',moduleName:"discourse/components/reviewable-scores.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-tags",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"MVN2oRpv",block:'[[[41,[30,0,["tags"]],[[[1,"  "],[10,0],[14,0,"list-tags"],[12],[1,"\\n    "],[42,[28,[37,2],[[28,[37,2],[[30,0,["tags"]]],null]],null],null,[[[1," "],[1,[28,[35,3],[[30,1]],null]],[1," "]],[1]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["t"],false,["if","each","-track-array","discourse-tag"]]',moduleName:"discourse/components/reviewable-tags.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-topic-link",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ugzZqGzh",block:'[[[10,0],[14,0,"post-topic"],[12],[1,"\\n"],[41,[30,0,["reviewable","topic"]],[[[1,"    "],[8,[39,1],null,[["@topic","@showPrivateMessageIcon"],[[30,0,["reviewable","topic"]],true]],null],[1,"\\n    "],[10,3],[15,6,[30,0,["reviewable","target_url"]]],[14,0,"title-text"],[12],[1,[28,[35,2],[[30,0,["reviewable","topic","fancyTitle"]]],null]],[13],[1,"\\n    "],[1,[28,[35,3],[[30,0,["reviewable","category"]]],null]],[1,"\\n    "],[8,[39,4],null,[["@tags","@tagName"],[[30,0,["reviewable","topic_tags"]],""]],null],[1,"\\n"]],[]],[[[41,[48,[30,1]],[[[1,"    "],[18,1,null],[1,"\\n"]],[]],[[[1,"    "],[10,1],[14,0,"title-text"],[12],[1,"\\n      "],[1,[28,[35,7],["review.topics.deleted"],null]],[1,"\\n      "],[8,[39,8],null,[["@route","@models"],["topic",[28,[37,9],["-",[30,0,["reviewable","removed_topic_id"]]],null]]],[["default"],[[[[1,[28,[35,7],["review.topics.original"],null]]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]],[]]],[13]],["&default"],false,["if","topic-status","html-safe","category-badge","reviewable-tags","has-block","yield","i18n","link-to","array"]]',moduleName:"discourse/components/reviewable-topic-link.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/reviewable-user",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"ESMZJ99p",block:'[[[10,0],[14,0,"reviewable-user-info"],[12],[1,"\\n  "],[10,0],[14,0,"reviewable-user-fields"],[12],[1,"\\n    "],[10,0],[14,0,"reviewable-user-details username"],[12],[1,"\\n      "],[10,0],[14,0,"name"],[12],[1,[28,[35,0],["review.user.username"],null]],[13],[1,"\\n      "],[10,0],[14,0,"value"],[12],[1,"\\n"],[41,[30,0,["reviewable","link_admin"]],[[[1,"          "],[10,3],[15,6,[28,[37,2],[[28,[37,3],["/admin/users/",[30,0,["reviewable","user_id"]],"/",[30,0,["reviewable","payload","username"]]],null]],null]],[12],[1,"\\n            "],[1,[30,0,["reviewable","payload","username"]]],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[30,0,["reviewable","payload","username"]]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@classes","@name","@value"],["reviewable-user-details name",[28,[37,0],["review.user.name"],null],[30,0,["reviewable","payload","name"]]]],null],[1,"\\n\\n    "],[8,[39,4],null,[["@classes","@name","@value"],["reviewable-user-details email",[28,[37,0],["review.user.email"],null],[30,0,["reviewable","payload","email"]]]],null],[1,"\\n\\n    "],[8,[39,4],null,[["@classes","@name","@value"],["reviewable-user-details bio",[28,[37,0],["review.user.bio"],null],[30,0,["reviewable","payload","bio"]]]],null],[1,"\\n\\n"],[41,[30,0,["reviewable","payload","website"]],[[[1,"      "],[10,0],[14,0,"reviewable-user-details website"],[12],[1,"\\n        "],[10,0],[14,0,"name"],[12],[1,[28,[35,0],["review.user.website"],null]],[13],[1,"\\n        "],[10,0],[14,0,"value"],[12],[1,"\\n          "],[10,3],[15,6,[30,0,["reviewable","payload","website"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["reviewable","payload","website"]]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,4],null,[["@classes","@name","@value"],["reviewable-user-details reject-reason",[28,[37,0],["review.user.reject_reason"],null],[30,0,["reviewable","reject_reason"]]]],null],[1,"\\n\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["userFields"]]],null]],null],null,[[[1,"      "],[8,[39,4],null,[["@classes","@name","@value","@tagName"],["reviewable-user-details user-field",[30,1,["name"]],[30,1,["value"]],""]],null],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n\\n  "],[18,2,null],[1,"\\n"],[13]],["f","&default"],false,["i18n","if","get-url","concat","reviewable-field","each","-track-array","yield"]]',moduleName:"discourse/components/reviewable-user.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((r=(0,n.default)("reviewable.user_fields"),l=o={userFields(e){return this.site.collectUserFields(e)}},a="userFields",u=[r],c=Object.getOwnPropertyDescriptor(o,"userFields"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/save-controls",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"qJGez82Q",block:'[[[8,[39,0],null,[["@action","@disabled","@label","@class"],[[30,0,["action"]],[30,0,["buttonDisabled"]],[30,0,["savingText"]],"btn-primary save-changes"]],null],[1,"\\n"],[41,[30,0,["saved"]],[[[1,"  "],[10,1],[14,0,"saved"],[12],[1,[28,[35,2],["saved"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[18,1,null]],["&default"],false,["d-button","if","i18n","yield"]]',moduleName:"discourse/components/save-controls.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((o=(0,n.default)("model.isSaving"),s={classNames:["controls","save-button"],buttonDisabled:(0,r.or)("model.isSaving","saveDisabled"),didInsertElement(){this._super(...arguments),this.set("saved",!1)},savingText:e=>e?"saving":"save"},a=s,u="savingText",c=[o],d=Object.getOwnPropertyDescriptor(s,"savingText"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/score-value",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"iqqZ/jP7",block:'[[[41,[30,0,["value"]],[[[1,"  "],[10,1],[14,0,"score-value"],[12],[1,"\\n    "],[10,1],[14,0,"score-number"],[12],[1,[28,[35,1],[[30,0,["value"]]],null]],[13],[1,"\\n"],[41,[30,0,["label"]],[[[1,"      "],[10,1],[15,"title",[28,[37,2],[[28,[37,3],["review.explain.",[30,0,["label"]],".title"],null]],null]],[14,0,"score-value-type"],[12],[1,"\\n        "],[1,[28,[35,2],[[28,[37,3],["review.explain.",[30,0,["label"]],".name"],null]],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,1],[14,0,"op"],[12],[1,"+"],[13],[1,"\\n"]],[]],null]],[],false,["if","float","i18n","concat"]]',moduleName:"discourse/components/score-value.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/scroll-tracker",["exports","@ember/component","discourse/mixins/scrolling","@ember/runloop"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend(i.default,{didReceiveAttrs(){this._super(...arguments),this.set("trackerName",`scroll-tracker-${this.name}`)},didInsertElement(){this._super(...arguments),this.bindScrolling()},didRender(){this._super(...arguments)
const e=this.session.get(this.trackerName)
e&&e.position>=0&&e.tag===this.tag&&(0,n.next)((()=>$(window).scrollTop(e.position+1)))},willDestroyElement(){this._super(...arguments),this.unbindScrolling()},scrolled(){this._super(...arguments),this.session.set(this.trackerName,{position:$(window).scrollTop(),tag:this.tag})}})
e.default=r})),define("discourse/components/scrolling-post-stream",["exports","discourse/widgets/post-stream","@ember/runloop","discourse/lib/url","discourse/components/mount-widget","discourse-common/lib/debounce","discourse/lib/safari-hacks","discourse/lib/offset-calculator","@ember/service","discourse-common/utils/decorators","discourse-common/utils/dom-utils","discourse/lib/show-modal"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var m,h,f,g,b,y,_=r.default.extend((p={screenTrack:(0,a.inject)(),widget:"post-stream",_topVisible:null,_bottomVisible:null,_currentPost:null,_currentVisible:null,_currentPercent:null,buildArgs(){return this.getProperties("posts","canCreatePost","filteredPostsCount","multiSelect","gaps","selectedQuery","selectedPostsCount","searchService","showReadIndicator","streamFilters","lastReadPostNumber","highestPostNumber")},scrolled(){if(this.isDestroyed||this.isDestroying)return
if((0,s.isWorkaroundActive)()||document.webkitFullscreenElement||document.fullscreenElement)return
const e=document.elementFromPoint(0,0)
if(e&&"IFRAME"===e.tagName.toUpperCase())return
const n=window.innerHeight,r=Math.round(5*n),o=[],a=[],u=document.scrollingElement.scrollTop,d=c.default.offset(document.querySelector(".posts-wrapper")).top,p=this.element.querySelectorAll(".onscreen-post, .cloaked-post"),m=function(e,t,i,n,r){if(r<n)return n
for(;r>n;){const o=Math.floor((n+r)/2),s=e.item(o)
c.default.offset(s).top-i+s.clientHeight>t?r=o-1:n=o+1}return n}(p,u-r,d,0,p.length-1)
let h=u+n,f=h+r
const g=document.body.clientHeight
h>g&&(h=g),f>g&&(f=g)
let b=null,y=null
const _=(0,l.default)(),v=Math.ceil(u+_+5)
let w=!0,k=m,x=0
for(;k<p.length;){const e=p.item(k)
if(!e)break
const t=c.default.offset(e).top,i=e.clientHeight,n=Math.ceil(t+i)
if(w=w&&t<v,t>f)break
n>=u&&t<=h&&o.push(k),null===b&&(t<=v&&n>=v||x<=v&&t>=v)&&(y=(v-t)/i,b=k),x=n,a.push(k),k++}w&&(null===y&&(y=1),null===b&&(b=k-1))
const P=this.posts,O=e=>this.queueRerender(e)
if(o.length){const e=P.objectAt(o[0])
if(this._topVisible!==e){this._topVisible=e
const t=p.item(o[0]),n=t.id,r=c.default.position(t),s=r?.top||0,l=()=>{O((()=>{const e=document.getElementById(n)
if(!e)return
const t=c.default.position(e).top-s
document.documentElement.scroll({top:t,left:0}),(0,i.schedule)("afterRender",(()=>{document.documentElement.scroll({top:t,left:0})}))}))}
this.topVisibleChanged({post:e,refresh:l})}const t=P.objectAt(o[o.length-1])
this._bottomVisible!==t&&(this._bottomVisible=t,this.bottomVisibleChanged({post:t,refresh:O}))
const n=this._currentPost!==b
if(n){this._currentPost=b
const e=P.objectAt(b)
this.currentPostChanged({post:e})}null!==y&&(y=Math.max(0,Math.min(1,y)),(n||this._currentPercent!==y)&&(this._currentPercent=y,this.currentPostScrolled({percent:y})))}else this._topVisible=null,this._bottomVisible=null,this._currentPost=null,this._currentPercent=null
const T=[],S=[],j=this._previouslyNearby,C={}
a.forEach((e=>{const i=P.objectAt(e),n=i.post_number
delete j[n],o.includes(e)&&(T.push(n),i.read&&S.push(n)),C[n]=i,(0,t.uncloak)(i,this)})),Object.values(j).forEach((e=>(0,t.cloak)(e,this))),this._previouslyNearby=C,this.screenTrack.setOnscreen(T,S)},showSummary(){(0,d.default)("topic-summary").setProperties({topicId:this.posts.objectAt(0).topic_id})},_scrollTriggered(){(0,i.scheduleOnce)("afterRender",this,this.scrolled)},_posted(e){this.queueRerender((()=>{if(e){const t=e.post_number
n.default.jumpToPost(t,{skipIfOnScreen:!0})}}))},_refresh(e){e&&(e.id?(this.dirtyKeys.keyDirty(`post-${e.id}`),e.refreshLikes&&this.dirtyKeys.keyDirty(`post-menu-${e.id}`,{onRefresh:"refreshLikes"}),e.refreshReaders&&this.dirtyKeys.keyDirty(`post-menu-${e.id}`,{onRefresh:"refreshReaders"})):e.force&&this.dirtyKeys.forceAll()),this.queueRerender(),this._scrollTriggered()},_debouncedScroll(){(0,o.default)(this,this._scrollTriggered,50)},didInsertElement(){this._super(...arguments),this._previouslyNearby={},this.appEvents.on("post-stream:refresh",this,"_debouncedScroll")
const e={passive:!0}
document.addEventListener("touchmove",this._debouncedScroll,e),window.addEventListener("scroll",this._debouncedScroll,e),this._scrollTriggered(),this.appEvents.on("post-stream:posted",this,"_posted"),this.element.addEventListener("mouseenter",this._handleWidgetButtonHoverState,!0),this.element.addEventListener("mouseleave",this._removeWidgetButtonHoverState,!0),this.appEvents.on("post-stream:refresh",this,"_refresh"),window.onpageshow=function(e){e.persisted&&n.default.routeTo(this.location.pathname)}},willDestroyElement(){this._super(...arguments),document.removeEventListener("touchmove",this._debouncedScroll),window.removeEventListener("scroll",this._debouncedScroll),this.appEvents.off("post-stream:refresh",this,"_debouncedScroll"),this.element.removeEventListener("mouseenter",this._handleWidgetButtonHoverState),this.element.removeEventListener("mouseleave",this._removeWidgetButtonHoverState),this.appEvents.off("post-stream:refresh",this,"_refresh"),this.appEvents.off("post-stream:posted",this,"_posted")},didUpdateAttrs(){this._refresh({force:!0})},_handleWidgetButtonHoverState(e){e.target.classList.contains("widget-button")&&(document.querySelectorAll("button.widget-button").forEach((e=>{e.classList.remove("d-hover")})),e.target.classList.add("d-hover"))},_removeWidgetButtonHoverState(){document.querySelectorAll("button.widget-button").forEach((e=>{e.classList.remove("d-hover")}))}},m=p,h="_debouncedScroll",f=[u.bind],g=Object.getOwnPropertyDescriptor(p,"_debouncedScroll"),b=p,y={},Object.keys(g).forEach((function(e){y[e]=g[e]})),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=f.slice().reverse().reduce((function(e,t){return t(m,h,e)||e}),y),b&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(b):void 0,y.initializer=void 0),void 0===y.initializer&&(Object.defineProperty(m,h,y),y=null),p))
e.default=_})),define("discourse/components/search-advanced-options",["exports","@ember/component","@ember/template-factory","discourse/models/category","I18n","@ember/object","discourse/lib/utilities"],(function(e,t,i,n,r,o,s){var l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addAdvancedSearchOptions=function(e){z.push(e)},e.default=void 0
const u=(0,i.createTemplateFactory)({id:"SssKo/Px",block:'[[[10,"summary"],[12],[1,"\\n  "],[1,[28,[35,0],["search.advanced.title"],null]],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"search-advanced-filters"],[12],[1,"\\n  "],[10,0],[14,0,"search-advanced-options"],[12],[1,"\\n    "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["advanced-search-options-above","div",[28,[37,2],null,[["searchedTerms","onChangeSearchedTermField"],[[30,0,["searchedTerms"]],[30,0,["onChangeSearchedTermField"]]]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-group advanced-search-category"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.in_category.label"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,3],null,[["@id","@value","@onChange"],["search-in-category",[30,0,["searchedTerms","category","id"]],[28,[37,4],[[30,0],"onChangeSearchTermForCategory"],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1,"      "],[10,0],[14,0,"control-group advanced-search-tags"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.with_tags.label"],null]],[13],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,6],null,[["@id","@tags","@everyTag","@unlimitedTagCount","@onChange","@options"],["search-with-tags",[30,0,["searchedTerms","tags"]],true,true,[28,[37,4],[[30,0],"onChangeSearchTermForTags"],null],[28,[37,2],null,[["allowAny","headerAriaLabel"],[false,[28,[37,0],["search.advanced.with_tags.aria_label"],null]]]]]],null],[1,"\\n"],[41,[30,0,["showAllTagsCheckbox"]],[[[1,"            "],[10,"section"],[14,0,"field"],[12],[1,"\\n              "],[10,"label"],[12],[1,"\\n                "],[8,[39,7],[[24,0,"all-tags"],[4,[38,8],["click",[28,[37,4],[[30,0],"onChangeSearchTermForAllTags"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","all_tags"]]]],null],[1,"\\n                "],[1,[28,[35,0],["search.advanced.filters.all_tags"],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"control-group advanced-search-topics-posts"],[12],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[10,"fieldset"],[14,0,"grouped-control"],[12],[1,"\\n          "],[10,"legend"],[14,0,"grouped-control-label"],[12],[1,[28,[35,0],["search.advanced.filters.label"],null]],[13],[1,"\\n\\n"],[41,[30,0,["currentUser"]],[[[1,"            "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n              "],[8,[39,7],[[24,1,"matching-title-only"],[24,0,"in-title"],[4,[38,8],["click",[28,[37,4],[[30,0],"onChangeSearchTermForSpecialInTitle"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","title"]]]],null],[1,"\\n              "],[10,"label"],[14,"for","matching-title-only"],[12],[1,"\\n                "],[1,[28,[35,0],["search.advanced.filters.title"],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n              "],[8,[39,7],[[24,1,"matching-liked"],[24,0,"in-likes"],[4,[38,8],["click",[28,[37,4],[[30,0],"onChangeSearchTermForSpecialInLikes"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","likes"]]]],null],[1,"\\n              "],[10,"label"],[14,"for","matching-liked"],[12],[1,[28,[35,0],["search.advanced.filters.likes"],null]],[13],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n              "],[8,[39,7],[[24,1,"matching-in-messages"],[24,0,"in-private"],[4,[38,8],["click",[28,[37,4],[[30,0],"onChangeSearchTermForSpecialInMessages"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","messages"]]]],null],[1,"\\n              "],[10,"label"],[14,"for","matching-in-messages"],[12],[1,[28,[35,0],["search.advanced.filters.private"],null]],[13],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n              "],[8,[39,7],[[24,1,"matching-seen"],[24,0,"in-seen"],[4,[38,8],["click",[28,[37,4],[[30,0],"onChangeSearchTermForSpecialInSeen"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","seen"]]]],null],[1,"\\n              "],[10,"label"],[14,"for","matching-seen"],[12],[1,[28,[35,0],["search.advanced.filters.seen"],null]],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,9],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["in","value",[30,0,["inOptions"]],[30,0,["searchedTerms","in"]],[28,[37,4],[[30,0],"onChangeSearchTermForIn"],null],[28,[37,2],null,[["none","clearable"],["user.locale.any",true]]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group advanced-search-topic-status"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.statuses.label"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,9],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["search-status-options","value",[30,0,["statusOptions"]],[30,0,["searchedTerms","status"]],[28,[37,4],[[30,0],"onChangeSearchTermForStatus"],null],[28,[37,2],null,[["none","headerAriaLabel","clearable"],["user.locale.any",[28,[37,0],["search.advanced.statuses.label"],null],true]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group advanced-search-posted-by"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n        "],[1,[28,[35,0],["search.advanced.posted_by.label"],null]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,10],null,[["@id","@value","@onChange","@options"],["search-posted-by",[30,0,["searchedTerms","username"]],[28,[37,4],[[30,0],"onChangeSearchTermForUsername"],null],[28,[37,2],null,[["headerAriaLabel","maximum","excludeCurrentUser"],[[28,[37,0],["search.advanced.posted_by.aria_label"],null],1,false]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group advanced-search-posted-date"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.post.time.label"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls inline-form full-width"],[12],[1,"\\n        "],[8,[39,9],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["postTime","value",[30,0,["postTimeOptions"]],[30,0,["searchedTerms","time","when"]],[28,[37,4],[[30,0],"onChangeWhenTime"],null],[28,[37,2],null,[["headerAriaLabel"],[[28,[37,0],["search.advanced.post.time.aria_label"],null]]]]]],null],[1,"\\n        "],[8,[39,11],null,[["@date","@onChange","@inputId"],[[30,0,["searchedTerms","time","days"]],[28,[37,4],[[30,0],"onChangeWhenDate"],null],"search-post-date"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["advanced-search-options-below","div",[28,[37,2],null,[["searchedTerms","onChangeSearchedTermField"],[[30,0,["searchedTerms"]],[30,0,["onChangeSearchedTermField"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"details"],[14,0,"search-advanced-additional-options"],[12],[1,"\\n    "],[10,"summary"],[12],[1,"\\n      "],[1,[28,[35,0],["search.advanced.additional_options.label"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"count-group control-group"],[12],[1,"\\n"],[1,"      "],[10,1],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.post.count.label"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,7],[[24,0,"input-small"],[24,1,"search-min-post-count"],[16,"placeholder",[28,[37,0],["search.advanced.post.min.placeholder"],null]],[16,"aria-label",[28,[37,0],["search.advanced.post.min.aria_label"],null]],[4,[38,8],["input",[28,[37,4],[[30,0],"onChangeSearchTermMinPostCount"],[["value"],["target.value"]]]],null]],[["@type","@value"],["number",[28,[37,12],[[30,0,["searchedTerms","min_posts"]]],null]]],null],[1,"\\n        "],[1,[28,[35,13],["arrows-alt-h"],null]],[1,"\\n        "],[8,[39,7],[[24,0,"input-small"],[24,1,"search-max-post-count"],[16,"placeholder",[28,[37,0],["search.advanced.post.max.placeholder"],null]],[16,"aria-label",[28,[37,0],["search.advanced.post.max.aria_label"],null]],[4,[38,8],["input",[28,[37,4],[[30,0],"onChangeSearchTermMaxPostCount"],[["value"],["target.value"]]]],null]],[["@type","@value"],["number",[28,[37,12],[[30,0,["searchedTerms","max_posts"]]],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"count-group control-group"],[12],[1,"\\n"],[1,"      "],[10,1],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.views.label"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,7],[[24,0,"input-small"],[24,1,"search-min-views"],[16,"placeholder",[28,[37,0],["search.advanced.min_views.placeholder"],null]],[16,"aria-label",[28,[37,0],["search.advanced.min_views.aria_label"],null]],[4,[38,8],["input",[28,[37,4],[[30,0],"onChangeSearchTermMinViews"],[["value"],["target.value"]]]],null]],[["@type","@value"],["number",[28,[37,12],[[30,0,["searchedTerms","min_views"]]],null]]],null],[1,"\\n        "],[1,[28,[35,13],["arrows-alt-h"],null]],[1,"\\n        "],[8,[39,7],[[24,0,"input-small"],[24,1,"search-max-views"],[16,"placeholder",[28,[37,0],["search.advanced.max_views.placeholder"],null]],[16,"aria-label",[28,[37,0],["search.advanced.max_views.aria_label"],null]],[4,[38,8],["input",[28,[37,4],[[30,0],"onChangeSearchTermMaxViews"],[["value"],["target.value"]]]],null]],[["@type","@value"],["number",[28,[37,12],[[30,0,["searchedTerms","max_views"]]],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1,"    "],[10,0],[14,0,"second-search-button"],[12],[1,"\\n      "],[8,[39,14],null,[["@action","@icon","@label","@class","@ariaLabel","@disabled"],[[30,0,["search"]],"search","search.search_button","btn-primary search-cta","search.search_button",[30,0,["searchButtonDisabled"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["i18n","plugin-outlet","hash","search-advanced-category-chooser","action","if","tag-chooser","input","on","combo-box","user-chooser","date-input","readonly","d-icon","d-button"]]',moduleName:"discourse/components/search-advanced-options.hbs",isStrictMode:!1}),c=/(([^" \t\n\x0B\f\r]+)?(("[^"]+")?))/g,d=/^(user:|@)/gi,p=/^(category:|#)/gi,m=/^(tags?:|#(?=[a-z0-9\-]+::tag))/gi,h=/^(in|with):/gi,f=/^status:/gi,g=/^min_posts:/gi,b=/^max_posts:/gi,y=/^min_views:/gi,_=/^max_views:/gi,v=/^(before|after):/gi,w=/(^(tags?:|#(?=[a-z0-9\-]+::tag))|::tag\s?$)/gi,k=/^in:likes$/gi,x=/^in:title$/gi,P=/^in:(personal|messages)$/gi,O=/^in:seen$/gi,T=/^(\#[a-zA-Z0-9\-:]+)/gi,S=/^(category:[0-9]+)/gi,j=/^(before|after)/gi,C={images:"with"}
let z=[]
function I(){return[{name:r.default.t("search.advanced.filters.first"),value:"first"},{name:r.default.t("search.advanced.filters.pinned"),value:"pinned"},{name:r.default.t("search.advanced.filters.wiki"),value:"wiki"},{name:r.default.t("search.advanced.filters.images"),value:"images"}].concat(...z.map((e=>e.inOptionsForAll)).filter(Boolean))}var E=(0,t.setComponentTemplate)(u,t.default.extend((l={tagName:"details",attributeBindings:["expandFilters:open"],classNames:["advanced-filters"],category:null,init(){this._super(...arguments),this.setProperties({searchedTerms:{username:null,category:null,tags:null,in:null,special:{in:{title:!1,likes:!1,messages:!1,seen:!1},all_tags:!1},status:null,min_posts:null,max_posts:null,min_views:null,max_views:null,time:{when:"before",days:null}},inOptions:this.currentUser?[{name:r.default.t("search.advanced.filters.unseen"),value:"unseen"},{name:r.default.t("search.advanced.filters.posted"),value:"posted"},{name:r.default.t("search.advanced.filters.created"),value:"created"},{name:r.default.t("search.advanced.filters.watching"),value:"watching"},{name:r.default.t("search.advanced.filters.tracking"),value:"tracking"},{name:r.default.t("search.advanced.filters.bookmarks"),value:"bookmarks"}].concat(...z.map((e=>e.inOptionsForUsers)).filter(Boolean)).concat(I()):I(),statusOptions:[{name:r.default.t("search.advanced.statuses.open"),value:"open"},{name:r.default.t("search.advanced.statuses.closed"),value:"closed"},{name:r.default.t("search.advanced.statuses.public"),value:"public"},{name:r.default.t("search.advanced.statuses.archived"),value:"archived"},{name:r.default.t("search.advanced.statuses.noreplies"),value:"noreplies"},{name:r.default.t("search.advanced.statuses.single_user"),value:"single_user"}].concat(...z.map((e=>e.statusOptions)).filter(Boolean)),postTimeOptions:[{name:r.default.t("search.advanced.post.time.before"),value:"before"},{name:r.default.t("search.advanced.post.time.after"),value:"after"}].concat(...z.map((e=>e.postTimeOptions)).filter(Boolean)),showAllTagsCheckbox:!1})},didReceiveAttrs(){this._super(...arguments),this.setSearchedTermValue("searchedTerms.username",d),this.setSearchedTermValueForCategory(),this.setSearchedTermValueForTags()
let e=this.inOptions.map((e=>e.value)).join("|")
const t=new RegExp(`(in|with):(${e})`,"i")
this.setSearchedTermValue("searchedTerms.in",h,t),this.setSearchedTermSpecialInValue("searchedTerms.special.in.likes",k),this.setSearchedTermSpecialInValue("searchedTerms.special.in.title",x),this.setSearchedTermSpecialInValue("searchedTerms.special.in.messages",P),this.setSearchedTermSpecialInValue("searchedTerms.special.in.seen",O)
let i=this.statusOptions.map((e=>e.value)).join("|")
const n=new RegExp(`status:(${i})`,"i")
this.setSearchedTermValue("searchedTerms.status",f,n),this.setSearchedTermValueForPostTime(),this.setSearchedTermValue("searchedTerms.min_posts",g),this.setSearchedTermValue("searchedTerms.max_posts",b),this.setSearchedTermValue("searchedTerms.min_views",y),this.setSearchedTermValue("searchedTerms.max_views",_)},findSearchTerms(){const e=(0,s.escapeExpression)(this.searchTerm)
if(!e)return[]
const t=e.match(c)
if(!t)return[]
let i=[]
return t.forEach((e=>{0!==e.length&&i.push(e)})),i},filterBlocks(e){const t=this.findSearchTerms()
if(!t)return[]
let i=[]
return t.forEach((t=>{-1!==t.search(e)&&i.push(t)})),i},setSearchedTermValue(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null
i=i||t
const n=this.filterBlocks(i)
let r=this.get(e)
if(0!==n.length){const i=n[0].replace(t,"").toLowerCase()
r!==i&&i.length&&this.set(e,i)}else r&&0!==r.length&&this.set(e,null)},setSearchedTermSpecialInValue(e,t){0!==this.filterBlocks(t).length?!0!==this.get(e)&&this.set(e,!0):!1!==this.get(e)&&this.set(e,!1)},setSearchedTermValueForCategory(){const e=this.filterBlocks(p)
if(0!==e.length){const t=this.get("searchedTerms.category"),i=e[0].replace(p,"").split(":")
let r
i.length>1?r=n.default.list().find((e=>e.get("parentCategory.slug")===i[0]&&e.slug===i[1])):(r=n.default.list().find((e=>!e.parentCategory&&e.slug===i[0])),r||(r=n.default.list().find((e=>e.slug===i[0])))),(!t&&r||t&&r&&t.id!==r.id)&&this.set("searchedTerms.category",r)}else this.set("searchedTerms.category",null)},setSearchedTermValueForTags(){if(!this.siteSettings.tagging_enabled)return
const e=this.filterBlocks(m),t=this.get("searchedTerms.tags")
e.length&&this.set("searchedTerms.special.all_tags",e[0].includes("+"))
const i=this.get("searchedTerms.special.all_tags")
if(0!==e.length){const n=i?"+":",",r=Array.isArray(t)?t.join(n):t,o=e[0].replace(w,"")
if(r!==o){const e=o?.split(n)
this.set("searchedTerms.tags",e),this.set("showAllTagsCheckbox",!!(e.length>1))}}else t||this.set("searchedTerms.tags",null)},setSearchedTermValueForPostTime(){const e=this.filterBlocks(v)
if(0!==e.length){const t=this.get("searchedTerms.time.when"),i=e[0].match(j)[0].toLowerCase(),n=this.get("searchedTerms.time.days"),r=e[0].replace(v,""),o={}
t!==i&&(o["searchedTerms.time.when"]=i),n!==r&&(o["searchedTerms.time.days"]=r),this.setProperties(o)}else this.set("searchedTerms.time.when","before"),this.set("searchedTerms.time.days",null)},updateInRegex(e,t){const i=this.filterBlocks(e),n=this.get("searchedTerms.special.in."+t)
let r=this.searchTerm||""
n?0===i.length&&(r+=` in:${t}`,this._updateSearchTerm(r)):0!==i.length&&(r=r.replace(i,""),this._updateSearchTerm(r))},onChangeSearchTermMinPostCount(e){this.set("searchedTerms.min_posts",e.length?e:null),this._updateSearchTermForMinPostCount()},onChangeSearchTermMaxPostCount(e){this.set("searchedTerms.max_posts",e.length?e:null),this._updateSearchTermForMaxPostCount()},onChangeSearchTermMinViews(e){this.set("searchedTerms.min_views",e.length?e:null),this._updateSearchTermForMinViews()},onChangeSearchTermMaxViews(e){this.set("searchedTerms.max_views",e.length?e:null),this._updateSearchTermForMaxViews()},onChangeSearchTermForIn(e){this.set("searchedTerms.in",e),this._updateSearchTermForIn()},onChangeSearchTermForStatus(e){this.set("searchedTerms.status",e),this._updateSearchTermForStatus()},onChangeWhenTime(e){e&&(this.set("searchedTerms.time.when",e),this._updateSearchTermForPostTime())},onChangeWhenDate(e){e&&(this.set("searchedTerms.time.days",e.format("YYYY-MM-DD")),this._updateSearchTermForPostTime())},onChangeSearchTermForCategory(e){if(e){const t=n.default.findById(e)
this.onChangeCategory&&this.onChangeCategory(t),this.set("searchedTerms.category",t)}else this.onChangeCategory&&this.onChangeCategory(null),this.set("searchedTerms.category",null)
this._updateSearchTermForCategory()},onChangeSearchTermForUsername(e){this.set("searchedTerms.username",e.length?e:null),this._updateSearchTermForUsername()},onChangeSearchTermForTags(e){this.set("searchedTerms.tags",e.length?e:null),this._updateSearchTermForTags()},onChangeSearchTermForAllTags(e){this.set("searchedTerms.special.all_tags",e),this._updateSearchTermForTags()},onChangeSearchTermForSpecialInLikes(e){this.set("searchedTerms.special.in.likes",e),this.updateInRegex(k,"likes")},onChangeSearchTermForSpecialInMessages(e){this.set("searchedTerms.special.in.messages",e),this.updateInRegex(P,"messages")},onChangeSearchTermForSpecialInSeen(e){this.set("searchedTerms.special.in.seen",e),this.updateInRegex(O,"seen")},onChangeSearchTermForSpecialInTitle(e){this.set("searchedTerms.special.in.title",e),this.updateInRegex(x,"title")},onChangeSearchedTermField(e,t,i){this.set(`searchedTerms.${e}`,i),this[t]()},_updateSearchTermForTags(){const e=this.filterBlocks(m),t=this.get("searchedTerms.tags")
let i=this.searchTerm||""
const n=this.get("searchedTerms.special.all_tags")
if(t&&0!==t.length){const r=n?"+":",",o=t.join(r)
0!==e.length?i=i.replace(e[0],`tags:${o}`):i+=` tags:${o}`,t.length>1&&this.set("showAllTagsCheckbox",!0),this._updateSearchTerm(i)}else 0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))},_updateSearchTermForCategory(){const e=this.filterBlocks(p),t=this.get("searchedTerms.category")
let i=this.searchTerm||""
const n=0!==e.length?e[0].match(T):null,r=0!==e.length?e[0].match(S):null
if(t){const e=t.id,o=t.slug
if(t.parentCategory){const s=t.parentCategory.slug
n?i=i.replace(n[0],`#${s}:${o}`):r?i=i.replace(r[0],`category:${e}`):i+=o?` #${s}:${o}`:` category:${e}`,this._updateSearchTerm(i)}else n?i=i.replace(n[0],`#${o}`):r?i=i.replace(r[0],`category:${e}`):i+=o?` #${o}`:` category:${e}`,this._updateSearchTerm(i)}else n&&(i=i.replace(n[0],"")),r&&(i=i.replace(r[0],"")),this._updateSearchTerm(i)},_updateSearchTermForUsername(){const e=this.filterBlocks(d),t=this.get("searchedTerms.username")
let i=this.searchTerm||""
t&&0!==t.length?(0!==e.length?i=i.replace(e[0],`@${t}`):i+=` @${t}`,this._updateSearchTerm(i)):0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))},_updateSearchTermForPostTime(){const e=this.filterBlocks(v),t=this.get("searchedTerms.time.days")
let i=this.searchTerm||""
if(t){const n=this.get("searchedTerms.time.when")
0!==e.length?i=i.replace(e[0],`${n}:${t}`):i+=` ${n}:${t}`,this._updateSearchTerm(i)}else 0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))},_updateSearchTermForIn(){let e=this.inOptions.map((e=>e.value)).join("|")
const t=new RegExp(`(in|with):(${e})`,"i"),i=this.filterBlocks(t),n=this.get("searchedTerms.in")
let r="in"
n in C&&(r=C[n])
let o=this.searchTerm||""
n?(0!==i.length?o=o.replace(i[0],`${r}:${n}`):o+=` ${r}:${n}`,this._updateSearchTerm(o)):0!==i.length&&(o=o.replace(i,""),this._updateSearchTerm(o))},_updateSearchTermForStatus(){let e=this.statusOptions.map((e=>e.value)).join("|")
const t=new RegExp(`status:(${e})`,"i"),i=this.filterBlocks(t),n=this.get("searchedTerms.status")
let r=this.searchTerm||""
n?(0!==i.length?r=r.replace(i[0],`status:${n}`):r+=` status:${n}`,this._updateSearchTerm(r)):0!==i.length&&(r=r.replace(i[0],""),this._updateSearchTerm(r))},_updateSearchTermForMinPostCount(){const e=this.filterBlocks(g),t=this.get("searchedTerms.min_posts")
let i=this.searchTerm||""
t?(0!==e.length?i=i.replace(e[0],`min_posts:${t}`):i+=` min_posts:${t}`,this._updateSearchTerm(i)):0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))},_updateSearchTermForMaxPostCount(){const e=this.filterBlocks(b),t=this.get("searchedTerms.max_posts")
let i=this.searchTerm||""
t?(0!==e.length?i=i.replace(e[0],`max_posts:${t}`):i+=` max_posts:${t}`,this._updateSearchTerm(i)):0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))},_updateSearchTermForMinViews(){const e=this.filterBlocks(y),t=this.get("searchedTerms.min_views")
let i=this.searchTerm||""
t?(0!==e.length?i=i.replace(e[0],`min_views:${t}`):i+=` min_views:${t}`,this._updateSearchTerm(i)):0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))},_updateSearchTermForMaxViews(){const e=this.filterBlocks(_),t=this.get("searchedTerms.max_views")
let i=this.searchTerm||""
t?(0!==e.length?i=i.replace(e[0],`max_views:${t}`):i+=` max_views:${t}`,this._updateSearchTerm(i)):0!==e.length&&(i=i.replace(e[0],""),this._updateSearchTerm(i))},_updateSearchTerm(e){this.onChangeSearchTerm(e.trim())}},a(l,"onChangeSearchTermMinPostCount",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermMinPostCount"),l),a(l,"onChangeSearchTermMaxPostCount",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermMaxPostCount"),l),a(l,"onChangeSearchTermMinViews",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermMinViews"),l),a(l,"onChangeSearchTermMaxViews",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermMaxViews"),l),a(l,"onChangeSearchTermForIn",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermForIn"),l),a(l,"onChangeSearchTermForStatus",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermForStatus"),l),a(l,"onChangeWhenTime",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeWhenTime"),l),a(l,"onChangeWhenDate",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeWhenDate"),l),a(l,"onChangeSearchTermForCategory",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermForCategory"),l),a(l,"onChangeSearchTermForUsername",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermForUsername"),l),a(l,"onChangeSearchTermForTags",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermForTags"),l),a(l,"onChangeSearchTermForAllTags",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermForAllTags"),l),a(l,"onChangeSearchTermForSpecialInLikes",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermForSpecialInLikes"),l),a(l,"onChangeSearchTermForSpecialInMessages",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermForSpecialInMessages"),l),a(l,"onChangeSearchTermForSpecialInSeen",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermForSpecialInSeen"),l),a(l,"onChangeSearchTermForSpecialInTitle",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchTermForSpecialInTitle"),l),a(l,"onChangeSearchedTermField",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeSearchedTermField"),l),l)))
e.default=E})),define("discourse/components/search-menu",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/object","discourse-common/utils/decorators","@glimmer/tracking","discourse/lib/search","discourse/lib/url","discourse-common/lib/debounce","discourse-common/lib/get-url","discourse/lib/ajax-error","rsvp","discourse/lib/category-tag-search","discourse/lib/user-search","discourse/lib/autocomplete","@ember/runloop"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b){var y,_,v,w,k,x,P,O,T,S,j,C,z,I
function E(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function M(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function D(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SEARCH_INPUT_ID=e.SEARCH_BUTTON_ID=e.MODIFIER_REGEXP=e.DEFAULT_TYPE_FILTER=void 0,e.focusSearchButton=function(){document.getElementById(R).focus()},e.focusSearchInput=$
const N=(0,i.createTemplateFactory)({id:"K3jwOWQj",block:'[[[8,[39,0],null,[["@animationClass"],[[30,1]]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@inTopicContext","@clearTopicContext","@clearPMInboxContext","@inPMInboxContext","@searchTermChanged","@loading","@fullSearchUrl","@fullSearch","@triggerSearch","@clearSearch","@includesTopics","@noResults","@results","@invalidTerm","@suggestionKeyword","@suggestionResults","@searchTopics","@typeFilter","@updateTypeFilter","@toggleSearchMenu","@closeSearchMenu"],[[30,0,["inTopicContext"]],[30,0,["clearTopicContext"]],[30,0,["clearPMInboxContext"]],[30,0,["inPMInboxContext"]],[30,0,["searchTermChanged"]],[30,0,["loading"]],[30,0,["fullSearchUrl"]],[30,0,["fullSearch"]],[30,0,["triggerSearch"]],[30,0,["clearSearch"]],[30,0,["includesTopics"]],[30,0,["noResults"]],[30,0,["results"]],[30,0,["invalidTerm"]],[30,0,["suggestionKeyword"]],[30,0,["suggestionResults"]],[30,0,["includesTopics"]],[30,0,["typeFilter"]],[30,0,["updateTypeFilter"]],[30,2],[30,3]]],null],[1,"\\n"]],[]]]]]],["@animationClass","@toggleSearchMenu","@closeSearchMenu"],false,["menu-panel","search-menu/menu-panel-contents"]]',moduleName:"discourse/components/search-menu.hbs",isStrictMode:!1}),L=/(\#[a-zA-Z0-9\-:]*)$/gi,A=/(\@[a-zA-Z0-9\-\_]*)$/gi,U=/(in:|status:|order:|:)([a-zA-Z]*)$/gi,F="search-term"
e.SEARCH_INPUT_ID=F
const R="search-button"
e.SEARCH_BUTTON_ID=R
e.MODIFIER_REGEXP=/.*(\#|\@|:).*$/gi
const B="exclude_topics"
function $(){document.getElementById(F).focus()}e.DEFAULT_TYPE_FILTER=B
let q=(y=class extends n.default{constructor(){super(...arguments),E(this,"search",_,this),E(this,"currentUser",v,this),E(this,"siteSettings",w,this),E(this,"appEvents",k,this),E(this,"inTopicContext",x,this),E(this,"loading",P,this),E(this,"results",O,this),E(this,"noResults",T,this),E(this,"inPMInboxContext",S,this),E(this,"typeFilter",j,this),E(this,"suggestionKeyword",C,this),E(this,"suggestionResults",z,this),E(this,"invalidTerm",I,this),M(this,"_debouncer",null),M(this,"_activeSearch",null)}get includesTopics(){return this.typeFilter!==B}get searchContext(){return!(!this.inTopicContext&&!this.inPMInboxContext)&&this.search.searchContext}fullSearchUrl(e){let t="/search",i=new URLSearchParams
if(this.search.activeGlobalSearchTerm){let e=this.search.activeGlobalSearchTerm
"topic"===this.searchContext?.type?e+=` topic:${this.searchContext.id}`:"private_messages"===this.searchContext?.type&&(e+=" in:messages"),i.set("q",e)}return e?.expanded&&i.set("expanded","true"),""!==i.toString()&&(t=`${t}?${i}`),(0,d.default)(t)}clearSearch(e){e.stopPropagation(),e.preventDefault(),this.search.activeGlobalSearchTerm="",$(),this.triggerSearch()}searchTermChanged(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
this.typeFilter=t.searchTopics?null:B,t.setTopicContext&&(this.inTopicContext=!0),this.search.activeGlobalSearchTerm=e,this.triggerSearch()}fullSearch(){this.loading=!1
const e=this.fullSearchUrl()
e&&u.default.routeTo(e)}updateTypeFilter(e){this.typeFilter=e}clearPMInboxContext(){this.inPMInboxContext=!1}clearTopicContext(){this.inTopicContext=!1}cancel(){this._activeSearch&&(this._activeSearch.abort(),this._activeSearch=null)}async perform(){this.cancel()
const e=this.matchesSuggestions()
if(e)if(this.noResults=!0,this.results={},this.loading=!1,this.suggestionResults=[],"category"===e.type){const t=e.categoriesMatch[0].replace("#",""),i=(0,h.search)(t,this.siteSettings)
m.Promise.resolve(i).then((e=>{e!==g.CANCELLED_STATUS&&(this.suggestionResults=e,this.suggestionKeyword="#")}))}else if("username"===e.type){const t=e.usernamesMatch[0].replace("@",""),i={includeGroups:!0,limit:6}
t.length>0?i.term=t:i.lastSeenUsers=!0,(0,f.default)(i).then((e=>{e?.users?.length>0?(this.suggestionResults=e.users,this.suggestionKeyword="@"):(this.noResults=!0,this.suggestionKeyword=!1)}))}else this.suggestionKeyword=e[0]
else this.suggestionKeyword=!1,this.search.activeGlobalSearchTerm?(0,a.isValidSearchTerm)(this.search.activeGlobalSearchTerm,this.siteSettings)?(this.invalidTerm=!1,this._activeSearch=(0,a.searchForTerm)(this.search.activeGlobalSearchTerm,{typeFilter:this.typeFilter,fullSearchUrl:this.fullSearchUrl,searchContext:this.searchContext}),this._activeSearch.then((e=>{e&&(this.searchContext&&this.appEvents.trigger("post-stream:refresh",{force:!0}),this.noResults=0===e.resultTypes.length,this.results=e)})).catch(p.popupAjaxError).finally((()=>{this.loading=!1}))):(this.noResults=!0,this.results={},this.loading=!1,this.invalidTerm=!0):(this.noResults=!1,this.results={},this.loading=!1,this.invalidTerm=!1)}matchesSuggestions(){if(void 0===this.search.activeGlobalSearchTerm||this.includesTopics)return!1
const e=this.search.activeGlobalSearchTerm.trim(),t=e.match(L)
if(t)return{type:"category",categoriesMatch:t}
const i=e.match(A)
if(i)return{type:"username",usernamesMatch:i}
const n=e.match(U)
return n||!1}triggerSearch(){this.noResults=!1,this.includesTopics?("topic"===this.search.contextType&&(this.search.highlightTerm=this.search.activeGlobalSearchTerm),this.loading=!0,(0,b.cancel)(this._debouncer),this.perform(),this.currentUser&&(0,a.updateRecentSearches)(this.currentUser,this.search.activeGlobalSearchTerm)):(this.loading=!1,this.inTopicContext||(this._debouncer=(0,c.default)(this,this.perform,400)))}},_=D(y.prototype,"search",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=D(y.prototype,"currentUser",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=D(y.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=D(y.prototype,"appEvents",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=D(y.prototype,"inTopicContext",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.inTopicContext}}),P=D(y.prototype,"loading",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),O=D(y.prototype,"results",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),T=D(y.prototype,"noResults",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=D(y.prototype,"inPMInboxContext",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"private_messages"===this.search.searchContext?.type}}),j=D(y.prototype,"typeFilter",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return B}}),C=D(y.prototype,"suggestionKeyword",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z=D(y.prototype,"suggestionResults",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),I=D(y.prototype,"invalidTerm",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D(y.prototype,"fullSearchUrl",[s.bind],Object.getOwnPropertyDescriptor(y.prototype,"fullSearchUrl"),y.prototype),D(y.prototype,"clearSearch",[s.bind],Object.getOwnPropertyDescriptor(y.prototype,"clearSearch"),y.prototype),D(y.prototype,"searchTermChanged",[o.action],Object.getOwnPropertyDescriptor(y.prototype,"searchTermChanged"),y.prototype),D(y.prototype,"fullSearch",[o.action],Object.getOwnPropertyDescriptor(y.prototype,"fullSearch"),y.prototype),D(y.prototype,"updateTypeFilter",[o.action],Object.getOwnPropertyDescriptor(y.prototype,"updateTypeFilter"),y.prototype),D(y.prototype,"clearPMInboxContext",[o.action],Object.getOwnPropertyDescriptor(y.prototype,"clearPMInboxContext"),y.prototype),D(y.prototype,"clearTopicContext",[o.action],Object.getOwnPropertyDescriptor(y.prototype,"clearTopicContext"),y.prototype),D(y.prototype,"triggerSearch",[o.action],Object.getOwnPropertyDescriptor(y.prototype,"triggerSearch"),y.prototype),y)
e.default=q,(0,t.setComponentTemplate)(N,q)})),define("discourse/components/search-menu/advanced-button",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"4a7HItBq",block:'[[[10,3],[14,0,"show-advanced-search"],[15,"title",[28,[37,0],["search.open_advanced"],null]],[15,6,[30,1]],[12],[1,"\\n  "],[1,[28,[35,1],["sliders-h"],null]],[1,"\\n"],[13]],["@href"],false,["i18n","d-icon"]]',moduleName:"discourse/components/search-menu/advanced-button.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/search-menu/browser-search-tip",["exports","@ember/component","@ember/template-factory","@glimmer/component","I18n","discourse/lib/utilities"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"eIJj0C+q",block:'[[[10,0],[14,0,"browser-search-tip"],[12],[1,"\\n  "],[10,1],[14,0,"tip-label"],[12],[1,"\\n    "],[1,[30,0,["translatedLabel"]]],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[14,0,"tip-description"],[12],[1,"\\n    "],[1,[28,[35,0],["search.browser_tip_description"],null]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n"]]',moduleName:"discourse/components/search-menu/browser-search-tip.hbs",isStrictMode:!1})
class l extends n.default{get translatedLabel(){return r.default.t("search.browser_tip",{modifier:(0,o.translateModKey)("Meta+")})}}e.default=l,(0,t.setComponentTemplate)(s,l)})),define("discourse/components/search-menu/clear-button",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"BPWXsITk",block:'[[[11,3],[24,0,"clear-search"],[24,"aria-label","clear_input"],[16,"title",[28,[37,0],["search.clear_search"],null]],[24,6,""],[4,[38,1],["click",[30,1]],null],[12],[1,"\\n  "],[1,[28,[35,2],["times"],null]],[1,"\\n"],[13]],["@clearSearch"],false,["i18n","on","d-icon"]]',moduleName:"discourse/components/search-menu/clear-button.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/search-menu/highlighted-search",["exports","@ember/component","@ember/template-factory","@glimmer/component","discourse/lib/highlight-search","@ember/service"],(function(e,t,i,n,r,o){var s,l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"whBrY7Ha",block:'[[[1,[28,[35,0],[[30,1]],null]]],["@string"],false,["html-safe"]]',moduleName:"discourse/components/search-menu/highlighted-search.hbs",isStrictMode:!1})
let u=(s=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="search",n=this,(i=l)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})
const o=document.createElement("span")
o.textContent=this.args.string,(0,r.default)(o,this.search.activeGlobalSearchTerm)}},c=s.prototype,d="search",p=[o.inject],m={configurable:!0,enumerable:!0,writable:!0,initializer:null},f={},Object.keys(m).forEach((function(e){f[e]=m[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),f),h&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(h):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(c,d,f),f=null),l=f,s)
var c,d,p,m,h,f
e.default=u,(0,t.setComponentTemplate)(a,u)})),define("discourse/components/search-menu/menu-panel-contents",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"5/rBfKk+",block:'[[[10,0],[14,0,"search-input"],[12],[1,"\\n"],[41,[30,1],[[[1,"    "],[8,[39,1],[[24,0,"btn btn-small search-context"]],[["@icon","@label","@title","@action","@iconRight"],["times","search.in_this_topic","search.in_this_topic_tooltip",[30,2],true]],null],[1,"\\n"]],[]],[[[41,[30,3],[[[1,"    "],[8,[39,1],null,[["@icon","@label","@title","@class","@action","@iconRight"],["times","search.in_messages","search.in_messages_tooltip","btn btn-small search-context",[30,4],true]],null],[1,"\\n  "]],[]],null]],[]]],[1,"\\n  "],[8,[39,2],null,[["@searchTermChanged","@typeFilter","@updateTypeFilter","@triggerSearch","@fullSearch","@clearPMInboxContext","@clearTopicContext","@closeSearchMenu"],[[30,5],[30,6],[30,7],[30,8],[30,9],[30,4],[30,2],[30,10]]],null],[1,"\\n\\n"],[41,[30,11],[[[1,"    "],[10,0],[14,0,"searching"],[12],[1,"\\n      "],[1,[34,3]],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"searching"],[12],[1,"\\n"],[41,[30,0,["search","activeGlobalSearchTerm"]],[[[1,"        "],[8,[39,4],null,[["@clearSearch"],[[30,12]]],null],[1,"\\n"]],[]],null],[1,"      "],[8,[39,5],null,[["@href"],[[30,0,["advancedSearchButtonHref"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]]],[13],[1,"\\n\\n"],[41,[28,[37,6],[[30,1],[28,[37,7],[[30,13]],null]],null],[[[1,"  "],[8,[39,8],null,null,null],[1,"\\n"]],[]],[[[41,[51,[30,11]],[[[1,"    "],[8,[39,10],null,[["@noResults","@results","@invalidTerm","@suggestionKeyword","@suggestionResults","@searchTopics","@inPMInboxContext","@triggerSearch","@updateTypeFilter","@closeSearchMenu","@searchTermChanged"],[[30,14],[30,15],[30,16],[30,17],[30,18],[30,13],[30,3],[30,8],[30,7],[30,10],[30,5]]],null],[1,"\\n"]],[]],null]],[]]]],["@inTopicContext","@clearTopicContext","@inPMInboxContext","@clearPMInboxContext","@searchTermChanged","@typeFilter","@updateTypeFilter","@triggerSearch","@fullSearch","@closeSearchMenu","@loading","@clearSearch","@includesTopics","@noResults","@results","@invalidTerm","@suggestionKeyword","@suggestionResults"],false,["if","d-button","search-menu/search-term","loading-spinner","search-menu/clear-button","search-menu/advanced-button","and","not","search-menu/browser-search-tip","unless","search-menu/results"]]',moduleName:"discourse/components/search-menu/menu-panel-contents.hbs",isStrictMode:!1})
let a=(o=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="search",n=this,(i=s)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get advancedSearchButtonHref(){return this.args.fullSearchUrl({expanded:!0})}},u=o.prototype,c="search",d=[r.inject],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),s=h,o)
var u,c,d,p,m,h
e.default=a,(0,t.setComponentTemplate)(l,a)})),define("discourse/components/search-menu/results",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@glimmer/tracking","@ember/object","discourse/components/search-menu/results/type/topic","discourse/components/search-menu/results/type/post","discourse/components/search-menu/results/type/user","discourse/components/search-menu/results/type/tag","discourse/components/search-menu/results/type/group","discourse/components/search-menu/results/type/category"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){var m,h,f
function g(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,i.createTemplateFactory)({id:"MHth+li7",block:'[[[10,0],[14,0,"results"],[12],[1,"\\n"],[41,[30,1],[[[1,"    "],[8,[39,1],null,[["@suggestionKeyword","@results","@closeSearchMenu","@searchTermChanged"],[[30,1],[30,2],[30,3],[30,4]]],null],[1,"\\n"]],[]],[[[41,[30,0,["termTooShort"]],[[[1,"    "],[10,0],[14,0,"no-results"],[12],[1,[28,[35,2],["search.too_short"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["noTopicResults"]],[[[1,"    "],[10,0],[14,0,"no-results"],[12],[1,[28,[35,2],["search.no_results"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["renderInitialOptions"]],[[[1,"    "],[8,[39,3],null,[["@closeSearchMenu","@searchTermChanged"],[[30,3],[30,4]]],null],[1,"\\n"]],[]],[[[41,[30,5],[[[41,[30,0,["resultTypesWithComponent"]],[[[1,"        "],[8,[39,4],null,[["@resultTypes","@topicResultsOnly","@closeSearchMenu"],[[30,0,["resultTypesWithComponent"]],true,[30,3]]],null],[1,"\\n        "],[8,[39,5],null,[["@updateTypeFilter","@triggerSearch","@resultTypes","@closeSearchMenu","@searchTermChanged"],[[30,6],[30,7],[30,0,["resultTypesWithComponent"]],[30,3],[30,4]]],null],[1,"\\n"]],[]],null]],[]],[[[41,[51,[30,8]],[[[1,"        "],[8,[39,3],null,[["@closeSearchMenu","@searchTermChanged"],[[30,3],[30,4]]],null],[1,"\\n"],[41,[30,0,["resultTypesWithComponent"]],[[[1,"          "],[8,[39,4],null,[["@resultTypes","@closeSearchMenu","@searchTermChanged"],[[30,0,["resultTypesWithComponent"]],[30,3],[30,4]]],null],[1,"\\n"]],[]],null]],[]],null]],[]]],[1,"  "]],[]]]],[]]]],[]]]],[]]],[13]],["@suggestionKeyword","@suggestionResults","@closeSearchMenu","@searchTermChanged","@searchTopics","@updateTypeFilter","@triggerSearch","@inPMInboxContext"],false,["if","search-menu/results/assistant","i18n","search-menu/results/initial-options","search-menu/results/types","search-menu/results/more-link","unless"]]',moduleName:"discourse/components/search-menu/results.hbs",isStrictMode:!1}),_={"search-result-category":p.default,"search-result-topic":l.default,"search-result-post":a.default,"search-result-user":u.default,"search-result-tag":c.default,"search-result-group":d.default}
let v=(m=class extends n.default{constructor(){super(...arguments),g(this,"search",h,this),g(this,"searchTopics",f,this)}get renderInitialOptions(){return!this.search.activeGlobalSearchTerm&&!this.args.inPMInboxContext}get noTopicResults(){return this.args.searchTopics&&this.args.noResults}get termTooShort(){return this.args.searchTopics&&this.args.invalidTerm}get resultTypesWithComponent(){let e=[]
return this.args.results.resultTypes?.map((t=>{e.push({...t,component:_[t.componentName]})})),e}updateSearchTopics(e){this.searchTopics=e}},h=b(m.prototype,"search",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=b(m.prototype,"searchTopics",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.searchTopics}}),b(m.prototype,"updateSearchTopics",[s.action],Object.getOwnPropertyDescriptor(m.prototype,"updateSearchTopics"),m.prototype),m)
e.default=v,(0,t.setComponentTemplate)(y,v)})),define("discourse/components/search-menu/results/assistant-item",["exports","@ember/component","@ember/template-factory","@glimmer/component","discourse-common/lib/get-url","@ember/service","@ember/object","discourse-common/utils/decorators","discourse/components/search-menu"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"TtsE/fiv",block:'[[[11,"li"],[24,0,"search-menu-assistant-item"],[4,[38,0],["keydown",[30,0,["onKeydown"]]],null],[4,[38,0],["click",[30,0,["onClick"]]],null],[12],[1,"\\n  "],[10,3],[14,0,"search-link"],[15,6,[30,0,["href"]]],[12],[1,"\\n    "],[10,1],[15,"aria-label",[28,[37,1],["search.title"],null]],[12],[1,"\\n      "],[1,[28,[35,2],[[28,[37,3],[[30,1],"search"],null]],null]],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["prefix"]],[[[1,"      "],[10,1],[14,0,"search-item-prefix"],[12],[1,"\\n        "],[1,[30,0,["prefix"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1,"      "],[10,1],[14,0,"label-suffix"],[12],[1,[28,[35,1],["search.in"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3],[[[1,"      "],[8,[39,5],null,[["@result"],[[30,3]]],null],[1,"\\n"],[41,[28,[37,6],[[30,4],[30,5]],null],[[[1,"        "],[10,1],[14,0,"search-item-tag"],[12],[1,"\\n          "],[1,[28,[35,2],["tag"],null]],[1,[30,4]],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,4],[[[41,[28,[37,6],[[30,5],[30,6,["length"]]],null],[[[1,"        "],[10,1],[14,0,"search-item-tag"],[12],[1,[30,0,["tagsSlug"]]],[13],[1,"\\n"]],[]],[[[1,"        "],[10,1],[14,0,"search-item-tag"],[12],[1,"\\n          "],[8,[39,7],null,[["@result"],[[30,4]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]]]],[]],[[[41,[30,7],[[[1,"      "],[10,1],[14,0,"search-item-user"],[12],[1,"\\n        "],[8,[39,8],null,[["@result"],[[30,7]]],null],[1,"\\n      "],[13],[1,"\\n    "]],[]],null]],[]]]],[]]],[1,"\\n    "],[10,1],[14,0,"search-item-slug"],[12],[1,"\\n"],[41,[30,8],[[[1,"        "],[10,1],[14,0,"label-suffix"],[12],[1,[30,8]],[13],[1,"\\n"]],[]],null],[1,"      "],[1,[30,9]],[1,"\\n    "],[13],[1,"\\n"],[41,[30,10],[[[1,"      "],[10,1],[14,0,"extra-hint"],[12],[1,"\\n        "],[1,[28,[35,1],["search.enter_hint"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@icon","@withInLabel","@category","@tag","@isIntersection","@additionalTags","@user","@suffix","@label","@extraHint"],false,["on","i18n","d-icon","or","if","search-menu/results/type/category","and","search-menu/results/type/tag","search-menu/results/type/user"]]',moduleName:"discourse/components/search-menu/results/assistant-item.hbs",isStrictMode:!1})
let b=(u=(0,l.debounce)(100),c=class extends n.default{constructor(){super(...arguments),m(this,"search",d,this),m(this,"appEvents",p,this),h(this,"icon",this.args.icon||"search")}get href(){let e="#"
return this.args.category?(e=this.args.category.url,this.args.tags&&this.args.isIntersection&&(e=(0,r.default)(`/tag/${this.args.tag}`))):this.args.tags&&this.args.isIntersection&&this.args.additionalTags?.length&&(e=(0,r.default)(`/tag/${this.args.tag}`)),e}get prefix(){let e=""
return"+"!==this.args.suggestionKeyword?(e=this.search.activeGlobalSearchTerm?.split(this.args.suggestionKeyword)[0].trim()||"",e.length&&(e=`${e} `)):e=this.search.activeGlobalSearchTerm,e}get tagsSlug(){if(this.args.tag&&this.args.additionalTags)return`tags:${[this.args.tag,...this.args.additionalTags].join("+")}`}onKeydown(e){if("Escape"===e.key)return(0,a.focusSearchButton)(),this.args.closeSearchMenu(),e.preventDefault(),!1
"Enter"===e.key&&this.itemSelected(),this.search.handleArrowUpOrDown(e),e.stopPropagation(),e.preventDefault()}onClick(e){return this.itemSelected(),e.preventDefault(),!1}itemSelected(){let e=""
e=this.args.slug?this.prefix.concat(this.args.slug):this.prefix.trim()
const t="topic"===this.search.searchContext?.type
this.args.searchTermChanged(e,{searchTopics:!t||this.search.activeGlobalSearchTerm,...t&&!this.args.searchAllTopics&&{setTopicContext:!0}}),(0,a.focusSearchInput)()}},d=f(c.prototype,"search",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=f(c.prototype,"appEvents",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(c.prototype,"onKeydown",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"onKeydown"),c.prototype),f(c.prototype,"onClick",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"onClick"),c.prototype),f(c.prototype,"itemSelected",[u],Object.getOwnPropertyDescriptor(c.prototype,"itemSelected"),c.prototype),c)
e.default=b,(0,t.setComponentTemplate)(g,b)})),define("discourse/components/search-menu/results/assistant",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s,l,a,u
function c(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addSearchSuggestion=g,e.default=void 0
const p=(0,i.createTemplateFactory)({id:"20Xja6Jr",block:'[[[10,"ul"],[14,0,"search-menu-assistant"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["suggestionType"]],"tagIntersection"],null],[[[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[1,"      "],[8,[39,4],null,[["@tag","@additionalTags","@category","@slug","@withInLabel","@isIntersection","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,2,["tagName"]],[30,2,["additionalTags"]],[30,2,["category"]],[30,3],[30,4],true,[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[2]],null]],[]],[[[41,[28,[37,1],[[30,0,["suggestionType"]],"categoryOrTag"],null],[[[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[41,[30,8,["model"]],[[[1,"        "],[8,[39,4],null,[["@category","@slug","@withInLabel","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,8,["model"]],[28,[37,5],[[30,0,["fullSlugForCategoryMap"]],[30,8,["model","id"]]],null],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,4],null,[["@tag","@slug","@withInLabel","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,8,["name"]],[28,[37,6],[[30,0,["prefix"]],"#",[30,8,["name"]]],null],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[]]]],[8]],null]],[]],[[[41,[28,[37,1],[[30,0,["suggestionType"]],"user"],null],[[[41,[30,0,["userMatchesInTopic"]],[[[1,"      "],[8,[39,4],null,[["@extraHint","@user","@slug","@suffix","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[true,[30,0,["user"]],[28,[37,6],[[30,0,["prefix"]],"@",[30,0,["user","username"]]],null],[28,[37,7],["search.in_topics_posts"],null],[30,5],[30,6],[30,7]]],null],[1,"\\n\\n      "],[8,[39,4],null,[["@user","@slug","@suffix","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,0,["user"]],[28,[37,6],[[30,0,["prefix"]],"@",[30,0,["user","username"]]],null],[28,[37,7],["search.in_this_topic"],null],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[]],[[[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[1,"        "],[8,[39,4],null,[["@user","@slug","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,9],[28,[37,6],[[30,0,["prefix"]],"@",[30,9,["username"]]],null],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[9]],null]],[]]]],[]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,["suggestionShortcuts"]]],null]],null],null,[[[1,"      "],[8,[39,4],null,[["@slug","@label","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[28,[37,6],[[30,0,["prefix"]],[30,10]],null],[30,10],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[10]],null],[1,"  "]],[]]]],[]]]],[]]],[13]],["@results","result","@slug","@withInLabel","@closeSearchMenu","@searchTermChanged","@suggestionKeyword","result","result","item"],false,["if","eq","each","-track-array","search-menu/results/assistant-item","get","concat","i18n"]]',moduleName:"discourse/components/search-menu/results/assistant.hbs",isStrictMode:!1}),m=["in:title","in:pinned","status:open","status:closed","status:public","status:noreplies","order:latest","order:views","order:likes","order:latest_topic"],h={"+":"tagIntersection","#":"categoryOrTag","@":"user"}
let f=(o=class extends n.default{constructor(){super(...arguments),c(this,"router",s,this),c(this,"currentUser",l,this),c(this,"siteSettings",a,this),c(this,"search",u,this),this.currentUser&&(g("in:likes"),g("in:bookmarks"),g("in:mine"),g("in:messages"),g("in:seen"),g("in:tracking"),g("in:unseen"),g("in:watching")),this.siteSettings.tagging_enabled&&(g("in:tagged"),g("in:untagged"))}get suggestionShortcuts(){const e=this.search.activeGlobalSearchTerm.split(" ").slice(-1)
return m.filter((t=>t.includes(e))).slice(0,8)}get userMatchesInTopic(){return 1===this.args.results.length&&this.router.currentRouteName.startsWith("topic.")}get suggestionType(){switch(this.args.suggestionKeyword){case"+":case"#":case"@":return h[this.args.suggestionKeyword]}}get prefix(){let e=""
return"+"!==this.args.suggestionKeyword?(e=this.args.slug?.split(this.args.suggestionKeyword)[0].trim()||"",e.length&&(e=`${e} `)):this.args.results.forEach((t=>{e=t.additionalTags?this.args.slug?.split(" ").slice(0,-1).join(" ").trim()||"":this.args.slug?.split("#")[0].trim()||"",e.length&&(e=`${e} `)})),e}get fullSlugForCategoryMap(){const e={}
return this.args.results.forEach((t=>{if(t.model){const 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]}},s=d(o.prototype,"router",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=d(o.prototype,"currentUser",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=d(o.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(o.prototype,"search",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)
function g(e){m.includes(e)||m.push(e)}e.default=f,(0,t.setComponentTemplate)(p,f)})),define("discourse/components/search-menu/results/blurb",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s,l
function a(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"TOdLszuN",block:'[[[10,1],[14,0,"blurb"],[12],[1,"\\n  "],[1,[28,[35,0],[[30,1,["created_at"]]],null]],[1,"\\n  "],[10,1],[12],[1," - "],[13],[1,"\\n"],[41,[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[[[1,"    "],[10,1],[12],[1,[30,1,["blurb"]]],[13],[1,"\\n"]],[]],[[[1,"    "],[10,1],[12],[1,"\\n      "],[8,[39,2],null,[["@string"],[[30,1,["blurb"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]]],[13]],["@result"],false,["format-age","if","search-menu/highlighted-search"]]',moduleName:"discourse/components/search-menu/results/blurb.hbs",isStrictMode:!1})
let d=(o=class extends n.default{constructor(){super(...arguments),a(this,"siteSettings",s,this),a(this,"site",l,this)}},s=u(o.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=u(o.prototype,"site",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)
e.default=d,(0,t.setComponentTemplate)(c,d)})),define("discourse/components/search-menu/results/initial-options",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","discourse/components/search-menu","discourse/components/search-menu/results/assistant-item","discourse/components/search-menu/results/assistant","I18n"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"nNtUVI6A",block:'[[[10,"ul"],[14,0,"search-menu-initial-options"],[12],[1,"\\n"],[41,[30,0,["termMatchesContextTypeKeyword"]],[[[1,"    "],[8,[39,1],null,[["@slug","@extraHint","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,0,["slug"]],true,[30,1],[30,2],[30,0,["contextTypeKeyword"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,2],[[30,0,["search","activeGlobalSearchTerm"]],[30,0,["search","searchContext"]]],null],[[[41,[30,0,["search","activeGlobalSearchTerm"]],[[[1,"        "],[8,[39,1],null,[["@suffix","@closeSearchMenu","@searchAllTopics","@extraHint","@searchTermChanged","@suggestionKeyword"],[[28,[37,3],["search.in_topics_posts"],null],[30,1],true,true,[30,2],[30,0,["contextTypeKeyword"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["search","searchContext"]],[[[1,"        "],[8,[30,0,["contextTypeComponent"]],null,[["@slug","@suggestionKeyword","@results","@withInLabel","@suffix","@label","@closeSearchMenu","@searchTermChanged"],[[30,0,["slug"]],[30,0,["contextTypeKeyword"]],[30,0,["initialResults"]],[30,0,["withInLabel"]],[30,0,["suffix"]],[30,0,["label"]],[30,1],[30,2]]],null],[1,"\\n"]],[]],null]],[]],[[[1,"      "],[8,[39,4],null,null,null],[1,"\\n\\n"],[41,[28,[37,5],[[30,0,["currentUser"]],[30,0,["siteSettings","log_search_queries"]]],null],[[[1,"        "],[8,[39,6],null,[["@closeSearchMenu","@searchTermChanged"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null]],[]]]],[]]],[13]],["@closeSearchMenu","@searchTermChanged"],false,["if","search-menu/results/assistant-item","or","i18n","search-menu/results/random-quick-tip","and","search-menu/results/recent-searches"]]',moduleName:"discourse/components/search-menu/results/initial-options.hbs",isStrictMode:!1}),g={topic:s.default,private_messages:s.default,category:l.default,tag:l.default,tagIntersection:l.default,user:s.default}
let b=(u=class extends n.default{constructor(){super(...arguments),m(this,"search",c,this),m(this,"siteSettings",d,this),m(this,"currentUser",p,this),(this.search.activeGlobalSearchTerm||this.search.searchContext)&&this.search.searchContext&&(this.contextTypeComponent=g[this.search.searchContext.type],this.attributesForSearchContextType(this.search.searchContext.type))}get termMatchesContextTypeKeyword(){return!!this.search.activeGlobalSearchTerm?.match(o.MODIFIER_REGEXP)}attributesForSearchContextType(e){switch(e){case"topic":this.topicContextType()
break
case"private_messages":this.privateMessageContextType()
break
case"category":this.categoryContextType()
break
case"tag":this.tagContextType()
break
case"tagIntersection":this.tagIntersectionContextType()
break
case"user":this.userContextType()}}topicContextType(){this.suffix=a.default.t("search.in_this_topic")}privateMessageContextType(){this.slug="in:messages",this.label="in:messages"}categoryContextType(){const e=this.search.searchContext.category,t=e.parentCategory?`#${e.parentCategory.slug}:${e.slug}`:`#${e.slug}`
this.slug=t,this.contextTypeKeyword="#",this.initialResults=[{model:this.search.searchContext.category}],this.withInLabel=!0}tagContextType(){this.slug=`#${this.search.searchContext.name}`,this.contextTypeKeyword="#",this.initialResults=[{name:this.search.searchContext.name}],this.withInLabel=!0}tagIntersectionContextType(){const e=this.search.searchContext
let t
if(e.additionalTags){t=`tags:${[e.tagId,...e.additionalTags].join("+")}`}else t=`#${e.tagId}`
let i={tagName:e.tagId,additionalTags:e.additionalTags}
if(e.category){const n=e.category.parentCategory?`#${e.category.parentCategory.slug}:${e.category.slug}`:`#${e.category.slug}`
i.categoryName=n,i.category=e.category,t+=` ${n}`}this.slug=t,this.contextTypeKeyword="+",this.initialResults=[i],this.withInLabel=!0}userContextType(){this.slug=`@${this.search.searchContext.user.username}`,this.suffix=a.default.t("search.in_posts_by",{username:this.search.searchContext.user.username})}},c=h(u.prototype,"search",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(u.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=h(u.prototype,"currentUser",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u)
e.default=b,(0,t.setComponentTemplate)(f,b)})),define("discourse/components/search-menu/results/more-link",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@ember/service","discourse/components/search-menu"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"bzHawItJ",block:'[[[41,[30,0,["topicResults"]],[[[1,"  "],[11,0],[24,0,"search-menu__show-more"],[4,[38,1],["keyup",[30,0,["onKeyup"]]],null],[12],[1,"\\n"],[41,[30,0,["moreUrl"]],[[[1,"      "],[10,3],[15,6,[30,0,["moreUrl"]]],[14,0,"filter search-link"],[12],[1,"\\n        "],[1,[28,[35,2],["more"],null]],[1,"...\\n      "],[13],[1,"\\n"]],[]],[[[41,[30,0,["topicResults","more"]],[[[1,"      "],[11,3],[24,0,"filter search-link"],[4,[38,1],["click",[28,[37,3],[[30,0,["moreOfType"]],[30,0,["topicResults","type"]]],null]],null],[12],[1,"\\n        "],[1,[28,[35,2],["more"],null]],[1,"...\\n      "],[13],[1,"\\n    "]],[]],null]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],[],false,["if","on","i18n","fn"]]',moduleName:"discourse/components/search-menu/results/more-link.hbs",isStrictMode:!1})
let d=(l=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="search",n=this,(i=a)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get topicResults(){return this.args.resultTypes.filter((e=>"topic"===e.type))[0]}get moreUrl(){return this.topicResults.moreUrl&&this.topicResults.moreUrl()}moreOfType(e){this.args.updateTypeFilter(e),this.args.triggerSearch()}onKeyup(e){if("Escape"===e.key)return(0,s.focusSearchButton)(),this.args.closeSearchMenu(),e.preventDefault(),!1
this.search.handleArrowUpOrDown(e)}},a=u(l.prototype,"search",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(l.prototype,"moreOfType",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"moreOfType"),l.prototype),u(l.prototype,"onKeyup",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"onKeyup"),l.prototype),l)
e.default=d,(0,t.setComponentTemplate)(c,d)})),define("discourse/components/search-menu/results/random-quick-tip",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/object","I18n","discourse/components/search-menu"],(function(e,t,i,n,r,o,s,l){var a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addQuickSearchRandomTip=function(e){m.includes(e)||m.push(e)},e.default=void 0,e.resetQuickSearchRandomTips=h
const d=(0,i.createTemplateFactory)({id:"blQcw2WA",block:'[[[10,"li"],[14,0,"search-random-quick-tip"],[12],[1,"\\n  "],[11,1],[16,0,[28,[37,0],["tip-label",[52,[30,0,["randomTip","clickable"]],"tip-clickable"]],null]],[24,"role","button"],[4,[38,2],["click",[30,0,["tipSelected"]]],null],[12],[1,"\\n    "],[1,[30,0,["randomTip","label"]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,1],[14,0,"tip-description"],[12],[1,"\\n    "],[1,[30,0,["randomTip","description"]]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["concat-class","if","on"]]',moduleName:"discourse/components/search-menu/results/random-quick-tip.hbs",isStrictMode:!1}),p=[{label:"#",description:s.default.t("search.tips.category_tag"),clickable:!0},{label:"@",description:s.default.t("search.tips.author"),clickable:!0},{label:"in:",description:s.default.t("search.tips.in"),clickable:!0},{label:"status:",description:s.default.t("search.tips.status"),clickable:!0},{label:s.default.t("search.tips.full_search_key",{modifier:"Ctrl"}),description:s.default.t("search.tips.full_search")},{label:"@me",description:s.default.t("search.tips.me")}]
let m=[]
function h(){m=[].concat(p)}h()
let f=(a=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="search",n=this,(i=u)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),this.randomTip=m[Math.floor(Math.random()*m.length)]}tipSelected(e){e.target.classList.contains("tip-clickable")&&(this.search.activeGlobalSearchTerm=this.randomTip.label,(0,l.focusSearchInput)(),e.stopPropagation(),e.preventDefault())}},u=c(a.prototype,"search",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c(a.prototype,"tipSelected",[o.action],Object.getOwnPropertyDescriptor(a.prototype,"tipSelected"),a.prototype),a)
e.default=f,(0,t.setComponentTemplate)(d,f)})),define("discourse/components/search-menu/results/recent-searches",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","discourse/models/user","@ember/object","discourse/components/search-menu"],(function(e,t,i,n,r,o,s,l){var a,u,c
function d(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"A3r+9xun",block:'[[[41,[30,0,["currentUser","recent_searches"]],[[[1,"  "],[10,0],[14,0,"search-menu-recent"],[12],[1,"\\n    "],[10,0],[14,0,"heading"],[12],[1,"\\n      "],[10,"h4"],[12],[1,[28,[35,1],["search.recent"],null]],[13],[1,"\\n      "],[8,[39,2],null,[["@title","@icon","@action","@class"],["search.clear_recent","times",[30,0,["clearRecent"]],"clear-recent-searches"]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["currentUser","recent_searches"]]],null]],null],null,[[[1,"      "],[8,[39,5],null,[["@icon","@label","@slug","@closeSearchMenu","@searchTermChanged"],["history",[30,1],[30,1],[30,2],[30,3]]],null],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["slug","@closeSearchMenu","@searchTermChanged"],false,["if","i18n","flat-button","each","-track-array","search-menu/results/assistant-item"]]',moduleName:"discourse/components/search-menu/results/recent-searches.hbs",isStrictMode:!1})
let h=(a=class extends n.default{constructor(){super(...arguments),d(this,"currentUser",u,this),d(this,"siteSettings",c,this),this.currentUser&&this.siteSettings.log_search_queries&&!this.currentUser.recent_searches?.length&&this.loadRecentSearches()}clearRecent(){return o.default.resetRecentSearches().then((e=>{e.success&&this.currentUser.recent_searches.clear()}))}onKeyup(e){if("Escape"===e.key)return(0,l.focusSearchButton)(),this.args.closeSearchMenu(),e.preventDefault(),!1
this.search.handleArrowUpOrDown(e)}loadRecentSearches(){o.default.loadRecentSearches().then((e=>{e.success&&e.recent_searches?.length&&this.currentUser.set("recent_searches",e.recent_searches)}))}},u=p(a.prototype,"currentUser",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(a.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(a.prototype,"clearRecent",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"clearRecent"),a.prototype),p(a.prototype,"onKeyup",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"onKeyup"),a.prototype),a)
e.default=h,(0,t.setComponentTemplate)(m,h)})),define("discourse/components/search-menu/results/type/category",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"aSaxH6Gy",block:'[[[1,[28,[35,0],[[30,1]],[["link","allowUncategorized"],[false,true]]]]],["@result"],false,["category-link"]]',moduleName:"discourse/components/search-menu/results/type/category.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/search-menu/results/type/group",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"iSqtTqod",block:'[[[10,0],[14,0,"group-result"],[12],[1,"\\n"],[41,[30,1,["flairUrl"]],[[[1,"    "],[8,[39,1],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,1,["name"]],[30,1,["flairUrl"]],[30,1,["flairBgColor"]],[30,1,["flairColor"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,2],["users"],null]],[1,"\\n"]],[]]],[1,"  "],[10,0],[14,0,"group-names"],[12],[1,"\\n    "],[10,1],[14,0,"name"],[12],[1,[28,[35,3],[[30,1,["fullName"]],[30,1,["name"]]],null]],[13],[1,"\\n"],[41,[30,1,["fullName"]],[[[1,"      "],[10,0],[14,0,"slug"],[12],[1,[30,1,["name"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@result"],false,["if","avatar-flair","d-icon","or"]]',moduleName:"discourse/components/search-menu/results/type/group.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/search-menu/results/type/post",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"b0ku8qNe",block:'[[[1,[28,[35,0],["search.post_format",[30,1]],null]],[1,"\\n"],[8,[39,1],null,[["@result"],[[30,1]]],null]],["@result"],false,["i18n","search-menu/results/blurb"]]',moduleName:"discourse/components/search-menu/results/type/post.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/search-menu/results/type/tag",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"Ygddpubc",block:'[[[1,[28,[35,0],["tag"],null]],[1,"\\n"],[1,[28,[35,1],[[28,[37,2],[[30,1,["id"]],[30,1]],null]],[["tagName"],["span"]]]]],["@result"],false,["d-icon","discourse-tag","or"]]',moduleName:"discourse/components/search-menu/results/type/tag.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/search-menu/results/type/topic",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"mB+hOO2p",block:'[[[10,1],[14,0,"topic"],[12],[1,"\\n  "],[10,1],[14,0,"first-line"],[12],[1,"\\n    "],[8,[39,0],null,[["@topic","@disableActions"],[[30,1,["topic"]],true]],null],[1,"\\n    "],[10,1],[14,0,"topic-title"],[15,"data-topic-id",[30,1,["topic","id"]]],[12],[1,"\\n"],[41,[28,[37,2],[[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[30,1,["topic_title_headline"]]],null],[[[1,"        "],[10,1],[12],[1,[28,[35,3],[[30,1,["topic_title_headline"]]],null]],[13],[1,"\\n"]],[]],[[[1,"        "],[8,[39,4],null,[["@string"],[[30,1,["topic","fancyTitle"]]]],null],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[14,0,"second-line"],[12],[1,"\\n    "],[1,[28,[35,5],[[30,1,["topic","category"]]],[["link"],[false]]]],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1,"      "],[1,[28,[35,6],[[30,1,["topic"]]],[["tagName"],["span"]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,7],null,[["@result"],[[30,1]]],null]],["@result"],false,["topic-status","if","and","replace-emoji","search-menu/highlighted-search","category-link","discourse-tags","search-menu/results/blurb"]]',moduleName:"discourse/components/search-menu/results/type/topic.hbs",isStrictMode:!1})
let a=(o=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="siteSettings",n=this,(i=s)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}},u=o.prototype,c="siteSettings",d=[r.inject],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),s=h,o)
var u,c,d,p,m,h
e.default=a,(0,t.setComponentTemplate)(l,a)})),define("discourse/components/search-menu/results/type/user",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"G+M7ryka",block:'[[[1,[28,[35,0],[[30,1]],[["imageSize","template","username"],["small",[30,1,["avatar_template"]],[30,1,["username"]]]]]],[1,"\\n"],[10,1],[14,0,"username"],[12],[1,"\\n  "],[1,[28,[35,1],[[30,1,["username"]]],null]],[1,"\\n"],[13],[1,"\\n"],[41,[30,1,["custom_data"]],[[[42,[28,[37,4],[[28,[37,4],[[30,1,["custom_data"]]],null]],null],null,[[[1,"    "],[10,1],[14,0,"custom-field"],[12],[1,[30,2,["name"]]],[1,": "],[1,[30,2,["value"]]],[13],[1,"\\n"]],[2]],null]],[]],null]],["@result","row"],false,["avatar","format-username","if","each","-track-array"]]',moduleName:"discourse/components/search-menu/results/type/user.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o}))
define("discourse/components/search-menu/results/types",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/object","discourse/components/search-menu"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"WtpULPuX",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["filteredResultTypes"]]],null]],null],null,[[[1,"  "],[10,0],[15,0,[30,1,["componentName"]]],[12],[1,"\\n    "],[10,"ul"],[14,0,"list"],[15,"aria-label",[28,[37,2],[[28,[37,3],["search.results"],null]," ",[30,1,["type"]]],null]],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["results"]]],null]],null],null,[[[1,"        "],[11,"li"],[24,0,"item"],[4,[38,4],["keydown",[30,0,["onKeydown"]]],null],[12],[1,"\\n          "],[10,3],[15,6,[28,[37,5],[[30,2,["url"]],[30,2,["path"]]],null]],[14,0,"search-link"],[12],[1,"\\n            "],[8,[30,1,["component"]],null,[["@result"],[[30,2]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[2]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[1]],null]],["resultType","result"],false,["each","-track-array","concat","i18n","on","or"]]',moduleName:"discourse/components/search-menu/results/types.hbs",isStrictMode:!1})
let d=(l=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="search",n=this,(i=a)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get filteredResultTypes(){return this.args.topicResultsOnly?this.args.resultTypes.filter((e=>"topic"===e.type)):this.args.resultTypes.filter((e=>"topic"!==e.type))}onKeydown(e){if("Escape"===e.key)return(0,s.focusSearchButton)(),this.args.closeSearchMenu(),e.preventDefault(),!1
this.search.handleResultInsertion(e),this.search.handleArrowUpOrDown(e)}},a=u(l.prototype,"search",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(l.prototype,"onKeydown",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"onKeydown"),l.prototype),l)
e.default=d,(0,t.setComponentTemplate)(c,d)})),define("discourse/components/search-menu/search-term",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@glimmer/tracking","discourse/lib/utilities","@ember/service","discourse/components/search-menu"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"Z3bfiFkh",block:'[[[11,"input"],[16,1,[30,0,["inputId"]]],[24,"autocomplete","off"],[16,2,[30,0,["search","activeGlobalSearchTerm"]]],[16,"placeholder",[28,[37,0],["search.title"],null]],[16,"aria-label",[28,[37,0],["search.title"],null]],[24,4,"text"],[4,[38,1],["keyup",[30,0,["onKeyup"]]],null],[4,[38,1],["input",[30,0,["updateSearchTerm"]]],null],[4,[38,2],[[30,0,["focus"]]],null],[12],[13]],[],false,["i18n","on","did-insert"]]',moduleName:"discourse/components/search-menu/search-term.hbs",isStrictMode:!1})
let g=(u=class extends n.default{constructor(){super(...arguments),m(this,"search",c,this),m(this,"appEvents",d,this),m(this,"lastEnterTimestamp",p,this)}get inputId(){return a.SEARCH_INPUT_ID}updateSearchTerm(e){this.parseAndUpdateSearchTerm(this.search.activeGlobalSearchTerm,e.target.value)}focus(e){e.focus(),e.select()}onKeyup(e){if("Escape"===e.key)return(0,a.focusSearchButton)(),this.args.closeSearchMenu(),e.preventDefault(),!1
if(this.search.handleArrowUpOrDown(e),"Enter"===e.key){const t=this.lastEnterTimestamp&&Date.now()-this.lastEnterTimestamp<15e3
e.ctrlKey||e.metaKey||(0,s.isiPad)()&&e.altKey||this.args.typeFilter!==a.DEFAULT_TYPE_FILTER&&t?(this.args.fullSearch(),this.args.closeSearchMenu()):(this.args.updateTypeFilter(null),this.args.triggerSearch()),this.lastEnterTimestamp=Date.now()}"Backspace"===e.key&&(e.target.value||(this.args.clearTopicContext(),this.args.clearPMInboxContext(),this.focus(e.target))),e.preventDefault()}parseAndUpdateSearchTerm(e,t){const i=t.replace(/[\u200B-\u200D\uFEFF]/,"")
i!==e&&this.args.searchTermChanged(i)}},c=h(u.prototype,"search",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(u.prototype,"appEvents",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=h(u.prototype,"lastEnterTimestamp",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h(u.prototype,"updateSearchTerm",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"updateSearchTerm"),u.prototype),h(u.prototype,"focus",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"focus"),u.prototype),h(u.prototype,"onKeyup",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"onKeyup"),u.prototype),u)
e.default=g,(0,t.setComponentTemplate)(f,g)})),define("discourse/components/search-result-entries",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"Q31gFmjo",block:'[[[10,0],[14,0,"fps-result-entries"],[14,"role","list"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["posts"]]],null]],null],null,[[[1,"    "],[8,[39,2],null,[["@post","@bulkSelectEnabled","@selected","@highlightQuery","@searchLogId"],[[30,1],[30,0,["bulkSelectEnabled"]],[30,0,["selected"]],[30,0,["highlightQuery"]],[30,0,["searchLogId"]]]],null],[1,"\\n"]],[1]],null],[13]],["post"],false,["each","-track-array","search-result-entry"]]',moduleName:"discourse/components/search-result-entries.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:""}))
e.default=r})),define("discourse/components/search-result-entry",["exports","@ember/component","@ember/template-factory","@ember/object","discourse/lib/search","discourse/lib/utilities"],(function(e,t,i,n,r,o){var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"q68ROFlI",block:'[[[10,0],[14,0,"author"],[12],[1,"\\n  "],[10,3],[15,6,[30,0,["post","userPath"]]],[15,"data-user-card",[30,0,["post","username"]]],[12],[1,"\\n    "],[1,[28,[35,0],[[30,0,["post"]]],[["imageSize"],["large"]]]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"fps-topic"],[12],[1,"\\n  "],[10,0],[14,0,"topic"],[12],[1,"\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[1,"      "],[8,[39,2],null,[["@selectedList","@selectedId","@class"],[[30,0,["selected"]],[30,0,["post","topic"]],"bulk-select"]],null],[1,"\\n"]],[]],null],[1,"\\n    "],[11,3],[16,6,[30,0,["post","url"]]],[16,0,[29,["search-link",[52,[30,0,["post","topic","visited"]]," visited"]]]],[24,"role","heading"],[24,"aria-level","2"],[4,[38,3],["click",[28,[37,4],[[30,0,["logClick"]],[30,0,["post","topic_id"]]],null]],null],[12],[1,"\\n      "],[1,[28,[35,5],["topic-status"],[["topic","showPrivateMessageIcon"],[[30,0,["post","topic"]],true]]]],[1,"\\n      "],[10,1],[14,0,"topic-title"],[12],[1,"\\n"],[41,[30,0,["post","useTopicTitleHeadline"]],[[[1,"          "],[1,[28,[35,6],[[30,0,["post","topicTitleHeadline"]]],null]],[1,"\\n"]],[]],[[[1,"          "],[8,[39,7],null,[["@highlight"],[[30,0,["highlightQuery"]]]],[["default"],[[[[1,"\\n            "],[1,[28,[35,6],[[30,0,["post","topic","fancyTitle"]]],null]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"search-category"],[12],[1,"\\n"],[41,[30,0,["post","topic","category","parentCategory"]],[[[1,"        "],[1,[28,[35,8],[[30,0,["post","topic","category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1,"      "],[1,[28,[35,8],[[30,0,["post","topic","category"]]],[["hideParent"],[true]]]],[1,"\\n"],[41,[30,0,["post","topic"]],[[[1,"        "],[1,[28,[35,9],[[30,0,["post","topic"]]],null]],[1,"\\n"]],[]],null],[1,"      "],[10,1],[12],[1,"\\n        "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-category","div",[28,[37,11],null,[["post"],[[30,0,["post"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"blurb container"],[12],[1,"\\n    "],[10,1],[14,0,"date"],[12],[1,"\\n      "],[1,[28,[35,12],[[30,0,["post","created_at"]]],[["format"],["tiny"]]]],[1,"\\n"],[41,[30,0,["post","blurb"]],[[[1,"        "],[10,1],[14,0,"separator"],[12],[1,"-"],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["post","blurb"]],[[[41,[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[[[1,"        "],[1,[28,[35,6],[[30,0,["post","blurb"]]],null]],[1,"\\n"]],[]],[[[1,"        "],[8,[39,7],null,[["@highlight"],[[30,0,["highlightQuery"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,6],[[30,0,["post","blurb"]]],null]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["showLikeCount"]],[[[41,[30,0,["post","like_count"]],[[[1,"      "],[10,1],[14,0,"like-count"],[12],[1,"\\n        "],[10,1],[14,0,"value"],[12],[1,[30,0,["post","like_count"]]],[13],[1,"\\n        "],[1,[28,[35,13],["heart"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]],null],[13]],[],false,["avatar","if","track-selected","on","fn","raw","html-safe","highlight-search","category-link","discourse-tags","plugin-outlet","hash","format-date","d-icon"]]',moduleName:"discourse/components/search-result-entry.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((a=s={tagName:"div",classNames:["fps-result"],classNameBindings:["bulkSelectEnabled"],attributeBindings:["role"],role:"listitem",logClick(e,t){if(t&&(0,o.modKeysPressed)(t).length>0)return!1
this.searchLogId&&e&&(0,r.logSearchLinkClick)({searchLogId:this.searchLogId,searchResultId:e,searchResultType:"topic"})}},u="logClick",c=[n.action],d=Object.getOwnPropertyDescriptor(s,"logClick"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/search-text-field",["exports","discourse-common/utils/decorators","I18n","discourse/components/text-field","discourse/lib/search"],(function(e,t,i,n,r){var o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u=n.default.extend((o=(0,t.default)("searchService.searchContextEnabled"),s=(0,t.on)("didInsertElement"),a(l={autocomplete:"off",placeholder:e=>e?"":i.default.t("search.full_page_title"),becomeFocused(){const e=$(this.element);(0,r.applySearchAutocomplete)(e,this.siteSettings),this.hasAutofocus&&($(window).scrollTop(0),e.focus())}},"placeholder",[o],Object.getOwnPropertyDescriptor(l,"placeholder"),l),a(l,"becomeFocused",[s],Object.getOwnPropertyDescriptor(l,"becomeFocused"),l),l))
e.default=u})),define("discourse/components/second-factor-form",["exports","@ember/component","@ember/template-factory","@ember/object","I18n","discourse/models/user","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s){var l,a,u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"Dk0RIaVF",block:'[[[10,0],[14,1,"second-factor"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[30,0,["secondFactorTitle"]]],[13],[1,"\\n"],[41,[30,0,["optionalText"]],[[[1,"    "],[10,2],[12],[1,[28,[35,1],[[30,0,["optionalText"]]],null]],[13],[1,"\\n"]],[]],null],[1,"  "],[10,2],[12],[1,[30,0,["secondFactorDescription"]]],[13],[1,"\\n  "],[18,1,null],[1,"\\n"],[41,[30,0,["showToggleMethodLink"]],[[[1,"    "],[10,2],[12],[1,"\\n      "],[11,3],[24,6,""],[24,0,"toggle-second-factor-method"],[4,[38,3],["click",[30,0,["toggleSecondFactorMethod"]]],null],[12],[1,[28,[35,4],[[30,0,["linkText"]]],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["&default"],false,["if","html-safe","yield","on","i18n"]]',moduleName:"discourse/components/second-factor-form.hbs",isStrictMode:!1})
var h=(0,t.setComponentTemplate)(m,t.default.extend((l=(0,s.default)("secondFactorMethod"),a=(0,s.default)("secondFactorMethod"),u=(0,s.default)("secondFactorMethod","isLogin"),c=(0,s.default)("backupEnabled","secondFactorMethod"),p(d={secondFactorTitle(e){switch(e){case o.SECOND_FACTOR_METHODS.TOTP:case o.SECOND_FACTOR_METHODS.SECURITY_KEY:return r.default.t("login.second_factor_title")
case o.SECOND_FACTOR_METHODS.BACKUP_CODE:return r.default.t("login.second_factor_backup_title")}},secondFactorDescription(e){switch(e){case o.SECOND_FACTOR_METHODS.TOTP:return r.default.t("login.second_factor_description")
case o.SECOND_FACTOR_METHODS.SECURITY_KEY:return r.default.t("login.security_key_description")
case o.SECOND_FACTOR_METHODS.BACKUP_CODE:return r.default.t("login.second_factor_backup_description")}},linkText:(e,t)=>t?e===o.SECOND_FACTOR_METHODS.TOTP?"login.second_factor_backup":"login.second_factor":e===o.SECOND_FACTOR_METHODS.TOTP?"user.second_factor_backup.use":"user.second_factor.use",showToggleMethodLink:(e,t)=>e&&t!==o.SECOND_FACTOR_METHODS.SECURITY_KEY,toggleSecondFactorMethod(e){e?.preventDefault()
const t=this.secondFactorMethod
this.set("secondFactorToken",""),t===o.SECOND_FACTOR_METHODS.TOTP?this.set("secondFactorMethod",o.SECOND_FACTOR_METHODS.BACKUP_CODE):this.set("secondFactorMethod",o.SECOND_FACTOR_METHODS.TOTP)}},"secondFactorTitle",[l],Object.getOwnPropertyDescriptor(d,"secondFactorTitle"),d),p(d,"secondFactorDescription",[a],Object.getOwnPropertyDescriptor(d,"secondFactorDescription"),d),p(d,"linkText",[u],Object.getOwnPropertyDescriptor(d,"linkText"),d),p(d,"showToggleMethodLink",[c],Object.getOwnPropertyDescriptor(d,"showToggleMethodLink"),d),p(d,"toggleSecondFactorMethod",[n.action],Object.getOwnPropertyDescriptor(d,"toggleSecondFactorMethod"),d),d)))
e.default=h})),define("discourse/components/second-factor-input",["exports","@ember/component","@ember/template-factory","discourse/models/user","discourse-common/utils/decorators","@ember/object"],(function(e,t,i,n,r,o){var s,l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"JL+fj278",block:'[[[8,[39,0],null,[["@value","@type","@pattern","@maxlength","@class","@id","@autocapitalize","@autocomplete","@autocorrect","@autofocus","@placeholder","@input"],[[30,0,["value"]],[30,0,["type"]],[30,0,["pattern"]],[30,0,["maxlength"]],"second-factor-token-input",[30,0,["inputId"]],"off","one-time-code","off","autofocus",[30,0,["placeholder"]],[28,[37,1],[[30,0],"onInput"],null]]],null]],[],false,["text-field","action"]]',moduleName:"discourse/components/second-factor-input.hbs",isStrictMode:!1})
var p=(0,t.setComponentTemplate)(d,t.default.extend((s=(0,r.default)("secondFactorMethod"),l=(0,r.default)("secondFactorMethod"),a=(0,r.default)("secondFactorMethod"),u={type:e=>e===n.SECOND_FACTOR_METHODS.TOTP?"tel":e===n.SECOND_FACTOR_METHODS.BACKUP_CODE?"text":void 0,pattern:e=>e===n.SECOND_FACTOR_METHODS.TOTP?"[0-9]{6}":e===n.SECOND_FACTOR_METHODS.BACKUP_CODE?"[a-z0-9]{16}":void 0,maxlength:e=>e===n.SECOND_FACTOR_METHODS.TOTP?"6":e===n.SECOND_FACTOR_METHODS.BACKUP_CODE?"32":void 0,onInput(){this.onTokenInput&&this.onTokenInput(...arguments)}},c(u,"type",[s],Object.getOwnPropertyDescriptor(u,"type"),u),c(u,"pattern",[l],Object.getOwnPropertyDescriptor(u,"pattern"),u),c(u,"maxlength",[a],Object.getOwnPropertyDescriptor(u,"maxlength"),u),c(u,"onInput",[o.action],Object.getOwnPropertyDescriptor(u,"onInput"),u),u)))
e.default=p})),define("discourse/components/security-key-dropdown",["exports","select-kit/components/dropdown-select-box","I18n","@ember/object"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({classNames:["security-key-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,n.computed)((function(){const e=[]
return e.push({id:"edit",icon:"pencil-alt",name:i.default.t("user.second_factor.edit")}),e.push({id:"disable",icon:"trash-alt",name:i.default.t("user.second_factor.disable")}),e})),actions:{onChange(e){switch(e){case"edit":this.editSecurityKey(this.securityKey)
break
case"disable":this.disableSingleSecondFactor(this.securityKey)}}}})
e.default=r})),define("discourse/components/security-key-form",["exports","@ember/component","@ember/template-factory","@ember/object","discourse/models/user"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"bgfmJjpU",block:'[[[10,0],[14,1,"security-key"],[12],[1,"\\n  "],[8,[39,0],null,[["@action","@icon","@id","@label","@type","@class"],[[30,0,["action"]],"key","security-key-authenticate-button","login.security_key_authenticate","button","btn btn-large btn-primary"]],null],[1,"\\n  "],[10,2],[12],[1,"\\n"],[41,[30,0,["otherMethodAllowed"]],[[[1,"      "],[11,3],[24,6,""],[24,0,"toggle-second-factor-method"],[4,[38,2],["click",[30,0,["useAnotherMethod"]]],null],[12],[1,[28,[35,3],["login.security_key_alternative"],null]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],[],false,["d-button","if","on","i18n"]]',moduleName:"discourse/components/security-key-form.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((l=o={useAnotherMethod(e){e?.preventDefault(),this.set("showSecurityKey",!1),this.set("showSecondFactor",!0),this.set("secondFactorMethod",r.SECOND_FACTOR_METHODS.TOTP)}},a="useAnotherMethod",u=[n.action],c=Object.getOwnPropertyDescriptor(o,"useAnotherMethod"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/selected-posts",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"dRYpa6qa",block:'[[[10,2],[12],[1,"\\n  "],[8,[39,0],null,[["@key","@count"],["topic.multi_select.description",[30,0,["selectedPostsCount"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canSelectAll"]],[[[1,"  "],[10,2],[12],[1,"\\n    "],[11,3],[24,0,"select-all"],[24,6,""],[4,[38,2],["click",[30,0,["selectAll"]]],null],[12],[1,"\\n      "],[1,[28,[35,3],["topic.multi_select.select_all"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeselectAll"]],[[[1,"  "],[10,2],[12],[1,"\\n    "],[11,3],[24,6,""],[4,[38,2],["click",[30,0,["deselectAll"]]],null],[12],[1,"\\n      "],[1,[28,[35,3],["topic.multi_select.deselect_all"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeleteSelected"]],[[[1,"  "],[8,[39,4],null,[["@action","@icon","@label","@class"],[[30,0,["deleteSelected"]],"far-trash-alt","topic.multi_select.delete","btn-danger"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMergeTopic"]],[[[1,"  "],[8,[39,4],null,[["@action","@icon","@label","@class"],[[28,[37,5],["moveToTopic"],null],"sign-out-alt","topic.move_to.action","btn-primary move-to-topic"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canChangeOwner"]],[[[1,"  "],[8,[39,4],null,[["@action","@icon","@label","@class"],[[28,[37,5],["changeOwner"],null],"user","topic.change_owner.action","btn-primary"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMergePosts"]],[[[1,"  "],[8,[39,4],null,[["@action","@icon","@label","@class"],[[30,0,["mergePosts"]],"arrows-alt-v","topic.merge_posts.action","btn-primary"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[14,0,"cancel"],[12],[1,"\\n  "],[11,3],[24,6,""],[4,[38,2],["click",[30,0,["toggleMultiSelect"]]],null],[12],[1,"\\n    "],[1,[28,[35,3],["topic.multi_select.cancel"],null]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["count-i18n","if","on","i18n","d-button","route-action"]]',moduleName:"discourse/components/selected-posts.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/share-panel",["exports","@ember/component","@ember/template-factory","I18n","discourse/lib/sharing","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/utilities","@ember/utils","discourse-common/lib/later"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"FxBrba7P",block:'[[[10,0],[14,0,"header"],[12],[1,"\\n  "],[10,"h3"],[14,0,"title"],[12],[1,[28,[35,0],[[30,0,["shareTitle"]]],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"body"],[12],[1,"\\n  "],[8,[39,1],null,[["@value","@class","@aria-label"],[[30,0,["shareUrl"]],"topic-share-url",[28,[37,2],["share.url"],null]]],null],[1,"\\n\\n  "],[10,0],[14,0,"sources"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["sources"]]],null]],null],null,[[[1,"      "],[8,[39,5],null,[["@source","@title","@action"],[[30,1],[30,0,["topic","title"]],[28,[37,6],[[30,0],"share"],null]]],null],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n"],[13]],["source"],false,["html-safe","d-textarea","I18n","each","-track-array","share-source","action"]]',moduleName:"discourse/components/share-panel.hbs",isStrictMode:!1})
var g=(0,t.setComponentTemplate)(f,t.default.extend((c=(0,s.default)("topic.{isPrivateMessage,invisible,category}"),d=(0,s.default)("type","topic.title"),p=(0,s.default)("panel.model.shareUrl","topic.shareUrl"),m={tagName:null,type:(0,o.alias)("panel.model.type"),topic:(0,o.alias)("panel.model.topic"),privateCategory:(0,o.alias)("panel.model.topic.category.read_restricted"),sources(e){const t=this.siteSettings.login_required||e&&e.isPrivateMessage||e&&e.invisible||this.privateCategory
return r.default.activeSources(this.siteSettings.share_links,t)},shareTitle:(e,t)=>(t=(0,l.escapeExpression)(t),n.default.t("share.topic_html",{topicTitle:t})),shareUrl(e,t){if(t=e||t,!(0,a.isEmpty)(t)){if(t.startsWith("/")){const e=window.location
t=`${e.protocol}//${e.host}${t}`}return encodeURI(t)}},didInsertElement(){this._super(...arguments),(0,u.default)((()=>{if(this.element){const e=this.element.querySelector(".topic-share-url")
e.style.height=e.scrollHeight+"px",e.focus(),e.setSelectionRange(0,this.shareUrl.length)}}),200)},actions:{share(e){r.default.shareSource(e,{url:this.shareUrl,title:this.get("topic.title")})}}},h(m,"sources",[c],Object.getOwnPropertyDescriptor(m,"sources"),m),h(m,"shareTitle",[d],Object.getOwnPropertyDescriptor(m,"shareTitle"),m),h(m,"shareUrl",[p],Object.getOwnPropertyDescriptor(m,"shareUrl"),m),m)))
e.default=g})),define("discourse/components/share-source",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"As1cmGYB",block:'[[[8,[39,0],null,[["@action","@class","@translatedTitle","@icon"],[[28,[37,1],[[30,0],"share",[30,0,["source"]]],null],[28,[37,2],["btn-default share-",[30,0,["source","id"]]],null],[30,0,["source","title"]],[52,[30,0,["source","icon"]],[30,0,["source","icon"]],[30,0,["source","htmlIcon"]]]]],null]],[],false,["d-button","action","concat","if"]]',moduleName:"discourse/components/share-source.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:"",actions:{share(e){this.action(e)}}}))
e.default=r})),define("discourse/components/shared-draft-controls",["exports","@ember/component","@ember/template-factory","I18n","discourse-common/utils/decorators","@ember/service"],(function(e,t,i,n,r,o){var s,l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"DQ9GAb6t",block:'[[[10,0],[14,0,"shared-draft-controls"],[12],[1,"\\n"],[41,[30,0,["publishing"]],[[[1,"    "],[1,[28,[35,1],["shared_drafts.publishing"],null]],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,1],["shared_drafts.notice"],null]],[1,"\\n\\n    "],[10,0],[14,0,"publish-field"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["shared_drafts.destination_category"],null]],[13],[1,"\\n      "],[8,[39,2],null,[["@value","@onChange"],[[30,0,["topic","destination_category_id"]],[28,[37,3],[[30,0],"updateDestinationCategory"],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"publish-field"],[12],[1,"\\n"],[41,[30,0,["validCategory"]],[[[1,"        "],[8,[39,4],null,[["@action","@label","@class","@icon"],[[28,[37,3],[[30,0],"publish"],null],"shared_drafts.publish","btn-primary publish-shared-draft","far-clipboard"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]]],[13]],[],false,["if","i18n","category-chooser","action","d-button"]]',moduleName:"discourse/components/shared-draft-controls.hbs",isStrictMode:!1})
var u,c,d,p,m,h,f=(0,t.setComponentTemplate)(a,t.default.extend((s=(0,r.default)("topic.destination_category_id"),l={tagName:"",dialog:(0,o.inject)(),publishing:!1,validCategory(e){return e&&e!==this.site.shared_drafts_category_id},actions:{updateDestinationCategory(e){return this.topic.updateDestinationCategory(e)},publish(){this.dialog.yesNoConfirm({message:n.default.t("shared_drafts.confirm_publish"),didConfirm:()=>{this.set("publishing",!0)
const e=this.topic.destination_category_id
return this.topic.publish().then((()=>{this.topic.setProperties({category_id:e,destination_category_id:void 0,is_shared_draft:!1})})).finally((()=>{this.set("publishing",!1)}))}})}}},u=l,c="validCategory",d=[s],p=Object.getOwnPropertyDescriptor(l,"validCategory"),m=l,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),l)))
e.default=f})),define("discourse/components/sidebar",["exports","@ember/component","@ember/template-factory","@glimmer/component","discourse-common/utils/decorators","@ember/service"],(function(e,t,i,n,r,o){var s,l,a,u
function c(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"n0DQ9nl8",block:'[[[8,[39,0],null,[["@pageClass","@id","@class","@scrollTop"],["has-sidebar","d-sidebar","sidebar-container",false]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@currentUser","@collapsableSections"],[[30,0,["currentUser"]],true]],null],[1,"\\n  "],[8,[39,2],null,null,null],[1,"\\n"]],[]]]]]],[],false,["d-section","sidebar/sections","sidebar/footer"]]',moduleName:"discourse/components/sidebar.hbs",isStrictMode:!1})
let m=(s=class extends n.default{constructor(){super(...arguments),c(this,"appEvents",l,this),c(this,"site",a,this),c(this,"currentUser",u,this),this.site.mobileView&&document.addEventListener("click",this.collapseSidebar)}collapseSidebar(e){let t=!1
const i=e.composedPath().some((e=>"sidebar-section-header-caret"!==e?.className&&["A","BUTTON"].includes(e.nodeName)?(t=!0,!0):e.className&&"sidebar-wrapper"===e.className))
!t&&i||this.args.toggleSidebar()}willDestroy(){this.site.mobileView&&document.removeEventListener("click",this.collapseSidebar)}},l=d(s.prototype,"appEvents",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=d(s.prototype,"site",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(s.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(s.prototype,"collapseSidebar",[r.bind],Object.getOwnPropertyDescriptor(s.prototype,"collapseSidebar"),s.prototype),s)
e.default=m,(0,t.setComponentTemplate)(p,m)})),define("discourse/components/sidebar/anonymous/categories-section",["exports","@ember/component","@ember/template-factory","discourse/components/sidebar/common/categories-section","discourse/models/category"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"ttiCJxGR",block:'[[[8,[39,0],null,[["@sectionName","@headerLinkText","@collapsable"],["categories",[28,[37,1],["sidebar.sections.categories.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["sectionLinks"]]],null]],null],null,[[[1,"    "],[8,[39,4],[[16,"data-category-id",[30,2,["category","id"]]]],[["@route","@title","@content","@currentWhen","@model","@prefixType","@prefixValue","@prefixColor"],[[30,2,["route"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["model"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n  "],[8,[39,5],null,null,null],[1,"\\n"]],[]]]]]],["@collapsable","sectionLink"],false,["sidebar/section","i18n","each","-track-array","sidebar/section-link","sidebar/common/all-categories-section-link"]]',moduleName:"discourse/components/sidebar/anonymous/categories-section.hbs",isStrictMode:!1})
class s extends n.default{constructor(){super(...arguments),this.siteSettings.default_navigation_menu_categories||(this.shouldSortCategoriesByDefault=!1)}get categories(){return this.siteSettings.default_navigation_menu_categories?r.default.findByIds(this.siteSettings.default_navigation_menu_categories.split("|").map((e=>parseInt(e,10)))):this.topSiteCategories}}e.default=s,(0,t.setComponentTemplate)(o,s)})),define("discourse/components/sidebar/anonymous/custom-sections",["exports","discourse/components/sidebar/common/custom-sections"],(function(e,t){function i(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(){super(...arguments),i(this,"anonymous",!0)}}e.default=n})),define("discourse/components/sidebar/anonymous/sections",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"714TLqzO",block:'[[[10,0],[14,0,"sidebar-sections sidebar-sections-anonymous"],[12],[1,"\\n  "],[8,[39,0],null,[["@collapsable"],[[30,1]]],null],[1,"\\n  "],[8,[39,1],null,[["@collapsable"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1,"    "],[8,[39,3],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[13]],["@collapsableSections"],false,["sidebar/anonymous/custom-sections","sidebar/anonymous/categories-section","if","sidebar/anonymous/tags-section"]]',moduleName:"discourse/components/sidebar/anonymous/sections.hbs",isStrictMode:!1})
let a=(o=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="siteSettings",n=this,(i=s)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}},u=o.prototype,c="siteSettings",d=[r.inject],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),s=h,o)
var u,c,d,p,m,h
e.default=a,(0,t.setComponentTemplate)(l,a)})),define("discourse/components/sidebar/anonymous/tags-section",["exports","@embroider/macros/es-compat","@ember/component","@ember/template-factory","@glimmer/tracking","@ember/service","discourse/components/sidebar/common/tags-section","discourse/lib/sidebar/user/tags-section/tag-section-link"],(function(e,t,i,n,r,o,s,l){var a,u,c,d
function p(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,n.createTemplateFactory)({id:"E+vHf6oG",block:'[[[41,[30,0,["displaySection"]],[[[1,"  "],[8,[39,1],null,[["@sectionName","@headerLinkText","@collapsable"],["tags",[28,[37,2],["sidebar.sections.tags.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["sectionLinks"]]],null]],null],null,[[[1,"      "],[8,[39,5],[[16,"data-tag-name",[30,2,["tagName"]]]],[["@route","@content","@currentWhen","@prefixType","@prefixValue","@prefixColor","@models"],[[30,2,["route"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["models"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n    "],[8,[39,6],null,null,null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null]],["@collapsable","sectionLink"],false,["if","sidebar/section","i18n","each","-track-array","sidebar/section-link","sidebar/common/all-tags-section-link"]]',moduleName:"discourse/components/sidebar/anonymous/tags-section.hbs",isStrictMode:!1})
let f=(0,t.default)(require("ember-cached-decorator-polyfill")).cached,g=(a=class extends s.default{constructor(){super(...arguments),p(this,"router",u,this),p(this,"topicTrackingState",c,this),p(this,"site",d,this)}get displaySection(){return this.site.anonymous_default_navigation_menu_tags?.length>0||this.topSiteTags?.length>0}get sectionLinks(){return(this.site.anonymous_default_navigation_menu_tags||this.topSiteTags).map((e=>new l.default({tagName:e,topicTrackingState:this.topicTrackingState})))}},u=m(a.prototype,"router",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(a.prototype,"topicTrackingState",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(a.prototype,"site",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(a.prototype,"sectionLinks",[f],Object.getOwnPropertyDescriptor(a.prototype,"sectionLinks"),a.prototype),a)
e.default=g,(0,i.setComponentTemplate)(h,g)})),define("discourse/components/sidebar/common/all-categories-section-link",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"JEMF5yGF",block:'[[[8,[39,0],null,[["@linkName","@content","@route","@prefixType","@prefixValue"],["all-categories",[28,[37,1],["sidebar.all_categories"],null],"discovery.categories","icon","list"]],null]],[],false,["sidebar/section-link","i18n"]]',moduleName:"discourse/components/sidebar/common/all-categories-section-link.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/sidebar/common/all-tags-section-link",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"oRRPUuRf",block:'[[[8,[39,0],null,[["@linkName","@content","@route","@prefixType","@prefixValue"],["all-tags",[28,[37,1],["sidebar.all_tags"],null],"tags","icon","list"]],null]],[],false,["sidebar/section-link","i18n"]]',moduleName:"discourse/components/sidebar/common/all-tags-section-link.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/sidebar/common/categories-section",["exports","@embroider/macros/es-compat","@glimmer/component","@glimmer/tracking","@ember/service","discourse/models/category","discourse/lib/sidebar/user/categories-section/category-section-link","discourse/lib/sidebar/helpers"],(function(e,t,i,n,r,o,s,l){var a,u,c,d
function p(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function m(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.TOP_SITE_CATEGORIES_TO_SHOW=void 0
let f=(0,t.default)(require("ember-cached-decorator-polyfill")).cached
e.TOP_SITE_CATEGORIES_TO_SHOW=5
let g=(a=class extends i.default{constructor(){super(...arguments),p(this,"topicTrackingState",u,this),p(this,"siteSettings",c,this),p(this,"site",d,this),m(this,"shouldSortCategoriesByDefault",!0)}get categories(){}get topSiteCategories(){return this.site.categoriesList.filter((e=>!e.parent_category_id&&(0,l.canDisplayCategory)(e.id,this.siteSettings))).slice(0,5)}get sortedCategories(){if(!this.shouldSortCategoriesByDefault)return this.categories
let e=[...this.site.categories]
this.siteSettings.fixed_category_positions||e.sort(((e,t)=>e.name.localeCompare(t.name)))
const t=this.categories.map((e=>e.id))
return o.default.sortCategories(e).reduce(((e,i)=>(t.includes(i.id)&&(0,l.canDisplayCategory)(i.id,this.siteSettings)&&e.push(i),e)),[])}get sectionLinks(){return this.sortedCategories.map((e=>new s.default({category:e,topicTrackingState:this.topicTrackingState,currentUser:this.currentUser})))}},u=h(a.prototype,"topicTrackingState",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=h(a.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(a.prototype,"site",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h(a.prototype,"sectionLinks",[f],Object.getOwnPropertyDescriptor(a.prototype,"sectionLinks"),a.prototype),a)
e.default=g})),define("discourse/components/sidebar/common/custom-section",["exports","@ember/component","@ember/template-factory","@ember/application","@glimmer/component","@glimmer/tracking","@ember/service","discourse/lib/sidebar/section","discourse/lib/sidebar/user/community-section/admin-section","discourse/lib/sidebar/common/community-section/section"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f,g
function b(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function y(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function _(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v=(0,i.createTemplateFactory)({id:"U1A5zcKy",block:'[[[8,[39,0],null,[["@sectionName","@headerLinkText","@indicatePublic","@collapsable","@headerActions","@headerActionsIcon","@class","@hideSectionHeader"],[[30,0,["section","slug"]],[30,0,["section","decoratedTitle"]],[30,0,["section","indicatePublic"]],[30,1],[30,0,["section","headerActions"]],[30,0,["section","headerActionIcon"]],[30,0,["section","dragCss"]],[30,0,["section","hideSectionHeader"]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["section","links"]]],null]],null],null,[[[41,[30,2,["externalOrFullReload"]],[[[1,"      "],[8,[39,4],[[4,[52,[30,0,["section","reorderable"]],[50,[28,[37,7],["modifier:draggable"],null],2,null,[["didStartDrag","didEndDrag","dragMove"],[[30,2,["didStartDrag"]],[30,2,["didEndDrag"]],[30,2,["dragMove"]]]]]],null,null]],[["@shouldDisplay","@linkName","@content","@prefixType","@prefixValue","@fullReload","@href","@class"],[[30,2,["shouldDisplay"]],[30,2,["name"]],[28,[37,5],[[30,2,["text"]]],null],"icon",[30,2,["prefixValue"]],[30,2,["fullReload"]],[30,2,["value"]],[30,2,["linkDragCss"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,4],[[4,[52,[30,0,["section","reorderable"]],[50,[28,[37,7],["modifier:draggable"],null],2,null,[["didStartDrag","didEndDrag","dragMove"],[[30,2,["didStartDrag"]],[30,2,["didEndDrag"]],[30,2,["dragMove"]]]]]],null,null]],[["@shouldDisplay","@href","@title","@linkName","@route","@model","@models","@query","@content","@badgeText","@prefixType","@prefixValue","@suffixCSSClass","@suffixValue","@suffixType","@currentWhen","@class"],[[30,2,["shouldDisplay"]],[30,2,["href"]],[30,2,["title"]],[30,2,["name"]],[30,2,["route"]],[30,2,["model"]],[30,2,["models"]],[30,2,["query"]],[28,[37,5],[[30,2,["text"]]],null],[30,2,["badgeText"]],"icon",[30,2,["prefixValue"]],[30,2,["suffixCSSClass"]],[30,2,["suffixValue"]],[30,2,["suffixType"]],[30,2,["currentWhen"]],[30,2,["linkDragCss"]]]],null],[1,"\\n"]],[]]]],[2]],null],[1,"\\n"],[41,[30,0,["section","moreLinks"]],[[[41,[30,0,["navigationMenu","isDesktopDropdownMode"]],[[[42,[28,[37,2],[[28,[37,2],[[30,0,["section","moreLinks"]]],null]],null],null,[[[1,"        "],[8,[39,8],null,[["@sectionLink"],[[30,3]]],null],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,0,["section","moreSectionButtonAction"]],[[[1,"        "],[8,[39,9],null,[["@action","@icon","@text"],[[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonIcon"]],[30,0,["section","moreSectionButtonText"]]]],null],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["section","moreLinks"]],[[[1,"      "],[8,[39,10],null,[["@sectionLinks","@moreButtonAction","@moreButtonText","@moreButtonIcon"],[[30,0,["section","moreLinks"]],[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonText"]],[30,0,["section","moreSectionButtonIcon"]]]],null],[1,"\\n    "]],[]],null]],[]]]],[]],null]],[]]]]]],["@collapsable","link","sectionLink"],false,["sidebar/section","each","-track-array","if","sidebar/section-link","replace-emoji","modifier","-resolve","sidebar/more-section-link","sidebar/section-link-button","sidebar/more-section-links"]]',moduleName:"discourse/components/sidebar/common/custom-section.hbs",isStrictMode:!1})
let w=(g=new WeakSet,c=class extends r.default{constructor(){super(...arguments),y(this,g),b(this,"currentUser",d,this),b(this,"navigationMenu",p,this),b(this,"site",m,this),b(this,"siteSettings",h,this),b(this,"section",f,this),this.section=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}(this,g,k).call(this)}willDestroy(){this.section.teardown?.(),super.willDestroy()}},d=_(c.prototype,"currentUser",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=_(c.prototype,"navigationMenu",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=_(c.prototype,"site",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=_(c.prototype,"siteSettings",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=_(c.prototype,"section",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c)
function k(){let e=l.default
if("community"===this.args.sectionData.section_type)e=this.currentUser?.admin?a.default:u.default
return new e({section:this.args.sectionData,owner:(0,n.getOwner)(this)})}e.default=w,(0,t.setComponentTemplate)(v,w)})),define("discourse/components/sidebar/common/custom-sections",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s,l,a,u,c,d,p
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"XOSm4xre",block:'[[[10,0],[14,0,"sidebar-custom-sections"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["sections"]]],null]],null],null,[[[1,"    "],[8,[39,2],null,[["@sectionData","@collapsable"],[[30,1],[30,2]]],null],[1,"\\n"]],[1]],null],[13]],["section","@collapsable"],false,["each","-track-array","sidebar/common/custom-section"]]',moduleName:"discourse/components/sidebar/common/custom-sections.hbs",isStrictMode:!1})
let b=(o=class extends n.default{constructor(){super(...arguments),m(this,"currentUser",s,this),m(this,"router",l,this),m(this,"messageBus",a,this),m(this,"appEvents",u,this),m(this,"topicTrackingState",c,this),m(this,"site",d,this),m(this,"siteSettings",p,this),h(this,"anonymous",!1)}get sections(){return this.anonymous?this.site.anonymous_sidebar_sections:this.currentUser.sidebarSections}},s=f(o.prototype,"currentUser",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=f(o.prototype,"router",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=f(o.prototype,"messageBus",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=f(o.prototype,"appEvents",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(o.prototype,"topicTrackingState",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=f(o.prototype,"site",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=f(o.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)
e.default=b,(0,t.setComponentTemplate)(g,b)})),define("discourse/components/sidebar/common/tags-section",["exports","@glimmer/component","@ember/service"],(function(e,t,i){var n,r
function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.TOP_SITE_TAGS_TO_SHOW=void 0
e.TOP_SITE_TAGS_TO_SHOW=5
let s=(n=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="site",n=this,(i=r)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),o(this,"topSiteTags",[]),this.site.top_tags?.length>0&&this.site.top_tags.splice(0,5).forEach((e=>{this.topSiteTags.push(e)}))}},l=n.prototype,a="site",u=[i.inject],c={configurable:!0,enumerable:!0,writable:!0,initializer:null},p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),r=p,n)
var l,a,u,c,d,p
e.default=s})),define("discourse/components/sidebar/edit-navigation-menu/categories-modal",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/service","@glimmer/component","@glimmer/tracking","discourse-common/config/environment","discourse-common/lib/debounce","discourse/lib/ajax-error","discourse/models/category"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m,h,f,g,b,y,_,v,w
function k(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function x(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function P(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function O(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function T(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const S=(0,i.createTemplateFactory)({id:"BRGNvUnh",block:'[[[8,[39,0],null,[["@class","@title","@disableSaveButton","@save","@showResetDefaultsButton","@resetToDefaults","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@resetFilter","@filterSelected","@filterUnselected","@closeModal"],["sidebar__edit-navigation-menu__categories-modal","sidebar.categories_form_modal.title",[30,0,["saving"]],[30,0,["save"]],[28,[37,1],[[30,0,["siteSettings","default_navigation_menu_categories","length"]],0],null],[30,0,["resetToDefaults"]],[30,0,["deselectAll"]],[28,[37,2],["sidebar.categories_form_modal.subtitle.text"],null],[28,[37,2],["sidebar.categories_form_modal.filter_placeholder"],null],[30,0,["onFilterInput"]],[30,0,["resetFilter"]],[30,0,["filterSelected"]],[30,0,["filterUnselected"]],[30,1]]],[["default"],[[[[1,"\\n  "],[10,"form"],[14,0,"sidebar-categories-form"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["filteredCategoriesGroupings","length"]],0],null],[[[42,[28,[37,5],[[28,[37,5],[[30,0,["filteredCategoriesGroupings"]]],null]],null],null,[[[1,"        "],[10,0],[14,0,"sidebar-categories-form__row"],[15,5,[28,[37,6],[[28,[37,7],[[30,2,["0","color"]],"left"],null]],null]],[12],[1,"\\n\\n"],[42,[28,[37,5],[[28,[37,5],[[30,2]],null]],null],null,[[[1,"            "],[10,0],[14,0,"sidebar-categories-form__category-row"],[15,"data-category-id",[30,3,["id"]]],[15,"data-category-level",[30,3,["level"]]],[12],[1,"\\n              "],[10,"label"],[14,0,"sidebar-categories-form__category-label"],[15,"for",[28,[37,8],["sidebar-categories-form__input--",[30,3,["id"]]],null]],[12],[1,"\\n                "],[10,0],[14,0,"sidebar-categories-form__category-wrapper"],[12],[1,"\\n                  "],[10,0],[14,0,"sidebar-categories-form__category-badge"],[12],[1,"\\n                    "],[1,[28,[35,9],[[30,3]],null]],[1,"\\n                  "],[13],[1,"\\n"],[41,[51,[30,3,["parentCategory"]]],[[[1,"                    "],[10,0],[14,0,"sidebar-categories-form__category-description"],[12],[1,"\\n                      "],[1,[28,[35,11],[[30,3,["description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n\\n                "],[8,[39,12],[[16,1,[28,[37,8],["sidebar-categories-form__input--",[30,3,["id"]]],null]],[24,0,"sidebar-categories-form__input"],[16,"disabled",[28,[37,13],[[28,[37,14],[[30,0,["filteredCategoryIds"]],[30,3,["id"]]],null]],null]],[4,[38,15],["click",[28,[37,16],[[30,0],"toggleCategory",[30,3,["id"]]],null]],null]],[["@type","@checked"],["checkbox",[28,[37,14],[[30,0,["selectedSidebarCategoryIds"]],[30,3,["id"]]],null]]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[3]],null],[1,"        "],[13],[1,"\\n"]],[2]],null]],[]],[[[1,"      "],[10,0],[14,0,"sidebar-categories-form__no-categories"],[12],[1,"\\n        "],[1,[28,[35,2],["sidebar.categories_form_modal.no_categories"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]]]]]],["@closeModal","categories","category"],false,["sidebar/edit-navigation-menu/modal","gt","i18n","if","each","-track-array","html-safe","border-color","concat","category-badge","unless","dir-span","input","not","includes","on","action"]]',moduleName:"discourse/components/sidebar/edit-navigation-menu/categories-modal.hbs",isStrictMode:!1})
var j=(0,t.setComponentTemplate)(S,(v=new WeakSet,w=new WeakSet,d=class extends o.default{constructor(){super(...arguments),x(this,w),x(this,v),k(this,"currentUser",p,this),k(this,"site",m,this),k(this,"siteSettings",h,this),k(this,"filter",f,this),k(this,"filteredCategoryIds",g,this),k(this,"onlySelected",b,this),k(this,"onlyUnselected",y,this),k(this,"selectedSidebarCategoryIds",_,this),P(this,"categoryGroupings",[])
let e=[...this.site.categories]
this.siteSettings.fixed_category_positions||e.sort(((e,t)=>e.name.localeCompare(t.name))),c.default.sortCategories(e).reduce(((e,t,i,n)=>{if(t.isUncategorizedCategory)return e
e.push(t)
const r=n[i+1]
return r&&0!==r.level?e:(this.categoryGroupings.push(e),[])}),[])}get filteredCategoriesGroupings(){const e=new Set,t=this.categoryGroupings.reduce(((t,i)=>{const n=new Set,r=t=>{O(this,v,C).call(this,t)&&(t.parentCategory?.parentCategory&&n.add(t.parentCategory.parentCategory),t.parentCategory&&n.add(t.parentCategory),e.add(t.id),n.add(t))}
return i.forEach((e=>{this.onlySelected?this.selectedSidebarCategoryIds.includes(e.id)&&r(e):this.onlyUnselected&&this.selectedSidebarCategoryIds.includes(e.id)||r(e)})),n.size>0&&t.push(Array.from(n)),t}),[])
return this.filteredCategoryIds=Array.from(e),t}resetFilter(){this.onlySelected=!1,this.onlyUnselected=!1}filterSelected(){this.onlySelected=!0,this.onlyUnselected=!1}filterUnselected(){this.onlySelected=!1,this.onlyUnselected=!0}onFilterInput(e){(0,a.default)(this,O(this,w,z),e,l.INPUT_DELAY)}deselectAll(){this.selectedSidebarCategoryIds.clear()}toggleCategory(e){this.selectedSidebarCategoryIds.includes(e)?this.selectedSidebarCategoryIds.removeObject(e):this.selectedSidebarCategoryIds.addObject(e)}resetToDefaults(){this.selectedSidebarCategoryIds=this.siteSettings.default_navigation_menu_categories.split("|").map((e=>parseInt(e,10)))}save(){this.saving=!0
const e=this.currentUser.sidebar_category_ids
this.currentUser.set("sidebar_category_ids",this.selectedSidebarCategoryIds),this.currentUser.save(["sidebar_category_ids"]).then((()=>{this.args.closeModal()})).catch((t=>{this.currentUser.set("sidebar_category_ids",e),(0,u.popupAjaxError)(t)})).finally((()=>{this.saving=!1}))}},p=T(d.prototype,"currentUser",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=T(d.prototype,"site",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=T(d.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=T(d.prototype,"filter",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),g=T(d.prototype,"filteredCategoryIds",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=T(d.prototype,"onlySelected",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=T(d.prototype,"onlyUnselected",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=T(d.prototype,"selectedSidebarCategoryIds",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[...this.currentUser.sidebar_category_ids]}}),T(d.prototype,"resetFilter",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"resetFilter"),d.prototype),T(d.prototype,"filterSelected",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"filterSelected"),d.prototype),T(d.prototype,"filterUnselected",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"filterUnselected"),d.prototype),T(d.prototype,"onFilterInput",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"onFilterInput"),d.prototype),T(d.prototype,"deselectAll",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"deselectAll"),d.prototype),T(d.prototype,"toggleCategory",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"toggleCategory"),d.prototype),T(d.prototype,"resetToDefaults",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"resetToDefaults"),d.prototype),T(d.prototype,"save",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"save"),d.prototype),d))
function C(e){return 0===this.filter.length||e.nameLower.includes(this.filter)}function z(e){this.filter=e.toLowerCase()}e.default=j})),define("discourse/components/sidebar/edit-navigation-menu/modal",["exports","@ember/component","@ember/template-factory","I18n","@glimmer/component","@glimmer/tracking","@ember/object"],(function(e,t,i,n,r,o,s){var l,a,u
function c(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function d(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"nvspjlfP",block:'[[[8,[39,0],[[16,0,[28,[37,1],["sidebar__edit-navigation-menu__modal",[30,1]],null]]],[["@title","@closeModal"],[[28,[37,2],[[30,2]],null],[30,3]]],[["headerBelowTitle","belowHeader","body","footer"],[[[[1,"\\n    "],[10,2],[14,0,"sidebar__edit-navigation-menu__deselect-wrapper"],[12],[1,"\\n      "],[8,[39,3],null,[["@class","@label","@ariaLabel","@action"],["btn-flat sidebar__edit-navigation-menu__deselect-button","sidebar.edit_navigation_modal_form.deselect_button_text","sidebar.edit_navigation_modal_form.deselect_button_text",[30,4]]],null],[1,"\\n\\n      "],[1,[30,5]],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter"],[12],[1,"\\n      "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter-input"],[12],[1,"\\n        "],[1,[28,[35,4],["search"],[["class"],["sidebar__edit-navigation-menu__filter-input-icon"]]]],[1,"\\n\\n        "],[8,[39,5],[[24,0,"sidebar__edit-navigation-menu__filter-input-field"],[16,"placeholder",[30,6]],[24,"autofocus","true"],[4,[38,6],["input",[28,[37,7],[[30,0],[30,7]],[["value"],["target.value"]]]],null]],[["@type","@value"],["text",[30,0,["filter"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter-dropdown-wrapper"],[12],[1,"\\n        "],[8,[39,8],null,[["@class","@value","@content","@onChange","@options"],["sidebar__edit-navigation-menu__filter-dropdown",[30,0,["filterDropdownValue"]],[30,0,["filterDropdownContent"]],[30,0,["onFilterDropdownChange"]],[28,[37,9],null,[["showCaret"],[true]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[18,12,null],[1,"\\n  "]],[]],[[[1,"\\n    "],[10,0],[14,0,"sidebar__edit-navigation-menu__footer"],[12],[1,"\\n      "],[8,[39,3],null,[["@class","@label","@disabled","@action"],["btn-primary sidebar__edit-navigation-menu__save-button","save",[30,8],[30,9]]],null],[1,"\\n\\n"],[41,[30,10],[[[1,"        "],[8,[39,3],null,[["@icon","@class","@label","@disabled","@action"],["undo","btn-flat btn-text sidebar__edit-navigation-menu__reset-defaults-button","sidebar.edit_navigation_modal_form.reset_to_defaults",[30,8],[30,11]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]]],["@class","@title","@closeModal","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@saving","@save","@showResetDefaultsButton","@resetToDefaults","&default"],false,["d-modal","concat-class","i18n","d-button","d-icon","input","on","action","dropdown-select-box","hash","yield","if"]]',moduleName:"discourse/components/sidebar/edit-navigation-menu/modal.hbs",isStrictMode:!1})
var h=(0,t.setComponentTemplate)(m,(l=class extends r.default{constructor(){super(...arguments),c(this,"filter",a,this),c(this,"filterDropdownValue",u,this),d(this,"filterDropdownContent",[{id:"all",name:n.default.t("sidebar.edit_navigation_modal_form.filter_dropdown.all")},{id:"selected",name:n.default.t("sidebar.edit_navigation_modal_form.filter_dropdown.selected")},{id:"unselected",name:n.default.t("sidebar.edit_navigation_modal_form.filter_dropdown.unselected")}])}onFilterInput(e){this.args.onFilterInput(e)}onFilterDropdownChange(e){switch(this.filterDropdownValue=e,e){case"all":this.args.resetFilter()
break
case"selected":this.args.filterSelected()
break
case"unselected":this.args.filterUnselected()}}},a=p(l.prototype,"filter",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),u=p(l.prototype,"filterDropdownValue",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"all"}}),p(l.prototype,"onFilterInput",[s.action],Object.getOwnPropertyDescriptor(l.prototype,"onFilterInput"),l.prototype),p(l.prototype,"onFilterDropdownChange",[s.action],Object.getOwnPropertyDescriptor(l.prototype,"onFilterDropdownChange"),l.prototype),l))
e.default=h})),define("discourse/components/sidebar/edit-navigation-menu/tags-modal",["exports","@ember/component","@ember/template-factory","@glimmer/component","@glimmer/tracking","@ember/service","@ember/object","discourse/lib/ajax-error","discourse-common/config/environment","discourse-common/lib/debounce"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f,g,b,y,_,v,w
function k(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function x(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function P(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function O(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const T=(0,i.createTemplateFactory)({id:"Z7LdW6RB",block:'[[[8,[39,0],null,[["@class","@title","@saving","@save","@showResetDefaultsButton","@resetToDefaults","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@resetFilter","@filterSelected","@filterUnselected","@closeModal"],["sidebar__edit-navigation-menu__tags-modal","sidebar.tags_form_modal.title",[30,0,["saving"]],[30,0,["save"]],[28,[37,1],[[30,0,["siteSettings","default_navigation_menu_tags","length"]],0],null],[30,0,["resetToDefaults"]],[30,0,["deselectAll"]],[28,[37,2],["sidebar.tags_form_modal.subtitle.text"],null],[28,[37,2],["sidebar.tags_form_modal.filter_placeholder"],null],[30,0,["onFilterInput"]],[30,0,["resetFilter"]],[30,0,["filterSelected"]],[30,0,["filterUnselected"]],[30,1]]],[["default"],[[[[1,"\\n  "],[10,"form"],[14,0,"sidebar-tags-form"],[12],[1,"\\n"],[41,[30,0,["tagsLoading"]],[[[1,"      "],[10,0],[14,0,"spinner"],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["tags","length"]],0],null],[[[42,[28,[37,5],[[28,[37,5],[[30,0,["tags"]]],null]],null],null,[[[1,"          "],[11,0],[24,0,"sidebar-tags-form__tag"],[16,"data-tag-name",[30,2,["name"]]],[4,[38,6],[[30,0,["didInsertTag"]]],null],[12],[1,"\\n            "],[8,[39,7],[[16,1,[28,[37,8],["sidebar-tags-form__input--",[30,2,["name"]]],null]],[24,0,"sidebar-tags-form__input"],[4,[38,10],["click",[28,[37,11],[[30,0],"toggleTag",[30,2,["name"]]],null]],null]],[["@type","@checked"],["checkbox",[28,[37,9],[[30,0,["selectedTags"]],[30,2,["name"]]],null]]],null],[1,"\\n\\n            "],[10,"label"],[14,0,"sidebar-tags-form__tag-label"],[15,"for",[28,[37,8],["sidebar-tags-form__input--",[30,2,["name"]]],null]],[12],[1,"\\n              "],[10,2],[12],[1,"\\n                "],[10,1],[14,0,"sidebar-tags-form__tag-label-name"],[12],[1,"\\n                  "],[1,[30,2,["name"]]],[1,"\\n                "],[13],[1,"\\n\\n                "],[10,1],[14,0,"sidebar-tags-form__tag-label-count"],[12],[1,"\\n                  ("],[1,[30,2,["topic_count"]]],[1,")\\n                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[2]],null]],[]],[[[1,"        "],[10,0],[14,0,"sidebar-tags-form__no-tags"],[12],[1,"\\n          "],[1,[28,[35,2],["sidebar.tags_form_modal.no_tags"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]]]],[]]],[1,"  "],[13],[1,"\\n\\n  "],[8,[39,12],null,[["@condition"],[[30,0,["tags","loadingMore"]]]],null],[1,"\\n"]],[]]]]]],["@closeModal","tag"],false,["sidebar/edit-navigation-menu/modal","gt","i18n","if","each","-track-array","did-insert","input","concat","includes","on","action","conditional-loading-spinner"]]',moduleName:"discourse/components/sidebar/edit-navigation-menu/tags-modal.hbs",isStrictMode:!1})
var S=(0,t.setComponentTemplate)(T,(v=new WeakSet,w=new WeakSet,c=class extends n.default{constructor(){super(...arguments),x(this,w),x(this,v),k(this,"currentUser",d,this),k(this,"siteSettings",p,this),k(this,"store",m,this),k(this,"filter",h,this),k(this,"onlySelected",f,this),k(this,"onlyUnSelected",g,this),k(this,"tags",b,this),k(this,"tagsLoading",y,this),k(this,"selectedTags",_,this),P(this,v,j).call(this)}didInsertTag(e){e.dataset.tagName===this.tags.content[this.tags.content.length-1].name&&(this.observer?this.observer.disconnect():this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&this.tags.loadMore()}))}),{root:document.querySelector(".modal-body"),threshold:1}),this.observer.observe(e))}resetFilter(){this.onlySelected=!1,this.onlyUnselected=!1,P(this,v,j).call(this)}filterSelected(){this.onlySelected=!0,this.onlyUnselected=!1,P(this,v,j).call(this)}filterUnselected(){this.onlySelected=!1,this.onlyUnselected=!0,P(this,v,j).call(this)}onFilterInput(e){(0,u.default)(this,P(this,w,C),e,a.INPUT_DELAY)}deselectAll(){this.selectedTags.clear()}resetToDefaults(){this.selectedTags=this.siteSettings.default_navigation_menu_tags.split("|")}toggleTag(e){this.selectedTags.includes(e)?this.selectedTags.removeObject(e):this.selectedTags.addObject(e)}save(){this.saving=!0
const e=this.currentUser.sidebar_tags
this.currentUser.set("sidebar_tag_names",this.selectedTags),this.currentUser.save(["sidebar_tag_names"]).then((e=>{this.currentUser.set("sidebar_tags",e.user.sidebar_tags),this.args.closeModal()})).catch((t=>{this.currentUser.set("sidebar_tags",e),(0,l.popupAjaxError)(t)})).finally((()=>{this.saving=!1}))}},d=O(c.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=O(c.prototype,"siteSettings",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=O(c.prototype,"store",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=O(c.prototype,"filter",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),f=O(c.prototype,"onlySelected",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=O(c.prototype,"onlyUnSelected",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=O(c.prototype,"tags",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),y=O(c.prototype,"tagsLoading",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_=O(c.prototype,"selectedTags",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[...this.currentUser.sidebarTagNames]}}),O(c.prototype,"didInsertTag",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"didInsertTag"),c.prototype),O(c.prototype,"resetFilter",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"resetFilter"),c.prototype),O(c.prototype,"filterSelected",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"filterSelected"),c.prototype),O(c.prototype,"filterUnselected",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"filterUnselected"),c.prototype),O(c.prototype,"onFilterInput",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"onFilterInput"),c.prototype),O(c.prototype,"deselectAll",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"deselectAll"),c.prototype),O(c.prototype,"resetToDefaults",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"resetToDefaults"),c.prototype),O(c.prototype,"toggleTag",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"toggleTag"),c.prototype),O(c.prototype,"save",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"save"),c.prototype),c))
async function j(){this.tagsLoading=!0
const e={}
""!==this.filter&&(e.filter=this.filter),this.onlySelected&&(e.only_tags=this.selectedTags.join(",")),this.onlyUnselected&&(e.exclude_tags=this.selectedTags.join(",")),await this.store.findAll("listTag",e).then((e=>{this.tagsLoading=!1,this.tags=e})).catch((e=>{(0,l.popupAjaxError)(e)}))}function C(e){this.filter=e.toLowerCase(),P(this,v,j).call(this)}e.default=S})),define("discourse/components/sidebar/footer",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/object","discourse/components/modal/sidebar-section-form"],(function(e,t,i,n,r,o,s){var l,a,u,c,d,p
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"/iWGKrW6",block:'[[[10,0],[14,0,"sidebar-footer-wrapper"],[12],[1,"\\n  "],[10,0],[14,0,"sidebar-footer-container"],[12],[1,"\\n    "],[10,0],[14,0,"sidebar-footer-actions"],[12],[1,"\\n      "],[8,[39,0],null,[["@name"],["sidebar-footer-actions"]],null],[1,"\\n\\n"],[41,[30,0,["currentUser"]],[[[1,"        "],[8,[39,2],null,[["@icon","@action","@class","@title"],["plus",[28,[37,3],[[30,0],[30,0,["addSection"]]],null],"btn-flat add-section","sidebar.sections.custom.add"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,4],[[30,0,["site","mobileView"]],[28,[37,5],[[30,0,["siteSettings","enable_mobile_theme"]],[30,0,["capabilities","touch"]]],null]],null],[[[1,"        "],[8,[39,2],null,[["@action","@title","@icon","@class"],[[28,[37,6],["toggleMobileView"],null],[52,[30,0,["site","mobileView"]],"desktop_view","mobile_view"],[52,[30,0,["site","mobileView"]],"desktop","mobile-alt"],"sidebar-footer-actions-button sidebar-footer-actions-toggle-mobile-view"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1,"        "],[8,[39,2],null,[["@action","@title","@icon","@class"],[[28,[37,6],["showKeyboardShortcutsHelp"],null],"keyboard_shortcuts_help.title","keyboard","btn-flat sidebar-footer-actions-button sidebar-footer-actions-keyboard-shortcuts"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["plugin-outlet","if","d-button","action","or","and","route-action"]]',moduleName:"discourse/components/sidebar/footer.hbs",isStrictMode:!1})
let g=(l=class extends n.default{constructor(){super(...arguments),m(this,"capabilities",a,this),m(this,"currentUser",u,this),m(this,"modal",c,this),m(this,"site",d,this),m(this,"siteSettings",p,this)}addSection(){this.modal.show(s.default)}},a=h(l.prototype,"capabilities",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=h(l.prototype,"currentUser",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=h(l.prototype,"modal",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(l.prototype,"site",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=h(l.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h(l.prototype,"addSection",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"addSection"),l.prototype),l)
e.default=g,(0,t.setComponentTemplate)(f,g)})),define("discourse/components/sidebar/hamburger-dropdown",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@ember/service"],(function(e,t,i,n,r,o){var s,l,a,u,c
function d(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"+/mnWiMZ",block:'[[[10,0],[14,0,"hamburger-panel"],[12],[1,"\\n  "],[11,0],[24,0,"revamped menu-panel drop-down"],[24,"data-max-width","320"],[4,[38,0],[[30,0,["triggerRenderedAppEvent"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"panel-body"],[12],[1,"\\n      "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n        "],[10,0],[14,0,"sidebar-hamburger-dropdown"],[12],[1,"\\n          "],[8,[39,1],null,[["@currentUser","@collapsableSections"],[[30,0,["currentUser"]],[30,0,["collapsableSections"]]]],null],[1,"\\n          "],[8,[39,2],null,[["@tagName"],[""]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["did-insert","sidebar/sections","sidebar/footer"]]',moduleName:"discourse/components/sidebar/hamburger-dropdown.hbs",isStrictMode:!1})
let h=(s=class extends n.default{constructor(){super(...arguments),d(this,"appEvents",l,this),d(this,"currentUser",a,this),d(this,"site",u,this),d(this,"siteSettings",c,this)}triggerRenderedAppEvent(){this.appEvents.trigger("sidebar-hamburger-dropdown:rendered")}get collapsableSections(){if("header dropdown"===this.siteSettings.navigation_menu&&!this.args.collapsableSections)return this.site.mobileView||this.site.narrowDesktopView
this.args.collapsableSections}},l=p(s.prototype,"appEvents",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=p(s.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=p(s.prototype,"site",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(s.prototype,"siteSettings",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(s.prototype,"triggerRenderedAppEvent",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"triggerRenderedAppEvent"),s.prototype),s)
e.default=h,(0,t.setComponentTemplate)(m,h)})),define("discourse/components/sidebar/header-sidebar-toggle",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"f//HlPpl",block:"[[],[],false,[]]",moduleName:"discourse/components/sidebar/header-sidebar-toggle.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o}))
define("discourse/components/sidebar/more-section-link",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"khmEPYoI",block:'[[[41,[30,1,["externalOrFullReload"]],[[[1,"  "],[8,[39,1],null,[["@shouldDisplay","@linkName","@content","@prefixType","@prefixValue","@fullReload","@href"],[[30,1,["shouldDisplay"]],[30,1,["name"]],[28,[37,2],[[30,1,["text"]]],null],"icon",[30,1,["prefixValue"]],[30,1,["fullReload"]],[30,1,["value"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,1],null,[["@shouldDisplay","@href","@title","@linkName","@route","@model","@models","@query","@content","@badgeText","@prefixType","@prefixValue","@suffixCSSClass","@suffixValue","@suffixType","@currentWhen"],[[30,1,["shouldDisplay"]],[30,1,["href"]],[30,1,["title"]],[30,1,["name"]],[30,1,["route"]],[30,1,["model"]],[30,1,["models"]],[30,1,["query"]],[28,[37,2],[[30,1,["text"]]],null],[30,1,["badgeText"]],"icon",[30,1,["prefixValue"]],[30,1,["suffixCSSClass"]],[30,1,["suffixValue"]],[30,1,["suffixType"]],[30,1,["currentWhen"]]]],null],[1,"\\n"]],[]]]],["@sectionLink"],false,["if","sidebar/section-link","replace-emoji"]]',moduleName:"discourse/components/sidebar/more-section-link.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/sidebar/more-section-links",["exports","@ember/component","@ember/template-factory","@glimmer/tracking","@ember/object","@ember/service","@ember/utils","discourse-common/utils/decorators","@glimmer/component"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m,h,f,g,b
function y(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function _(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function v(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function w(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const k=(0,i.createTemplateFactory)({id:"smTUvwII",block:'[[[41,[30,0,["activeSectionLink"]],[[[1,"  "],[8,[39,1],null,[["@sectionLink"],[[30,0,["activeSectionLink"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,"li"],[14,0,"sidebar-section-link-wrapper"],[12],[1,"\\n  "],[8,[39,2],null,[["@icon","@action","@class","@label"],["ellipsis-v",[28,[37,3],[[30,0],[30,0,["toggleSectionLinks"]]],null],"btn-flat sidebar-more-section-links-details-summary","sidebar.more"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["open"]],[[[1,"  "],[10,0],[14,0,"sidebar-more-section-links-details"],[12],[1,"\\n    "],[11,0],[24,0,"sidebar-more-section-links-details-content-wrapper"],[4,[38,4],[[30,0,["registerClickListener"]]],null],[4,[38,5],[[30,0,["unregisterClickListener"]]],null],[12],[1,"\\n\\n      "],[10,0],[14,0,"sidebar-more-section-links-details-content"],[12],[1,"\\n        "],[10,"ul"],[14,0,"sidebar-more-section-links-details-content-main"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["sectionLinks"]]],null]],null],null,[[[1,"            "],[8,[39,1],null,[["@sectionLink"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n\\n"],[41,[30,2],[[[1,"          "],[10,0],[14,0,"sidebar-more-section-links-details-content-footer"],[12],[1,"\\n            "],[8,[39,8],null,[["@action","@icon","@text"],[[30,2],[30,3],[30,4]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["sectionLink","@moreButtonAction","@moreButtonIcon","@moreButtonText"],false,["if","sidebar/more-section-link","d-button","action","did-insert","will-destroy","each","-track-array","sidebar/section-link-button"]]',moduleName:"discourse/components/sidebar/more-section-links.hbs",isStrictMode:!1})
let x=(m=new WeakSet,h=new WeakSet,f=new WeakSet,g=new WeakSet,b=new WeakSet,u=class extends a.default{constructor(){super(...arguments),_(this,b),_(this,g),_(this,f),_(this,h),_(this,m),y(this,"router",c,this),y(this,"activeSectionLink",d,this),y(this,"open",p,this),v(this,b,j).call(this),this.router.on("routeDidChange",this,v(this,b,j))}willDestroy(){v(this,h,O).call(this),this.router.off("routeDidChange",this,v(this,b,j))}get sectionLinks(){return this.activeSectionLink?v(this,m,P).call(this,this.args.sectionLinks):this.args.sectionLinks}get secondarySectionLinks(){return this.activeSectionLink?v(this,m,P).call(this,this.args.secondarySectionLinks):this.args.secondarySectionLinks}closeDetails(e){if(this.open){(e.target.className.includes("sidebar-section-link")||e.target.className.includes("sidebar-section-link-button")||v(this,g,S).call(this,e))&&(this.open=!1)}}registerClickListener(){v(this,f,T).call(this)}unregisterClickListener(){v(this,h,O).call(this)}toggleSectionLinks(){this.open=!this.open}},c=w(u.prototype,"router",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=w(u.prototype,"activeSectionLink",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=w(u.prototype,"open",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w(u.prototype,"closeDetails",[l.bind],Object.getOwnPropertyDescriptor(u.prototype,"closeDetails"),u.prototype),w(u.prototype,"registerClickListener",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"registerClickListener"),u.prototype),w(u.prototype,"unregisterClickListener",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"unregisterClickListener"),u.prototype),w(u.prototype,"toggleSectionLinks",[r.action],Object.getOwnPropertyDescriptor(u.prototype,"toggleSectionLinks"),u.prototype),u)
function P(e){return e.filter((e=>e.name!==this.activeSectionLink.name))}function O(){document.removeEventListener("click",this.closeDetails)}function T(){document.addEventListener("click",this.closeDetails)}function S(e){return!e.composedPath().some((e=>"sidebar-more-section-links-details"===e.className))}function j(){const e=this.args.sectionLinks.find((e=>{const t=[e.route]
return e.model?t.push(e.model):e.models&&t.push(...e.models),(0,s.isEmpty)(e.query)||t.push({queryParams:e.query}),this.router.isActive(...t)&&e}))
this.activeSectionLink=e}e.default=x,(0,t.setComponentTemplate)(k,x)})),define("discourse/components/sidebar/section-form-link",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/object","@glimmer/tracking"],(function(e,t,i,n,r,o){var s,l
function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"1B6BW0jp",block:'[[[11,0],[16,0,[28,[37,0],["sidebar-section-form-link","row-wrapper",[30,0,["dragCssClass"]]],null]],[24,"draggable","true"],[4,[38,1],["dragstart",[30,0,["dragHasStarted"]]],null],[4,[38,1],["dragover",[30,0,["dragOver"]]],null],[4,[38,1],["dragenter",[30,0,["dragEnter"]]],null],[4,[38,1],["dragleave",[30,0,["dragLeave"]]],null],[4,[38,1],["dragend",[30,0,["dragEnd"]]],null],[4,[38,1],["drop",[30,0,["dropItem"]]],null],[12],[1,"\\n  "],[10,0],[14,0,"draggable"],[15,"data-link-name",[30,1,["name"]]],[12],[1,"\\n    "],[1,[28,[35,2],["grip-lines"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"input-group"],[12],[1,"\\n    "],[8,[39,3],[[16,0,[30,1,["iconCssClass"]]]],[["@name","@value","@options","@onlyAvailable","@onChange"],["icon",[30,1,["icon"]],[28,[37,4],null,[["maximum","caretDownIcon","caretUpIcon","icons"],[1,"caret-down","caret-up",[30,1,["icon"]]]]],true,[28,[37,5],[[30,0],[28,[37,6],[[30,1,["icon"]]],null]],null]]],null],[1,"\\n"],[41,[30,1,["invalidIconMessage"]],[[[1,"      "],[10,0],[14,0,"icon warning"],[12],[1,"\\n        "],[1,[30,1,["invalidIconMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"input-group"],[12],[1,"\\n    "],[8,[39,8],[[24,3,"link-name"],[16,0,[30,1,["nameCssClass"]]],[4,[38,1],["input",[28,[37,5],[[30,0],[28,[37,6],[[30,1,["name"]]],null]],[["value"],["target.value"]]]],null]],[["@type","@value"],["text",[30,1,["name"]]]],null],[1,"\\n"],[41,[30,1,["invalidNameMessage"]],[[[1,"      "],[10,0],[14,0,"name warning"],[12],[1,"\\n        "],[1,[30,1,["invalidNameMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"input-group"],[12],[1,"\\n    "],[8,[39,8],[[24,3,"link-url"],[16,0,[30,1,["valueCssClass"]]],[4,[38,1],["input",[28,[37,5],[[30,0],[28,[37,6],[[30,1,["value"]]],null]],[["value"],["target.value"]]]],null]],[["@type","@value"],["text",[30,1,["value"]]]],null],[1,"\\n"],[41,[30,1,["invalidValueMessage"]],[[[1,"      "],[10,0],[14,0,"value warning"],[12],[1,"\\n        "],[1,[30,1,["invalidValueMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[8,[39,9],null,[["@icon","@action","@class","@title"],["trash-alt",[28,[37,5],[[30,0],[30,2],[30,1]],null],"btn-flat delete-link","sidebar.sections.custom.links.delete"]],null],[1,"\\n"],[13]],["@link","@deleteLink"],false,["concat-class","on","d-icon","icon-picker","hash","action","mut","if","input","d-button"]]',moduleName:"discourse/components/sidebar/section-form-link.hbs",isStrictMode:!1})
let d=(s=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="dragCssClass",n=this,(i=l)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),a(this,"dragCount",0)}isAboveElement(e){e.preventDefault()
const t=e.currentTarget.getBoundingClientRect()
return e.offsetY<t.height/2}dragHasStarted(e){e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("linkId",this.args.link.objectId),this.dragCssClass="dragging"}dragOver(e){e.preventDefault(),this.dragCssClass||(this.isAboveElement(e)?this.dragCssClass="drag-above":this.dragCssClass="drag-below")}dragEnter(){this.dragCount++}dragLeave(){this.dragCount--,0!==this.dragCount||"drag-above"!==this.dragCssClass&&"drag-below"!==this.dragCssClass||(this.dragCssClass=null)}dropItem(e){e.stopPropagation(),this.dragCounter=0,this.args.reorderCallback(parseInt(e.dataTransfer.getData("linkId"),10),this.args.link,this.isAboveElement(e)),this.dragCssClass=null}dragEnd(){this.dragCounter=0,this.dragCssClass=null}},l=u(s.prototype,"dragCssClass",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(s.prototype,"dragHasStarted",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"dragHasStarted"),s.prototype),u(s.prototype,"dragOver",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"dragOver"),s.prototype),u(s.prototype,"dragEnter",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"dragEnter"),s.prototype),u(s.prototype,"dragLeave",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"dragLeave"),s.prototype),u(s.prototype,"dropItem",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"dropItem"),s.prototype),u(s.prototype,"dragEnd",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"dragEnd"),s.prototype),s)
e.default=d,(0,t.setComponentTemplate)(c,d)})),define("discourse/components/sidebar/section-header",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"VcI15iwT",block:'[[[41,[30,1],[[[1,"  "],[8,[39,1],null,[["@title","@class","@action","@ariaExpanded","@ariaControls"],["sidebar.toggle_section","sidebar-section-header sidebar-section-header-collapsable btn-flat",[30,2],[30,3],[30,4]]],[["default"],[[[[1,"\\n    "],[18,5,null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[1,"  "],[10,1],[14,0,"sidebar-section-header"],[12],[1,"\\n    "],[18,5,null],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["@collapsable","@toggleSectionDisplay","@isExpanded","@sidebarSectionContentID","&default"],false,["if","d-button","yield"]]',moduleName:"discourse/components/sidebar/section-header.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/sidebar/section-link-button",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"OIP7G0vz",block:'[[[10,0],[14,0,"sidebar-section-link-wrapper"],[12],[1,"\\n  "],[11,"button"],[24,0,"btn btn-flat sidebar-section-link-button sidebar-row"],[24,4,"button"],[4,[38,0],["click",[30,1]],null],[12],[1,"\\n    "],[10,1],[14,0,"sidebar-section-link-prefix icon"],[12],[1,"\\n      "],[1,[28,[35,1],[[30,2]],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n      "],[1,[30,3]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["@action","@icon","@text"],false,["on","d-icon"]]',moduleName:"discourse/components/sidebar/section-link-button.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/sidebar/section-link-prefix",["exports","@ember/component","@ember/template-factory","@glimmer/component","discourse/components/sidebar/section-link"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"OahHlLqS",block:'[[[41,[30,1],[[[1,"  "],[10,1],[15,0,[28,[37,1],["sidebar-section-link-prefix",[30,1],[30,2]],null]],[15,5,[52,[30,3],[28,[37,2],[[28,[37,3],["color: ",[30,3]],null]],null]]],[12],[1,"\\n\\n"],[41,[28,[37,4],[[30,1],"image"],null],[[[1,"      "],[10,"img"],[15,"src",[30,0,["prefixValue"]]],[14,0,"prefix-image"],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,1],"text"],null],[[[1,"      "],[10,1],[14,0,"prefix-text"],[12],[1,"\\n        "],[1,[30,0,["prefixValue"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,1],"icon"],null],[[[1,"      "],[1,[28,[35,5],[[30,0,["prefixValue"]]],[["class"],["prefix-icon"]]]],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,1],"span"],null],[[[1,"      "],[10,1],[15,5,[28,[37,2],[[28,[37,3],["background: linear-gradient(90deg, ",[30,0,["prefixValue"]],")"],null]],null]],[14,0,"prefix-span"],[12],[13],[1,"\\n    "]],[]],null]],[]]]],[]]]],[]]],[1,"\\n"],[41,[30,4],[[[1,"      "],[1,[28,[35,5],[[30,4]],[["class"],["prefix-badge"]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["@prefixType","@prefixCSSClass","@prefixColor","@prefixBadge"],false,["if","concat-class","html-safe","concat","eq","d-icon"]]',moduleName:"discourse/components/sidebar/section-link-prefix.hbs",isStrictMode:!1})
var s=(0,t.setComponentTemplate)(o,class extends n.default{get prefixValue(){if(this.args.prefixType||this.args.prefixValue){if("span"===this.args.prefixType){let e=this.args.prefixValue
return e=e.reduce(((e,t)=>{const i=(0,r.isHex)(t)
return i&&e.push(`#${i} 50%`),e}),[]),1===e.length&&e.push(e[0]),e.join(", ")}return this.args.prefixValue}}})
e.default=s})),define("discourse/components/sidebar/section-link",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.isHex=a
const l=(0,i.createTemplateFactory)({id:"osIMJMIi",block:'[[[41,[30,0,["shouldDisplay"]],[[[1,"  "],[11,"li"],[24,0,"sidebar-section-link-wrapper"],[16,"data-list-item-name",[30,1]],[17,2],[4,[38,1],[[30,0,["didInsert"]],[30,0,["args"]]],null],[12],[1,"\\n"],[41,[30,3],[[[1,"      "],[10,3],[15,6,[30,3]],[14,"rel","noopener noreferrer"],[15,"target",[30,0,["target"]]],[15,0,[30,0,["classNames"]]],[15,"title",[30,4]],[15,"data-link-name",[30,1]],[12],[1,"\\n        "],[8,[39,2],null,[["@prefixType","@prefixValue","@prefixCSSClass","@prefixColor","@prefixBadge"],[[30,5],[30,6],[30,7],[30,0,["prefixColor"]],[30,8]]],null],[1,"\\n\\n        "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n          "],[1,[30,9]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[8,[39,3],[[16,0,[30,0,["classNames"]]],[16,"title",[30,4]],[16,"data-link-name",[30,1]]],[["@route","@query","@models","@current-when"],[[30,10],[28,[37,4],[[30,11],[28,[37,5],null,null]],null],[30,0,["models"]],[30,12]]],[["default"],[[[[1,"\\n\\n        "],[8,[39,2],null,[["@prefixType","@prefixValue","@prefixCSSClass","@prefixColor","@prefixBadge"],[[30,5],[30,6],[30,7],[30,0,["prefixColor"]],[30,8]]],null],[1,"\\n\\n        "],[10,1],[15,0,[28,[37,6],["sidebar-section-link-content-text",[30,13]],null]],[12],[1,"\\n          "],[1,[30,9]],[1,"\\n          "],[1,[30,14]],[1,"\\n        "],[13],[1,"\\n\\n"],[41,[30,15],[[[1,"          "],[10,1],[14,0,"sidebar-section-link-content-badge"],[12],[1,"\\n            "],[1,[30,15]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,16],[[[1,"          "],[10,1],[15,0,[28,[37,6],["sidebar-section-link-suffix",[30,17],[30,18]],null]],[12],[1,"\\n"],[41,[28,[37,7],[[30,17],"icon"],null],[[[1,"              "],[1,[28,[35,8],[[30,16]],null]],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,19],[[[1,"          "],[10,1],[14,0,"sidebar-section-link-hover"],[12],[1,"\\n            "],[11,"button"],[16,"title",[30,20]],[24,0,"sidebar-section-hover-button"],[24,4,"button"],[4,[38,9],["click",[30,21]],null],[12],[1,"\\n"],[41,[28,[37,7],[[30,22],"icon"],null],[[[1,"                "],[1,[28,[35,8],[[30,19]],[["class"],["hover-icon"]]]],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "]],[]]]]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],["@linkName","&attrs","@href","@title","@prefixType","@prefixValue","@prefixCSSClass","@prefixBadge","@content","@route","@query","@currentWhen","@contentCSSClass","@contentComponent","@badgeText","@suffixValue","@suffixType","@suffixCSSClass","@hoverValue","@hoverTitle","@hoverAction","@hoverType"],false,["if","did-insert","sidebar/section-link-prefix","link-to","or","hash","concat-class","eq","d-icon","on"]]',moduleName:"discourse/components/sidebar/section-link.hbs",isStrictMode:!1})
function a(e){const t=e?.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)
return t?t[1]:void 0}let u=(o=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="currentUser",n=this,(i=s)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}willDestroy(){this.args.willDestroy&&this.args.willDestroy()}didInsert(e,t){let[i]=t
i.didInsert&&i.didInsert()}get shouldDisplay(){return void 0===this.args.shouldDisplay||this.args.shouldDisplay}get classNames(){let e=["sidebar-section-link","sidebar-row"]
return this.args.class&&e.push(this.args.class),e.join(" ")}get target(){return this.args.fullReload?"_self":this.currentUser?.user_option?.external_links_in_new_tab?"_blank":"_self"}get models(){return this.args.model?[this.args.model]:this.args.models?this.args.models:[]}get prefixColor(){const e=a(this.args.prefixColor)
return e?`#${e}`:void 0}},c=o.prototype,d="currentUser",p=[r.inject],m={configurable:!0,enumerable:!0,writable:!0,initializer:null},f={},Object.keys(m).forEach((function(e){f[e]=m[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),f),h&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(h):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(c,d,f),f=null),s=f,o)
var c,d,p,m,h,f
e.default=u,(0,t.setComponentTemplate)(l,u)})),define("discourse/components/sidebar/section-message",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"cM0n1q7u",block:'[[[10,0],[14,0,"sidebar-section-message-wrapper sidebar-row"],[12],[1,"\\n  "],[10,0],[14,0,"sidebar-section-message"],[12],[1,"\\n    "],[18,1,null],[1,"\\n  "],[13],[1,"\\n"],[13]],["&default"],false,["yield"]]',moduleName:"discourse/components/sidebar/section-message.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/sidebar/section",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking"],(function(e,t,i,n,r,o,s){var l,a,u
function c(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function d(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"YsVp+FPZ",block:'[[[41,[30,0,["displaySection"]],[[[1,"  "],[10,0],[15,0,[28,[37,1],["sidebar-section-wrapper sidebar-section",[30,1]],null]],[15,"data-section-name",[30,2]],[12],[1,"\\n"],[41,[51,[30,3]],[[[1,"      "],[10,0],[14,0,"sidebar-section-header-wrapper sidebar-row"],[12],[1,"\\n        "],[8,[39,3],null,[["@collapsable","@sidebarSectionContentID","@toggleSectionDisplay","@isExpanded"],[[30,4],[30,0,["sidebarSectionContentID"]],[30,0,["toggleSectionDisplay"]],[30,0,["displaySectionContent"]]]],[["default"],[[[[1,"\\n"],[41,[30,4],[[[1,"            "],[10,1],[14,0,"sidebar-section-header-caret"],[12],[1,"\\n              "],[1,[28,[35,4],[[30,0,["headerCaretIcon"]]],null]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[10,1],[14,0,"sidebar-section-header-text"],[12],[1,"\\n            "],[1,[30,5]],[1,"\\n          "],[13],[1,"\\n"],[41,[30,6],[[[1,"            "],[10,1],[14,0,"sidebar-section-header-global-indicator"],[12],[1,"\\n              "],[1,[28,[35,4],["globe"],null]],[1,"\\n              "],[8,[39,5],null,[["@placement"],["top"]],[["default"],[[[[1,[28,[35,4],["shield-alt"],null]],[1,"\\n                "],[1,[28,[35,6],["sidebar.sections.global_section"],null]],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["isSingleHeaderAction"]],[[[42,[28,[37,8],[[28,[37,8],[[30,7]],null]],null],null,[[[1,"            "],[11,"button"],[24,0,"sidebar-section-header-button"],[16,"title",[30,8,["title"]]],[24,4,"button"],[4,[38,9],["click",[30,8,["action"]]],null],[12],[1,"\\n              "],[1,[28,[35,4],[[30,9]],null]],[1,"\\n            "],[13],[1,"\\n"]],[8]],null]],[]],null],[1,"\\n"],[41,[30,0,["isMultipleHeaderActions"]],[[[1,"          "],[8,[39,10],null,[["@options","@content","@onChange","@class"],[[28,[37,11],null,[["icon","placementStrategy"],[[30,9],"absolute"]]],[30,7],[28,[37,12],[[30,0],"handleMultipleHeaderActions"],null],"sidebar-section-header-dropdown"]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displaySectionContent"]],[[[1,"      "],[10,"ul"],[14,0,"sidebar-section-content"],[15,1,[30,0,["sidebarSectionContentID"]]],[12],[1,"\\n        "],[18,10,null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["@class","@sectionName","@hideSectionHeader","@collapsable","@headerLinkText","@indicatePublic","@headerActions","headerAction","@headerActionsIcon","&default"],false,["if","concat-class","unless","sidebar/section-header","d-icon","d-tooltip","i18n","each","-track-array","on","dropdown-select-box","hash","action","yield"]]',moduleName:"discourse/components/sidebar/section.hbs",isStrictMode:!1})
let h=(l=class extends n.default{constructor(){super(...arguments),c(this,"keyValueStore",a,this),c(this,"displaySectionContent",u,this),d(this,"sidebarSectionContentID",`sidebar-section-content-${this.args.sectionName}`),d(this,"collapsedSidebarSectionKey",`sidebar-section-${this.args.sectionName}-collapsed`),this.args.collapsable?this.displaySectionContent=void 0===this.keyValueStore.getItem(this.collapsedSidebarSectionKey):this.displaySectionContent=!0}willDestroy(){this.args.willDestroy&&this.args.willDestroy()}toggleSectionDisplay(){this.displaySectionContent=!this.displaySectionContent,this.displaySectionContent?this.keyValueStore.remove(this.collapsedSidebarSectionKey):this.keyValueStore.setItem(this.collapsedSidebarSectionKey,!0),event.key||document.activeElement.blur()}handleMultipleHeaderActions(e){this.args.headerActions.find((t=>t.id===e)).action()}get headerCaretIcon(){return this.displaySectionContent?"angle-down":"angle-right"}get isSingleHeaderAction(){return 1===this.args.headerActions?.length}get isMultipleHeaderActions(){return this.args.headerActions?.length>1}get displaySection(){return void 0===this.args.displaySection||this.args.displaySection}},a=p(l.prototype,"keyValueStore",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=p(l.prototype,"displaySectionContent",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(l.prototype,"toggleSectionDisplay",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"toggleSectionDisplay"),l.prototype),p(l.prototype,"handleMultipleHeaderActions",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"handleMultipleHeaderActions"),l.prototype),l)
e.default=h,(0,t.setComponentTemplate)(m,h)})),define("discourse/components/sidebar/sections",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"hosUbHhe",block:'[[[41,[30,1],[[[1,"  "],[8,[39,1],null,[["@collapsableSections"],[[30,2]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,2],null,[["@collapsableSections"],[[30,2]]],null],[1,"\\n"]],[]]]],["@currentUser","@collapsableSections"],false,["if","sidebar/user/sections","sidebar/anonymous/sections"]]',moduleName:"discourse/components/sidebar/sections.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/sidebar/user/categories-section",["exports","@embroider/macros/es-compat","@ember/component","@ember/template-factory","@ember/object","@ember/service","@glimmer/tracking","discourse-common/utils/decorators","discourse/models/category","discourse/components/sidebar/common/categories-section","discourse/lib/sidebar/helpers","discourse/components/sidebar/edit-navigation-menu/categories-modal"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f,g,b
function y(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function _(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.REFRESH_COUNTS_APP_EVENT_NAME=void 0
const v=(0,n.createTemplateFactory)({id:"c2hez7lk",block:'[[[8,[39,0],null,[["@sectionName","@headerLinkText","@headerActions","@headerActionsIcon","@collapsable"],["categories",[28,[37,1],["sidebar.sections.categories.header_link_text"],null],[28,[37,2],[[28,[37,3],null,[["action","title"],[[30,0,["showModal"]],[28,[37,1],["sidebar.sections.categories.header_action_title"],null]]]]],null],"pencil-alt",[30,1]]],[["default"],[[[[1,"\\n\\n"],[41,[28,[37,5],[[30,0,["sectionLinks","length"]],0],null],[[[42,[28,[37,7],[[28,[37,7],[[30,0,["sectionLinks"]]],null]],null],null,[[[1,"      "],[8,[39,8],[[16,"data-category-id",[30,2,["category","id"]]]],[["@route","@query","@title","@content","@currentWhen","@model","@badgeText","@prefixBadge","@prefixType","@prefixValue","@prefixColor","@suffixCSSClass","@suffixValue","@suffixType"],[[30,2,["route"]],[30,2,["query"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["model"]],[30,2,["badgeText"]],[30,2,["prefixBadge"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["suffixCSSClass"]],[30,2,["suffixValue"]],[30,2,["suffixType"]]]],null],[1,"\\n"]],[2]],null]],[]],null],[1,"\\n  "],[8,[39,9],null,null,null],[1,"\\n\\n"],[41,[30,0,["shouldDisplayDefaultConfig"]],[[[1,"    "],[8,[39,8],null,[["@linkName","@content","@prefixType","@prefixValue","@route","@model","@query"],["configure-default-navigation-menu-categories",[28,[37,1],["sidebar.sections.categories.configure_defaults"],null],"icon","wrench","adminSiteSettingsCategory","sidebar",[28,[37,3],null,[["filter"],["default_navigation_menu_categories"]]]]],null],[1,"\\n"]],[]],null]],[]]]]]],["@collapsable","sectionLink"],false,["sidebar/section","i18n","array","hash","if","gt","each","-track-array","sidebar/section-link","sidebar/common/all-categories-section-link"]]',moduleName:"discourse/components/sidebar/user/categories-section.hbs",isStrictMode:!1})
let w=(0,t.default)(require("ember-cached-decorator-polyfill")).cached
const k="sidebar:refresh-categories-section-counts"
e.REFRESH_COUNTS_APP_EVENT_NAME=k
let x=(p=(0,l.debounce)(300),m=class extends u.default{constructor(){super(...arguments),y(this,"appEvents",h,this),y(this,"currentUser",f,this),y(this,"modal",g,this),y(this,"router",b,this),this.callbackId=this.topicTrackingState.onStateChange((()=>{this._refreshCounts()})),this.appEvents.on(k,this,this._refreshCounts)}willDestroy(){super.willDestroy(...arguments),this.topicTrackingState.offStateChange(this.callbackId),this.appEvents.off(k,this,this._refreshCounts)}_refreshCounts(){this.sectionLinks.forEach((e=>{e.refreshCounts()}))}get categories(){return this.currentUser.sidebarCategoryIds?.length>0?a.default.findByIds(this.currentUser.sidebarCategoryIds):this.topSiteCategories}get shouldDisplayDefaultConfig(){return this.currentUser.admin&&!this.hasDefaultSidebarCategories}get hasDefaultSidebarCategories(){return(0,c.hasDefaultSidebarCategories)(this.siteSettings)}showModal(){this.modal.show(d.default)}},h=_(m.prototype,"appEvents",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=_(m.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=_(m.prototype,"modal",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=_(m.prototype,"router",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_(m.prototype,"_refreshCounts",[p],Object.getOwnPropertyDescriptor(m.prototype,"_refreshCounts"),m.prototype),_(m.prototype,"categories",[w],Object.getOwnPropertyDescriptor(m.prototype,"categories"),m.prototype),_(m.prototype,"showModal",[r.action],Object.getOwnPropertyDescriptor(m.prototype,"showModal"),m.prototype),m)
e.default=x,(0,i.setComponentTemplate)(v,x)})),define("discourse/components/sidebar/user/custom-sections",["exports","discourse/lib/ajax","discourse-common/utils/decorators","discourse/components/sidebar/common/custom-sections"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let o=(r=class extends n.default{constructor(){super(...arguments),this.messageBus.subscribe("/refresh-sidebar-sections",this._refresh)}willDestroy(){this.messageBus.unsubscribe("/refresh-sidebar-sections")}_refresh(){return(0,t.ajax)("/sidebar_sections.json",{}).then((e=>{this.currentUser.set("sidebar_sections",e.sidebar_sections)}))}},s=r.prototype,l="_refresh",a=[i.bind],u=Object.getOwnPropertyDescriptor(r.prototype,"_refresh"),c=r.prototype,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r)
var s,l,a,u,c,d
e.default=o})),define("discourse/components/sidebar/user/messages-section",["exports","@embroider/macros/es-compat","@ember/component","@ember/template-factory","@glimmer/tracking","discourse-common/lib/get-owner","@glimmer/component","discourse-common/utils/decorators","discourse/lib/sidebar/user/messages-section/group-message-section-link","discourse/lib/sidebar/user/messages-section/personal-message-section-link","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m,h,f
function g(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.UNREAD=e.PERSONAL_MESSAGES_INBOX_FILTERS=e.NEW=e.INBOX=e.GROUP_MESSAGES_INBOX_FILTERS=void 0
const y=(0,n.createTemplateFactory)({id:"1mHI7XtA",block:'[[[8,[39,0],null,[["@sectionName","@headerActionIcon","@headerActions","@headerActionsIcon","@headerLinkText","@collapsable"],["messages","plus",[28,[37,1],[[28,[37,2],null,[["action","title"],[[28,[37,3],[[28,[37,4],["composePrivateMessage"],null],null,null],null],[28,[37,5],["sidebar.sections.messages.header_action_title"],null]]]]],null],"plus",[28,[37,5],["sidebar.sections.messages.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["personalMessagesSectionLinks"]]],null]],null],null,[[[41,[30,2,["shouldDisplay"]],[[[1,"      "],[8,[39,9],null,[["@linkName","@class","@route","@model","@prefixType","@prefixValue","@currentWhen","@content"],[[30,2,["name"]],[30,2,["class"]],[30,2,["route"]],[30,2,["model"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["currentWhen"]],[30,2,["text"]]]],null],[1,"\\n"]],[]],null]],[2]],null],[1,"\\n"],[41,[28,[37,10],[[30,0,["groupMessagesSectionLinks","length"]],0],null],[[[42,[28,[37,7],[[28,[37,7],[[30,0,["groupMessagesSectionLinks"]]],null]],null],null,[[[41,[30,3,["shouldDisplay"]],[[[1,"        "],[8,[39,9],null,[["@linkName","@class","@route","@prefixType","@prefixValue","@models","@currentWhen","@content"],[[30,3,["name"]],[30,3,["class"]],[30,3,["route"]],[30,3,["prefixType"]],[30,3,["prefixValue"]],[30,3,["models"]],[30,3,["currentWhen"]],[30,3,["text"]]]],null],[1,"\\n"]],[]],null]],[3]],null]],[]],null],[1,"\\n"]],[]]]]]],["@collapsable","personalMessageSectionLink","groupMessageSectionLink"],false,["sidebar/section","array","hash","fn","route-action","i18n","each","-track-array","if","sidebar/section-link","gt"]]',moduleName:"discourse/components/sidebar/user/messages-section.hbs",isStrictMode:!1})
let _=(0,t.default)(require("ember-cached-decorator-polyfill")).cached
const v="inbox"
e.INBOX=v
const w="unread"
e.UNREAD=w
const k="new"
e.NEW=k
const x="archive",P=[v,k,w,"sent",x]
e.PERSONAL_MESSAGES_INBOX_FILTERS=P
const O=[v,k,w,x]
e.GROUP_MESSAGES_INBOX_FILTERS=O
let T=(d=class extends s.default{constructor(){super(...arguments),g(this,"appEvents",p,this),g(this,"pmTopicTrackingState",m,this),g(this,"currentUser",h,this),g(this,"router",f,this),this.appEvents.on("page:changed",this,this._refreshSectionLinksDisplayState),this._pmTopicTrackingStateKey="messages-section",this.pmTopicTrackingState.onStateChange(this._pmTopicTrackingStateKey,this._refreshSectionLinkCounts)}_refreshSectionLinkCounts(){for(const e of this.allSectionLinks)e.refreshCount()}willDestroy(){this.appEvents.off("page:changed",this,this._refreshSectionLinksDisplayState),this.pmTopicTrackingState.offStateChange(this._pmTopicTrackingStateKey,this._refreshSectionLinkCounts)}_refreshSectionLinksDisplayState(){const e=this.router.currentRoute.name,t=this.router.currentRoute.parent.name,i=this.router.currentRoute.parent.params
if(t.includes("userPrivateMessages")||"topic"===t){const n={currentRouteName:e,currentRouteParentParams:i}
if("topic"===t){const e=(0,o.getOwner)(this).lookup("controller:topic")
e.model.isPrivateMessage&&(n.privateMessageTopic=e.model)}for(const e of this.allSectionLinks)e.pageChanged(n)}else for(const n of this.allSectionLinks)n.collapse()}get personalMessagesSectionLinks(){const e=[]
return P.forEach((t=>{e.push(new u.default({currentUser:this.currentUser,type:t,pmTopicTrackingState:this.pmTopicTrackingState}))})),e}get groupMessagesSectionLinks(){const e=[]
return this.currentUser.groupsWithMessages.sort(((e,t)=>e.name.localeCompare(t.name))).forEach((t=>{O.forEach((i=>{e.push(new a.default({group:t,type:i,currentUser:this.currentUser,pmTopicTrackingState:this.pmTopicTrackingState}))}))})),e}get allSectionLinks(){return[...this.groupMessagesSectionLinks,...this.personalMessagesSectionLinks]}},p=b(d.prototype,"appEvents",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=b(d.prototype,"pmTopicTrackingState",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=b(d.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=b(d.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b(d.prototype,"_refreshSectionLinkCounts",[l.bind],Object.getOwnPropertyDescriptor(d.prototype,"_refreshSectionLinkCounts"),d.prototype),b(d.prototype,"personalMessagesSectionLinks",[_],Object.getOwnPropertyDescriptor(d.prototype,"personalMessagesSectionLinks"),d.prototype),b(d.prototype,"groupMessagesSectionLinks",[_],Object.getOwnPropertyDescriptor(d.prototype,"groupMessagesSectionLinks"),d.prototype),d)
e.default=T,(0,i.setComponentTemplate)(y,T)})),define("discourse/components/sidebar/user/sections",["exports","@embroider/macros/es-compat","@ember/component","@ember/template-factory","@glimmer/component","discourse/lib/sidebar/custom-sections","@ember/application","@ember/service","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,n.createTemplateFactory)({id:"P71kqqwK",block:'[[[10,0],[14,0,"sidebar-sections"],[12],[1,"\\n  "],[8,[39,0],null,[["@collapsable"],[[30,1]]],null],[1,"\\n  "],[8,[39,1],null,[["@collapsable"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","display_sidebar_tags"]],[[[1,"    "],[8,[39,3],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["enableMessagesSection"]],[[[1,"    "],[8,[39,4],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["customSections"]]],null]],null],null,[[[1,"    "],[8,[39,7],null,[["@sectionName","@headerLinkText","@headerLinkTitle","@headerActionsIcon","@headerActions","@willDestroy","@collapsable","@displaySection"],[[30,2,["name"]],[30,2,["text"]],[30,2,["title"]],[30,2,["actionsIcon"]],[30,2,["actions"]],[30,2,["willDestroy"]],[30,1],[30,2,["displaySection"]]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[37,6],[[28,[37,6],[[30,2,["links"]]],null]],null],null,[[[1,"        "],[8,[39,8],null,[["@linkName","@class","@route","@model","@models","@title","@contentCSSClass","@prefixColor","@prefixBadge","@prefixType","@prefixValue","@prefixCSSClass","@suffixType","@suffixValue","@suffixCSSClass","@hoverType","@hoverValue","@hoverAction","@hoverTitle","@currentWhen","@didInsert","@willDestroy","@content","@contentComponent"],[[30,3,["name"]],[30,3,["classNames"]],[30,3,["route"]],[30,3,["model"]],[30,3,["models"]],[30,3,["title"]],[30,3,["contentCSSClass"]],[30,3,["prefixColor"]],[30,3,["prefixBadge"]],[30,3,["prefixType"]],[30,3,["prefixValue"]],[30,3,["prefixCSSClass"]],[30,3,["suffixType"]],[30,3,["suffixValue"]],[30,3,["suffixCSSClass"]],[30,3,["hoverType"]],[30,3,["hoverValue"]],[30,3,["hoverAction"]],[30,3,["hoverTitle"]],[30,3,["currentWhen"]],[30,3,["didInsert"]],[30,3,["willDestroy"]],[30,3,["text"]],[50,[30,3,["contentComponent"]],0,null,[["status"],[[30,3,["contentComponentArgs"]]]]]]],null],[1,"\\n"]],[3]],null],[1,"    "]],[]]]]],[1,"\\n"]],[2]],null],[13]],["@collapsableSections","customSection","link"],false,["sidebar/user/custom-sections","sidebar/user/categories-section","if","sidebar/user/tags-section","sidebar/user/messages-section","each","-track-array","sidebar/section","sidebar/section-link","component"]]',moduleName:"discourse/components/sidebar/user/sections.hbs",isStrictMode:!1})
let g=(0,t.default)(require("ember-cached-decorator-polyfill")).cached,b=(u=class extends r.default{constructor(){super(...arguments),m(this,"siteSettings",c,this),m(this,"currentUser",d,this),m(this,"site",p,this)}get customSections(){return o.customSections.map((e=>{const t=new e({sidebar:this})
return(0,s.setOwner)(t,(0,s.getOwner)(this)),t}))}get enableMessagesSection(){return this.currentUser?.can_send_private_messages}},c=h(u.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(u.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=h(u.prototype,"site",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h(u.prototype,"customSections",[g],Object.getOwnPropertyDescriptor(u.prototype,"customSections"),u.prototype),u)
e.default=b,(0,i.setComponentTemplate)(f,b)})),define("discourse/components/sidebar/user/tags-section",["exports","@embroider/macros/es-compat","@ember/component","@ember/template-factory","@ember/object","@glimmer/tracking","@ember/service","discourse/components/sidebar/common/tags-section","discourse/lib/sidebar/user/tags-section/tag-section-link","discourse/lib/sidebar/user/tags-section/pm-tag-section-link","discourse/lib/sidebar/helpers","discourse/components/sidebar/edit-navigation-menu/tags-modal"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f,g,b,y
function _(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function v(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const w=(0,n.createTemplateFactory)({id:"qG53i+PS",block:'[[[8,[39,0],null,[["@sectionName","@headerLinkText","@headerActions","@headerActionsIcon","@collapsable"],["tags",[28,[37,1],["sidebar.sections.tags.header_link_text"],null],[28,[37,2],[[28,[37,3],null,[["action","title"],[[30,0,["showModal"]],[28,[37,1],["sidebar.sections.tags.header_action_title"],null]]]]],null],"pencil-alt",[30,1]]],[["default"],[[[[1,"\\n\\n"],[41,[28,[37,5],[[30,0,["sectionLinks","length"]],0],null],[[[42,[28,[37,7],[[28,[37,7],[[30,0,["sectionLinks"]]],null]],null],null,[[[1,"      "],[8,[39,8],[[16,"data-tag-name",[30,2,["tagName"]]]],[["@route","@title","@content","@currentWhen","@prefixType","@prefixValue","@prefixColor","@badgeText","@models","@suffixCSSClass","@suffixValue","@suffixType"],[[30,2,["route"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["badgeText"]],[30,2,["models"]],[30,2,["suffixCSSClass"]],[30,2,["suffixValue"]],[30,2,["suffixType"]]]],null],[1,"\\n"]],[2]],null]],[]],null],[1,"\\n  "],[8,[39,9],null,null,null],[1,"\\n\\n"],[41,[30,0,["shouldDisplayDefaultConfig"]],[[[1,"    "],[8,[39,8],null,[["@linkName","@content","@prefixType","@prefixValue","@route","@model","@query"],["configure-default-navigation-menu-tags",[28,[37,1],["sidebar.sections.tags.configure_defaults"],null],"icon","wrench","adminSiteSettingsCategory","sidebar",[28,[37,3],null,[["filter"],["default_navigation_menu_tags"]]]]],null],[1,"\\n"]],[]],null]],[]]]]]],["@collapsable","sectionLink"],false,["sidebar/section","i18n","array","hash","if","gt","each","-track-array","sidebar/section-link","sidebar/common/all-tags-section-link"]]',moduleName:"discourse/components/sidebar/user/tags-section.hbs",isStrictMode:!1})
let k=(0,t.default)(require("ember-cached-decorator-polyfill")).cached,x=(p=class extends l.default{constructor(){super(...arguments),_(this,"currentUser",m,this),_(this,"modal",h,this),_(this,"pmTopicTrackingState",f,this),_(this,"router",g,this),_(this,"siteSettings",b,this),_(this,"topicTrackingState",y,this),this.callbackId=this.topicTrackingState.onStateChange((()=>{this.sectionLinks.forEach((e=>{e.refreshCounts&&e.refreshCounts()}))}))}willDestroy(){this.topicTrackingState.offStateChange(this.callbackId)}get sectionLinks(){const e=[]
let t
t=this.currentUser.sidebarTags.length>0?this.currentUser.sidebarTags:this.topSiteTags.map((e=>({name:e,pm_only:!1})))
for(const i of t)i.pm_only?e.push(new u.default({tagName:i.name,currentUser:this.currentUser})):e.push(new a.default({tagName:i.name,topicTrackingState:this.topicTrackingState,currentUser:this.currentUser}))
return e}get shouldDisplayDefaultConfig(){return this.currentUser.admin&&!this.hasDefaultSidebarTags}get hasDefaultSidebarTags(){return(0,c.hasDefaultSidebarTags)(this.siteSettings)}showModal(){this.modal.show(d.default)}},m=v(p.prototype,"currentUser",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=v(p.prototype,"modal",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=v(p.prototype,"pmTopicTrackingState",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=v(p.prototype,"router",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=v(p.prototype,"siteSettings",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=v(p.prototype,"topicTrackingState",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v(p.prototype,"sectionLinks",[k],Object.getOwnPropertyDescriptor(p.prototype,"sectionLinks"),p.prototype),v(p.prototype,"showModal",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"showModal"),p.prototype),p)
e.default=x,(0,i.setComponentTemplate)(w,x)})),define("discourse/components/signup-cta",["exports","@ember/component","@ember/template-factory","discourse-common/lib/later","@ember/object","@ember/object/evented"],(function(e,t,i,n,r,o){var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"4ujhsD4m",block:'[[[10,0],[14,0,"signup-cta alert alert-info"],[12],[1,"\\n"],[41,[30,0,["session","hideSignupCta"]],[[[1,"    "],[10,"h3"],[12],[1,"\\n      "],[1,[28,[35,1],["signup_cta.hidden_for_session"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,"h3"],[12],[1,[28,[35,2],[[28,[37,1],["signup_cta.intro"],null]],null]],[13],[1,"\\n    "],[10,2],[12],[1,[28,[35,2],[[28,[37,1],["signup_cta.value_prop"],null]],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"buttons"],[12],[1,"\\n      "],[8,[39,3],null,[["@action","@label","@icon","@class"],[[28,[37,4],["showCreateAccount"],null],"signup_cta.sign_up","user","btn-primary"]],null],[1,"\\n      "],[8,[39,3],null,[["@action","@label","@class"],[[28,[37,5],[[30,0],"hideForSession"],null],"signup_cta.hide_session","no-icon"]],null],[1,"\\n      "],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["neverShow"]]],null],[12],[1,[28,[35,1],["signup_cta.hide_forever"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]],[13]],[],false,["if","i18n","replace-emoji","d-button","route-action","action","on"]]',moduleName:"discourse/components/signup-cta.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((s={action:"showCreateAccount",neverShow(e){e?.preventDefault(),this.keyValueStore.setItem("anon-cta-never","t"),this.session.set("showSignupCta",!1)},actions:{hideForSession(){this.session.set("hideSignupCta",!0),this.keyValueStore.setItem("anon-cta-hidden",Date.now()),(0,n.default)((()=>this.session.set("showSignupCta",!1)),2e4)}},_turnOffIfHidden:(0,o.on)("willDestroyElement",(function(){this.session.get("hideSignupCta")&&this.session.set("showSignupCta",!1)}))},a=s,u="neverShow",c=[r.action],d=Object.getOwnPropertyDescriptor(s,"neverShow"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/site-header",["exports","discourse/mixins/pan-events","@ember/runloop","discourse-common/lib/later","discourse/mixins/docking","discourse/components/mount-widget","@discourse/itsatrap","discourse/mixins/rerender-on-do-not-disturb-change","discourse-common/utils/decorators","discourse/components/topic-title","discourse-common/config/environment","@ember/test"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f
function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=o.default.extend(r.default,t.default,l.default,(p=(0,a.observes)("currentUser.unread_notifications","currentUser.unread_high_priority_notifications","currentUser.all_unread_notifications_count","currentUser.reviewable_count","currentUser.unseen_reviewable_count","session.defaultColorSchemeIsDark","session.darkModeAvailable"),m=(0,a.observes)("site.narrowDesktopView"),h={widget:"header",docAt:null,dockedHeader:null,_animate:!1,_isPanning:!1,_panMenuOrigin:"right",_panMenuOffset:0,_scheduledRemoveAnimate:null,_topic:null,_itsatrap:null,_applicationElement:null,notificationsChanged(){this.queueRerender()},narrowDesktopViewChanged(){this.eventDispatched("dom:clean","header"),this._dropDownHeaderEnabled()&&this.appEvents.on("sidebar-hamburger-dropdown:rendered",this,"_animateMenu")},_animateOpening(e){window.requestAnimationFrame((()=>{this._setAnimateOpeningProperties(e)}))},_setAnimateOpeningProperties(e){const t=document.querySelector(".header-cloak")
e.classList.add("animate"),t.classList.add("animate"),this._scheduledRemoveAnimate=(0,n.default)((()=>{e.classList.remove("animate"),t.classList.remove("animate")}),200),e.style.setProperty("--offset",0),t.style.setProperty("--opacity",.5),this._panMenuOffset=0},_animateClosing(e,t){this._animate=!0
const r=document.querySelector(".header-cloak")
e.classList.add("animate"),r.classList.add("animate"),"left"===t?e.style.setProperty("--offset","-100vw"):e.style.setProperty("--offset","100vw"),r.style.setProperty("--opacity",0),this._scheduledRemoveAnimate=(0,n.default)((()=>{e.classList.remove("animate"),r.classList.remove("animate"),(0,i.schedule)("afterRender",(()=>{this.eventDispatched("dom:clean","header"),this._panMenuOffset=0}))}),200)},_isRTL:()=>"rtl"===document.querySelector("html").classList.direction,_leftMenuClass(){return this._isRTL()?"user-menu":"hamburger-panel"},_handlePanDone(e){const t=document.querySelectorAll(".menu-panel"),i=this._panMenuOrigin
t.forEach((t=>{t.classList.remove("moving"),this._shouldMenuClose(e,i)?this._animateClosing(t,i):this._animateOpening(t)}))},_shouldMenuClose:(e,i)=>"right"===i?e.deltaX>t.SWIPE_DISTANCE_THRESHOLD&&e.velocityX>-t.SWIPE_VELOCITY_THRESHOLD||e.velocityX>0:e.deltaX<-t.SWIPE_DISTANCE_THRESHOLD&&e.velocityX<t.SWIPE_VELOCITY_THRESHOLD||e.velocityX<0,panStart(e){const t=e.center
if(!document.elementsFromPoint(t.x,t.y).some((e=>e.classList.contains("panel-body")||e.classList.contains("header-cloak")))||"left"!==e.direction&&"right"!==e.direction)this._isPanning=!1
else{e.originalEvent.preventDefault(),this._isPanning=!0
const t=document.querySelector(".menu-panel")
t&&t.classList.add("moving")}},panEnd(e){this._isPanning&&(this._isPanning=!1,this._handlePanDone(e))},panMove(e){if(!this._isPanning)return
const t=document.querySelector(".menu-panel"),i=document.querySelector(".header-cloak")
if("right"===this._panMenuOrigin){const n=Math.min(0,-e.deltaX+this._panMenuOffset)
t.style.setProperty("--offset",-n+"px"),i.style.setProperty("--opacity",Math.min(.5,(300+n)/600))}else{const n=Math.min(0,e.deltaX+this._panMenuOffset)
t.style.setProperty("--offset",`${n}px`),i.style.setProperty("--opacity",Math.min(.5,(300+n)/600))}},dockCheck(){const e=this.header
if(null===this.docAt){if(!e)return
this.docAt=e.offsetTop}const t=this._applicationElement??=document.querySelector(".ember-application"),i=t?t.offsetTop:0
window.pageYOffset-i>=this.docAt?this.dockedHeader||(document.body.classList.add("docked"),this.dockedHeader=!0):this.dockedHeader&&(document.body.classList.remove("docked"),this.dockedHeader=!1)},setTopic(e){this.eventDispatched("dom:clean","header"),this._topic=e,this.queueRerender()},willRender(){this.get("currentUser.staff")&&document.body.classList.add("staff")},didInsertElement(){this._super(...arguments),this._resizeDiscourseMenuPanel=()=>this.afterRender(),window.addEventListener("resize",this._resizeDiscourseMenuPanel),this.appEvents.on("header:show-topic",this,"setTopic"),this.appEvents.on("header:hide-topic",this,"setTopic"),this.appEvents.on("user-menu:rendered",this,"_animateMenu"),this._dropDownHeaderEnabled()&&this.appEvents.on("sidebar-hamburger-dropdown:rendered",this,"_animateMenu"),this.dispatch("notifications:changed","user-notifications"),this.dispatch("header:keyboard-trigger","header"),this.dispatch("user-menu:navigation","user-menu"),this.appEvents.on("dom:clean",this,"_cleanDom"),this.currentUser&&this.currentUser.on("status-changed",this,"queueRerender")
const e=document.querySelector("header.d-header")
this._itsatrap=new s.default(e)
this._itsatrap.bind(["up","down"],(e=>this._handleArrowKeysNav(e)))},_handleArrowKeysNav(e){const t=document.querySelector(".menu-tabs-container .btn.active")
if(t){let i=Number(document.activeElement.dataset.tabNumber||t.dataset.tabNumber)
const n=document.querySelectorAll(".menu-tabs-container .btn").length-1,r="ArrowDown"===e.key
let o=r?i+1:i-1
r&&o>n&&(o=0),!r&&o<0&&(o=n),e.preventDefault(),document.querySelector(`.menu-tabs-container .btn[data-tab-number='${o}']`).focus()}},_cleanDom(){this.element.querySelector(".menu-panel")&&this.eventDispatched("dom:clean","header")},willDestroyElement(){this._super(...arguments),window.removeEventListener("resize",this._resizeDiscourseMenuPanel),this.appEvents.off("header:show-topic",this,"setTopic"),this.appEvents.off("header:hide-topic",this,"setTopic"),this.appEvents.off("dom:clean",this,"_cleanDom"),this.appEvents.off("user-menu:rendered",this,"_animateMenu"),this._dropDownHeaderEnabled()&&this.appEvents.off("sidebar-hamburger-dropdown:rendered",this,"_animateMenu"),this.currentUser&&this.currentUser.off("status-changed",this,"queueRerender"),(0,i.cancel)(this._scheduledRemoveAnimate),this._itsatrap?.destroy(),this._itsatrap=null},buildArgs(){return{topic:this._topic,canSignUp:this.canSignUp,sidebarEnabled:this.sidebarEnabled,showSidebar:this.showSidebar,navigationMenuQueryParamOverride:this.navigationMenuQueryParamOverride}},afterRender(){const e=document.querySelector(".header-title .topic-link")
e&&this._topic&&u.topicTitleDecorators.forEach((t=>t(this._topic,e,"header-title"))),this._animateMenu()},_animateMenu(){const e=document.querySelectorAll(".menu-panel")
if(0===e.length)return void(this._animate=this.site.mobileView||this.site.narrowDesktopView)
const t=this.site.mobileView||this.site.narrowDesktopView?"slide-in":"drop-down"
e.forEach((e=>{const i=document.querySelector(".header-cloak")
let n=parseInt(e.getAttribute("data-max-width"),10)||300
this._panMenuOffset&&(this._panMenuOffset=-n),e.classList.remove("drop-down"),e.classList.remove("slide-in"),e.classList.add(t),(this._animate||0!==this._panMenuOffset)&&((this.site.mobileView||this.site.narrowDesktopView)&&e.parentElement.classList.contains(this._leftMenuClass())?(this._panMenuOrigin="left",e.style.setProperty("--offset","-100vw")):(this._panMenuOrigin="right",e.style.setProperty("--offset","100vw")),i.style.setProperty("--opacity",0)),"slide-in"===t&&(i.style.display="block"),this._animate&&this._animateOpening(e),this._animate=!1}))},_dropDownHeaderEnabled(){return!this.sidebarEnabled&&"legacy"!==this.siteSettings.navigation_menu||this.site.narrowDesktopView}},g(h,"notificationsChanged",[p],Object.getOwnPropertyDescriptor(h,"notificationsChanged"),h),g(h,"narrowDesktopViewChanged",[m],Object.getOwnPropertyDescriptor(h,"narrowDesktopViewChanged"),h),h))
var y=b.extend((f={classNames:["d-header-wrap"],classNameBindings:["site.mobileView::drop-down-mode"],headerWrap:null,header:null,init(){this._super(...arguments),this._resizeObserver=null},updateHeaderOffset(){let e=this.headerWrap.getBoundingClientRect().top
0!==e&&(e-=Math.max(0,document.body.getBoundingClientRect().top))
const t=document.documentElement.style,i=t.getPropertyValue("--header-offset"),n=`${this.headerWrap.offsetHeight+e}px`
i!==n&&t.setProperty("--header-offset",n)},onScroll(){(0,i.schedule)("afterRender",this.updateHeaderOffset)},didInsertElement(){this._super(...arguments),this.appEvents.on("site-header:force-refresh",this,"queueRerender"),this.headerWrap=document.querySelector(".d-header-wrap"),this.headerWrap&&((0,i.schedule)("afterRender",(()=>{this.header=this.headerWrap.querySelector("header.d-header"),this.updateHeaderOffset()
const e=this.header.offsetTop
document.documentElement.style.setProperty("--header-top",`${e}px`)})),window.addEventListener("scroll",this.onScroll,{passive:!0})),"ResizeObserver"in window&&(this._resizeObserver=new ResizeObserver((e=>{for(let t of e)if(t.contentRect){const e=this.header.offsetTop
document.documentElement.style.setProperty("--header-top",`${e}px`),this.updateHeaderOffset()}})),this._resizeObserver.observe(this.headerWrap))},willDestroyElement(){this._super(...arguments),window.removeEventListener("scroll",this.onScroll),this._resizeObserver?.disconnect(),this.appEvents.off("site-header:force-refresh",this,"queueRerender")}},g(f,"updateHeaderOffset",[a.bind],Object.getOwnPropertyDescriptor(f,"updateHeaderOffset"),f),g(f,"onScroll",[a.bind],Object.getOwnPropertyDescriptor(f,"onScroll"),f),f))
e.default=y})),define("discourse/components/slow-mode-info",["exports","@ember/component","@ember/template-factory","discourse/models/topic","@ember/object","discourse-common/utils/decorators","discourse/helpers/slow-mode","discourse/lib/ajax-error"],(function(e,t,i,n,r,o,s,l){var a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"xcHlcnHr",block:'[[[41,[30,0,["showSlowModeNotice"]],[[[1,"  "],[10,0],[14,0,"topic-status-info"],[12],[1,"\\n    "],[10,"h3"],[14,0,"slow-mode-heading"],[12],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[1,[28,[35,1],["hourglass-start"],null]],[1,"\\n        "],[1,[28,[35,2],["topic.slow_mode_notice.duration"],[["duration"],[[30,0,["durationText"]]]]]],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["user","canManageTopic"]],[[[1,"        "],[8,[39,3],null,[["@class","@action","@icon"],["slow-mode-remove",[28,[37,4],[[30,0],"disableSlowMode"],null],"trash-alt"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-icon","i18n","d-button","action"]]',moduleName:"discourse/components/slow-mode-info.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend((a=(0,o.default)("topic.slow_mode_seconds"),u=(0,o.default)("topic.slow_mode_seconds","topic.closed"),d(c={durationText:e=>(0,s.durationTextFromSeconds)(e),showSlowModeNotice:(e,t)=>e>0&&!t,disableSlowMode(){n.default.setSlowMode(this.topic.id,0).catch(l.popupAjaxError).then((()=>this.set("topic.slow_mode_seconds",0)))}},"durationText",[a],Object.getOwnPropertyDescriptor(c,"durationText"),c),d(c,"showSlowModeNotice",[u],Object.getOwnPropertyDescriptor(c,"showSlowModeNotice"),c),d(c,"disableSlowMode",[r.action],Object.getOwnPropertyDescriptor(c,"disableSlowMode"),c),c)))
e.default=m})),define("discourse/components/software-update-prompt",["exports","@ember/component","@ember/template-factory","discourse-common/lib/get-url","@ember/runloop","discourse-common/lib/later","discourse-common/utils/decorators","@ember/object","discourse-common/config/environment"],(function(e,t,i,n,r,o,s,l,a){var u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"Sh7MsQp1",block:'[[[41,[30,0,["showPrompt"]],[[[1,"  "],[10,0],[15,0,[29,["software-update-prompt",[52,[30,0,["animatePrompt"]]," require-software-refresh"]]]],[12],[1,"\\n    "],[10,0],[14,0,"wrap"],[12],[1,"\\n      "],[10,0],[14,0,"update-prompt-main-content"],[14,"aria-live","polite"],[12],[1,"\\n        "],[10,1],[14,"role","button"],[15,"onclick",[28,[37,1],[[30,0],"refreshPage"],null]],[14,0,"update-prompt-message"],[12],[1,[28,[35,2],["redo"],null]],[1,"\\n          "],[1,[28,[35,3],[[28,[37,4],["software_update_prompt.message"],null]],null]],[13],[1,"\\n        "],[10,1],[14,0,"update-prompt-dismiss"],[12],[10,1],[15,"aria-label",[28,[37,4],["software_update_prompt.dismiss"],null]],[14,"role","button"],[15,"onclick",[28,[37,1],[[30,0],"dismiss"],null]],[12],[1,[28,[35,2],["times"],null]],[13],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","action","d-icon","html-safe","i18n"]]',moduleName:"discourse/components/software-update-prompt.hbs",isStrictMode:!1})
var m=(0,t.setComponentTemplate)(p,t.default.extend((u=(0,s.on)("willDestroyElement"),c={tagName:"",showPrompt:!1,animatePrompt:!1,_timeoutHandler:null,init(){this._super(...arguments),this.messageBus.subscribe("/refresh_client",this.onRefresh),this.messageBus.subscribe("/global/asset-version",this.onAsset)},willDestroy(){this._super(...arguments),this.messageBus.unsubscribe("/refresh_client",this.onRefresh),this.messageBus.unsubscribe("/global/asset-version",this.onAsset)},onRefresh(){this.session.requiresRefresh=!0},onAsset(e){this.session.assetVersion!==e&&(this.session.requiresRefresh=!0),!this._timeoutHandler&&this.session.requiresRefresh&&((0,a.isTesting)()?this.updatePromptState(!0):this._timeoutHandler=(0,o.default)((()=>{this.updatePromptState(!0)}),864e5))},rootUrl:()=>(0,n.default)("/"),updatePromptState(e){const t=e?"showPrompt":"animatePrompt",i=e?"animatePrompt":"showPrompt"
this.set(t,e),(0,a.isTesting)()?this.set(i,e):(0,o.default)((()=>{this.set(i,e)}),500)},refreshPage(){document.location.reload()},dismiss(){this.updatePromptState(!1)},_resetTimeoutHandler(){this._timeoutHandler&&(0,r.cancel)(this._timeoutHandler),this._timeoutHandler=null}},d(c,"onRefresh",[s.bind],Object.getOwnPropertyDescriptor(c,"onRefresh"),c),d(c,"onAsset",[s.bind],Object.getOwnPropertyDescriptor(c,"onAsset"),c),d(c,"rootUrl",[s.default],Object.getOwnPropertyDescriptor(c,"rootUrl"),c),d(c,"refreshPage",[l.action],Object.getOwnPropertyDescriptor(c,"refreshPage"),c),d(c,"dismiss",[l.action],Object.getOwnPropertyDescriptor(c,"dismiss"),c),d(c,"_resetTimeoutHandler",[u],Object.getOwnPropertyDescriptor(c,"_resetTimeoutHandler"),c),c)))
e.default=m})),define("discourse/components/sub-category-item",["exports","@ember/component","@ember/template-factory","discourse/components/category-list-item"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"7m6NDasE",block:'[[[41,[51,[30,0,["isMuted"]]],[[[1,"  "],[10,1],[14,0,"subcategory"],[12],[1,"\\n    "],[8,[39,1],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n    "],[1,[28,[35,2],[[30,0,["category"]]],[["hideParent"],["true"]]]],[1,"\\n"],[41,[51,[30,0,["hideUnread"]]],[[[1,"      "],[8,[39,3],null,[["@category","@unreadTopicsCount","@newTopicsCount"],[[30,0,["category"]],[30,0,["unreadTopicsCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],[],false,["unless","category-title-before","category-link","category-unread"]]',moduleName:"discourse/components/sub-category-item.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,n.default.extend({}))
e.default=o})),define("discourse/components/sub-category-row",["exports","@ember/component","@ember/template-factory","discourse/components/category-list-item"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"FP2Xp8A6",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1,"  "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,0,[29,[[52,[30,0,["category","description_excerpt"]],"has-description","no-description"],"\\n      ",[52,[30,0,["category","uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n    "],[10,"td"],[15,0,[29,["category ",[52,[30,0,["isMuted"]],"muted"]]]],[15,5,[28,[37,2],[[30,0,["category","color"]]],null]],[12],[1,"\\n      "],[8,[39,3],null,[["@tagName","@category"],["h4",[30,0,["category"]]]],null],[1,"\\n"],[41,[30,0,["category","description_excerpt"]],[[[1,"        "],[10,0],[14,0,"category-description subcategory-description"],[12],[1,"\\n          "],[1,[28,[35,4],[[30,0,["category","description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[30,0,["category","subcategories"]],[[[1,"        "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"            "],[8,[39,7],null,[["@category","@hideUnread","@listType"],[[30,1],"true",[30,0,["listType"]]]],null],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["subsubcategory"],false,["unless","if","border-color","category-title-link","dir-span","each","-track-array","sub-category-item"]]',moduleName:"discourse/components/sub-category-row.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,n.default.extend({}))
e.default=o})),define("discourse/components/subcategories-with-featured-topics",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"MHVOjDO9",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[1,"  "],[10,"table"],[14,0,"category-list subcategory-list with-topics"],[12],[1,"\\n    "],[10,"thead"],[12],[1,"\\n      "],[10,"tr"],[12],[1,"\\n        "],[10,"th"],[14,0,"parent-category"],[12],[1,"\\n          "],[8,[39,2],null,[["@category"],[[30,1]]],null],[1,"\\n          "],[10,1],[14,0,"stat"],[15,"title",[30,1,["statTitle"]]],[12],[1,[28,[35,3],[[30,1,["stat"]]],null]],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,4],["categories.topics"],null]],[13],[1,"\\n        "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,4],["categories.latest"],null]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,"tbody"],[14,"aria-labelledby","categories-only-category"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["subcategories"]]],null]],null],null,[[[1,"        "],[8,[39,5],null,[["@category","@showTopics"],[[30,2],true]],null],[1,"\\n"]],[2]],[[[1,"        "],[8,[39,5],null,[["@category","@showTopics"],[[30,1],true]],null],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[1]],null]],["category","subCategory"],false,["each","-track-array","category-title-link","html-safe","i18n","parent-category-row"]]',moduleName:"discourse/components/subcategories-with-featured-topics.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/suggested-topics",["exports","@ember/component","@ember/template-factory","@ember/object","I18n","discourse/helpers/category-link","discourse-common/utils/decorators","discourse-common/lib/get-url","discourse-common/lib/icon-library"],(function(e,t,i,n,r,o,s,l,a){var u,c
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"yR4ighgw",block:'[[[10,0],[14,1,"suggested-topics"],[14,0,"suggested-topics"],[14,"role","complementary"],[14,"aria-labelledby","suggested-topics-title"],[12],[1,"\\n  "],[8,[39,0],null,[["@id","@selector"],["suggested_topics",".user-tip-reference"]],null],[1,"\\n\\n  "],[10,"h3"],[14,1,"suggested-topics-title"],[14,0,"suggested-topics-title"],[12],[1,"\\n    "],[1,[28,[35,1],[[30,0,["suggestedTitleLabel"]]],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"topics"],[12],[1,"\\n"],[41,[30,0,["topic","isPrivateMessage"]],[[[1,"      "],[8,[39,3],null,[["@hideCategory","@showPosters","@topics"],["true","true",[30,0,["topic","suggestedTopics"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,3],null,[["@topics"],[[30,0,["topic","suggestedTopics"]]]],null],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n\\n  "],[10,"h3"],[14,0,"suggested-topics-message"],[12],[1,"\\n    "],[1,[28,[35,4],[[30,0,["browseMoreMessage"]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["below-suggested-topics","div",[28,[37,6],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n"],[13]],[],false,["user-tip","i18n","if","basic-topic-list","html-safe","plugin-outlet","hash"]]',moduleName:"discourse/components/suggested-topics.hbs",isStrictMode:!1})
var p,m,h,f,g,b,y=(0,t.setComponentTemplate)(d,t.default.extend((u=(0,s.default)("topic","pmTopicTrackingState.isTracking","pmTopicTrackingState.statesModificationCounter","topicTrackingState.messageCount"),c={tagName:"",suggestedTitleLabel:(0,n.computed)("topic",(function(){const e=this.currentUser&&this.currentUser.pmPath(this.topic)
return this.topic.get("isPrivateMessage")&&e?"suggested_topics.pm_title":"suggested_topics.title"})),browseMoreMessage(e){return e.isPrivateMessage?this._privateMessageBrowseMoreMessage(e):this._topicBrowseMoreMessage(e)},_privateMessageBrowseMoreMessage(e){const t=this.currentUser.username,i=e.suggested_group_name,n=i?"group":"user",o=this.pmTopicTrackingState.lookupCount("unread",{inboxFilter:n,groupName:i}),s=this.pmTopicTrackingState.lookupCount("new",{inboxFilter:n,groupName:i})
if(o+s>0){const e=o>0&&s>0
return i?r.default.messageFormat("user.messages.read_more_group_pm_MF",{HAS_UNREAD_AND_NEW:e,UNREAD:o,NEW:s,username:t,groupName:i,groupLink:this._groupLink(t,i),basePath:(0,l.default)("")}):r.default.messageFormat("user.messages.read_more_personal_pm_MF",{HAS_UNREAD_AND_NEW:e,UNREAD:o,NEW:s,username:t,basePath:(0,l.default)("")})}return i?r.default.t("user.messages.read_more_in_group",{groupLink:this._groupLink(t,i)}):r.default.t("user.messages.read_more",{basePath:(0,l.default)(""),username:t})},_topicBrowseMoreMessage(e){let t=e.get("category")
t&&(0,n.get)(t,"id")===this.site.uncategorized_category_id&&(t=null)
let i=0,s=0
return this.currentUser&&(i=this.topicTrackingState.countUnread(),s=this.topicTrackingState.countNew()),s+i>0?r.default.messageFormat("topic.read_more_MF",{HAS_UNREAD_AND_NEW:i>0&&s>0,UNREAD:i,NEW:s,HAS_CATEGORY:!!t,categoryLink:t?(0,o.categoryBadgeHTML)(t):null,basePath:(0,l.default)("")}):t?r.default.t("topic.read_more_in_category",{categoryLink:(0,o.categoryBadgeHTML)(t),latestLink:(0,l.default)("/latest")}):r.default.t("topic.read_more",{categoryLink:(0,l.default)("/categories"),latestLink:(0,l.default)("/latest")})},_groupLink:(e,t)=>`<a class="group-link" href="${(0,l.default)(`/u/${e}/messages/group/${t}`)}">${(0,a.iconHTML)("users")} ${t}</a>`},p=c,m="browseMoreMessage",h=[u],f=Object.getOwnPropertyDescriptor(c,"browseMoreMessage"),g=c,b={},Object.keys(f).forEach((function(e){b[e]=f[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=h.slice().reverse().reduce((function(e,t){return t(p,m,e)||e}),b),g&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(g):void 0,b.initializer=void 0),void 0===b.initializer&&(Object.defineProperty(p,m,b),b=null),c)))
e.default=y})),define("discourse/components/table-header-toggle",["exports","@ember/component","@ember/template-factory","discourse-common/lib/icon-library","@ember/template","@ember/runloop","discourse-common/utils/decorators","I18n"],(function(e,t,i,n,r,o,s,l){var a,u
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"mJT5cJoN",block:'[[[10,0],[14,0,"header-contents"],[15,1,[30,0,["id"]]],[14,"role","button"],[14,"tabindex","0"],[15,"aria-label",[30,0,["ariaLabel"]]],[15,"aria-pressed",[30,0,["pressedState"]]],[12],[1,"\\n\\n  "],[18,1,null],[1,"\\n  "],[10,1],[14,0,"text"],[12],[1,"\\n    "],[1,[28,[35,1],null,[["field","labelKey","icon","translated"],[[30,0,["field"]],[30,0,["labelKey"]],[30,0,["icon"]],[30,0,["translated"]]]]]],[1,"\\n    "],[1,[30,0,["chevronIcon"]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["&default"],false,["yield","directory-table-header-title"]]',moduleName:"discourse/components/table-header-toggle.hbs",isStrictMode:!1})
var d,p,m,h,f,g,b=(0,t.setComponentTemplate)(c,t.default.extend((a=(0,s.default)("order","field","asc"),u={tagName:"div",classNames:["directory-table__column-header","sortable"],attributeBindings:["title","colspan","ariaSort:aria-sort","role"],role:"columnheader",labelKey:null,chevronIcon:null,columnIcon:null,translated:!1,automatic:!1,onActiveRender:null,pressedState:null,ariaLabel:null,ariaSort(){return this.order===this.field?this.asc?"ascending":"descending":"none"},toggleProperties(){this.order===this.field?this.set("asc",!this.asc||null):this.setProperties({order:this.field,asc:null})},toggleChevron(){if(this.order===this.field){let e=(0,n.iconHTML)(this.asc?"chevron-up":"chevron-down")
this.set("chevronIcon",(0,r.htmlSafe)(`${e}`))}else this.set("chevronIcon",null)},click(){this.toggleProperties()},keyPress(e){13===e.which&&this.toggleProperties()},didReceiveAttrs(){this._super(...arguments),this.automatic||this.translated||this.set("labelKey",this.field),this.set("id",`table-header-toggle-${this.field.replace(/\s/g,"")}`),this.toggleChevron(),this._updateA11yAttributes()},didRender(){this.onActiveRender&&this.chevronIcon&&this.onActiveRender(this.element)},_updateA11yAttributes(){let e=""
const t=this.order===this.field
if("heart"===this.icon&&(e+=`${l.default.t("likes_lowercase",{count:2})} `),this.translated)e+=this.field
else{const t=this.labelKey||`directory.${this.field}`
e+=l.default.t(t+"_long",{defaultValue:l.default.t(t)})}this.set("ariaLabel",l.default.t("directory.sort.label",{criteria:e})),t?(this.asc?this.set("pressedState","mixed"):this.set("pressedState","true"),this._focusHeader()):this.set("pressedState","false")},_focusHeader(){(0,o.schedule)("afterRender",(()=>{document.getElementById(this.id)?.focus()}))}},d=u,p="ariaSort",m=[a],h=Object.getOwnPropertyDescriptor(u,"ariaSort"),f=u,g={},Object.keys(h).forEach((function(e){g[e]=h[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=m.slice().reverse().reduce((function(e,t){return t(d,p,e)||e}),g),f&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(f):void 0,g.initializer=void 0),void 0===g.initializer&&(Object.defineProperty(d,p,g),g=null),u)))
e.default=b})),define("discourse/components/tag-drop-link",["exports","@ember/component","@ember/template-factory","discourse/lib/url","discourse-common/utils/decorators","discourse-common/lib/get-url"],(function(e,t,i,n,r,o){var s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"vzIVmx5d",block:'[[[1,[30,0,["tagId"]]]],[],false,[]]',moduleName:"discourse/components/tag-drop-link.hbs",isStrictMode:!1})
var d=(0,t.setComponentTemplate)(c,t.default.extend((s=(0,r.default)("tagId","category"),l=(0,r.default)("tagId"),u(a={tagName:"a",classNameBindings:[":tag-badge-wrapper",":badge-wrapper",":bullet","tagClass"],attributeBindings:["href"],href(e,t){let i
return i=t?"/tags"+t.path+"/"+e:"/tag/"+e,(0,o.default)(i)},tagClass:e=>"tag-"+e,click(e){return e.preventDefault(),n.default.routeTo(this.href),!0}},"href",[s],Object.getOwnPropertyDescriptor(a,"href"),a),u(a,"tagClass",[l],Object.getOwnPropertyDescriptor(a,"tagClass"),a),a)))
e.default=d})),define("discourse/components/tag-groups-form",["exports","@ember/component","@ember/template-factory","discourse/models/group","I18n","discourse/models/permission-type","discourse/mixins/buffered-content","discourse-common/utils/decorators","@ember/service","@ember/utils"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p
function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,i.createTemplateFactory)({id:"ItayR27x",block:'[[[10,"section"],[14,0,"group-name"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["tagging.groups.name_placeholder"],null]],[13],[1,"\\n  "],[10,0],[12],[8,[39,1],null,[["@value"],[[30,0,["buffered","name"]]]],null],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-tags-list"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["tagging.groups.tags_label"],null]],[13],[10,"br"],[12],[13],[1,"\\n  "],[8,[39,2],null,[["@tags","@everyTag","@unlimitedTagCount","@excludeSynonyms","@options"],[[30,0,["buffered","tag_names"]],true,true,true,[28,[37,3],null,[["allowAny","filterPlaceholder"],[true,"tagging.groups.tags_placeholder"]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"parent-tag-section"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["tagging.groups.parent_tag_label"],null]],[13],[1,"\\n  "],[10,0],[12],[1,"\\n    "],[8,[39,2],null,[["@tags","@everyTag","@excludeSynonyms","@options"],[[30,0,["buffered","parent_tag_name"]],true,true,[28,[37,3],null,[["allowAny","filterPlaceholder","maximum"],[true,"tagging.groups.parent_tag_placeholder",1]]]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"description"],[12],[1,[28,[35,0],["tagging.groups.parent_tag_description"],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-one-per-topic"],[12],[1,"\\n  "],[10,"label"],[12],[1,"\\n    "],[8,[39,4],[[24,3,"onepertopic"]],[["@type","@checked"],["checkbox",[30,0,["buffered","one_per_topic"]]]],null],[1,"\\n    "],[1,[28,[35,0],["tagging.groups.one_per_topic_label"],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-visibility"],[12],[1,"\\n  "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n    "],[8,[39,5],null,[["@class","@name","@value","@id","@selection","@onChange"],["tag-permissions-choice","tag-permissions-choice","public","public-permission",[30,0,["buffered","permissionName"]],[28,[37,6],[[30,0],"setPermissionsType"],null]]],null],[1,"\\n\\n    "],[10,"label"],[14,0,"radio"],[14,"for","public-permission"],[12],[1,"\\n      "],[1,[28,[35,0],["tagging.groups.everyone_can_use"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n    "],[8,[39,5],null,[["@class","@name","@value","@id","@selection","@onChange"],["tag-permissions-choice","tag-permissions-choice","visible","visible-permission",[30,0,["buffered","permissionName"]],[28,[37,6],[[30,0],"setPermissionsType"],null]]],null],[1,"\\n\\n    "],[10,"label"],[14,0,"radio"],[14,"for","visible-permission"],[12],[1,"\\n      "],[1,[28,[35,0],["tagging.groups.usable_only_by_groups"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n      "],[8,[39,7],null,[["@content","@value","@labelProperty","@onChange","@options"],[[30,0,["allGroups"]],[30,0,["selectedGroupIds"]],"name",[28,[37,6],[[30,0],"setPermissionsGroups"],null],[28,[37,3],null,[["filterPlaceholder"],["tagging.groups.select_groups_placeholder"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n    "],[8,[39,5],null,[["@class","@name","@value","@id","@selection","@onChange"],["tag-permissions-choice","tag-permissions-choice","private","private-permission",[30,0,["buffered","permissionName"]],[28,[37,6],[[30,0],"setPermissionsType"],null]]],null],[1,"\\n\\n    "],[10,"label"],[14,0,"radio"],[14,"for","private-permission"],[12],[1,"\\n      "],[1,[28,[35,0],["tagging.groups.visible_only_to_groups"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n      "],[8,[39,7],null,[["@content","@value","@labelProperty","@onChange","@options"],[[30,0,["allGroups"]],[30,0,["selectedGroupIds"]],"name",[28,[37,6],[[30,0],"setPermissionsGroups"],null],[28,[37,3],null,[["filterPlaceholder"],["tagging.groups.select_groups_placeholder"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"tag-group-controls"],[12],[1,"\\n  "],[8,[39,8],null,[["@class","@action","@disabled","@label"],["btn-primary",[28,[37,6],[[30,0],"save"],null],[30,0,["buffered","isSaving"]],"tagging.groups.save"]],null],[1,"\\n\\n  "],[8,[39,8],null,[["@class","@action","@disabled","@icon","@label"],["btn-danger",[28,[37,6],[[30,0],"destroy"],null],[30,0,["buffered","isNew"]],"far-trash-alt","tagging.groups.delete"]],null],[1,"\\n"],[13]],[],false,["i18n","text-field","tag-chooser","hash","input","radio-button","action","group-chooser","d-button"]]',moduleName:"discourse/components/tag-groups-form.hbs",isStrictMode:!1})
var f=(0,t.setComponentTemplate)(h,t.default.extend((0,s.bufferedProperty)("model"),(c=(0,l.default)("buffered.name","buffered.tag_names","buffered.permissions"),d=(0,l.default)("buffered.permissions","allGroups"),p={router:(0,a.inject)(),dialog:(0,a.inject)(),tagName:"",allGroups:null,init(){this._super(...arguments),this.setGroupOptions()},setGroupOptions(){n.default.findAll().then((e=>{this.set("allGroups",e)}))},cannotSave(e,t,i){return(0,u.isEmpty)(e)||(0,u.isEmpty)(t)||!this.everyoneSelected(i)&&(0,u.isEmpty)(this.selectedGroupNames(i))},selectedGroupIds(e,t){if(!e||!t)return[]
const i=Object.keys(e)
let n=[]
return t.forEach((e=>{i.includes(e.name)&&n.push(e.id)})),n},everyoneSelected:e=>!e||e.everyone===o.default.FULL,selectedGroupNames:e=>e?Object.keys(e).filter((e=>"everyone"!==e)):[],actions:{setPermissionsType(e){let t=Object.assign({},this.buffered.get("permissions"))
"private"===e?delete t.everyone:t.everyone="visible"===e?o.default.READONLY:o.default.FULL,this.buffered.set("permissions",t)},setPermissionsGroups(e){let t=Object.assign({},this.buffered.get("permissions"))
this.allGroups.forEach((i=>{e.includes(i.id)?t[i.name]=o.default.FULL:delete t[i.name]})),this.buffered.set("permissions",t)},save(){if(this.cannotSave)return this.dialog.alert(r.default.t("tagging.groups.cannot_save")),!1
const e=this.buffered.getProperties("name","tag_names","parent_tag_name","one_per_topic","permissions")
e.permissions&&e.permissions.everyone!==o.default.FULL||(e.permissions={everyone:o.default.FULL}),this.model.save(e).then((()=>{this.commitBuffer(),this.onSave?this.onSave():this.router.transitionTo("tagGroups.index")}))},destroy(){return this.dialog.yesNoConfirm({message:r.default.t("tagging.groups.confirm_delete"),didConfirm:()=>{this.model.destroyRecord().then((()=>{this.onDestroy&&this.onDestroy()}))}})}}},m(p,"cannotSave",[c],Object.getOwnPropertyDescriptor(p,"cannotSave"),p),m(p,"selectedGroupIds",[d],Object.getOwnPropertyDescriptor(p,"selectedGroupIds"),p),p)))
e.default=f})),define("discourse/components/tag-info",["exports","@ember/component","@ember/template-factory","@ember/object/computed","I18n","discourse/lib/ajax","discourse-common/utils/decorators","@ember/utils","discourse/lib/ajax-error","@ember/service","@ember/object","@ember/template"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f,g
function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,i.createTemplateFactory)({id:"Ii4iYFiV",block:'[[[10,"section"],[14,0,"tag-info"],[12],[1,"\\n"],[41,[30,0,["tagInfo"]],[[[1,"    "],[10,0],[14,0,"tag-name"],[12],[1,"\\n"],[41,[30,0,["editing"]],[[[1,"        "],[10,0],[14,0,"edit-tag-wrapper"],[12],[1,"\\n          "],[8,[39,1],null,[["@id","@value","@maxlength","@input","@autofocus"],["edit-name",[28,[37,2],[[30,0,["tagInfo","name"]]],null],[30,0,["siteSettings","max_tag_length"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["newTagName"]]],null]],[["value"],["target.value"]]],"true"]],null],[1,"\\n          "],[8,[39,1],null,[["@id","@value","@placeholder","@maxlength","@input","@autofocus"],["edit-description",[28,[37,2],[[30,0,["tagInfo","description"]]],null],[28,[37,5],["tagging.description"],null],280,[28,[37,3],[[30,0],[28,[37,4],[[30,0,["newTagDescription"]]],null]],[["value"],["target.value"]]],"true"]],null],[1,"\\n\\n          "],[10,0],[14,0,"edit-controls"],[12],[1,"\\n"],[41,[51,[30,0,["updateDisabled"]]],[[[1,"              "],[8,[39,7],null,[["@action","@class","@icon","@ariaLabel"],[[28,[37,3],[[30,0],"finishedEditing"],null],"btn-primary submit-edit","check","tagging.save"]],null],[1,"\\n"]],[]],null],[1,"            "],[8,[39,7],null,[["@action","@class","@icon","@ariaLabel"],[[28,[37,3],[[30,0],"cancelEditing"],null],"btn-default cancel-edit","times","cancel"]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,0],[14,0,"tag-name-wrapper"],[12],[1,"\\n          "],[1,[28,[35,8],[[30,0,["tagInfo","name"]]],[["tagName"],["div"]]]],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1,"            "],[11,3],[24,6,""],[24,0,"edit-tag"],[16,"title",[28,[37,5],["tagging.edit_tag"],null]],[4,[38,9],["click",[30,0,["edit"]]],null],[12],[1,[28,[35,10],["pencil-alt"],null]],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n        "],[10,0],[14,0,"tag-description-wrapper"],[12],[1,"\\n          "],[1,[30,0,["tagInfo","description"]]],[1,"\\n        "],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"tag-associations"],[12],[1,"\\n"],[41,[30,0,["tagInfo","tag_group_names"]],[[[1,"        "],[1,[30,0,["tagGroupsInfo"]]],[1,"\\n"]],[]],null],[41,[30,0,["tagInfo","categories"]],[[[1,"        "],[1,[30,0,["categoriesInfo"]]],[1,"\\n        "],[10,"br"],[12],[13],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["tagInfo","categories"]]],null]],null],null,[[[1,"          "],[1,[28,[35,13],[[30,1]],null]],[1,"\\n"]],[1]],null]],[]],null],[41,[30,0,["nothingToShow"]],[[[41,[30,0,["tagInfo","category_restricted"]],[[[1,"          "],[1,[28,[35,5],["tagging.category_restricted"],null]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,14],[[28,[37,5],["tagging.default_info"],null]],null]],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1,"            "],[1,[28,[35,14],[[28,[37,5],["tagging.staff_info"],[["basePath"],[[28,[37,15],null,null]]]]],null]],[1,"\\n"]],[]],null]],[]]]],[]],null],[1,"    "],[13],[1,"\\n"],[41,[30,0,["tagInfo","synonyms"]],[[[1,"      "],[10,0],[14,0,"synonyms-list"],[12],[1,"\\n        "],[10,"h3"],[12],[1,[28,[35,5],["tagging.synonyms"],null]],[13],[1,"\\n        "],[10,0],[12],[1,[28,[35,14],[[28,[37,5],["tagging.synonyms_description"],[["base_tag_name"],[[30,0,["tagInfo","name"]]]]]],null]],[13],[1,"\\n        "],[10,0],[14,0,"tag-list"],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["tagInfo","synonyms"]]],null]],null],null,[[[1,"            "],[10,0],[14,0,"tag-box"],[12],[1,"\\n              "],[1,[28,[35,8],[[30,2,["id"]]],[["pmOnly","tagName"],[[30,2,["pmOnly"]],"div"]]]],[1,"\\n"],[41,[30,0,["editSynonymsMode"]],[[[1,"                "],[11,3],[24,6,""],[24,0,"unlink-synonym"],[4,[38,9],["click",[28,[37,16],[[30,0,["unlinkSynonym"]],[30,2]],null]],null],[12],[1,"\\n                  "],[1,[28,[35,10],["unlink"],[["title"],["tagging.remove_synonym"]]]],[1,"\\n                "],[13],[1,"\\n                "],[11,3],[24,6,""],[24,0,"delete-synonym"],[4,[38,9],["click",[28,[37,16],[[30,0,["deleteSynonym"]],[30,2]],null]],null],[12],[1,"\\n                  "],[1,[28,[35,10],["far-trash-alt"],[["title"],["tagging.delete_tag"]]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["editSynonymsMode"]],[[[1,"      "],[10,"section"],[14,0,"add-synonyms field"],[12],[1,"\\n        "],[10,"label"],[14,"for","add-synonyms"],[12],[1,[28,[35,5],["tagging.add_synonyms_label"],null]],[13],[1,"\\n        "],[10,0],[12],[1,"\\n          "],[8,[39,17],null,[["@id","@tags","@blockedTags","@everyTag","@excludeSynonyms","@excludeHasSynonyms","@unlimitedTagCount","@allowCreate"],["add-synonyms",[30,0,["newSynonyms"]],[28,[37,18],[[30,0,["tagInfo","name"]]],null],true,true,true,true,true]],null],[1,"\\n          "],[8,[39,7],null,[["@class","@action","@disabled","@icon"],["ok",[28,[37,3],[[30,0],"addSynonyms"],null],[30,0,["addSynonymsDisabled"]],"check"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canAdminTag"]],[[[1,"      "],[10,"section"],[12],[1,"\\n        "],[8,[39,19],null,[["@name","@outletArgs"],["tag-custom-settings",[28,[37,20],null,[["tag"],[[30,0,["tagInfo"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"tag-actions"],[12],[1,"\\n        "],[8,[39,7],null,[["@class","@action","@icon","@label","@id"],["btn-default",[28,[37,3],[[30,0],"toggleEditControls"],null],"cog","tagging.edit_synonyms","edit-synonyms"]],null],[1,"\\n"],[41,[30,0,["deleteAction"]],[[[1,"          "],[8,[39,7],null,[["@class","@action","@icon","@label","@id"],["btn-danger delete-tag",[28,[37,3],[[30,0],"deleteTag"],null],"far-trash-alt","tagging.delete_tag","delete-tag"]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["loading"]],[[[1,"    "],[10,0],[12],[1,[28,[35,5],["loading"],null]],[13],[1,"\\n"]],[]],null],[13]],["category","tag"],false,["if","text-field","readonly","action","mut","i18n","unless","d-button","discourse-tag","on","d-icon","each","-track-array","category-link","html-safe","base-path","fn","tag-chooser","array","plugin-outlet","hash"]]',moduleName:"discourse/components/tag-info.hbs",isStrictMode:!1})
var _=(0,t.setComponentTemplate)(y,t.default.extend((p=(0,s.default)("tagInfo.tag_group_names"),m=(0,s.default)("tagInfo.categories"),h=(0,s.default)("tagInfo.tag_group_names","tagInfo.categories","tagInfo.synonyms"),f=(0,s.default)("newTagName"),g={dialog:(0,u.inject)(),tagName:"",loading:!1,tagInfo:null,newSynonyms:null,showEditControls:!1,canAdminTag:(0,n.reads)("currentUser.staff"),editSynonymsMode:(0,n.and)("canAdminTag","showEditControls"),editing:!1,newTagName:null,newTagDescription:null,router:(0,u.inject)(),tagGroupsInfo:e=>r.default.t("tagging.tag_groups_info",{count:e.length,tag_groups:e.join(", ")}),categoriesInfo:e=>r.default.t("tagging.category_restrictions",{count:e.length}),nothingToShow:(e,t,i)=>(0,l.isEmpty)(e)&&(0,l.isEmpty)(t)&&(0,l.isEmpty)(i),updateDisabled(e){const t=new RegExp(this.site.tags_filter_regexp,"g")
return 0===(e=e?e.replace(t,"").trim():"").length},didInsertElement(){this._super(...arguments),this.loadTagInfo()},loadTagInfo(){if(!this.loading)return this.set("loading",!0),this.store.find("tag-info",this.tag.id).then((e=>{this.set("tagInfo",e),this.set("tagInfo.synonyms",e.synonyms.map((e=>this.store.createRecord("tag",e))))})).finally((()=>this.set("loading",!1))).catch(a.popupAjaxError)},edit(e){e?.preventDefault(),this.setProperties({editing:!0,newTagName:this.tag.id,newTagDescription:this.tagInfo.description})},unlinkSynonym(e,t){t?.preventDefault(),(0,o.ajax)(`/tag/${this.tagInfo.name}/synonyms/${e.id}`,{type:"DELETE"}).then((()=>this.tagInfo.synonyms.removeObject(e))).catch(a.popupAjaxError)},deleteSynonym(e,t){t?.preventDefault(),this.dialog.yesNoConfirm({message:r.default.t("tagging.delete_synonym_confirm",{tag_name:e.text}),didConfirm:()=>e.destroyRecord().then((()=>this.tagInfo.synonyms.removeObject(e))).catch(a.popupAjaxError)})},actions:{toggleEditControls(){this.toggleProperty("showEditControls")},cancelEditing(){this.set("editing",!1)},finishedEditing(){const e=this.tag.id
this.tag.update({id:this.newTagName,description:this.newTagDescription}).then((t=>{this.set("editing",!1),this.tagInfo.set("description",this.newTagDescription),t.responseJson.tag&&e!==t.responseJson.tag.id&&this.router.transitionTo("tag.show",t.responseJson.tag.id)})).catch(a.popupAjaxError)},deleteTag(){this.deleteAction(this.tagInfo)},addSynonyms(){this.dialog.confirm({message:(0,d.htmlSafe)(r.default.t("tagging.add_synonyms_explanation",{count:this.newSynonyms.length,tag_name:this.tagInfo.name})),didConfirm:()=>(0,o.ajax)(`/tag/${this.tagInfo.name}/synonyms`,{type:"POST",data:{synonyms:this.newSynonyms}}).then((e=>{e.success?(this.set("newSynonyms",null),this.loadTagInfo()):e.failed_tags?this.dialog.alert(r.default.t("tagging.add_synonyms_failed",{tag_names:Object.keys(e.failed_tags).join(", ")})):this.dialog.alert(r.default.t("generic_error"))})).catch(a.popupAjaxError)})}}},b(g,"tagGroupsInfo",[p],Object.getOwnPropertyDescriptor(g,"tagGroupsInfo"),g),b(g,"categoriesInfo",[m],Object.getOwnPropertyDescriptor(g,"categoriesInfo"),g),b(g,"nothingToShow",[h],Object.getOwnPropertyDescriptor(g,"nothingToShow"),g),b(g,"updateDisabled",[f],Object.getOwnPropertyDescriptor(g,"updateDisabled"),g),b(g,"edit",[c.action],Object.getOwnPropertyDescriptor(g,"edit"),g),b(g,"unlinkSynonym",[c.action],Object.getOwnPropertyDescriptor(g,"unlinkSynonym"),g),b(g,"deleteSynonym",[c.action],Object.getOwnPropertyDescriptor(g,"deleteSynonym"),g),g)))
e.default=_})),define("discourse/components/tag-list",["exports","@ember/component","@ember/template-factory","discourse/models/category","I18n","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r,o,s){var l,a,u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"8u9V0Lt0",block:'[[[41,[30,0,["title"]],[[[1,"  "],[10,"h3"],[12],[1,[30,0,["title"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["category"]],[[[1,"  "],[8,[39,1],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["tagGroupName"]],[[[1,"  "],[10,"h3"],[12],[1,[30,0,["tagGroupName"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,3],[[28,[37,3],[[30,0,["sortedTags"]]],null]],null],null,[[[1,"  "],[10,0],[14,0,"tag-box"],[12],[1,"\\n    "],[1,[28,[35,4],[[30,1,["id"]]],[["description","isPrivateMessage","pmOnly","tagsForUser"],[[30,1,["description"]],[30,0,["isPrivateMessage"]],[30,1,["pmOnly"]],[30,0,["tagsForUser"]]]]]],[1,"\\n"],[41,[30,1,["pmOnly"]],[[[1,"      "],[1,[28,[35,5],["envelope"],null]],[1,"\\n"]],[]],null],[41,[30,1,["totalCount"]],[[[1,"      "],[10,1],[14,0,"tag-count"],[12],[1,"\\n        x\\n        "],[1,[30,1,["totalCount"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[1]],null],[10,0],[14,0,"clearfix"],[12],[13]],["tag"],false,["if","category-title-link","each","-track-array","discourse-tag","d-icon"]]',moduleName:"discourse/components/tag-list.hbs",isStrictMode:!1})
var h=(0,t.setComponentTemplate)(m,t.default.extend((l=(0,o.default)("titleKey"),a=(0,o.default)("categoryId"),u=(0,o.default)("category.fullSlug"),c=(0,o.default)("tagGroupName"),p(d={classNameBindings:[":tags-list",":tag-list","categoryClass","tagGroupNameClass"],isPrivateMessage:!1,sortedTags:(0,s.sort)("tags","sortProperties"),title:e=>e&&r.default.t(e),category:e=>e&&n.default.findById(e),categoryClass:e=>e&&`tag-list-${e}`,tagGroupNameClass(e){if(e)return(e=e.replace(/\s+/g,"-").replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~]/g,"").toLowerCase())&&`tag-group-${e}`}},"title",[l],Object.getOwnPropertyDescriptor(d,"title"),d),p(d,"category",[a],Object.getOwnPropertyDescriptor(d,"category"),d),p(d,"categoryClass",[u],Object.getOwnPropertyDescriptor(d,"categoryClass"),d),p(d,"tagGroupNameClass",[c],Object.getOwnPropertyDescriptor(d,"tagGroupNameClass"),d),d)))
e.default=h})),define("discourse/components/tags-admin-dropdown",["exports","select-kit/components/dropdown-select-box","I18n","@ember/object"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({pluginApiIdentifiers:["tags-admin-dropdown"],classNames:["tags-admin-dropdown"],actionsMapping:null,selectKitOptions:{icons:["wrench","caret-down"],showFullTitle:!1},content:(0,n.computed)((function(){return[{id:"manageGroups",name:i.default.t("tagging.manage_groups"),description:i.default.t("tagging.manage_groups_description"),icon:"tags"},{id:"uploadTags",name:i.default.t("tagging.upload"),description:i.default.t("tagging.upload_description"),icon:"upload"},{id:"deleteUnusedTags",name:i.default.t("tagging.delete_unused"),description:i.default.t("tagging.delete_unused_description"),icon:"trash-alt"}]})),actions:{onChange(e){const t=this.actionsMapping[e]
t&&t()}}})
e.default=r})),define("discourse/components/tap-tile-grid",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"Jm6vymle",block:'[[[18,1,[[28,[37,1],null,[["activeTile"],[[30,0,["activeTile"]]]]]]]],["&default"],false,["yield","hash"]]',moduleName:"discourse/components/tap-tile-grid.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({classNames:["tap-tile-grid"],activeTile:null}))
e.default=r}))
define("discourse/components/tap-tile",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse/lib/computed"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"YzzhQB97",block:'[[[41,[30,0,["icon"]],[[[1,"  "],[1,[28,[35,1],[[30,0,["icon"]]],null]],[1,"\\n"]],[]],null],[18,1,null]],["&default"],false,["if","d-icon","yield"]]',moduleName:"discourse/components/tap-tile.hbs",isStrictMode:!1})
var s=(0,t.setComponentTemplate)(o,t.default.extend({init(){this._super(...arguments),this.set("elementId",`tap_tile_${this.tileId}`)},classNames:["tap-tile"],classNameBindings:["active"],attributeBindings:["role","ariaPressed","tabIndex"],role:"button",tabIndex:0,ariaPressed:(0,n.reads)("active"),click(){this.onChange(this.tileId)},keyDown(e){"Enter"===e.key&&this.onChange(this.tileId)},active:(0,r.propertyEqual)("activeTile","tileId")}))
e.default=s})),define("discourse/components/text-field",["exports","@ember/runloop","discourse/lib/text-direction","I18n","@ember/legacy-built-in-components","discourse-common/utils/decorators","discourse-common/lib/debounce"],(function(e,t,i,n,r,o,s){var l,a,u
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c,d,p,m,h,f,g=r.TextField.extend((l=(0,o.default)("placeholderKey"),a={attributeBindings:["autocorrect","autocapitalize","autofocus","maxLength","dir","aria-label","aria-controls"],init(){this._super(...arguments),this._prevValue=null,this._timer=null},didReceiveAttrs(){this._super(...arguments),this._prevValue=this.value},didUpdateAttrs(){this._super(...arguments),this._prevValue!==this.value&&(this.onChangeImmediate&&(0,t.next)((()=>this.onChangeImmediate(this.value))),this.onChange&&((0,t.cancel)(this._timer),this._timer=(0,s.default)(this,this._debouncedChange,500)))},_debouncedChange(){(0,t.next)((()=>this.onChange(this.value)))},get dir(){if(this.siteSettings.support_mixed_text_direction){const e=this.get("value")
return e&&(0,i.isRTL)(e)?"rtl":e&&(0,i.isLTR)(e)?"ltr":(0,i.siteDir)()}},willDestroyElement(){this._super(...arguments),(0,t.cancel)(this._timer)},placeholder:{get(){return this._placeholder?this._placeholder:this.placeholderKey?n.default.t(this.placeholderKey):""},set(e){return this._placeholder=e}}},c=a,d="placeholder",p=[l],u=(u=Object.getOwnPropertyDescriptor(a,"placeholder"))?u.value:void 0,m={enumerable:!0,configurable:!0,writable:!0,initializer:function(){return u}},h=a,f={},Object.keys(m).forEach((function(e){f[e]=m[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),f),h&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(h):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(c,d,f),f=null),a))
e.default=g})),define("discourse/components/text-overflow",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"5pDKnoM2",block:'[[[1,[28,[35,0],[[30,0,["text"]]],null]]],[],false,["html-safe"]]',moduleName:"discourse/components/text-overflow.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/time-input",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/utils","@ember/template"],(function(e,t,i,n,r,o){var s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"DcLZyXCT",block:'[[[8,[39,0],null,[["@value","@content","@onChange","@options"],[[30,0,["time"]],[30,0,["timeOptions"]],[28,[37,1],[[30,0],"onChangeTime"],null],[28,[37,2],null,[["translatedNone","allowAny","filterable","autoInsertNoneItem","translatedFilterPlaceholder"],["--:--",true,false,false,"--:--"]]]]],null]],[],false,["combo-box","action","hash"]]',moduleName:"discourse/components/time-input.hbs",isStrictMode:!1})
function u(e){return{hours:Math.floor(e/60),minutes:e%60}}var c=(0,t.setComponentTemplate)(a,t.default.extend((s={classNames:["d-time-input"],hours:null,minutes:null,relativeDate:null,didReceiveAttrs(){this._super(...arguments),(0,r.isPresent)(this.date)&&this.setProperties({hours:this.date.hours(),minutes:this.date.minutes()}),(0,r.isPresent)(this.date)||(0,r.isPresent)(this.attrs.hours)||(0,r.isPresent)(this.attrs.minutes)||this.setProperties({hours:null,minutes:null})},minimumTime:(0,n.computed)("relativeDate","date",(function(){if(this.relativeDate)return this.date?this.date.isSame(this.relativeDate,"day")?60*this.relativeDate.hours()+this.relativeDate.minutes():0:60*this.relativeDate.hours()+this.relativeDate.minutes()})),timeOptions:(0,n.computed)("minimumTime","hours","minutes",(function(){let e=[]
let t=0,i=this.minimumTime?this.minimumTime>this.time?this.time:this.minimumTime:0
for(e.push(i);t<95;){if(i+=this.minimumTime?t<=3?15:30:15,i>1440)break
e.push(i),t++}return this.time&&!e.includes(this.time)&&(e=[this.time].concat(e)),e=e.sort(((e,t)=>e-t)),e.map((e=>{let t,i=function(e){const t=u(e)
return`${t.hours.toString().padStart(2,"0")}:${t.minutes.toString().padStart(2,"0")}`}(e)
if(this.date&&this.relativeDate){const n=this.date.clone().startOf("day").add(e,"minutes").diff(this.relativeDate,"minutes")
n<1440&&(t=(0,o.htmlSafe)(`${i} <small>(${function(e){const t=u(e)
let i=""
return t.hours?(i=`${t.hours}h`,t.minutes>0&&(i=`${i} ${t.minutes} min`)):i=`${t.minutes} min`,i}(n)})</small>`))}return{id:e,name:i,label:t,title:i}}))})),time:(0,n.computed)("minimumTime","hours","minutes",(function(){if((0,r.isPresent)(this.hours)&&(0,r.isPresent)(this.minutes))return 60*parseInt(this.hours,10)+parseInt(this.minutes,10)})),onFocusIn(e,t){e&&t.target&&t.target.select()},onChangeTime(e){if((0,r.isPresent)(e)&&this.onChange)if("string"==typeof e&&e.length){let[t,i]=e.split(":")
t&&i&&(t<0&&(t=0),t>23&&(t=23),i<0&&(i=0),i>59&&(i=59),this.onChange({hours:parseInt(t,10),minutes:parseInt(i,10)}))}else this.onChange({hours:u(e).hours,minutes:u(e).minutes})}},l(s,"onFocusIn",[n.action],Object.getOwnPropertyDescriptor(s,"onFocusIn"),s),l(s,"onChangeTime",[n.action],Object.getOwnPropertyDescriptor(s,"onChangeTime"),s),s)))
e.default=c})),define("discourse/components/time-shortcut-picker",["exports","@ember/component","@ember/template-factory","discourse/lib/time-utils","discourse/lib/time-shortcut","discourse-common/utils/decorators","I18n","@ember/object","@ember/object/computed"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"Wlkve3s+",block:'[[[8,[39,0],null,[["@activeTile"],[[30,0,["selectedShortcut"]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["options"]]],null]],null],null,[[[41,[51,[30,2,["hidden"]]],[[[1,"      "],[8,[39,4],null,[["@icon","@tileId","@activeTile","@onChange"],[[30,2,["icon"]],[30,2,["id"]],[30,1,["activeTile"]],[28,[37,5],[[30,0],"selectShortcut"],null]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"tap-tile-title"],[12],[1,[28,[35,6],[[30,2,["label"]]],null]],[13],[1,"\\n        "],[10,0],[14,0,"tap-tile-date"],[12],[1,[30,2,["timeFormatted"]]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["isCustomTimeShortcut"]],[[[41,[30,0,["customDatetimeSelected"]],[[[1,"        "],[10,0],[14,0,"control-group custom-date-time-wrap custom-input-wrap"],[12],[1,"\\n          "],[10,0],[14,0,"tap-tile-date-input"],[12],[1,"\\n            "],[1,[28,[35,8],["calendar-alt"],null]],[1,"\\n            "],[8,[39,9],null,[["@value","@defaultDate","@onSelect","@id"],[[30,0,["customDate"]],[30,0,["defaultCustomDate"]],[28,[37,5],[[30,0],[28,[37,10],[[30,0,["customDate"]]],null]],null],"custom-date"]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"tap-tile-time-input"],[12],[1,"\\n            "],[1,[28,[35,8],["far-clock"],null]],[1,"\\n            "],[8,[39,11],[[24,"placeholder","--:--"],[24,1,"custom-time"],[24,0,"time-input"]],[["@type","@value"],["time",[30,0,["customTime"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"control-group custom-date-time-wrap custom-relative-wrap"],[12],[1,"\\n          "],[10,"label"],[14,0,"control-label"],[14,"for","bookmark-relative-time-picker"],[12],[1,"\\n            "],[1,[28,[35,6],["relative_time_picker.relative"],null]],[1,"\\n          "],[13],[1,"\\n          "],[8,[39,12],null,[["@id","@onChange"],["bookmark-relative-time-picker",[28,[37,5],[[30,0],"relativeTimeChanged"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],null]],[2]],null]],[1]]]]]],["grid","option"],false,["tap-tile-grid","each","-track-array","unless","tap-tile","action","i18n","if","d-icon","date-picker-future","mut","input","relative-time-picker"]]',moduleName:"discourse/components/time-shortcut-picker.hbs",isStrictMode:!1}),g={"l t":{handler:"selectShortcut",args:[r.TIME_SHORTCUT_TYPES.LATER_TODAY]},"l w":{handler:"selectShortcut",args:[r.TIME_SHORTCUT_TYPES.LATER_THIS_WEEK]},"n d":{handler:"selectShortcut",args:[r.TIME_SHORTCUT_TYPES.TOMORROW]},"n b w":{handler:"selectShortcut",args:[r.TIME_SHORTCUT_TYPES.START_OF_NEXT_BUSINESS_WEEK]},"n m":{handler:"selectShortcut",args:[r.TIME_SHORTCUT_TYPES.NEXT_MONTH]},"c r":{handler:"selectShortcut",args:[r.TIME_SHORTCUT_TYPES.CUSTOM]},"n r":{handler:"selectShortcut",args:[r.TIME_SHORTCUT_TYPES.NONE]}}
var b=(0,t.setComponentTemplate)(f,t.default.extend((u=(0,o.on)("init"),c=(0,o.observes)("prefilledDatetime"),d=(0,o.observes)("customDate","customTime"),p=(0,o.default)("timeShortcuts","hiddenOptions","customLabels","userTimezone"),m={tagName:"",userTimezone:null,onTimeSelected:null,selectedShortcut:null,selectedTime:null,selectedDate:null,selectedDatetime:null,prefilledDatetime:null,hiddenOptions:null,customOptions:null,lastCustomDate:null,lastCustomTime:null,parsedLastCustomDatetime:null,customDate:null,customTime:null,_itsatrap:null,_setupPicker(){this.setProperties({userTimezone:this.currentUser.user_option.timezone,hiddenOptions:this.hiddenOptions||[],customOptions:this.customOptions||[],customLabels:this.customLabels||{}}),this.prefilledDatetime&&this.parsePrefilledDatetime(),this._bindKeyboardShortcuts()},prefilledDatetimeChanged(){this.prefilledDatetime?this.parsePrefilledDatetime():this.setProperties({customDate:null,customTime:null,selectedShortcut:null})},willDestroyElement(){this._super(...arguments),this._itsatrap.unbind(Object.keys(g))},parsePrefilledDatetime(){let e=(0,n.parseCustomDatetime)(this.prefilledDatetime,null,this.userTimezone)
if(e.isSame((0,n.laterToday)()))return this.set("selectedShortcut",r.TIME_SHORTCUT_TYPES.LATER_TODAY)
this.setProperties({customDate:e.format("YYYY-MM-DD"),customTime:e.format("HH:mm"),selectedShortcut:r.TIME_SHORTCUT_TYPES.CUSTOM})},_loadLastUsedCustomDatetime(){const e=this.keyValueStore.lastCustomTime,t=this.keyValueStore.lastCustomDate
if(e&&t){let i=(0,n.parseCustomDatetime)(t,e,this.userTimezone)
if(!i.isValid()||i<(0,n.now)(this.userTimezone))return
this.setProperties({lastCustomDate:t,lastCustomTime:e,parsedLastCustomDatetime:i})}},_bindKeyboardShortcuts(){Object.keys(g).forEach((e=>{this._itsatrap.bind(e,(()=>{let t=g[e]
return this.send(t.handler,...t.args),!1}))}))},customDatetimeSelected:(0,a.equal)("selectedShortcut",r.TIME_SHORTCUT_TYPES.CUSTOM),relativeTimeSelected:(0,a.equal)("selectedShortcut",r.TIME_SHORTCUT_TYPES.RELATIVE),customDatetimeFilled:(0,a.and)("customDate","customTime"),customDatetimeChanged(){this.customDatetimeFilled&&this.selectShortcut(r.TIME_SHORTCUT_TYPES.CUSTOM)},options(e,t,i,n){let o
this._loadLastUsedCustomDatetime(),o=e&&e.length?e:(0,r.defaultTimeShortcuts)(n),o=(0,r.hideDynamicTimeShortcuts)(o,n,this.siteSettings)
let s=(0,r.specialShortcutOptions)()
if(this.lastCustomDate&&this.lastCustomTime){let e=s.findBy("id",r.TIME_SHORTCUT_TYPES.LAST_CUSTOM)
e.time=this.parsedLastCustomDatetime,e.timeFormatKey="dates.long_no_year",e.hidden=!1}return o=o.concat(s),t.length>0&&o.forEach((e=>{t.includes(e.id)&&(e.hidden=!0)})),this._applyCustomLabels(o,i),o.forEach((e=>e.timeFormatted=(0,r.formatTime)(e))),o},relativeTimeChanged(e){let t=(0,n.now)(this.userTimezone).add(e,"minutes")
this.set("selectedDatetime",t),this.onTimeSelected&&this.onTimeSelected(r.TIME_SHORTCUT_TYPES.RELATIVE,t)},selectShortcut(e){if(this.options.filterBy("hidden").mapBy("id").includes(e))return
let t=null
if(e===r.TIME_SHORTCUT_TYPES.CUSTOM){const e=this._defaultCustomDateTime()
this.set("customDate",this.customDate||e.format("YYYY-MM-DD")),this.set("customTime",this.customTime||e.format("HH:mm"))
const i=(0,n.parseCustomDatetime)(this.customDate,this.customTime,this.userTimezone)
i.isValid()&&this.customDate&&(t=i,this.keyValueStore.lastCustomTime=this.customTime,this.keyValueStore.lastCustomDate=this.customDate)}else t=this.options.findBy("id",e).time
this.setProperties({selectedShortcut:e,selectedDatetime:t}),this.onTimeSelected&&this.onTimeSelected(e,t)},_applyCustomLabels(e,t){e.forEach((e=>{t[e.id]&&(e.label=t[e.id])}))},_formatTime(e){e.forEach((e=>{e.time&&e.timeFormatKey&&(e.timeFormatted=e.time.format(s.default.t(e.timeFormatKey)))}))},_defaultCustomDateTime(){return moment.tz(this.userTimezone).add(1,"hour")}},h(m,"_setupPicker",[u],Object.getOwnPropertyDescriptor(m,"_setupPicker"),m),h(m,"prefilledDatetimeChanged",[c],Object.getOwnPropertyDescriptor(m,"prefilledDatetimeChanged"),m),h(m,"customDatetimeChanged",[d],Object.getOwnPropertyDescriptor(m,"customDatetimeChanged"),m),h(m,"options",[p],Object.getOwnPropertyDescriptor(m,"options"),m),h(m,"relativeTimeChanged",[l.action],Object.getOwnPropertyDescriptor(m,"relativeTimeChanged"),m),h(m,"selectShortcut",[l.action],Object.getOwnPropertyDescriptor(m,"selectShortcut"),m),m)))
e.default=b})),define("discourse/components/toggle-password-mask",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"bIrUwg9P",block:'[[[8,[39,0],null,[["@action","@label","@class","@title"],[[30,1],[52,[30,2],"login.show_password","login.hide_password"],"btn-link toggle-password-mask",[52,[30,2],"login.show_password_title","login.hide_password_title"]]],null]],["@togglePasswordMask","@maskPassword"],false,["d-button","if"]]',moduleName:"discourse/components/toggle-password-mask.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/token-based-auth-dropdown",["exports","select-kit/components/dropdown-select-box","I18n","@ember/object"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({classNames:["token-based-auth-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,n.computed)((function(){return[{id:"edit",icon:"pencil-alt",name:i.default.t("user.second_factor.edit")},{id:"disable",icon:"trash-alt",name:i.default.t("user.second_factor.disable")}]})),actions:{onChange(e){switch(e){case"edit":this.editSecondFactor(this.totp)
break
case"disable":this.disableSingleSecondFactor(this.totp)}}}})
e.default=r})),define("discourse/components/top-period-buttons",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"0PmIaPWe",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["periods"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@action","@class","@actionParam","@translatedLabel"],[[28,[37,3],[[30,0],"changePeriod"],null],"btn-default",[30,1],[28,[37,4],[[30,1]],null]]],null],[1,"\\n"]],[1]],null]],["p"],false,["each","-track-array","d-button","action","period-title"]]',moduleName:"discourse/components/top-period-buttons.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((r=(0,n.default)("period"),l=o={classNames:["top-title-buttons"],periods(e){return this.site.get("periods").filter((t=>t!==e))},actions:{changePeriod(e){this.action(e)}}},a="periods",u=[r],c=Object.getOwnPropertyDescriptor(o,"periods"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/topic-admin-menu-button",["exports","discourse/components/mount-widget"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({classNames:"topic-admin-menu-button-container",tagName:"span",widget:"topic-admin-menu-button",buildArgs(){return this.getProperties("topic","openUpwards","rightSide")}})
e.default=i})),define("discourse/components/topic-category",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"fznjOsUh",block:'[[[41,[51,[30,0,["topic","isPrivateMessage"]]],[[[1,"  "],[1,[28,[35,1],[[30,0,["topic","category"]]],[["recursive","hideParent"],[true,true]]]],[1,"\\n"]],[]],null],[10,0],[14,0,"topic-header-extra"],[12],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1,"    "],[10,0],[14,0,"list-tags"],[12],[1,"\\n      "],[1,[28,[35,3],[[30,0,["topic"]]],[["mode","tags"],["list",[30,0,["topic","tags"]]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1,"    "],[1,[28,[35,4],[[30,0,["topic"]]],null]],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["topic-category","div",[28,[37,6],null,[["topic","category"],[[30,0,["topic"]],[30,0,["topic","category"]]]]]]],null],[1,"\\n"],[13]],[],false,["unless","bound-category-link","if","discourse-tags","topic-featured-link","plugin-outlet","hash"]]',moduleName:"discourse/components/topic-category.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend())
e.default=r})),define("discourse/components/topic-dismiss-buttons",["exports","@ember/component","@ember/template-factory","@ember/object","discourse-common/utils/decorators","I18n","@ember/service","discourse/components/modal/dismiss-read"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p,m,h
function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"gsoZUzTA",block:'[[[41,[30,0,["showBasedOnPosition"]],[[[1,"  "],[10,0],[15,0,[29,["row ",[30,0,["containerClass"]]]]],[12],[1,"\\n"],[41,[30,0,["showDismissRead"]],[[[1,"      "],[8,[39,1],null,[["@class","@id","@action","@translatedLabel","@title"],["btn-default dismiss-read",[30,0,["dismissReadId"]],[28,[37,2],[[30,0],"dismissReadPosts"],null],[30,0,["dismissLabel"]],"topics.bulk.dismiss_tooltip"]],null],[1,"\\n"]],[]],null],[41,[30,0,["showResetNew"]],[[[1,"      "],[8,[39,1],null,[["@class","@id","@action","@icon","@translatedLabel"],["btn-default dismiss-read",[30,0,["dismissNewId"]],[30,0,["resetNew"]],"check",[30,0,["dismissNewLabel"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-button","action"]]',moduleName:"discourse/components/topic-dismiss-buttons.hbs",isStrictMode:!1})
var b=(0,t.setComponentTemplate)(g,t.default.extend((a=(0,r.default)("position"),u=(0,r.default)("position"),c=(0,r.default)("position"),d=(0,r.default)("position","model.topics.length"),p=(0,r.default)("selectedTopics.length"),m=(0,r.default)("selectedTopics.length"),f(h={tagName:"",classNames:["topic-dismiss-buttons"],currentUser:(0,s.inject)(),modal:(0,s.inject)(),position:null,selectedTopics:null,model:null,containerClass:e=>`dismiss-container-${e}`,dismissReadId:e=>`dismiss-topics-${e}`,dismissNewId:e=>`dismiss-new-${e}`,showBasedOnPosition:(e,t)=>"top"!==e||t>5,dismissLabel:e=>0===e?o.default.t("topics.bulk.dismiss_button"):o.default.t("topics.bulk.dismiss_button_with_selected",{count:e}),dismissNewLabel(e){return this.currentUser.new_new_view_enabled?o.default.t("topics.bulk.dismiss_button"):0===e?o.default.t("topics.bulk.dismiss_new"):o.default.t("topics.bulk.dismiss_new_with_selected",{count:e})},dismissReadPosts(){let e="topics.bulk.dismiss_read"
this.selectedTopics.length&&(e="topics.bulk.dismiss_read_with_selected"),this.modal.show(l.default,{model:{title:e,count:this.selectedTopics.length}})}},"containerClass",[a],Object.getOwnPropertyDescriptor(h,"containerClass"),h),f(h,"dismissReadId",[u],Object.getOwnPropertyDescriptor(h,"dismissReadId"),h),f(h,"dismissNewId",[c],Object.getOwnPropertyDescriptor(h,"dismissNewId"),h),f(h,"showBasedOnPosition",[d],Object.getOwnPropertyDescriptor(h,"showBasedOnPosition"),h),f(h,"dismissLabel",[p],Object.getOwnPropertyDescriptor(h,"dismissLabel"),h),f(h,"dismissNewLabel",[m],Object.getOwnPropertyDescriptor(h,"dismissNewLabel"),h),f(h,"dismissReadPosts",[n.action],Object.getOwnPropertyDescriptor(h,"dismissReadPosts"),h),h)))
e.default=b})),define("discourse/components/topic-entrance",["exports","@ember/component","@ember/template-factory","discourse/mixins/cleans-up","discourse/lib/url","I18n","discourse-common/utils/decorators","@ember/runloop"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p,m,h,f,g,b
function y(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const _=(0,i.createTemplateFactory)({id:"KCGwEplr",block:'[[[8,[39,0],null,[["@action","@class","@ariaLabel"],[[28,[37,1],[[30,0],"enterTop"],null],"btn-default full jump-top","topic_entrance.sr_jump_top_button"]],[["default"],[[[[1,"\\n  "],[1,[28,[35,2],["step-backward"],null]],[1,"\\n  "],[1,[28,[35,3],[[30,0,["topDate"]]],null]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[8,[39,0],null,[["@action","@class","@ariaLabel"],[[28,[37,1],[[30,0],"enterBottom"],null],"btn-default full jump-bottom","topic_entrance.sr_jump_bottom_button"]],[["default"],[[[[1,"\\n  "],[1,[28,[35,3],[[30,0,["bottomDate"]]],null]],[1,"\\n  "],[1,[28,[35,2],["step-forward"],null]],[1,"\\n"]],[]]]]]],[],false,["d-button","action","d-icon","html-safe"]]',moduleName:"discourse/components/topic-entrance.hbs",isStrictMode:!1})
function v(e,t){const i=new Date
return e.toDateString()===i.toDateString()?moment(e).format(o.default.t("dates.time")):e.getYear()===i.getYear()?moment(e).format(t?o.default.t("dates.long_date_without_year_with_linebreak"):o.default.t("dates.long_no_year_no_time")):moment(e).format(t?o.default.t("dates.long_date_with_year_with_linebreak"):o.default.t("dates.long_date_with_year_without_time"))}var w=(0,t.setComponentTemplate)(_,t.default.extend(n.default,(a=(0,s.default)("topic.created_at"),u=(0,s.default)("topic.bumped_at"),c=(0,s.default)("createdDate","bumpedDate"),d=(0,s.default)("createdDate","showTime"),p=(0,s.default)("bumpedDate","showTime"),m={elementId:"topic-entrance",classNameBindings:["visible::hidden"],topic:null,visible:null,_position:null,_originalActiveElement:null,_activeButton:null,createdDate:e=>new Date(e),bumpedDate:e=>new Date(e),showTime:(e,t)=>t.getTime()-e.getTime()<1728e5,topDate:(e,t)=>v(e,t),bottomDate:(e,t)=>v(e,t),didInsertElement(){this._super(...arguments),this.appEvents.on("topic-entrance:show",this,"_show")},_setCSS(){const e=this._position,t=$(this.element),i=t.width(),n=t.height()
e.left=parseInt(e.left,10)-i/2,e.top=parseInt(e.top,10)-n/2
const r=$(window).width()
e.left+i>r&&(e.left=r-i-15),t.css(e)},_escListener(e){"Escape"===e.key?this.cleanUp():"Tab"===e.key&&("top"===this._activeButton?(this._jumpBottomButton().focus(),this._activeButton="bottom",e.preventDefault()):"bottom"===this._activeButton&&(this._jumpTopButton().focus(),this._activeButton="top",e.preventDefault()))},_jumpTopButton(){return this.element.querySelector(".jump-top")},_jumpBottomButton(){return this.element.querySelector(".jump-bottom")},_setupEscListener(){document.body.addEventListener("keydown",this._escListener)},_removeEscListener(){document.body.removeEventListener("keydown",this._escListener)},_trapFocus(){this._originalActiveElement=document.activeElement,this._jumpTopButton().focus(),this._activeButton="top"},_releaseFocus(){this._originalActiveElement&&(this._originalActiveElement.focus(),this._originalActiveElement=null)},_applyDomChanges(){this._setCSS(),this._setupEscListener(),this._trapFocus()},_show(e){this._position=e.position,this.setProperties({topic:e.topic,visible:!0}),(0,l.scheduleOnce)("afterRender",this,this._applyDomChanges),$("html").off("mousedown.topic-entrance").on("mousedown.topic-entrance",(e=>{const t=$(e.target)
"topic-entrance"!==t.prop("id")&&0===$(this.element).has(t).length&&this.cleanUp()}))},cleanUp(){this.setProperties({topic:null,visible:!1}),$("html").off("mousedown.topic-entrance"),this._removeEscListener(),this._releaseFocus()},willDestroyElement(){this.appEvents.off("topic-entrance:show",this,"_show")},_jumpTo(e){this.cleanUp(),r.default.routeTo(e)},actions:{enterTop(){this._jumpTo(this.get("topic.url"))},enterBottom(){this._jumpTo(this.get("topic.lastPostUrl"))}}},y(m,"createdDate",[a],(h=(h=Object.getOwnPropertyDescriptor(m,"createdDate"))?h.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return h}}),m),y(m,"bumpedDate",[u],(f=(f=Object.getOwnPropertyDescriptor(m,"bumpedDate"))?f.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return f}}),m),y(m,"showTime",[c],Object.getOwnPropertyDescriptor(m,"showTime"),m),y(m,"topDate",[d],(g=(g=Object.getOwnPropertyDescriptor(m,"topDate"))?g.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return g}}),m),y(m,"bottomDate",[p],(b=(b=Object.getOwnPropertyDescriptor(m,"bottomDate"))?b.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return b}}),m),y(m,"_escListener",[s.bind],Object.getOwnPropertyDescriptor(m,"_escListener"),m),m)))
e.default=w})),define("discourse/components/topic-footer-buttons",["exports","@ember/component","@ember/template-factory","@ember/object/computed","@ember/object","discourse-common/utils/decorators","discourse/lib/notification-levels","discourse/lib/register-topic-footer-button","discourse/lib/register-topic-footer-dropdown"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m,h,f,g,b,y,_
function v(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const w=(0,i.createTemplateFactory)({id:"tQRaswVl",block:'[[[10,0],[14,0,"topic-footer-main-buttons"],[12],[1,"\\n  "],[8,[39,0],null,[["@topic","@openUpwards","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleFeaturedOnProfile","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,0,["topic"]],"true",[30,0,["toggleMultiSelect"]],[30,0,["showTopicSlowModeUpdate"]],[30,0,["deleteTopic"]],[30,0,["recoverTopic"]],[30,0,["toggleFeaturedOnProfile"]],[30,0,["toggleClosed"]],[30,0,["toggleArchived"]],[30,0,["toggleVisibility"]],[30,0,["showTopicTimerModal"]],[30,0,["showFeatureTopic"]],[30,0,["showChangeTimestamp"]],[30,0,["resetBumpDate"]],[30,0,["convertToPublicTopic"]],[30,0,["convertToPrivateMessage"]]]],null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1,"    "],[8,[39,2],null,[["@topic","@content"],[[30,0,["topic"]],[30,0,["dropdownButtons"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["inlineActionables"]]],null]],null],null,[[[41,[28,[37,5],[[30,1,["type"]],"inline-button"],null],[[[1,"      "],[8,[39,6],null,[["@id","@class","@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[28,[37,7],["topic-footer-button-",[30,1,["id"]]],null],[28,[37,7],["btn-default topic-footer-button ",[30,1,["classNames"]]],null],[30,1,["action"]],[30,1,["icon"]],[30,1,["label"]],[30,1,["title"]],[30,1,["ariaLabel"]],[30,1,["disabled"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,8],null,[["@id","@value","@class","@content","@onChange","@options"],[[28,[37,7],["topic-footer-dropdown-",[30,1,["id"]]],null],[30,1,["value"]],[28,[37,7],["topic-footer-dropdown ",[30,1,["classNames"]]],null],[30,1,["content"]],[28,[37,9],[[30,0],[30,1,["action"]]],null],[28,[37,10],null,[["icon","none","disabled"],[[30,1,["icon"]],[30,1,["noneItem"]],[30,1,["disabled"]]]]]]],null],[1,"\\n"]],[]]]],[1]],null],[1,"\\n  "],[8,[39,11],null,[["@name","@outletArgs","@connectorTagName"],["topic-footer-main-buttons-before-create",[28,[37,10],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null],[1,"\\n\\n"],[41,[30,0,["topic","details","can_create_post"]],[[[1,"    "],[8,[39,6],null,[["@class","@icon","@action","@label","@title"],["btn-primary create","reply",[30,0,["replyToPost"]],"topic.reply.title","topic.reply.help"]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,11],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-footer-main-buttons",[28,[37,10],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,12],null,[["@pinned","@topic"],[[30,0,["topic","pinned"]],[30,0,["topic"]]]],null],[1,"\\n\\n"],[41,[30,0,["showNotificationsButton"]],[[[41,[30,0,["showNotificationUserTip"]],[[[1,"    "],[8,[39,13],null,[["@id","@selector"],["topic_notification_levels",".notifications-button"]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,14],null,[["@notificationLevel","@topic"],[[30,0,["topic","details","notification_level"]],[30,0,["topic"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,11],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-footer-buttons",[28,[37,10],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null]],["actionable"],false,["topic-admin-menu-button","if","topic-footer-mobile-dropdown","each","-track-array","eq","d-button","concat","dropdown-select-box","action","hash","plugin-outlet","pinned-button","user-tip","topic-notifications-button"]]',moduleName:"discourse/components/topic-footer-buttons.hbs",isStrictMode:!1})
var k=(0,t.setComponentTemplate)(w,t.default.extend((u=(0,o.default)("canSendPms","topic.isPrivateMessage"),c=(0,o.default)("inlineButtons.[]","topic.assigned_to_user"),d=(0,o.default)("topic.isPrivateMessage"),p=(0,o.default)("topic.details.notification_level"),m=(0,o.default)("topic.message_archived"),h=(0,o.default)("topic.message_archived"),f=(0,o.default)("topic.message_archived"),v(g={elementId:"topic-footer-buttons",attributeBindings:["role"],role:"region",canArchive:(e,t)=>e&&t,inlineButtons:(0,l.getTopicFooterButtons)(),inlineDropdowns:(0,a.getTopicFooterDropdowns)(),inlineActionables:(0,r.computed)("inlineButtons.[]","inlineDropdowns.[]",(function(){return this.inlineButtons.filterBy("dropdown",!1).concat(this.inlineDropdowns).sortBy("priority").reverse()})),dropdownButtons:e=>e.filter((e=>e.dropdown)),showNotificationsButton(e){return!e||this.canSendPms},showNotificationUserTip:e=>e>=s.NotificationLevels.TRACKING,canSendPms:(0,n.alias)("currentUser.can_send_private_messages"),canInviteTo:(0,n.alias)("topic.details.can_invite_to"),canDefer:(0,n.alias)("currentUser.user_option.enable_defer"),inviteDisabled:(0,n.or)("topic.archived","topic.closed","topic.deleted"),archiveIcon:e=>e?"envelope":"folder",archiveTitle:e=>e?"topic.move_to_inbox.help":"topic.archive_message.help",archiveLabel:e=>e?"topic.move_to_inbox.title":"topic.archive_message.title"},"canArchive",[u],Object.getOwnPropertyDescriptor(g,"canArchive"),g),v(g,"dropdownButtons",[c],Object.getOwnPropertyDescriptor(g,"dropdownButtons"),g),v(g,"showNotificationsButton",[d],Object.getOwnPropertyDescriptor(g,"showNotificationsButton"),g),v(g,"showNotificationUserTip",[p],Object.getOwnPropertyDescriptor(g,"showNotificationUserTip"),g),v(g,"archiveIcon",[m],(b=(b=Object.getOwnPropertyDescriptor(g,"archiveIcon"))?b.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return b}}),g),v(g,"archiveTitle",[h],(y=(y=Object.getOwnPropertyDescriptor(g,"archiveTitle"))?y.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return y}}),g),v(g,"archiveLabel",[f],(_=(_=Object.getOwnPropertyDescriptor(g,"archiveLabel"))?_.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return _}}),g),g)))
e.default=k})),define("discourse/components/topic-list-item",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","discourse/lib/url","I18n","discourse-common/lib/raw-handlebars-helpers","@ember/object/computed","discourse-common/lib/raw-templates","@ember/object/evented","@ember/runloop","discourse/components/topic-title","discourse/lib/intercept-click","@ember/template"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g,b,y,_,v
function w(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.navigateToTopic=P,e.showEntrance=x
const k=(0,i.createTemplateFactory)({id:"TXziJ4Z2",block:'[[[1,[30,0,["topicListItemContents"]]]],[],false,[]]',moduleName:"discourse/components/topic-list-item.hbs",isStrictMode:!1})
function x(e){let t=$(e.target)
if(t.hasClass("posts-map")||t.parents(".posts-map").length>0)return"A"!==t.prop("tagName")&&(t=t.find("a"),0===t.length&&(t=t.end())),this.appEvents.trigger("topic-entrance:show",{topic:this.topic,position:t.offset()}),!1}function P(e,t){return"slider"!==this.siteSettings.page_loading_indicator&&this.appEvents.trigger("header:update-topic",e),r.default.routeTo(t||e.get("url")),!1}var O=(0,t.setComponentTemplate)(k,t.default.extend((h=(0,n.observes)("topic.pinned"),f=(0,n.default)("topic.participant_groups"),g=(0,n.default)("topic.id"),b=(0,n.default)("topic.unread_by_group_member"),y=(0,n.default)("topic.unread_by_group_member"),_=(0,n.default)("topic","lastVisitedTopic"),v={tagName:"tr",classNameBindings:[":topic-list-item","unboundClassNames","topic.visited"],attributeBindings:["data-topic-id","role","ariaLevel:aria-level"],"data-topic-id":(0,l.alias)("topic.id"),didReceiveAttrs(){this._super(...arguments),this.renderTopicListItem()},renderTopicListItem(){const e=(0,a.findRawTemplate)("list/topic-list-item")
e&&(this.set("topicListItemContents",(0,m.htmlSafe)(e(this,s.RUNTIME_OPTIONS))),(0,c.schedule)("afterRender",(()=>{if(!this.isDestroyed&&!this.isDestroying&&(this.selected&&this.selected.includes(this.topic)&&(this.element.querySelector("input.bulk-select").checked=!0),this._shouldFocusLastVisited())){const e=this._titleElement()
e&&(e.addEventListener("focus",this._onTitleFocus),e.addEventListener("blur",this._onTitleBlur))}})))},didInsertElement(){this._super(...arguments),this.includeUnreadIndicator&&this.messageBus.subscribe(this.unreadIndicatorChannel,this.onMessage),(0,c.schedule)("afterRender",(()=>{if(this.element&&!this.isDestroying&&!this.isDestroyed){const e=this.element.querySelector(".raw-topic-link")
e&&d.topicTitleDecorators?.forEach((t=>t(this.topic,e,"topic-list-item-title")))}}))},willDestroyElement(){if(this._super(...arguments),this.messageBus.unsubscribe(this.unreadIndicatorChannel,this.onMessage),this._shouldFocusLastVisited()){const e=this._titleElement()
e&&(e.removeEventListener("focus",this._onTitleFocus),e.removeEventListener("blur",this._onTitleBlur))}},onMessage(e){document.querySelector(`.indicator-topic-${e.topic_id}`).classList.toggle("read",!e.show_indicator)},participantGroups:e=>e?e.map((e=>({name:e,url:(0,r.groupPath)(e)}))):[],unreadIndicatorChannel:e=>`/private-messages/unread-indicator/${e}`,unreadClass:e=>e?"":"read",includeUnreadIndicator:e=>void 0!==e,newDotText(){return this.currentUser&&this.currentUser.trust_level>0?"":o.default.t("filters.new.lower_title")},unboundClassNames(e,t){let i=[]
return e.get("category")&&i.push("category-"+e.get("category.fullSlug")),e.get("tags")&&e.get("tags").forEach((e=>i.push("tag-"+e))),e.get("hasExcerpt")&&i.push("has-excerpt"),e.get("unseen")&&i.push("unseen-topic"),e.unread_posts&&i.push("unread-posts"),["liked","archived","bookmarked","pinned","closed"].forEach((t=>{e.get(t)&&i.push(t)})),e===t&&i.push("last-visit"),i.join(" ")},hasLikes(){return this.get("topic.like_count")>0},hasOpLikes(){return this.get("topic.op_like_count")>0},expandPinned(){if(!this.get("topic.pinned"))return!1
if(this.site.mobileView){if(!this.siteSettings.show_pinned_excerpt_mobile)return!1}else if(!this.siteSettings.show_pinned_excerpt_desktop)return!1
return!(!this.expandGloballyPinned||!this.get("topic.pinned_globally"))||!!this.expandAllPinned},showEntrance:x,click(e){const t=this.showEntrance(e)
if(!1===t)return t
const i=this.topic,n=e.target,r=n.classList
if(r.contains("bulk-select")){const t=this.selected
if(n.checked){if(t.addObject(i),this.lastChecked&&e.shiftKey){const e=Array.from(document.querySelectorAll("input.bulk-select")),t=e.indexOf(n),i=e.findIndex((e=>e.id===this.lastChecked.id)),r=Math.min(t,i),o=Math.max(t,i)
e.slice(r,o).filter((e=>!0!==e.checked)).forEach((e=>{e.click()}))}this.set("lastChecked",n)}else t.removeObject(i),this.set("lastChecked",null)}return r.contains("raw-topic-link")?!!(0,p.wantsNewWindow)(e)||(e.preventDefault(),this.navigateToTopic(i,n.getAttribute("href"))):this.site.mobileView&&e.target.matches(".topic-list-data, .main-link, .right, .topic-item-stats, .topic-item-stats__category-tags, .discourse-tags")?!!(0,p.wantsNewWindow)(e)||(e.preventDefault(),this.navigateToTopic(i,i.lastUnreadUrl)):r.contains("d-icon-thumbtack")&&n.closest("a.topic-status")?(this.topic.togglePinnedForUser(),!1):this.unhandledRowClick(e,i)},unhandledRowClick(){},navigateToTopic:P,highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLastViewedTopic:!1};(0,c.schedule)("afterRender",(()=>{!this.element||this.isDestroying||this.isDestroyed||(this.element.classList.add("highlighted"),this.element.setAttribute("data-islastviewedtopic",e.isLastViewedTopic),this.element.addEventListener("animationend",(()=>{this.element.classList.remove("highlighted")})),e.isLastViewedTopic&&this._shouldFocusLastVisited()&&this._titleElement()?.focus())}))},_highlightIfNeeded:(0,u.on)("didInsertElement",(function(){this.session.get("lastTopicIdViewed")===this.get("topic.id")?(this.session.set("lastTopicIdViewed",null),this.highlight({isLastViewedTopic:!0})):this.get("topic.highlight")&&(this.set("topic.highlight",!1),this.highlight())})),_onTitleFocus(){!this.element||this.isDestroying||this.isDestroyed||this._mainLinkElement().classList.add("focused")},_onTitleBlur(){!this.element||this.isDestroying||this.isDestroyed||this._mainLinkElement().classList.remove("focused")},_shouldFocusLastVisited(){return!this.site.mobileView&&this.focusLastVisitedTopic},_mainLinkElement(){return this.element.querySelector(".main-link")},_titleElement(){return this.element.querySelector(".main-link .title")}},w(v,"renderTopicListItem",[h],Object.getOwnPropertyDescriptor(v,"renderTopicListItem"),v),w(v,"onMessage",[n.bind],Object.getOwnPropertyDescriptor(v,"onMessage"),v),w(v,"participantGroups",[f],Object.getOwnPropertyDescriptor(v,"participantGroups"),v),w(v,"unreadIndicatorChannel",[g],Object.getOwnPropertyDescriptor(v,"unreadIndicatorChannel"),v),w(v,"unreadClass",[b],Object.getOwnPropertyDescriptor(v,"unreadClass"),v),w(v,"includeUnreadIndicator",[y],Object.getOwnPropertyDescriptor(v,"includeUnreadIndicator"),v),w(v,"newDotText",[n.default],Object.getOwnPropertyDescriptor(v,"newDotText"),v),w(v,"unboundClassNames",[_],Object.getOwnPropertyDescriptor(v,"unboundClassNames"),v),w(v,"expandPinned",[n.default],Object.getOwnPropertyDescriptor(v,"expandPinned"),v),w(v,"_onTitleFocus",[n.bind],Object.getOwnPropertyDescriptor(v,"_onTitleFocus"),v),w(v,"_onTitleBlur",[n.bind],Object.getOwnPropertyDescriptor(v,"_onTitleBlur"),v),v)))
e.default=O})),define("discourse/components/topic-list",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse-common/utils/decorators","discourse/mixins/load-more","@ember/object/evented","@ember/runloop","discourse/lib/show-modal"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m,h
function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"Y0/Hy7Ma",block:'[[[10,"thead"],[14,0,"topic-list-header"],[12],[1,"\\n  "],[1,[28,[35,0],["topic-list-header"],[["canBulkSelect","toggleInTitle","hideCategory","showPosters","showLikes","showOpLikes","order","ascending","sortable","listTitle","bulkSelectEnabled","canDoBulkActions"],[[30,0,["canBulkSelect"]],[30,0,["toggleInTitle"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["showLikes"]],[30,0,["showOpLikes"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["sortable"]],[30,0,["listTitle"]],[30,0,["bulkSelectEnabled"]],[30,0,["canDoBulkActions"]]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,1],null,[["@name","@outletArgs"],["before-topic-list-body",[28,[37,2],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,0,["topics"]],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,0,["discoveryList"]],[30,0,["hideCategory"]]]]]]],null],[1,"\\n\\n"],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["filteredTopics"]]],null]],null],null,[[[1,"    "],[8,[39,5],null,[["@topic","@bulkSelectEnabled","@showTopicPostBadges","@hideCategory","@showPosters","@showLikes","@showOpLikes","@expandGloballyPinned","@expandAllPinned","@lastVisitedTopic","@selected","@lastChecked","@tagsForUser","@focusLastVisitedTopic","@index"],[[30,1],[30,0,["bulkSelectEnabled"]],[30,0,["showTopicPostBadges"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["showLikes"]],[30,0,["showOpLikes"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,0,["lastVisitedTopic"]],[30,0,["selected"]],[30,0,["lastChecked"]],[30,0,["tagsForUser"]],[30,0,["focusLastVisitedTopic"]],[30,2]]],null],[1,"\\n    "],[1,[28,[35,0],["list/visited-line"],[["lastVisitedTopic","topic"],[[30,0,["lastVisitedTopic"]],[30,1]]]]],[1,"\\n    "],[8,[39,1],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-list-item",[28,[37,2],null,[["topic","index"],[[30,1],[30,2]]]],"tr"]],null],[1,"\\n"]],[1,2]],null],[13],[1,"\\n\\n"],[8,[39,1],null,[["@name","@outletArgs"],["after-topic-list-body",[28,[37,2],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,0,["topics"]],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,0,["discoveryList"]],[30,0,["hideCategory"]]]]]]],null]],["topic","index"],false,["raw","plugin-outlet","hash","each","-track-array","topic-list-item"]]',moduleName:"discourse/components/topic-list.hbs",isStrictMode:!1})
var b=(0,t.setComponentTemplate)(g,t.default.extend(o.default,(u=(0,r.default)("bulkSelectEnabled"),c=(0,r.default)("order"),d=(0,r.default)("order"),p=(0,r.observes)("topics.[]"),m=(0,r.observes)("topics","order","ascending","category","top"),h={tagName:"table",classNames:["topic-list"],classNameBindings:["bulkSelectEnabled:sticky-header"],showTopicPostBadges:!0,listTitle:"topic.title",canDoBulkActions:(0,n.and)("currentUser.canManageTopic","selected.length"),filteredTopics:(0,n.alias)("topics"),_init:(0,s.on)("init",(function(){this.addObserver("hideCategory",this.rerender),this.addObserver("order",this.rerender),this.addObserver("ascending",this.rerender),this.refreshLastVisited()})),toggleInTitle(e){return!e&&this.canBulkSelect},sortable(){return!!this.changeSort},showLikes:e=>"likes"===e,showOpLikes:e=>"op_likes"===e,topicsAdded(){this.lastVisitedTopic||this.refreshLastVisited()},lastVisitedTopicChanged(){this.refreshLastVisited()},scrolled(){this._super(...arguments)
let e=this.onScroll
e&&e.call(this)},scrollToLastPosition(){if(!this.scrollOnLoad)return
const e=this.session.topicListScrollPosition
e>=0&&(0,l.schedule)("afterRender",(()=>{!this.element||this.isDestroying||this.isDestroyed||(0,l.next)((()=>window.scrollTo(0,e)))}))},didInsertElement(){this._super(...arguments),this.scrollToLastPosition()},_updateLastVisitedTopic(e,t,i,n){if(this.set("lastVisitedTopic",null),!this.highlightLastVisited)return
if(t&&"activity"!==t)return
if(n)return
if(!e||1===e.length)return
if(i)return
let r,o,s=this.currentUser
if(!s||!s.previous_visit_at)return
let l,a=s.get("previousVisitAt"),u=0
for(;e[u]&&e[u].get("pinned");)u++
for(l=e.length-1;l>=u;l--){if(e[l].get("bumpedAt")>a){r=e[l]
break}o=e[l]}r&&o&&(o.get("bumpedAt")>a||this.set("lastVisitedTopic",r))},refreshLastVisited(){this._updateLastVisitedTopic(this.topics,this.order,this.ascending,this.top)},updateAutoAddTopicsToBulkSelect(e){this.set("autoAddTopicsToBulkSelect",e)},click(e){const t=(t,i)=>{let n=e.target.closest(t)
n&&i.call(this,n)}
t("button.bulk-select",(function(){this.toggleBulkSelect(),this.rerender()})),t("button.bulk-select-all",(function(){this.updateAutoAddTopicsToBulkSelect(!0),document.querySelectorAll("input.bulk-select:not(:checked)").forEach((e=>e.click()))})),t("button.bulk-clear-all",(function(){this.updateAutoAddTopicsToBulkSelect(!1),document.querySelectorAll("input.bulk-select:checked").forEach((e=>e.click()))})),t("th.sortable",(function(e){this.changeSort(e.dataset.sortOrder),this.rerender()})),t("button.bulk-select-actions",(function(){const e=(0,a.default)("topic-bulk-actions",{model:{topics:this.selected,category:this.category},title:"topics.bulk.actions"}),t=this.bulkSelectAction
t&&e.set("refreshClosure",(()=>t()))}))},keyDown(e){if("Enter"===e.key||" "===e.key){((t,i)=>{let n=e.target.closest(t)
n&&i.call(this,n)})("th.sortable",(e=>{this.changeSort(e.dataset.sortOrder),this.rerender()}))}}},f(h,"toggleInTitle",[u],Object.getOwnPropertyDescriptor(h,"toggleInTitle"),h),f(h,"sortable",[r.default],Object.getOwnPropertyDescriptor(h,"sortable"),h),f(h,"showLikes",[c],Object.getOwnPropertyDescriptor(h,"showLikes"),h),f(h,"showOpLikes",[d],Object.getOwnPropertyDescriptor(h,"showOpLikes"),h),f(h,"topicsAdded",[p],Object.getOwnPropertyDescriptor(h,"topicsAdded"),h),f(h,"lastVisitedTopicChanged",[m],Object.getOwnPropertyDescriptor(h,"lastVisitedTopicChanged"),h),h)))
e.default=b})),define("discourse/components/topic-navigation-popup",["exports","@ember/component","@ember/template-factory","@ember/object","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o
function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"y/HO+wo9",block:'[[[41,[51,[30,0,["hidden"]]],[[[1,"  "],[10,0],[14,0,"topic-navigation-popup"],[12],[1,"\\n    "],[8,[39,1],null,[["@action","@class","@icon"],[[28,[37,2],[[30,0],"close"],null],"close btn-flat","times"]],null],[1,"\\n    "],[18,1,null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["&default"],false,["unless","d-button","action","yield"]]',moduleName:"discourse/components/topic-navigation-popup.hbs",isStrictMode:!1})
var a=(0,t.setComponentTemplate)(l,t.default.extend((o={tagName:"",popupId:null,hidden:!1,init(){if(this._super(...arguments),this.popupKey){const e=this.keyValueStore.getItem(this.popupKey)
!0===e||e>+new Date?this.set("hidden",!0):this.keyValueStore.removeItem(this.popupKey)}},popupKey(e){if(e)return`dismiss_topic_nav_popup_${e}`},close(){if(this.set("hidden",!0),this.popupKey)if(this.dismissDuration){const e=+new Date+this.dismissDuration
this.keyValueStore.setItem(this.popupKey,e)}else this.keyValueStore.setItem(this.popupKey,!0)}},s(o,"popupKey",[(0,r.default)("popupId")],Object.getOwnPropertyDescriptor(o,"popupKey"),o),s(o,"close",[n.action],Object.getOwnPropertyDescriptor(o,"close"),o),o)))
e.default=a})),define("discourse/components/topic-navigation",["exports","@ember/component","@ember/template-factory","discourse/mixins/pan-events","@ember/object","discourse-common/lib/debounce","discourse/lib/offset-calculator","@ember/runloop","discourse-common/lib/later","discourse-common/utils/decorators","discourse/lib/show-modal"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,i.createTemplateFactory)({id:"Je3pbzQj",block:'[[[41,[30,0,["canRender"]],[[[1,"  "],[18,1,[[30,0,["info"]]]],[1,"\\n"]],[]],null]],["&default"],false,["if","yield"]]',moduleName:"discourse/components/topic-navigation.hbs",isStrictMode:!1})
var h,f,g,b,y,_,v=(0,t.setComponentTemplate)(m,t.default.extend(n.default,(d=(0,u.observes)("info.topicProgressExpanded"),p={classNameBindings:["info.topicProgressExpanded:topic-progress-expanded","info.renderTimeline:with-timeline:with-topic-progress"],composerOpen:null,info:null,isPanning:!1,canRender:!0,_lastTopicId:null,init(){this._super(...arguments),this.set("info",r.default.create())},didUpdateAttrs(){this._super(...arguments),this._lastTopicId!==this.topic.id&&(this._lastTopicId=this.topic.id,this.set("canRender",!1),(0,l.next)((()=>this.set("canRender",!0))))},_performCheckSize(){if(!this.element||this.isDestroying||this.isDestroyed)return
let e=this.info,t=this.capabilities.isSafari?document.documentElement.clientWidth:window.innerWidth
if(e.get("topicProgressExpanded"))e.set("renderTimeline",!0)
else{let i=!this.site.mobileView
if(i){const e=document.getElementById("reply-control")
e&&(i=t>924&&window.innerHeight-e.offsetHeight-(0,s.headerOffset)()>325)}e.set("renderTimeline",i)}},_checkSize(){(0,o.default)(this,this._performCheckSize,300,!0)},_topicScrolled(e){this.set("info.prevEvent",e)},_expanded(){this.get("info.topicProgressExpanded")?$(window).on("click.hide-fullscreen",(e=>{let t=$(e.target),i=t.parents()
t.is(".widget-button")||i.is(".widget-button")||i.is("#discourse-modal")||t.is("#discourse-modal")||i.is(".modal-footer")||!t.is(".topic-timeline")&&i.is("#topic-progress-wrapper")||i.is(".timeline-open-jump-to-post-prompt-btn")||t.is(".timeline-open-jump-to-post-prompt-btn")||this._collapseFullscreen()})):$(window).off("click.hide-fullscreen"),this._checkSize()},composerOpened(){this.set("composerOpen",!0),this._checkSize()},composerClosed(){this.set("composerOpen",!1),this._checkSize()},_collapseFullscreen(){this.get("info.topicProgressExpanded")&&($(".timeline-fullscreen").removeClass("show"),(0,a.default)((()=>{!this.element||this.isDestroying||this.isDestroyed||(this.set("info.topicProgressExpanded",!1),this._checkSize())}),500))},keyboardTrigger(e){if("jump"===e.type){(0,c.default)("jump-to-post",{modalClass:"jump-to-post-modal"}).setProperties({topic:this.topic,jumpToIndex:this.attrs.jumpToIndex,jumpToDate:this.attrs.jumpToDate})}},_handlePanDone(e,t){const i=$(".timeline-container"),n=parseInt(i.css("height"),10)
i.addClass("animate"),this._shouldPanClose(t)?(i.css("--offset",`${n}px`),(0,a.default)((()=>{this._collapseFullscreen(),i.removeClass("animate")}),200)):(i.css("--offset",0),(0,a.default)((()=>{i.removeClass("animate")}),200))},_shouldPanClose:e=>e.deltaY>n.SWIPE_DISTANCE_THRESHOLD&&e.velocityY>-n.SWIPE_VELOCITY_THRESHOLD||e.velocityY>n.SWIPE_VELOCITY_THRESHOLD,panStart(e){const t=e.originalEvent.target
if(t.classList.contains("docked")||!t.closest(".timeline-container"))return
e.originalEvent.preventDefault()
document.elementFromPoint(e.center.x,e.center.y).closest(".timeline-scrollarea-wrapper")?this.isPanning=!1:"up"!==e.direction&&"down"!==e.direction||(this.isPanning=!0)},panEnd(e){this.isPanning&&(e.originalEvent.preventDefault(),this.isPanning=!1,this._handlePanDone(e.deltaY,e))},panMove(e){this.isPanning&&(e.originalEvent.preventDefault(),$(".timeline-container").css("--offset",`${Math.max(0,e.deltaY)}px`))},didInsertElement(){this._super(...arguments),this._lastTopicId=this.topic.id,this.appEvents.on("topic:current-post-scrolled",this,this._topicScrolled).on("topic:jump-to-post",this,this._collapseFullscreen).on("topic:keyboard-trigger",this,this.keyboardTrigger),this.site.mobileView||($(window).on("resize.discourse-topic-navigation",(()=>this._checkSize())),this.appEvents.on("composer:opened",this,this.composerOpened),this.appEvents.on("composer:resize-ended",this,this.composerOpened),this.appEvents.on("composer:closed",this,this.composerClosed),$("#reply-control").on("div-resized.discourse-topic-navigation",(()=>this._checkSize()))),this._checkSize()},willDestroyElement(){this._super(...arguments),this.appEvents.off("topic:current-post-scrolled",this,this._topicScrolled).off("topic:jump-to-post",this,this._collapseFullscreen).off("topic:keyboard-trigger",this,this.keyboardTrigger),$(window).off("click.hide-fullscreen"),this.site.mobileView||($(window).off("resize.discourse-topic-navigation"),this.appEvents.off("composer:opened",this,this.composerOpened),this.appEvents.off("composer:resize-ended",this,this.composerOpened),this.appEvents.off("composer:closed",this,this.composerClosed),$("#reply-control").off("div-resized.discourse-topic-navigation"))}},h=p,f="_expanded",g=[d],b=Object.getOwnPropertyDescriptor(p,"_expanded"),y=p,_={},Object.keys(b).forEach((function(e){_[e]=b[e]})),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=g.slice().reverse().reduce((function(e,t){return t(h,f,e)||e}),_),y&&void 0!==_.initializer&&(_.value=_.initializer?_.initializer.call(y):void 0,_.initializer=void 0),void 0===_.initializer&&(Object.defineProperty(h,f,_),_=null),p)))
e.default=v})),define("discourse/components/topic-post-badges",["exports","@ember/component","@ember/template-factory","I18n","@ember/object/computed"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"Hllq1dd0",block:'[[[41,[30,0,["displayUnreadPosts"]],[[[1,"   "],[10,3],[15,6,[30,0,["url"]]],[15,"title",[28,[37,1],["topic.unread_posts"],[["count"],[[30,0,["displayUnreadPosts"]]]]]],[14,0,"badge badge-notification unread-posts"],[12],[1,[30,0,["displayUnreadPosts"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["unseen"]],[[[1,"   "],[10,3],[15,6,[30,0,["url"]]],[15,"title",[28,[37,1],["topic.new"],null]],[14,0,"badge badge-notification new-topic"],[12],[1,[30,0,["newDotText"]]],[13],[1,"\\n"]],[]],null]],[],false,["if","i18n"]]',moduleName:"discourse/components/topic-post-badges.hbs",isStrictMode:!1})
var s=(0,t.setComponentTemplate)(o,t.default.extend({tagName:"span",classNameBindings:[":topic-post-badges"],newDotText:null,init(){this._super(...arguments),this.set("newDotText",this.currentUser&&this.currentUser.trust_level>0?" ":n.default.t("filters.new.lower_title"))},displayUnreadPosts:(0,r.or)("newPosts","unreadPosts")}))
e.default=s})),define("discourse/components/topic-progress",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators","@ember/object/computed","@ember/runloop","discourse-common/lib/later","@ember/object","discourse-common/config/environment"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"162Cw6yS",block:'[[[41,[51,[30,0,["hideProgress"]]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showBackButton"]],[[[1,"  "],[10,0],[14,0,"progress-back-container"],[12],[1,"\\n    "],[8,[39,3],null,[["@label","@class","@action","@icon"],["topic.timeline.back","btn-primary progress-back",[28,[37,4],[[30,0],"goBack"],null],"arrow-down"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"nav"],[15,"title",[28,[37,5],["topic.progress.title"],null]],[15,"aria-label",[28,[37,5],["topic.progress.title"],null]],[15,0,[52,[30,0,["hideProgress"]],"hidden"]],[14,1,"topic-progress"],[15,5,[28,[37,6],[[30,0,["progressStyle"]]],null]],[12],[1,"\\n  "],[10,0],[14,0,"nums"],[12],[1,"\\n    "],[10,"h4"],[12],[1,[30,0,["progressPosition"]]],[13],[1,"\\n    "],[10,1],[15,0,[52,[30,0,["hugeNumberOfPosts"]],"hidden"]],[12],[1,"\\n      "],[10,1],[12],[1,"/"],[13],[1,"\\n      "],[10,"h4"],[12],[1,[30,0,["postStream","filteredPostsCount"]]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"bg"],[12],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,7],null,[["@name","@connectorTagName"],["after-topic-progress","div"]],null]],["&default"],false,["unless","yield","if","d-button","action","i18n","html-safe","plugin-outlet"]]',moduleName:"discourse/components/topic-progress.hbs",isStrictMode:!1}),g=(0,a.isTesting)()?0:500
var b=(0,t.setComponentTemplate)(f,t.default.extend((u=(0,n.default)("postStream.loaded","topic.currentPost","postStream.filteredPostsCount"),c=(0,n.default)("postStream.filteredPostsCount"),d=(0,n.default)("progressPosition","topic.last_read_post_id"),p=(0,n.default)("_streamPercentage"),m={elementId:"topic-progress-wrapper",classNameBindings:["docked","withTransitions"],docked:!1,withTransitions:null,progressPosition:null,postStream:(0,r.alias)("topic.postStream"),_streamPercentage:null,hideProgress(e,t,i){const n=!this.site.mobileView&&i<2
return!e||!t||n},hugeNumberOfPosts(e){return e>=this.siteSettings.short_progress_text_threshold},showBackButton(e,t){if(!t)return
const i=this.get("postStream.stream"),n=i.indexOf(t)||0
return n<i.length-1&&n>e},_topicScrolled(e){this.docked?this.setProperties({progressPosition:this.get("postStream.filteredPostsCount"),_streamPercentage:100}):this.setProperties({progressPosition:e.postIndex,_streamPercentage:(100*e.percent).toFixed(2)})},progressStyle:e=>`--progress-bg-width: ${e||0}%`,didInsertElement(){this._super(...arguments),this.appEvents.on("composer:resized",this,this._composerEvent).on("topic:current-post-scrolled",this,this._topicScrolled),this.prevEvent&&(0,o.scheduleOnce)("afterRender",this,this._topicScrolled,this.prevEvent),(0,o.scheduleOnce)("afterRender",this,this._startObserver),(0,s.default)(this._addCssTransitions,g)},willDestroyElement(){this._super(...arguments),this._topicBottomObserver?.disconnect(),this.appEvents.off("composer:resized",this,this._composerEvent).off("topic:current-post-scrolled",this,this._topicScrolled)},_addCssTransitions(){this.isDestroying||this.isDestroyed||this.set("withTransitions",!0)},_startObserver(){"IntersectionObserver"in window&&(this._topicBottomObserver=this._setupObserver(),this._topicBottomObserver.observe(document.querySelector("#topic-bottom")))},_setupObserver(){const e=document.querySelector("#reply-control")?.clientHeight||50
return new IntersectionObserver(this._intersectionHandler,{threshold:1,rootMargin:`0px 0px -${e}px 0px`})},_composerEvent(){"IntersectionObserver"in window&&(this._topicBottomObserver?.disconnect(),this._startObserver())},_intersectionHandler(e){if(!this.element||this.isDestroying||this.isDestroyed)return
const t=document.querySelector("#reply-control")?.clientHeight||0
if(!this.site.mobileView&&t)return this.set("docked",!1),void this.element.style.setProperty("bottom",`${t}px`)
if(!0===e[0].isIntersecting)this.set("docked",!0),this.element.style.removeProperty("bottom")
else if(e[0].boundingClientRect.top>0)if(this.set("docked",!1),0===t){const e=document.querySelector(".posts-filtered-notice")?.clientHeight||0
0===e?this.element.style.removeProperty("bottom"):this.element.style.setProperty("bottom",`${e}px`)}else this.element.style.setProperty("bottom",`${t}px`)},click(e){e.target.closest("#topic-progress")&&this.toggleProperty("expanded")},goBack(){this.attrs.jumpToPost(this.get("topic.last_read_post_number"))}},h(m,"hideProgress",[u],Object.getOwnPropertyDescriptor(m,"hideProgress"),m),h(m,"hugeNumberOfPosts",[c],Object.getOwnPropertyDescriptor(m,"hugeNumberOfPosts"),m),h(m,"showBackButton",[d],Object.getOwnPropertyDescriptor(m,"showBackButton"),m),h(m,"progressStyle",[p],Object.getOwnPropertyDescriptor(m,"progressStyle"),m),h(m,"_addCssTransitions",[n.bind],Object.getOwnPropertyDescriptor(m,"_addCssTransitions"),m),h(m,"_intersectionHandler",[n.bind],Object.getOwnPropertyDescriptor(m,"_intersectionHandler"),m),h(m,"goBack",[l.action],Object.getOwnPropertyDescriptor(m,"goBack"),m),m)))
e.default=b})),define("discourse/components/topic-status",["exports","@ember/component","@ember/template-factory","I18n","discourse-common/utils/decorators","discourse-common/lib/icon-library","@ember/template"],(function(e,t,i,n,r,o,s){var l,a,u,c,d,p,m,h
function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,i.createTemplateFactory)({id:"l1iM1Gha",block:'[[[41,[30,0,["topicClosedArchived"]],[[[10,1],[15,"title",[30,0,["closedArchivedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["closedArchivedIcon"]]],[13]],[]],null],[41,[30,0,["closedIcon"]],[[[10,1],[15,"title",[30,0,["closedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["closedIcon"]]],[13]],[]],null],[41,[30,0,["archivedIcon"]],[[[10,1],[15,"title",[30,0,["archivedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["archivedIcon"]]],[13]],[]],null],[41,[30,0,["topicPrivateMessage"]],[[[10,1],[15,"title",[30,0,["privateMessageTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["privateMessageIcon"]]],[13]],[]],null],[41,[30,0,["topicWarning"]],[[[10,1],[15,"title",[30,0,["warningTitle"]]],[14,0,"topic-status topic-status-warning"],[12],[1,[30,0,["warningIcon"]]],[13]],[]],null],[41,[30,0,["topicPinned"]],[[[41,[30,0,["canAct"]],[[[10,3],[14,6,""],[15,"title",[30,0,["pinnedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["pinnedIcon"]]],[13]],[]],[[[10,1],[15,"title",[30,0,["pinnedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["pinnedIcon"]]],[13]],[]]]],[]],null],[41,[30,0,["topicUnpinned"]],[[[41,[30,0,["canAct"]],[[[10,3],[14,6,""],[15,"title",[30,0,["unpinnedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["unpinnedIcon"]]],[13]],[]],[[[10,1],[15,"title",[30,0,["unpinnedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["unpinnedIcon"]]],[13]],[]]]],[]],null],[41,[30,0,["topicInvisible"]],[[[10,1],[15,"title",[30,0,["invisibleTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["invisibleIcon"]]],[13]],[]],null],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["after-topic-status","div",[28,[37,2],null,[["topic"],[[30,0,["topic"]]]]]]],null]],[],false,["if","plugin-outlet","hash"]]',moduleName:"discourse/components/topic-status.hbs",isStrictMode:!1})
var b=(0,t.setComponentTemplate)(g,t.default.extend((l=(0,r.default)("disableActions"),a=(0,r.default)("topic.closed","topic.archived"),u=(0,r.default)("topic.is_warning"),c=(0,r.default)("showPrivateMessageIcon","topic.isPrivateMessage","topic.is_warning"),d=(0,r.default)("topic.pinned"),p=(0,r.default)("topic.unpinned"),m=(0,r.default)("topic.invisible"),f(h={disableActions:!1,classNames:["topic-statuses"],click(e){if(this.canAct&&$(e.target).hasClass("d-icon-thumbtack")){const e=this.topic
return e.get("pinned")?e.clearPin():e.rePin(),!1}},canAct(e){return this.currentUser&&!e},topicClosedArchived(e,t){return e&&t?(this._set("closedArchived","lock","locked_and_archived"),this._reset("closed"),this._reset("archived"),!0):(this._reset("closedArchived"),e?this._set("closed","lock","locked"):this._reset("closed"),t?this._set("archived","lock","archived"):this._reset("archived"),!1)},topicWarning(e){return e?this._set("warning","envelope","warning"):this._reset("warning")},topicPrivateMessage(e,t,i){return e&&t&&!i?this._set("privateMessage","envelope","personal_message"):this._reset("privateMessage")},topicPinned(e){return e?this._set("pinned","thumbtack","pinned"):this._reset("pinned")},topicUnpinned(e){return e?this._set("unpinned","thumbtack","unpinned",{class:"unpinned"}):this._reset("unpinned")},topicInvisible(e){return e?this._set("invisible","far-eye-slash","unlisted"):this._reset("invisible")},_set(e,t,i,r){return this.set(`${e}Icon`,(0,s.htmlSafe)((0,o.iconHTML)(`${t}`,r))),this.set(`${e}Title`,n.default.t(`topic_statuses.${i}.help`)),!0},_reset(e){return this.set(`${e}Icon`,null),this.set(`${e}Title`,null),!1}},"canAct",[l],Object.getOwnPropertyDescriptor(h,"canAct"),h),f(h,"topicClosedArchived",[a],Object.getOwnPropertyDescriptor(h,"topicClosedArchived"),h),f(h,"topicWarning",[u],Object.getOwnPropertyDescriptor(h,"topicWarning"),h),f(h,"topicPrivateMessage",[c],Object.getOwnPropertyDescriptor(h,"topicPrivateMessage"),h),f(h,"topicPinned",[d],Object.getOwnPropertyDescriptor(h,"topicPinned"),h),f(h,"topicUnpinned",[p],Object.getOwnPropertyDescriptor(h,"topicUnpinned"),h),f(h,"topicInvisible",[m],Object.getOwnPropertyDescriptor(h,"topicInvisible"),h),h)))
e.default=b})),define("discourse/components/topic-summary",["exports","@ember/component","@ember/template-factory","@glimmer/component","@glimmer/tracking","discourse/lib/ajax","discourse/lib/ajax-error","@ember/object","@ember/runloop","discourse/lib/text"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"Jkmo0Y5f",block:'[[[8,[39,0],null,[["@title"],["summary.strategy.title"]],[["default"],[[[[1,"\\n  "],[11,0],[24,0,"topic-summary"],[4,[38,1],[[30,0,["summarize"]]],null],[12],[1,"\\n    "],[8,[39,2],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["loading"]]],[[[1,"      "],[10,2],[14,0,"summary-area"],[12],[1,[30,0,["summary"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,4],null,[["@close"],[[28,[37,5],["closeModal"],null]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","did-insert","conditional-loading-spinner","unless","d-modal-cancel","route-action"]]',moduleName:"discourse/components/topic-summary.hbs",isStrictMode:!1})
let g=(c=class extends n.default{constructor(){super(...arguments),m(this,"loading",d,this),m(this,"summary",p,this)}summarize(){(0,a.schedule)("afterRender",(()=>{this.loading=!0,(0,o.ajax)(`/t/${this.args.topicId}/strategy-summary`).then((e=>{(0,u.cookAsync)(e.summary).then((e=>{this.summary=e}))})).catch(s.popupAjaxError).finally((()=>this.loading=!1))}))}},d=h(c.prototype,"loading",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=h(c.prototype,"summary",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h(c.prototype,"summarize",[l.action],Object.getOwnPropertyDescriptor(c.prototype,"summarize"),c.prototype),c)
e.default=g,(0,t.setComponentTemplate)(f,g)})),define("discourse/components/topic-timeline",["exports","@ember/component","@ember/template-factory","@glimmer/component","@glimmer/tracking","discourse/lib/optional-service","@ember/service","discourse-common/utils/decorators","I18n","@ember/object"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f
function g(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function b(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function y(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const _=(0,i.createTemplateFactory)({id:"0qLgjyl+",block:'[[[11,0],[16,0,[28,[37,0],["timeline-container",[30,0,["classes"]]],null]],[4,[38,1],[[30,0,["addShowClass"]]],null],[12],[1,"\\n  "],[11,0],[24,0,"topic-timeline"],[4,[38,1],[[30,0,["addUserTip"]]],null],[12],[1,"\\n    "],[8,[39,2],null,[["@model","@enteredIndex","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@jumpToPostPrompt","@fullscreen","@mobileView","@toggleMultiSelect","@showTopicSlowModeUpdate","@showTopReplies","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@replyToPost","@setDocked","@setDockedBottom"],[[30,1],[30,0,["enteredIndex"]],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19],[30,20],[30,21],[30,22],[30,23],[30,0,["setDocked"]],[30,0,["setDockedBottom"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@model","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@jumpToPostPrompt","@fullscreen","@mobileView","@toggleMultiSelect","@showTopicSlowModeUpdate","@showTopReplies","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@replyToPost"],false,["concat-class","did-insert","topic-timeline/container"]]',moduleName:"discourse/components/topic-timeline.hbs",isStrictMode:!1})
let v=(c=class extends n.default{constructor(){super(...arguments),g(this,"siteSettings",d,this),g(this,"currentUser",p,this),g(this,"enteredIndex",m,this),g(this,"docked",h,this),g(this,"dockedBottom",f,this),b(this,"adminTools",(0,o.default)()),this.args.prevEvent&&(this.enteredIndex=this.args.prevEvent.postIndex-1)}get createdAt(){return new Date(this.args.model.created_at)}get classes(){const e=[]
return this.args.fullscreen&&e.push("timeline-fullscreen"),this.docked&&(e.push("timeline-docked"),this.dockedBottom&&e.push("timeline-docked-bottom")),e.join(" ")}addShowClass(e){this.args.fullscreen&&!this.args.addShowClass&&e.classList.add("show")}addUserTip(e){this.currentUser&&this.currentUser.showUserTip({id:"topic_timeline",titleText:a.default.t("user_tips.topic_timeline.title"),contentText:a.default.t("user_tips.topic_timeline.content"),reference:document.querySelector("div.timeline-scrollarea-wrapper"),appendTo:e,placement:"left"})}setDocked(e){this.docked!==e&&(this.docked=e)}setDockedBottom(e){this.dockedBottom!==e&&(this.dockedBottom=e)}},d=y(c.prototype,"siteSettings",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=y(c.prototype,"currentUser",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=y(c.prototype,"enteredIndex",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.enteredIndex}}),h=y(c.prototype,"docked",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=y(c.prototype,"dockedBottom",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y(c.prototype,"addShowClass",[l.bind],Object.getOwnPropertyDescriptor(c.prototype,"addShowClass"),c.prototype),y(c.prototype,"addUserTip",[l.bind],Object.getOwnPropertyDescriptor(c.prototype,"addUserTip"),c.prototype),y(c.prototype,"setDocked",[u.action],Object.getOwnPropertyDescriptor(c.prototype,"setDocked"),c.prototype),y(c.prototype,"setDockedBottom",[u.action],Object.getOwnPropertyDescriptor(c.prototype,"setDockedBottom"),c.prototype),c)
e.default=v,(0,t.setComponentTemplate)(_,v)})),define("discourse/components/topic-timeline/back-button",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"tOeW8raQ",block:'[[[8,[39,0],null,[["@type","@class","@title","@action"],["button","btn-primary btn-small back-button",[28,[37,1],["topic.timeline.back_description"],null],[30,1]]],[["default"],[[[[1,"\\n  "],[1,[28,[35,1],["topic.timeline.back"],null]],[1,"\\n"]],[]]]]]],["@onGoBack"],false,["d-button","i18n"]]',moduleName:"discourse/components/topic-timeline/back-button.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/topic-timeline/container",["exports","@ember/component","@ember/template-factory","@glimmer/component","@glimmer/tracking","@ember/object","I18n","@ember/template","@ember/service","discourse-common/utils/decorators","discourse/widgets/post-small-action","discourse-common/utils/dom-utils","discourse/lib/offset-calculator"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){var m,h,f,g,b,y,_,v,w,k,x,P,O,T,S,j,C,z
function I(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function E(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function M(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SCROLLER_HEIGHT=void 0,e.scrollareaHeight=U,e.timelineDate=F
const D=(0,i.createTemplateFactory)({id:"Vto1sUCH",block:'[[[41,[30,1],[[[1,"  "],[10,0],[14,0,"title"],[12],[1,"\\n    "],[10,"h2"],[12],[1,"\\n      "],[11,3],[24,0,"fancy-title"],[24,6,""],[4,[38,1],["click",[30,2]],null],[12],[1,[30,0,["topicTitle"]]],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[28,[37,2],[[30,0,["siteSettings","topic_featured_link_enabled"]],[30,0,["showTags"]]],null],[[[1,"      "],[10,0],[14,0,"topic-header-extra"],[12],[1,"\\n"],[41,[30,0,["showTags"]],[[[1,"          "],[10,0],[14,0,"list-tags"],[12],[1,"\\n            "],[1,[28,[35,3],[[30,3]],[["mode","tags"],["list",[30,3,["tags"]]]]]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1,"          "],[1,[28,[35,4],[[30,3]],null]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,5],[[28,[37,6],[[30,3,["isPrivateMessage"]]],null],[30,3,["category"]]],null],[[[1,"      "],[10,0],[14,0,"topic-category"],[12],[1,"\\n"],[41,[30,3,["category","parentCategory"]],[[[1,"          "],[1,[28,[35,7],[[30,3,["category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1,"        "],[1,[28,[35,7],[[30,3,["category"]]],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["excerpt"]],[[[1,"      "],[10,0],[14,0,"post-excerpt"],[12],[1,[28,[35,8],[[30,0,["excerpt"]]],null]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,5],[[28,[37,6],[[30,1]],null],[30,0,["currentUser"]]],null],[[[1,"  "],[10,0],[14,0,"timeline-controls"],[12],[1,"\\n    "],[8,[39,9],null,[["@name","@outletArgs"],["timeline-controls-before",[28,[37,10],null,[["model"],[[30,3]]]]]],null],[1,"\\n    "],[8,[39,11],null,[["@topic","@addKeyboardTargetClass","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,3],true,[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayTimeLineScrollArea"]],[[[1,"  "],[10,0],[14,0,"timeline-scrollarea-wrapper"],[12],[1,"\\n    "],[10,0],[14,0,"timeline-date-wrapper"],[12],[1,"\\n      "],[10,3],[14,0,"start-date"],[15,"onClick",[30,0,["updatePercentage"]]],[15,"title",[30,0,["startDate"]]],[12],[1,"\\n        "],[10,1],[12],[1,"\\n          "],[1,[30,0,["startDate"]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"timeline-scrollarea"],[15,5,[30,0,["timelineScrollareaStyle"]]],[12],[1,"\\n      "],[10,0],[14,0,"timeline-padding"],[15,5,[30,0,["beforePadding"]]],[15,"onClick",[30,0,["updatePercentage"]]],[12],[13],[1,"\\n      "],[8,[39,12],null,[["@current","@total","@onGoBack","@fullscreen","@showDockedButton","@date","@didStartDrag","@dragMove","@didEndDrag"],[[30,0,["current"]],[30,0,["total"]],[30,0,["onGoBack"]],[30,1],[30,0,["showDockedButton"]],[30,0,["date"]],[30,0,["didStartDrag"]],[30,0,["dragMove"]],[30,0,["didEndDrag"]]]],null],[1,"\\n      "],[10,0],[14,0,"timeline-padding"],[15,5,[30,0,["afterPadding"]]],[15,"onClick",[30,0,["updatePercentage"]]],[12],[13],[1,"\\n\\n"],[41,[28,[37,5],[[30,0,["hasBackPosition"]],[30,0,["showButton"]]],null],[[[1,"        "],[10,0],[14,0,"timeline-last-read"],[15,5,[30,0,["lastReadStyle"]]],[12],[1,"\\n          "],[1,[28,[35,13],["minus"],[["class"],["progress"]]]],[1,"\\n          "],[8,[39,14],null,[["@onGoBack"],[[30,0,["goBack"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"timeline-date-wrapper"],[12],[1,"\\n      "],[10,3],[14,0,"now-date"],[15,"onClick",[30,0,["updatePercentage"]]],[12],[1,"\\n        "],[10,1],[12],[1,"\\n          "],[1,[28,[35,15],[[30,0,["nowDate"]],[30,0,["nowDateOptions"]]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"timeline-footer-controls"],[12],[1,"\\n"],[41,[30,0,["displaySummary"]],[[[1,"      "],[11,"button"],[24,0,"show-summary btn btn-small"],[16,"title",[28,[37,16],["summary.short_title"],null]],[24,4,"button"],[4,[38,1],["click",[30,17]],null],[12],[1,"\\n        "],[1,[28,[35,13],["layer-group"],null]],[1,"\\n        "],[1,[28,[35,16],["summary.short_label"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,5],[[30,0,["currentUser"]],[28,[37,6],[[30,1]],null]],null],[[[41,[30,0,["canCreatePost"]],[[[1,"        "],[11,"button"],[24,0,"btn btn-default create reply-to-post no-text btn-icon"],[16,"title",[28,[37,16],["topic.reply.help"],null]],[24,4,"button"],[4,[38,1],["click",[28,[37,17],[[30,18],null],null]],null],[12],[1,"\\n          "],[1,[28,[35,13],["reply"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,1],[[[1,"      "],[11,"button"],[24,0,"timeline-open-jump-to-post-prompt-btn btn btn-text jump-to-post"],[16,"title",[28,[37,16],["topic.progress.jump_prompt_long"],null]],[24,4,"button"],[4,[38,1],["click",[30,19]],null],[12],[1,"\\n        "],[10,1],[14,0,"d-button-label"],[12],[1,"\\n          "],[1,[28,[35,16],["topic.progress.jump_prompt"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["currentUser"]],[[[1,"      "],[8,[39,18],null,[["@notificationLevel","@topic","@showFullTitle","@appendReason","@placement","@showCaret"],[[30,3,["details","notification_level"]],[30,3],false,false,"bottom-end",false]],null],[1,"\\n"],[41,[30,20],[[[1,"        "],[8,[39,11],null,[["@topic","@addKeyboardTargetClass","@openUpwards"],[[30,3],true,true]],null],[1,"\\n"]],[]],null]],[]],null],[1,"    "],[8,[39,9],null,[["@name","@outletArgs"],["timeline-footer-controls-after",[28,[37,10],null,[["model"],[[30,3]]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["@fullscreen","@jumpTop","@model","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@showTopReplies","@replyToPost","@jumpToPostPrompt","@mobileView"],false,["if","on","or","discourse-tags","topic-featured-link","and","not","category-link","html-safe","plugin-outlet","hash","topic-admin-menu-button","topic-timeline/scroller","d-icon","topic-timeline/back-button","age-with-tooltip","i18n","fn","topic-notifications-button"]]',moduleName:"discourse/components/topic-timeline/container.hbs",isStrictMode:!1})
e.SCROLLER_HEIGHT=50
const N=170,L=300
let A=(m=(0,u.debounce)(50),h=class extends n.default{constructor(){super(...arguments),I(this,"appEvents",f,this),I(this,"siteSettings",g,this),I(this,"currentUser",b,this),I(this,"showButton",y,this),I(this,"current",_,this),I(this,"percentage",v,this),I(this,"total",w,this),I(this,"date",k,this),I(this,"lastReadPercentage",x,this),I(this,"lastRead",P,this),I(this,"lastReadTop",O,this),I(this,"before",T,this),I(this,"after",S,this),I(this,"timelineScrollareaStyle",j,this),I(this,"dragging",C,this),I(this,"excerpt",z,this),E(this,"intersectionObserver",null),this.args.mobileView||(this.appEvents.on("topic:current-post-scrolled",this.postScrolled),this.appEvents.on("composer:opened",this.calculatePosition),this.appEvents.on("composer:resized",this.calculatePosition),this.appEvents.on("composer:closed",this.calculatePosition),this.appEvents.on("post-stream:posted",this.calculatePosition)),this.intersectionObserver=new IntersectionObserver((e=>{for(const t of e){const e=t.boundingClientRect
"topic-bottom"===t.target.id?this.topicBottom=e.y+window.scrollY:this.topicTop=e.y+window.scrollY}}))
const e=[document.querySelector(".container.posts"),document.querySelector("#topic-bottom")]
for(let t=0;t<e.length;t++)this.intersectionObserver.observe(e[t])
this.calculatePosition(),this.dockCheck()}get displaySummary(){return this.siteSettings.summary_timeline_button&&!this.args.fullScreen&&this.args.model.has_summary&&!this.args.model.postStream.summary}get displayTimeLineScrollArea(){if(this.args.mobileView)return!0
if(1===this.total){const e=document.querySelector(".posts-wrapper")
if(e&&e.offsetHeight<1e3)return!1}return!0}get canCreatePost(){return this.args.model.details?.can_create_post}get topicTitle(){return(0,l.htmlSafe)(this.args.mobileView?this.args.model.fancyTitle:"")}get showTags(){return this.siteSettings.tagging_enabled&&this.args.model.tags?.length>0}get style(){return(0,l.htmlSafe)(`height: ${U()}px`)}get beforePadding(){return(0,l.htmlSafe)(`height: ${this.before}px`)}get afterPadding(){return(0,l.htmlSafe)(`height: ${this.after}px`)}get showDockedButton(){return!this.args.mobileView&&this.hasBackPosition&&!this.showButton}get hasBackPosition(){return this.lastRead&&this.lastRead>3&&this.lastRead>this.current&&Math.abs(this.lastRead-this.current)>3&&Math.abs(this.lastRead-this.total)>1&&this.lastRead!==this.total}get lastReadStyle(){return(0,l.htmlSafe)(`height: 20px; top: ${this.topPosition}px`)}get topPosition(){const e=U()-10
return this.lastReadTop>e?e:this.lastReadTop}get startDate(){return F(this.args.model.createdAt)}get nowDateOptions(){return{addAgo:!0,defaultFormat:F}}get nowDate(){return this.args.model.get("last_posted_at")||this.args.model.get("created_at")}get lastReadHeight(){return Math.round(this.lastReadPercentage*U())}calculatePosition(){this.timelineScrollareaStyle=(0,l.htmlSafe)(`height: ${U()}px`)
const e=this.args.model,t=e.postStream
this.total=t.filteredPostsCount,this.scrollPosition=this.clamp(Math.floor(this.total*this.percentage),0,this.total)+1,this.current=this.clamp(this.scrollPosition,1,this.total)
const i=t.closestDaysAgoFor(this.current)
let n
if(void 0===i){const e=t.posts.findBy("id",t.stream[this.current])
e&&(n=new Date(e.created_at))}else null!==i?(n=new Date,n.setDate(n.getDate()-i||0)):n=null
this.date=n
const r=e.last_read_post_number,o=e.last_read_post_id
if(o&&r){const i=t.stream.indexOf(o)+1
this.lastRead=i,this.lastReadPercentage=this._percentFor(e,i)}this.position!==this.scrollPosition&&(this.position=this.scrollPosition,this.updateScrollPosition(this.current)),this.before=this.scrollareaRemaining()*this.percentage,this.after=U()-this.before-50,null!==this.percentage&&this.hasBackPosition&&(this.lastReadTop=Math.round(this.lastReadPercentage*U()),this.showButton=this.before+50-5<this.lastReadTop||this.before>this.lastReadTop+25)}updateScrollPosition(e){if(!this.args.fullscreen)return
const t=this.args.model.postStream
!this.position!==e&&t.excerpt(e-1).then((t=>{if(t&&this.position===e){let e=""
t.username&&(e="<span class='username'>"+t.username+":</span> "),t.excerpt?this.excerpt=e+t.excerpt:t.action_code&&(this.excerpt=`${e} ${(0,c.actionDescriptionHtml)(t.action_code,t.created_at,t.username)}`)}}))}updatePercentage(e){const t=e.pageY||e.touches[0].pageY,i=document.querySelector(".timeline-scrollarea"),n=d.default.offset(i).top
this.percentage=this.clamp(parseFloat(t-n)/i.offsetHeight),this.commit()}didStartDrag(){this.dragging=!0}dragMove(e){e.stopPropagation(),e.preventDefault(),this.updatePercentage(e)}didEndDrag(){this.dragging=!1,this.commit()}postScrolled(e){this.current=e.postIndex,this.percentage=e.percent,this.calculatePosition(),this.dockCheck()}goBack(){this.args.jumpToIndex(this.lastRead)}dockCheck(){const e=document.querySelector(".timeline-container"),t=e&&e.offsetHeight||400,i=this.dockAt,n=(0,p.headerOffset)()+window.pageYOffset,r=n+t
this.dockBottom=!1,n<this.topicTop?this.dockAt=parseInt(this.topicTop,10):r>this.topicBottom?(this.dockAt=parseInt(this.topicBottom-t,10),this.dockBottom=!0,this.dockAt<0&&(this.dockAt=0)):this.dockAt=null,this.dockAt!==i&&(this.dockAt?(this.args.setDocked(!0),this.dockBottom&&this.args.setDockedBottom(!0)):(this.args.setDocked(!1),this.args.setDockedBottom(!1)))}commit(){this.calculatePosition(),this.dragging||(this.current===this.scrollPosition?this.args.jumpToIndex(this.current):this.args.jumpEnd())}clamp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1
return Math.max(Math.min(e,i),t)}scrollareaRemaining(){return U()-50}willDestroy(){this.args.mobileView||(this.intersectionObserver?.disconnect(),this.intersectionObserver=null,this.appEvents.off("composer:opened",this.calculatePosition),this.appEvents.off("composer:resized",this.calculatePosition),this.appEvents.off("composer:closed",this.calculatePosition),this.appEvents.off("topic:current-post-scrolled",this.postScrolled),this.appEvents.off("post-stream:posted",this.calculatePosition))}_percentFor(e,t){const i=e.postStream.filteredPostsCount
switch(t){case 0:return 0
case i-1:return 1
default:return this.clamp(parseFloat(t)/i)}}},f=M(h.prototype,"appEvents",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=M(h.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=M(h.prototype,"currentUser",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=M(h.prototype,"showButton",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=M(h.prototype,"current",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=M(h.prototype,"percentage",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this._percentFor(this.args.model,this.args.enteredIndex)}}),w=M(h.prototype,"total",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=M(h.prototype,"date",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=M(h.prototype,"lastReadPercentage",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=M(h.prototype,"lastRead",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=M(h.prototype,"lastReadTop",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=M(h.prototype,"before",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=M(h.prototype,"after",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=M(h.prototype,"timelineScrollareaStyle",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=M(h.prototype,"dragging",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z=M(h.prototype,"excerpt",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),M(h.prototype,"calculatePosition",[u.bind],Object.getOwnPropertyDescriptor(h.prototype,"calculatePosition"),h.prototype),M(h.prototype,"updateScrollPosition",[m],Object.getOwnPropertyDescriptor(h.prototype,"updateScrollPosition"),h.prototype),M(h.prototype,"updatePercentage",[u.bind],Object.getOwnPropertyDescriptor(h.prototype,"updatePercentage"),h.prototype),M(h.prototype,"didStartDrag",[u.bind],Object.getOwnPropertyDescriptor(h.prototype,"didStartDrag"),h.prototype),M(h.prototype,"dragMove",[u.bind],Object.getOwnPropertyDescriptor(h.prototype,"dragMove"),h.prototype),M(h.prototype,"didEndDrag",[u.bind],Object.getOwnPropertyDescriptor(h.prototype,"didEndDrag"),h.prototype),M(h.prototype,"postScrolled",[u.bind],Object.getOwnPropertyDescriptor(h.prototype,"postScrolled"),h.prototype),M(h.prototype,"goBack",[o.action],Object.getOwnPropertyDescriptor(h.prototype,"goBack"),h.prototype),h)
function U(){const e=document.getElementById("reply-control").offsetHeight||0,t=document.querySelector(".d-header")?.offsetHeight||0,i=(window.innerHeight-e-t)/2
return Math.max(N,Math.min(i,L))}function F(e){const t=e.getFullYear()===(new Date).getFullYear()?"long_no_year_no_time":"timeline_date"
return moment(e).format(s.default.t(`dates.${t}`))}e.default=A,(0,t.setComponentTemplate)(D,A)})),define("discourse/components/topic-timeline/scroller",["exports","@ember/component","@ember/template-factory","@glimmer/component","discourse/components/topic-timeline/container","I18n","@ember/template"],(function(e,t,i,n,r,o,s){function l(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"Wpva3lPa",block:'[[[11,0],[16,5,[30,0,["style"]]],[24,0,"timeline-scroller"],[4,[38,0],null,[["didStartDrag","didEndDrag","dragMove"],[[30,1],[30,2],[30,3]]]],[12],[1,"\\n"],[41,[30,4],[[[1,"    "],[10,0],[14,0,"timeline-scroller-content"],[12],[1,"\\n      "],[10,0],[14,0,"timeline-replies"],[12],[1,"\\n        "],[1,[30,0,["repliesShort"]]],[1,"\\n      "],[13],[1,"\\n"],[41,[30,5],[[[1,"        "],[10,0],[14,0,"timeline-ago"],[12],[1,"\\n          "],[1,[30,0,["timelineAgo"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[28,[37,2],[[30,6],[28,[37,3],[[30,7]],null]],null],[[[1,"        "],[8,[39,4],null,[["@onGoBack"],[[30,8]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"timeline-handle"],[12],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"timeline-handle"],[12],[13],[1,"\\n    "],[10,0],[14,0,"timeline-scroller-content"],[12],[1,"\\n      "],[10,0],[14,0,"timeline-replies"],[12],[1,"\\n        "],[1,[30,0,["repliesShort"]]],[1,"\\n      "],[13],[1,"\\n"],[41,[30,5],[[[1,"        "],[10,0],[14,0,"timeline-ago"],[12],[1,"\\n          "],[1,[30,0,["timelineAgo"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[28,[37,2],[[30,6],[28,[37,3],[[30,7]],null]],null],[[[1,"        "],[8,[39,4],null,[["@onGoBack"],[[30,8]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]]],[13]],["@didStartDrag","@didEndDrag","@dragMove","@fullscreen","@date","@showDockedButton","@dragging","@onGoBack"],false,["draggable","if","and","not","topic-timeline/back-button"]]',moduleName:"discourse/components/topic-timeline/scroller.hbs",isStrictMode:!1})
class u extends n.default{constructor(){super(...arguments),l(this,"style",(0,s.htmlSafe)(`height: ${r.SCROLLER_HEIGHT}px`))}get repliesShort(){const e=this.args.current,t=this.args.total
return o.default.t("topic.timeline.replies_short",{current:e,total:t})}get timelineAgo(){return(0,r.timelineDate)(this.args.date)}}e.default=u,(0,t.setComponentTemplate)(a,u)})),define("discourse/components/topic-timer-info",["exports","@ember/component","@ember/template-factory","@ember/runloop","discourse-common/lib/later","discourse/models/category","discourse/controllers/edit-topic-timer","I18n","discourse-common/utils/decorators","discourse-common/lib/icon-library","discourse-common/config/environment","@ember/template"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f,g
function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,i.createTemplateFactory)({id:"lW6mDbXh",block:'[[[41,[30,0,["showTopicTimer"]],[[[1,"  "],[10,"h3"],[14,0,"topic-timer-heading"],[12],[1,"\\n    "],[10,1],[15,"title",[30,0,["title"]]],[12],[1,"\\n      "],[1,[30,0,["clockIcon"]]],[1,"\\n      "],[1,[30,0,["notice"]]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"topic-timer-modify"],[12],[1,"\\n"],[41,[30,0,["showEdit"]],[[[1,"        "],[8,[39,1],null,[["@title","@icon","@class","@action"],["post.controls.edit_timer","pencil-alt","btn topic-timer-edit no-text",[30,0,["showTopicTimerModal"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showTrashCan"]],[[[1,"        "],[8,[39,1],null,[["@title","@icon","@class","@action"],["post.controls.remove_timer","trash-alt","btn topic-timer-remove no-text",[30,0,["removeTopicTimer"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-button"]]',moduleName:"discourse/components/topic-timer-info.hbs",isStrictMode:!1})
var _=(0,t.setComponentTemplate)(y,t.default.extend((p=(0,a.on)("didReceiveAttrs"),m=(0,a.on)("willDestroyElement"),h=(0,a.default)("canModifyTimer","removeTopicTimer"),f=(0,a.default)("canModifyTimer","showTopicTimerModal"),b(g={classNames:["topic-timer-info"],_delayedRerender:null,clockIcon:(0,d.htmlSafe)(`${(0,u.iconHTML)("far-clock")}`),trashLabel:l.default.t("post.controls.remove_timer"),title:null,notice:null,showTopicTimer:null,showTopicTimerModal:null,removeTopicTimer:null,setupRenderer(){this.renderTopicTimer()},cancelDelayedRenderer(){this._delayedRerender&&(0,n.cancel)(this._delayedRerender)},canModifyTimer(){return this.currentUser&&this.currentUser.get("canManageTopic")},showTrashCan:(e,t)=>e&&t,showEdit:(e,t)=>e&&t,additionalOpts:()=>({}),renderTopicTimer(){const e=this.statusType===s.DELETE_REPLIES_TYPE
if(!e&&!this.basedOnLastPost&&(!this.executeAt||this.executeAt<moment()))return void this.set("showTopicTimer",null)
if(this.isDestroyed)return
const t=this.topicClosed?"close":"open"
if(void 0!==this.topicClosed&&t===this.statusType)return
const i=moment(this.executeAt),n=moment.duration(i-moment()),a=n.asMinutes()
if(a>0||e||this.basedOnLastPost){if(!this.executeAt)return
let e=parseInt(this.durationMinutes,10)||0,t={timeLeft:n.humanize(!0),duration:moment.duration(e,"minutes").humanize({s:60,m:60,h:24})}
const i=this.categoryId
if(i){const e=o.default.findById(i)
t=Object.assign({categoryName:e.get("slug"),categoryUrl:e.get("url")},t)}t=Object.assign(t,this.additionalOpts()),this.setProperties({title:(0,d.htmlSafe)(`${moment(this.executeAt).format("LLLL")}`),notice:(0,d.htmlSafe)(`${l.default.t(this._noticeKey(),t)}`),showTopicTimer:!0}),(0,c.isTesting)()||(this._delayedRerender=(0,r.default)((()=>{this.renderTopicTimer()}),this.rerenderDelay(a)))}else this.set("showTopicTimer",null)},rerenderDelay:e=>e>2160?432e5:e>1410?36e5:e>90?18e5:e>2?6e4:1e3,_noticeKey(){let e=this.statusType
return"silent_close"===e&&(e="close"),this.basedOnLastPost&&"close"===e&&(e="close_after_last_post"),`topic.status_update_notice.auto_${e}`}},"setupRenderer",[p],Object.getOwnPropertyDescriptor(g,"setupRenderer"),g),b(g,"cancelDelayedRenderer",[m],Object.getOwnPropertyDescriptor(g,"cancelDelayedRenderer"),g),b(g,"canModifyTimer",[a.default],Object.getOwnPropertyDescriptor(g,"canModifyTimer"),g),b(g,"showTrashCan",[h],Object.getOwnPropertyDescriptor(g,"showTrashCan"),g),b(g,"showEdit",[f],Object.getOwnPropertyDescriptor(g,"showEdit"),g),g)))
e.default=_})),define("discourse/components/topic-title",["exports","@ember/component","@ember/template-factory","discourse/mixins/key-enter-escape","@ember/runloop"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.addTopicTitleDecorator=function(e){s.push(e)},e.default=void 0,e.resetTopicTitleDecorators=function(){s.length=0},e.topicTitleDecorators=void 0
const o=(0,i.createTemplateFactory)({id:"57nlOKqN",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n  "],[10,0],[14,0,"title-wrapper"],[12],[1,"\\n    "],[18,1,null],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["topic-title","div",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["&default"],false,["yield","plugin-outlet","hash"]]',moduleName:"discourse/components/topic-title.hbs",isStrictMode:!1})
let s=[]
e.topicTitleDecorators=s
var l=(0,t.setComponentTemplate)(o,t.default.extend(n.default,{elementId:"topic-title",didInsertElement(){this._super(...arguments),(0,r.schedule)("afterRender",(()=>{if(this.element&&!this.isDestroying&&!this.isDestroyed){const e=this.element.querySelector(".fancy-title")
e&&s&&s.forEach((t=>t(this.model,e,"topic-title")))}}))}}))
e.default=l})),define("discourse/components/track-selected",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"LQrVbpZQ",block:'[[[8,[39,0],null,[["@type","@checked"],["checkbox",[30,0,["selected"]]]],null]],[],false,["input"]]',moduleName:"discourse/components/track-selected.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((r=(0,n.observes)("selected"),l=o={tagName:"span",selectionChanged(){const e=this.selected,t=this.selectedList,i=this.selectedId
e?t.addObject(i):t.removeObject(i)}},a="selectionChanged",u=[r],c=Object.getOwnPropertyDescriptor(o,"selectionChanged"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/two-factor-backup-dropdown",["exports","select-kit/components/dropdown-select-box","I18n","@ember/object"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({classNames:["two-factor-backup-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,n.computed)((function(){const e=[]
return e.push({id:"edit",icon:"pencil-alt",name:i.default.t("user.second_factor.edit")}),this.secondFactorBackupEnabled&&e.push({id:"disable",icon:"trash-alt",name:i.default.t("user.second_factor.disable")}),e})),actions:{onChange(e){switch(e){case"edit":this.editSecondFactorBackup()
break
case"disable":this.disableSecondFactorBackup()}}}})
e.default=r})),define("discourse/components/uppy-backup-uploader",["exports","@ember/component","@ember/template-factory","@ember/object/computed","I18n","discourse/mixins/uppy-upload","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s){var l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"je4ghZHh",block:'[[[10,"label"],[14,0,"btn"],[15,"disabled",[30,0,["uploading"]]],[15,"title",[28,[37,0],["admin.backups.upload.title"],null]],[12],[1,"\\n  "],[1,[28,[35,1],["upload"],null]],[1,[30,0,["uploadButtonText"]]],[1,"\\n  "],[10,"input"],[14,0,"hidden-upload-field"],[15,"disabled",[30,0,["uploading"]]],[14,"accept",".gz"],[14,4,"file"],[12],[13],[1,"\\n"],[13]],[],false,["i18n","d-icon"]]',moduleName:"discourse/components/uppy-backup-uploader.hbs",isStrictMode:!1})
var p=(0,t.setComponentTemplate)(d,t.default.extend(o.default,(l=(0,s.default)("localBackupStorage"),a=(0,s.default)("uploading","uploadProgress"),c(u={id:"uppy-backup-uploader",tagName:"span",type:"backup",uploadRootPath:"/admin/backups",uploadUrl:"/admin/backups/upload",useMultipartUploadsIfAvailable(e){return!e&&this.siteSettings.enable_direct_s3_uploads},useChunkedUploads:(0,n.alias)("localBackupStorage"),uploadButtonText:(e,t)=>e?r.default.t("admin.backups.upload.uploading_progress",{progress:t}):r.default.t("admin.backups.upload.label"),validateUploadedFilesOptions:()=>({skipValidation:!0}),uploadDone(e){this.done(e.file_name)}},"useMultipartUploadsIfAvailable",[l],Object.getOwnPropertyDescriptor(u,"useMultipartUploadsIfAvailable"),u),c(u,"uploadButtonText",[a],Object.getOwnPropertyDescriptor(u,"uploadButtonText"),u),u)))
e.default=p}))
define("discourse/components/uppy-image-uploader",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse/mixins/uppy-upload","discourse-common/utils/decorators","discourse-common/lib/get-url","@ember/utils","discourse/lib/lightbox","@ember/runloop","@ember/template","discourse/lib/uploads","I18n"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){var m,h,f,g,b,y,_,v,w,k
function x(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const P=(0,i.createTemplateFactory)({id:"fJ6x37qg",block:'[[[10,0],[14,0,"uploaded-image-preview input-xxlarge"],[15,5,[30,0,["backgroundStyle"]]],[12],[1,"\\n"],[41,[30,0,["showingPlaceholder"]],[[[1,"    "],[10,0],[14,0,"placeholder-overlay"],[15,5,[30,0,["placeholderStyle"]]],[12],[13],[1,"\\n"]],[]],null],[1,"  "],[10,0],[14,0,"image-upload-controls"],[12],[1,"\\n    "],[10,"label"],[15,0,[29,["btn btn-default pad-left no-text ",[52,[30,0,["disabled"]],"disabled"]]]],[15,"title",[30,0,["disabledReason"]]],[12],[1,"\\n      "],[1,[28,[35,1],["far-image"],null]],[1,"\\n      "],[8,[39,2],null,[["@fileInputDisabled","@fileInputClass","@acceptedFormatsOverride"],[[30,0,["disabled"]],"hidden-upload-field","image/*"]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["imageUrl"]],[[[1,"      "],[8,[39,3],null,[["@action","@class","@icon","@type"],[[28,[37,4],[[30,0],"trash"],null],"btn-danger pad-left no-text","far-trash-alt","button"]],null],[1,"\\n\\n      "],[8,[39,3],null,[["@icon","@title","@type","@class","@action","@disabled"],["discourse-expand","expand","button","image-uploader-lightbox-btn no-text",[28,[37,4],[[30,0],"toggleLightbox"],null],[30,0,["loadingLightbox"]]]],null],[1,"\\n"]],[]],null],[1,"\\n    "],[10,1],[15,0,[29,["btn ",[52,[51,[30,0,["uploading"]]],"hidden"]]]],[12],[1,[28,[35,6],["upload_selector.uploading"],null]],[1,"\\n      "],[1,[30,0,["uploadProgress"]]],[1,"%"],[13],[1,"\\n    "],[10,1],[15,0,[29,["btn ",[52,[51,[30,0,["processing"]]],"hidden"]]]],[12],[1,[28,[35,6],["upload_selector.processing"],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["imageUrl"]],[[[1,"    "],[10,3],[14,0,"lightbox"],[15,6,[30,0,["imageCDNURL"]]],[15,"title",[30,0,["imageFilename"]]],[14,"rel","nofollow ugc noopener"],[12],[1,"\\n\\n      "],[10,0],[14,0,"meta"],[12],[1,"\\n        "],[10,1],[14,0,"informations"],[12],[1,"\\n          "],[1,[30,0,["imageWidth"]]],[1,"x"],[1,[30,0,["imageHeight"]]],[1,"\\n          "],[1,[30,0,["imageFilesize"]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["if","d-icon","pick-files-button","d-button","action","unless","i18n"]]',moduleName:"discourse/components/uppy-image-uploader.hbs",isStrictMode:!1})
var O=(0,t.setComponentTemplate)(P,t.default.extend(r.default,(m=(0,o.default)("disabled","notAllowed"),h=(0,o.default)("currentUser.staff","siteSettings.{authorized_extensions,authorized_extensions_for_staff}"),f=(0,o.default)("imageUrl","placeholderUrl"),g=(0,o.default)("placeholderUrl"),b=(0,o.default)("imageUrl"),y=(0,o.default)("imageCDNURL"),_=(0,o.default)("imageUrl"),v=(0,o.on)("didRender"),w=(0,o.on)("willDestroyElement"),x(k={classNames:["image-uploader"],disabled:(0,n.or)("notAllowed","uploading","processing"),disabledReason(e,t){if(e&&t)return p.default.t("post.errors.no_uploads_authorized")},notAllowed(){return!(0,d.authorizesOneOrMoreExtensions)(this.currentUser?.staff,this.siteSettings)},showingPlaceholder:(e,t)=>!e&&t,placeholderStyle:e=>(0,l.isEmpty)(e)?(0,c.htmlSafe)(""):(0,c.htmlSafe)(`background-image: url(${e})`),imageCDNURL:e=>(0,l.isEmpty)(e)?(0,c.htmlSafe)(""):(0,s.getURLWithCDN)(e),backgroundStyle:e=>(0,c.htmlSafe)(`background-image: url(${e})`),imageBaseName(e){if(!(0,l.isEmpty)(e))return e.split("/").slice(-1)[0]},validateUploadedFilesOptions:()=>({imagesOnly:!0}),_uppyReady(){this._onPreProcessComplete((()=>{this.set("processing",!1)}))},uploadDone(e){this.setProperties({imageFilesize:e.human_filesize,imageFilename:e.original_filename,imageWidth:e.width,imageHeight:e.height}),this.onUploadDone?this.onUploadDone(e):this.set("imageUrl",e.url)},_applyLightbox(){(0,u.next)((()=>(0,a.default)(this.element,this.siteSettings)))},_closeOnRemoval(){$.magnificPopup?.instance&&$.magnificPopup.instance.close()},actions:{toggleLightbox(){$(this.element.querySelector("a.lightbox"))?.magnificPopup("open")},trash(){this._reset(),this.onUploadDeleted?this.onUploadDeleted():this.setProperties({imageUrl:null})}}},"disabledReason",[m],Object.getOwnPropertyDescriptor(k,"disabledReason"),k),x(k,"notAllowed",[h],Object.getOwnPropertyDescriptor(k,"notAllowed"),k),x(k,"showingPlaceholder",[f],Object.getOwnPropertyDescriptor(k,"showingPlaceholder"),k),x(k,"placeholderStyle",[g],Object.getOwnPropertyDescriptor(k,"placeholderStyle"),k),x(k,"imageCDNURL",[b],Object.getOwnPropertyDescriptor(k,"imageCDNURL"),k),x(k,"backgroundStyle",[y],Object.getOwnPropertyDescriptor(k,"backgroundStyle"),k),x(k,"imageBaseName",[_],Object.getOwnPropertyDescriptor(k,"imageBaseName"),k),x(k,"_applyLightbox",[v],Object.getOwnPropertyDescriptor(k,"_applyLightbox"),k),x(k,"_closeOnRemoval",[w],Object.getOwnPropertyDescriptor(k,"_closeOnRemoval"),k),k)))
e.default=O})),define("discourse/components/user-avatar-flair",["exports","@ember/component","@ember/template-factory","discourse/lib/avatar-flair","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"/5P0TS+t",block:'[[[41,[30,0,["flair"]],[[[1,"  "],[8,[39,1],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["flair","flairName"]],[30,0,["flair","flairUrl"]],[30,0,["flair","flairBgColor"]],[30,0,["flair","flairColor"]]]],null],[1,"\\n"]],[]],null]],[],false,["if","avatar-flair"]]',moduleName:"discourse/components/user-avatar-flair.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,t.default.extend((o=(0,r.default)("user"),a=s={tagName:"",flair(e){if(!e||!e.flair_group_id)return
if(e.flair_url||e.flair_bg_color)return{flairName:e.flair_name,flairUrl:e.flair_url,flairBgColor:e.flair_bg_color,flairColor:e.flair_color}
const t=(0,n.default)(this.site,e)
return t?{flairName:t.flair_name,flairUrl:t.flair_url,flairBgColor:t.flair_bg_color,flairColor:t.flair_color}:void 0}},u="flair",c=[o],d=Object.getOwnPropertyDescriptor(s,"flair"),p=s,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s)))
e.default=h})),define("discourse/components/user-badge",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o,s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"dzTGBxDW",block:'[[[10,3],[14,0,"user-card-badge-link"],[15,6,[30,0,["badgeUrl"]]],[12],[1,"\\n  "],[8,[39,0],null,[["@badge"],[[30,1]]],[["default"],[[[[1,"\\n"],[41,[30,0,["showGrantCount"]],[[[1,"      "],[10,1],[14,0,"count"],[12],[1," (×"],[1,[30,2]],[1,")"],[13],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"],[13]],["@badge","@count"],false,["badge-button","if"]]',moduleName:"discourse/components/user-badge.hbs",isStrictMode:!1})
var u=(0,t.setComponentTemplate)(a,t.default.extend((r=(0,n.default)("count"),o=(0,n.default)("badge","user"),l(s={tagName:"",showGrantCount:e=>e&&e>1,badgeUrl(){let e=this.get("user.username_lower")||""
return e=""!==e?"?username="+e:"",this.get("badge.url")+e}},"showGrantCount",[r],Object.getOwnPropertyDescriptor(s,"showGrantCount"),s),l(s,"badgeUrl",[o],Object.getOwnPropertyDescriptor(s,"badgeUrl"),s),s)))
e.default=u})),define("discourse/components/user-card-contents",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/computed","discourse/mixins/can-check-emails","discourse/mixins/card-contents-base","discourse/mixins/cleans-up","I18n","discourse/models/user","discourse/lib/formatter","discourse-common/lib/get-url","@ember/utils","discourse/lib/settings","@ember/string","discourse/lib/text","discourse/lib/utilities"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y){var _,v,w,k,x,P,O,T,S,j,C,z,I,E,M,D,N,L,A,U,F,R,B,$,q
function H(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const W=(0,i.createTemplateFactory)({id:"dYNxkZFM",block:'[[[41,[30,0,["visible"]],[[[1,"  "],[8,[39,1],null,[["@name","@outletArgs"],["before-user-card-content",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n  "],[10,0],[14,0,"card-content"],[12],[1,"\\n"],[41,[30,0,["loading"]],[[[1,"      "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n        "],[10,0],[14,0,"user-card-avatar"],[12],[1,"\\n          "],[10,0],[14,0,"card-avatar-placeholder animated-placeholder placeholder-animation"],[12],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n        "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"card-row"],[12],[1,"\\n        "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"card-row"],[12],[1,"\\n        "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"card-row"],[12],[1,"\\n        "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n        "],[10,0],[14,0,"user-card-avatar"],[12],[1,"\\n"],[41,[30,0,["contentHidden"]],[[[1,"            "],[10,1],[14,0,"card-huge-avatar"],[12],[1,[28,[35,3],[[30,0,["user"]],"huge"],null]],[13],[1,"\\n"]],[]],[[[1,"            "],[11,3],[16,6,[30,0,["user","path"]]],[24,0,"card-huge-avatar"],[4,[38,4],["click",[28,[37,5],[[30,0,["handleShowUser"]],[30,0,["user"]]],null]],null],[12],[1,[28,[35,3],[[30,0,["user"]],"huge"],null]],[13],[1,"\\n"]],[]]],[1,"\\n          "],[8,[39,6],null,[["@user"],[[30,0,["user"]]]],null],[1,"\\n\\n          "],[10,0],[12],[1,"\\n            "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-avatar-flair","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"names"],[12],[1,"\\n          "],[10,"h1"],[15,0,[29,[[30,0,["staff"]],"\\n              ",[30,0,["newUser"]],"\\n              ",[52,[30,0,["nameFirst"]],"full-name","username"]]]],[12],[1,"\\n"],[41,[30,0,["contentHidden"]],[[[1,"              "],[10,1],[14,1,"discourse-user-card-title"],[14,0,"name-username-wrapper"],[12],[1,"\\n                "],[1,[52,[30,0,["nameFirst"]],[30,0,["user","name"]],[28,[37,7],[[30,0,["user","username"]]],null]]],[1,"\\n              "],[13],[1,"\\n"]],[]],[[[1,"              "],[11,3],[16,6,[30,0,["user","path"]]],[24,0,"user-profile-link"],[4,[38,4],["click",[28,[37,5],[[30,0,["handleShowUser"]],[30,0,["user"]]],null]],null],[12],[1,"\\n                "],[10,1],[14,1,"discourse-user-card-title"],[14,0,"name-username-wrapper"],[12],[1,"\\n                  "],[1,[52,[30,0,["nameFirst"]],[30,0,["user","name"]],[28,[37,7],[[30,0,["user","username"]]],null]]],[1,"\\n                "],[13],[1,"\\n                "],[1,[28,[35,8],[[30,0,["user"]]],[["currentUser"],[[30,0,["currentUser"]]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n          "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-after-username","div",[28,[37,2],null,[["user","showUser"],[[30,0,["user"]],[28,[37,5],[[30,0,["handleShowUser"]],[30,0,["user"]]],null]]]]]],null],[1,"\\n"],[41,[30,0,["nameFirst"]],[[[1,"            "],[10,"h2"],[14,0,"username"],[12],[1,[30,0,["user","username"]]],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","name"]],[[[1,"              "],[10,"h2"],[14,0,"full-name"],[12],[1,[30,0,["user","name"]]],[13],[1,"\\n"]],[]],null]],[]]],[41,[30,0,["user","title"]],[[[1,"            "],[10,"h2"],[12],[1,[30,0,["user","title"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["user","staged"]],[[[1,"            "],[10,"h2"],[14,0,"staged"],[12],[1,[28,[35,9],["user.staged"],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasStatus"]],[[[1,"            "],[10,"h3"],[14,0,"user-status"],[12],[1,"\\n              "],[1,[28,[35,10],[[30,0,["userStatusEmoji"]]],null]],[1,"\\n              "],[10,1],[14,0,"user-status__description"],[12],[1,"\\n                "],[1,[30,0,["user","status","description"]]],[1,"\\n              "],[13],[1,"\\n              "],[1,[28,[35,11],[[30,0,["user","status","ends_at"]]],[["format"],["tiny"]]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[10,0],[12],[1,"\\n            "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-post-names","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"ul"],[14,0,"usercard-controls"],[12],[1,"\\n"],[41,[30,0,["user","can_send_private_message_to_user"]],[[[1,"            "],[10,"li"],[14,0,"compose-pm"],[12],[1,"\\n              "],[8,[39,12],null,[["@class","@action","@icon","@label"],["btn-primary",[28,[37,13],[[30,0],"composePM",[30,0,["user"]],[30,0,["post"]]],null],"envelope","user.private_message"]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-below-message-button","li",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,13],[[30,0],"close"],null]]]]]],null],[1,"\\n"],[41,[30,0,["showFilter"]],[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,12],null,[["@class","@action","@icon","@translatedLabel"],["btn-default",[28,[37,13],[[30,0],"filterPosts",[30,0,["user"]]],null],"filter",[30,0,["filterPostsLabel"]]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasUserFilters"]],[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,12],null,[["@action","@icon","@label"],[[28,[37,13],[[30,0],"cancelFilter"],null],"times","topic.filters.cancel"]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showDelete"]],[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,12],null,[["@class","@action","@actionParam","@icon","@label"],["btn-danger",[28,[37,13],[[30,0],"deleteUser"],null],[30,0,["user"]],"exclamation-triangle","admin.user.delete"]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[10,"li"],[12],[1,"\\n            "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-additional-buttons","div",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,13],[[30,0],"close"],null]]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-additional-controls","div",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,13],[[30,0],"close"],null]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["user","profile_hidden"]],[[[1,"        "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n          "],[10,0],[14,0,"profile-hidden"],[12],[1,"\\n            "],[10,1],[12],[1,[28,[35,9],["user.profile_hidden"],null]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","inactive"]],[[[1,"        "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n          "],[10,0],[14,0,"inactive-user"],[12],[1,"\\n            "],[10,1],[12],[1,[28,[35,9],["user.inactive_user"],null]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["isSuspendedOrHasBio"]],[[[1,"        "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n"],[41,[30,0,["user","suspend_reason"]],[[[1,"            "],[10,0],[14,0,"suspended"],[12],[1,"\\n              "],[10,0],[14,0,"suspension-date"],[12],[1,"\\n                "],[1,[28,[35,14],["ban"],null]],[1,"\\n"],[41,[30,0,["user","suspendedForever"]],[[[1,"                  "],[1,[28,[35,9],["user.suspended_permanently"],null]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,9],["user.suspended_notice"],[["date"],[[30,0,["user","suspendedTillDate"]]]]]],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n              "],[10,0],[14,0,"suspension-reason"],[12],[1,"\\n                "],[10,1],[14,0,"suspension-reason-title"],[12],[1,[28,[35,9],["user.suspended_reason"],null]],[13],[1,"\\n                "],[10,1],[14,0,"suspension-reason-description"],[12],[1,[30,0,["user","suspend_reason"]]],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","bio_excerpt"]],[[[1,"              "],[10,0],[14,0,"bio"],[12],[1,"\\n                "],[8,[39,15],null,null,[["default"],[[[[1,"\\n                  "],[1,[28,[35,10],[[30,0,["user","bio_excerpt"]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null]],[]]],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showFeaturedTopic"]],[[[1,"        "],[10,0],[14,0,"card-row"],[12],[1,"\\n          "],[10,0],[14,0,"featured-topic"],[12],[1,"\\n            "],[10,1],[14,0,"desc"],[12],[1,[28,[35,9],["user.featured_topic"],null]],[13],[1,"\\n            "],[8,[39,16],null,[["@route","@models"],["topic",[28,[37,17],[[30,0,["user","featured_topic","slug"]],[30,0,["user","featured_topic","id"]]],null]]],[["default"],[[[[1,[28,[35,18],[[28,[37,10],[[30,0,["user","featured_topic","fancy_title"]]],null]],null]]],[]]]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasLocaleOrWebsite"]],[[[1,"        "],[10,0],[14,0,"card-row"],[12],[1,"\\n          "],[10,0],[14,0,"location-and-website"],[12],[1,"\\n"],[41,[30,0,["user","website_name"]],[[[1,"              "],[10,1],[14,0,"website-name"],[12],[1,"\\n                "],[1,[28,[35,14],["globe"],null]],[1,"\\n"],[41,[30,0,["linkWebsite"]],[[[1,"                  "],[10,3],[15,6,[30,0,["user","website"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,[30,0,["user","website_name"]]],[13],[1,"\\n"]],[]],[[[1,"                  "],[10,1],[15,"title",[30,0,["user","website"]]],[12],[1,[30,0,["user","website_name"]]],[13],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["user","location"]],[[[1,"              "],[10,1],[14,0,"location"],[12],[1,"\\n                "],[1,[28,[35,14],["map-marker-alt"],null]],[1,"\\n                "],[10,1],[12],[1,[30,0,["user","location"]]],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showUserLocalTime"]],[[[1,"              "],[10,1],[14,0,"local-time"],[15,"title",[28,[37,9],["local_time"],null]],[12],[1,"\\n                "],[1,[28,[35,14],["far-clock"],null]],[1,"\\n                "],[10,1],[12],[1,[30,0,["formattedUserLocalTime"]]],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"            "],[10,1],[12],[1,"\\n              "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-location-and-website","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"card-row metadata-row"],[12],[1,"\\n"],[41,[51,[30,0,["contentHidden"]]],[[[1,"          "],[10,0],[14,0,"metadata"],[12],[1,"\\n"],[41,[30,0,["user","last_posted_at"]],[[[1,"              "],[10,"h3"],[12],[10,1],[14,0,"desc"],[12],[1,[28,[35,9],["last_post"],null]],[13],[1,"\\n                "],[1,[28,[35,11],[[30,0,["user","last_posted_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"]],[]],null],[1,"            "],[10,"h3"],[12],[10,1],[14,0,"desc"],[12],[1,[28,[35,9],["joined"],null]],[13],[1,"\\n              "],[1,[28,[35,11],[[30,0,["user","created_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"],[41,[30,0,["user","time_read"]],[[[1,"              "],[10,"h3"],[15,"title",[30,0,["timeReadTooltip"]]],[12],[1,"\\n                "],[10,1],[14,0,"desc"],[12],[1,[28,[35,9],["time_read"],null]],[13],[1,"\\n                "],[1,[28,[35,20],[[30,0,["user","time_read"]]],null]],[1,"\\n"],[41,[30,0,["showRecentTimeRead"]],[[[1,"                  "],[10,1],[12],[1,"("],[1,[28,[35,9],["time_read_recently"],[["time_read"],[[30,0,["recentTimeRead"]]]]]],[1,")"],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showCheckEmail"]],[[[1,"              "],[10,"h3"],[14,0,"email"],[12],[1,"\\n                "],[1,[28,[35,14],["envelope"],[["title"],["user.email.title"]]]],[1,"\\n"],[41,[30,0,["user","email"]],[[[1,"                  "],[1,[30,0,["user","email"]]],[1,"\\n"]],[]],[[[1,"                  "],[8,[39,12],null,[["@action","@actionParam","@icon","@label","@class"],[[28,[37,13],[[30,0],"checkEmail"],null],[30,0,["user"]],"envelope","admin.users.check_email.text","btn-primary"]],null],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n"]],[]],null],[1,"            "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-metadata","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"        "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-after-metadata","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["publicUserFields"]],[[[1,"        "],[10,0],[14,0,"card-row"],[12],[1,"\\n          "],[10,0],[14,0,"public-user-fields"],[12],[1,"\\n"],[42,[28,[37,22],[[28,[37,22],[[30,0,["publicUserFields"]]],null]],null],null,[[[41,[30,1,["value"]],[[[1,"                "],[10,0],[15,0,[29,["public-user-field public-user-field__",[30,1,["field","dasherized_name"]]]]],[12],[1,"\\n                  "],[10,1],[14,0,"user-field-name"],[12],[1,[30,1,["field","name"]]],[1,":"],[13],[1,"\\n                  "],[10,1],[14,0,"user-field-value"],[12],[1,"\\n"],[42,[28,[37,22],[[28,[37,22],[[30,1,["value"]]],null]],null],null,[[[1,"                      "],[10,1],[14,0,"user-field-value-list-item"],[12],[1,[30,2]],[13],[1,"\\n"]],[2]],[[[1,"                      "],[1,[30,1,["value"]]],[1,"\\n"]],[]]],[1,"                  "],[13],[1,"\\n                "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-before-badges","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["showBadges"]],[[[1,"        "],[10,0],[14,0,"card-row"],[12],[1,"\\n"],[41,[30,0,["user","featured_user_badges"]],[[[1,"            "],[10,0],[14,0,"badge-section"],[12],[1,"\\n"],[42,[28,[37,22],[[28,[37,22],[[30,0,["user","featured_user_badges"]]],null]],null],null,[[[1,"                "],[8,[39,23],null,[["@badge","@user"],[[30,3,["badge"]],[30,0,["user"]]]],null],[1,"\\n"]],[3]],null],[41,[30,0,["showMoreBadges"]],[[[1,"                "],[10,1],[14,0,"more-user-badges"],[12],[1,"\\n                  "],[8,[39,16],null,[["@route","@model"],["user.badges",[30,0,["user"]]]],[["default"],[[[[1,"\\n                    "],[1,[28,[35,9],["badges.more_badges"],[["count"],[[30,0,["moreBadgesCount"]]]]]],[1,"\\n                  "]],[]]]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],["uf","v","ub"],false,["if","plugin-outlet","hash","bound-avatar","on","fn","user-avatar-flair","format-username","user-status","i18n","html-safe","format-date","d-button","action","d-icon","html-with-links","link-to","array","replace-emoji","unless","format-duration","each","-track-array","user-badge"]]',moduleName:"discourse/components/user-card-contents.hbs",isStrictMode:!1})
var V=(0,t.setComponentTemplate)(W,t.default.extend(a.default,l.default,u.default,(_=(0,o.default)("user"),v=(0,o.default)("user"),w=(0,o.default)("user.status"),k=(0,o.default)("user.status.emoji"),x=(0,o.default)("user.staff"),P=(0,o.default)("user.trust_level"),O=(0,o.default)("user.name"),T=(0,o.default)("user"),S=(0,o.default)("userTimezone"),j=(0,o.default)("username"),C=(0,o.default)("username","topicPostCount"),z=(0,o.default)("user.user_fields.@each.value"),I=(0,o.default)("user.trust_level"),E=(0,o.default)("user.badge_count","user.featured_user_badges.length"),M=(0,o.default)("user.time_read","user.recent_time_read"),D=(0,o.default)("user.recent_time_read"),N=(0,o.default)("showRecentTimeRead","user.time_read","recentTimeRead"),L=(0,o.observes)("user.card_background_upload_url"),A=(0,o.default)("user.primary_group_name"),U=(0,o.default)("user.profile_hidden","user.inactive"),F={elementId:"user-card",classNames:"user-card",avatarSelector:"[data-user-card]",avatarDataAttrKey:"userCard",mentionSelector:"a.mention",classNameBindings:["visible:show","showBadges","user.card_background_upload_url::no-bg","isFixed:fixed","usernameClass","primaryGroup"],attributeBindings:["labelledBy:aria-labelledby"],allowBackgrounds:(0,s.setting)("allow_profile_backgrounds"),showBadges:(0,s.setting)("enable_badges"),postStream:(0,r.alias)("topic.postStream"),enoughPostsForFiltering:(0,r.gte)("topicPostCount",2),showFilter:(0,r.and)("viewingTopic","postStream.hasNoFilters","enoughPostsForFiltering"),showName:(0,s.propertyNotEqual)("user.name","user.username"),hasUserFilters:(0,r.gt)("postStream.userFilters.length",0),showMoreBadges:(0,r.gt)("moreBadgesCount",0),showDelete:(0,r.and)("viewingAdmin","showName","user.canBeDeleted"),linkWebsite:(0,r.not)("user.isBasic"),labelledBy:e=>e?"discourse-user-card-title":null,hasLocaleOrWebsite(e){return e.location||e.website_name||this.userTimezone},hasStatus(){return this.siteSettings.enable_user_status&&this.user.status},userStatusEmoji:e=>(0,b.emojiUnescape)((0,y.escapeExpression)(`:${e}:`)),isSuspendedOrHasBio:(0,r.or)("user.suspend_reason","user.bio_excerpt"),showCheckEmail:(0,r.and)("user.staged","canCheckEmails"),user:null,topicPostCount:null,showFeaturedTopic:(0,r.and)("user.featured_topic","siteSettings.allow_featured_topic_on_user_profiles"),showUserLocalTime:(0,s.setting)("display_local_time_in_user_card"),staff:e=>e?"staff":"",newUser:e=>0===e?"new-user":"",nameFirst:e=>(0,f.prioritizeNameInUx)(e),userTimezone(e){if(this.showUserLocalTime)return e.get("user_option.timezone")},formattedUserLocalTime:e=>moment.tz(e).format(c.default.t("dates.time")),usernameClass:e=>e?`user-card-${e}`:"",filterPostsLabel:(e,t)=>c.default.t("topic.filter_to",{username:e,count:t}),publicUserFields(){const e=this.site.get("user_fields")
if(!(0,h.isEmpty)(e)){const t=this.get("user.user_fields")
return e.filterBy("show_on_user_card",!0).sortBy("position").map((e=>{(0,n.set)(e,"dasherized_name",(0,g.dasherize)(e.get("name")))
const i=t?t[e.get("id")]:null
return(0,h.isEmpty)(i)?null:n.default.create({value:i,field:e})})).compact()}},removeNoFollow(e){return e>2&&!this.siteSettings.tl3_links_no_follow},moreBadgesCount:(e,t)=>e-t,showRecentTimeRead:(e,t)=>e!==t&&0!==t,recentTimeRead:e=>(0,p.durationTiny)(e),timeReadTooltip:(e,t,i)=>e?c.default.t("time_read_recently_tooltip",{time_read:(0,p.durationTiny)(t),recent_time_read:i}):c.default.t("time_read_tooltip",{time_read:(0,p.durationTiny)(t)}),addBackground(){if(!this.allowBackgrounds)return
const e=this.element
if(!e)return
const t=this.get("user.card_background_upload_url"),i=(0,h.isEmpty)(t)?"":`url(${(0,m.getURLWithCDN)(t)})`
e.style.backgroundImage=i},primaryGroup:e=>`group-${e}`,contentHidden:(e,t)=>e||t,_showCallback(e,t){this._positionCard(t),this.setProperties({visible:!0,loading:!0})
const i={forCard:!0,include_post_count_for:this.get("topic.id")}
return d.default.findByUsername(e,i).then((e=>(e.topic_post_count&&this.set("topicPostCount",e.topic_post_count[i.include_post_count_for]),this.setProperties({user:e}),this.user.trackStatus(),e))).catch((()=>this._close())).finally((()=>this.set("loading",null)))},_close(){this.user&&this.user.stopTrackingStatus(),this.setProperties({user:null,topicPostCount:null}),this._super(...arguments)},cleanUp(){this._close()},handleShowUser(e,t){if(t&&(0,y.modKeysPressed)(t).length>0)return!1
t?.preventDefault(),this.showUser(e),this._close()},actions:{close(){this._close()},composePM(e,t){this._close(),this.composePrivateMessage(e,t)},cancelFilter(){const e=this.postStream
e.cancelFilter(),e.refresh(),this._close()},filterPosts(){this.filterPosts(this.user),this._close()},deleteUser(){this.user.delete(),this._close()},showUser(e){this.handleShowUser(e)},checkEmail(e){e.checkEmail()}}},H(F,"labelledBy",[_],Object.getOwnPropertyDescriptor(F,"labelledBy"),F),H(F,"hasLocaleOrWebsite",[v],Object.getOwnPropertyDescriptor(F,"hasLocaleOrWebsite"),F),H(F,"hasStatus",[w],Object.getOwnPropertyDescriptor(F,"hasStatus"),F),H(F,"userStatusEmoji",[k],Object.getOwnPropertyDescriptor(F,"userStatusEmoji"),F),H(F,"staff",[x],(R=(R=Object.getOwnPropertyDescriptor(F,"staff"))?R.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return R}}),F),H(F,"newUser",[P],(B=(B=Object.getOwnPropertyDescriptor(F,"newUser"))?B.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return B}}),F),H(F,"nameFirst",[O],Object.getOwnPropertyDescriptor(F,"nameFirst"),F),H(F,"userTimezone",[T],Object.getOwnPropertyDescriptor(F,"userTimezone"),F),H(F,"formattedUserLocalTime",[S],Object.getOwnPropertyDescriptor(F,"formattedUserLocalTime"),F),H(F,"usernameClass",[j],($=($=Object.getOwnPropertyDescriptor(F,"usernameClass"))?$.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return $}}),F),H(F,"filterPostsLabel",[C],Object.getOwnPropertyDescriptor(F,"filterPostsLabel"),F),H(F,"publicUserFields",[z],Object.getOwnPropertyDescriptor(F,"publicUserFields"),F),H(F,"removeNoFollow",[I],Object.getOwnPropertyDescriptor(F,"removeNoFollow"),F),H(F,"moreBadgesCount",[E],(q=(q=Object.getOwnPropertyDescriptor(F,"moreBadgesCount"))?q.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return q}}),F),H(F,"showRecentTimeRead",[M],Object.getOwnPropertyDescriptor(F,"showRecentTimeRead"),F),H(F,"recentTimeRead",[D],Object.getOwnPropertyDescriptor(F,"recentTimeRead"),F),H(F,"timeReadTooltip",[N],Object.getOwnPropertyDescriptor(F,"timeReadTooltip"),F),H(F,"addBackground",[L],Object.getOwnPropertyDescriptor(F,"addBackground"),F),H(F,"primaryGroup",[A],Object.getOwnPropertyDescriptor(F,"primaryGroup"),F),H(F,"contentHidden",[U],Object.getOwnPropertyDescriptor(F,"contentHidden"),F),H(F,"handleShowUser",[n.action],Object.getOwnPropertyDescriptor(F,"handleShowUser"),F),F)))
e.default=V})),define("discourse/components/user-field",["exports","@ember/component","@ember/template-factory","@glimmer/component","discourse/components/user-fields/confirm","discourse/components/user-fields/dropdown","discourse/components/user-fields/multiselect","discourse/components/user-fields/text"],(function(e,t,i,n,r,o,s,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"tvh/FzsS",block:'[[[8,[30,0,["userFieldComponent"]],null,[["@field","@value","@class","@validation"],[[30,1],[30,2],[30,3],[30,4]]],null]],["@field","@value","@class","@validation"],false,[]]',moduleName:"discourse/components/user-field.hbs",isStrictMode:!1}),u={confirm:r.default,dropdown:o.default,multiselect:s.default,text:l.default}
class c extends n.default{get userFieldComponent(){return u[this.args.field.field_type]}}e.default=c,(0,t.setComponentTemplate)(a,c)})),define("discourse/components/user-fields/base",["exports","@ember/component","discourse-common/utils/decorators"],(function(e,t,i){var n,r
function o(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=t.default.extend((n=(0,i.default)("field.name"),r={classNameBindings:[":user-field","field.field_type","customFieldClass"],didInsertElement(){this._super(...arguments)
let e=this.element.querySelector(".user-field.dropdown .select-kit-header")
e=e||this.element.querySelector("input"),this.field.element=e},noneLabel:()=>"user_fields.none",customFieldClass(e){if(e)return(e=e.replace(/\s+/g,"-").replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~]/g,"").toLowerCase())&&`user-field-${e}`}},o(r,"noneLabel",[i.default],Object.getOwnPropertyDescriptor(r,"noneLabel"),r),o(r,"customFieldClass",[n],Object.getOwnPropertyDescriptor(r,"customFieldClass"),r),r))
e.default=s})),define("discourse/components/user-fields/confirm",["exports","@ember/component","@ember/template-factory","discourse/components/user-fields/base"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"4KJxS+za",block:'[[[41,[30,0,["field","name"]],[[[1,"  "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n    "],[1,[30,0,["field","name"]]],[1,"\\n    "],[41,[30,0,["field","required"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13]],[]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label checkbox-label"],[12],[1,"\\n    "],[8,[39,1],[[16,1,[28,[37,2],["user-",[30,0,["elementId"]]],null]]],[["@checked","@type"],[[30,0,["value"]],"checkbox"]],null],[1,"\\n    "],[10,1],[12],[1,"\\n      "],[1,[28,[35,3],[[30,0,["field","description"]]],null]],[1,"\\n      "],[41,[51,[30,0,["field","name"]]],[[[41,[30,0,["field","required"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13]],[]],null]],[]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["if","input","concat","html-safe","unless"]]',moduleName:"discourse/components/user-fields/confirm.hbs",isStrictMode:!1})
class o extends n.default{}e.default=o,(0,t.setComponentTemplate)(r,o)})),define("discourse/components/user-fields/dropdown",["exports","@ember/component","@ember/template-factory","discourse/components/user-fields/base"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"OfYosTsW",block:'[[[10,"label"],[14,0,"control-label"],[15,"for",[28,[37,0],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n  "],[1,[30,0,["field","name"]]],[1,"\\n"],[41,[30,0,["field","required"]],[[[1,"    "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n  "],[8,[39,2],null,[["@id","@content","@valueProperty","@nameProperty","@value","@onChange","@options"],[[28,[37,0],["user-",[30,0,["elementId"]]],null],[30,0,["field","options"]],null,null,[30,0,["value"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["value"]]],null]],null],[28,[37,5],null,[["none"],[[30,0,["noneLabel"]]]]]]],null],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,6],[[30,0,["field","description"]]],null]],[13],[1,"\\n"],[13]],[],false,["concat","if","combo-box","action","mut","hash","html-safe"]]',moduleName:"discourse/components/user-fields/dropdown.hbs",isStrictMode:!1})
class o extends n.default{}e.default=o,(0,t.setComponentTemplate)(r,o)})),define("discourse/components/user-fields/multiselect",["exports","@ember/component","@ember/template-factory","discourse/components/user-fields/base"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"iVYH/SY+",block:'[[[10,"label"],[14,0,"control-label"],[15,"for",[28,[37,0],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n  "],[1,[30,0,["field","name"]]],[1,"\\n"],[41,[30,0,["field","required"]],[[[1,"    "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n  "],[8,[39,2],null,[["@id","@content","@valueProperty","@nameProperty","@value","@onChange","@options"],[[28,[37,0],["user-",[30,0,["elementId"]]],null],[30,0,["field","options"]],null,null,[30,0,["value"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["value"]]],null]],null],[28,[37,5],null,[["none"],[[30,0,["noneLabel"]]]]]]],null],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,6],[[30,0,["field","description"]]],null]],[13],[1,"\\n"],[13]],[],false,["concat","if","multi-select","action","mut","hash","html-safe"]]',moduleName:"discourse/components/user-fields/multiselect.hbs",isStrictMode:!1})
class o extends n.default{}e.default=o,(0,t.setComponentTemplate)(r,o)})),define("discourse/components/user-fields/text",["exports","@ember/component","@ember/template-factory","discourse/components/user-fields/base"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"80U0IzWw",block:'[[[10,0],[14,0,"controls"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[15,"for",[28,[37,0],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n    "],[1,[30,0,["field","name"]]],[1,"\\n    "],[41,[30,0,["field","required"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13]],[]],null],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,2],[[16,1,[28,[37,0],["user-",[30,0,["elementId"]]],null]],[16,"maxlength",[30,0,["site","user_field_max_length"]]]],[["@value"],[[30,0,["value"]]]],null],[1,"\\n  "],[8,[39,3],[[16,0,[52,[51,[30,0,["validation"]]]," hidden"]]],[["@validation"],[[30,0,["validation"]]]],null],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,5],[[30,0,["field","description"]]],null]],[13],[1,"\\n"],[13]],[],false,["concat","if","input","input-tip","unless","html-safe"]]',moduleName:"discourse/components/user-fields/text.hbs",isStrictMode:!1})
class o extends n.default{}e.default=o,(0,t.setComponentTemplate)(r,o)})),define("discourse/components/user-flag-percentage",["exports","@ember/component","@ember/template-factory","I18n","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,i.createTemplateFactory)({id:"PzzJcGil",block:'[[[41,[30,0,["showPercentage"]],[[[1,"  "],[10,0],[15,"title",[30,0,["percentage","title"]]],[14,0,"user-flag-percentage"],[12],[1,"\\n    "],[10,1],[15,0,[29,["percentage-label ",[30,0,["percentage","className"]]]]],[12],[1,[30,0,["percentage","label"]]],[13],[1,"\\n    "],[1,[28,[35,1],[[30,0,["percentage","icon"]]],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-icon"]]',moduleName:"discourse/components/user-flag-percentage.hbs",isStrictMode:!1})
var c=(0,t.setComponentTemplate)(u,t.default.extend((o=(0,r.default)("percentage"),s=(0,r.default)("agreed","disagreed","ignored"),a(l={tagName:"",showPercentage:e=>e.total>=3,percentage(e,t,i){let r=e+t+i,o={total:r}
r>0&&(o.agreed=Math.round(e/r*100),o.disagreed=Math.round(t/r*100),o.ignored=Math.round(i/r*100))
let s=Math.max(e,t,i)
return s===e?(o.icon="thumbs-up",o.className="agreed",o.label=`${o.agreed}%`):s===t?(o.icon="thumbs-down",o.className="disagreed",o.label=`${o.disagreed}%`):(o.icon="external-link-alt",o.className="ignored",o.label=`${o.ignored}%`),o.title=n.default.t("review.user_percentage.summary",{agreed:n.default.t("review.user_percentage.agreed",{count:o.agreed}),disagreed:n.default.t("review.user_percentage.disagreed",{count:o.disagreed}),ignored:n.default.t("review.user_percentage.ignored",{count:o.ignored}),count:r}),o}},"showPercentage",[o],Object.getOwnPropertyDescriptor(l,"showPercentage"),l),a(l,"percentage",[s],Object.getOwnPropertyDescriptor(l,"percentage"),l),l)))
e.default=c})),define("discourse/components/user-info",["exports","@ember/component","@ember/template-factory","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/url","discourse/lib/settings"],(function(e,t,i,n,r,o,s){var l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"8pcc5lKR",block:'[[[41,[30,0,["includeAvatar"]],[[[1,"  "],[10,0],[14,0,"user-image"],[12],[1,"\\n    "],[10,0],[14,0,"user-image-inner"],[12],[1,"\\n      "],[10,3],[15,6,[30,0,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[12],[1,[28,[35,1],[[30,1]],[["imageSize"],["large"]]]],[13],[1,"\\n      "],[8,[39,2],null,[["@user"],[[30,1]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"user-detail"],[12],[1,"\\n  "],[10,0],[14,0,"name-line"],[12],[1,"\\n    "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"name bold","username bold"]],[12],[1,"\\n"],[41,[30,0,["includeLink"]],[[[1,"        "],[10,3],[15,6,[30,0,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[12],[1,"\\n          "],[1,[52,[30,0,["nameFirst"]],[30,1,["name"]],[28,[37,3],[[30,1,["username"]]],null]]],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[1,[52,[30,0,["nameFirst"]],[30,1,["name"]],[28,[37,3],[[30,1,["username"]]],null]]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"username margin","name margin"]],[12],[1,"\\n"],[41,[30,0,["includeLink"]],[[[1,"        "],[10,3],[15,6,[30,0,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[12],[1,"\\n          "],[1,[52,[30,0,["nameFirst"]],[28,[37,3],[[30,1,["username"]]],null],[30,1,["name"]]]],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[1,[52,[30,0,["nameFirst"]],[28,[37,3],[[30,1,["username"]]],null],[30,1,["name"]]]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n"],[41,[28,[37,4],[[30,2],[30,1,["status"]]],null],[[[1,"      "],[8,[39,5],null,[["@status","@showDescription","@showTooltip"],[[30,1,["status"]],[30,3],[30,4]]],null],[1,"\\n"]],[]],null],[1,"    "],[10,1],[12],[1,"\\n      "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["after-user-name","span",[28,[37,7],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n\\n"],[41,[48,[30,5]],[[[1,"    "],[10,0],[14,0,"details"],[12],[1,"\\n      "],[18,5,null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["after-user-info","div",[28,[37,7],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n"],[13]],["@user","@showStatus","@showStatusDescription","@showStatusTooltip","&default"],false,["if","avatar","user-avatar-flair","format-username","and","user-status-message","plugin-outlet","hash","has-block","yield"]]',moduleName:"discourse/components/user-info.hbs",isStrictMode:!1})
var p=(0,t.setComponentTemplate)(d,t.default.extend((l=(0,r.default)("user.username"),a=(0,r.default)("user.name"),u={classNameBindings:[":user-info","size"],attributeBindings:["data-username"],size:"small","data-username":(0,n.alias)("user.username"),includeLink:!0,includeAvatar:!0,didInsertElement(){this._super(...arguments),this.user?.trackStatus?.()},willDestroyElement(){this._super(...arguments),this.user?.stopTrackingStatus?.()},userPath:e=>(0,o.userPath)(e),nameFirst:e=>(0,s.prioritizeNameInUx)(e)},c(u,"userPath",[l],Object.getOwnPropertyDescriptor(u,"userPath"),u),c(u,"nameFirst",[a],Object.getOwnPropertyDescriptor(u,"nameFirst"),u),u)))
e.default=p})),define("discourse/components/user-link",["exports","@ember/component","@ember/object/computed"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({tagName:"a",attributeBindings:["href","data-user-card"],href:(0,i.alias)("user.path"),"data-user-card":(0,i.alias)("user.username")})
e.default=n})),define("discourse/components/user-menu/bookmarks-list-empty-state",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"LffF/PoP",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user.no_bookmarks_title"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,0],["user.no_bookmarks_body"],[["icon"],[[28,[37,2],["bookmark"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe","d-icon"]]',moduleName:"discourse/components/user-menu/bookmarks-list-empty-state.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-menu/bookmarks-list",["exports","discourse/components/user-menu/notifications-list","discourse/lib/ajax","discourse/models/notification","I18n","discourse/lib/user-menu/notification-item","discourse/lib/user-menu/bookmark-item","discourse/models/bookmark"],(function(e,t,i,n,r,o,s,l){function a(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function u(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=new WeakMap
class d extends t.default{constructor(){super(...arguments),a(this,c,{get:p,set:void 0})}get dismissTypes(){return["bookmark_reminder"]}get showAllHref(){return`${this.currentUser.path}/activity/bookmarks`}get showAllTitle(){return r.default.t("user_menu.view_all_bookmarks")}get showDismiss(){return u(this,c)>0}get dismissTitle(){return r.default.t("user.dismiss_bookmarks_tooltip")}get itemsCacheKey(){return"user-menu-bookmarks-tab"}get emptyStateComponent(){return"user-menu/bookmarks-list-empty-state"}get dismissConfirmationText(){return r.default.t("notifications.dismiss_confirmation.body.bookmarks",{count:u(this,c)})}async fetchItems(){const e=await(0,i.ajax)(`/u/${this.currentUser.username}/user-menu-bookmarks`),t=[],r=e.notifications.map((e=>n.default.create(e)))
await n.default.applyTransformations(r),r.forEach((e=>{t.push(new o.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))}))
const a=e.bookmarks.map((e=>l.default.create(e)))
return await l.default.applyTransformations(a),t.push(...a.map((e=>new s.default({bookmark:e})))),t}}function p(){const e=`grouped_unread_notifications.${this.site.notification_types.bookmark_reminder}`
return this.currentUser.get(e)||0}e.default=d})),define("discourse/components/user-menu/items-list-empty-state",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"QAj6pCPl",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user_menu.generic_no_items"],null]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n"]]',moduleName:"discourse/components/user-menu/items-list-empty-state.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-menu/items-list",["exports","@ember/component","@ember/template-factory","@glimmer/component","@glimmer/tracking","@ember/object","discourse/models/session"],(function(e,t,i,n,r,o,s){var l,a,u,c,d,p
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function f(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=(0,i.createTemplateFactory)({id:"OwIUIcD/",block:'[[[41,[30,0,["loading"]],[[[1,"  "],[10,0],[14,0,"spinner-container"],[12],[1,"\\n    "],[10,0],[14,0,"spinner"],[12],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[41,[30,0,["items","length"]],[[[1,"  "],[10,"ul"],[15,"aria-labelledby",[30,1]],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["items"]]],null]],null],null,[[[1,"      "],[8,[39,3],null,[["@item","@closeUserMenu"],[[30,2],[30,3]]],null],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"panel-body-bottom"],[12],[1,"\\n"],[41,[30,0,["showAllHref"]],[[[1,"      "],[10,3],[14,0,"btn btn-default btn-icon no-text show-all"],[15,6,[30,0,["showAllHref"]]],[15,"title",[30,0,["showAllTitle"]]],[12],[1,"\\n        "],[1,[28,[35,4],["chevron-down"],[["aria-label"],[[30,0,["showAllTitle"]]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showDismiss"]],[[[1,"      "],[11,"button"],[24,0,"btn btn-default notifications-dismiss btn-icon-text"],[16,"title",[30,0,["dismissTitle"]]],[24,4,"button"],[4,[38,5],["click",[30,0,["dismissButtonClick"]]],null],[12],[1,"\\n        "],[1,[28,[35,4],["check"],null]],[1,"\\n        "],[1,[28,[35,6],["user.dismiss"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[8,[39,7],null,[["@name","@outletArgs"],["panel-body-bottom",[28,[37,8],null,[["itemsCacheKey","closeUserMenu"],[[30,0,["itemsCacheKey"]],[30,3]]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[46,[30,0,["emptyStateComponent"]],null,null,null],[1,"\\n"]],[]]]],[]]]],["@ariaLabelledby","item","@closeUserMenu"],false,["if","each","-track-array","user-menu/menu-item","d-icon","on","i18n","plugin-outlet","hash","component"]]',moduleName:"discourse/components/user-menu/items-list.hbs",isStrictMode:!1})
let y=(c=new WeakSet,d=new WeakSet,p=new WeakSet,l=class extends n.default{constructor(){super(...arguments),h(this,p),h(this,d),h(this,c),m(this,"loading",a,this),m(this,"items",u,this),f(this,c,_).call(this)}get itemsCacheKey(){}get showAllHref(){}get showAllTitle(){}get showDismiss(){return!1}get dismissTitle(){}get emptyStateComponent(){return"user-menu/items-list-empty-state"}get renderDismissConfirmation(){return!1}async fetchItems(){throw new Error(`the fetchItems method must be implemented in ${this.constructor.name}`)}async refreshList(){await f(this,c,_).call(this)}dismissButtonClick(){throw new Error(`dismissButtonClick must be implemented in ${this.constructor.name}.`)}},a=g(l.prototype,"loading",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=g(l.prototype,"items",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g(l.prototype,"dismissButtonClick",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"dismissButtonClick"),l.prototype),l)
async function _(){const e=f(this,d,v).call(this)
e?.length?this.items=e:this.loading=!0
try{const e=await this.fetchItems()
f(this,p,w).call(this,e),this.items=e}catch(t){console.error(`an error occurred when loading items for ${this.constructor.name}`,t)}finally{this.loading=!1}}function v(){const e=this.itemsCacheKey
if(e)return s.default.currentProp(`user-menu-items:${e}`)}function w(e){const t=this.itemsCacheKey
t&&s.default.currentProp(`user-menu-items:${t}`,e)}e.default=y,(0,t.setComponentTemplate)(b,y)})),define("discourse/components/user-menu/likes-list-empty-state",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"zFQKO7gA",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user.no_likes_title"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,0],["user.no_likes_body"],[["preferencesUrl"],[[28,[37,2],["/my/preferences/notifications"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe","get-url"]]',moduleName:"discourse/components/user-menu/likes-list-empty-state.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-menu/likes-notifications-list",["exports","discourse/components/user-menu/notifications-list"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{get dismissTypes(){return this.filterByTypes}get renderDismissConfirmation(){return!1}get emptyStateComponent(){return"user-menu/likes-list-empty-state"}}e.default=i})),define("discourse/components/user-menu/menu-item",["exports","@ember/component","@ember/template-factory","@glimmer/component","discourse/lib/text","discourse/lib/utilities","@ember/template","@ember/object"],(function(e,t,i,n,r,o,s,l){var a,u
function c(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function d(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"mt3OXDSZ",block:'[[[10,"li"],[15,0,[30,0,["className"]]],[12],[1,"\\n  "],[11,3],[16,6,[30,0,["linkHref"]]],[16,"title",[30,0,["linkTitle"]]],[4,[38,0],["click",[30,0,["onClick"]]],null],[12],[1,"\\n    "],[1,[28,[35,1],[[30,0,["icon"]]],null]],[1,"\\n    "],[10,0],[12],[1,"\\n"],[41,[30,0,["label"]],[[[1,"        "],[10,1],[15,0,[28,[37,3],["item-label ",[30,0,["labelClass"]]],null]],[12],[1,"\\n          "],[1,[30,0,["label"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[30,0,["description"]],[[[1,"        "],[10,1],[15,0,[28,[37,3],["item-description ",[30,0,["descriptionClass"]]],null]],[15,"data-topic-id",[30,0,["topicId"]]],[12],[1,"\\n          "],[1,[30,0,["description"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["on","d-icon","if","concat"]]',moduleName:"discourse/components/user-menu/menu-item.hbs",isStrictMode:!1})
let m=(u=new WeakMap,a=class extends n.default{constructor(){super(...arguments),c(this,u,{get:v,set:void 0})}get className(){return d(this,u).className}get linkHref(){return d(this,u).linkHref}get linkTitle(){return d(this,u).linkTitle}get icon(){return d(this,u).icon}get label(){return d(this,u).label}get labelClass(){return d(this,u).labelClass}get description(){const e=d(this,u).description
if(e)return"string"==typeof e?(0,s.htmlSafe)((0,r.emojiUnescape)((0,o.escapeExpression)(e))):e}get descriptionClass(){return d(this,u).descriptionClass}get topicId(){return d(this,u).topicId}onClick(e){return d(this,u).onClick({event:e,closeUserMenu:this.args.closeUserMenu})}},h=a.prototype,f="onClick",g=[l.action],b=Object.getOwnPropertyDescriptor(a.prototype,"onClick"),y=a.prototype,_={},Object.keys(b).forEach((function(e){_[e]=b[e]})),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=g.slice().reverse().reduce((function(e,t){return t(h,f,e)||e}),_),y&&void 0!==_.initializer&&(_.value=_.initializer?_.initializer.call(y):void 0,_.initializer=void 0),void 0===_.initializer&&(Object.defineProperty(h,f,_),_=null),a)
var h,f,g,b,y,_
function v(){return this.args.item}e.default=m,(0,t.setComponentTemplate)(p,m)})),define("discourse/components/user-menu/menu-tab",["exports","@ember/component","@ember/template-factory","@glimmer/component"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"9qIk+apY",block:'[[[11,3],[24,"role","tab"],[16,0,[30,0,["classNames"]]],[16,1,[30,0,["id"]]],[16,"tabindex",[30,0,["tabIndex"]]],[16,"title",[30,1,["title"]]],[16,"aria-selected",[52,[30,0,["isActive"]],"true","false"]],[16,"aria-controls",[30,0,["ariaControls"]]],[16,"data-tab-number",[30,1,["position"]]],[16,6,[30,1,["linkWhenActive"]]],[4,[38,1],["click",[30,2]],null],[12],[1,"\\n  "],[1,[28,[35,2],[[30,1,["icon"]]],null]],[1,"\\n"],[41,[30,1,["count"]],[[[1,"    "],[10,1],[14,"aria-hidden","true"],[14,0,"badge-notification"],[12],[1,[30,1,["count"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[18,3,null],[1,"\\n"],[13]],["@tab","@onTabClick","&default"],false,["if","on","d-icon","yield"]]',moduleName:"discourse/components/user-menu/menu-tab.hbs",isStrictMode:!1})
class o extends n.default{get isActive(){return this.args.tab.id===this.args.currentTabId}get classNames(){const e=["btn","btn-flat","btn-icon","no-text","user-menu-tab"]
return this.isActive&&e.push("active"),e.join(" ")}get id(){return`user-menu-button-${this.args.tab.id}`}get tabIndex(){return this.isActive?"0":"-1"}get ariaControls(){return`quick-access-${this.args.tab.id}`}}e.default=o,(0,t.setComponentTemplate)(r,o)})),define("discourse/components/user-menu/menu",["exports","@embroider/macros/es-compat","@ember/component","@ember/template-factory","@glimmer/component","@glimmer/tracking","@ember/object","discourse/models/bookmark","discourse/lib/user-menu/tab","@ember/service","discourse-common/lib/get-url","discourse/lib/intercept-click","discourse/components/user-menu/notifications-list","discourse/components/user-menu/replies-notifications-list","discourse/components/user-menu/likes-notifications-list","discourse/components/user-menu/messages-list","discourse/components/user-menu/bookmarks-list","discourse/components/user-menu/reviewables-list","discourse/components/user-menu/profile-tab-content","discourse/components/user-menu/other-notifications-list","discourse-common/lib/deprecated","discourse-common/lib/get-owner"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w){var k,x,P,O,T,S,j,C,z
function I(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function E(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function M(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function D(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const N=(0,n.createTemplateFactory)({id:"Z4WdVuij",block:'[[[11,0],[24,0,"user-menu revamped menu-panel drop-down"],[24,"data-max-width","320"],[4,[38,0],[[30,0,["triggerRenderedAppEvent"]]],null],[12],[1,"\\n  "],[10,0],[14,0,"panel-body"],[12],[1,"\\n    "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n      "],[10,0],[14,0,"menu-tabs-container"],[14,"role","tablist"],[14,"aria-orientation","vertical"],[15,"aria-label",[28,[37,1],["user_menu.sr_menu_tabs"],null]],[12],[1,"\\n        "],[11,0],[24,0,"top-tabs tabs-list"],[4,[38,0],[[30,0,["focusFirstTab"]]],null],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["topTabs"]]],null]],null],null,[[[1,"            "],[8,[39,4],null,[["@tab","@currentTabId","@onTabClick"],[[30,1],[30,0,["currentTabId"]],[28,[37,5],[[30,0,["handleTabClick"]],[30,1]],null]]],null],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n        "],[10,0],[14,0,"bottom-tabs tabs-list"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["bottomTabs"]]],null]],null],null,[[[1,"            "],[8,[39,4],null,[["@tab","@currentTabId","@onTabClick"],[[30,2],[30,0,["currentTabId"]],[28,[37,5],[[30,0,["handleTabClick"]],[30,2]],null]]],null],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[15,1,[28,[37,6],["quick-access-",[30,0,["currentTabId"]]],null]],[14,0,"quick-access-panel"],[14,"tabindex","-1"],[12],[1,"\\n        "],[8,[30,0,["currentPanelComponent"]],null,[["@closeUserMenu","@filterByTypes","@ariaLabelledby"],[[30,3],[30,0,["currentNotificationTypes"]],[28,[37,6],["user-menu-button-",[30,0,["currentTabId"]]],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["tab","tab","@closeUserMenu"],false,["did-insert","i18n","each","-track-array","user-menu/menu-tab","fn","concat"]]',moduleName:"discourse/components/user-menu/menu.hbs",isStrictMode:!1})
let L=(0,t.default)(require("ember-cached-decorator-polyfill")).cached
const A="all-notifications",U=p.default,F="review-queue",R=[class extends a.default{constructor(){super(...arguments),D(this,"id",A),D(this,"icon","bell"),D(this,"panelComponent",U)}get linkWhenActive(){return`${this.currentUser.path}/notifications`}},class extends a.default{constructor(){super(...arguments),D(this,"id","replies"),D(this,"icon","reply"),D(this,"panelComponent",m.default),D(this,"notificationTypes",["mentioned","posted","quoted","replied"])}get count(){return this.getUnreadCountForType("mentioned")+this.getUnreadCountForType("posted")+this.getUnreadCountForType("quoted")+this.getUnreadCountForType("replied")}get linkWhenActive(){return`${this.currentUser.path}/notifications/responses`}},class extends a.default{constructor(){super(...arguments),D(this,"id","likes"),D(this,"icon","heart"),D(this,"panelComponent",h.default)}get shouldDisplay(){return!this.currentUser.user_option.likes_notifications_disabled}get count(){return this.getUnreadCountForType("liked")+this.getUnreadCountForType("liked_consolidated")+this.getUnreadCountForType("reaction")}get notificationTypes(){return["liked","liked_consolidated","reaction"]}get linkWhenActive(){return`${this.currentUser.path}/notifications/likes-received`}},class extends a.default{constructor(){super(...arguments),D(this,"id","messages"),D(this,"icon","notification.private_message"),D(this,"panelComponent",f.default),D(this,"notificationTypes",["private_message","group_message_summary"])}get count(){return this.getUnreadCountForType("private_message")}get shouldDisplay(){return this.currentUser?.can_send_private_messages}get linkWhenActive(){return`${this.currentUser.path}/messages`}},class extends a.default{constructor(){super(...arguments),D(this,"id","bookmarks"),D(this,"icon",l.NO_REMINDER_ICON),D(this,"panelComponent",g.default),D(this,"notificationTypes",["bookmark_reminder"])}get count(){return this.getUnreadCountForType("bookmark_reminder")}get linkWhenActive(){return`${this.currentUser.path}/activity/bookmarks`}},class extends a.default{constructor(){super(...arguments),D(this,"id",F),D(this,"icon","flag"),D(this,"panelComponent",b.default),D(this,"linkWhenActive",(0,c.default)("/review"))}get shouldDisplay(){return this.currentUser.can_review&&this.currentUser.get("reviewable_count")}get count(){return this.currentUser.get("reviewable_count")}}],B=[class extends a.default{constructor(){super(...arguments),D(this,"id","profile"),D(this,"icon","user"),D(this,"panelComponent",y.default)}get linkWhenActive(){return`${this.currentUser.path}/summary`}}],$=class extends a.default{constructor(e,t,i,n){super(...arguments),D(this,"id","other-notifications"),D(this,"icon","discourse-other-tab"),D(this,"panelComponent",_.default),this.otherNotificationTypes=n}get count(){return this.otherNotificationTypes.reduce(((e,t)=>e+this.getUnreadCountForType(t)),0)}get notificationTypes(){return this.otherNotificationTypes}}
let q=(z=new WeakSet,k=class extends r.default{constructor(){super(...arguments),E(this,z),I(this,"currentUser",x,this),I(this,"siteSettings",P,this),I(this,"site",O,this),I(this,"appEvents",T,this),I(this,"currentTabId",S,this),I(this,"currentPanelComponent",j,this),I(this,"currentNotificationTypes",C,this)}get topTabs(){const e=[]
R.forEach((t=>{const i=new t(this.currentUser,this.siteSettings,this.site)
i.shouldDisplay&&e.push(i)}))
let t=e.findIndex((e=>e.id===F))
return a.CUSTOM_TABS_CLASSES.forEach((i=>{const n=new i(this.currentUser,this.siteSettings,this.site)
n.shouldDisplay&&(-1===t?e.push(n):(e.insertAt(t,n),t++))})),e.push(new $(this.currentUser,this.siteSettings,this.site,function(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}(this,z,H).call(this,e))),e.map(((e,t)=>(e.position=t,e)))}get bottomTabs(){const e=[]
B.forEach((t=>{const i=new t(this.currentUser,this.siteSettings,this.site)
i.shouldDisplay&&e.push(i)}))
const t=this.topTabs.length
return e.map(((e,i)=>(e.position=i+t,e)))}handleTabClick(e,t){(0,d.wantsNewWindow)(t)||this.currentTabId===e.id||(t.preventDefault(),this.currentTabId=e.id,this.currentPanelComponent=function(e,t){if("string"==typeof t){const i=JSON.stringify(t)
return(0,v.default)(`user-menu tab panelComponent must be passed as a component class (passed ${i})`,{id:"discourse.user-menu.panel-component-class"}),e.resolveRegistration(`component:${t}`)}return t}((0,w.getOwner)(this),e.panelComponent),this.appEvents.trigger("user-menu:tab-click",e.id),this.currentNotificationTypes=e.notificationTypes)}triggerRenderedAppEvent(){this.appEvents.trigger("user-menu:rendered")}focusFirstTab(e){e.querySelector(".btn.active")?.focus()}},x=M(k.prototype,"currentUser",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=M(k.prototype,"siteSettings",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=M(k.prototype,"site",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=M(k.prototype,"appEvents",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=M(k.prototype,"currentTabId",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return A}}),j=M(k.prototype,"currentPanelComponent",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return U}}),C=M(k.prototype,"currentNotificationTypes",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M(k.prototype,"topTabs",[L],Object.getOwnPropertyDescriptor(k.prototype,"topTabs"),k.prototype),M(k.prototype,"bottomTabs",[L],Object.getOwnPropertyDescriptor(k.prototype,"bottomTabs"),k.prototype),M(k.prototype,"handleTabClick",[s.action],Object.getOwnPropertyDescriptor(k.prototype,"handleTabClick"),k.prototype),M(k.prototype,"triggerRenderedAppEvent",[s.action],Object.getOwnPropertyDescriptor(k.prototype,"triggerRenderedAppEvent"),k.prototype),M(k.prototype,"focusFirstTab",[s.action],Object.getOwnPropertyDescriptor(k.prototype,"focusFirstTab"),k.prototype),k)
function H(e){const t=e.filter((e=>e.notificationTypes)).map((e=>e.notificationTypes)).flat()
return Object.keys(this.site.notification_types).filter((e=>!t.includes(e)))}e.default=q,(0,i.setComponentTemplate)(N,q)})),define("discourse/components/user-menu/messages-list-empty-state",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"K90GclbD",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user.no_messages_title"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,0],["user.no_messages_body"],[["icon","aboutUrl"],[[28,[37,2],["envelope"],null],[28,[37,3],["/about"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe","d-icon","get-url"]]',moduleName:"discourse/components/user-menu/messages-list-empty-state.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-menu/messages-list",["exports","discourse/components/user-menu/notifications-list","discourse/lib/ajax","discourse/models/notification","I18n","discourse/lib/user-menu/notification-item","discourse/lib/user-menu/message-item","discourse/models/topic","discourse/lib/utilities","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p
function m(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function h(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let f=(p=new WeakMap,c=class extends t.default{constructor(){var e,t,i,n
super(...arguments),m(this,p,{get:k,set:void 0}),e=this,t="store",n=this,(i=d)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get dismissTypes(){return this.filterByTypes}get showAllHref(){return`${this.currentUser.path}/messages`}get showAllTitle(){return r.default.t("user_menu.view_all_messages")}get showDismiss(){return h(this,p)>0}get dismissTitle(){return r.default.t("user.dismiss_messages_tooltip")}get itemsCacheKey(){return"user-menu-messages-tab"}get emptyStateComponent(){return"user-menu/messages-list-empty-state"}get dismissConfirmationText(){return r.default.t("notifications.dismiss_confirmation.body.messages",{count:h(this,p)})}async fetchItems(){const e=await(0,i.ajax)(`/u/${this.currentUser.username}/user-menu-private-messages`),t=[];(await n.default.initializeNotifications(e.unread_notifications)).forEach((e=>{t.push(new o.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))}))
const r=e.topics.map((e=>this.store.createRecord("topic",e)))
await l.default.applyTransformations(r)
const u=await n.default.initializeNotifications(e.read_notifications)
return(0,a.mergeSortedLists)(u,r,((e,t)=>{const i=new Date(e.created_at)
return new Date(t.bumped_at)>i})).forEach((e=>{e instanceof n.default?t.push(new o.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site})):t.push(new s.default({message:e}))})),t}},g=c.prototype,b="store",y=[u.inject],_={configurable:!0,enumerable:!0,writable:!0,initializer:null},w={},Object.keys(_).forEach((function(e){w[e]=_[e]})),w.enumerable=!!w.enumerable,w.configurable=!!w.configurable,("value"in w||w.initializer)&&(w.writable=!0),w=y.slice().reverse().reduce((function(e,t){return t(g,b,e)||e}),w),v&&void 0!==w.initializer&&(w.value=w.initializer?w.initializer.call(v):void 0,w.initializer=void 0),void 0===w.initializer&&(Object.defineProperty(g,b,w),w=null),d=w,c)
var g,b,y,_,v,w
function k(){const e=`grouped_unread_notifications.${this.site.notification_types.private_message}`
return this.currentUser.get(e)||0}e.default=f})),define("discourse/components/user-menu/notifications-list-empty-state",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"YlEzCYrB",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user.no_notifications_title"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,0],["user.no_notifications_body"],[["icon","preferencesUrl"],[[28,[37,2],["bell"],null],[28,[37,3],["/my/preferences/notifications"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe","d-icon","get-url"]]',moduleName:"discourse/components/user-menu/notifications-list-empty-state.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-menu/notifications-list",["exports","discourse/components/user-menu/items-list","I18n","@ember/object","discourse/lib/ajax","discourse/lib/utilities","@ember/service","discourse/lib/user-menu/notification-item","discourse/models/notification","discourse/models/user-menu-reviewable","discourse/lib/user-menu/reviewable-item","discourse/components/modal/dismiss-notification-confirmation"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f,g,b,y
function _(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function v(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let w=(p=class e extends t.default{constructor(){super(...arguments),_(this,"appEvents",m,this),_(this,"currentUser",h,this),_(this,"siteSettings",f,this),_(this,"site",g,this),_(this,"store",b,this),_(this,"modal",y,this)}get filterByTypes(){return this.args.filterByTypes}get dismissTypes(){return null}get showAllHref(){return`${this.currentUser.path}/notifications`}get showAllTitle(){return i.default.t("user_menu.view_all_notifications")}get showDismiss(){return Object.keys(this.currentUser.get("grouped_unread_notifications")||{}).any((e=>this.currentUser.get(`grouped_unread_notifications.${e}`)>0))}get dismissTitle(){return i.default.t("user.dismiss_notifications_tooltip")}get itemsCacheKey(){let e="recent-notifications"
const t=this.filterByTypes
return t?.length>0&&(e+=`-type-${t.join(",")}`),e}get emptyStateComponent(){return this.constructor===e?"user-menu/notifications-list-empty-state":super.emptyStateComponent}get renderDismissConfirmation(){return!0}get dismissConfirmationText(){return i.default.t("notifications.dismiss_confirmation.body.default",{count:this.currentUser.unread_high_priority_notifications})}get alwaysRenderDismissConfirmation(){return!1}async fetchItems(){const e={limit:30,recent:!0,bump_last_seen_reviewable:!0}
this.currentUser.enforcedSecondFactor&&(e.silent=!0)
const t=this.filterByTypes
t?.length>0&&(e.filter_by_types=t.join(","),e.silent=!0)
const i=[],n=await(0,r.ajax)("/notifications",{data:e}),s=await a.default.initializeNotifications(n.notifications),d=n.pending_reviewables?.map((e=>u.default.create(e)))
if(d?.length){const e=s.findIndex((e=>e.read)),t=s.splice(0,e);(0,o.mergeSortedLists)(t,d,((e,t)=>{const i=new Date(e.created_at)
return new Date(t.created_at)>i})).forEach((e=>{const t={appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}
e instanceof a.default?(t.notification=e,i.push(new l.default(t))):(t.reviewable=e,i.push(new c.default(t)))}))}return s.forEach((e=>{i.push(new l.default({notification:e,appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))})),i}async performDismiss(){const e={type:"PUT"},t=this.dismissTypes
if(t?.length>0&&(e.data={dismiss_types:t.join(",")}),await(0,r.ajax)("/notifications/mark-read",e),t){const e={...this.currentUser.grouped_unread_notifications}
t.forEach((t=>{const i=this.site.notification_types[t]
i&&delete e[i]})),this.currentUser.set("grouped_unread_notifications",e)}else this.currentUser.set("all_unread_notifications_count",0),this.currentUser.set("unread_high_priority_notifications",0),this.currentUser.set("grouped_unread_notifications",{})
this.refreshList(),(0,o.postRNWebviewMessage)("markRead","1")}dismissWarningModal(){this.modal.show(d.default,{model:{confirmationMessage:this.dismissConfirmationText,dismissNotifications:()=>this.performDismiss()}})}dismissButtonClick(){(this.renderDismissConfirmation||this.alwaysRenderDismissConfirmation)&&(this.currentUser.unread_high_priority_notifications>0||this.alwaysRenderDismissConfirmation)?this.dismissWarningModal():this.performDismiss()}},m=v(p.prototype,"appEvents",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=v(p.prototype,"currentUser",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=v(p.prototype,"siteSettings",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=v(p.prototype,"site",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=v(p.prototype,"store",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=v(p.prototype,"modal",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v(p.prototype,"dismissButtonClick",[n.action],Object.getOwnPropertyDescriptor(p.prototype,"dismissButtonClick"),p.prototype),p)
e.default=w})),define("discourse/components/user-menu/other-notifications-list-empty-state",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"VZrzZ2FW",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user.no_other_notifications_title"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,0],["user.no_other_notifications_body"],null]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe"]]',moduleName:"discourse/components/user-menu/other-notifications-list-empty-state.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-menu/other-notifications-list",["exports","discourse/components/user-menu/notifications-list"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{get dismissTypes(){return this.filterByTypes}get emptyStateComponent(){return"user-menu/other-notifications-list-empty-state"}get renderDismissConfirmation(){return!1}}e.default=i})),define("discourse/components/user-menu/profile-tab-content",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service","@ember/object","discourse/lib/show-modal","discourse/lib/do-not-disturb","discourse/components/modal/do-not-disturb"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m,h
function f(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function g(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function b(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function y(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}function _(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addUserMenuProfileTabItem=function(e){w.push(e)},e.default=void 0,e.resetUserMenuProfileTabItems=function(){w.clear()}
const v=(0,i.createTemplateFactory)({id:"hyLVYjeH",block:'[[[10,"ul"],[15,"aria-labelledby",[30,1]],[12],[1,"\\n"],[41,[30,0,["siteSettings","enable_user_status"]],[[[1,"    "],[10,"li"],[14,0,"set-user-status"],[12],[1,"\\n      "],[8,[39,1],null,[["@class","@action"],["btn-flat profile-tab-btn",[30,0,["setUserStatusClick"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","status"]],[[[1,"          "],[1,[28,[35,2],[[30,0,["currentUser","status","emoji"]]],null]],[1,"\\n          "],[10,1],[14,0,"item-label"],[12],[1,"\\n            "],[1,[30,0,["currentUser","status","description"]]],[1,"\\n"],[41,[30,0,["currentUser","status","ends_at"]],[[[1,"              "],[1,[28,[35,3],[[30,0,["currentUser","status","ends_at"]]],null]],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,4],["plus-circle"],null]],[1,"\\n          "],[10,1],[14,0,"item-label"],[12],[1,"\\n            "],[1,[28,[35,5],["user_status.set_custom_status"],null]],[1,"\\n          "],[13],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"li"],[14,0,"summary"],[12],[1,"\\n    "],[8,[39,6],null,[["@route","@model"],["user.summary",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],["user"],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n        "],[1,[28,[35,5],["user.summary.title"],null]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"li"],[14,0,"activity"],[12],[1,"\\n    "],[8,[39,6],null,[["@route","@model"],["userActivity",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],["stream"],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n        "],[1,[28,[35,5],["user.activity_stream"],null]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1,"    "],[10,"li"],[14,0,"invites"],[12],[1,"\\n      "],[8,[39,6],null,[["@route","@model"],["userInvited",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,4],["user-plus"],null]],[1,"\\n        "],[10,1],[14,0,"item-label"],[12],[1,"\\n          "],[1,[28,[35,5],["user.invited.title"],null]],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"li"],[14,0,"drafts"],[12],[1,"\\n    "],[8,[39,6],null,[["@route","@model"],["userActivity.drafts",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],["pencil-alt"],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["currentUser","draft_count"]],[[[1,"          "],[1,[28,[35,5],["drafts.label_with_count"],[["count"],[[30,0,["currentUser","draft_count"]]]]]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,5],["drafts.label"],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"li"],[14,0,"preferences"],[12],[1,"\\n    "],[8,[39,6],null,[["@route","@model"],["preferences",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],["cog"],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n        "],[1,[28,[35,5],["user.preferences"],null]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"li"],[14,0,"do-not-disturb"],[12],[1,"\\n    "],[8,[39,1],null,[["@class","@action"],["btn-flat profile-tab-btn",[30,0,["doNotDisturbClick"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],[[52,[30,0,["isInDoNotDisturb"]],"toggle-on","toggle-off"]],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["isInDoNotDisturb"]],[[[1,"          "],[10,1],[12],[1,[28,[35,5],["pause_notifications.label"],null]],[13],[1,"\\n"],[41,[30,0,["showDoNotDisturbEndDate"]],[[[1,"            "],[1,[28,[35,3],[[30,0,["doNotDisturbDateTime"]]],null]],[1,"\\n"]],[]],null]],[]],[[[1,"          "],[1,[28,[35,5],["pause_notifications.label"],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["showToggleAnonymousButton"]],[[[1,"    "],[10,"li"],[15,0,[52,[30,0,["currentUser","is_anonymous"]],"disable-anonymous","enable-anonymous"]],[12],[1,"\\n      "],[8,[39,1],null,[["@class","@action"],["btn-flat profile-tab-btn",[28,[37,7],["toggleAnonymous"],null]]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","is_anonymous"]],[[[1,"          "],[1,[28,[35,4],["ban"],null]],[1,"\\n          "],[10,1],[14,0,"item-label"],[12],[1,"\\n            "],[1,[28,[35,5],["switch_from_anon"],null]],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,4],["user-secret"],null]],[1,"\\n          "],[10,1],[14,0,"item-label"],[12],[1,"\\n            "],[1,[28,[35,5],["switch_to_anon"],null]],[1,"\\n          "],[13],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["extraItems"]]],null]],null],null,[[[1,"    "],[10,"li"],[15,0,[30,2,["className"]]],[12],[1,"\\n      "],[10,3],[15,6,[30,2,["href"]]],[12],[1,"\\n"],[41,[30,2,["icon"]],[[[1,"          "],[1,[28,[35,4],[[30,2,["icon"]]],null]],[1,"\\n"]],[]],null],[1,"        "],[10,1],[14,0,"item-label"],[12],[1,"\\n          "],[1,[30,2,["content"]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[2]],null],[1,"\\n  "],[10,"li"],[14,0,"logout"],[12],[1,"\\n    "],[8,[39,1],null,[["@class","@action"],["btn-flat profile-tab-btn",[28,[37,7],["logout"],null]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],["sign-out-alt"],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n        "],[1,[28,[35,5],["user.log_out"],null]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["@ariaLabelledby","item"],false,["if","d-button","emoji","format-age","d-icon","i18n","link-to","route-action","each","-track-array"]]',moduleName:"discourse/components/user-menu/profile-tab-content.hbs",isStrictMode:!1}),w=[]
let k=(h=new WeakMap,u=class extends n.default{constructor(){super(...arguments),g(this,h,{get:x,set:void 0}),f(this,"currentUser",c,this),f(this,"siteSettings",d,this),f(this,"userStatus",p,this),f(this,"modal",m,this),b(this,"saving",!1)}get showToggleAnonymousButton(){return this.siteSettings.allow_anonymous_posting&&this.currentUser.trust_level>=this.siteSettings.anonymous_posting_min_trust_level||this.currentUser.is_anonymous}get isInDoNotDisturb(){return!!y(this,h)}get doNotDisturbDateTime(){return y(this,h).getTime()}get showDoNotDisturbEndDate(){return!l.default.isEternal(this.currentUser.get("do_not_disturb_until"))}get extraItems(){return w}doNotDisturbClick(){if(!this.saving){if(this.saving=!0,this.currentUser.do_not_disturb_until)return this.currentUser.leaveDoNotDisturb().finally((()=>{this.saving=!1}))
this.saving=!1,this.args.closeUserMenu(),this.modal.show(a.default)}}setUserStatusClick(){this.args.closeUserMenu(),(0,s.default)("user-status",{title:"user_status.set_custom_status",modalClass:"user-status",model:{status:this.currentUser.status,pauseNotifications:this.currentUser.isInDoNotDisturb(),saveAction:(e,t)=>this.userStatus.set(e,t),deleteAction:()=>this.userStatus.clear()}})}},c=_(u.prototype,"currentUser",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=_(u.prototype,"siteSettings",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=_(u.prototype,"userStatus",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=_(u.prototype,"modal",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_(u.prototype,"doNotDisturbClick",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"doNotDisturbClick"),u.prototype),_(u.prototype,"setUserStatusClick",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"setUserStatusClick"),u.prototype),u)
function x(){if(!this.currentUser.get("do_not_disturb_until"))return
const e=new Date(this.currentUser.get("do_not_disturb_until"))
return e<new Date?void 0:e}e.default=k,(0,t.setComponentTemplate)(v,k)})),define("discourse/components/user-menu/replies-notifications-list",["exports","discourse/components/user-menu/notifications-list"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{get dismissTypes(){return this.filterByTypes}get renderDismissConfirmation(){return!1}get emptyStateComponent(){return"user-menu/notifications-list-empty-state"}}e.default=i}))
define("discourse/components/user-menu/reviewables-list",["exports","discourse/components/user-menu/items-list","discourse/lib/ajax","discourse/models/user-menu-reviewable","I18n","discourse-common/lib/get-url","discourse/lib/user-menu/reviewable-item","@ember/service"],(function(e,t,i,n,r,o,s,l){var a,u,c,d
function p(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let h=(a=class extends t.default{constructor(){super(...arguments),p(this,"currentUser",u,this),p(this,"siteSettings",c,this),p(this,"site",d,this)}get showAllHref(){return(0,o.default)("/review")}get showAllTitle(){return r.default.t("user_menu.reviewable.view_all")}get itemsCacheKey(){return"pending-reviewables"}fetchItems(){return(0,i.ajax)("/review/user-menu-list").then((e=>(this.currentUser.updateReviewableCount(e.reviewable_count),e.reviewables.map((e=>new s.default({reviewable:n.default.create(e),currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))))))}},u=m(a.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(a.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(a.prototype,"site",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)
e.default=h})),define("discourse/components/user-nav",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"re3oMrRu",block:'[[[10,"section"],[14,0,"user-navigation user-navigation-primary"],[12],[1,"\\n  "],[8,[39,0],null,[["@className","@ariaLabel"],["main-nav nav user-nav","User primary"]],[["default"],[[[[1,"\\n"],[41,[51,[30,1,["profile_hidden"]]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__summary"]],[["@route"],["user.summary"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["user"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.summary.title"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n      "],[8,[39,2],[[24,0,"user-nav__activity"]],[["@route","@ariaCurrentContext"],["userActivity","parentNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["stream"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.activity_stream"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__notifications"]],[["@route","@ariaCurrentContext"],["userNotifications","parentNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["bell"],[["class"],["glyph"]]]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.notifications"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__personal-messages"]],[["@route","@ariaCurrentContext"],["userPrivateMessages","parentNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["envelope"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.private_messages"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__invites"]],[["@route","@ariaCurrentContext"],["userInvited","parentNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["user-plus"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.invited.title"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,5],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__badges"]],[["@route"],["user.badges"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["certificate"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["badges.title"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-main-nav","li",[28,[37,7],null,[["model"],[[30,1]]]]]],null],[1,"\\n\\n"],[41,[30,1,["can_edit"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__preferences"]],[["@route","@ariaCurrentContext"],["preferences","parentNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["cog"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.preferences"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,8],[[30,6],[30,7]],null],[[[1,"      "],[10,"li"],[14,0,"user-nav__admin"],[12],[1,"\\n        "],[10,3],[15,6,[30,1,["adminPath"]]],[12],[1,"\\n          "],[1,[28,[35,3],["wrench"],null]],[1,"\\n          "],[10,1],[12],[1,[28,[35,4],["admin.user.manage_user"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"],[13]],["@user","@showNotificationsTab","@showPrivateMessages","@canInviteToForum","@showBadges","@isMobileView","@isStaff"],false,["horizontal-overflow-nav","unless","d-navigation-item","d-icon","i18n","if","plugin-outlet","hash","and"]]',moduleName:"discourse/components/user-nav.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-nav/messages-dropdown",["exports","select-kit/components/combo-box"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({pluginApiIdentifiers:["user-nav-messages-dropdown"],classNames:["user-nav-messages-dropdown"],selectKitOptions:{caretDownIcon:"caret-right",caretUpIcon:"caret-down"}})
e.default=i})),define("discourse/components/user-nav/messages-secondary-nav",["exports","@ember/component","@ember/template-factory","@glimmer/component","@ember/service"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=(0,i.createTemplateFactory)({id:"hbA4rTWI",block:'[[[40,[[[1,"  "],[18,1,null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,1],[[30,0,["messagesNav"]]],null]]],["&default"],false,["in-element","-in-el-null","yield"]]',moduleName:"discourse/components/user-nav/messages-secondary-nav.hbs",isStrictMode:!1})
var a,u,c,d,p,m,h=(0,t.setComponentTemplate)(l,(o=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="currentUser",n=this,(i=s)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get messagesNav(){return document.getElementById("user-navigation-secondary__horizontal-nav")}},a=o.prototype,u="currentUser",c=[r.inject],d={configurable:!0,enumerable:!0,writable:!0,initializer:null},m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),s=m,o))
e.default=h})),define("discourse/components/user-notification-schedule-day",["exports","@ember/component","@ember/template-factory","discourse/lib/computed"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"ka00K4Tj",block:'[[[10,"tr"],[15,0,[29,["day ",[30,0,["dayLabel"]]]]],[12],[1,"\\n  "],[10,"td"],[14,0,"day-label"],[12],[1,[30,0,["dayLabel"]]],[13],[1,"\\n  "],[10,"td"],[14,0,"starts-at"],[12],[1,"\\n    "],[8,[39,0],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["startTimeOptions"]],[30,0,["startTimeValue"]],[30,0,["onChangeStartTime"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["endTimeOptions"]],[[[1,"    "],[10,"td"],[14,0,"to"],[12],[1,[28,[35,2],["user.notification_schedule.to"],null]],[13],[1,"\\n    "],[10,"td"],[14,0,"ends-at"],[12],[1,"\\n      "],[8,[39,0],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["endTimeOptions"]],[30,0,["endTimeValue"]],[30,0,["onChangeEndTime"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["combo-box","if","i18n"]]',moduleName:"discourse/components/user-notification-schedule-day.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({tagName:"",dayLabel:(0,n.i18n)("day","user.notification_schedule.%@")}))
e.default=o})),define("discourse/components/user-notification-schedule",["exports","@ember/component","@ember/template-factory","@ember/object","I18n","discourse-common/utils/decorators"],(function(e,t,i,n,r,o){var s,l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"J5Uvtjsm",block:'[[[10,0],[14,0,"control-group notification-schedule"],[14,"data-setting-name","user-notification-schedule"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.notification_schedule.title"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@labelKey","@checked"],["user.notification_schedule.label",[30,0,["model","user_notification_schedule","enabled"]]]],null],[1,"\\n\\n"],[41,[30,0,["model","user_notification_schedule","enabled"]],[[[1,"    "],[10,0],[14,0,"instruction"],[12],[1,[28,[35,0],["user.notification_schedule.tip"],null]],[13],[1,"\\n\\n    "],[10,"table"],[14,0,"notification-schedule-table"],[12],[1,"\\n      "],[10,"tbody"],[14,0,"notification-schedule-tbody"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["days"]]],null]],null],null,[[[1,"          "],[8,[39,5],null,[["@day","@startTimeOptions","@startTimeValue","@onChangeStartTime","@endTimeOptions","@endTimeValue","@onChangeEndTime"],[[30,1,["day"]],[30,1,["startTimeOptions"]],[30,1,["startTimeValue"]],[30,1,["onChangeStartTime"]],[30,1,["endTimeOptions"]],[30,1,["endTimeValue"]],[30,1,["onChangeEndTime"]]]],null],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["day"],false,["i18n","preference-checkbox","if","each","-track-array","user-notification-schedule-day"]]',moduleName:"discourse/components/user-notification-schedule.hbs",isStrictMode:!1}),p=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],m=n.default.extend((s=(0,o.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_start_time"),l=(0,o.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_start_time"),a=(0,o.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_end_time"),c(u={id:null,startTimeOptions:null,model:null,onChangeStartTime(e){this.startingTimeChangedForDay(e)},onChangeEndTime(e){this.set(`model.user_notification_schedule.day_${this.id}_end_time`,e)},startTimeValue(e){return e[`day_${this.id}_start_time`]},endTimeOptions(e){return this.buildEndTimeOptionsFor(e[`day_${this.id}_start_time`])},endTimeValue(e){return e[`day_${this.id}_end_time`]},startingTimeChangedForDay(e){e=parseInt(e,10),this.model.set(`user_notification_schedule.day_${this.id}_start_time`,e),"-1"!==e&&this.model.user_notification_schedule[`day_${this.id}_end_time`]<=e&&this.model.set(`user_notification_schedule.day_${this.id}_end_time`,e+30)},buildEndTimeOptionsFor(e){return-1===(e=parseInt(e,10))?null:this.buildTimeOptions(e+30,{includeNone:!1,showMidnight:!0})}},"onChangeStartTime",[n.action],Object.getOwnPropertyDescriptor(u,"onChangeStartTime"),u),c(u,"onChangeEndTime",[n.action],Object.getOwnPropertyDescriptor(u,"onChangeEndTime"),u),c(u,"startTimeValue",[s],Object.getOwnPropertyDescriptor(u,"startTimeValue"),u),c(u,"endTimeOptions",[l],Object.getOwnPropertyDescriptor(u,"endTimeOptions"),u),c(u,"endTimeValue",[a],Object.getOwnPropertyDescriptor(u,"endTimeValue"),u),u))
var h=(0,t.setComponentTemplate)(d,t.default.extend({days:null,didInsertElement(){this._super(...arguments),this.set("startTimeOptions",this.buildTimeOptions(0,{includeNone:!0,showMidnight:!1})),this.set("days",[]),p.forEach(((e,t)=>{this.days.pushObject(m.create({id:t,day:e,model:this.model,buildTimeOptions:this.buildTimeOptions,startTimeOptions:this.startTimeOptions}))}))},buildTimeOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeNone:!1,showMidnight:!0},i=[]
t.includeNone&&i.push({name:r.default.t("user.notification_schedule.none"),value:-1})
for(let n=e;n<=1440;n+=30){let e=Math.floor(n/60),o=n%60
if(0===o&&(o="00"),24===e){t.showMidnight&&i.push({name:r.default.t("user.notification_schedule.midnight"),value:1440})
break}i.push({name:moment().set("hour",e).set("minute",o).format("LT"),value:n})}return i}}))
e.default=h})),define("discourse/components/user-notifications-large",["exports","discourse/components/mount-widget","discourse-common/utils/decorators"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((n=(0,i.observes)("notifications.length","notifications.@each.read"),r={widget:"user-notifications-large",notifications:null,args:null,init(){this._super(...arguments),this.args={notifications:this.notifications}},_triggerRefresh(){this.set("args",{notifications:this.notifications}),this.queueRerender()}},o=r,s="_triggerRefresh",l=[n],a=Object.getOwnPropertyDescriptor(r,"_triggerRefresh"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/components/user-preferences/categories",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"xICLqqig",block:'[[[10,0],[14,0,"control-group category-notifications"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.categories_settings"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-categories"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-watching"],null]],[1," "],[1,[28,[35,0],["user.watched_categories"],null]],[13],[1,"\\n"],[41,[30,1],[[[1,"      "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["watchingTopicsPath"]]],[12],[1,[28,[35,0],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1,"    "],[8,[39,3],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["watchedCategories"]],[30,3],[28,[37,4],[[30,0],[28,[37,5],[[30,2,["watchedCategories"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.watched_categories_instructions"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls tracking-controls tracking-controls__tracked-categories"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-tracking"],null]],[1," "],[1,[28,[35,0],["user.tracked_categories"],null]],[13],[1,"\\n"],[41,[30,1],[[[1,"      "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["trackingTopicsPath"]]],[12],[1,[28,[35,0],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1,"    "],[8,[39,3],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["trackedCategories"]],[30,3],[28,[37,4],[[30,0],[28,[37,5],[[30,2,["trackedCategories"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.tracked_categories_instructions"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-first-categories"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-watching-first"],null]],[1,"\\n      "],[1,[28,[35,0],["user.watched_first_post_categories"],null]],[13],[1,"\\n    "],[8,[39,3],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["watchedFirstPostCategories"]],[30,3],[28,[37,4],[[30,0],[28,[37,5],[[30,2,["watchedFirstPostCategories"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.watched_first_post_categories_instructions"],null]],[13],[1,"\\n\\n"],[41,[30,4,["mute_all_categories_by_default"]],[[[1,"    "],[10,0],[14,0,"controls tracking-controls tracking-controls__regular-categories"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["d-regular"],null]],[1," "],[1,[28,[35,0],["user.regular_categories"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["regularCategories"]],[30,3],[28,[37,4],[[30,0],[28,[37,5],[[30,2,["regularCategories"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.regular_categories_instructions"],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"controls tracking-controls tracking-controls__muted-categories"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["d-muted"],null]],[1," "],[1,[28,[35,0],["user.muted_categories"],null]],[13],[1,"\\n\\n"],[41,[30,1],[[[1,"        "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["mutedTopicsPath"]]],[12],[1,[28,[35,0],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[8,[39,3],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["mutedCategories"]],[30,3],[28,[37,4],[[30,0],[28,[37,5],[[30,2,["mutedCategories"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],[[52,[30,5],"user.muted_categories_instructions","user.muted_categories_instructions_dont_hide"]],null]],[13],[1,"\\n"]],[]]],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-categories","div",[28,[37,7],null,[["model","save"],[[30,2],[30,6]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,7],null,[["model"],[[30,2]]]]]],null],[1,"\\n"],[13]],["@canSee","@model","@selectedCategories","@siteSettings","@hideMutedTags","@save"],false,["i18n","d-icon","if","category-selector","action","mut","plugin-outlet","hash"]]',moduleName:"discourse/components/user-preferences/categories.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-preferences/tags",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"T6yxHswG",block:'[[[41,[30,1,["tagging_enabled"]],[[[1,"  "],[10,0],[14,0,"control-group tag-notifications"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.tag_settings"],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-tags"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,2],["d-watching"],[["class"],["icon watching"]]]],[1,"\\n        "],[1,[28,[35,1],["user.watched_tags"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["watched_tags"]],[30,3],true,true,[28,[37,4],null,[["allowAny"],[false]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,1],["user.watched_tags_instructions"],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls tracking-controls tracking-controls__tracked-tags"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,2],["d-tracking"],[["class"],["icon tracking"]]]],[1,"\\n        "],[1,[28,[35,1],["user.tracked_tags"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["tracked_tags"]],[30,3],true,true,[28,[37,4],null,[["allowAny"],[false]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,1],["user.tracked_tags_instructions"],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-first-post-tags"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,2],["d-watching-first"],[["class"],["icon watching-first-post"]]]],[1,"\\n        "],[1,[28,[35,1],["user.watched_first_post_tags"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["watching_first_post_tags"]],[30,3],true,true,[28,[37,4],null,[["allowAny"],[false]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["user.watched_first_post_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls tracking-controls tracking-controls__muted-tags"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,2],["d-muted"],[["class"],["icon muted"]]]],[1,"\\n        "],[1,[28,[35,1],["user.muted_tags"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["muted_tags"]],[30,3],true,true,[28,[37,4],null,[["allowAny"],[false]]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,1],["user.muted_tags_instructions"],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-tags","div",[28,[37,4],null,[["model","save"],[[30,2],[30,4]]]]]],null],[1,"\\n  "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,4],null,[["model"],[[30,2]]]]]],null],[1,"\\n"]],[]],null]],["@siteSettings","@model","@selectedTags","@save"],false,["if","i18n","d-icon","tag-chooser","hash","plugin-outlet"]]',moduleName:"discourse/components/user-preferences/tags.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-preferences/topic-tracking",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"6/vkl9Qy",block:'[[[10,0],[14,0,"user-preferences_tracking-topics-controls"],[12],[1,"\\n  "],[10,0],[14,0,"controls controls-dropdown"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,0],["user.new_topic_duration.label"],null]],[13],[1,"\\n    "],[8,[39,1],null,[["@class","@valueProperty","@content","@value","@onChange"],["duration","value",[30,1],[30,2,["user_option","new_topic_duration_minutes"]],[28,[37,2],[[30,0],[28,[37,3],[[30,2,["user_option","new_topic_duration_minutes"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,0],["user.auto_track_topics"],null]],[13],[1,"\\n    "],[8,[39,1],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,3],[30,2,["user_option","auto_track_topics_after_msecs"]],[28,[37,2],[[30,0],[28,[37,3],[[30,2,["user_option","auto_track_topics_after_msecs"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,0],["user.notification_level_when_replying"],null]],[13],[1,"\\n    "],[8,[39,1],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,4],[30,2,["user_option","notification_level_when_replying"]],[28,[37,2],[[30,0],[28,[37,3],[[30,2,["user_option","notification_level_when_replying"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@considerNewTopicOptions","@model","@autoTrackDurations","@notificationLevelsForReplying"],false,["i18n","combo-box","action","mut"]]',moduleName:"discourse/components/user-preferences/topic-tracking.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-preferences/user-api-keys",["exports","@ember/component","@ember/template-factory","@ember/component/template-only"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"sIZ/Fxvi",block:'[[[41,[30,1,["userApiKeys"]],[[[1,"  "],[10,0],[14,0,"control-group pref-user-api-keys"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label pref-user-api-keys__label"],[12],[1,[28,[35,1],["user.apps"],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1,["userApiKeys"]]],null]],null],null,[[[1,"        "],[10,0],[12],[1,"\\n          "],[10,1],[14,0,"pref-user-api-keys__application-name"],[12],[1,[30,2,["application_name"]]],[13],[1,"\\n\\n"],[41,[30,2,["revoked"]],[[[1,"            "],[8,[39,4],null,[["@action","@actionParam","@class","@label"],[[28,[37,5],["undoRevokeApiKey"],null],[30,2],"btn","user.undo_revoke_access"]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,4],null,[["@action","@actionParam","@class","@label"],[[28,[37,5],["revokeApiKey"],null],[30,2],"btn","user.revoke_access"]],null],[1,"\\n"]],[]]],[1,"\\n          "],[10,2],[12],[1,"\\n            "],[10,"ul"],[14,0,"pref-user-api-keys__scopes-list"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,2,["scopes"]]],null]],null],null,[[[1,"                "],[10,"li"],[14,0,"pref-user-api-keys__scopes-list-item"],[12],[1,[30,3]],[13],[1,"\\n"]],[3]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,2],[14,0,"pref-user-api-keys__created-at"],[12],[1,"\\n            "],[10,1],[12],[1,[28,[35,1],["user.api_approved"],null]],[13],[1,"\\n            "],[1,[28,[35,6],[[30,2,["created_at"]]],null]],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,2],[14,0,"pref-user-api-keys__last-used-at"],[12],[1,"\\n            "],[10,1],[12],[1,[28,[35,1],["user.api_last_used_at"],null]],[13],[1,"\\n            "],[1,[28,[35,6],[[30,2,["last_used_at"]]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[2]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["@model","key","scope"],false,["if","i18n","each","-track-array","d-button","route-action","bound-date"]]',moduleName:"discourse/components/user-preferences/user-api-keys.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,(0,n.default)())
e.default=o})),define("discourse/components/user-profile-avatar",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"o2UuYpq6",block:'[[[10,0],[14,0,"user-profile-avatar"],[12],[1,"\\n  "],[1,[28,[35,0],[[30,1],"huge"],null]],[1,"\\n  "],[8,[39,1],null,[["@user"],[[30,1]]],null],[1,"\\n  "],[10,0],[12],[1,"\\n    "],[8,[39,2],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-avatar-flair","div",[28,[37,3],null,[["model"],[[30,1]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@user"],false,["bound-avatar","user-avatar-flair","plugin-outlet","hash"]]',moduleName:"discourse/components/user-profile-avatar.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/user-stat",["exports","@ember/component","@ember/template-factory","@ember/object/computed"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"9skZDTx3",block:'[[[10,1],[14,0,"value"],[15,"title",[30,0,["rawTitle"]]],[12],[1,"\\n"],[41,[30,0,["isNumber"]],[[[1,"    "],[1,[28,[35,1],[[30,1]],null]],[1,"\\n"]],[]],[[[41,[30,0,["isDuration"]],[[[1,"    "],[1,[28,[35,2],[[30,1]],null]],[1,"\\n"]],[]],[[[1,"    "],[1,[30,1]],[1,"\\n  "]],[]]]],[]]],[13],[1,"\\n"],[10,1],[14,0,"label"],[12],[1,"\\n  "],[41,[30,2],[[[1,[28,[35,3],[[30,2]],null]]],[]],null],[1,"\\n  "],[1,[28,[35,4],[[28,[37,5],[[30,3]],[["count"],[[30,1]]]]],null]],[1,"\\n"],[13]],["@value","@icon","@label"],false,["if","number","format-duration","d-icon","html-safe","i18n"]]',moduleName:"discourse/components/user-stat.hbs",isStrictMode:!1})
var o=(0,t.setComponentTemplate)(r,t.default.extend({classNames:["user-stat"],type:"number",isNumber:(0,n.equal)("type","number"),isDuration:(0,n.equal)("type","duration")}))
e.default=o})),define("discourse/components/user-status-message",["exports","@ember/component","@ember/template-factory","@ember/object","discourse/lib/formatter"],(function(e,t,i,n,r){var o,s
function l(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,i.createTemplateFactory)({id:"/WcFzYF8",block:'[[[41,[30,1],[[[1,"  "],[10,1],[15,0,[28,[37,1],["user-status-message",[30,2]],null]],[12],[1,"\\n    "],[1,[28,[35,2],[[30,1,["emoji"]]],[["skipTitle"],[true]]]],[1,"\\n"],[41,[30,3],[[[1,"      "],[10,1],[14,0,"user-status-message-description"],[12],[1,"\\n        "],[1,[30,1,["description"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showTooltip"]],[[[1,"      "],[8,[39,3],null,null,[["default"],[[[[1,"\\n        "],[10,0],[14,0,"user-status-message-tooltip"],[12],[1,"\\n          "],[1,[28,[35,2],[[30,1,["emoji"]]],[["skipTitle"],[true]]]],[1,"\\n          "],[10,1],[14,0,"user-status-tooltip-description"],[12],[1,"\\n            "],[1,[30,1,["description"]]],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["until"]],[[[1,"            "],[10,0],[14,0,"user-status-tooltip-until"],[12],[1,"\\n              "],[1,[30,0,["until"]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["@status","@class","@showDescription"],false,["if","concat-class","emoji","d-tooltip"]]',moduleName:"discourse/components/user-status-message.hbs",isStrictMode:!1})
let u=(o=(0,n.computed)("status.ends_at"),s=class extends t.default{constructor(){super(...arguments),l(this,"tagName",""),l(this,"showTooltip",!0)}get until(){if(!this.status.ends_at)return null
const e=this.currentUser?this.currentUser.user_option?.timezone:moment.tz.guess()
return(0,r.until)(this.status.ends_at,e,this.currentUser?.locale)}},c=s.prototype,d="until",p=[o],m=Object.getOwnPropertyDescriptor(s.prototype,"until"),h=s.prototype,f={},Object.keys(m).forEach((function(e){f[e]=m[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),f),h&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(h):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(c,d,f),f=null),s)
var c,d,p,m,h,f
e.default=u,(0,t.setComponentTemplate)(a,u)})),define("discourse/components/user-status-picker",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/runloop","discourse/lib/text","discourse/lib/utilities"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,i.createTemplateFactory)({id:"2REdfwkS",block:'[[[10,0],[14,0,"user-status-picker-wrap"],[12],[1,"\\n  "],[10,0],[15,0,[29,["emoji-picker-anchor user-status-picker\\n      ",[52,[30,0,["isFocused"]],"focused"]]]],[12],[1,"\\n    "],[11,"button"],[24,0,"btn-emoji btn-flat"],[16,"onclick",[28,[37,1],[[30,0],"toggleEmojiPicker"],null]],[24,4,"button"],[4,[38,2],["focus",[30,0,["focus"]]],null],[4,[38,2],["blur",[30,0,["blur"]]],null],[12],[1,"\\n"],[41,[30,1,["emoji"]],[[[1,"        "],[1,[28,[35,3],[[30,0,["emojiHtml"]]],null]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,4],["discourse-emojis"],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[8,[39,5],[[24,0,"user-status-description"],[24,"maxlength","100"],[16,"placeholder",[28,[37,6],["user_status.what_are_you_doing"],null]],[4,[38,2],["input",[30,0,["setDefaultEmoji"]]],null],[4,[38,2],["focus",[30,0,["focus"]]],null],[4,[38,2],["blur",[30,0,["blur"]]],null]],[["@value"],[[30,1,["description"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,7],null,[["@isActive","@emojiSelected","@onEmojiPickerClose","@placement"],[[30,0,["emojiPickerIsActive"]],[28,[37,1],[[30,0],"emojiSelected"],null],[28,[37,1],[[30,0],"onEmojiPickerOutsideClick"],null],"bottom"]],null]],["@status"],false,["if","action","on","html-safe","d-icon","input","i18n","emoji-picker"]]',moduleName:"discourse/components/user-status-picker.hbs",isStrictMode:!1})
let p=(l=(0,n.computed)("status.emoji"),a=class extends t.default{constructor(){super(...arguments),u(this,"tagName",""),u(this,"isFocused",!1),u(this,"emojiPickerIsActive",!1)}didInsertElement(){this._super(...arguments),this.status||this.set("status",{})}get emojiHtml(){const e=(0,s.escapeExpression)(`:${this.status.emoji}:`)
return(0,o.emojiUnescape)(e)}blur(){this.set("isFocused",!1)}emojiSelected(e){this.set("status.emoji",e),this.set("emojiPickerIsActive",!1),(0,r.scheduleOnce)("afterRender",(()=>{document.querySelector(".btn-emoji")?.focus()}))}focus(){this.set("isFocused",!0)}onEmojiPickerOutsideClick(){this.set("emojiPickerIsActive",!1)}setDefaultEmoji(){this.status.emoji||this.set("status.emoji","speech_balloon")}toggleEmojiPicker(e){e.stopPropagation(),this.set("emojiPickerIsActive",!this.emojiPickerIsActive)}},c(a.prototype,"emojiHtml",[l],Object.getOwnPropertyDescriptor(a.prototype,"emojiHtml"),a.prototype),c(a.prototype,"blur",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"blur"),a.prototype),c(a.prototype,"emojiSelected",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"emojiSelected"),a.prototype),c(a.prototype,"focus",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"focus"),a.prototype),c(a.prototype,"onEmojiPickerOutsideClick",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"onEmojiPickerOutsideClick"),a.prototype),c(a.prototype,"setDefaultEmoji",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"setDefaultEmoji"),a.prototype),c(a.prototype,"toggleEmojiPicker",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"toggleEmojiPicker"),a.prototype),a)
e.default=p,(0,t.setComponentTemplate)(d,p)})),define("discourse/components/user-stream-item",["exports","@ember/component","@ember/template-factory","discourse/widgets/post-small-action","@ember/object","discourse/lib/computed","discourse/lib/url","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s,l){var a,u
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.createTemplateFactory)({id:"5pkAS5QW",block:'[[[10,0],[14,0,"user-stream-item__header info"],[12],[1,"\\n  "],[10,3],[15,6,[30,0,["userUrl"]]],[15,"data-user-card",[28,[37,0],[[30,1,["draft_username"]],[30,1,["username"]]],null]],[14,0,"avatar-link"],[12],[1,"\\n    "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n      "],[1,[28,[35,1],[[30,1]],[["imageSize","extraClasses","ignoreTitle"],["large","actor","true"]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"user-stream-item__details"],[12],[1,"\\n    "],[10,0],[14,0,"stream-topic-title"],[12],[1,"\\n      "],[8,[39,2],null,[["@topic","@disableActions"],[[30,1],true]],null],[1,"\\n      "],[10,1],[14,0,"title"],[12],[1,"\\n"],[41,[30,1,["postUrl"]],[[[1,"          "],[10,3],[15,6,[30,1,["postUrl"]]],[12],[1,[28,[35,4],[[30,1,["title"]]],null]],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,4],[[30,1,["title"]]],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"category"],[12],[1,[28,[35,5],[[30,1,["category"]]],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,1,["draftType"]],[[[1,"    "],[10,1],[14,0,"draft-type"],[12],[1,[28,[35,4],[[30,1,["draftType"]]],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,6],null,[["@item"],[[30,1]]],null],[1,"\\n"]],[]]],[1,"\\n  "],[10,0],[14,0,"user-stream-item__metadata"],[12],[1,"\\n    "],[10,1],[14,0,"time"],[12],[1,[28,[35,7],[[30,1,["created_at"]]],null]],[13],[1,"\\n\\n"],[41,[30,1,["deleted_by"]],[[[1,"      "],[10,1],[14,0,"delete-info"],[12],[1,"\\n        "],[1,[28,[35,8],["far-trash-alt"],null]],[1,"\\n        "],[1,[28,[35,1],[[30,1,["deleted_by"]]],[["imageSize","extraClasses","ignoreTitle"],["tiny","actor","true"]]]],[1,"\\n        "],[1,[28,[35,7],[[30,1,["deleted_at"]]],[["leaveAgo"],["true"]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["user-stream-item-header","div",[28,[37,10],null,[["item"],[[30,1]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["actionDescription"]],[[[1,"  "],[10,2],[14,0,"excerpt"],[12],[1,[30,0,["actionDescription"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[15,"data-topic-id",[30,1,["topic_id"]]],[15,"data-post-id",[30,1,["post_id"]]],[15,"data-user-id",[30,1,["user_id"]]],[14,0,"excerpt"],[12],[41,[30,1,["expandedExcerpt"]],[[[1,[28,[35,4],[[30,1,["expandedExcerpt"]]],null]]],[]],[[[1,[28,[35,4],[[30,1,["excerpt"]]],null]]],[]]],[13],[1,"\\n\\n"],[42,[28,[37,12],[[28,[37,12],[[30,1,["children"]]],null]],null],null,[[[1,"  "],[10,0],[14,0,"user-stream-item-actions child-actions"],[12],[1,"\\n    "],[1,[28,[35,8],[[30,2,["icon"]]],[["class"],["icon"]]]],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,2,["items"]]],null]],null],null,[[[1,"      "],[10,3],[15,6,[30,3,["userUrl"]]],[15,"data-user-card",[30,3,["username"]]],[14,0,"avatar-link"],[12],[1,"\\n        "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n          "],[1,[28,[35,1],[[30,3]],[["imageSize","extraClasses","ignoreTitle","avatarTemplatePath"],["tiny","actor","true","acting_avatar_template"]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[41,[30,3,["edit_reason"]],[[[1,"        —\\n        "],[10,1],[14,0,"edit-reason"],[12],[1,[30,3,["edit_reason"]]],[13]],[]],null],[1,"\\n"]],[3]],null],[1,"  "],[13],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,1,["editableDraft"]],[[[1,"  "],[10,0],[14,0,"user-stream-item-draft-actions"],[12],[1,"\\n    "],[8,[39,13],null,[["@action","@actionParam","@icon","@label","@class"],[[30,4],[30,1],"pencil-alt","drafts.resume","btn-default resume-draft"]],null],[1,"\\n    "],[8,[39,13],null,[["@action","@actionParam","@icon","@class","@title"],[[30,5],[30,1],"far-trash-alt","btn-danger remove-draft","drafts.remove"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[18,6,null]],["@item","child","grandChild","@resumeDraft","@removeDraft","&bottom"],false,["or","avatar","topic-status","if","html-safe","category-link","expand-post","format-date","d-icon","plugin-outlet","hash","each","-track-array","d-button","yield"]]',moduleName:"discourse/components/user-stream-item.hbs",isStrictMode:!1})
var d,p,m,h,f,g,b=(0,t.setComponentTemplate)(c,t.default.extend((a=(0,l.default)("item.draft_username","item.username"),u={tagName:"li",classNameBindings:[":user-stream-item",":item","hidden","item.deleted:deleted","moderatorAction"],hidden:(0,r.computed)("item.hidden",(function(){return this.get("item.hidden")&&!(this.currentUser&&this.currentUser.staff)})),moderatorAction:(0,o.propertyEqual)("item.post_type","site.post_types.moderator_action"),actionDescription:(0,n.actionDescription)("item.action_code","item.created_at","item.action_code_who","item.action_code_path"),userUrl:(e,t)=>(0,s.userPath)((e||t).toLowerCase())},d=u,p="userUrl",m=[a],h=Object.getOwnPropertyDescriptor(u,"userUrl"),f=u,g={},Object.keys(h).forEach((function(e){g[e]=h[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=m.slice().reverse().reduce((function(e,t){return t(d,p,e)||e}),g),f&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(f):void 0,g.initializer=void 0),void 0===g.initializer&&(Object.defineProperty(d,p,g),g=null),u)))
e.default=b})),define("discourse/components/user-stream",["exports","@ember/component","@ember/template-factory","discourse/lib/click-track","discourse/lib/url","discourse/models/draft","I18n","discourse/mixins/load-more","discourse/models/post","discourse/models/composer","discourse-common/utils/decorators","@ember/object/evented","discourse/lib/ajax-error","@ember/runloop","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h){var f,g
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=(0,i.createTemplateFactory)({id:"3ZQh1mmf",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,1,["content"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@item","@removeBookmark","@resumeDraft","@removeDraft"],[[30,2],[28,[37,3],[[30,0],"removeBookmark"],null],[28,[37,3],[[30,0],"resumeDraft"],null],[28,[37,3],[[30,0],"removeDraft"],null]]],null],[1,"\\n"]],[2]],null]],["@stream","item"],false,["each","-track-array","user-stream-item","action"]]',moduleName:"discourse/components/user-stream.hbs",isStrictMode:!1})
var y,_,v,w,k,x,P=(0,t.setComponentTemplate)(b,t.default.extend(l.default,(f=(0,c.observes)("stream.user.id"),g={tagName:"ul",dialog:(0,h.inject)(),composer:(0,h.inject)(),_lastDecoratedElement:null,_initialize:(0,d.on)("init",(function(){const e=this.get("stream.filter")
e&&this.set("classNames",["user-stream","filter-"+e.toString().replace(",","-")])})),loading:!1,eyelineSelector:".user-stream .item",classNames:["user-stream"],_scrollTopOnModelChange(){(0,m.schedule)("afterRender",(()=>$(document).scrollTop(0)))},_inserted:(0,d.on)("didInsertElement",(function(){$(window).on("resize.discourse-on-scroll",(()=>this.scrolled())),$(this.element).on("click.details-disabled","details.disabled",(()=>!1)),$(this.element).on("click.discourse-redirect",".excerpt a",(e=>n.default.trackClick(e,this.siteSettings))),this._updateLastDecoratedElement(),this._scrollToLastPosition()})),_destroyed:(0,d.on)("willDestroyElement",(function(){$(window).unbind("resize.discourse-on-scroll"),$(this.element).off("click.details-disabled","details.disabled"),$(this.element).off("click.discourse-redirect",".excerpt a")})),_updateLastDecoratedElement(){const e=this.element.querySelectorAll(".user-stream-item")
if(0===e.length)return
const t=e[e.length-1]
t!==this._lastDecoratedElement&&(this._lastDecoratedElement=t)},_scrollToLastPosition(){const e=this.session.userStreamScrollPosition
e>=0&&(0,m.schedule)("afterRender",(()=>{!this.element||this.isDestroying||this.isDestroyed||(0,m.next)((()=>window.scrollTo(0,e)))}))},scrolled(){this._super(...arguments),this.session.set("userStreamScrollPosition",window.scrollY)},actions:{removeBookmark(e){const t=this.stream
a.default.updateBookmark(e.get("post_id"),!1).then((()=>{t.remove(e)})).catch(p.popupAjaxError)},resumeDraft(e){this.composer.get("model.viewOpen")&&this.composer.close(),e.get("postUrl")?r.default.routeTo(e.get("postUrl")):o.default.get(e.draft_key).then((t=>{const i=t.draft||e.data
i&&this.composer.open({draft:i,draftKey:e.draft_key,draftSequence:t.draft_sequence})})).catch((e=>{(0,p.popupAjaxError)(e)}))},removeDraft(e){const t=this.stream
this.dialog.yesNoConfirm({message:s.default.t("drafts.remove_confirmation"),didConfirm:()=>{o.default.clear(e.draft_key,e.sequence).then((()=>{t.remove(e),e.draft_key===u.NEW_TOPIC_KEY&&this.currentUser.set("has_topic_draft",!1)})).catch((e=>{(0,p.popupAjaxError)(e)}))}})},loadMore(){if(this.loading)return
this.set("loading",!0)
this.stream.findItems().then((()=>{this.set("loading",!1)
let e=this._lastDecoratedElement?.nextElementSibling
for(;e;)this.trigger("user-stream:new-item-inserted",e),e=e.nextElementSibling
this._updateLastDecoratedElement()}))}}},y=g,_="_scrollTopOnModelChange",v=[f],w=Object.getOwnPropertyDescriptor(g,"_scrollTopOnModelChange"),k=g,x={},Object.keys(w).forEach((function(e){x[e]=w[e]})),x.enumerable=!!x.enumerable,x.configurable=!!x.configurable,("value"in x||x.initializer)&&(x.writable=!0),x=v.slice().reverse().reduce((function(e,t){return t(y,_,e)||e}),x),k&&void 0!==x.initializer&&(x.value=x.initializer?x.initializer.call(k):void 0,x.initializer=void 0),void 0===x.initializer&&(Object.defineProperty(y,_,x),x=null),g)))
e.default=P})),define("discourse/components/user-summary-category-search",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"flfRzyWe",block:'[[[41,[30,1],[[[1,"  "],[8,[39,1],null,[["@route","@query"],["full-page-search",[28,[37,2],null,[["q"],[[30,0,["searchParams"]]]]]]],[["default"],[[[[1,"\\n    "],[1,[30,1]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[1,"  –\\n"]],[]]]],["@count"],false,["if","link-to","hash"]]',moduleName:"discourse/components/user-summary-category-search.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((r=(0,n.default)("user","category"),l=o={tagName:"",searchParams(){return`@${this.get("user.username")} #${this.get("category.slug")}`}},a="searchParams",u=[r],c=Object.getOwnPropertyDescriptor(o,"searchParams"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/user-summary-section",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"jWdvCjy7",block:'[[[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[35,0],[[28,[37,1],["user.summary.",[30,1]],null]],null]],[13],[1,"\\n"],[18,2,null]],["@title","&default"],false,["i18n","concat","yield"]]',moduleName:"discourse/components/user-summary-section.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({classNames:["top-sub-section"]}))
e.default=r})),define("discourse/components/user-summary-topic",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"Wog9xaP7",block:'[[[10,1],[14,0,"topic-info"],[12],[1,"\\n  "],[1,[28,[35,0],[[30,1]],[["format","noTitle"],["tiny","true"]]]],[1,"\\n"],[41,[30,2],[[[1,"    ·\\n    "],[1,[28,[35,2],["heart"],null]],[1," "],[10,1],[14,0,"like-count"],[12],[1,[28,[35,3],[[30,2]],null]],[13],[1,"\\n"]],[]],null],[13],[1,"\\n"],[10,"br"],[12],[13],[1,"\\n"],[10,3],[15,6,[30,3]],[12],[1,[28,[35,4],[[30,4,["fancyTitle"]]],null]],[13]],["@createdAt","@likes","@url","@topic"],false,["format-date","if","d-icon","number","html-safe"]]',moduleName:"discourse/components/user-summary-topic.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:"li"}))
e.default=r})),define("discourse/components/user-summary-topics-list",["exports","@ember/component","@ember/template-factory","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"0A+RIA2U",block:'[[[41,[30,1],[[[1,"  "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,"      "],[18,5,[[30,2]]],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n"],[41,[30,0,["hasMore"]],[[[1,"    "],[10,2],[12],[1,"\\n      "],[8,[39,4],[[24,0,"more"]],[["@route","@model"],[[28,[37,5],["userActivity.",[30,3]],null],[30,4]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,6],[[28,[37,5],["user.summary.more_",[30,3]],null]],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],[[[1,"  "],[10,2],[12],[1,[28,[35,6],[[28,[37,5],["user.summary.no_",[30,3]],null]],null]],[13],[1,"\\n"]],[]]]],["@items","item","@type","@user","&default"],false,["if","each","-track-array","yield","link-to","concat","i18n"]]',moduleName:"discourse/components/user-summary-topics-list.hbs",isStrictMode:!1})
var l,a,u,c,d,p,m=(0,t.setComponentTemplate)(s,t.default.extend((r=(0,n.default)("items.length"),l=o={tagName:"",hasMore:e=>e>=6},a="hasMore",u=[r],c=Object.getOwnPropertyDescriptor(o,"hasMore"),d=o,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o)))
e.default=m})),define("discourse/components/user-summary-user",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"YVbucpIN",block:'[[[8,[39,0],null,[["@user"],[[30,1]]],[["default"],[[[[1,"\\n  "],[1,[28,[35,1],[[30,2]],null]],[1,"\\n  "],[10,1],[15,0,[30,3]],[12],[1,[28,[35,2],[[30,1,["count"]]],null]],[13],[1,"\\n"]],[]]]]]],["@user","@icon","@countClass"],false,["user-info","d-icon","number"]]',moduleName:"discourse/components/user-summary-user.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({tagName:"li"}))
e.default=r})),define("discourse/components/user-summary-users-list",["exports","@ember/component","@ember/template-factory"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=(0,i.createTemplateFactory)({id:"ICXGsUVY",block:'[[[41,[30,0,["users"]],[[[1,"  "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["users"]]],null]],null],null,[[[1,"      "],[18,2,[[30,1]]],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,2],[12],[1,[28,[35,4],[[28,[37,5],["user.summary.",[30,0,["none"]]],null]],null]],[13],[1,"\\n"]],[]]]],["user","&default"],false,["if","each","-track-array","yield","i18n","concat"]]',moduleName:"discourse/components/user-summary-users-list.hbs",isStrictMode:!1})
var r=(0,t.setComponentTemplate)(n,t.default.extend({}))
e.default=r})),define("discourse/components/user-tip",["exports","@ember/component","@ember/template-factory","@ember/object","@ember/runloop","@ember/service","@glimmer/component","discourse/lib/user-tips","I18n"],(function(e,t,i,n,r,o,s,l,a){var u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.createTemplateFactory)({id:"Xplqxny+",block:'[[[11,1],[24,0,"user-tip-reference"],[4,[38,0],[[30,0,["showUserTip"]]],null],[12],[13]],[],false,["did-insert"]]',moduleName:"discourse/components/user-tip.hbs",isStrictMode:!1})
let m=(u=class extends s.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="currentUser",n=this,(i=c)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}showUserTip(e){this.currentUser&&(0,r.schedule)("afterRender",(()=>{const{id:t,selector:i,content:n,placement:r,buttonLabel:o,buttonIcon:s,onDismiss:l}=this.args
e=e.parentElement,this.currentUser.showUserTip({id:t,titleText:a.default.t(`user_tips.${t}.title`),contentText:n||a.default.t(`user_tips.${t}.content`),buttonLabel:o,buttonIcon:s,reference:i&&e.parentElement.querySelector(i)||e,appendTo:e.parentElement,placement:r,onDismiss:l})}))}willDestroy(){(0,l.hideUserTip)(this.args.id)}},c=d(u.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(u.prototype,"showUserTip",[n.action],Object.getOwnPropertyDescriptor(u.prototype,"showUserTip"),u.prototype),u)
e.default=m,(0,t.setComponentTemplate)(p,m)})),define("discourse/components/username-preference",["exports","@ember/component","@ember/template-factory","@glimmer/component","@glimmer/tracking","discourse/lib/url","@ember/object/computed","discourse/lib/computed","I18n","discourse/models/user","@ember/utils","discourse/lib/ajax-error","@ember/service","@ember/object"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g,b,y,_,v,w,k,x,P,O,T,S,j,C
function z(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function I(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const E=(0,i.createTemplateFactory)({id:"P10oP6D+",block:'[[[41,[30,0,["editing"]],[[[1,"  "],[10,"form"],[14,0,"form-horizontal"],[12],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,1],[[16,"maxlength",[30,0,["maxLength"]]],[24,0,"input-xxlarge username-preference__input"],[4,[38,2],["input",[30,0,["onInput"]]],null]],[["@value"],[[30,0,["newUsername"]]]],null],[1,"\\n\\n      "],[10,0],[14,0,"instructions"],[12],[1,"\\n        "],[10,2],[12],[1,"\\n"],[41,[30,0,["taken"]],[[[1,"            "],[1,[28,[35,3],["user.change_username.taken"],null]],[1,"\\n"]],[]],null],[1,"          "],[10,1],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,4],[[24,0,"btn-primary username-preference__submit"]],[["@action","@type","@disabled","@translatedLabel"],[[30,0,["changeUsername"]],"submit",[30,0,["saveDisabled"]],[30,0,["saveButtonText"]]]],null],[1,"\\n\\n      "],[8,[39,5],null,[["@close"],[[30,0,["toggleEditing"]]]],null],[1,"\\n\\n      "],[41,[30,0,["saved"]],[[[1,[28,[35,3],["saved"],null]]],[]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[10,1],[14,0,"static username-preference__current-username"],[12],[1,[30,1,["username"]]],[13],[1,"\\n\\n"],[41,[30,1,["can_edit_username"]],[[[1,"      "],[8,[39,4],[[24,0,"btn-small username-preference__edit-username"]],[["@action","@actionParam","@icon","@title"],[[30,0,["toggleEditing"]],[30,1],"pencil-alt","user.username.edit"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_mentions"]],[[[1,"    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,6],[[28,[37,3],["user.username.short_instructions"],[["username"],[[30,1,["username"]]]]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]]]],["@user"],false,["if","input","on","i18n","d-button","d-modal-cancel","html-safe"]]',moduleName:"discourse/components/username-preference.hbs",isStrictMode:!1})
let M=(h=(0,l.setting)("max_username_length"),f=(0,l.setting)("min_username_length"),g=(0,s.empty)("newUsername"),b=(0,s.or)("saving","newUsernameEmpty","taken","unchanged","errorMessage"),y=class extends n.default{constructor(){super(...arguments),z(this,"siteSettings",_,this),z(this,"dialog",v,this),z(this,"editing",w,this),z(this,"newUsername",k,this),z(this,"errorMessage",x,this),z(this,"saving",P,this),z(this,"taken",O,this),z(this,"maxLength",T,this),z(this,"minLength",S,this),z(this,"newUsernameEmpty",j,this),z(this,"saveDisabled",C,this)}get unchanged(){return this.newUsername===this.args.user.username}get saveButtonText(){return this.saving?a.default.t("saving"):a.default.t("user.change")}toggleEditing(){this.editing=!this.editing,this.newUsername=this.args.user.username,this.errorMessage=null,this.saving=!1,this.taken=!1}async onInput(e){if(this.newUsername=e.target.value,this.taken=!1,this.errorMessage=null,(0,c.isEmpty)(this.newUsername))return
if(this.newUsername===this.args.user.username)return
if(this.newUsername.length<this.minLength)return void(this.errorMessage=a.default.t("user.name.too_short"))
const t=await u.default.checkUsername(this.newUsername,void 0,this.args.user.id)
t.errors?this.errorMessage=t.errors.join(" "):!1===t.available&&(this.taken=!0)}changeUsername(){return this.dialog.yesNoConfirm({title:a.default.t("user.change_username.confirm"),didConfirm:async()=>{this.saving=!0
try{await this.args.user.changeUsername(this.newUsername),o.default.redirectTo((0,o.userPath)(this.newUsername.toLowerCase()+"/preferences"))}catch(e){(0,d.popupAjaxError)(e)}finally{this.saving=!1}}})}},_=I(y.prototype,"siteSettings",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=I(y.prototype,"dialog",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=I(y.prototype,"editing",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=I(y.prototype,"newUsername",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.user.username}}),x=I(y.prototype,"errorMessage",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=I(y.prototype,"saving",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),O=I(y.prototype,"taken",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),T=I(y.prototype,"maxLength",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=I(y.prototype,"minLength",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=I(y.prototype,"newUsernameEmpty",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=I(y.prototype,"saveDisabled",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I(y.prototype,"toggleEditing",[m.action],Object.getOwnPropertyDescriptor(y.prototype,"toggleEditing"),y.prototype),I(y.prototype,"onInput",[m.action],Object.getOwnPropertyDescriptor(y.prototype,"onInput"),y.prototype),I(y.prototype,"changeUsername",[m.action],Object.getOwnPropertyDescriptor(y.prototype,"changeUsername"),y.prototype),y)
e.default=M,(0,t.setComponentTemplate)(E,M)})),define("discourse/components/watch-read",["exports","@ember/component","@ember/service","discourse-common/utils/decorators","discourse/lib/is-element-in-viewport","discourse/lib/ajax","discourse/lib/url"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let c=(l=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="currentUser",n=this,(i=a)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}didInsertElement(){super.didInsertElement(...arguments),this.currentUser&&!this.currentUser.read_faq&&(this._checkIfRead(),window.addEventListener("resize",this._checkIfRead,!1),window.addEventListener("scroll",this._checkIfRead,!1))}willDestroyElement(){super.willDestroyElement(...arguments),window.removeEventListener("resize",this._checkIfRead),window.removeEventListener("scroll",this._checkIfRead)}async _checkIfRead(){const e=document.querySelector("[itemprop='mainContentOfPage'] > *:last-child");(0,r.default)(e)&&(await(0,o.ajax)((0,s.userPath)("read-faq"),{type:"POST"}),this.currentUser.set("read_faq",!0))}},a=u(l.prototype,"currentUser",[i.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(l.prototype,"_checkIfRead",[n.bind],Object.getOwnPropertyDescriptor(l.prototype,"_checkIfRead"),l.prototype),l)
e.default=c})),define("discourse/controllers/about",["exports","@ember/controller","I18n","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l,a,u,c,d,p,m=t.default.extend((o=(0,n.default)("model.contact_url","model.contact_email"),s={faqOverridden:(0,r.gt)("siteSettings.faq_url.length",0),contactInfo:(e,t)=>e?i.default.t("about.contact_info",{contact_info:`<a href='${e}' target='_blank'>${e}</a>`}):t?i.default.t("about.contact_info",{contact_info:t}):null},l=s,a="contactInfo",u=[o],c=Object.getOwnPropertyDescriptor(s,"contactInfo"),d=s,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),s))
e.default=m})),define("discourse/controllers/account-created-edit-email",["exports","@ember/controller","discourse/lib/user-activation","discourse-common/utils/decorators","discourse/lib/ajax-error"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l,a,u,c,d,p,m=t.default.extend((o=(0,n.default)("newEmail","accountCreated.email"),l=s={accountCreated:null,newEmail:null,submitDisabled:(e,t)=>e===t,actions:{changeEmail(){const e=this.newEmail;(0,i.changeEmail)({email:e}).then((()=>{this.set("accountCreated.email",e),this.transitionToRoute("account-created.resent")})).catch(r.popupAjaxError)},cancel(){this.transitionToRoute("account-created.index")}}},a="submitDisabled",u=[o],c=Object.getOwnPropertyDescriptor(s,"submitDisabled"),d=s,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),s))
e.default=m})),define("discourse/controllers/account-created-index",["exports","I18n","@ember/controller","discourse-common/lib/get-url","discourse-common/utils/decorators","discourse/lib/user-activation","discourse/lib/waving-hand-url"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=i.default.extend((u(l={envelopeImageUrl:(0,n.default)("/images/envelope.svg"),welcomeTitle(){return t.default.t("invites.welcome_to",{site_name:this.siteSettings.title})},wavingHandURL:()=>(0,s.wavingHandURL)(),actions:{sendActivationEmail(){(0,o.resendActivationEmail)(this.get("accountCreated.username")).then((()=>{this.transitionToRoute("account-created.resent")}))},editActivationEmail(){this.transitionToRoute("account-created.edit-email")}}},"welcomeTitle",[r.default],Object.getOwnPropertyDescriptor(l,"welcomeTitle"),l),u(l,"wavingHandURL",[r.default],(a=(a=Object.getOwnPropertyDescriptor(l,"wavingHandURL"))?a.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return a}}),l),l))
e.default=c})),define("discourse/controllers/application",["exports","@ember/controller","discourse-common/utils/decorators","discourse-common/lib/debounce","@ember/service","@ember/object"],(function(e,t,i,n,r,o){var s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u="sidebar-hidden"
var c=t.default.extend((s=(0,i.default)("navigationMenuQueryParamOverride","siteSettings.navigation_menu","canDisplaySidebar","sidebarDisabledRouteOverride"),l={queryParams:[{navigationMenuQueryParamOverride:"navigation_menu"}],showTop:!0,showFooter:!1,router:(0,r.inject)(),showSidebar:!1,navigationMenuQueryParamOverride:null,sidebarDisabledRouteOverride:!1,showSiteHeader:!0,init(){this._super(...arguments),this.showSidebar=this.calculateShowSidebar()},canSignUp(){return!this.siteSettings.invite_only&&this.siteSettings.allow_new_registrations&&!this.siteSettings.enable_discourse_connect},canDisplaySidebar(){return this.currentUser||!this.siteSettings.login_required},loginRequired(){return this.siteSettings.login_required&&!this.currentUser},showFooterNav(){return this.capabilities.isAppWebview||this.capabilities.isiOSPWA},_mainOutletAnimate(){document.querySelector("body").classList.remove("sidebar-animate")},sidebarEnabled(e,t,i,n){return!!i&&(!n&&("sidebar"===e||"legacy"!==e&&"header_dropdown"!==e&&(!this.site.mobileView&&"sidebar"===t)))},calculateShowSidebar(){return this.canDisplaySidebar&&!this.keyValueStore.getItem(u)&&!this.site.narrowDesktopView},toggleSidebar(){document.querySelector("body").classList.add("sidebar-animate"),(0,n.default)(this,this._mainOutletAnimate,250),this.toggleProperty("showSidebar"),this.site.desktopView&&(this.showSidebar?this.keyValueStore.removeItem(u):this.keyValueStore.setItem(u,"true"))}},a(l,"canSignUp",[i.default],Object.getOwnPropertyDescriptor(l,"canSignUp"),l),a(l,"canDisplaySidebar",[i.default],Object.getOwnPropertyDescriptor(l,"canDisplaySidebar"),l),a(l,"loginRequired",[i.default],Object.getOwnPropertyDescriptor(l,"loginRequired"),l),a(l,"showFooterNav",[i.default],Object.getOwnPropertyDescriptor(l,"showFooterNav"),l),a(l,"sidebarEnabled",[s],Object.getOwnPropertyDescriptor(l,"sidebarEnabled"),l),a(l,"toggleSidebar",[o.action],Object.getOwnPropertyDescriptor(l,"toggleSidebar"),l),l))
e.default=c}))
define("discourse/controllers/associate-account-confirm",["exports","@ember/controller","discourse/mixins/modal-functionality","discourse/lib/ajax","discourse/lib/ajax-error"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=t.default.extend(i.default,{actions:{finishConnect(){(0,n.ajax)({url:`/associate/${encodeURIComponent(this.model.token)}`,type:"POST"}).then((e=>{e.success?(this.transitionToRoute("preferences.account",this.currentUser.findDetails()),this.send("closeModal")):this.set("model.error",e.error)})).catch(r.popupAjaxError)}}})
e.default=o})),define("discourse/controllers/auth-token",["exports","@ember/controller","discourse/mixins/modal-functionality","discourse/lib/ajax","@ember/object","@ember/runloop","discourse/lib/url"],(function(e,t,i,n,r,o,s){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a,u,c,d,p,m,h=t.default.extend(i.default,(a=l={expanded:!1,onShow(){(0,n.ajax)((0,s.userPath)(`${this.get("currentUser.username_lower")}/activity.json`)).then((e=>{e.length>0&&(this.set("latest_post",e[0]),document.querySelector(".d-modal .modal-close")?.focus())}))},toggleExpanded(e){e?.preventDefault(),this.set("expanded",!this.expanded)},actions:{highlightSecure(){this.send("closeModal"),(0,o.next)((()=>{const e=$(".pref-password")
e.addClass("highlighted"),e.on("animationend",(()=>e.removeClass("highlighted"))),window.scrollTo({top:e.offset().top,behavior:"smooth"})}))}}},u="toggleExpanded",c=[r.action],d=Object.getOwnPropertyDescriptor(l,"toggleExpanded"),p=l,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),l))
e.default=h})),define("discourse/controllers/avatar-selector",["exports","@ember/controller","@ember/object","discourse/mixins/modal-functionality","discourse/lib/ajax","discourse/lib/uploads","discourse-common/utils/decorators","discourse/lib/ajax-error","discourse/lib/computed","discourse-common/config/environment","@ember/object/compat","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f,g,b,y,_,v
function w(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var k=t.default.extend(n.default,(p=(0,s.default)("selected","uploading"),m=(0,s.default)("siteSettings.selectable_avatars_mode","siteSettings.selectable_avatars"),h=(0,s.default)("siteSettings.selectable_avatars_mode"),f=(0,s.default)("siteSettings.selectable_avatars_mode"),g=(0,s.default)("selected","user.system_avatar_upload_id","user.gravatar_avatar_upload_id","user.custom_avatar_upload_id"),b=(0,s.default)("selected","user.system_avatar_template","user.gravatar_avatar_template","user.custom_avatar_template"),y=(0,s.default)("siteSettings.allow_uploaded_avatars"),w(_={gravatarName:(0,a.setting)("gravatar_name"),gravatarBaseUrl:(0,a.setting)("gravatar_base_url"),gravatarLoginUrl:(0,a.setting)("gravatar_login_url"),submitDisabled:(e,t)=>"logo"===e||t,selectableAvatars(e,t){if("disabled"!==e)return t?t.split("|"):[]},showSelectableAvatars:e=>"disabled"!==e,showAvatarUploader(e){switch(e){case"no_one":return!1
case"tl1":case"tl2":case"tl3":case"tl4":const t=parseInt(e.replace("tl",""),10)
return this.user.admin||this.user.moderator||this.user.trust_level>=t
case"staff":return this.user.admin||this.user.moderator
default:return!0}},_selected:null,get selected(){return this._selected??this.defaultSelection},set selected(e){this._selected=e},onSelectedChanged(e){this._selected=e},get defaultSelection(){return this.get("user.use_logo_small_as_avatar")?"logo":this.get("user.avatar_template")===this.get("user.system_avatar_template")?"system":this.get("user.avatar_template")===this.get("user.gravatar_avatar_template")?"gravatar":"custom"},selectedUploadId(e,t,i,n){switch(e){case"system":return t
case"gravatar":return i
default:return n}},selectedAvatarTemplate(e,t,i,n){switch(e){case"system":return t
case"gravatar":return i
default:return n}},siteSettingMatches(e,t){switch(e){case"disabled":return!1
case"staff":return t.staff
case"admin":return t.admin
default:return t.trust_level>=parseInt(e,10)||t.staff}},allowAvatarUpload(e){return this.siteSettingMatches(e,this.currentUser)&&(0,o.allowsImages)(this.currentUser.staff,this.siteSettings)},selectAvatar(e,t){t?.preventDefault(),this.user.selectAvatar(e).then((()=>window.location.reload())).catch(l.popupAjaxError)},actions:{uploadComplete(){this.set("selected","custom")},refreshGravatar(){return this.set("gravatarRefreshDisabled",!0),(0,r.ajax)(`/user_avatar/${this.get("user.username")}/refresh_gravatar.json`,{type:"POST"}).then((e=>{e.gravatar_upload_id?(this.set("gravatarFailed",!1),this.user.setProperties({gravatar_avatar_upload_id:e.gravatar_upload_id,gravatar_avatar_template:e.gravatar_avatar_template})):this.set("gravatarFailed",!0)})).finally((()=>this.set("gravatarRefreshDisabled",!1)))},saveAvatarSelection(){const e=this.selectedUploadId,t=this.selected
this.user.pickAvatar(e,t).then((()=>{(0,u.isTesting)()||window.location.reload()})).catch(l.popupAjaxError)}}},"submitDisabled",[p],Object.getOwnPropertyDescriptor(_,"submitDisabled"),_),w(_,"selectableAvatars",[m],Object.getOwnPropertyDescriptor(_,"selectableAvatars"),_),w(_,"showSelectableAvatars",[h],Object.getOwnPropertyDescriptor(_,"showSelectableAvatars"),_),w(_,"showAvatarUploader",[f],Object.getOwnPropertyDescriptor(_,"showAvatarUploader"),_),w(_,"_selected",[d.tracked],(v=(v=Object.getOwnPropertyDescriptor(_,"_selected"))?v.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return v}}),_),w(_,"selected",[c.dependentKeyCompat],Object.getOwnPropertyDescriptor(_,"selected"),_),w(_,"onSelectedChanged",[i.action],Object.getOwnPropertyDescriptor(_,"onSelectedChanged"),_),w(_,"selectedUploadId",[g],Object.getOwnPropertyDescriptor(_,"selectedUploadId"),_),w(_,"selectedAvatarTemplate",[b],Object.getOwnPropertyDescriptor(_,"selectedAvatarTemplate"),_),w(_,"allowAvatarUpload",[y],Object.getOwnPropertyDescriptor(_,"allowAvatarUpload"),_),w(_,"selectAvatar",[i.action],Object.getOwnPropertyDescriptor(_,"selectAvatar"),_),_))
e.default=k})),define("discourse/controllers/badges/index",["exports","@ember/controller","discourse-common/utils/decorators"],(function(e,t,i){var n,r
function o(e){let t=e.get("badge_grouping.position"),i=e.get("badge_type_id"),n=e.get("name")
return("000"+t).slice(-4)+(10-i)+n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=t.default.extend((n=(0,i.default)("model"),s=r={badgeGroups(e){let t,i=e.sort(((e,t)=>o(e).localeCompare(o(t)))),n=[],r=[]
return i.forEach((function(e){t!==e.badge_grouping_id&&(r&&r.length>0&&n.push({badges:r,badgeGrouping:r[0].badge_grouping}),r=[],t=e.badge_grouping_id),r.push(e)})),r&&r.length>0&&n.push({badges:r,badgeGrouping:r[0].badge_grouping}),n}},l="badgeGroups",a=[n],u=Object.getOwnPropertyDescriptor(r,"badgeGroups"),c=r,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r))
e.default=p})),define("discourse/controllers/badges/show",["exports","@ember/object","@ember/controller","discourse-common/utils/decorators","discourse/models/badge","I18n","discourse/models/user-badge"],(function(e,t,i,n,r,o,s){var l,a,u,c,d,p,m,h,f,g
function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var y=i.default.extend((l=(0,n.default)("userBadgesAll"),a=(0,n.default)("filteredList"),u=(0,n.default)("username"),c=(0,n.default)("username","model.grant_count","userBadges.grant_count"),d=(0,n.default)("model.grant_count","userBadges.grant_count"),p=(0,n.default)("model.allow_title","model.has_badge","model"),m=(0,n.default)("noMoreBadges","grantCount","userBadges.length"),h=(0,n.default)("user","model.grant_count"),f=(0,n.observes)("canLoadMore"),b(g={application:(0,i.inject)(),queryParams:["username"],noMoreBadges:!1,userBadges:null,hiddenSetTitle:!0,filteredList:e=>e.filterBy("badge.allow_title",!0),selectableUserBadges:e=>[t.default.create({id:0,badge:r.default.create({name:o.default.t("badges.none")})}),...e.uniqBy("badge.name")],user(e){if(e)return this.userBadges[0].get("user")},grantCount:(e,t,i)=>e?i:t,othersCount:(e,t)=>e-t,canSelectTitle(e,t){return this.siteSettings.enable_badges&&e&&t},canLoadMore:(e,t,i)=>!e&&t>(i||0),canShowOthers:(e,t)=>!!e&&t>1,_showFooter(){this.set("application.showFooter",!this.canLoadMore)},loadMore(){if(!this.canLoadMore)return
if(this.loadingMore)return
this.set("loadingMore",!0)
const e=this.userBadges
s.default.findByBadgeId(this.get("model.id"),{offset:e.length,username:this.username}).then((t=>{e.pushObjects(t),0===e.length&&this.set("noMoreBadges",!0)})).finally((()=>{this.set("loadingMore",!1)}))},toggleSetUserTitle(){return this.toggleProperty("hiddenSetTitle")}},"filteredList",[l],Object.getOwnPropertyDescriptor(g,"filteredList"),g),b(g,"selectableUserBadges",[a],Object.getOwnPropertyDescriptor(g,"selectableUserBadges"),g),b(g,"user",[u],Object.getOwnPropertyDescriptor(g,"user"),g),b(g,"grantCount",[c],Object.getOwnPropertyDescriptor(g,"grantCount"),g),b(g,"othersCount",[d],Object.getOwnPropertyDescriptor(g,"othersCount"),g),b(g,"canSelectTitle",[p],Object.getOwnPropertyDescriptor(g,"canSelectTitle"),g),b(g,"canLoadMore",[m],Object.getOwnPropertyDescriptor(g,"canLoadMore"),g),b(g,"canShowOthers",[h],Object.getOwnPropertyDescriptor(g,"canShowOthers"),g),b(g,"_showFooter",[f],Object.getOwnPropertyDescriptor(g,"_showFooter"),g),b(g,"loadMore",[t.action],Object.getOwnPropertyDescriptor(g,"loadMore"),g),b(g,"toggleSetUserTitle",[t.action],Object.getOwnPropertyDescriptor(g,"toggleSetUserTitle"),g),g))
e.default=y})),define("discourse/controllers/basic-modal-body",["exports","@ember/controller","discourse/mixins/modal-functionality"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend(i.default,{modal:null})
e.default=n})),define("discourse/controllers/bookmark",["exports","@ember/controller","I18n","discourse/mixins/modal-functionality","@ember/object","rsvp","discourse/lib/show-modal"],(function(e,t,i,n,r,o,s){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.openBookmarkModal=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{onCloseWithoutSaving:null,onAfterSave:null,onAfterDelete:null}
return new o.Promise((n=>{const r={id:e.id,reminderAt:e.reminder_at,autoDeletePreference:e.auto_delete_preference,name:e.name}
r.bookmarkableId=e.bookmarkable_id,r.bookmarkableType=e.bookmarkable_type,(0,s.default)("bookmark",{model:r,titleTranslated:i.default.t(e.id?"bookmarks.edit":"bookmarks.create"),modalClass:"bookmark-with-reminder"}).setProperties({onCloseWithoutSaving:()=>{t.onCloseWithoutSaving&&t.onCloseWithoutSaving(),n()},afterSave:e=>{let i
t.onAfterSave&&(i=t.onAfterSave(e)),n(i)},afterDelete:(e,i)=>{t.onAfterDelete&&t.onAfterDelete(e,i),n()}})}))}
var a,u,c,d,p,m,h=t.default.extend(n.default,(l={onShow(){this.setProperties({model:this.model||{},allowSave:!0})},registerOnCloseHandler(e){this.set("onCloseHandler",e)},onClose(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.onCloseHandler&&this.onCloseHandler(e)}},a=l,u="registerOnCloseHandler",c=[r.action],d=Object.getOwnPropertyDescriptor(l,"registerOnCloseHandler"),p=l,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),l))
e.default=h})),define("discourse/controllers/bulk-notification-level",["exports","@ember/controller","I18n","discourse-common/utils/decorators","@ember/object/computed","discourse/lib/notification-levels"],(function(e,t,i,n,r,o){var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l,a,u,c,d,p,m=t.default.extend((s={topicBulkActions:(0,t.inject)(),notificationLevelId:null,notificationLevels:()=>o.topicLevels.map((e=>({id:e.id.toString(),name:i.default.t(`topic.notifications.${e.key}.title`),description:i.default.t(`topic.notifications.${e.key}.description`)}))),disabled:(0,r.empty)("notificationLevelId"),actions:{changeNotificationLevel(){this.topicBulkActions.performAndRefresh({type:"change_notification_level",notification_level_id:this.notificationLevelId})}}},l=s,a="notificationLevels",u=[n.default],c=Object.getOwnPropertyDescriptor(s,"notificationLevels"),d=s,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),s))
e.default=m})),define("discourse/controllers/change-owner",["exports","@ember/controller","discourse/lib/url","I18n","discourse/mixins/modal-functionality","discourse/models/topic","@ember/object/computed","discourse-common/utils/decorators","@ember/utils","@ember/runloop"],(function(e,t,i,n,r,o,s,l,a,u){var c,d
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var p,m,h,f,g,b,y=t.default.extend(r.default,(c=(0,l.default)("saving","newOwner"),d={topicController:(0,t.inject)("topic"),saving:!1,newOwner:null,selectedPostsCount:(0,s.alias)("topicController.selectedPostsCount"),selectedPostsUsername:(0,s.alias)("topicController.selectedPostsUsername"),buttonDisabled:(e,t)=>e||(0,a.isEmpty)(t),onShow(){this.setProperties({saving:!1,newOwner:null})},actions:{changeOwnershipOfPosts(){this.set("saving",!0)
const e={post_ids:this.get("topicController.selectedPostIds"),username:this.newOwner}
return o.default.changeOwners(this.get("topicController.model.id"),e).then((()=>{this.send("closeModal"),this.topicController.send("deselectAll"),this.get("topicController.multiSelect")&&this.topicController.send("toggleMultiSelect"),(0,u.next)((()=>i.default.routeTo(this.get("topicController.model.url"))))}),(()=>{this.flash(n.default.t("topic.change_owner.error"),"error"),this.set("saving",!1)})),!1},updateNewOwner(e){this.set("newOwner",e.firstObject)}}},p=d,m="buttonDisabled",h=[c],f=Object.getOwnPropertyDescriptor(d,"buttonDisabled"),g=d,b={},Object.keys(f).forEach((function(e){b[e]=f[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=h.slice().reverse().reduce((function(e,t){return t(p,m,e)||e}),b),g&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(g):void 0,b.initializer=void 0),void 0===b.initializer&&(Object.defineProperty(p,m,b),b=null),d))
e.default=y})),define("discourse/controllers/change-post-notice",["exports","@ember/controller","discourse/mixins/modal-functionality","@ember/object","discourse/lib/text","discourse-common/utils/decorators","@ember/utils"],(function(e,t,i,n,r,o,s){var l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u=t.default.extend(i.default,(a(l={post:null,resolve:null,reject:null,notice:null,saving:!1,disabled:(e,t)=>e||(0,s.isEmpty)(t),onShow(){this.setProperties({notice:"",saving:!1})},onClose(){this.reject&&this.reject()},setNotice(e){const{resolve:t,reject:i}=this
this.setProperties({saving:!0,resolve:null,reject:null}),this.model.updatePostField("notice",e).then((()=>{if(e)return(0,r.cookAsync)(e,{features:{onebox:!1}})})).then((t=>this.model.set("notice",t?{type:"custom",raw:e,cooked:t.string}:null))).then(t,i).finally((()=>this.send("closeModal")))}},"disabled",[(0,o.default)("saving","notice")],Object.getOwnPropertyDescriptor(l,"disabled"),l),a(l,"setNotice",[n.action],Object.getOwnPropertyDescriptor(l,"setNotice"),l),l))
e.default=u})),define("discourse/controllers/change-timestamp",["exports","@ember/controller","discourse/lib/url","I18n","discourse/mixins/modal-functionality","discourse/models/topic","discourse-common/utils/decorators","@ember/utils","@ember/runloop"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var f=t.default.extend(r.default,(u=(0,s.default)("saving"),c=(0,s.default)("date","time"),d=(0,s.default)("createdAt"),p=(0,s.default)("saving","date","validTimestamp"),h(m={topicController:(0,t.inject)("topic"),saving:!1,date:"",time:"",buttonTitle:e=>e?n.default.t("saving"):n.default.t("topic.change_timestamp.action"),createdAt:(e,t)=>moment(`${e} ${t}`,"YYYY-MM-DD HH:mm:ss"),validTimestamp:e=>moment().diff(e,"minutes")<0,buttonDisabled:(e,t,i)=>!(!e&&!i)||(0,l.isEmpty)(t),onShow(){this.set("date",moment().format("YYYY-MM-DD"))},actions:{changeTimestamp(){this.set("saving",!0)
const e=this.topicController.model
return o.default.changeTimestamp(e.id,this.createdAt.unix()).then((()=>{this.send("closeModal"),this.setProperties({date:"",time:"",saving:!1}),(0,a.next)((()=>i.default.routeTo(e.url)))})).catch((()=>this.flash(n.default.t("topic.change_timestamp.error"),"error"))).finally((()=>this.set("saving",!1))),!1}}},"buttonTitle",[u],Object.getOwnPropertyDescriptor(m,"buttonTitle"),m),h(m,"createdAt",[c],Object.getOwnPropertyDescriptor(m,"createdAt"),m),h(m,"validTimestamp",[d],Object.getOwnPropertyDescriptor(m,"validTimestamp"),m),h(m,"buttonDisabled",[p],Object.getOwnPropertyDescriptor(m,"buttonDisabled"),m),m))
e.default=f})),define("discourse/controllers/composer",["exports","discourse/services/composer"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addComposerSaveErrorCallback",{enumerable:!0,get:function(){return t.addComposerSaveErrorCallback}}),Object.defineProperty(e,"addPopupMenuOptionsCallback",{enumerable:!0,get:function(){return t.addPopupMenuOptionsCallback}}),Object.defineProperty(e,"clearComposerSaveErrorCallback",{enumerable:!0,get:function(){return t.clearComposerSaveErrorCallback}}),Object.defineProperty(e,"clearPopupMenuOptionsCallback",{enumerable:!0,get:function(){return t.clearPopupMenuOptionsCallback}}),e.default=void 0,Object.defineProperty(e,"toggleCheckDraftPopup",{enumerable:!0,get:function(){return t.toggleCheckDraftPopup}})
var i=t.default
e.default=i})),define("discourse/controllers/convert-to-public-topic",["exports","@ember/controller","discourse/mixins/modal-functionality","discourse/lib/ajax-error"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend(i.default,{publicCategoryId:null,saving:!0,onShow(){this.setProperties({publicCategoryId:null,saving:!1})},actions:{makePublic(){let e=this.model
e.convertTopic("public",{categoryId:this.publicCategoryId}).then((()=>{e.set("archetype","regular"),e.set("category_id",this.publicCategoryId),this.appEvents.trigger("header:show-topic",e),this.send("closeModal")})).catch(n.popupAjaxError)}}})
e.default=r})),define("discourse/controllers/create-account",["exports","@ember/controller","discourse/lib/cookie","discourse-common/utils/decorators","@ember/array","@ember/object","I18n","discourse/mixins/modal-functionality","discourse/mixins/name-validation","discourse/mixins/password-validation","rsvp","discourse/models/user","discourse/mixins/user-fields-validation","discourse/mixins/username-validation","discourse/lib/ajax","discourse/lib/utilities","discourse/models/login-method","discourse-common/lib/debounce","@ember/utils","@ember/object/computed","discourse/lib/computed","discourse/lib/url","discourse/lib/waving-hand-url"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w,k){var x,P,O,T,S,j,C,z,I,E,M,D,N,L
function A(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var U=t.default.extend(l.default,u.default,m.default,a.default,p.default,(x=(0,n.default)("hasAuthOptions","canCreateLocal","skipConfirmation"),P=(0,n.default)("formSubmitted"),O=(0,n.default)(),T=(0,n.default)("userFields","hasAtLeastOneLoginButton","hasAuthOptions"),S=(0,n.default)("authOptions","authOptions.can_edit_username"),j=(0,n.default)("authOptions","authOptions.can_edit_name"),C=(0,n.default)("authOptions.auth_provider"),z=(0,n.default)("serverAccountEmail","serverEmailValidation","accountEmail","rejectedEmails.[]","forceValidationReason"),I=(0,n.default)("accountEmail","authOptions.email","authOptions.email_valid"),E=(0,n.observes)("emailValidation","accountEmail"),M=(0,n.on)("init"),D=(0,n.default)("authOptions.associate_url","authOptions.auth_provider"),A(N={login:(0,t.inject)(),complete:!1,accountChallenge:0,accountHoneypot:0,formSubmitted:!1,rejectedEmails:(0,r.A)(),prefilledUsername:null,userFields:null,isDeveloper:!1,maskPassword:!0,hasAuthOptions:(0,_.notEmpty)("authOptions"),canCreateLocal:(0,v.setting)("enable_local_logins"),requireInviteCode:(0,v.setting)("require_invite_code"),showCreateForm:(e,t,i)=>(e||t)&&!i,resetForm(){this.setProperties({accountName:"",accountEmail:"",accountUsername:"",accountPassword:"",serverAccountEmail:null,serverEmailValidation:null,authOptions:null,complete:!1,formSubmitted:!1,rejectedEmails:[],rejectedPasswords:[],prefilledUsername:null,isDeveloper:!1,maskPassword:!0}),this._createUserFields()},submitDisabled(){return!!this.formSubmitted},wavingHandURL:()=>(0,k.wavingHandURL)(),modalBodyClasses(e,t,i){const n=[]
return e&&n.push("has-user-fields"),t&&!i&&n.push("has-alt-auth"),this.canCreateLocal||n.push("no-local-logins"),n.join(" ")},usernameDisabled:(e,t)=>e&&!t,nameDisabled:(e,t)=>e&&!t,fullnameRequired(){return this.siteSettings.full_name_required||this.siteSettings.enable_names},passwordRequired:e=>(0,y.isEmpty)(e),disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return s.default.t("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})},emailValidation(e,t,i,n,r){const l={failed:!0,ok:!1,element:document.querySelector("#new-account-email")}
return e===i&&t?t:(0,y.isEmpty)(i)?o.default.create(Object.assign(l,{message:s.default.t("user.email.required"),reason:r?s.default.t("user.email.required"):null})):n.includes(i)||!(0,f.emailValid)(i)?o.default.create(Object.assign(l,{reason:s.default.t("user.email.invalid")})):this.get("authOptions.email")===i&&this.get("authOptions.email_valid")?o.default.create({ok:!0,reason:s.default.t("user.email.authenticated",{provider:this.authProviderDisplayName(this.get("authOptions.auth_provider"))})}):o.default.create({ok:!0,reason:s.default.t("user.email.ok")})},checkEmailAvailability(){if(this.emailValidation.ok&&this.serverAccountEmail!==this.accountEmail)return d.default.checkEmail(this.accountEmail).then((e=>{this.isDestroying||this.isDestroyed||(e.failed?this.setProperties({serverAccountEmail:this.accountEmail,serverEmailValidation:o.default.create({failed:!0,element:document.querySelector("#new-account-email"),reason:e.errors[0]})}):this.setProperties({serverAccountEmail:this.accountEmail,serverEmailValidation:o.default.create({ok:!0,reason:s.default.t("user.email.ok")})}))})).catch((()=>{this.setProperties({serverAccountEmail:null,serverEmailValidation:null})}))},emailDisabled(){return this.get("authOptions.email")===this.accountEmail&&this.get("authOptions.email_valid")},authProviderDisplayName(e){const t=(0,g.findAll)().find((t=>t.name===e))
return t?t.get("prettyName"):e},prefillUsername(){this.prefilledUsername&&(this.accountUsername===this.prefilledUsername&&this.set("accountUsername",""),this.set("prefilledUsername",null)),this.get("emailValidation.ok")&&((0,y.isEmpty)(this.accountUsername)||this.get("authOptions.email"))&&(0,b.default)(this,this.fetchExistingUsername,500)},hasAtLeastOneLoginButton:()=>(0,g.findAll)().length>0,fetchConfirmationValue(){return void 0===this._challengeDate&&this._hpPromise||(this._hpPromise=(0,h.ajax)("/session/hp.json").then((e=>{this.isDestroying||this.isDestroyed||(this._challengeDate=new Date,this._challengeExpiry=parseInt(e.expires_in,10)-30,this._challengeExpiry<30&&(this._challengeExpiry=30),this.setProperties({accountHoneypot:e.value,accountChallenge:e.challenge.split("").reverse().join("")}))})).finally((()=>this._hpPromise=void 0))),this._hpPromise},performAccountCreation(){if(!this._challengeDate||new Date-this._challengeDate>1e3*this._challengeExpiry)return this.fetchConfirmationValue().then((()=>this.performAccountCreation()))
const e=this.getProperties("accountName","accountEmail","accountPassword","accountUsername","accountChallenge","inviteCode")
e.accountPasswordConfirm=this.accountHoneypot
const t=this.userFields,n=this.get("authOptions.destination_url")
return(0,y.isEmpty)(n)||(0,i.default)("destination_url",n,{path:"/"}),(0,y.isEmpty)(t)||(e.userFields={},t.forEach((t=>e.userFields[t.get("field.id")]=t.get("value")))),this.set("formSubmitted",!0),d.default.createAccount(e).then((t=>{if(!this.isDestroying&&!this.isDestroyed){if(this.set("isDeveloper",!1),t.success){this._challengeExpiry=1
const t=$("#hidden-login-form")
return t.find("input[name=username]").val(e.accountUsername),t.find("input[name=password]").val(e.accountPassword),t.find("input[name=redirect]").val((0,w.userPath)("account-created")),t.submit(),new c.Promise((()=>{}))}this.flash(t.message||s.default.t("create_account.failed"),"error"),t.is_developer&&this.set("isDeveloper",!0),t.errors&&t.errors.email&&t.errors.email.length>0&&t.values&&this.rejectedEmails.pushObject(t.values.email),t.errors&&t.errors.password&&t.errors.password.length>0&&this.rejectedPasswords.pushObject(e.accountPassword),this.set("formSubmitted",!1),(0,i.removeCookie)("destination_url")}}),(()=>(this.set("formSubmitted",!1),(0,i.removeCookie)("destination_url"),this.flash(s.default.t("create_account.failed"),"error"))))},onShow(){this.skipConfirmation&&this.performAccountCreation().finally((()=>this.set("skipConfirmation",!1)))},associateHtml(e,t){if(e)return s.default.t("create_account.associate",{associate_link:e,provider:s.default.t(`login.${t}.name`)})},togglePasswordMask(){this.toggleProperty("maskPassword")},actions:{externalLogin(e){this.login.send("externalLogin",e,{signup:!0})},createAccount(){this.clearFlash(),this.set("forceValidationReason",!0)
const e=[this.emailValidation,this.usernameValidation,this.nameValidation,this.passwordValidation,this.userFieldsValidation].find((e=>e.failed))
if(e){const t=e.element
t&&("DIV"===t.tagName?(t.scrollIntoView&&t.scrollIntoView(),t.click()):t.focus())}else this.set("forceValidationReason",!1),this.performAccountCreation()}}},"showCreateForm",[x],Object.getOwnPropertyDescriptor(N,"showCreateForm"),N),A(N,"submitDisabled",[P],Object.getOwnPropertyDescriptor(N,"submitDisabled"),N),A(N,"wavingHandURL",[O],(L=(L=Object.getOwnPropertyDescriptor(N,"wavingHandURL"))?L.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return L}}),N),A(N,"modalBodyClasses",[T],Object.getOwnPropertyDescriptor(N,"modalBodyClasses"),N),A(N,"usernameDisabled",[S],Object.getOwnPropertyDescriptor(N,"usernameDisabled"),N),A(N,"nameDisabled",[j],Object.getOwnPropertyDescriptor(N,"nameDisabled"),N),A(N,"fullnameRequired",[n.default],Object.getOwnPropertyDescriptor(N,"fullnameRequired"),N),A(N,"passwordRequired",[C],Object.getOwnPropertyDescriptor(N,"passwordRequired"),N),A(N,"disclaimerHtml",[n.default],Object.getOwnPropertyDescriptor(N,"disclaimerHtml"),N),A(N,"emailValidation",[z],Object.getOwnPropertyDescriptor(N,"emailValidation"),N),A(N,"checkEmailAvailability",[o.action],Object.getOwnPropertyDescriptor(N,"checkEmailAvailability"),N),A(N,"emailDisabled",[I],Object.getOwnPropertyDescriptor(N,"emailDisabled"),N),A(N,"prefillUsername",[E],Object.getOwnPropertyDescriptor(N,"prefillUsername"),N),A(N,"hasAtLeastOneLoginButton",[n.default],Object.getOwnPropertyDescriptor(N,"hasAtLeastOneLoginButton"),N),A(N,"fetchConfirmationValue",[M],Object.getOwnPropertyDescriptor(N,"fetchConfirmationValue"),N),A(N,"associateHtml",[D],Object.getOwnPropertyDescriptor(N,"associateHtml"),N),A(N,"togglePasswordMask",[o.action],Object.getOwnPropertyDescriptor(N,"togglePasswordMask"),N),N))
e.default=U})),define("discourse/controllers/create-invite-bulk",["exports","@ember/controller","@ember/object","discourse/mixins/modal-functionality"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend(n.default,(o=r={data:null,onShow(){this.set("data",null)},onClose(){this.data&&(this.data.abort(),this.set("data",null))},submit(e){this.set("data",e),e.submit()}},s="submit",l=[i.action],a=Object.getOwnPropertyDescriptor(r,"submit"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/controllers/create-invite",["exports","@ember/controller","@ember/object","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/ajax-error","discourse/lib/pwa-utils","discourse/lib/utilities","discourse/mixins/buffered-content","discourse/mixins/modal-functionality","discourse/models/group","discourse/models/invite","I18n","select-kit/components/future-date-input-selector","discourse/lib/text","discourse/lib/time-shortcut"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f){var g,b,y,_,v,w,k
function x(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var P=t.default.extend(u.default,(0,a.bufferedProperty)("invite"),(g=(0,r.default)("buffered.emailOrDomain"),b=(0,r.default)("buffered.emailOrDomain"),y=(0,r.default)("currentUser.staff","siteSettings.invite_link_max_redemptions_limit","siteSettings.invite_link_max_redemptions_limit_users"),_=(0,r.default)("buffered.expires_at"),v=(0,r.default)("currentUser.staff","currentUser.groups"),w=(0,r.default)("currentUser.staff"),x(k={allGroups:null,topics:null,flashText:null,flashClass:null,flashLink:!1,invite:null,invites:null,editing:!1,inviteToTopic:!1,limitToEmail:!1,isEmail:e=>(0,l.emailValid)(e?.trim()),isDomain:e=>(0,l.hostnameValid)(e?.trim()),isLink:(0,n.not)("isEmail"),onShow(){c.default.findAll().then((e=>{this.set("allGroups",e.filterBy("automatic",!1))})),this.setProperties({topics:[],flashText:null,flashClass:null,flashLink:!1,invite:null,invites:null,editing:!1,inviteToTopic:!1,limitToEmail:!1}),this.setInvite(d.default.create()),this.buffered.setProperties({max_redemptions_allowed:1,expires_at:moment().add(this.siteSettings.invite_expiry_days,"days").format(m.FORMAT)})},onClose(){this.appEvents.trigger("modal-body:clearFlash")},setInvite(e){this.setProperties({invite:e,topics:e.topics})},save(e){const t={...this.buffered.buffer}
return t.emailOrDomain&&((0,l.emailValid)(t.emailOrDomain)?t.email=t.emailOrDomain?.trim():(0,l.hostnameValid)(t.emailOrDomain)&&(t.domain=t.emailOrDomain?.trim()),delete t.emailOrDomain),void 0!==t.groupIds&&(t.group_ids=t.groupIds.length>0?t.groupIds:"",delete t.groupIds),void 0!==t.topicId&&(t.topic_id=t.topicId,delete t.topicId,delete t.topicTitle),this.isLink?this.invite.email&&(t.email=t.custom_message=""):this.isEmail&&(this.invite.max_redemptions_allowed>1&&(t.max_redemptions_allowed=1),e.sendEmail?(t.send_email=!0,this.inviteToTopic&&(t.invite_to_topic=!0)):t.skip_email=!0),this.invite.save(t).then((()=>{this.rollbackBuffer(),this.invites&&!this.invites.any((e=>e.id===this.invite.id))&&this.invites.unshiftObject(this.invite),this.isEmail&&e.sendEmail?this.send("closeModal"):this.setProperties({flashText:(0,h.sanitize)(p.default.t("user.invited.invite.invite_saved")),flashClass:"success",flashLink:!this.editing})})).catch((e=>this.setProperties({flashText:(0,h.sanitize)((0,o.extractError)(e)),flashClass:"error",flashLink:!1})))},maxRedemptionsAllowedLimit:(e,t,i)=>e?t:i,expiresAtLabel(e){const t=moment(e)
return t.isBefore()?p.default.t("user.invited.invite.expired_at_time",{time:t.format("LLL")}):p.default.t("user.invited.invite.expires_in_time",{time:moment.duration(t-moment()).humanize()})},canInviteToGroup:(e,t)=>e||t.any((e=>e.owner)),canArriveAtTopic(e){return!(!e||this.siteSettings.must_approve_users)},timeShortcuts(){const e=this.currentUser.user_option.timezone,t=(0,f.timeShortcuts)(e)
return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.monday(),t.twoWeeks(),t.nextMonth(),t.twoMonths(),t.threeMonths(),t.fourMonths(),t.sixMonths()]},copied(){this.save({sendEmail:!1,copy:!0})},saveInvite(e){this.appEvents.trigger("modal-body:clearFlash"),this.save({sendEmail:e})},searchContact(){(0,s.getNativeContact)(this.capabilities,["email"],!1).then((e=>{this.set("buffered.email",e[0].email[0])}))},onChangeTopic(e,t){this.set("topics",[t]),this.set("buffered.topicId",e)}},"isEmail",[g],Object.getOwnPropertyDescriptor(k,"isEmail"),k),x(k,"isDomain",[b],Object.getOwnPropertyDescriptor(k,"isDomain"),k),x(k,"maxRedemptionsAllowedLimit",[y],Object.getOwnPropertyDescriptor(k,"maxRedemptionsAllowedLimit"),k),x(k,"expiresAtLabel",[_],Object.getOwnPropertyDescriptor(k,"expiresAtLabel"),k),x(k,"canInviteToGroup",[v],Object.getOwnPropertyDescriptor(k,"canInviteToGroup"),k),x(k,"canArriveAtTopic",[w],Object.getOwnPropertyDescriptor(k,"canArriveAtTopic"),k),x(k,"timeShortcuts",[r.default],Object.getOwnPropertyDescriptor(k,"timeShortcuts"),k),x(k,"copied",[i.action],Object.getOwnPropertyDescriptor(k,"copied"),k),x(k,"saveInvite",[i.action],Object.getOwnPropertyDescriptor(k,"saveInvite"),k),x(k,"searchContact",[i.action],Object.getOwnPropertyDescriptor(k,"searchContact"),k),x(k,"onChangeTopic",[i.action],Object.getOwnPropertyDescriptor(k,"onChangeTopic"),k),k))
e.default=P})),define("discourse/controllers/delete-topic-confirm",["exports","@ember/controller","I18n","discourse/mixins/modal-functionality","@ember/object","discourse-common/utils/decorators"],(function(e,t,i,n,r,o){var s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=t.default.extend(n.default,(l(s={deletingTopic:!1,buttonTitle:e=>e?i.default.t("deleting"):i.default.t("post.controls.delete_topic_confirm_modal_yes"),onShow(){this.set("deletingTopic",!1)},deleteTopic(){return this.set("deletingTopic",!0),this.model.destroy(this.currentUser).then((()=>this.send("closeModal"))).catch((()=>{this.flash(i.default.t("post.controls.delete_topic_error"),"error"),this.set("deletingTopic",!1)})),!1}},"buttonTitle",[(0,o.default)("deletingTopic")],Object.getOwnPropertyDescriptor(s,"buttonTitle"),s),l(s,"deleteTopic",[r.action],Object.getOwnPropertyDescriptor(s,"deleteTopic"),s),s))
e.default=a})),define("discourse/controllers/discard-draft",["exports","@ember/controller","discourse/mixins/modal-functionality"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend(i.default,{showSaveDraftButton:!0,actions:{async destroyDraft(){await this.onDestroyDraft(),this.send("closeModal")},async saveDraftAndClose(){await this.onSaveDraft(),this.send("closeModal")},dismissModal(){this.send("closeModal")}}})
e.default=n})),define("discourse/controllers/discovery-filter",["exports","@ember/controller","@ember/object","@glimmer/tracking"],(function(e,t,i,n){var r,o
function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let a=(r=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="q",n=this,(i=o)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),s(this,"queryParams",["q"])}updateTopicsListQueryParams(e){this.q=e}},o=l(r.prototype,"q",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),l(r.prototype,"updateTopicsListQueryParams",[i.action],Object.getOwnPropertyDescriptor(r.prototype,"updateTopicsListQueryParams"),r.prototype),r)
e.default=a})),define("discourse/controllers/discovery-sortable",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.addDiscoveryQueryParam=void 0,e.changeSort=function(e){let t=this.controllerFor("discovery.topics").model
e===this.controller.order?(this.controller.toggleProperty("ascending"),t.updateSortParams(e,this.controller.ascending)):(this.controller.setProperties({order:e,ascending:!1}),t.updateSortParams(e,!1))},e.queryParams=e.default=void 0,e.resetParams=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
n.queryParams.forEach((t=>{e.includes(t)||this.controller.set(t,i[t].default)}))}
const i={order:{replace:!0,refreshModel:!0},ascending:{replace:!0,refreshModel:!0,default:!1},status:{replace:!0,refreshModel:!0},state:{replace:!0,refreshModel:!0},search:{replace:!0,refreshModel:!0},max_posts:{replace:!0,refreshModel:!0},min_posts:{replace:!0,refreshModel:!0},q:{replace:!0,refreshModel:!0},before:{replace:!0,refreshModel:!0},bumped_before:{replace:!0,refreshModel:!0},f:{replace:!0,refreshModel:!0},period:{replace:!0,refreshModel:!0},topic_ids:{replace:!0,refreshModel:!0},group_name:{replace:!0,refreshModel:!0},tags:{replace:!0,refreshModel:!0},match_all_tags:{replace:!0,refreshModel:!0},no_subcategories:{replace:!0,refreshModel:!0},no_tags:{replace:!0,refreshModel:!0},exclude_tag:{replace:!0,refreshModel:!0}}
e.queryParams=i
const n={discoveryTopics:(0,t.inject)("discovery/topics"),queryParams:Object.keys(i)}
n.queryParams.forEach((e=>{n[e]=i[e].default}))
const r=t.default.extend(n)
e.addDiscoveryQueryParam=function(e,t){i[e]=t
const n={}
n[e]=null,n.queryParams=Object.keys(i),r.reopen(n)}
var o=r
e.default=o})),define("discourse/controllers/discovery",["exports","@ember/controller","@ember/object/computed","@ember/object","discourse/models/category","discourse/lib/url","@ember/service"],(function(e,t,i,n,r,o,s){var l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u=t.default.extend((a(l={discoveryTopics:(0,t.inject)("discovery/topics"),navigationCategory:(0,t.inject)("navigation/category"),application:(0,t.inject)(),router:(0,s.inject)(),viewingCategoriesList:(0,i.equal)("router.currentRouteName","discovery.categories"),loading:!1,category:(0,i.alias)("navigationCategory.category"),noSubcategories:(0,i.alias)("navigationCategory.noSubcategories"),loadedAllItems:(0,i.not)("discoveryTopics.model.canLoadMore"),loadingBegan(){this.set("loading",!0),this.set("application.showFooter",!1)},loadingComplete(){this.set("loading",!1),this.set("application.showFooter",this.loadedAllItems)},showMoreUrl(e){let t="",i=this.category
i&&(t=`/c/${r.default.slugFor(i)}/${i.id}${this.noSubcategories?"/none":""}/l`),t+="/top"
const n=new URLSearchParams
for(const[r,o]of Object.entries(this.router.currentRoute.queryParams))void 0!==o&&n.set(r,o)
return n.set("period",e),`${t}?${n.toString()}`},get showLoadingSpinner(){return this.get("loading")&&"spinner"===this.siteSettings.page_loading_indicator},actions:{changePeriod(e){o.default.routeTo(this.showMoreUrl(e))}}},"loadingBegan",[n.action],Object.getOwnPropertyDescriptor(l,"loadingBegan"),l),a(l,"loadingComplete",[n.action],Object.getOwnPropertyDescriptor(l,"loadingComplete"),l),l))
e.default=u})),define("discourse/controllers/discovery/categories",["exports","discourse/controllers/discovery","@ember/controller","@ember/object","@ember/string","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c={rows:"categories_only",rows_with_featured_topics:"categories_with_featured_topics",boxes:"categories_boxes",boxes_with_featured_topics:"categories_boxes_with_topics"},d=["categories_with_featured_topics","subcategories_with_featured_topics"]
var p=t.default.extend((l=(0,o.default)("model.parentCategory"),u(a={discovery:(0,i.inject)(),category:null,canEdit:(0,s.reads)("currentUser.staff"),isCategoriesRoute(){return"discovery.categories"===this.router.currentRouteName},categoryPageStyle(e){let t=this.siteSettings.desktop_category_page_style
this.site.mobileView&&!d.includes(t)&&(t=d[0]),e&&(t=c[e.get("subcategory_list_style")]||t)
const i=!e||"categories_and_latest_topics"!==t&&"categories_and_latest_topics_created_date"!==t?t:"categories_only"
return(0,r.dasherize)(i)},showInserted(e){e?.preventDefault()
const t=this.topicTrackingState
this.model.loadBefore(t.get("newIncoming"),!0),t.resetTracking()},actions:{refresh(){this.send("triggerRefresh")}}},"isCategoriesRoute",[o.default],Object.getOwnPropertyDescriptor(a,"isCategoriesRoute"),a),u(a,"categoryPageStyle",[l],Object.getOwnPropertyDescriptor(a,"categoryPageStyle"),a),u(a,"showInserted",[n.action],Object.getOwnPropertyDescriptor(a,"showInserted"),a),a))
e.default=p})),define("discourse/controllers/discovery/topics",["exports","@ember/object/computed","discourse/mixins/bulk-topic-selection","discourse/mixins/dismiss-topics","discourse/controllers/discovery","I18n","discourse/models/topic","@ember/controller","discourse-common/lib/deprecated","discourse-common/utils/decorators","discourse/lib/computed","discourse/helpers/route-action","@ember/service","discourse/lib/url","@ember/object"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h){var f,g,b,y,_,v
function w(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const k=(f=(0,u.default)("model.filter","model.topics.length"),g=(0,u.default)("model.filter","model.topics.length"),b=(0,u.default)("model.filter"),y=(0,u.default)("allLoaded","model.topics.length"),_=(0,u.default)("allLoaded","model.topics.length"),v={discovery:(0,l.inject)(),router:(0,p.inject)(),period:null,canCreateTopicOnCategory:null,canStar:(0,t.alias)("currentUser.id"),showTopicPostBadges:(0,t.not)("new"),redirectedReason:(0,t.alias)("currentUser.user_option.redirected_to_top.reason"),expandGloballyPinned:!1,expandAllPinned:!1,order:(0,t.readOnly)("model.params.order"),ascending:(0,t.readOnly)("model.params.ascending"),selected:null,loadingBegan(){return this.set("application.showFooter",!1),!0},loadingComplete(){return this.set("application.showFooter",this.loadedAllItems),!0},showDismissRead(e,t){return this._isFilterPage(e,"unread")&&t>0},showResetNew(e,t){return this._isFilterPage(e,"new")&&t>0},callResetNew(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
const n="tracked"===(this.router.currentRoute.queryParams.f||this.router.currentRoute.queryParams.filter)
let r=this.selected?this.selected.map((e=>e.id)):null
s.default.resetNew(this.category,!this.noSubcategories,{tracked:n,topicIds:r,dismissPosts:e,dismissTopics:t,untrack:i}).then((e=>{e.topic_ids&&this.topicTrackingState.removeTopics(e.topic_ids),this.send("refresh",n?{skipResettingParams:["filter","f"]}:{})}))},showInserted(e){e?.preventDefault()
const t=this.topicTrackingState
this.model.loadBefore(t.get("newIncoming"),!0),t.resetTracking()},actions:{changeSort(){return(0,a.default)("changeSort has been changed from an (action) to a (route-action)",{since:"2.6.0",dropFrom:"2.7.0",id:"discourse.topics.change-sort"}),(0,d.routeAction)("changeSort",this.router._router,...arguments)()}},refresh(){this.send("triggerRefresh")},afterRefresh(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t
this.setProperties({model:i}),this.resetSelected(),this.topicTrackingState&&this.topicTrackingState.sync(t,e),this.send("loadingComplete")},hasTopics:(0,t.gt)("model.topics.length",0),allLoaded:(0,t.empty)("model.more_topics_url"),latest:(0,c.endWith)("model.filter","latest"),top:(0,c.endWith)("model.filter","top"),yearly:(0,t.equal)("period","yearly"),quarterly:(0,t.equal)("period","quarterly"),monthly:(0,t.equal)("period","monthly"),weekly:(0,t.equal)("period","weekly"),daily:(0,t.equal)("period","daily"),new(e){return e?.endsWith("new")&&!this.currentUser?.new_new_view_enabled},footerMessage(e,t){if(!e)return
const i=this.category
if(i)return o.default.t("topics.bottom.category",{category:i.get("name")})
{const e=(this.get("model.filter")||"").split("/")
return 0===t?o.default.t("topics.none."+e[0],{category:e[1]}):o.default.t("topics.bottom."+e[0],{category:e[1]})}},footerEducation(e,t){if(!e||t>0||!this.currentUser)return
const i=(this.get("model.filter")||"").split("/")
let n=i[i.length-1]
return"new"===n||"unread"===n?("new"===n&&this.currentUser.new_new_view_enabled&&(n="new_new"),o.default.t("topics.none.educate."+n,{userPrefsUrl:(0,m.userPath)(`${this.currentUser.get("username_lower")}/preferences/tracking`)})):void 0}},w(v,"loadingBegan",[h.action],Object.getOwnPropertyDescriptor(v,"loadingBegan"),v),w(v,"loadingComplete",[h.action],Object.getOwnPropertyDescriptor(v,"loadingComplete"),v),w(v,"showDismissRead",[f],Object.getOwnPropertyDescriptor(v,"showDismissRead"),v),w(v,"showResetNew",[g],Object.getOwnPropertyDescriptor(v,"showResetNew"),v),w(v,"showInserted",[h.action],Object.getOwnPropertyDescriptor(v,"showInserted"),v),w(v,"refresh",[h.action],Object.getOwnPropertyDescriptor(v,"refresh"),v),w(v,"new",[b],Object.getOwnPropertyDescriptor(v,"new"),v),w(v,"footerMessage",[y],Object.getOwnPropertyDescriptor(v,"footerMessage"),v),w(v,"footerEducation",[_],Object.getOwnPropertyDescriptor(v,"footerEducation"),v),v)
var x=r.default.extend(k,i.default,n.default)
e.default=x})),define("discourse/controllers/download-calendar",["exports","@ember/object","@ember/controller","discourse/mixins/modal-functionality","discourse/lib/download-calendar"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=i.default.extend(n.default,(s=o={selectedCalendar:"ics",remember:!1,downloadCalendar(){this.remember&&(this.currentUser.user_option.set("default_calendar",this.selectedCalendar),this.currentUser.save(["default_calendar"])),"ics"===this.selectedCalendar?(0,r.downloadIcs)(this.model.title,this.model.dates):(0,r.downloadGoogle)(this.model.title,this.model.dates),this.send("closeModal")}},l="downloadCalendar",a=[t.action],u=Object.getOwnPropertyDescriptor(o,"downloadCalendar"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/controllers/edit-category-tabs",["exports","@ember/object/computed","discourse-common/utils/decorators","discourse/models/category","@ember/controller","discourse/lib/url","I18n","discourse/lib/notification-levels","discourse/models/permission-type","discourse/lib/ajax-error","@ember/string","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f,g,b,y,_
function v(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var w=r.default.extend((p=(0,i.on)("init"),m=(0,i.default)("saving","model.name","model.color","deleting"),h=(0,i.default)("saving","deleting"),f=(0,i.default)("name"),g=(0,i.default)("saving","model.id"),b=(0,i.default)("model.id","model.name"),y=(0,i.default)("selectedTab"),v(_={dialog:(0,d.inject)(),selectedTab:"general",saving:!1,deleting:!1,panels:null,showTooltip:!1,createdCategory:!1,expandedMenu:!1,mobileView:(0,t.readOnly)("site.mobileView"),parentParams:null,showDeleteReason:(0,t.and)("showTooltip","model.cannot_delete_reason"),_initPanels(){this.setProperties({panels:[],validators:[]})},disabled:(e,t,i,n)=>!(!e&&!n)||(!t||!i),deleteDisabled:(e,t)=>t||e||!1,categoryName:e=>(e=e||"").trim().length>0?e:s.default.t("preview"),saveLabel:(e,t)=>e?"saving":t?"category.save":"category.create",title:(e,t)=>e?s.default.t("category.edit_dialog_title",{categoryName:t}):s.default.t("category.create"),selectedTabTitle:e=>s.default.t(`category.${(0,c.underscore)(e)}`),actions:{registerValidator(e){this.validators.push(e)},saveCategory(){if(this.validators.some((e=>e())))return
const e=this.model,t=this.site.categories.findBy("id",parseInt(e.parent_category_id,10))
this.set("saving",!0),e.set("parentCategory",t),e.save().then((t=>{this.set("saving",!1),e.id||(e.setProperties({slug:t.category.slug,id:t.category.id,can_edit:t.category.can_edit,permission:a.default.FULL,notification_level:l.NotificationLevels.REGULAR}),this.site.updateCategory(e),this.transitionToRoute("editCategory",n.default.slugFor(e)))})).catch((e=>{(0,u.popupAjaxError)(e),this.set("saving",!1)}))},deleteCategory(){this.set("deleting",!0),this.dialog.yesNoConfirm({message:s.default.t("category.delete_confirm"),didConfirm:()=>{this.model.destroy().then((()=>{this.transitionToRoute("discovery.categories")})).catch((()=>{this.displayErrors([s.default.t("category.delete_error")])})).finally((()=>{this.set("deleting",!1)}))},didCancel:()=>this.set("deleting",!1)})},toggleDeleteTooltip(){this.toggleProperty("showTooltip")},goBack(){o.default.routeTo(this.model.url)}}},"_initPanels",[p],Object.getOwnPropertyDescriptor(_,"_initPanels"),_),v(_,"disabled",[m],Object.getOwnPropertyDescriptor(_,"disabled"),_),v(_,"deleteDisabled",[h],Object.getOwnPropertyDescriptor(_,"deleteDisabled"),_),v(_,"categoryName",[f],Object.getOwnPropertyDescriptor(_,"categoryName"),_),v(_,"saveLabel",[g],Object.getOwnPropertyDescriptor(_,"saveLabel"),_),v(_,"title",[b],Object.getOwnPropertyDescriptor(_,"title"),_),v(_,"selectedTabTitle",[y],Object.getOwnPropertyDescriptor(_,"selectedTabTitle"),_),_))
e.default=w})),define("discourse/controllers/edit-slow-mode",["exports","discourse/helpers/slow-mode","@ember/controller","I18n","discourse/mixins/modal-functionality","discourse/models/topic","@ember/object","discourse-common/utils/decorators","@ember/object/computed","discourse/lib/ajax-error","discourse/lib/time-shortcut"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m,h
function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var g=i.default.extend(r.default,(d=(0,l.default)("saveDisabled","durationIsSet","model.slow_mode_enabled_until"),p=(0,l.default)("model.slow_mode_seconds"),m=(0,l.default)("slowModeEnabled"),h={selectedSlowMode:null,hours:null,minutes:null,seconds:null,saveDisabled:!1,showCustomSelect:(0,a.equal)("selectedSlowMode","custom"),durationIsSet:(0,a.or)("hours","minutes","seconds"),init(){this._super(...arguments),this.set("slowModes",[{id:"600",name:n.default.t("topic.slow_mode_update.durations.10_minutes")},{id:"900",name:n.default.t("topic.slow_mode_update.durations.15_minutes")},{id:"1800",name:n.default.t("topic.slow_mode_update.durations.30_minutes")},{id:"2700",name:n.default.t("topic.slow_mode_update.durations.45_minutes")},{id:"3600",name:n.default.t("topic.slow_mode_update.durations.1_hour")},{id:"7200",name:n.default.t("topic.slow_mode_update.durations.2_hours")},{id:"14400",name:n.default.t("topic.slow_mode_update.durations.4_hours")},{id:"28800",name:n.default.t("topic.slow_mode_update.durations.8_hours")},{id:"43200",name:n.default.t("topic.slow_mode_update.durations.12_hours")},{id:"86400",name:n.default.t("topic.slow_mode_update.durations.24_hours")},{id:"custom",name:n.default.t("topic.slow_mode_update.durations.custom")}])},onShow(){const e=parseInt(this.model.slow_mode_seconds,10)
if(e){this.slowModes.find((t=>t.id===e.toString()))?this.set("selectedSlowMode",e.toString()):this.set("selectedSlowMode","custom"),this._setFromSeconds(e)}},submitDisabled:(e,t,i)=>e||!t||!i,slowModeEnabled:e=>e&&0!==e,saveButtonLabel:e=>e?"topic.slow_mode_update.update":"topic.slow_mode_update.enable",timeShortcuts(){const e=this.currentUser.user_option.timezone,t=(0,c.timeShortcuts)(e),i=t.monday()
return i.label="time_shortcut.next_week",[t.laterToday(),t.tomorrow(),t.twoDays(),i,t.twoWeeks(),t.nextMonth(),t.twoMonths()]},_setFromSeconds(e){this.setProperties((0,t.fromSeconds)(e))},_parseValue:e=>parseInt(e,10)||0,setSlowModeDuration(e){if("custom"!==e){let t=parseInt(e,10)
this._setFromSeconds(t)}this.set("selectedSlowMode",e)},enableSlowMode(){this.set("saveDisabled",!0)
const e=(0,t.toSeconds)(this._parseValue(this.hours),this._parseValue(this.minutes),this._parseValue(this.seconds))
o.default.setSlowMode(this.model.id,e,this.model.slow_mode_enabled_until).catch(u.popupAjaxError).then((()=>{this.set("model.slow_mode_seconds",e),this.send("closeModal")})).finally((()=>this.set("saveDisabled",!1)))},disableSlowMode(){this.set("saveDisabled",!0),o.default.setSlowMode(this.model.id,0).catch(u.popupAjaxError).then((()=>{this.set("model.slow_mode_seconds",0),this.send("closeModal")})).finally((()=>this.set("saveDisabled",!1)))}},f(h,"submitDisabled",[d],Object.getOwnPropertyDescriptor(h,"submitDisabled"),h),f(h,"slowModeEnabled",[p],Object.getOwnPropertyDescriptor(h,"slowModeEnabled"),h),f(h,"saveButtonLabel",[m],Object.getOwnPropertyDescriptor(h,"saveButtonLabel"),h),f(h,"timeShortcuts",[l.default],Object.getOwnPropertyDescriptor(h,"timeShortcuts"),h),f(h,"setSlowModeDuration",[s.action],Object.getOwnPropertyDescriptor(h,"setSlowModeDuration"),h),f(h,"enableSlowMode",[s.action],Object.getOwnPropertyDescriptor(h,"enableSlowMode"),h),f(h,"disableSlowMode",[s.action],Object.getOwnPropertyDescriptor(h,"disableSlowMode"),h),h))
e.default=g})),define("discourse/controllers/edit-topic-timer",["exports","@ember/object","@ember/controller","select-kit/components/future-date-input-selector","I18n","discourse/mixins/modal-functionality","discourse/models/topic-timer","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/ajax-error"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p
function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PUBLISH_TO_CATEGORY_STATUS_TYPE=e.OPEN_STATUS_TYPE=e.DELETE_STATUS_TYPE=e.DELETE_REPLIES_TYPE=e.CLOSE_STATUS_TYPE=e.CLOSE_AFTER_LAST_POST_STATUS_TYPE=e.BUMP_TYPE=void 0
const h="close"
e.CLOSE_STATUS_TYPE=h
const f="close_after_last_post"
e.CLOSE_AFTER_LAST_POST_STATUS_TYPE=f
const g="open"
e.OPEN_STATUS_TYPE=g
const b="publish_to_category"
e.PUBLISH_TO_CATEGORY_STATUS_TYPE=b
const y="delete"
e.DELETE_STATUS_TYPE=y
const _="bump"
e.BUMP_TYPE=_
const v="delete_replies"
e.DELETE_REPLIES_TYPE=v
var w=i.default.extend(o.default,(c=(0,a.default)("model.closed","model.category","model.isPrivateMessage","model.invisible"),d=(0,a.default)("publicTimerTypes"),m(p={loading:!1,isPublic:"true",publicTimerTypes(e,t,i,n){let o=[]
return e||(o.push({id:h,name:r.default.t("topic.auto_close.title")}),o.push({id:f,name:r.default.t("topic.auto_close_after_last_post.title")})),e&&o.push({id:g,name:r.default.t("topic.auto_reopen.title")}),this.model.details.can_delete&&o.push({id:y,name:r.default.t("topic.auto_delete.title")}),o.push({id:_,name:r.default.t("topic.auto_bump.title")}),this.model.details.can_delete&&o.push({id:v,name:r.default.t("topic.auto_delete_replies.title")}),e&&o.push({id:h,name:r.default.t("topic.temp_open.title")}),e||o.push({id:g,name:r.default.t("topic.temp_close.title")}),(t&&t.read_restricted||i||n)&&o.push({id:b,name:r.default.t("topic.publish_to_category.title")}),o},topicTimer:(0,l.alias)("model.topic_timer"),_setTimer(e,i,n,r,o){this.set("loading",!0),s.default.update(this.get("model.id"),e,r,n,o,i).then((n=>{e||i?(this.send("closeModal"),(0,t.setProperties)(this.topicTimer,{execute_at:n.execute_at,duration_minutes:n.duration_minutes,category_id:n.category_id}),this.set("model.closed",n.closed)):(this.set("model.topic_timer",t.default.create({status_type:this.defaultStatusType})),this.send("onChangeInput",null,null))})).catch(u.popupAjaxError).finally((()=>this.set("loading",!1)))},onShow(){let e=null
const t=this.get("topicTimer.execute_at")
if(t){const i=moment(t)
i>moment()&&(e=i.format(n.FORMAT))}this.send("onChangeInput",null,e),this.get("topicTimer.status_type")||this.send("onChangeStatusType",this.defaultStatusType),this.get("topicTimer.status_type")===h&&this.get("topicTimer.based_on_last_post")&&this.send("onChangeStatusType",f)},defaultStatusType:e=>e[0].id,actions:{onChangeStatusType(e){this.setProperties({"topicTimer.based_on_last_post":f===e,"topicTimer.status_type":e})},onChangeInput(e,t){moment.isMoment(t)&&(t=t.format(n.FORMAT)),this.set("topicTimer.updateTime",t)},saveTimer(){if(!this.get("topicTimer.updateTime")&&!this.get("topicTimer.duration_minutes"))return void this.flash(r.default.t("topic.topic_status_update.time_frame_required"),"error")
if(this.get("topicTimer.duration_minutes")&&!this.get("topicTimer.updateTime")){if(this.get("topicTimer.duration_minutes")<=0)return void this.flash(r.default.t("topic.topic_status_update.min_duration"),"error")
if(this.get("topicTimer.duration_minutes")>10512e3)return void this.flash(r.default.t("topic.topic_status_update.max_duration"),"error")}let e=this.get("topicTimer.status_type")
e===f&&(e=h),this._setTimer(this.get("topicTimer.updateTime"),this.get("topicTimer.duration_minutes"),e,this.get("topicTimer.based_on_last_post"),this.get("topicTimer.category_id"))},removeTimer(){let e=this.get("topicTimer.status_type")
e===f&&(e=h),this._setTimer(null,null,e)}}},"publicTimerTypes",[c],Object.getOwnPropertyDescriptor(p,"publicTimerTypes"),p),m(p,"defaultStatusType",[d],Object.getOwnPropertyDescriptor(p,"defaultStatusType"),p),p))
e.default=w})),define("discourse/controllers/edit-user-directory-columns",["exports","@ember/controller","discourse/mixins/modal-functionality","discourse/lib/ajax","@ember/object","discourse/lib/ajax-error","discourse/helpers/page-reloader"],(function(e,t,i,n,r,o,s){var l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u="up",c="down"
var d=t.default.extend(i.default,(a(l={loading:!0,columns:null,labelKey:null,onShow(){(0,n.ajax)("edit-directory-columns.json").then((e=>{this.setProperties({loading:!1,columns:e.directory_columns.sort(((e,t)=>e.position>t.position?1:-1)).map((e=>r.default.create(e)))})})).catch(o.popupAjaxError)},save(){this.set("loading",!0)
const e={directory_columns:this.columns.map((e=>e.getProperties("id","enabled","position")))};(0,n.ajax)("edit-directory-columns.json",{type:"PUT",data:e}).then((()=>{(0,s.reload)()})).catch((e=>{this.set("loading",!1),this.flash((0,o.extractError)(e),"error")}))},resetToDefault(){let e=this.columns
e.sort(((e,t)=>{const i=e.automatic_position||(e.user_field?.position||0)+1e3,n=t.automatic_position||(t.user_field?.position||0)+1e3
return i===n?e.name.localeCompare(t.name):i>n?1:-1})).forEach(((e,t)=>{e.setProperties({position:e.automatic_position||t+1,enabled:"automatic"===e.type})})),this.set("columns",e),this.notifyPropertyChange("columns")},moveUp(e){this._moveColumn(u,e)},moveDown(e){this._moveColumn(c,e)},_moveColumn(e,t){if(e===u&&1===t.position||e===c&&t.position===this.columns.length)return
const i=t.position,n=e===u?i-1:i+1,r=this.columns.find((e=>e.position===n))
t.set("position",n),r.set("position",i),this.set("columns",this.columns.sort(((e,t)=>e.position>t.position?1:-1))),this.notifyPropertyChange("columns")}},"save",[r.action],Object.getOwnPropertyDescriptor(l,"save"),l),a(l,"resetToDefault",[r.action],Object.getOwnPropertyDescriptor(l,"resetToDefault"),l),a(l,"moveUp",[r.action],Object.getOwnPropertyDescriptor(l,"moveUp"),l),a(l,"moveDown",[r.action],Object.getOwnPropertyDescriptor(l,"moveDown"),l),l))
e.default=d})),define("discourse/controllers/email-login",["exports","@ember/controller","discourse/lib/url","discourse/models/user","discourse/lib/ajax","discourse-common/utils/decorators","discourse-common/lib/get-url","discourse/lib/webauthn","discourse/lib/ajax-error","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p
function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var h=t.default.extend((c=(0,o.default)("model"),d=(0,o.default)("model"),m(p={router:(0,u.inject)(),lockImageUrl:(0,s.default)("/images/lock.svg"),secondFactorRequired:e=>e.security_key_required||e.second_factor_required,secondFactorMethod:e=>e.security_key_required?n.SECOND_FACTOR_METHODS.SECURITY_KEY:n.SECOND_FACTOR_METHODS.TOTP,actions:{finishLogin(){let e={second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()}
this.securityKeyCredential?e.second_factor_token=this.securityKeyCredential:e.second_factor_token=this.secondFactorToken,(0,r.ajax)({url:`/session/email-login/${this.model.token}`,type:"POST",data:e}).then((e=>{if(e.success){let e="/"
const t=new URL(this.router.currentURL,window.location.origin).searchParams.get("safe_mode")
if(t){const i=new URLSearchParams
i.set("safe_mode",t),e+=`?${i.toString()}`}i.default.redirectTo(e)}else this.set("model.error",e.error)})).catch(a.popupAjaxError)},authenticateSecurityKey(){(0,l.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,(e=>{this.set("securityKeyCredential",e),this.send("finishLogin")}),(e=>{this.set("model.error",e)}))}}},"secondFactorRequired",[c],Object.getOwnPropertyDescriptor(p,"secondFactorRequired"),p),m(p,"secondFactorMethod",[d],Object.getOwnPropertyDescriptor(p,"secondFactorMethod"),p),p))
e.default=h})),define("discourse/controllers/exception",["exports","@embroider/macros/es-compat","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/url","@ember/controller","I18n","@ember/runloop","@ember/object","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f
function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let b=(0,t.default)(require("ember-cached-decorator-polyfill")).cached
var y=o.default.extend((c=(0,n.default)("thrown"),d=(0,n.on)("init"),p=(0,n.default)("isNetwork","thrown.status","thrown"),m=(0,n.default)("networkFixed","isNetwork","thrown.status","thrown.statusText","thrown"),h=(0,n.default)("networkFixed","isNetwork","lastTransition"),g(f={thrown:null,lastTransition:null,isNetwork:e=>!(!e||0!==e.readyState)||!(!e||"timeout"!==e.jqTextStatus),isNotFound:(0,i.equal)("thrown.status",404),isForbidden:(0,i.equal)("thrown.status",403),isServer:(0,i.gte)("thrown.status",500),isUnknown:(0,i.none)("isNetwork","isServer"),errorHtml:(0,i.alias)("thrown.responseJSON.extras.html"),networkFixed:!1,loading:!1,_init(){this.set("loading",!1)},reason:(e,t,i)=>e?s.default.t("errors.reasons.network"):t>=500?s.default.t("errors.reasons.server"):404===t?s.default.t("errors.reasons.not_found"):403===t?s.default.t("errors.reasons.forbidden"):s.default.t("errors.reasons.unknown"),requestUrl:(0,i.alias)("thrown.requestedUrl"),desc:(e,t,i,n,r)=>e?s.default.t("errors.desc.network_fixed"):t?s.default.t("errors.desc.network"):404===i?s.default.t("errors.desc.not_found"):403===i?s.default.t("errors.desc.forbidden"):i>=500?s.default.t("errors.desc.server",{status:i+" "+n}):s.default.t("errors.desc.unknown"),get buttons(){return{ButtonBackBright:{classes:"btn-primary",action:this.back,key:"errors.buttons.back"},ButtonBackDim:{classes:"",action:this.back,key:"errors.buttons.back"},ButtonTryAgain:{classes:"btn-primary",action:this.tryLoading,key:"errors.buttons.again",icon:"sync"},ButtonLoadPage:{classes:"btn-primary",action:this.tryLoading,key:"errors.buttons.fixed"}}},enabledButtons(e,t,i){return e?[this.buttons.ButtonLoadPage]:t?[this.buttons.ButtonBackDim,this.buttons.ButtonTryAgain]:i?[this.buttons.ButtonBackBright,this.buttons.ButtonTryAgain]:[this.buttons.ButtonBackBright]},back(){const e=r.default.router.location.getURL()
this.lastTransition&&"/exception"!==e?(this.lastTransition.abort(),this.setProperties({lastTransition:null,thrown:null}),r.default.handleURL(e)):window.history.back()},tryLoading(){this.set("loading",!0),(0,l.schedule)("afterRender",(()=>{const e=this.lastTransition
this.setProperties({lastTransition:null,thrown:null}),e.retry(),this.set("loading",!1)}))}},"isNetwork",[c],Object.getOwnPropertyDescriptor(f,"isNetwork"),f),g(f,"_init",[d],Object.getOwnPropertyDescriptor(f,"_init"),f),g(f,"reason",[p],Object.getOwnPropertyDescriptor(f,"reason"),f),g(f,"desc",[m],Object.getOwnPropertyDescriptor(f,"desc"),f),g(f,"buttons",[b],Object.getOwnPropertyDescriptor(f,"buttons"),f),g(f,"enabledButtons",[h],Object.getOwnPropertyDescriptor(f,"enabledButtons"),f),g(f,"back",[a.action],Object.getOwnPropertyDescriptor(f,"back"),f),g(f,"tryLoading",[a.action],Object.getOwnPropertyDescriptor(f,"tryLoading"),f),f))
e.default=y}))
define("discourse/controllers/explain-reviewable",["exports","@ember/controller","discourse/mixins/modal-functionality"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend(i.default,{loading:null,reviewableExplanation:null,onShow(){this.setProperties({loading:!0,reviewableExplanation:null}),this.store.find("reviewable-explanation",this.model.id).then((e=>this.set("reviewableExplanation",e))).finally((()=>this.set("loading",!1)))}})
e.default=n})),define("discourse/controllers/feature-topic-on-profile",["exports","@ember/controller","discourse/mixins/modal-functionality","discourse/lib/ajax","@ember/object/computed","discourse/lib/ajax-error"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=t.default.extend(i.default,{newFeaturedTopic:null,saving:!1,noTopicSelected:(0,r.none)("newFeaturedTopic"),onClose(){this.set("newFeaturedTopic",null)},onShow(){this.set("modal.modalClass","choose-topic-modal")},actions:{save(){return(0,n.ajax)(`/u/${this.model.username}/feature-topic`,{type:"PUT",data:{topic_id:this.newFeaturedTopic.id}}).then((()=>{this.model.set("featured_topic",this.newFeaturedTopic),this.send("closeModal")})).catch(o.popupAjaxError)},newTopicSelected(e){this.set("newFeaturedTopic",e)}}})
e.default=s})),define("discourse/controllers/feature-topic",["exports","@ember/controller","@ember/object","I18n","discourse/mixins/modal-functionality","discourse/lib/ajax","discourse/helpers/category-link","discourse-common/utils/decorators","@ember/service"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m,h,f,g,b,y,_,v
function w(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var k=t.default.extend(r.default,(u=(0,l.default)("model.category"),c=(0,l.default)("categoryLink","model.pinned_globally","model.pinned_until"),d=(0,l.default)("model.details.can_pin_unpin_topic"),p=(0,l.default)("categoryLink"),m=(0,l.default)("categoryLink","pinnedInCategoryCount"),h=(0,l.default)("parsedPinnedInCategoryUntil"),f=(0,l.default)("parsedPinnedGloballyUntil"),g=(0,l.default)("model.pinnedInCategoryUntil"),b=(0,l.default)("model.pinnedGloballyUntil"),y=(0,l.default)("pinDisabled"),_=(0,l.default)("pinGloballyDisabled"),w(v={topicController:(0,t.inject)("topic"),dialog:(0,a.inject)(),loading:!0,pinnedInCategoryCount:0,pinnedGloballyCount:0,bannerCount:0,reset(){this.setProperties({"model.pinnedInCategoryUntil":null,"model.pinnedGloballyUntil":null,pinInCategoryTipShownAt:!1,pinGloballyTipShownAt:!1})},categoryLink:e=>(0,s.categoryLinkHTML)(e,{allowUncategorized:!0}),unPinMessage(e,t,i){let r="topic.feature_topic.unpin"
t&&(r+="_globally"),moment(i)>moment()&&(r+="_until")
const o=moment(i).format("LL")
return n.default.t(r,{categoryLink:e,until:o})},canPinGlobally(e){return this.currentUser.canManageTopic&&e},pinMessage:e=>n.default.t("topic.feature_topic.pin",{categoryLink:e}),alreadyPinnedMessage(e,t){const i=0===t?"topic.feature_topic.not_pinned":"topic.feature_topic.already_pinned"
return n.default.t(i,{categoryLink:e,count:t})},pinDisabled(e){return!this._isDateValid(e)},pinGloballyDisabled(e){return!this._isDateValid(e)},parsedPinnedInCategoryUntil(e){return this._parseDate(e)},parsedPinnedGloballyUntil(e){return this._parseDate(e)},pinInCategoryValidation(e){if(e)return i.default.create({failed:!0,reason:n.default.t("topic.feature_topic.pin_validation")})},pinGloballyValidation(e){if(e)return i.default.create({failed:!0,reason:n.default.t("topic.feature_topic.pin_validation")})},_parseDate:e=>moment(e,["YYYY-MM-DD","YYYY-MM-DD HH:mm"]),_isDateValid:e=>e.isValid()&&e>moment(),onShow(){return this.set("loading",!0),(0,o.ajax)("/topics/feature_stats.json",{data:{category_id:this.get("model.category.id")}}).then((e=>{e&&this.setProperties({pinnedInCategoryCount:e.pinned_in_category_count,pinnedGloballyCount:e.pinned_globally_count,bannerCount:e.banner_count})})).finally((()=>this.set("loading",!1)))},_forwardAction(e){this.topicController.send(e),this.send("closeModal")},_confirmBeforePinningGlobally(){const e=this.pinnedGloballyCount
e<4?this._forwardAction("pinGlobally"):(this.send("hideModal"),this.dialog.yesNoConfirm({message:n.default.t("topic.feature_topic.confirm_pin_globally",{count:e}),didConfirm:()=>this._forwardAction("pinGlobally"),didCancel:()=>this.send("reopenModal")}))},actions:{pin(){this.pinDisabled?this.set("pinInCategoryTipShownAt",Date.now()):this._forwardAction("togglePinned")},pinGlobally(){this.pinGloballyDisabled?this.set("pinGloballyTipShownAt",Date.now()):this._confirmBeforePinningGlobally()},unpin(){this._forwardAction("togglePinned")},makeBanner(){this._forwardAction("makeBanner")},removeBanner(){this._forwardAction("removeBanner")}}},"categoryLink",[u],Object.getOwnPropertyDescriptor(v,"categoryLink"),v),w(v,"unPinMessage",[c],Object.getOwnPropertyDescriptor(v,"unPinMessage"),v),w(v,"canPinGlobally",[d],Object.getOwnPropertyDescriptor(v,"canPinGlobally"),v),w(v,"pinMessage",[p],Object.getOwnPropertyDescriptor(v,"pinMessage"),v),w(v,"alreadyPinnedMessage",[m],Object.getOwnPropertyDescriptor(v,"alreadyPinnedMessage"),v),w(v,"pinDisabled",[h],Object.getOwnPropertyDescriptor(v,"pinDisabled"),v),w(v,"pinGloballyDisabled",[f],Object.getOwnPropertyDescriptor(v,"pinGloballyDisabled"),v),w(v,"parsedPinnedInCategoryUntil",[g],Object.getOwnPropertyDescriptor(v,"parsedPinnedInCategoryUntil"),v),w(v,"parsedPinnedGloballyUntil",[b],Object.getOwnPropertyDescriptor(v,"parsedPinnedGloballyUntil"),v),w(v,"pinInCategoryValidation",[y],Object.getOwnPropertyDescriptor(v,"pinInCategoryValidation"),v),w(v,"pinGloballyValidation",[_],Object.getOwnPropertyDescriptor(v,"pinGloballyValidation"),v),v))
e.default=k})),define("discourse/controllers/flag",["exports","@ember/runloop","@ember/controller","I18n","discourse/models/post-action-type","discourse/mixins/modal-functionality","rsvp","discourse/models/user","discourse-common/utils/decorators","@ember/object/computed","discourse/lib/optional-service","@ember/string"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f,g,b,y,_,v,w,k
function x(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var P=i.default.extend(o.default,(p=(0,a.default)("spammerDetails.canDelete","selected.name_key"),m=(0,a.default)("flagTarget"),h=(0,a.default)("post","flagTarget","model.actions_summary.@each.can_act"),f=(0,a.default)("post","flagTarget","model.actions_summary.@each.can_act"),g=(0,a.default)("selected.is_custom_flag","message.length"),b=(0,a.default)("flagsAvailable"),y=(0,a.default)("flagTarget","selected.is_custom_flag"),_=(0,a.default)("selected.is_custom_flag"),v=(0,a.default)("selected.is_custom_flag","flagTarget"),w=(0,a.default)("flagTarget","selected.name_key"),k={adminTools:(0,c.default)(),userDetails:null,selected:null,message:null,isWarning:!1,topicActionByName:null,spammerDetails:null,flagActions:null,flagTarget:null,init(){this._super(...arguments),this.flagActions={icon:"gavel",label:n.default.t("flagging.take_action"),actions:[{id:"agree_and_keep",icon:"thumbs-up",label:n.default.t("flagging.take_action_options.default.title"),description:n.default.t("flagging.take_action_options.default.details")},{id:"agree_and_suspend",icon:"ban",label:n.default.t("flagging.take_action_options.suspend.title"),description:n.default.t("flagging.take_action_options.suspend.details"),client_action:"suspend"},{id:"agree_and_silence",icon:"microphone-slash",label:n.default.t("flagging.take_action_options.silence.title"),description:n.default.t("flagging.take_action_options.silence.details"),client_action:"silence"}]}},keyDown(e){if("Enter"===e.key&&(e.ctrlKey||e.metaKey)&&this.submitEnabled)return this.send("createFlag"),!1},clientSuspend(e){this._penalize("showSuspendModal",e)},clientSilence(e){this._penalize("showSilenceModal",e)},_penalize(e,t){if(this.adminTools)return l.default.findByUsername(this.model.username).then((i=>{const n={before:t}
return this.flagTarget.editable()&&(n.postId=this.model.id,n.postEdit=this.model.cooked),this.adminTools[e](i,n)}))},onShow(){this.setProperties({selected:null,spammerDetails:null}),this.adminTools&&this.adminTools.checkSpammer(this.get("model.user_id")).then((e=>{this.set("spammerDetails",e)})),(0,t.schedule)("afterRender",(()=>{document.querySelector(".flag-modal").addEventListener("keydown",this.keyDown)}))},onClose(){document.querySelector(".flag-modal").removeEventListener("keydown",this.keyDown)},showDeleteSpammer:(e,t)=>e&&"spam"===t,title:e=>e.title(),flagsAvailable(){return this.flagTarget.flagsAvailable(this,this.site,this.model)},staffFlagsAvailable(){return this.get("model.flagsAvailable")&&this.get("model.flagsAvailable").length>1},submitEnabled(){const e=this.selected
if(!e)return!1
if(e.get("is_custom_flag")){const e=this.get("message.length")||0
return e>=this.siteSettings.min_personal_message_post_length&&e<=r.MAX_MESSAGE_LENGTH}return!0},submitDisabled:(0,u.not)("submitEnabled"),cantFlagForReview:(0,u.not)("notifyModeratorsFlag"),notifyModeratorsFlag:e=>e.find((e=>7===e.id)),canTakeAction(e,t){return!e.targetsTopic()&&!t&&this.currentUser.get("staff")},submitIcon:e=>e?"envelope":"flag",submitLabel:(e,t)=>e?t.customSubmitLabel():t.submitLabel(),actions:{deleteSpammer(){let e=this.spammerDetails
e&&e.deleteUser().then((()=>window.location.reload()))},takeAction(e){var t=this
let i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return e.takeAction=!0,t.send("createFlag",e),s.Promise.resolve()}
if(e.client_action){let t=this[`client${(0,d.classify)(e.client_action)}`]
return t?t.call(this,(()=>i({skipClose:!0}))):void console.error(`No handler for ${e.client_action} found`)}return this.set("model.hidden",!0),i()},createFlag(e){const t=e||{}
this.get("selected.is_custom_flag")&&(t.message=this.message),this.flagTarget.create(this,t)},createFlagAsWarning(){this.send("createFlag",{isWarning:!0}),this.set("model.hidden",!0)},flagForReview(){this.selected||this.set("selected",this.get("notifyModeratorsFlag")),this.send("createFlag",{queue_for_review:!0}),this.set("model.hidden",!0)},changePostActionType(e){this.set("selected",e)}},canSendWarning(e,t){return!e.targetsTopic()&&this.currentUser.get("staff")&&"notify_user"===t}},x(k,"keyDown",[a.bind],Object.getOwnPropertyDescriptor(k,"keyDown"),k),x(k,"showDeleteSpammer",[p],Object.getOwnPropertyDescriptor(k,"showDeleteSpammer"),k),x(k,"title",[m],Object.getOwnPropertyDescriptor(k,"title"),k),x(k,"flagsAvailable",[h],Object.getOwnPropertyDescriptor(k,"flagsAvailable"),k),x(k,"staffFlagsAvailable",[f],Object.getOwnPropertyDescriptor(k,"staffFlagsAvailable"),k),x(k,"submitEnabled",[g],Object.getOwnPropertyDescriptor(k,"submitEnabled"),k),x(k,"notifyModeratorsFlag",[b],Object.getOwnPropertyDescriptor(k,"notifyModeratorsFlag"),k),x(k,"canTakeAction",[y],Object.getOwnPropertyDescriptor(k,"canTakeAction"),k),x(k,"submitIcon",[_],Object.getOwnPropertyDescriptor(k,"submitIcon"),k),x(k,"submitLabel",[v],Object.getOwnPropertyDescriptor(k,"submitLabel"),k),x(k,"canSendWarning",[w],Object.getOwnPropertyDescriptor(k,"canSendWarning"),k),k))
e.default=P})),define("discourse/controllers/forgot-password",["exports","@ember/controller","I18n","discourse/mixins/modal-functionality","discourse/lib/ajax","discourse/lib/cookie","discourse-common/utils/decorators","discourse/lib/utilities","discourse/lib/ajax-error","discourse-common/lib/get-url","@ember/utils","@ember/template"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var h,f,g,b,y,_,v=t.default.extend(n.default,(p=(0,s.default)("accountEmailOrUsername","disabled"),h=m={offerHelp:null,helpSeen:!1,submitDisabled(e,t){return!!t||(this.siteSettings.hide_email_address_taken?!(e||"").includes("@"):(0,c.isEmpty)((e||"").trim()))},onShow(){(0,o.default)("email")&&this.set("accountEmailOrUsername",(0,o.default)("email"))},actions:{ok(){this.send("closeModal")},help(){this.setProperties({offerHelp:i.default.t("forgot_password.help",{basePath:(0,u.default)("")}),helpSeen:!0})},resetPassword(){return this.submitDisabled||(this.set("disabled",!0),this.clearFlash(),(0,r.ajax)("/session/forgot_password",{data:{login:this.accountEmailOrUsername.trim()},type:"POST"}).then((e=>{const t=(0,l.escapeExpression)(this.accountEmailOrUsername)
let n="forgot_password.complete"
n+=t.match(/@/)?"_email":"_username",!1===e.user_found?(n+="_not_found",this.flash((0,d.htmlSafe)(i.default.t(n,{email:t,username:t})),"error")):(n+=e.user_found?"_found":"",this.set("accountEmailOrUsername",""),this.set("offerHelp",i.default.t(n,{email:t,username:t})),this.set("helpSeen",!e.user_found))})).catch((0,a.flashAjaxError)(this)).finally((()=>{this.set("disabled",!1)}))),!1}}},f="submitDisabled",g=[p],b=Object.getOwnPropertyDescriptor(m,"submitDisabled"),y=m,_={},Object.keys(b).forEach((function(e){_[e]=b[e]})),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=g.slice().reverse().reduce((function(e,t){return t(h,f,e)||e}),_),y&&void 0!==_.initializer&&(_.value=_.initializer?_.initializer.call(y):void 0,_.initializer=void 0),void 0===_.initializer&&(Object.defineProperty(h,f,_),_=null),m))
e.default=v})),define("discourse/controllers/full-page-search",["exports","@ember/controller","discourse-common/utils/decorators","discourse/lib/search","discourse/models/category","discourse/models/composer","I18n","discourse/lib/ajax","discourse/lib/utilities","@ember/utils","@ember/object","@ember/object/computed","discourse/mixins/scroll-top","discourse/lib/page-tracker","rsvp","discourse/lib/category-tag-search","discourse/lib/show-modal","discourse/lib/user-search","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y){var _,v,w,k,x,P,O,T,S,j,C,z,I,E,M,D,N,L,A,U,F,R,B,$,q,H,W
function V(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SEARCH_TYPE_USERS=e.SEARCH_TYPE_DEFAULT=e.SEARCH_TYPE_CATS_TAGS=void 0,e.registerFullPageSearchType=function(e,t,i){Q.push({translationKey:e,searchTypeId:t,searchFunc:i})}
const G=[{name:s.default.t("search.relevance"),id:0},{name:s.default.t("search.latest_post"),id:1,term:"order:latest"},{name:s.default.t("search.most_liked"),id:2,term:"order:likes"},{name:s.default.t("search.most_viewed"),id:3,term:"order:views"},{name:s.default.t("search.latest_topic"),id:4,term:"order:latest_topic"}],K="topics_posts"
e.SEARCH_TYPE_DEFAULT=K
const Y="categories_tags"
e.SEARCH_TYPE_CATS_TAGS=Y
const J="users"
e.SEARCH_TYPE_USERS=J
const Q=[]
var X=t.default.extend((_=(0,i.default)("resultCount"),v=(0,i.default)("expanded"),w=(0,i.default)("q"),k=(0,i.default)("q"),x=(0,i.default)("skip_context","context"),P=(0,i.default)("context","context_id"),O=(0,i.default)("q"),T=(0,i.default)("q"),S=(0,i.default)("canCreateTopic","siteSettings.login_required"),j=(0,i.observes)("sortOrder"),C=(0,i.observes)("search_type"),z=(0,i.observes)("model"),I=(0,i.default)("q"),E=(0,i.observes)("q"),M=(0,i.default)("q"),D=(0,i.observes)("loading"),N=(0,i.default)("resultCount","noSortQ"),L=(0,i.observes)("model.[posts,categories,tags,users].length"),A=(0,i.default)("hasResults"),U=(0,i.default)("selected.length","model.posts.length"),F=(0,i.default)("model.grouped_search_result.can_create_topic"),R=(0,i.default)("page"),B=(0,i.default)("search_type"),$=(0,i.default)("search_type"),q=(0,i.default)("bulkSelectEnabled"),H={application:(0,t.inject)(),composer:(0,y.inject)(),bulkSelectEnabled:null,loading:!1,queryParams:["q","expanded","context_id","context","skip_context","search_type"],q:void 0,context_id:null,search_type:K,context:null,searching:!1,sortOrder:0,sortOrders:G,invalidSearch:!1,page:1,resultCount:null,searchTypes:null,selected:[],error:null,init(){this._super(...arguments)
const e=[{name:s.default.t("search.type.default"),id:K},{name:this.siteSettings.tagging_enabled?s.default.t("search.type.categories_and_tags"):s.default.t("search.type.categories"),id:Y},{name:s.default.t("search.type.users"),id:J}]
Q.forEach((t=>{e.push({name:s.default.t(t.translationKey),id:t.searchTypeId})})),this.set("searchTypes",e)},hasResults:e=>(e||0)>0,expandFilters:e=>"true"===e,hasAutofocus:e=>(0,u.isEmpty)(e),highlightQuery(e){if(e)return e.split(/\s+/).filter((e=>"l"!==e)).join(" ")},searchContextEnabled:{get:(e,t)=>!e&&t||"false"===e,set(e){this.set("skip_context",e?"false":"true")}},searchContextDescription(e,t){let i=t
if("category"===e){let e=r.default.findById(t)
if(!e)return
i=e.get("name")}return(0,n.searchContextDescription)(e,i)},searchActive(e){return(0,n.isValidSearchTerm)(e,this.siteSettings)},noSortQ(e){return e=this.cleanTerm(e),(0,a.escapeExpression)(e)},showSuggestion:(e,t)=>e||!t,_searchOnSortChange:!0,setSearchTerm(e){this._searchOnSortChange=!1,e=this.cleanTerm(e),this._searchOnSortChange=!0,this.set("searchTerm",e)},cleanTerm(e){return e&&G.forEach((t=>{if(t.term){e.match(new RegExp(`${t.term}\\b`))&&(this.set("sortOrder",t.id),e=(e=e.replace(new RegExp(`${t.term}\\b`,"g"),"")).trim())}})),e},triggerSearch(){this._searchOnSortChange&&(this.set("page",1),this._search())},triggerSearchOnTypeChange(){this.searchActive&&(this.set("page",1),this._search())},modelChanged(){this.searchTerm!==this.q&&this.setSearchTerm(this.q)},showLikeCount:e=>e?.includes("order:likes"),qChanged(){this.model&&this.get("model.q")!==this.q&&(this.setSearchTerm(this.q),this.send("search"))},isPrivateMessage(e){return e&&this.currentUser&&(e.includes("in:messages")||e.includes("in:personal")||e.includes(`personal_messages:${this.currentUser.get("username_lower")}`))},_showFooter(){this.set("application.showFooter",!this.loading)},resultCountLabel(e,t){const i=e%50==0?"+":""
return s.default.t("search.result_count",{count:e,plus:i,term:t})},resultCountChanged(){if(!this.model.posts)return 0
this.set("resultCount",this.model.posts.length+this.model.categories.length+this.model.tags.length+this.model.users.length)},canBulkSelect(e){return this.currentUser&&this.currentUser.staff&&e},hasSelection:(0,d.gt)("selected.length",0),hasUnselectedResults:(e,t)=>e<t,canCreateTopic(e){return this.currentUser&&e},isLastPage:e=>10===e,usingDefaultSearchType:e=>e===K,customSearchType:e=>Q.find((t=>e===t.searchTypeId)),searchInfoClassNames:e=>e?"search-info bulk-select-visible":"search-info",searchButtonDisabled:(0,d.or)("searching","loading"),_search(){if(this.searching)return
this.set("invalidSearch",!1)
const e=this.searchTerm
if(!(0,n.isValidSearchTerm)(e,this.siteSettings))return void this.set("invalidSearch",!0)
let t={q:e,page:this.page}
1===t.page?(this.set("bulkSelectEnabled",!1),this.selected.clear(),this.set("searching",!0),(0,p.scrollTop)()):this.set("loading",!0)
const i=this.sortOrder
i&&G[i].term&&(t.q+=" "+G[i].term),this.set("q",t.q)
const r=this.skip_context;(!r&&this.context||"false"===r)&&(t.search_context={type:this.context,id:this.context_id})
const o=(0,n.getSearchKey)(t)
if(this.customSearchType){(0,this.customSearchType.searchFunc)(this,t,o)}else switch(this.search_type){case Y:const i=(0,f.search)(e,this.siteSettings)
h.Promise.resolve(i).then((async e=>{const t=e.filter((e=>Boolean(e.model))),i=e.filter((e=>!Boolean(e.model))),r=await(0,n.translateResults)({categories:t,tags:i})||{}
this.set("model",r)})).finally((()=>{this.setProperties({searching:!1,loading:!1})}))
break
case J:(0,b.default)({term:e,limit:20}).then((async e=>{const t=await(0,n.translateResults)({users:e})||{}
this.set("model",t)})).finally((()=>{this.setProperties({searching:!1,loading:!1})}))
break
default:this.currentUser&&(0,n.updateRecentSearches)(this.currentUser,e),(0,l.ajax)("/search",{data:t}).then((async e=>{const i=await(0,n.translateResults)(e)||{}
e.grouped_search_result&&this.set("q",e.grouped_search_result.term),t.page>1?i&&(this.model.posts.pushObjects(i.posts),this.model.topics.pushObjects(i.topics),this.model.set("grouped_search_result",e.grouped_search_result)):((0,m.setTransient)("lastSearch",{searchKey:o,model:i},5),i.grouped_search_result=e.grouped_search_result,this.set("model",i)),this.set("error",null)})).catch((e=>{this.set("error",e.jqXHR.responseJSON?.message)})).finally((()=>{this.setProperties({searching:!1,loading:!1})}))}},_afterTransition(){this._showFooter(),0===Object.keys(this.model).length&&this.reset()},reset(){this.setProperties({searching:!1,page:1,resultCount:null,selected:[]})},createTopic(e,t){let i
if(t?.preventDefault(),e.includes("category:")){const t=e.match(/category:(\S*)/)
t&&t[1]&&(i=t[1])}this.composer.open({action:o.default.CREATE_TOPIC,draftKey:o.default.NEW_TOPIC_KEY,topicCategory:i})},actions:{selectAll(){this.selected.addObjects(this.get("model.posts").mapBy("topic")),document.querySelectorAll(".fps-result input[type=checkbox]").forEach((e=>{e.checked=!0}))},clearAll(){this.selected.clear(),document.querySelectorAll(".fps-result input[type=checkbox]").forEach((e=>{e.checked=!1}))},toggleBulkSelect(){this.toggleProperty("bulkSelectEnabled"),this.selected.clear()},showBulkActions(){(0,g.default)("topic-bulk-actions",{model:{topics:this.selected},title:"topics.bulk.actions"}).set("refreshClosure",(()=>this._search()))},search(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).collapseFilters&&document.querySelector("details.advanced-filters")?.removeAttribute("open"),this.set("page",1),this._search()},loadMore(){let e=this.page
this.get("model.grouped_search_result.more_full_page_results")&&!this.loading&&e<10&&(this.incrementProperty("page"),this._search())},logClick(e){this.get("model.grouped_search_result.search_log_id")&&e&&(0,n.logSearchLinkClick)({searchLogId:this.get("model.grouped_search_result.search_log_id"),searchResultId:e,searchResultType:"topic"})}}},V(H,"hasResults",[_],Object.getOwnPropertyDescriptor(H,"hasResults"),H),V(H,"expandFilters",[v],Object.getOwnPropertyDescriptor(H,"expandFilters"),H),V(H,"hasAutofocus",[w],Object.getOwnPropertyDescriptor(H,"hasAutofocus"),H),V(H,"highlightQuery",[k],Object.getOwnPropertyDescriptor(H,"highlightQuery"),H),V(H,"searchContextEnabled",[x],(W=(W=Object.getOwnPropertyDescriptor(H,"searchContextEnabled"))?W.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return W}}),H),V(H,"searchContextDescription",[P],Object.getOwnPropertyDescriptor(H,"searchContextDescription"),H),V(H,"searchActive",[O],Object.getOwnPropertyDescriptor(H,"searchActive"),H),V(H,"noSortQ",[T],Object.getOwnPropertyDescriptor(H,"noSortQ"),H),V(H,"showSuggestion",[S],Object.getOwnPropertyDescriptor(H,"showSuggestion"),H),V(H,"triggerSearch",[j],Object.getOwnPropertyDescriptor(H,"triggerSearch"),H),V(H,"triggerSearchOnTypeChange",[C],Object.getOwnPropertyDescriptor(H,"triggerSearchOnTypeChange"),H),V(H,"modelChanged",[z],Object.getOwnPropertyDescriptor(H,"modelChanged"),H),V(H,"showLikeCount",[I],Object.getOwnPropertyDescriptor(H,"showLikeCount"),H),V(H,"qChanged",[E],Object.getOwnPropertyDescriptor(H,"qChanged"),H),V(H,"isPrivateMessage",[M],Object.getOwnPropertyDescriptor(H,"isPrivateMessage"),H),V(H,"_showFooter",[D],Object.getOwnPropertyDescriptor(H,"_showFooter"),H),V(H,"resultCountLabel",[N],Object.getOwnPropertyDescriptor(H,"resultCountLabel"),H),V(H,"resultCountChanged",[L],Object.getOwnPropertyDescriptor(H,"resultCountChanged"),H),V(H,"canBulkSelect",[A],Object.getOwnPropertyDescriptor(H,"canBulkSelect"),H),V(H,"hasUnselectedResults",[U],Object.getOwnPropertyDescriptor(H,"hasUnselectedResults"),H),V(H,"canCreateTopic",[F],Object.getOwnPropertyDescriptor(H,"canCreateTopic"),H),V(H,"isLastPage",[R],Object.getOwnPropertyDescriptor(H,"isLastPage"),H),V(H,"usingDefaultSearchType",[B],Object.getOwnPropertyDescriptor(H,"usingDefaultSearchType"),H),V(H,"customSearchType",[$],Object.getOwnPropertyDescriptor(H,"customSearchType"),H),V(H,"searchInfoClassNames",[q],Object.getOwnPropertyDescriptor(H,"searchInfoClassNames"),H),V(H,"createTopic",[c.action],Object.getOwnPropertyDescriptor(H,"createTopic"),H),H))
e.default=X})),define("discourse/controllers/grant-badge",["exports","@ember/controller","discourse/models/badge","discourse/mixins/grant-badge-controller","I18n","discourse/mixins/modal-functionality","discourse/models/user-badge","rsvp","discourse-common/utils/decorators","discourse/lib/ajax-error"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var f=t.default.extend(o.default,n.default,(c=(0,a.default)("topicController.selectedPosts"),d=(0,a.default)("post"),p=(0,a.default)("saving","selectedBadgeGrantable"),m={topicController:(0,t.inject)("topic"),loading:!0,saving:!1,selectedBadgeId:null,init(){this._super(...arguments),this.allBadges=[],this.userBadges=[]},post(){return this.get("topicController.selectedPosts")[0]},badgeReason(e){const t=e.get("url"),i=window.location.protocol+"//"+window.location.host
return t.startsWith("/")?i+t:t},buttonDisabled:(e,t)=>e||!t,onShow(){this.set("loading",!0),(0,l.all)([i.default.findAll(),s.default.findByUsername(this.get("post.username"))]).then((e=>{let[t,i]=e
this.setProperties({allBadges:t,userBadges:i,loading:!1})}))},actions:{grantBadge(){this.set("saving",!0),this.grantBadge(this.selectedBadgeId,this.get("post.username"),this.badgeReason).then((e=>{this.set("selectedBadgeId",null),this.flash(r.default.t("badges.successfully_granted",{username:this.get("post.username"),badge:e.get("badge.name")}),"success")}),(0,u.flashAjaxError)(this)).finally((()=>this.set("saving",!1)))}}},h(m,"post",[c],Object.getOwnPropertyDescriptor(m,"post"),m),h(m,"badgeReason",[d],Object.getOwnPropertyDescriptor(m,"badgeReason"),m),h(m,"buttonDisabled",[p],Object.getOwnPropertyDescriptor(m,"buttonDisabled"),m),m))
e.default=f})),define("discourse/controllers/group-activity-posts",["exports","@ember/controller","discourse/lib/computed","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=t.default.extend((r=(0,n.observes)("canLoadMore"),o={group:(0,t.inject)(),groupActivity:(0,t.inject)(),application:(0,t.inject)(),canLoadMore:!0,loading:!1,emptyText:(0,i.fmt)("type","groups.empty.%@"),actions:{loadMore(){if(!this.canLoadMore)return
if(this.loading)return
this.set("loading",!0)
const e=this.model
if(e&&e.length){const t=e[e.length-1].get("id"),i=this.get("group.model")
let n=this.get("groupActivity.category_id")
const r={beforePostId:t,type:this.type,categoryId:n}
i.findPosts(r).then((t=>{e.addObjects(t),0===t.length&&this.set("canLoadMore",!1)})).finally((()=>{this.set("loading",!1)}))}}},_showFooter(){this.set("application.showFooter",!this.canLoadMore)}},s=o,l="_showFooter",a=[r],u=Object.getOwnPropertyDescriptor(o,"_showFooter"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/controllers/group-activity-topics",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({actions:{loadMore(){this.model.loadMore()}}})
e.default=i})),define("discourse/controllers/group-activity",["exports","@ember/controller","@ember/service"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({router:(0,i.inject)(),queryParams:["category_id"]})
e.default=n})),define("discourse/controllers/group-default-notifications",["exports","@ember/controller","discourse/mixins/modal-functionality","discourse/mixins/modal-update-existing-users"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend(i.default,n.default)
e.default=r})),define("discourse/controllers/group-index",["exports","@ember/controller","discourse-common/utils/decorators","@ember/object","discourse/lib/ajax","@ember/object/computed","discourse/lib/ajax-error"],(function(e,t,i,n,r,o,s){var l,a,u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var f=t.default.extend((l=(0,i.observes)("filterInput"),a=(0,i.debounce)(500),u=(0,i.observes)("order","asc","filter"),c=(0,i.default)("order","asc","filter"),d=(0,i.default)("model"),p=(0,i.default)("filter","members","model.can_see_members"),h(m={application:(0,t.inject)(),queryParams:["order","asc","filter"],order:"",asc:!0,filter:null,filterInput:null,loading:!1,isBulk:!1,showActions:!1,bulkSelection:null,filterInputChanged(){this._setFilter()},_setFilter(){this.set("filter",this.filterInput)},_filtersChanged(){this.reloadMembers(!0)},reloadMembers(e){!this.loading&&this.model&&(!e&&this.model.members.length>=this.model.user_count?this.set("application.showFooter",!0):(this.set("loading",!0),this.model.reloadMembers(this.memberParams,e).finally((()=>{this.setProperties({"application.showFooter":this.model.members.length>=this.model.user_count,loading:!1}),this.refresh&&this.set("bulkSelection",[])}))))},memberParams:(e,t,i)=>({order:e,asc:t,filter:i}),hasMembers:(0,o.gt)("model.members.length",0),canManageGroup(e){return this.currentUser&&this.currentUser.canManageGroup(e)},filterPlaceholder(){return this.currentUser&&this.currentUser.admin?"groups.members.filter_placeholder_admin":"groups.members.filter_placeholder"},emptyMessageKey:(e,t,i)=>i?e?"groups.members.no_filter_matches":"groups.empty.members":"groups.members.forbidden",loadMore(){this.reloadMembers()},toggleActions(){this.toggleProperty("showActions")},actOnGroup(e,t){switch(t){case"removeMember":this.removeMember(e)
break
case"makeOwner":this.makeOwner(e.username)
break
case"removeOwner":this.removeOwner(e)
break
case"makePrimary":e.setPrimaryGroup(this.model.id).then((()=>e.set("primary",!0)))
break
case"removePrimary":e.setPrimaryGroup(null).then((()=>e.set("primary",!1)))}},actOnSelection(e,t){if(e&&0!==e.length)switch(t){case"removeMembers":return(0,r.ajax)(`/groups/${this.model.id}/members.json`,{type:"DELETE",data:{user_ids:e.mapBy("id").join(",")}}).then((()=>{this.model.reloadMembers(this.memberParams,!0),this.set("isBulk",!1)}))
case"makeOwners":return(0,r.ajax)(`/groups/${this.model.id}/owners.json`,{type:"PUT",data:{usernames:e.mapBy("username").join(",")}}).then((()=>{e.forEach((e=>e.set("owner",!0))),this.set("isBulk",!1)}))
case"removeOwners":return(0,r.ajax)(`/admin/groups/${this.model.id}/owners.json`,{type:"DELETE",data:{group:{usernames:e.map((e=>e.username)).join(",")}}}).then((()=>{e.forEach((e=>e.set("owner",!1))),this.set("isBulk",!1)}))
case"setPrimary":case"unsetPrimary":const i="setPrimary"===t
return(0,r.ajax)(`/admin/groups/${this.model.id}/primary.json`,{type:"PUT",data:{group:{usernames:e.map((e=>e.username)).join(",")},primary:i}}).then((()=>{e.forEach((e=>e.set("primary",i))),this.set("isBulk",!1)}))}},removeMember(e){this.model.removeMember(e,this.memberParams)},makeOwner(e){this.model.addOwners(e)},removeOwner(e){this.model.removeOwner(e)},addMembers(){this.usernames&&this.usernames.length>0&&this.model.addMembers(this.usernames).then((()=>this.set("usernames",[]))).catch(s.popupAjaxError)},toggleBulkSelect(){this.setProperties({isBulk:!this.isBulk,bulkSelection:[]})},bulkSelectAll(){document.querySelectorAll("input.bulk-select:not(:checked)").forEach((e=>{e.checked||e.click()}))},bulkClearAll(){document.querySelectorAll("input.bulk-select:checked").forEach((e=>{e.checked&&e.click()}))},selectMember(e,t){this.set("bulkSelection",this.bulkSelection||[]),t.target.checked?this.bulkSelection.pushObject(e):this.bulkSelection.removeObject(e)}},"filterInputChanged",[l],Object.getOwnPropertyDescriptor(m,"filterInputChanged"),m),h(m,"_setFilter",[a],Object.getOwnPropertyDescriptor(m,"_setFilter"),m),h(m,"_filtersChanged",[u],Object.getOwnPropertyDescriptor(m,"_filtersChanged"),m),h(m,"memberParams",[c],Object.getOwnPropertyDescriptor(m,"memberParams"),m),h(m,"canManageGroup",[d],Object.getOwnPropertyDescriptor(m,"canManageGroup"),m),h(m,"filterPlaceholder",[i.default],Object.getOwnPropertyDescriptor(m,"filterPlaceholder"),m),h(m,"emptyMessageKey",[p],Object.getOwnPropertyDescriptor(m,"emptyMessageKey"),m),h(m,"loadMore",[n.action],Object.getOwnPropertyDescriptor(m,"loadMore"),m),h(m,"toggleActions",[n.action],Object.getOwnPropertyDescriptor(m,"toggleActions"),m),h(m,"actOnGroup",[n.action],Object.getOwnPropertyDescriptor(m,"actOnGroup"),m),h(m,"actOnSelection",[n.action],Object.getOwnPropertyDescriptor(m,"actOnSelection"),m),h(m,"removeMember",[n.action],Object.getOwnPropertyDescriptor(m,"removeMember"),m),h(m,"makeOwner",[n.action],Object.getOwnPropertyDescriptor(m,"makeOwner"),m),h(m,"removeOwner",[n.action],Object.getOwnPropertyDescriptor(m,"removeOwner"),m),h(m,"addMembers",[n.action],Object.getOwnPropertyDescriptor(m,"addMembers"),m),h(m,"toggleBulkSelect",[n.action],Object.getOwnPropertyDescriptor(m,"toggleBulkSelect"),m),h(m,"bulkSelectAll",[n.action],Object.getOwnPropertyDescriptor(m,"bulkSelectAll"),m),h(m,"bulkClearAll",[n.action],Object.getOwnPropertyDescriptor(m,"bulkClearAll"),m),h(m,"selectMember",[n.action],Object.getOwnPropertyDescriptor(m,"selectMember"),m),m))
e.default=f})),define("discourse/controllers/group-manage-categories",["exports","@ember/controller","discourse-common/utils/decorators"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((n=(0,i.default)("model.watchingCategories.[]","model.watchingFirstPostCategories.[]","model.trackingCategories.[]","model.regularCategories.[]","model.mutedCategories.[]"),o=r={selectedCategories:(e,t,i,n,r)=>[].concat(e,t,i,n,r).filter((e=>e))},s="selectedCategories",l=[n],a=Object.getOwnPropertyDescriptor(r,"selectedCategories"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/controllers/group-manage-logs",["exports","@ember/controller","@ember/object","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u=t.default.extend((r=(0,n.default)("filters.action","filters.acting_user","filters.target_user","filters.subject"),o=(0,n.observes)("filters.action","filters.acting_user","filters.target_user","filters.subject"),s=(0,n.observes)("model.all_loaded"),l={group:(0,t.inject)(),application:(0,t.inject)(),loading:!1,offset:0,init(){this._super(...arguments),this.set("filters",i.default.create())},filterParams:(e,t,i,n)=>({action:e,acting_user:t,target_user:i,subject:n}),_refreshModel(){this.get("group.model").findLogs(0,this.filterParams).then((e=>{this.set("offset",0),this.model.setProperties({logs:e.logs,all_loaded:e.all_loaded})}))},_showFooter(){this.set("application.showFooter",this.get("model.all_loaded"))},reset(){this.setProperties({offset:0,filters:i.default.create()})},loadMore(){this.get("model.all_loaded")||(this.set("loading",!0),this.get("group.model").findLogs(this.offset+1,this.filterParams).then((e=>{e.logs.forEach((e=>this.get("model.logs").addObject(e))),this.incrementProperty("offset"),this.set("model.all_loaded",e.all_loaded)})).finally((()=>this.set("loading",!1))))},clearFilter(e){this.set(`filters.${e}`,"")}},a(l,"filterParams",[r],Object.getOwnPropertyDescriptor(l,"filterParams"),l),a(l,"_refreshModel",[o],Object.getOwnPropertyDescriptor(l,"_refreshModel"),l),a(l,"_showFooter",[s],Object.getOwnPropertyDescriptor(l,"_showFooter"),l),a(l,"loadMore",[i.action],Object.getOwnPropertyDescriptor(l,"loadMore"),l),a(l,"clearFilter",[i.action],Object.getOwnPropertyDescriptor(l,"clearFilter"),l),l))
e.default=u})),define("discourse/controllers/group-manage-profile",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({saving:null})
e.default=i})),define("discourse/controllers/group-manage-tags",["exports","@ember/controller","discourse-common/utils/decorators"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((n=(0,i.default)("model.watching_tags.[]","model.watching_first_post_tags.[]","model.tracking_tags.[]","model.regular_tags.[]","model.muted_tags.[]"),o=r={selectedTags:(e,t,i,n,r)=>[].concat(e,t,i,n,r).filter((e=>e))},s="selectedTags",l=[n],a=Object.getOwnPropertyDescriptor(r,"selectedTags"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/controllers/group-manage",["exports","@ember/controller","discourse-common/utils/decorators"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((n=(0,i.default)("model.automatic"),o=r={tabs(e){const t=[{route:"group.manage.profile",title:"groups.manage.profile.title"},{route:"group.manage.interaction",title:"groups.manage.interaction.title"},{route:"group.manage.categories",title:"groups.manage.categories.title"}]
return this.siteSettings.tagging_enabled&&t.push({route:"group.manage.tags",title:"groups.manage.tags.title"}),t.push({route:"group.manage.logs",title:"groups.manage.logs.title"}),e||(this.siteSettings.enable_smtp&&t.splice(2,0,{route:"group.manage.email",title:"groups.manage.email.title"}),t.splice(1,0,{route:"group.manage.membership",title:"groups.manage.membership.title"})),t}},s="tabs",l=[n],a=Object.getOwnPropertyDescriptor(r,"tabs"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/controllers/group-messages",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({})
e.default=i})),define("discourse/controllers/group-permissions",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend()
e.default=i})),define("discourse/controllers/group-requests",["exports","@ember/controller","discourse-common/utils/decorators","discourse/lib/ajax","discourse/lib/ajax-error"],(function(e,t,i,n,r){var o,s,l,a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var p=t.default.extend((o=(0,i.observes)("filterInput"),s=(0,i.debounce)(500),l=(0,i.observes)("order","asc","filter"),a=(0,i.default)("order","asc","filter"),u=(0,i.default)("model.requesters.[]"),d(c={application:(0,t.inject)(),queryParams:["order","asc","filter"],order:"",asc:null,filter:null,filterInput:null,loading:!1,filterInputChanged(){this._setFilter()},_setFilter(){this.set("filter",this.filterInput)},_filtersChanged(){this.findRequesters(!0)},findRequesters(e){if(this.loading)return
const t=this.model
t&&(!e&&t.requesters.length>=t.user_count?this.set("application.showFooter",!0):(this.set("loading",!0),t.findRequesters(this.memberParams,e).finally((()=>{this.set("application.showFooter",t.requesters.length>=t.user_count),this.set("loading",!1)}))))},memberParams:(e,t,i)=>({order:e,asc:t,filter:i}),hasRequesters:e=>e&&e.length>0,filterPlaceholder(){return this.currentUser&&this.currentUser.admin?"groups.members.filter_placeholder_admin":"groups.members.filter_placeholder"},handleRequest(e){(0,n.ajax)(`/groups/${this.get("model.id")}/handle_membership_request.json`,{data:e,type:"PUT"}).catch(r.popupAjaxError)},actions:{loadMore(){this.findRequesters()},acceptRequest(e){this.handleRequest({user_id:e.get("id"),accept:!0}),e.setProperties({request_accepted:!0,request_denied:!1})},undoAcceptRequest(e){(0,n.ajax)("/groups/"+this.get("model.id")+"/members.json",{type:"DELETE",data:{user_id:e.get("id")}}).then((()=>{e.set("request_undone",!0)}))},denyRequest(e){this.handleRequest({user_id:e.get("id")}),e.setProperties({request_accepted:!1,request_denied:!0})}}},"filterInputChanged",[o],Object.getOwnPropertyDescriptor(c,"filterInputChanged"),c),d(c,"_setFilter",[s],Object.getOwnPropertyDescriptor(c,"_setFilter"),c),d(c,"_filtersChanged",[l],Object.getOwnPropertyDescriptor(c,"_filtersChanged"),c),d(c,"memberParams",[a],Object.getOwnPropertyDescriptor(c,"memberParams"),c),d(c,"hasRequesters",[u],Object.getOwnPropertyDescriptor(c,"hasRequesters"),c),d(c,"filterPlaceholder",[i.default],Object.getOwnPropertyDescriptor(c,"filterPlaceholder"),c),c))
e.default=p})),define("discourse/controllers/group",["exports","@ember/controller","@ember/object","I18n","discourse-common/utils/decorators","@ember/string","@ember/service","discourse/components/dialog-messages/group-delete"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=i.default.extend({init(){this._super(...arguments),this.setProperties({route:this.route||`group.${this.name}`,message:n.default.t(`groups.${this.i18nKey||this.name}`)})}})
var g=t.default.extend((a=(0,r.default)("showMessages","model.user_count","model.request_count","canManageGroup","model.allow_membership_requests"),u=(0,r.default)("model.has_messages","model.is_group_user","currentUser.can_send_private_messages"),c=(0,r.default)("model.displayName","model.full_name"),d=(0,r.default)("model.messageable"),p=(0,r.default)("model","model.automatic"),h(m={application:(0,t.inject)(),dialog:(0,s.inject)(),counts:null,showing:"members",destroying:null,showTooltip:!1,tabs(e,t,i,n,r){const o=[f.create({name:"members",route:"group.index",icon:"users",i18nKey:"members.title",count:t}),f.create({name:"activity"})]
return n&&r&&o.push(f.create({name:"requests",i18nKey:"requests.title",icon:"user-plus",count:i})),e&&o.push(f.create({name:"messages",i18nKey:"messages"})),n&&o.push(f.create({name:"manage",i18nKey:"manage.title",icon:"wrench"})),o.push(f.create({name:"permissions",i18nKey:"permissions.title"})),o},showMessages(e,t){return!!this.currentUser?.can_send_private_messages&&(!!e&&(t||this.currentUser&&this.currentUser.admin))},groupName:(e,t)=>(0,o.capitalize)(t||e),displayGroupMessageButton(e){return this.currentUser&&e},canManageGroup(e,t){return this.currentUser&&(this.currentUser.canManageGroup(e)||e.can_admin_group&&t)},messageGroup(){this.send("createNewMessageViaParams",{recipients:this.get("model.name"),hasGroups:!0})},destroyGroup(){this.set("destroying",!0)
const e=this.model
this.dialog.deleteConfirm({title:n.default.t("admin.groups.delete_confirm",{group:e.name}),bodyComponent:l.default,bodyComponentModel:e,didConfirm:()=>{e.destroy().then((()=>this.transitionToRoute("groups.index"))).catch((e=>{console.error(e),this.dialog.alert(n.default.t("admin.groups.delete_failed"))})).finally((()=>this.set("destroying",!1)))},didCancel:()=>this.set("destroying",!1)})},toggleDeleteTooltip(){this.toggleProperty("showTooltip")}},"tabs",[a],Object.getOwnPropertyDescriptor(m,"tabs"),m),h(m,"showMessages",[u],Object.getOwnPropertyDescriptor(m,"showMessages"),m),h(m,"groupName",[c],Object.getOwnPropertyDescriptor(m,"groupName"),m),h(m,"displayGroupMessageButton",[d],Object.getOwnPropertyDescriptor(m,"displayGroupMessageButton"),m),h(m,"canManageGroup",[p],Object.getOwnPropertyDescriptor(m,"canManageGroup"),m),h(m,"messageGroup",[i.action],Object.getOwnPropertyDescriptor(m,"messageGroup"),m),h(m,"destroyGroup",[i.action],Object.getOwnPropertyDescriptor(m,"destroyGroup"),m),h(m,"toggleDeleteTooltip",[i.action],Object.getOwnPropertyDescriptor(m,"toggleDeleteTooltip"),m),m))
e.default=g})),define("discourse/controllers/groups-index",["exports","@ember/controller","I18n","discourse-common/config/environment","@ember/object","discourse-common/utils/decorators","discourse-common/lib/debounce"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=t.default.extend((l=(0,o.default)("groups.extras.type_filters"),u(a={application:(0,t.inject)(),queryParams:["order","asc","filter","type"],order:null,asc:null,filter:"",type:null,groups:null,isLoading:!1,types(e){const t=[]
return e&&e.forEach((e=>t.push({id:e,name:i.default.t(`groups.index.${e}_groups`)}))),t},loadGroups(e){this.set("isLoading",!0),this.store.findAll("group",e).then((e=>{this.set("groups",e),e.canLoadMore&&this.set("application.showFooter",!e.canLoadMore)})).finally((()=>this.set("isLoading",!1)))},onFilterChanged(e){(0,s.default)(this,this._debouncedFilter,e,n.INPUT_DELAY)},loadMore(){this.groups&&this.groups.loadMore()},new(){this.transitionToRoute("groups.new")},_debouncedFilter(e){this.set("filter",e)}},"types",[l],Object.getOwnPropertyDescriptor(a,"types"),a),u(a,"onFilterChanged",[r.action],Object.getOwnPropertyDescriptor(a,"onFilterChanged"),a),u(a,"loadMore",[r.action],Object.getOwnPropertyDescriptor(a,"loadMore"),a),u(a,"new",[r.action],Object.getOwnPropertyDescriptor(a,"new"),a),a))
e.default=c})),define("discourse/controllers/groups-new",["exports","@ember/controller","I18n","@ember/object","discourse/lib/ajax","discourse/lib/ajax-error","discourse-common/utils/decorators","@ember/service"],(function(e,t,i,n,r,o,s,l){var a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function p(e,t){if(!t)return
const n={}
n.automatic_membership_email_domains=t,e&&(n.id=e),(0,r.ajax)("/admin/groups/automatic_membership_count.json",{type:"PUT",data:n}).then((e=>{const t=e.user_count
t>0&&this.dialog.alert(i.default.t("admin.groups.manage.membership.automatic_membership_user_count",{count:t}))}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.popupAutomaticMembershipAlert=p
var m=t.default.extend((a=(0,s.default)("model.ownerUsernames"),u=(0,s.default)("model.usernames"),d(c={dialog:(0,l.inject)(),saving:null,splitOwnerUsernames:e=>e&&e.length?e.split(","):[],splitUsernames:e=>e&&e.length?e.split(","):[],save(){this.set("saving",!0)
const e=this.model
p(e.id,e.automatic_membership_email_domains),e.create().then((()=>{this.transitionToRoute("group.members",e.name)})).catch(o.popupAjaxError).finally((()=>this.set("saving",!1)))},updateOwnerUsernames(e){this.set("model.ownerUsernames",e.join(","))},updateUsernames(e){this.set("model.usernames",e.join(","))}},"splitOwnerUsernames",[a],Object.getOwnPropertyDescriptor(c,"splitOwnerUsernames"),c),d(c,"splitUsernames",[u],Object.getOwnPropertyDescriptor(c,"splitUsernames"),c),d(c,"save",[n.action],Object.getOwnPropertyDescriptor(c,"save"),c),d(c,"updateOwnerUsernames",[n.action],Object.getOwnPropertyDescriptor(c,"updateOwnerUsernames"),c),d(c,"updateUsernames",[n.action],Object.getOwnPropertyDescriptor(c,"updateUsernames"),c),c))
e.default=m})),define("discourse/controllers/history",["exports","@ember/object","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/computed","discourse/models/category","@ember/controller","I18n","discourse/mixins/modal-functionality","discourse/models/post","discourse/helpers/category-link","discourse-common/lib/icon-library","discourse/lib/text","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g,b,y,_,v,w,k,x,P,O,T,S,j,C,z,I,E,M,D,N,L,A,U,F
function R(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function B(e){return e?(Array.isArray(e)||(e=[e]),e):[]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var $=s.default.extend(a.default,(h=(0,n.on)("init"),f=(0,n.default)("model.tags_changes.previous","model.tags_changes.current"),g=(0,n.default)("model.tags_changes.previous","model.tags_changes.current"),b=(0,n.default)("post.version"),y=(0,n.default)("previousVersion","model.current_version","model.version_count"),_=(0,n.default)("previousVersion"),v=(0,n.default)("model.created_at"),w=(0,n.default)("model.current_version"),k=(0,n.default)("model.current_revision","model.previous_revision"),x=(0,n.default)("model.previous_hidden"),P=(0,n.default)("model.previous_hidden"),O=(0,n.default)("model.last_revision","model.current_revision","model.can_edit","topicController"),T=(0,n.default)("model.wiki"),S=(0,n.default)(),j=(0,n.default)("model.previous_hidden"),C=(0,n.default)("model.previous_hidden","model.current_hidden","displayingInline"),z=(0,n.default)("displayingInline"),I=(0,n.default)("displayingSideBySide"),E=(0,n.default)("displayingSideBySideMarkdown"),M=(0,n.default)("model.category_id_changes"),D=(0,n.default)("model.category_id_changes"),N=(0,n.default)("model.wiki_changes"),L=(0,n.default)("model.post_type_changes"),A=(0,n.default)("viewMode","model.title_changes"),U=(0,n.observes)("viewMode","model.body_changes"),R(F={dialog:(0,m.inject)(),loading:!0,viewMode:"side_by_side",_changeViewModeOnMobile(){this.site&&this.site.mobileView&&this.set("viewMode","inline")},previousFeaturedLink:(0,i.alias)("model.featured_link_changes.previous"),currentFeaturedLink:(0,i.alias)("model.featured_link_changes.current"),previousTagChanges(e,t){const i=B(e),n=new Set(B(t))
return i.map((e=>({name:e,deleted:!n.has(e)})))},currentTagChanges(e,t){const i=new Set(B(e))
return B(t).map((e=>({name:e,inserted:!i.has(e)})))},modalTitleKey:e=>e>100?"history_capped_revisions":"history",revisionsText:(e,t,i)=>l.default.t("post.revisions.controls.comparing_previous_to_current_out_of_total",{previous:e,icon:(0,d.iconHTML)("arrows-alt-h"),current:t,total:i}),revertToRevisionText:e=>l.default.t("post.revisions.controls.revert",{revision:e}),refresh(e,t){this.set("loading",!0),u.default.loadRevision(e,t).then((e=>{this.setProperties({loading:!1,model:e})}))},hide(e,t){u.default.hideRevision(e,t).then((()=>this.refresh(e,t)))},permanentlyDeleteRevisions(e){this.dialog.yesNoConfirm({message:l.default.t("post.revisions.controls.destroy_confirm"),didConfirm:()=>{u.default.permanentlyDeleteRevisions(e).then((()=>{this.send("closeModal")}))}})},show(e,t){u.default.showRevision(e,t).then((()=>this.refresh(e,t)))},revert(e,t){e.revertToRevision(t).then((i=>{this.refresh(e.get("id"),t),i.topic&&(e.set("topic.slug",i.topic.slug),e.set("topic.title",i.topic.title),e.set("topic.fancy_title",i.topic.fancy_title)),i.category_id&&e.set("topic.category",o.default.findById(i.category_id)),this.send("closeModal")})).catch((function(e){e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors&&e.jqXHR.responseJSON.errors[0]&&this.dialog.alert(e.jqXHR.responseJSON.errors[0])}))},createdAtDate:e=>moment(e).format("LLLL"),previousVersion:e=>e-1,displayGoToPrevious:(e,t)=>t&&e>t,displayRevisions:(0,i.gt)("model.version_count",2),displayGoToFirst:(0,r.propertyGreaterThan)("model.current_revision","model.first_revision"),displayGoToNext:(0,r.propertyLessThan)("model.current_revision","model.next_revision"),displayGoToLast:(0,r.propertyLessThan)("model.current_revision","model.next_revision"),hideGoToFirst:(0,i.not)("displayGoToFirst"),hideGoToPrevious:(0,i.not)("displayGoToPrevious"),hideGoToNext:(0,i.not)("displayGoToNext"),hideGoToLast:(0,i.not)("displayGoToLast"),loadFirstDisabled:(0,i.or)("loading","hideGoToFirst"),loadPreviousDisabled:(0,i.or)("loading","hideGoToPrevious"),loadNextDisabled:(0,i.or)("loading","hideGoToNext"),loadLastDisabled:(0,i.or)("loading","hideGoToLast"),displayShow(e){return e&&this.currentUser&&this.currentUser.get("staff")},displayHide(e){return!e&&this.currentUser&&this.currentUser.get("staff")},displayEdit:(e,t,i,n)=>!(!i||!n||e!==t),editButtonLabel:e=>"post.revisions.controls."+(e?"edit_wiki":"edit_post"),displayRevert(){return this.currentUser&&this.currentUser.get("staff")},displayPermanentlyDeleteButton(e){return this.siteSettings.can_permanently_delete&&this.currentUser?.staff&&e},isEitherRevisionHidden:(0,i.or)("model.previous_hidden","model.current_hidden"),hiddenClasses(e,t,i){if(i)return this.isEitherRevisionHidden?"hidden-revision-either":null
{let i=[]
return e&&i.push("hidden-revision-previous"),t&&i.push("hidden-revision-current"),i.join(" ")}},displayingInline:(0,i.equal)("viewMode","inline"),displayingSideBySide:(0,i.equal)("viewMode","side_by_side"),displayingSideBySideMarkdown:(0,i.equal)("viewMode","side_by_side_markdown"),inlineClass:e=>e?"active":"",sideBySideClass:e=>e?"active":"",sideBySideMarkdownClass:e=>e?"active":"",previousCategory(e){if(e){let t=o.default.findById(e.previous)
return(0,c.categoryBadgeHTML)(t,{allowUncategorized:!0})}},currentCategory(e){if(e){let t=o.default.findById(e.current)
return(0,c.categoryBadgeHTML)(t,{allowUncategorized:!0})}},wikiDisabled:e=>e&&!e.current,postTypeDisabled(e){return e&&e.current!==this.site.get("post_types.moderator_action")},titleDiff(e){return"side_by_side_markdown"===e&&(e="side_by_side"),this.get("model.title_changes."+e)},bodyDiffChanged(){const e=this.viewMode,t=this.get(`model.body_changes.${e}`)
if("side_by_side_markdown"!==e){const e={features:{editHistory:!0,historyOneboxes:!0},allowListed:{editHistory:{custom:(e,t)=>"class"===t},historyOneboxes:["header","article","div[style]"]}}
return(0,p.sanitizeAsync)(t,e).then((e=>this.set("bodyDiff",e)))}this.set("bodyDiff",t)},displayInline(e){e?.preventDefault(),this.set("viewMode","inline")},displaySideBySide(e){e?.preventDefault(),this.set("viewMode","side_by_side")},displaySideBySideMarkdown(e){e?.preventDefault(),this.set("viewMode","side_by_side_markdown")},actions:{loadFirstVersion(){this.refresh(this.get("model.post_id"),this.get("model.first_revision"))},loadPreviousVersion(){this.refresh(this.get("model.post_id"),this.get("model.previous_revision"))},loadNextVersion(){this.refresh(this.get("model.post_id"),this.get("model.next_revision"))},loadLastVersion(){this.refresh(this.get("model.post_id"),this.get("model.last_revision"))},hideVersion(){this.hide(this.get("model.post_id"),this.get("model.current_revision"))},permanentlyDeleteVersions(){this.permanentlyDeleteRevisions(this.get("model.post_id"))},showVersion(){this.show(this.get("model.post_id"),this.get("model.current_revision"))},editPost(){this.topicController.send("editPost",this.post),this.send("closeModal")},revertToVersion(){this.revert(this.post,this.get("model.current_revision"))}}},"_changeViewModeOnMobile",[h],Object.getOwnPropertyDescriptor(F,"_changeViewModeOnMobile"),F),R(F,"previousTagChanges",[f],Object.getOwnPropertyDescriptor(F,"previousTagChanges"),F),R(F,"currentTagChanges",[g],Object.getOwnPropertyDescriptor(F,"currentTagChanges"),F),R(F,"modalTitleKey",[b],Object.getOwnPropertyDescriptor(F,"modalTitleKey"),F),R(F,"revisionsText",[y],Object.getOwnPropertyDescriptor(F,"revisionsText"),F),R(F,"revertToRevisionText",[_],Object.getOwnPropertyDescriptor(F,"revertToRevisionText"),F),R(F,"createdAtDate",[v],Object.getOwnPropertyDescriptor(F,"createdAtDate"),F),R(F,"previousVersion",[w],Object.getOwnPropertyDescriptor(F,"previousVersion"),F),R(F,"displayGoToPrevious",[k],Object.getOwnPropertyDescriptor(F,"displayGoToPrevious"),F),R(F,"displayShow",[x],Object.getOwnPropertyDescriptor(F,"displayShow"),F),R(F,"displayHide",[P],Object.getOwnPropertyDescriptor(F,"displayHide"),F),R(F,"displayEdit",[O],Object.getOwnPropertyDescriptor(F,"displayEdit"),F),R(F,"editButtonLabel",[T],Object.getOwnPropertyDescriptor(F,"editButtonLabel"),F),R(F,"displayRevert",[S],Object.getOwnPropertyDescriptor(F,"displayRevert"),F),R(F,"displayPermanentlyDeleteButton",[j],Object.getOwnPropertyDescriptor(F,"displayPermanentlyDeleteButton"),F),R(F,"hiddenClasses",[C],Object.getOwnPropertyDescriptor(F,"hiddenClasses"),F),R(F,"inlineClass",[z],Object.getOwnPropertyDescriptor(F,"inlineClass"),F),R(F,"sideBySideClass",[I],Object.getOwnPropertyDescriptor(F,"sideBySideClass"),F),R(F,"sideBySideMarkdownClass",[E],Object.getOwnPropertyDescriptor(F,"sideBySideMarkdownClass"),F),R(F,"previousCategory",[M],Object.getOwnPropertyDescriptor(F,"previousCategory"),F),R(F,"currentCategory",[D],Object.getOwnPropertyDescriptor(F,"currentCategory"),F),R(F,"wikiDisabled",[N],Object.getOwnPropertyDescriptor(F,"wikiDisabled"),F),R(F,"postTypeDisabled",[L],Object.getOwnPropertyDescriptor(F,"postTypeDisabled"),F),R(F,"titleDiff",[A],Object.getOwnPropertyDescriptor(F,"titleDiff"),F),R(F,"bodyDiffChanged",[U],Object.getOwnPropertyDescriptor(F,"bodyDiffChanged"),F),R(F,"displayInline",[t.action],Object.getOwnPropertyDescriptor(F,"displayInline"),F),R(F,"displaySideBySide",[t.action],Object.getOwnPropertyDescriptor(F,"displaySideBySide"),F),R(F,"displaySideBySideMarkdown",[t.action],Object.getOwnPropertyDescriptor(F,"displaySideBySideMarkdown"),F),F))
e.default=$})),define("discourse/controllers/ignore-duration-with-username",["exports","@ember/controller","I18n","discourse/mixins/modal-functionality","discourse/models/user","discourse/lib/ajax-error","discourse/lib/time-shortcut","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s,l){var a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u,c,d,p,m,h,f=t.default.extend(n.default,(u=a={loading:!1,ignoredUntil:null,ignoredUsername:null,timeShortcuts(){const e=this.currentUser.user_option.timezone,t=(0,s.timeShortcuts)(e)
return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.twoWeeks(),t.nextMonth(),t.twoMonths(),t.threeMonths(),t.fourMonths(),t.sixMonths(),t.oneYear(),t.forever()]},actions:{ignore(){this.ignoredUntil&&this.ignoredUsername?(this.set("loading",!0),r.default.findByUsername(this.ignoredUsername).then((e=>{e.updateNotificationLevel({level:"ignore",expiringAt:this.ignoredUntil,actingUser:this.model}).then((()=>{this.onUserIgnored(this.ignoredUsername),this.send("closeModal")})).catch(o.popupAjaxError).finally((()=>this.set("loading",!1)))}))):this.flash(i.default.t("user.user_notifications.ignore_duration_time_frame_required"),"error")},updateIgnoredUsername(e){this.set("ignoredUsername",e.firstObject)}}},c="timeShortcuts",d=[l.default],p=Object.getOwnPropertyDescriptor(a,"timeShortcuts"),m=a,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),a))
e.default=f})),define("discourse/controllers/ignore-duration",["exports","@ember/controller","I18n","discourse/mixins/modal-functionality","discourse/lib/ajax-error","discourse/lib/time-shortcut","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a,u,c,d,p,m,h=t.default.extend(n.default,(a=l={loading:!1,ignoredUntil:null,timeShortcuts(){const e=this.currentUser.user_option.timezone,t=(0,o.timeShortcuts)(e)
return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.twoWeeks(),t.nextMonth(),t.twoMonths(),t.threeMonths(),t.fourMonths(),t.sixMonths(),t.oneYear(),t.forever()]},actions:{ignore(){this.ignoredUntil?(this.set("loading",!0),this.model.updateNotificationLevel({level:"ignore",expiringAt:this.ignoredUntil}).then((()=>{this.set("model.ignored",!0),this.set("model.muted",!1),this.onSuccess&&this.onSuccess(),this.send("closeModal")})).catch(r.popupAjaxError).finally((()=>this.set("loading",!1)))):this.flash(i.default.t("user.user_notifications.ignore_duration_time_frame_required"),"error")}}},u="timeShortcuts",c=[s.default],d=Object.getOwnPropertyDescriptor(l,"timeShortcuts"),p=l,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),l))
e.default=h})),define("discourse/controllers/insert-hyperlink",["exports","@ember/runloop","@ember/controller","discourse/mixins/modal-functionality","discourse-common/utils/decorators","discourse-common/lib/debounce","@ember/utils","discourse/lib/url","discourse/lib/search"],(function(e,t,i,n,r,o,s,l,a){var u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var d=i.default.extend(n.default,(c(u={_debounced:null,_activeSearch:null,onShow(){this.setProperties({linkUrl:"",linkText:"",searchResults:[],searchLoading:!1,selectedRow:-1}),(0,t.schedule)("afterRender",(()=>{const e=document.querySelector(".insert-link")
e.addEventListener("keydown",this.keyDown),e.closest(".modal-inner-container").addEventListener("mousedown",this.mouseDown)}))},keyDown(e){switch(e.which){case 40:this.highlightRow(e,"down")
break
case 38:this.highlightRow(e,"up")
break
case 13:if(this.selectedRow>-1){const t=document.querySelectorAll(".internal-link-results .search-link")[this.selectedRow]
this.selectLink(t),e.preventDefault(),e.stopPropagation()}break
case 27:this.searchResults.length?(this.set("searchResults",[]),e.preventDefault(),e.stopPropagation()):(this.send("closeModal"),document.querySelector(".d-editor-input")?.focus())}},mouseDown(e){e.target.closest(".inputs")||this.set("searchResults",[])},highlightRow(e,t){const i="down"===t?this.selectedRow+1:this.selectedRow-1
i>-1&&i<this.searchResults.length?(document.querySelectorAll(".internal-link-results .search-link")[i].focus(),this.set("selectedRow",i)):(this.set("selectedRow",-1),document.querySelector("input.link-url").focus()),e.preventDefault()},selectLink(e){this.setProperties({linkUrl:e.href,searchResults:[],selectedRow:-1}),!this.linkText&&e.dataset.title&&this.set("linkText",e.dataset.title),document.querySelector("input.link-text").focus()},triggerSearch(){this.linkUrl.length>3&&!this.linkUrl.startsWith("http")?(this.set("searchLoading",!0),this._activeSearch=(0,a.searchForTerm)(this.linkUrl,{typeFilter:"topic"}),this._activeSearch.then((e=>{e&&e.topics&&e.topics.length>0?this.set("searchResults",e.topics):this.set("searchResults",[])})).finally((()=>{this.set("searchLoading",!1),this._activeSearch=null}))):this.abortSearch()},abortSearch(){this._activeSearch&&this._activeSearch.abort(),this.setProperties({searchResults:[],searchLoading:!1})},onClose(){const e=document.querySelector(".insert-link")
e.removeEventListener("keydown",this.keyDown),e.closest(".modal-inner-container").removeEventListener("mousedown",this.mouseDown),(0,t.cancel)(this._debounced)},actions:{ok(){const e=this.linkUrl,t=(0,l.prefixProtocol)(e),i=this.toolbarEvent.selected
if((0,s.isEmpty)(t))return
const n=this.linkText||""
n.length?this.toolbarEvent.addText(`[${n}](${t})`):i.value?this.toolbarEvent.addText(`[${i.value}](${t})`):(this.toolbarEvent.addText(`[${e}](${t})`),this.toolbarEvent.selectText(i.start+1,e.length)),this.send("closeModal")},cancel(){this.send("closeModal")},linkClick(e){e.metaKey||e.ctrlKey||(e.preventDefault(),e.stopPropagation(),this.selectLink(e.target.closest(".search-link")))},search(){this._debounced=(0,o.default)(this,this.triggerSearch,400)}}},"keyDown",[r.bind],Object.getOwnPropertyDescriptor(u,"keyDown"),u),c(u,"mouseDown",[r.bind],Object.getOwnPropertyDescriptor(u,"mouseDown"),u),u))
e.default=d})),define("discourse/controllers/invites-show",["exports","@ember/object/computed","@ember/controller","discourse/lib/url","@ember/object","I18n","discourse/mixins/name-validation","discourse/mixins/password-validation","discourse/mixins/user-fields-validation","discourse/mixins/username-validation","discourse/lib/ajax","discourse/lib/ajax-error","discourse-common/utils/decorators","discourse/lib/utilities","discourse/models/login-method","discourse-common/lib/get-url","@ember/utils","discourse/lib/waving-hand-url"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b){var y,_,v,w,k,x,P,O,T,S
function j(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var C=i.default.extend(l.default,u.default,s.default,a.default,(y=(0,p.default)("existingUserId"),_=(0,p.default)("email"),v=(0,p.default)("emailValidation.failed","usernameValidation.failed","passwordValidation.failed","nameValidation.failed","userFieldsValidation.failed","existingUserRedeeming","existingUserCanRedeem"),w=(0,p.default)("externalAuthsEnabled","externalAuthsOnly","discourseConnectEnabled"),k=(0,p.default)("externalAuthsOnly","authOptions","emailValidation.failed","existingUserRedeeming"),x=(0,p.default)("email","rejectedEmails.[]","authOptions.email","authOptions.email_valid","hiddenEmail","emailVerifiedByLink","differentExternalEmail"),P=(0,p.default)("authOptions.associate_url","authOptions.auth_provider"),O={queryParams:["t"],createAccount:(0,i.inject)(),invitedBy:(0,t.readOnly)("model.invited_by"),email:(0,t.alias)("model.email"),accountEmail:(0,t.alias)("email"),existingUserId:(0,t.readOnly)("model.existing_user_id"),existingUserCanRedeem:(0,t.readOnly)("model.existing_user_can_redeem"),existingUserCanRedeemError:(0,t.readOnly)("model.existing_user_can_redeem_error"),existingUserRedeeming:(0,t.bool)("existingUserId"),hiddenEmail:(0,t.alias)("model.hidden_email"),emailVerifiedByLink:(0,t.alias)("model.email_verified_by_link"),differentExternalEmail:(0,t.alias)("model.different_external_email"),accountUsername:(0,t.alias)("model.username"),passwordRequired:(0,t.not)("externalAuthsOnly"),successMessage:null,errorMessage:null,userFields:null,authOptions:null,inviteImageUrl:(0,f.default)("/images/envelope.svg"),isInviteLink:(0,t.readOnly)("model.is_invite_link"),rejectedEmails:null,maskPassword:!0,init(){this._super(...arguments),this.rejectedEmails=[]},authenticationComplete(e){const t={accountUsername:e.username,accountName:e.name,authOptions:r.default.create(e)}
this.isInviteLink&&(t.email=e.email),this.setProperties(t)},discourseConnectEnabled(){return this.siteSettings.enable_discourse_connect},welcomeTitle(){return o.default.t("invites.welcome_to",{site_name:this.siteSettings.title})},subheaderMessage:e=>e?o.default.t("invites.existing_user_can_redeem"):o.default.t("create_account.subheader_title"),yourEmailMessage:e=>o.default.t("invites.your_email",{email:e}),externalAuthsEnabled:()=>(0,h.findAll)().length>0,externalAuthsOnly(){return!this.siteSettings.enable_local_logins&&this.externalAuthsEnabled&&!this.siteSettings.enable_discourse_connect},submitDisabled:(e,t,i,n,r,o,s)=>o?!s:e||t||i||n||r,showSocialLoginAvailable:(e,t,i)=>e&&!t&&!i,shouldDisplayForm(e,t,i,n){return(this.siteSettings.enable_local_logins||e&&t&&!i)&&!this.siteSettings.enable_discourse_connect&&!n},fullnameRequired(){return this.siteSettings.full_name_required||this.siteSettings.enable_names},emailValidation(e,t,i,n,s,l,a){if(s&&!a)return r.default.create({ok:!0,reason:o.default.t("user.email.ok")})
if((0,g.isEmpty)(e))return r.default.create({failed:!0})
if(t.includes(e))return r.default.create({failed:!0,reason:o.default.t("user.email.invalid")})
if(i&&n){const t=this.createAccount.authProviderDisplayName(this.get("authOptions.auth_provider"))
return i===e?r.default.create({ok:!0,reason:o.default.t("user.email.authenticated",{provider:t})}):r.default.create({failed:!0,reason:o.default.t("user.email.invite_auth_email_invalid",{provider:t})})}return l?r.default.create({ok:!0,reason:o.default.t("user.email.authenticated_by_invite")}):(0,m.emailValid)(e)?r.default.create({ok:!0,reason:o.default.t("user.email.ok")}):r.default.create({failed:!0,reason:o.default.t("user.email.invalid")})},wavingHandURL:()=>(0,b.wavingHandURL)(),ssoPath:()=>(0,f.default)("/session/sso"),disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return o.default.t("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})},associateHtml(e,t){if(e)return o.default.t("create_account.associate",{associate_link:e,provider:o.default.t(`login.${t}.name`)})},togglePasswordMask(){this.toggleProperty("maskPassword")},actions:{submit(){const e=this.userFields
let t={};(0,g.isEmpty)(e)||e.forEach((function(e){t[e.get("field.id")]=e.get("value")}))
const i={username:this.accountUsername,name:this.accountName,password:this.accountPassword,user_custom_fields:t,timezone:moment.tz.guess()}
this.isInviteLink?i.email=this.email:i.email_token=this.t,(0,c.ajax)({url:`/invites/show/${this.get("model.token")}.json`,type:"PUT",data:i}).then((e=>{e.success?(this.set("successMessage",e.message||o.default.t("invites.success")),e.redirect_to&&n.default.redirectTo(e.redirect_to)):(e.errors&&e.errors.email&&e.errors.email.length>0&&e.values&&this.rejectedEmails.pushObject(e.values.email),e.errors&&e.errors.password&&e.errors.password.length>0&&(this.rejectedPasswords.pushObject(this.accountPassword),this.rejectedPasswordsMessages.set(this.accountPassword,e.errors.password[0])),e.message&&this.set("errorMessage",e.message))})).catch((e=>{this.set("errorMessage",(0,d.extractError)(e))}))},externalLogin(e){e.doLogin({signup:!0,params:{origin:window.location.href}})}}},j(O,"discourseConnectEnabled",[p.default],Object.getOwnPropertyDescriptor(O,"discourseConnectEnabled"),O),j(O,"welcomeTitle",[p.default],Object.getOwnPropertyDescriptor(O,"welcomeTitle"),O),j(O,"subheaderMessage",[y],Object.getOwnPropertyDescriptor(O,"subheaderMessage"),O),j(O,"yourEmailMessage",[_],Object.getOwnPropertyDescriptor(O,"yourEmailMessage"),O),j(O,"externalAuthsEnabled",[p.default],Object.getOwnPropertyDescriptor(O,"externalAuthsEnabled"),O),j(O,"externalAuthsOnly",[p.default],Object.getOwnPropertyDescriptor(O,"externalAuthsOnly"),O),j(O,"submitDisabled",[v],Object.getOwnPropertyDescriptor(O,"submitDisabled"),O),j(O,"showSocialLoginAvailable",[w],Object.getOwnPropertyDescriptor(O,"showSocialLoginAvailable"),O),j(O,"shouldDisplayForm",[k],Object.getOwnPropertyDescriptor(O,"shouldDisplayForm"),O),j(O,"fullnameRequired",[p.default],Object.getOwnPropertyDescriptor(O,"fullnameRequired"),O),j(O,"emailValidation",[x],Object.getOwnPropertyDescriptor(O,"emailValidation"),O),j(O,"wavingHandURL",[p.default],(T=(T=Object.getOwnPropertyDescriptor(O,"wavingHandURL"))?T.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return T}}),O),j(O,"ssoPath",[p.default],(S=(S=Object.getOwnPropertyDescriptor(O,"ssoPath"))?S.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return S}}),O),j(O,"disclaimerHtml",[p.default],Object.getOwnPropertyDescriptor(O,"disclaimerHtml"),O),j(O,"associateHtml",[P],Object.getOwnPropertyDescriptor(O,"associateHtml"),O),j(O,"togglePasswordMask",[r.action],Object.getOwnPropertyDescriptor(O,"togglePasswordMask"),O),O))
e.default=C})),define("discourse/controllers/jump-to-post",["exports","@ember/controller","discourse/mixins/modal-functionality","@ember/object/computed","@ember/object"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=t.default.extend(i.default,(o={model:null,postNumber:null,postDate:null,filteredPostsCount:(0,n.reads)("topic.postStream.filteredPostsCount"),jump(){this.postNumber?this._jumpToIndex(this.filteredPostsCount,this.postNumber):this.postDate&&this._jumpToDate(this.postDate)},_jumpToIndex(e,t){const i=Math.min(e,Math.max(1,parseInt(t,10)))
this.jumpToIndex(i),this._close()},_jumpToDate(e){this.jumpToDate(e),this._close()},_close(){this.setProperties({postNumber:null,postDate:null}),this.send("closeModal")}},s=o,l="jump",a=[r.action],u=Object.getOwnPropertyDescriptor(o,"jump"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/controllers/login-page",["exports","@ember/controller"],(function(e,t){var i,n
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let r=(i=class extends t.default{constructor(){var e,t,i,r
super(...arguments),e=this,t="application",r=this,(i=n)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}},o=i.prototype,s="application",l=[t.inject],a={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),n=c,i)
var o,s,l,a,u,c
e.default=r}))
define("discourse/controllers/login",["exports","@ember/controller","@ember/object/computed","discourse/lib/utilities","discourse/lib/cookie","@ember/runloop","@ember/object","I18n","discourse/mixins/modal-functionality","discourse/models/user","discourse/lib/ajax","discourse-common/utils/decorators","pretty-text/sanitizer","discourse/lib/ajax-error","discourse/models/login-method","discourse-common/lib/get-url","discourse/lib/webauthn","@ember/utils","discourse/lib/computed","discourse/lib/show-modal","discourse/lib/waving-hand-url","@ember/service","@ember/template"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w,k){var x,P,O,T,S,j,C,z,I,E,M
function D(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const N=["requires_invite","awaiting_approval","awaiting_activation","admin_not_allowed_from_ip_address","not_allowed_from_ip_address"]
var L=t.default.extend(a.default,(x=(0,d.default)("showSecondFactor","showSecurityKey"),P=(0,d.default)(),O=(0,d.default)("showSecondFactor","showSecurityKey"),T=(0,d.default)("awaitingApproval","hasAtLeastOneLoginButton","showSecondFactor","canLoginLocal","showSecurityKey"),S=(0,d.default)("showSecondFactor","showSecurityKey"),j=(0,d.default)(),C=(0,d.default)("loggingIn"),z=(0,d.default)("loggingIn","application.canSignUp"),I=(0,d.default)("canLoginLocalWithEmail"),E={createAccount:(0,t.inject)(),forgotPassword:(0,t.inject)(),application:(0,t.inject)(),dialog:(0,w.inject)(),loggingIn:!1,loggedIn:!1,processingEmailLink:!1,showLoginButtons:!0,showSecondFactor:!1,awaitingApproval:!1,maskPassword:!0,canLoginLocal:(0,y.setting)("enable_local_logins"),canLoginLocalWithEmail:(0,y.setting)("enable_local_logins_via_email"),loginRequired:(0,i.alias)("application.loginRequired"),secondFactorMethod:u.SECOND_FACTOR_METHODS.TOTP,noLoginLocal:(0,i.not)("canLoginLocal"),resetForm(){this.setProperties({loggingIn:!1,loggedIn:!1,secondFactorRequired:!1,showSecondFactor:!1,showSecurityKey:!1,showLoginButtons:!0,awaitingApproval:!1,maskPassword:!0})},credentialsClass:(e,t)=>e||t?"hidden":"",wavingHandURL:()=>(0,v.wavingHandURL)(),secondFactorClass:(e,t)=>e||t?"":"hidden",modalBodyClasses(e,t,i,n,r){const o=["login-modal-body"]
return e&&o.push("awaiting-approval"),!t||i||r||o.push("has-alt-auth"),n||o.push("no-local-login"),(i||r)&&o.push("second-factor"),o.join(" ")},disableLoginFields:(e,t)=>e||t,hasAtLeastOneLoginButton:()=>(0,h.findAll)().length>0,loginButtonLabel:e=>e?"login.logging_in":"login.title",loginDisabled:(0,i.or)("loggingIn","loggedIn"),showSignupLink:(e,t)=>t&&!e,showSpinner:(0,i.readOnly)("loggingIn"),showLoginWithEmailLink:e=>e,emailLogin(e){e?.preventDefault(),this.processingEmailLink||((0,b.isEmpty)(this.loginName)?this.flash(l.default.t("login.blank_username"),"info"):(this.set("processingEmailLink",!0),(0,c.ajax)("/u/email-login",{data:{login:this.loginName.trim()},type:"POST"}).then((e=>{const t=(0,n.escapeExpression)(this.loginName)
let i=t.match(/@/)?"email_login.complete_email":"email_login.complete_username"
if(!1===e.user_found)this.flash((0,k.htmlSafe)(l.default.t(`${i}_not_found`,{email:t,username:t})),"error")
else{let n=e.hide_taken?"":"_found"
this.flash((0,k.htmlSafe)(l.default.t(`${i}${n}`,{email:t,username:t})))}})).catch((0,m.flashAjaxError)(this)).finally((()=>this.set("processingEmailLink",!1)))))},handleForgotPassword(e){e?.preventDefault()
const t=this.forgotPassword
t&&t.set("accountEmailOrUsername",this.loginName),this.send("showForgotPassword")},togglePasswordMask(){this.toggleProperty("maskPassword")},actions:{forgotPassword(){this.handleForgotPassword()},login(){if(!this.loginDisabled){if(!(0,b.isEmpty)(this.loginName)&&!(0,b.isEmpty)(this.loginPassword))return this.set("loggingIn",!0),(0,c.ajax)("/session",{type:"POST",data:{login:this.loginName,password:this.loginPassword,second_factor_token:this.securityKeyCredential||this.secondFactorToken,second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()}}).then((e=>{if(!e||!e.error){this.set("loggedIn",!0)
const e=document.getElementById("hidden-login-form"),t=(t,i)=>{e&&(e.querySelector(`input[name=${i}]`).value=t)},i=(0,r.default)("destination_url"),n=(0,r.default)("sso_destination_url")
return t(this.loginName,"username"),t(this.loginPassword,"password"),n?((0,r.removeCookie)("sso_destination_url"),void window.location.assign(n)):(i?((0,r.removeCookie)("destination_url"),t(i,"redirect")):t(window.location.href,"redirect"),void(e&&(navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&navigator.userAgent.match(/Safari/g)?window.location.href=e.querySelector("input[name=redirect]").value:e.submit())))}if(this.set("loggingIn",!1),this.clearFlash(),(e.security_key_enabled||e.totp_enabled)&&!this.secondFactorRequired)return this.setProperties({otherMethodAllowed:e.multiple_second_factor_methods,secondFactorRequired:!0,showLoginButtons:!1,backupEnabled:e.backup_enabled,totpEnabled:e.totp_enabled,showSecondFactor:e.totp_enabled,showSecurityKey:e.security_key_enabled,secondFactorMethod:e.security_key_enabled?u.SECOND_FACTOR_METHODS.SECURITY_KEY:u.SECOND_FACTOR_METHODS.TOTP,securityKeyChallenge:e.challenge,securityKeyAllowedCredentialIds:e.allowed_credential_ids}),void(this.showSecurityKey||(0,o.schedule)("afterRender",(()=>document.getElementById("second-factor").querySelector("input").focus())))
"not_activated"===e.reason?this.send("showNotActivated",{username:this.loginName,sentTo:(0,p.escape)(e.sent_to_email),currentEmail:(0,p.escape)(e.current_email)}):"suspended"===e.reason?(this.send("closeModal"),this.dialog.alert(e.error)):this.flash(e.error,"error")}),(e=>{e.jqXHR&&429===e.jqXHR.status?this.flash(l.default.t("login.rate_limit"),"error"):e.jqXHR&&503===e.jqXHR.status&&"read_only"===e.jqXHR.responseJSON.error_type?this.flash(l.default.t("read_only_mode.login_disabled"),"error"):(0,n.areCookiesEnabled)()?this.flash(l.default.t("login.error"),"error"):this.flash(l.default.t("login.cookies_error"),"error"),this.set("loggingIn",!1)})),!1
this.flash(l.default.t("login.blank_username_or_password"),"error")}},externalLogin(e){let{signup:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
this.loginDisabled||(this.set("loggingIn",!0),e.doLogin({signup:t}).catch((()=>this.set("loggingIn",!1))))},createAccount(){const e=this.createAccount
if(e){e.resetForm()
const t=this.loginName
t&&t.indexOf("@")>0?e.set("accountEmail",t):e.set("accountUsername",t)}this.send("showCreateAccount")},authenticateSecurityKey(){(0,g.getWebauthnCredential)(this.securityKeyChallenge,this.securityKeyAllowedCredentialIds,(e=>{this.set("securityKeyCredential",e),this.send("login")}),(e=>{this.flash(e,"error")}))}},authenticationComplete(e){const t=(e,t,i)=>{(0,_.default)("login"),(0,o.next)((()=>{i&&i(),this.flash(e,t||"success")}))}
if(!e.awaiting_approval||this.canLoginLocal||this.canLoginLocalWithEmail||this.set("awaitingApproval",!0),e.omniauth_disallow_totp)return t(l.default.t("login.omniauth_disallow_totp"),"error",(()=>{this.setProperties({loginName:e.email,showLoginButtons:!1}),document.getElementById("login-account-password").focus()}))
for(let n=0;n<N.length;n++){const i=N[n]
if(e[i])return t(l.default.t(`login.${i}`))}if(e.suspended)return t(e.suspended_message,"error")
if(e.authenticated){const t=(0,r.default)("destination_url")||e.destination_url
return void(t?((0,r.removeCookie)("destination_url"),window.location.href=t):window.location.pathname===(0,f.default)("/login")?window.location=(0,f.default)("/"):window.location.reload())}const i=this.siteSettings.auth_skip_create_confirm
this.createAccount.setProperties({accountEmail:e.email,accountUsername:e.username,accountName:e.name,authOptions:s.default.create(e),skipConfirmation:i}),(0,o.next)((()=>{(0,_.default)("create-account",{modalClass:"create-account",titleAriaElementId:"create-account-title"})}))}},D(E,"credentialsClass",[x],Object.getOwnPropertyDescriptor(E,"credentialsClass"),E),D(E,"wavingHandURL",[P],(M=(M=Object.getOwnPropertyDescriptor(E,"wavingHandURL"))?M.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return M}}),E),D(E,"secondFactorClass",[O],Object.getOwnPropertyDescriptor(E,"secondFactorClass"),E),D(E,"modalBodyClasses",[T],Object.getOwnPropertyDescriptor(E,"modalBodyClasses"),E),D(E,"disableLoginFields",[S],Object.getOwnPropertyDescriptor(E,"disableLoginFields"),E),D(E,"hasAtLeastOneLoginButton",[j],Object.getOwnPropertyDescriptor(E,"hasAtLeastOneLoginButton"),E),D(E,"loginButtonLabel",[C],Object.getOwnPropertyDescriptor(E,"loginButtonLabel"),E),D(E,"showSignupLink",[z],Object.getOwnPropertyDescriptor(E,"showSignupLink"),E),D(E,"showLoginWithEmailLink",[I],Object.getOwnPropertyDescriptor(E,"showLoginWithEmailLink"),E),D(E,"emailLogin",[s.action],Object.getOwnPropertyDescriptor(E,"emailLogin"),E),D(E,"handleForgotPassword",[s.action],Object.getOwnPropertyDescriptor(E,"handleForgotPassword"),E),D(E,"togglePasswordMask",[s.action],Object.getOwnPropertyDescriptor(E,"togglePasswordMask"),E),E))
e.default=L})),define("discourse/controllers/move-to-topic",["exports","@ember/controller","@ember/object/computed","discourse/models/topic","discourse/lib/url","I18n","discourse/mixins/modal-functionality","discourse-common/utils/decorators","discourse/lib/ajax-error","@ember/utils","@ember/runloop"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m,h,f
function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var b=t.default.extend(s.default,(d=(0,l.default)("saving","selectedTopicId","topicName"),p=(0,l.default)("saving","newTopic","existingTopic","newMessage","existingMessage"),m=(0,l.default)("selectedAllPosts","selectedPosts","selectedPosts.[]"),h=(0,l.default)("canSplitTopic"),f={topicName:null,saving:!1,categoryId:null,tags:null,canAddTags:(0,i.alias)("site.can_create_tag"),canTagMessages:(0,i.alias)("site.can_tag_pms"),selectedTopicId:null,newTopic:(0,i.equal)("selection","new_topic"),existingTopic:(0,i.equal)("selection","existing_topic"),newMessage:(0,i.equal)("selection","new_message"),existingMessage:(0,i.equal)("selection","existing_message"),participants:null,chronologicalOrder:!1,init(){this._super(...arguments),this.saveAttrNames=["newTopic","existingTopic","newMessage","existingMessage"],this.moveTypes=["newTopic","existingTopic","newMessage","existingMessage"]},topicController:(0,t.inject)("topic"),selectedPostsCount:(0,i.alias)("topicController.selectedPostsCount"),selectedAllPosts:(0,i.alias)("topicController.selectedAllPosts"),selectedPosts:(0,i.alias)("topicController.selectedPosts"),buttonDisabled:(e,t,i)=>e||(0,u.isEmpty)(t)&&(0,u.isEmpty)(i),buttonTitle:(e,t,i,n,r)=>t?o.default.t("topic.split_topic.title"):i?o.default.t("topic.merge_topic.title"):n?o.default.t("topic.move_to_new_message.title"):r?o.default.t("topic.move_to_existing_message.title"):o.default.t("saving"),onShow(){this.setProperties({"modal.modalClass":"choose-topic-modal",saving:!1,selection:"new_topic",categoryId:null,topicName:"",tags:null,participants:[],selectedTopicId:null,chronologicalOrder:!1})
this.get("model.isPrivateMessage")?this.set("selection",this.canSplitToPM?"new_message":"existing_message"):this.canSplitTopic||(this.set("selection","existing_topic"),(0,c.next)((()=>$("#choose-topic-title").focus())))},canSplitTopic(e,t){return!e&&t.length>0&&t.sort(((e,t)=>e.post_number-t.post_number))[0].post_type===this.site.get("post_types.regular")},canSplitToPM(e){return e&&this.currentUser&&this.currentUser.admin},actions:{performMove(){this.moveTypes.forEach((e=>{this.get(e)&&this.send("movePostsTo",e)}))},movePostsTo(e){this.set("saving",!0)
const t=this.get("model.id")
let i,s
"existingTopic"===e?(i={destination_topic_id:this.selectedTopicId,chronological_order:this.chronologicalOrder},s=Object.assign({post_ids:this.get("topicController.selectedPostIds")},i)):"existingMessage"===e?(i={destination_topic_id:this.selectedTopicId,participants:this.participants.join(","),archetype:"private_message",chronological_order:this.chronologicalOrder},s=Object.assign({post_ids:this.get("topicController.selectedPostIds")},i)):"newTopic"===e?(i={},s={title:this.topicName,post_ids:this.get("topicController.selectedPostIds"),category_id:this.categoryId,tags:this.tags}):(i={},s={title:this.topicName,post_ids:this.get("topicController.selectedPostIds"),tags:this.tags,archetype:"private_message"})
return(this.get("topicController.selectedAllPosts")?(0,n.mergeTopic)(t,i):(0,n.movePosts)(t,s)).then((e=>{this.send("closeModal"),this.topicController.send("toggleMultiSelect"),r.default.routeTo(e.url)})).catch((0,a.flashAjaxError)(this,o.default.t("topic.move_to.error"))).finally((()=>{this.set("saving",!1)})),!1}}},g(f,"buttonDisabled",[d],Object.getOwnPropertyDescriptor(f,"buttonDisabled"),f),g(f,"buttonTitle",[p],Object.getOwnPropertyDescriptor(f,"buttonTitle"),f),g(f,"canSplitTopic",[m],Object.getOwnPropertyDescriptor(f,"canSplitTopic"),f),g(f,"canSplitToPM",[h],Object.getOwnPropertyDescriptor(f,"canSplitToPM"),f),f))
e.default=b})),define("discourse/controllers/navigation/categories",["exports","discourse/controllers/navigation/default","@ember/controller"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({discoveryCategories:(0,i.inject)("discovery/categories")})
e.default=n})),define("discourse/controllers/navigation/category",["exports","@ember/object/computed","discourse/mixins/filter-mode","discourse/controllers/navigation/default"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=n.default.extend(i.default,{showingParentCategory:(0,t.none)("category.parentCategory"),showingSubcategoryList:(0,t.and)("category.show_subcategory_list","showingParentCategory")})
e.default=r})),define("discourse/controllers/navigation/default",["exports","@ember/controller","discourse/mixins/filter-mode","discourse-common/utils/decorators","@ember/service","discourse/lib/topic-list-tracked-filter"],(function(e,t,i,n,r,o){var s,l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a,u,c,d,p,m,h=t.default.extend(i.default,(s=(0,n.default)("router.currentRoute.queryParams.f"),l={discovery:(0,t.inject)(),router:(0,r.inject)(),skipCategoriesNavItem:e=>e===o.TRACKED_QUERY_PARAM_VALUE},a=l,u="skipCategoriesNavItem",c=[s],d=Object.getOwnPropertyDescriptor(l,"skipCategoriesNavItem"),p=l,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),l))
e.default=h})),define("discourse/controllers/navigation/filter",["exports","@ember/controller"],(function(e,t){var i,n,r
function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let s=(i=(0,t.inject)("discovery/filter"),n=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="discoveryFilter",n=this,(i=r)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),o(this,"queryString",""),this.queryString=this.discoveryFilter.q}},l=n.prototype,a="discoveryFilter",u=[i],c={configurable:!0,enumerable:!0,writable:!0,initializer:null},p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),r=p,n)
var l,a,u,c,d,p
e.default=s})),define("discourse/controllers/password-reset",["exports","discourse/lib/url","@ember/object","@ember/object/computed","@ember/controller","I18n","discourse/mixins/password-validation","discourse/models/user","discourse/lib/ajax","discourse-common/utils/decorators","discourse-common/lib/get-url","discourse/lib/webauthn","discourse/lib/utilities"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){var m,h,f,g
function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var y=r.default.extend(s.default,(m=(0,u.default)("model.security_key_required"),h=(0,u.default)(),f=(0,u.default)("redirectTo"),b(g={isDeveloper:(0,n.alias)("model.is_developer"),admin:(0,n.alias)("model.admin"),secondFactorRequired:(0,n.alias)("model.second_factor_required"),securityKeyRequired:(0,n.alias)("model.security_key_required"),backupEnabled:(0,n.alias)("model.backup_enabled"),securityKeyOrSecondFactorRequired:(0,n.or)("model.second_factor_required","model.security_key_required"),otherMethodAllowed:(0,n.readOnly)("model.multiple_second_factor_methods"),secondFactorMethod:e=>e?l.SECOND_FACTOR_METHODS.SECURITY_KEY:l.SECOND_FACTOR_METHODS.TOTP,passwordRequired:!0,errorMessage:null,successMessage:null,requiresApproval:!1,redirected:!1,maskPassword:!0,continueButtonText(){return o.default.t("password_reset.continue",{site_name:this.siteSettings.title})},redirectHref:e=>(0,c.default)(e||"/"),lockImageUrl:(0,c.default)("/images/lock.svg"),done(e){if(e&&(0,p.modKeysPressed)(e).length>0)return!1
e?.preventDefault(),this.set("redirected",!0),t.default.redirectTo(this.redirectTo||"/")},togglePasswordMask(){this.toggleProperty("maskPassword")},actions:{submit(){(0,a.ajax)({url:(0,t.userPath)(`password-reset/${this.get("model.token")}.json`),type:"PUT",data:{password:this.accountPassword,second_factor_token:this.securityKeyCredential||this.secondFactorToken,second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()}}).then((e=>{e.success?(this.set("successMessage",e.message),this.set("redirectTo",e.redirect_to),e.requires_approval?this.set("requiresApproval",!0):(this.set("redirected",!0),t.default.redirectTo(e.redirect_to||"/"))):(e.errors&&!e.errors.password?this.setProperties({secondFactorRequired:this.secondFactorRequired,securityKeyRequired:this.securityKeyRequired,password:null,errorMessage:e.message}):this.secondFactorRequired||this.securityKeyRequired?this.setProperties({secondFactorRequired:!1,securityKeyRequired:!1,errorMessage:null}):e.errors&&e.errors.password&&e.errors.password.length>0&&(this.rejectedPasswords.pushObject(this.accountPassword),this.rejectedPasswordsMessages.set(this.accountPassword,e.errors.password[0])),e.message&&this.set("errorMessage",e.message))})).catch((e=>{if(!e.jqXHR||429!==e.jqXHR.status)throw new Error(e)
this.set("errorMessage",o.default.t("user.second_factor.rate_limit"))}))},authenticateSecurityKey(){(0,d.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,(e=>{this.set("securityKeyCredential",e),this.send("submit")}),(e=>{this.setProperties({securityKeyRequired:!0,password:null,errorMessage:e})}))}}},"secondFactorMethod",[m],Object.getOwnPropertyDescriptor(g,"secondFactorMethod"),g),b(g,"continueButtonText",[h],Object.getOwnPropertyDescriptor(g,"continueButtonText"),g),b(g,"redirectHref",[f],Object.getOwnPropertyDescriptor(g,"redirectHref"),g),b(g,"done",[i.action],Object.getOwnPropertyDescriptor(g,"done"),g),b(g,"togglePasswordMask",[i.action],Object.getOwnPropertyDescriptor(g,"togglePasswordMask"),g),g))
e.default=y})),define("discourse/controllers/preferences",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({})
e.default=i})),define("discourse/controllers/preferences/account",["exports","@ember/object/computed","discourse/lib/computed","discourse/mixins/can-check-emails","@ember/controller","@ember/object","I18n","discourse-common/utils/decorators","discourse/models/login-method","discourse/lib/url","discourse-common/lib/get-url","discourse/lib/ajax-error","@ember/service","@ember/runloop","discourse/lib/show-modal","discourse/lib/export-csv"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f){var g,b,y,_,v,w,k,x
function P(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var O=r.default.extend(n.default,(g=(0,l.default)(),b=(0,l.default)("model.filteredGroups"),y=(0,l.default)("model.associated_accounts"),_=(0,l.default)("model.associated_accounts.[]"),v=(0,l.default)("model.email","model.secondary_emails.[]","model.unconfirmed_emails.[]"),w=(0,l.default)("model.second_factor_enabled","canCheckEmails","model.is_anonymous"),k=(0,l.default)("siteSettings.max_allowed_secondary_emails","model.can_edit_email"),x={dialog:(0,p.inject)(),user:(0,r.inject)(),canDownloadPosts:(0,t.alias)("user.viewingSelf"),init(){this._super(...arguments),this.saveAttrNames=["name","title","primary_group_id","flair_group_id","status"],this.set("revoking",{})},canEditName:(0,i.setting)("enable_names"),canSelectUserStatus:(0,i.setting)("enable_user_status"),canSaveUser:!0,newNameInput:null,newTitleInput:null,newPrimaryGroupInput:null,newStatus:null,revoking:null,cannotDeleteAccount:(0,t.not)("currentUser.can_delete_account"),deleteDisabled:(0,t.or)("model.isSaving","deleting","cannotDeleteAccount"),reset(){this.set("passwordProgress",null)},nameInstructions(){return s.default.t(this.siteSettings.full_name_required?"user.name.instructions_required":"user.name.instructions")},canSelectTitle:(0,t.gt)("model.availableTitles.length",0),canSelectFlair:(0,t.gt)("model.availableFlairs.length",0),canSelectPrimaryGroup(e){return e.length>0&&this.siteSettings.user_selected_primary_groups},associatedAccountsLoaded:e=>void 0!==e,authProviders:e=>(0,a.findAll)().map((t=>({method:t,account:e.find((e=>e.name===t.name))}))).filter((e=>e.account||e.method.can_connect)),disableConnectButtons:(0,i.propertyNotEqual)("model.id","currentUser.id"),emails(e,t,i){const n=[]
return e&&n.push(o.default.create({email:e,primary:!0,confirmed:!0})),t&&t.forEach((e=>{n.push(o.default.create({email:e,confirmed:!0}))})),i&&i.forEach((e=>{n.push(o.default.create({email:e}))})),n.sort(((e,t)=>e.email.localeCompare(t.email)))},canUpdateAssociatedAccounts:(e,t,i)=>!(e||!t||i)&&(0,a.findAll)().length>0,canAddEmail:(e,t)=>e>0&&t,resendConfirmationEmail(e,t){t?.preventDefault(),e.set("resending",!0),this.model.addEmail(e.email).then((()=>{e.set("resent",!0)})).finally((()=>{e.set("resending",!1)}))},showUserStatusModal(e){(0,h.default)("user-status",{title:"user_status.set_custom_status",modalClass:"user-status",model:{status:e,hidePauseNotifications:!0,saveAction:e=>this.set("newStatus",e),deleteAction:()=>this.set("newStatus",null)}})},actions:{save(){return this.set("saved",!1),this.model.setProperties({name:this.newNameInput,title:this.newTitleInput,primary_group_id:this.newPrimaryGroupInput,flair_group_id:this.newFlairGroupId,status:this.newStatus}),this.model.save(this.saveAttrNames).then((()=>this.set("saved",!0))).catch(d.popupAjaxError)},setPrimaryEmail(e){this.model.setPrimaryEmail(e).catch(d.popupAjaxError)},destroyEmail(e){this.model.destroyEmail(e)},delete(){this.dialog.alert({message:s.default.t("user.delete_account_confirm"),buttons:[{icon:"exclamation-triangle",label:s.default.t("user.delete_account"),class:"btn-danger",action:()=>this.model.delete().then((()=>{(0,m.next)((()=>{this.dialog.alert({message:s.default.t("user.deleted_yourself"),didConfirm:()=>u.default.redirectAbsolute((0,c.default)("/")),didCancel:()=>u.default.redirectAbsolute((0,c.default)("/"))})}))}),(()=>{this.dialog.alert(s.default.t("user.delete_yourself_not_allowed")),this.set("deleting",!1)}))},{label:s.default.t("composer.cancel")}]})},revokeAccount(e){this.set(`revoking.${e.name}`,!0),this.model.revokeAssociatedAccount(e.name).then((t=>{t.success?this.model.associated_accounts.removeObject(e):this.dialog.alert(t.message)})).catch(d.popupAjaxError).finally((()=>this.set(`revoking.${e.name}`,!1)))},connectAccount(e){e.doLogin({reconnect:!0})},exportUserArchive(){this.dialog.yesNoConfirm({message:s.default.t("user.download_archive.confirm"),didConfirm:()=>(0,f.exportUserArchive)()})}}},P(x,"nameInstructions",[g],Object.getOwnPropertyDescriptor(x,"nameInstructions"),x),P(x,"canSelectPrimaryGroup",[b],Object.getOwnPropertyDescriptor(x,"canSelectPrimaryGroup"),x),P(x,"associatedAccountsLoaded",[y],Object.getOwnPropertyDescriptor(x,"associatedAccountsLoaded"),x),P(x,"authProviders",[_],Object.getOwnPropertyDescriptor(x,"authProviders"),x),P(x,"emails",[v],Object.getOwnPropertyDescriptor(x,"emails"),x),P(x,"canUpdateAssociatedAccounts",[w],Object.getOwnPropertyDescriptor(x,"canUpdateAssociatedAccounts"),x),P(x,"canAddEmail",[k],Object.getOwnPropertyDescriptor(x,"canAddEmail"),x),P(x,"resendConfirmationEmail",[o.action],Object.getOwnPropertyDescriptor(x,"resendConfirmationEmail"),x),P(x,"showUserStatusModal",[o.action],Object.getOwnPropertyDescriptor(x,"showUserStatusModal"),x),x))
e.default=O})),define("discourse/controllers/preferences/categories",["exports","@ember/controller","discourse-common/utils/decorators","@ember/object/computed","discourse/lib/ajax-error"],(function(e,t,i,n,r){var o,s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=t.default.extend((o=(0,i.default)("siteSettings.mute_all_categories_by_default"),s=(0,i.default)("siteSettings.mute_all_categories_by_default","model.watchedCategories","model.watchedFirstPostCategories","model.trackedCategories","model.mutedCategories","model.regularCategories"),l=(0,i.default)("siteSettings.remove_muted_tags_from_latest"),u(a={saveAttrNames:e=>["watched_category_ids","tracked_category_ids","watched_first_post_category_ids",e?"regular_category_ids":"muted_category_ids"],selectedCategories(e,t,i,n,r,o){let s=[].concat(t,i,n)
return s=s.concat(e?o:r),s.filter((e=>e))},canSee(){return this.get("currentUser.id")===this.get("model.id")},hideMutedTags(){return"never"!==this.siteSettings.remove_muted_tags_from_latest},canSave:(0,n.or)("canSee","currentUser.admin"),actions:{save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then((()=>{this.set("saved",!0)})).catch(r.popupAjaxError)}}},"saveAttrNames",[o],Object.getOwnPropertyDescriptor(a,"saveAttrNames"),a),u(a,"selectedCategories",[s],Object.getOwnPropertyDescriptor(a,"selectedCategories"),a),u(a,"canSee",[i.default],Object.getOwnPropertyDescriptor(a,"canSee"),a),u(a,"hideMutedTags",[l],Object.getOwnPropertyDescriptor(a,"hideMutedTags"),a),a))
e.default=c})),define("discourse/controllers/preferences/email",["exports","@ember/object/computed","@ember/controller","@ember/object","I18n","discourse-common/utils/decorators","discourse/lib/utilities","discourse/lib/computed"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p
function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var h=i.default.extend((a=(0,o.default)("newEmail"),u=(0,o.default)("saving","new"),c=(0,o.default)("newEmail"),d=(0,o.default)("invalidEmail","oldEmail","newEmail"),m(p={queryParams:["new"],taken:!1,saving:!1,error:!1,success:!1,oldEmail:null,newEmail:null,successMessage:null,newEmailEmpty:(0,t.empty)("newEmail"),saveDisabled:(0,t.or)("saving","newEmailEmpty","taken","unchanged","invalidEmail"),unchanged:(0,l.propertyEqual)("newEmailLower","oldEmail"),newEmailLower:e=>e.toLowerCase().trim(),saveButtonText:(e,t)=>e?r.default.t("saving"):t?r.default.t("user.add_email.add"):r.default.t("user.change"),invalidEmail:e=>!(0,s.emailValid)(e),emailValidation(e,t,i){if(e&&(t||i))return n.default.create({failed:!0,reason:r.default.t("user.email.invalid")})},reset(){this.setProperties({taken:!1,saving:!1,error:!1,success:!1,newEmail:null})},actions:{saveEmail(){return this.set("saving",!0),(this.new?this.model.addEmail(this.newEmail):this.model.changeEmail(this.newEmail)).then((()=>{this.set("success",!0),this.model.staff?this.set("successMessage",r.default.t("user.change_email.success_staff")):this.currentUser.admin?this.set("successMessage",r.default.t("user.change_email.success_via_admin")):this.set("successMessage",r.default.t("user.change_email.success"))}),(e=>{this.setProperties({error:!0,saving:!1}),e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors&&e.jqXHR.responseJSON.errors[0]?this.set("errorMessage",e.jqXHR.responseJSON.errors[0]):this.set("errorMessage",r.default.t("user.change_email.error"))}))}}},"newEmailLower",[a],Object.getOwnPropertyDescriptor(p,"newEmailLower"),p),m(p,"saveButtonText",[u],Object.getOwnPropertyDescriptor(p,"saveButtonText"),p),m(p,"invalidEmail",[c],Object.getOwnPropertyDescriptor(p,"invalidEmail"),p),m(p,"emailValidation",[d],Object.getOwnPropertyDescriptor(p,"emailValidation"),p),p))
e.default=h})),define("discourse/controllers/preferences/emails",["exports","@ember/controller","I18n","discourse-common/utils/decorators","@ember/object/computed","discourse/lib/ajax-error"],(function(e,t,i,n,r,o){var s,l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=0,p=1,m=2
var h=t.default.extend((s=(0,n.default)(),l=(0,n.default)(),a=(0,n.default)(),u={subpageTitle:i.default.t("user.preferences_nav.emails"),emailMessagesLevelAway:(0,r.equal)("model.user_option.email_messages_level",p),emailLevelAway:(0,r.equal)("model.user_option.email_level",p),init(){this._super(...arguments),this.saveAttrNames=["email_level","email_messages_level","mailing_list_mode","mailing_list_mode_frequency","email_digests","email_in_reply_to","email_previous_replies","digest_after_minutes","include_tl0_in_digests"],this.previousRepliesOptions=[{name:i.default.t("user.email_previous_replies.always"),value:0},{name:i.default.t("user.email_previous_replies.unless_emailed"),value:1},{name:i.default.t("user.email_previous_replies.never"),value:2}],this.emailLevelOptions=[{name:i.default.t("user.email_level.always"),value:d},{name:i.default.t("user.email_level.only_when_away"),value:p},{name:i.default.t("user.email_level.never"),value:m}],this.digestFrequencies=[{name:i.default.t("user.email_digests.every_30_minutes"),value:30},{name:i.default.t("user.email_digests.every_hour"),value:60},{name:i.default.t("user.email_digests.daily"),value:1440},{name:i.default.t("user.email_digests.weekly"),value:10080},{name:i.default.t("user.email_digests.every_month"),value:43200},{name:i.default.t("user.email_digests.every_six_months"),value:259200}]},frequencyEstimate(){let e=this.get("model.mailing_list_posts_per_day")
return!e||e<2?i.default.t("user.mailing_list_mode.few_per_day"):i.default.t("user.mailing_list_mode.many_per_day",{dailyEmailEstimate:e})},mailingListModeOptions(){return[{name:this.frequencyEstimate,value:1},{name:i.default.t("user.mailing_list_mode.individual_no_echo"),value:2}]},emailFrequencyInstructions(){return this.siteSettings.email_time_window_mins?i.default.t("user.email.frequency",{count:this.siteSettings.email_time_window_mins}):null},actions:{save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then((()=>{this.set("saved",!0)})).catch(o.popupAjaxError)}}},c(u,"frequencyEstimate",[s],Object.getOwnPropertyDescriptor(u,"frequencyEstimate"),u),c(u,"mailingListModeOptions",[l],Object.getOwnPropertyDescriptor(u,"mailingListModeOptions"),u),c(u,"emailFrequencyInstructions",[a],Object.getOwnPropertyDescriptor(u,"emailFrequencyInstructions"),u),u))
e.default=h})),define("discourse/controllers/preferences/interface",["exports","@ember/controller","discourse/models/bookmark","discourse/models/session","discourse/lib/utilities","discourse/lib/color-scheme-picker","discourse/lib/theme-selector","@ember/object/computed","I18n","@ember/object","discourse-common/utils/decorators","discourse/lib/ajax-error","discourse/helpers/page-reloader","discourse/lib/computed"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g,b,y,_,v,w,k,x
function P(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const O={1:"latest",2:"categories",3:"unread",4:"new",5:"top",6:"bookmarks",7:"unseen"},T=["smallest","smaller","normal","larger","largest"],S=["notifications","contextual"]
var j=t.default.extend((h=(0,c.default)("makeThemeDefault"),f=(0,c.default)(),g=(0,c.default)("userSelectableThemes"),b=(0,c.default)("themeId"),y=(0,c.default)("userSelectableThemes","userSelectableColorSchemes","themeId"),_=(0,c.default)("model.user_option.theme_ids","themeId"),v=(0,c.default)("model.user_option.text_size","textSize"),w=(0,c.default)(),k=(0,c.default)("userSelectableDarkColorSchemes"),x={currentThemeId:-1,previewingColorScheme:!1,selectedDarkColorSchemeId:null,preferencesController:(0,t.inject)("preferences"),makeColorSchemeDefault:!0,canPreviewColorScheme:(0,m.propertyEqual)("model.id","currentUser.id"),subpageTitle:a.default.t("user.preferences_nav.interface"),init(){this._super(...arguments),this.set("selectedDarkColorSchemeId",this.session.userDarkSchemeId)},saveAttrNames(e){let t=["locale","external_links_in_new_tab","dynamic_favicon","enable_quoting","enable_defer","automatically_unpin_topics","allow_private_messages","enable_allowed_pm_users","homepage_id","hide_profile_and_presence","text_size","title_count_mode","skip_new_user_tips","seen_popups","color_scheme_id","dark_scheme_id","bookmark_auto_delete_preference"]
return e&&t.push("theme_ids"),t},availableLocales(){return JSON.parse(this.siteSettings.available_locales)},defaultDarkSchemeId(){return this.siteSettings.default_dark_mode_color_scheme_id},textSizes:()=>T.map((e=>({name:a.default.t(`user.text_size.${e}`),value:e}))),homepageId:(0,u.computed)("model.user_option.homepage_id","userSelectableHome.[]",(function(){return this.model.user_option.homepage_id||this.userSelectableHome.firstObject.value})),titleCountModes:()=>S.map((e=>({name:a.default.t(`user.title_count_mode.${e}`),value:e}))),bookmarkAfterNotificationModes:()=>Object.keys(i.AUTO_DELETE_PREFERENCES).map((e=>({value:i.AUTO_DELETE_PREFERENCES[e],name:a.default.t(`bookmarks.auto_delete_preference.${e.toLowerCase()}`)}))),userSelectableThemes(){return(0,s.listThemes)(this.site)},showThemeSelector:e=>e&&e.length>1,themeIdChanged(e){return-1===this.currentThemeId?(this.set("currentThemeId",e),!1):this.currentThemeId!==e},userSelectableColorSchemes(){return(0,o.listColorSchemes)(this.site)},showColorSchemeSelector:(0,l.reads)("userSelectableColorSchemes.length"),selectedColorSchemeNoneLabel:a.default.t("user.color_schemes.default_description"),currentSchemeCanBeSelected(e,t,i){if(!e||!i)return!1
const n=e.findBy("id",i)
return!!n&&t.findBy("id",n.color_scheme_id)},showColorSchemeNoneItem:(0,l.not)("currentSchemeCanBeSelected"),showThemeSetDefault:(e,t)=>!e||e[0]!==t,showTextSetDefault:(e,t)=>e!==t,homeChanged(){const e=this.siteSettings.top_menu.split("|")[0].split(",")[0],t=O[this.get("model.user_option.homepage_id")];(0,r.setDefaultHomepage)(t||e)},userSelectableHome(){let e={}
Object.keys(O).forEach((t=>{e[O[t]]=t}))
let t=[]
return this.siteSettings.top_menu.split("|").forEach((i=>{let n=e[i]
n&&t.push({name:a.default.t(`filters.${i}.title`),value:Number(n)})})),t},showDarkModeToggle(){return this.defaultDarkSchemeId>0&&!this.showDarkColorSchemeSelector},userSelectableDarkColorSchemes(){return(0,o.listColorSchemes)(this.site,{darkOnly:!0})},showDarkColorSchemeSelector(e){const t=this.defaultDarkSchemeId>0?2:1
return e&&e.length>t},enableDarkMode:(0,u.computed)({set:(e,t)=>t,get(){return-1!==this.get("model.user_option.dark_scheme_id")}}),selectedColorSchemeId:(0,u.computed)({set:(e,t)=>t,get(){if(!this.session.userColorSchemeId)return
const e=this.userSelectableThemes?.findBy("id",this.themeId)
return e?.color_scheme_id!==this.session.userColorSchemeId||this.userSelectableColorSchemes.findBy("id",this.session.userColorSchemeId)?this.session.userColorSchemeId:void 0}}),actions:{save(){this.set("saved",!1)
const e=this.makeThemeDefault
e&&this.set("model.user_option.theme_ids",[this.themeId])
const t=this.makeTextSizeDefault
return t&&this.set("model.user_option.text_size",this.textSize),this.showColorSchemeSelector?this.makeColorSchemeDefault&&this.set("model.user_option.color_scheme_id",this.selectedColorSchemeId):this.set("model.user_option.color_scheme_id",null),this.showDarkModeToggle?this.set("model.user_option.dark_scheme_id",this.enableDarkMode?null:-1):this.defaultDarkSchemeId>0&&this.selectedDarkColorSchemeId===this.defaultDarkSchemeId?this.set("model.user_option.dark_scheme_id",null):this.set("model.user_option.dark_scheme_id",this.selectedDarkColorSchemeId),this.model.save(this.saveAttrNames).then((()=>{this.set("saved",!0),e?(0,s.setLocalTheme)([]):(0,s.setLocalTheme)([this.themeId],this.get("model.user_option.theme_key_seq")),t?this.model.updateTextSizeCookie(null):this.model.updateTextSizeCookie(this.textSize),this.makeColorSchemeDefault?((0,o.updateColorSchemeCookie)(null),(0,o.updateColorSchemeCookie)(null,{dark:!0})):((0,o.updateColorSchemeCookie)(this.selectedColorSchemeId),this.defaultDarkSchemeId>0&&this.selectedDarkColorSchemeId===this.defaultDarkSchemeId?(0,o.updateColorSchemeCookie)(null,{dark:!0}):(0,o.updateColorSchemeCookie)(this.selectedDarkColorSchemeId,{dark:!0})),this.homeChanged(),this.themeId&&this.themeId!==this.currentThemeId&&(0,p.reload)()})).catch(d.popupAjaxError)},selectTextSize(e){const t=document.documentElement.classList
T.forEach((i=>{const n=`text-size-${i}`
e===i?t.add(n):t.remove(n)})),this.session.requiresRefresh=!0,this.set("textSize",e)},loadColorScheme(e){if(this.setProperties({selectedColorSchemeId:e,previewingColorScheme:this.canPreviewColorScheme}),this.canPreviewColorScheme){if(e<0){const t=this.userSelectableThemes.findBy("id",this.themeId)
t&&t.color_scheme_id&&(e=t.color_scheme_id)}(0,o.loadColorSchemeStylesheet)(e,this.themeId),-1===this.selectedDarkColorSchemeId&&(0,o.loadColorSchemeStylesheet)(e,this.themeId,!0)}},loadDarkColorScheme(e){this.setProperties({selectedDarkColorSchemeId:e,previewingColorScheme:this.canPreviewColorScheme}),this.canPreviewColorScheme&&(-1===e?((0,o.loadColorSchemeStylesheet)(this.selectedColorSchemeId,this.themeId,!0),n.default.currentProp("darkModeAvailable",!1)):((0,o.loadColorSchemeStylesheet)(e,this.themeId,!0),n.default.currentProp("darkModeAvailable",!0)))},undoColorSchemePreview(){this.setProperties({selectedColorSchemeId:this.session.userColorSchemeId,selectedDarkColorSchemeId:this.session.userDarkSchemeId,previewingColorScheme:!1})
const e=document.querySelector("link#cs-preview-dark"),t=document.querySelector("link#cs-preview-light")
e&&e.remove(),t&&t.remove()},resetSeenUserTips(){return this.model.set("user_option.skip_new_user_tips",!1),this.model.set("user_option.seen_popups",null),this.model.save(["skip_new_user_tips","seen_popups"])}}},P(x,"saveAttrNames",[h],Object.getOwnPropertyDescriptor(x,"saveAttrNames"),x),P(x,"availableLocales",[f],Object.getOwnPropertyDescriptor(x,"availableLocales"),x),P(x,"defaultDarkSchemeId",[c.default],Object.getOwnPropertyDescriptor(x,"defaultDarkSchemeId"),x),P(x,"textSizes",[c.default],Object.getOwnPropertyDescriptor(x,"textSizes"),x),P(x,"titleCountModes",[c.default],Object.getOwnPropertyDescriptor(x,"titleCountModes"),x),P(x,"bookmarkAfterNotificationModes",[c.default],Object.getOwnPropertyDescriptor(x,"bookmarkAfterNotificationModes"),x),P(x,"userSelectableThemes",[c.default],Object.getOwnPropertyDescriptor(x,"userSelectableThemes"),x),P(x,"showThemeSelector",[g],Object.getOwnPropertyDescriptor(x,"showThemeSelector"),x),P(x,"themeIdChanged",[b],Object.getOwnPropertyDescriptor(x,"themeIdChanged"),x),P(x,"userSelectableColorSchemes",[c.default],Object.getOwnPropertyDescriptor(x,"userSelectableColorSchemes"),x),P(x,"currentSchemeCanBeSelected",[y],Object.getOwnPropertyDescriptor(x,"currentSchemeCanBeSelected"),x),P(x,"showThemeSetDefault",[_],Object.getOwnPropertyDescriptor(x,"showThemeSetDefault"),x),P(x,"showTextSetDefault",[v],Object.getOwnPropertyDescriptor(x,"showTextSetDefault"),x),P(x,"userSelectableHome",[w],Object.getOwnPropertyDescriptor(x,"userSelectableHome"),x),P(x,"showDarkModeToggle",[c.default],Object.getOwnPropertyDescriptor(x,"showDarkModeToggle"),x),P(x,"userSelectableDarkColorSchemes",[c.default],Object.getOwnPropertyDescriptor(x,"userSelectableDarkColorSchemes"),x),P(x,"showDarkColorSchemeSelector",[k],Object.getOwnPropertyDescriptor(x,"showDarkColorSchemeSelector"),x),x))
e.default=j})),define("discourse/controllers/preferences/navigation-menu",["exports","@ember/controller","@ember/object","@glimmer/tracking","I18n","discourse/lib/ajax-error"],(function(e,t,i,n,r,o){var s,l
function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let c=(s=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="saved",n=this,(i=l)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),a(this,"subpageTitle",r.default.t("user.preferences_nav.navigation_menu")),a(this,"saveAttrNames",["sidebar_link_to_filtered_list","sidebar_show_count_of_new_items"])}save(){const e=this.model.sidebarLinkToFilteredList,t=this.model.sidebarShowCountOfNewItems
this.model.set("user_option.sidebar_link_to_filtered_list",this.newSidebarLinkToFilteredList),this.model.set("user_option.sidebar_show_count_of_new_items",this.newSidebarShowCountOfNewItems),this.model.save(this.saveAttrNames).then((()=>{this.saved=!0})).catch((i=>{this.model.set("user_option.sidebar_link_to_filtered_list",e),this.model.set("user_option.sidebar_show_count_of_new_items",t),(0,o.popupAjaxError)(i)}))}},l=u(s.prototype,"saved",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u(s.prototype,"save",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"save"),s.prototype),s)
e.default=c})),define("discourse/controllers/preferences/notifications",["exports","@ember/controller","I18n","discourse/lib/ajax-error"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({subpageTitle:i.default.t("user.preferences_nav.notifications"),init(){this._super(...arguments),this.saveAttrNames=["muted_usernames","new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying","like_notification_frequency","allow_private_messages","enable_allowed_pm_users","user_notification_schedule"],this.likeNotificationFrequencies=[{name:i.default.t("user.like_notification_frequency.always"),value:0},{name:i.default.t("user.like_notification_frequency.first_time_and_daily"),value:1},{name:i.default.t("user.like_notification_frequency.first_time"),value:2},{name:i.default.t("user.like_notification_frequency.never"),value:3}]},actions:{save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then((()=>{this.set("saved",!0)})).catch(n.popupAjaxError)}}})
e.default=r})),define("discourse/controllers/preferences/profile",["exports","@ember/controller","@ember/object","I18n","discourse/lib/ajax","discourse/lib/text","discourse-common/utils/decorators","@ember/utils","discourse/lib/ajax-error","@ember/object/computed","discourse/lib/show-modal","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h
function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var g=t.default.extend((p=(0,s.default)("model.user_fields.@each.value"),m=(0,s.default)("model.user_option.default_calendar"),h={dialog:(0,d.inject)(),subpageTitle:n.default.t("user.preferences_nav.profile"),init(){this._super(...arguments),this.saveAttrNames=["bio_raw","website","location","custom_fields","user_fields","profile_background_upload_url","card_background_upload_url","date_of_birth","timezone","default_calendar"],this.calendarOptions=[{name:n.default.t("download_calendar.google"),value:"google"},{name:n.default.t("download_calendar.ics"),value:"ics"}]},userFields(){let e=this.site.user_fields
if(!(0,l.isEmpty)(e))return this.currentUser.staff||(e=e.filterBy("editable",!0)),e.sortBy("position").map((e=>{const t=this.model.user_fields?.[e.id.toString()]
return i.default.create({field:e,value:t})}))},canChangeDefaultCalendar:e=>"none_selected"!==e,canChangeBio:(0,u.readOnly)("model.can_change_bio"),canChangeLocation:(0,u.readOnly)("model.can_change_location"),canChangeWebsite:(0,u.readOnly)("model.can_change_website"),canUploadProfileHeader:(0,u.readOnly)("model.can_upload_profile_header"),canUploadUserCardBackground:(0,u.readOnly)("model.can_upload_user_card_background"),actions:{showFeaturedTopicModal(){(0,c.default)("feature-topic-on-profile",{model:this.model,title:"user.feature_topic_on_profile.title"}).set("onClose",(()=>{document.querySelector(".feature-topic-on-profile-btn")?.focus()}))},clearFeaturedTopicFromProfile(){this.dialog.yesNoConfirm({message:n.default.t("user.feature_topic_on_profile.clear.warning"),didConfirm:()=>(0,r.ajax)(`/u/${this.model.username}/clear-featured-topic`,{type:"PUT"}).then((()=>{this.model.set("featured_topic",null)})).catch(a.popupAjaxError)})},useCurrentTimezone(){this.model.set("user_option.timezone",moment.tz.guess())},_updateUserFields(){const e=this.model,t=this.userFields
if(!(0,l.isEmpty)(t)){const i=e.get("user_fields");(0,l.isEmpty)(i)||t.forEach((function(e){const t=e.get("value")
i[e.get("field.id").toString()]=(0,l.isEmpty)(t)?null:t}))}},save(){this.set("saved",!1)
const e=this.model
return this.send("_updateUserFields"),e.save(this.saveAttrNames).then((()=>{(0,o.cookAsync)(e.get("bio_raw")).then((()=>{e.set("bio_cooked"),this.set("saved",!0)})).catch(a.popupAjaxError)})).catch(a.popupAjaxError)}}},f(h,"userFields",[p],Object.getOwnPropertyDescriptor(h,"userFields"),h),f(h,"canChangeDefaultCalendar",[m],Object.getOwnPropertyDescriptor(h,"canChangeDefaultCalendar"),h),h))
e.default=g})),define("discourse/controllers/preferences/second-factor",["exports","discourse/lib/url","discourse/mixins/can-check-emails","@ember/controller","I18n","discourse/models/user","@ember/object","@ember/object/computed","discourse-common/utils/decorators","discourse/models/login-method","discourse/lib/ajax-error","@ember/service","discourse/components/dialog-messages/second-factor-confirm-phrase","discourse/components/modal/second-factor-add-security-key","discourse/components/modal/second-factor-edit-security-key","discourse/components/modal/second-factor-edit","discourse/components/modal/second-factor-add-totp","discourse/components/modal/second-factor-backup-edit"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b){var y,_
function v(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var w=n.default.extend(i.default,(y=(0,a.default)("currentUser"),_={dialog:(0,d.inject)(),modal:(0,d.inject)(),loading:!1,dirty:!1,resetPasswordLoading:!1,resetPasswordProgress:"",password:null,errorMessage:null,newUsername:null,backupEnabled:(0,l.alias)("model.second_factor_backup_enabled"),secondFactorMethod:o.SECOND_FACTOR_METHODS.TOTP,totps:null,loaded:!1,init(){this._super(...arguments),this.set("totps",[])},displayOAuthWarning:()=>(0,u.findAll)().length>0,showEnforcedNotice:e=>e&&e.enforcedSecondFactor,handleError(e){if(e.jqXHR&&(e=e.jqXHR),"invalid_access"===e.responseJSON.error_type){const e=this.model.username.toLowerCase()
t.default.redirectTo((0,t.userPath)(`${e}/preferences/second-factor`))}else(0,c.popupAjaxError)(e)},setBackupEnabled(e){this.set("backupEnabled",e)},setCodesRemaining(e){this.model.set("second_factor_remaining_backup_codes",e)},loadSecondFactors(){!1!==this.dirty&&(this.set("loading",!0),this.model.loadSecondFactorCodes(this.password).then((e=>{e.error?this.set("errorMessage",e.error):(this.setProperties({errorMessage:null,loaded:!0,totps:e.totps,security_keys:e.security_keys,password:null,dirty:!1}),this.set("model.second_factor_enabled",e.totps&&e.totps.length>0||e.security_keys&&e.security_keys.length>0))})).catch((e=>this.handleError(e))).finally((()=>this.set("loading",!1))))},markDirty(){this.set("dirty",!0)},resetPassword(e){return e?.preventDefault(),this.setProperties({resetPasswordLoading:!0,resetPasswordProgress:""}),this.model.changePassword().then((()=>{this.set("resetPasswordProgress",r.default.t("user.change_password.success"))})).catch(c.popupAjaxError).finally((()=>this.set("resetPasswordLoading",!1)))},actions:{confirmPassword(){this.password&&(this.markDirty(),this.loadSecondFactors(),this.set("password",null))},disableAllSecondFactors(){this.loading||this.dialog.deleteConfirm({title:r.default.t("user.second_factor.disable_confirm"),bodyComponent:p.default,bodyComponentModel:{totps:this.totps,security_keys:this.security_keys},confirmButtonLabel:"user.second_factor.disable",confirmButtonDisabled:!0,confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.model.disableAllSecondFactors().then((()=>{const e=this.model.username.toLowerCase()
t.default.redirectTo((0,t.userPath)(`${e}/preferences`))})).catch((e=>this.handleError(e))).finally((()=>this.set("loading",!1)))}})},disableSingleSecondFactor(e){1!==this.totps.concat(this.security_keys).length?this.dialog.deleteConfirm({title:r.default.t("user.second_factor.delete_single_confirm_title"),message:r.default.t("user.second_factor.delete_single_confirm_message",{name:e.name}),confirmButtonLabel:"user.second_factor.delete",confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.totps.includes(e)&&this.currentUser.updateSecondFactor(e.id,e.name,!0,e.method).then((t=>{t.error||(this.markDirty(),this.set("totps",this.totps.filter((t=>t.id!==e.id||t.method!==e.method))))})).catch((e=>this.handleError(e))).finally((()=>{this.set("loading",!1)})),this.security_keys.includes(e)&&this.currentUser.updateSecurityKey(e.id,e.name,!0).then((t=>{t.error||(this.markDirty(),this.set("security_keys",this.security_keys.filter((t=>t.id!==e.id))))})).catch((e=>this.handleError(e))).finally((()=>{this.set("loading",!1)}))}}):this.send("disableAllSecondFactors")},disableSecondFactorBackup(){this.dialog.deleteConfirm({title:r.default.t("user.second_factor.delete_backup_codes_confirm_title"),message:r.default.t("user.second_factor.delete_backup_codes_confirm_message"),confirmButtonLabel:"user.second_factor.delete",confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.set("backupCodes",[]),this.set("loading",!0),this.model.updateSecondFactor(0,"",!0,o.SECOND_FACTOR_METHODS.BACKUP_CODE).then((e=>{e.error?this.set("errorMessage",e.error):(this.set("errorMessage",null),this.model.set("second_factor_backup_enabled",!1),this.markDirty(),this.send("closeModal"))})).catch((e=>{this.send("closeModal"),this.onError(e)})).finally((()=>this.set("loading",!1)))}})},async createTotp(){await this.modal.show(g.default,{model:{secondFactor:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()},async createSecurityKey(){await this.modal.show(m.default,{model:{secondFactor:this.model,markDirty:this.markDirty,onError:this.handleError}}),this.loadSecondFactors()},async editSecurityKey(e){await this.modal.show(h.default,{model:{securityKey:e,user:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()},async editSecondFactor(e){await this.modal.show(f.default,{model:{secondFactor:e,user:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()},async editSecondFactorBackup(){await this.modal.show(b.default,{model:{secondFactor:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e),setBackupEnabled:e=>this.setBackupEnabled(e),setCodesRemaining:e=>this.setCodesRemaining(e)}})}}},v(_,"displayOAuthWarning",[a.default],Object.getOwnPropertyDescriptor(_,"displayOAuthWarning"),_),v(_,"showEnforcedNotice",[y],Object.getOwnPropertyDescriptor(_,"showEnforcedNotice"),_),v(_,"handleError",[s.action],Object.getOwnPropertyDescriptor(_,"handleError"),_),v(_,"setBackupEnabled",[s.action],Object.getOwnPropertyDescriptor(_,"setBackupEnabled"),_),v(_,"setCodesRemaining",[s.action],Object.getOwnPropertyDescriptor(_,"setCodesRemaining"),_),v(_,"loadSecondFactors",[s.action],Object.getOwnPropertyDescriptor(_,"loadSecondFactors"),_),v(_,"markDirty",[s.action],Object.getOwnPropertyDescriptor(_,"markDirty"),_),v(_,"resetPassword",[s.action],Object.getOwnPropertyDescriptor(_,"resetPassword"),_),_))
e.default=w})),define("discourse/controllers/preferences/security",["exports","@ember/controller","@ember/object","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/ajax","discourse/lib/ajax-error","discourse/lib/logout","discourse/lib/show-modal","discourse/lib/url","discourse/mixins/can-check-emails","I18n"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h
function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var g=t.default.extend(c.default,(p=(0,r.default)("model.is_anonymous"),m=(0,r.default)("showAllAuthTokens","model.user_auth_tokens"),f(h={passwordProgress:null,subpageTitle:d.default.t("user.preferences_nav.security"),showAllAuthTokens:!1,canChangePassword(e){return!e&&(!this.siteSettings.enable_discourse_connect&&this.siteSettings.enable_local_logins)},authTokens:(e,t)=>(t.sort(((e,t)=>e.is_active?-1:t.is_active?1:t.seen_at.localeCompare(e.seen_at))),e?t:t.slice(0,2)),canShowAllAuthTokens:(0,n.gt)("model.user_auth_tokens.length",2),changePassword(e){if(e?.preventDefault(),!this.passwordProgress)return this.set("passwordProgress",d.default.t("user.change_password.in_progress")),this.model.changePassword().then((()=>{this.setProperties({changePasswordProgress:!1,passwordProgress:d.default.t("user.change_password.success")})})).catch((()=>{this.setProperties({changePasswordProgress:!1,passwordProgress:d.default.t("user.change_password.error")})}))},toggleShowAllAuthTokens(e){e?.preventDefault(),this.toggleProperty("showAllAuthTokens")},revokeAuthToken(e,t){t?.preventDefault(),(0,o.ajax)((0,u.userPath)(`${this.get("model.username_lower")}/preferences/revoke-auth-token`),{type:"POST",data:e?{token_id:e.id}:{}}).then((()=>{e||(0,l.default)()})).catch(s.popupAjaxError)},actions:{save(){return this.set("saved",!1),this.model.then((()=>this.set("saved",!0))).catch(s.popupAjaxError)},showToken(e){(0,a.default)("auth-token",{model:e})}}},"canChangePassword",[p],Object.getOwnPropertyDescriptor(h,"canChangePassword"),h),f(h,"authTokens",[m],Object.getOwnPropertyDescriptor(h,"authTokens"),h),f(h,"changePassword",[i.action],Object.getOwnPropertyDescriptor(h,"changePassword"),h),f(h,"toggleShowAllAuthTokens",[i.action],Object.getOwnPropertyDescriptor(h,"toggleShowAllAuthTokens"),h),f(h,"revokeAuthToken",[i.action],Object.getOwnPropertyDescriptor(h,"revokeAuthToken"),h),h))
e.default=g})),define("discourse/controllers/preferences/tags",["exports","@ember/controller","discourse-common/utils/decorators","discourse/lib/ajax-error"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=t.default.extend((r=(0,i.default)("model.watched_tags.[]","model.watching_first_post_tags.[]","model.tracked_tags.[]","model.muted_tags.[]"),o={init(){this._super(...arguments),this.saveAttrNames=["muted_tags","tracked_tags","watched_tags","watching_first_post_tags"]},selectedTags:(e,t,i,n)=>[].concat(e,t,i,n).filter((e=>e)),actions:{save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then((()=>{this.set("saved",!0)})).catch(n.popupAjaxError)}}},s=o,l="selectedTags",a=[r],u=Object.getOwnPropertyDescriptor(o,"selectedTags"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/controllers/preferences/tracking",["exports","@ember/controller","discourse/lib/notification-levels","I18n","discourse/lib/ajax-error","@ember/object","@ember/service","@glimmer/tracking"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p,m,h,f,g
function b(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function y(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let v=(a=(0,o.computed)("model.watched_tags.[]","model.watching_first_post_tags.[]","model.tracked_tags.[]","model.muted_tags.[]"),u=(0,o.computed)("model.watchedCategories","model.mutedCategories","model.watched_tags.[]","model.muted_tags.[]"),c=(0,o.computed)("model.watchedCategories","model.watchedFirstPostCategories","model.trackedCategories","model.mutedCategories","model.regularCategories","siteSettings.mute_all_categories_by_default"),d=(0,o.computed)("siteSettings.remove_muted_tags_from_latest"),p=(0,o.computed)("siteSettings.tagging_enabled","siteSettings.mute_all_categories_by_default"),m=class extends t.default{constructor(){super(...arguments),b(this,"currentUser",h,this),b(this,"siteSettings",f,this),b(this,"saved",g,this),y(this,"likeNotificationFrequencies",[{name:n.default.t("user.like_notification_frequency.always"),value:0},{name:n.default.t("user.like_notification_frequency.first_time_and_daily"),value:1},{name:n.default.t("user.like_notification_frequency.first_time"),value:2},{name:n.default.t("user.like_notification_frequency.never"),value:3}]),y(this,"autoTrackDurations",[{name:n.default.t("user.auto_track_options.never"),value:-1},{name:n.default.t("user.auto_track_options.immediately"),value:0},{name:n.default.t("user.auto_track_options.after_30_seconds"),value:3e4},{name:n.default.t("user.auto_track_options.after_1_minute"),value:6e4},{name:n.default.t("user.auto_track_options.after_2_minutes"),value:12e4},{name:n.default.t("user.auto_track_options.after_3_minutes"),value:18e4},{name:n.default.t("user.auto_track_options.after_4_minutes"),value:24e4},{name:n.default.t("user.auto_track_options.after_5_minutes"),value:3e5},{name:n.default.t("user.auto_track_options.after_10_minutes"),value:6e5}]),y(this,"notificationLevelsForReplying",[{name:n.default.t("topic.notifications.watching.title"),value:i.NotificationLevels.WATCHING},{name:n.default.t("topic.notifications.tracking.title"),value:i.NotificationLevels.TRACKING},{name:n.default.t("topic.notifications.regular.title"),value:i.NotificationLevels.REGULAR}]),y(this,"considerNewTopicOptions",[{name:n.default.t("user.new_topic_duration.not_viewed"),value:-1},{name:n.default.t("user.new_topic_duration.after_1_day"),value:1440},{name:n.default.t("user.new_topic_duration.after_2_days"),value:2880},{name:n.default.t("user.new_topic_duration.after_1_week"),value:10080},{name:n.default.t("user.new_topic_duration.after_2_weeks"),value:20160},{name:n.default.t("user.new_topic_duration.last_here"),value:-2}])}get canSee(){return this.currentUser.id===this.model.id}get selectedTags(){return[].concat(this.model.watched_tags,this.model.watching_first_post_tags,this.model.tracked_tags,this.model.muted_tags).filter((e=>e))}get showMutePrecedenceSetting(){const e=this.model.watchedCategories?.length>0&&this.model.muted_tags?.length>0||this.model.watched_tags?.length>0&&this.model.mutedCategories?.length>0
return e&&null===this.model.user_option.watched_precedence_over_muted&&(this.model.user_option.watched_precedence_over_muted=this.siteSettings.watched_precedence_over_muted),e}get selectedCategories(){return[].concat(this.model.watchedCategories,this.model.watchedFirstPostCategories,this.model.trackedCategories,this.siteSettings.mute_all_categories_by_default?this.model.regularCategories:this.model.mutedCategories).filter((e=>e))}get hideMutedTags(){return"never"!==this.siteSettings.remove_muted_tags_from_latest}get canSave(){return this.canSee||this.currentUser.admin}get saveAttrNames(){const e=["new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying",this.siteSettings.mute_all_categories_by_default?"regular_category_ids":"muted_category_ids","watched_category_ids","tracked_category_ids","watched_first_post_category_ids","watched_precedence_over_muted"]
return this.siteSettings.tagging_enabled&&e.push("muted_tags","tracked_tags","watched_tags","watching_first_post_tags"),e}save(){return this.saved=!1,this.model.save(this.saveAttrNames).then((()=>{this.saved=!0})).catch(r.popupAjaxError)}},h=_(m.prototype,"currentUser",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=_(m.prototype,"siteSettings",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=_(m.prototype,"saved",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_(m.prototype,"selectedTags",[a],Object.getOwnPropertyDescriptor(m.prototype,"selectedTags"),m.prototype),_(m.prototype,"showMutePrecedenceSetting",[u],Object.getOwnPropertyDescriptor(m.prototype,"showMutePrecedenceSetting"),m.prototype),_(m.prototype,"selectedCategories",[c],Object.getOwnPropertyDescriptor(m.prototype,"selectedCategories"),m.prototype),_(m.prototype,"hideMutedTags",[d],Object.getOwnPropertyDescriptor(m.prototype,"hideMutedTags"),m.prototype),_(m.prototype,"saveAttrNames",[p],Object.getOwnPropertyDescriptor(m.prototype,"saveAttrNames"),m.prototype),_(m.prototype,"save",[o.action],Object.getOwnPropertyDescriptor(m.prototype,"save"),m.prototype),m)
e.default=v})),define("discourse/controllers/preferences/users",["exports","@ember/object","@ember/object/computed","@ember/controller","discourse-common/utils/decorators","discourse-common/lib/helpers","discourse/lib/ajax-error"],(function(e,t,i,n,r,o,s){var l,a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var p=n.default.extend((l=(0,r.default)("model.trust_level"),a=(0,r.default)("userCanIgnore","model.staff"),u=(0,r.default)("model.user_option.allow_private_messages"),c={ignoredUsernames:(0,i.alias)("model.ignored_usernames"),userCanIgnore(e){return e>=this.siteSettings.min_trust_level_to_allow_ignore},ignoredEnabled(e,t){return this.currentUser.staff||e||t},allowPmUsersEnabled:(0,i.and)("model.user_option.enable_allowed_pm_users","model.user_option.allow_private_messages"),mutedUsernames:(0,t.computed)("model.muted_usernames",{get(){let e=this.model.muted_usernames
return"string"==typeof e&&(e=e.split(",").filter(Boolean)),(0,o.makeArray)(e).uniq()}}),allowedPmUsernames:(0,t.computed)("model.allowed_pm_usernames",{get(){let e=this.model.allowed_pm_usernames
return"string"==typeof e&&(e=e.split(",").filter(Boolean)),(0,o.makeArray)(e).uniq()}}),init(){this._super(...arguments),this.saveAttrNames=["allow_private_messages","muted_usernames","allowed_pm_usernames","enable_allowed_pm_users"]},onChangeMutedUsernames(e){this.model.set("muted_usernames",e.uniq().join(","))},onChangeAllowedPmUsernames(e){this.model.set("allowed_pm_usernames",e.uniq().join(","))},disableAllowPmUsersSetting:e=>!e,save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then((()=>this.set("saved",!0))).catch(s.popupAjaxError)}},d(c,"userCanIgnore",[l],Object.getOwnPropertyDescriptor(c,"userCanIgnore"),c),d(c,"ignoredEnabled",[a],Object.getOwnPropertyDescriptor(c,"ignoredEnabled"),c),d(c,"onChangeMutedUsernames",[t.action],Object.getOwnPropertyDescriptor(c,"onChangeMutedUsernames"),c),d(c,"onChangeAllowedPmUsernames",[t.action],Object.getOwnPropertyDescriptor(c,"onChangeAllowedPmUsernames"),c),d(c,"disableAllowPmUsersSetting",[u],Object.getOwnPropertyDescriptor(c,"disableAllowPmUsersSetting"),c),d(c,"save",[t.action],Object.getOwnPropertyDescriptor(c,"save"),c),c))
e.default=p})),define("discourse/controllers/publish-page",["exports","@ember/object","@ember/object/computed","@ember/controller","discourse/mixins/modal-functionality","discourse/lib/ajax","discourse/lib/ajax-error"],(function(e,t,i,n,r,o,s){var l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u={initializing:"initializing",checking:"checking",valid:"valid",invalid:"invalid",saving:"saving",new:"new",existing:"existing",unpublishing:"unpublishing",unpublished:"unpublished"},c={}
Object.keys(u).forEach((e=>{c[e]=(0,i.equal)("state",e)}))
var d=n.default.extend(r.default,c,(a(l={state:null,reason:null,publishedPage:null,disabled:(0,i.not)("valid"),showUrl:(0,t.computed)("state",(function(){return this.state===u.valid||this.state===u.saving||this.state===u.existing})),showUnpublish:(0,t.computed)("state",(function(){return this.state===u.existing||this.state===u.unpublishing})),onShow(){this.set("state",u.initializing),this.store.find("published_page",this.model.id).then((e=>{this.setProperties({state:u.existing,publishedPage:e})})).catch(this.startNew)},startCheckSlug(){this.state!==u.existing&&this.set("state",u.checking)},checkSlug(){if(this.state!==u.existing)return(0,o.ajax)("/pub/check-slug",{data:{slug:this.publishedPage.slug}}).then((e=>{e.valid_slug?this.set("state",u.valid):this.setProperties({state:u.invalid,reason:e.reason})}))},unpublish(){return this.set("state",u.unpublishing),this.publishedPage.destroyRecord().then((()=>{this.set("state",u.unpublished),this.model.set("publishedPage",null)})).catch((e=>{this.set("state",u.existing),(0,s.popupAjaxError)(e)}))},publish(){return this.set("state",u.saving),this.publishedPage.update(this.publishedPage.getProperties("slug","public")).then((()=>{this.set("state",u.existing),this.model.set("publishedPage",this.publishedPage)})).catch((e=>{(0,s.popupAjaxError)(e),this.set("state",u.existing)}))},startNew(){this.setProperties({state:u.new,publishedPage:this.store.createRecord("published_page",this.model.getProperties("id","slug","public"))}),this.checkSlug()},onChangePublic(e){this.publishedPage.set("public",e),this.showUnpublish&&this.publish()}},"startCheckSlug",[t.action],Object.getOwnPropertyDescriptor(l,"startCheckSlug"),l),a(l,"checkSlug",[t.action],Object.getOwnPropertyDescriptor(l,"checkSlug"),l),a(l,"unpublish",[t.action],Object.getOwnPropertyDescriptor(l,"unpublish"),l),a(l,"publish",[t.action],Object.getOwnPropertyDescriptor(l,"publish"),l),a(l,"startNew",[t.action],Object.getOwnPropertyDescriptor(l,"startNew"),l),a(l,"onChangePublic",[t.action],Object.getOwnPropertyDescriptor(l,"onChangePublic"),l),l))
e.default=d})),define("discourse/controllers/raw-email",["exports","@ember/controller","discourse/mixins/modal-functionality","discourse/models/post","@ember/object/computed"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=t.default.extend(i.default,{rawEmail:"",textPart:"",htmlPart:"",tab:"raw",showRawEmail:(0,r.equal)("tab","raw"),showTextPart:(0,r.equal)("tab","text_part"),showHtmlPart:(0,r.equal)("tab","html_part"),onShow(){this.send("displayRaw")},loadRawEmail(e){return n.default.loadRawEmail(e).then((e=>this.setProperties({rawEmail:e.raw_email,textPart:e.text_part,htmlPart:e.html_part})))},actions:{displayRaw(){this.set("tab","raw")},displayTextPart(){this.set("tab","text_part")},displayHtmlPart(){this.set("tab","html_part")}}})
e.default=o})),define("discourse/controllers/reject-reason-reviewable",["exports","@ember/controller","discourse/mixins/modal-functionality","@ember/object"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend(i.default,(o=r={rejectReason:null,sendEmail:!1,onShow(){this.setProperties({rejectReason:null,sendEmail:!1})},perform(){this.model.setProperties({rejectReason:this.rejectReason,sendEmail:this.sendEmail}),this.send("closeModal"),this.performConfirmed(this.action)}},s="perform",l=[n.action],a=Object.getOwnPropertyDescriptor(r,"perform"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/controllers/reorder-categories",["exports","discourse-common/utils/decorators","ember-buffered-proxy/proxy","@ember/controller","@ember/object/evented","discourse/mixins/modal-functionality","discourse/lib/ajax","discourse/lib/ajax-error","@ember/object/computed"],(function(e,t,i,n,r,o,s,l,a){var u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var m=n.default.extend(o.default,r.default,(u=(0,t.default)("site.categories.[]"),c=(0,t.on)("init"),d={init(){this._super(...arguments),this.categoriesSorting=["position"]},categoriesBuffered:e=>(e||[]).map((e=>i.default.create({content:e}))),categoriesOrdered:(0,a.sort)("categoriesBuffered","categoriesSorting"),reorder(){const e=(t,i,n)=>(this.categoriesOrdered.forEach((r=>{(null===t&&!r.get("parent_category_id")||r.get("parent_category_id")===t)&&(r.setProperties({depth:i,position:n++}),n=e(r.get("id"),i+1,n))})),n)
e(null,0,0),this.categoriesBuffered.forEach((e=>{e.get("hasBufferedChanges")&&e.applyBufferedChanges()})),this.notifyPropertyChange("categoriesBuffered")},countDescendants(e){return e.get("subcategories")?e.get("subcategories").reduce(((e,t)=>e+this.countDescendants(t)),e.get("subcategories").length):0},move(e,t){let i=e.get("position")+t
if(t>0){if(e.get("isParent")){let n=this.countDescendants(e)
t<=n&&(i+=n)}}else{const e=this.categoriesOrdered.find((e=>e.get("position")===i))
if(e&&e.get("ancestors")){const t=e.get("ancestors").reduce(((e,t)=>e.get("position")<t.get("position")?e:t))
i=t.get("position")}}i>=this.categoriesOrdered.length?i=this.categoriesOrdered.length-1:i<0&&(i=0),this.categoriesOrdered.map((n=>{if(t<0){if(n.get("position")<e.get("position")&&n.get("position")>=i){const e=n.get("position")+1
n.set("position",e)}}else if(n.get("position")>e.get("position")&&n.get("position")<=i){const e=n.get("position")-1
n.set("position",e)}})),e.set("position",i),this.reorder()},actions:{change(e,t){let i=parseFloat(t.target.value)
i=i<e.get("position")?Math.ceil(i):Math.floor(i)
const n=i-e.get("position")
this.move(e,n)},moveUp(e){this.move(e,-1)},moveDown(e){this.move(e,1)},save(){this.reorder()
const e={}
this.categoriesBuffered.forEach((t=>{e[t.get("id")]=t.get("position")})),(0,s.ajax)("/categories/reorder",{type:"POST",data:{mapping:JSON.stringify(e)}}).then((()=>window.location.reload())).catch(l.popupAjaxError)}}},p(d,"categoriesBuffered",[u],Object.getOwnPropertyDescriptor(d,"categoriesBuffered"),d),p(d,"reorder",[c],Object.getOwnPropertyDescriptor(d,"reorder"),d),d))
e.default=m})),define("discourse/controllers/request-group-membership-form",["exports","@ember/controller","discourse/lib/url","I18n","discourse/mixins/modal-functionality","@ember/object/computed","discourse-common/utils/decorators","@ember/utils","discourse/lib/ajax-error"],(function(e,t,i,n,r,o,s,l,a){var u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var m=t.default.extend(r.default,(u=(0,s.default)("model.name"),c=(0,s.default)("loading","reason"),p(d={loading:!1,reason:(0,o.alias)("model.membership_request_template"),title:e=>n.default.t("groups.membership_request.title",{group_name:e}),disableSubmit:(e,t)=>e||(0,l.isEmpty)(t),actions:{requestMember(){this.currentUser?(this.set("loading",!0),this.model.requestMembership(this.reason).then((e=>{i.default.routeTo(e.relative_url)})).catch(a.popupAjaxError).finally((()=>{this.set("loading",!1)}))):this._showLoginModal()}}},"title",[u],Object.getOwnPropertyDescriptor(d,"title"),d),p(d,"disableSubmit",[c],Object.getOwnPropertyDescriptor(d,"disableSubmit"),d),d))
e.default=m})),define("discourse/controllers/review-index",["exports","@ember/controller","I18n","discourse-common/utils/decorators","@ember/utils","@ember/runloop","@ember/string"],(function(e,t,i,n,r,o,s){var l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var d=t.default.extend((l=(0,n.default)("reviewableTypes"),a=(0,n.default)("filtersExpanded"),u={queryParams:["priority","type","status","category_id","topic_id","username","reviewed_by","from_date","to_date","sort_order","additional_filters"],type:null,status:"pending",priority:"low",category_id:null,reviewables:null,topic_id:null,filtersExpanded:!1,username:"",reviewed_by:"",from_date:null,to_date:null,sort_order:null,additional_filters:null,init(){this._super(...arguments),this.set("priority",this.siteSettings.reviewable_default_visibility),this.set("filtersExpanded",!this.site.mobileView)},allTypes(){return(this.reviewableTypes||[]).map((e=>{const t=(0,s.underscore)(e).replace(/[^\w]+/g,"_")
return{id:e,name:i.default.t(`review.types.${t}.title`)}}))},priorities:()=>["any","low","medium","high"].map((e=>({id:e,name:i.default.t(`review.filters.priority.${e}`)}))),sortOrders:()=>["score","score_asc","created_at","created_at_asc"].map((e=>({id:e,name:i.default.t(`review.filters.orders.${e}`)}))),statuses:()=>["pending","approved","rejected","deleted","ignored","reviewed","all"].map((e=>({id:e,name:i.default.t(`review.statuses.${e}.title`)}))),toggleFiltersIcon:e=>e?"chevron-up":"chevron-down",setRange(e){this.setProperties(e)},refreshModel(){(0,o.next)((()=>this.send("refreshRoute")))},actions:{remove(e){if(!e)return
let t=this.reviewables.reject((t=>e.includes(t.id)))
0===t.length?this.refreshModel():this.reviewables.setObjects(t)},resetTopic(){this.set("topic_id",null),this.refreshModel()},refresh(){const e=this.status,t=this.filterStatus,i=this.sort_order
let n=this.filterSortOrder
const o=["reviewed","all"],s=["approved","rejected","deleted","ignored","pending"]
o.includes(e)&&"created_at"===i&&s.includes(t)&&"created_at"===n&&(n="score"),s.includes(e)&&"score"===i&&o.includes(t)&&"score"===n&&(n="created_at"),this.setProperties({type:this.filterType,priority:this.filterPriority,status:this.filterStatus,category_id:this.filterCategoryId,username:this.filterUsername,reviewed_by:this.filterReviewedBy,from_date:(0,r.isPresent)(this.filterFromDate)?this.filterFromDate.toISOString(!0).split("T")[0]:null,to_date:(0,r.isPresent)(this.filterToDate)?this.filterToDate.toISOString(!0).split("T")[0]:null,sort_order:n,additional_filters:JSON.stringify(this.additionalFilters)}),this.refreshModel()},loadMore(){return this.reviewables.loadMore()},toggleFilters(){this.toggleProperty("filtersExpanded")},updateFilterReviewedBy(e){this.set("filterReviewedBy",e.firstObject)},updateFilterUsername(e){this.set("filterUsername",e.firstObject)}}},c(u,"allTypes",[l],Object.getOwnPropertyDescriptor(u,"allTypes"),u),c(u,"priorities",[n.default],Object.getOwnPropertyDescriptor(u,"priorities"),u),c(u,"sortOrders",[n.default],Object.getOwnPropertyDescriptor(u,"sortOrders"),u),c(u,"statuses",[n.default],Object.getOwnPropertyDescriptor(u,"statuses"),u),c(u,"toggleFiltersIcon",[a],Object.getOwnPropertyDescriptor(u,"toggleFiltersIcon"),u),u))
e.default=d})),define("discourse/controllers/review-settings",["exports","@ember/controller","I18n","discourse/lib/ajax","discourse-common/utils/decorators","discourse/lib/ajax-error"],(function(e,t,i,n,r,o){var s,l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a,u,c,d,p,m,h=t.default.extend((s=(0,r.default)("settings.reviewable_score_types"),a=l={saving:!1,saved:!1,actions:{save(){let e={}
this.scoreTypes.forEach((t=>{e[t.id]=parseFloat(t.reviewable_priority)})),this.set("saving",!0),(0,n.ajax)("/review/settings",{type:"PUT",data:{reviewable_priorities:e}}).then((()=>{this.set("saved",!0)})).catch(o.popupAjaxError).finally((()=>this.set("saving",!1)))}},scoreTypes(e){const t=i.default.t("review.example_username")
return e.map((e=>Object.assign({},e,{title:e.title.replace("%{username}",t)})))}},u="scoreTypes",c=[s],d=Object.getOwnPropertyDescriptor(l,"scoreTypes"),p=l,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),l))
e.default=h})),define("discourse/controllers/second-factor-auth",["exports","@ember/controller","discourse/models/user","I18n","discourse/lib/ajax","discourse/lib/ajax-error","@ember/object","discourse-common/utils/decorators","@ember/object/computed","discourse/lib/webauthn","discourse/lib/url"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m,h,f,g,b,y,_,v
function w(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const{TOTP:k,BACKUP_CODE:x,SECURITY_KEY:P}=i.SECOND_FACTOR_METHODS
var O=t.default.extend((d=(0,l.default)("allowedMethods.[]","totpEnabled"),p=(0,l.default)("allowedMethods.[]","backupCodesEnabled"),m=(0,l.default)("allowedMethods.[]","securityKeysEnabled"),h=(0,l.default)("userSelectedMethod","securityKeysAvailable","totpAvailable","backupCodesAvailable"),f=(0,l.default)("shownSecondFactorMethod","securityKeysAvailable","totpAvailable","backupCodesAvailable"),g=(0,l.default)("shownSecondFactorMethod"),b=(0,l.default)("shownSecondFactorMethod"),y=(0,l.default)("messageIsError"),_=(0,l.default)("showTotpForm","showBackupCodesForm"),w(v={TOTP:k,BACKUP_CODE:x,SECURITY_KEY:P,queryParams:["nonce"],message:null,loadError:!1,messageIsError:!1,secondFactorToken:null,userSelectedMethod:null,totpEnabled:(0,a.readOnly)("model.totp_enabled"),backupCodesEnabled:(0,a.readOnly)("model.backup_enabled"),securityKeysEnabled:(0,a.readOnly)("model.security_keys_enabled"),allowedMethods:(0,a.readOnly)("model.allowed_methods"),customDescription:(0,a.readOnly)("model.description"),showTotpForm:(0,a.equal)("shownSecondFactorMethod",k),showSecurityKeyForm:(0,a.equal)("shownSecondFactorMethod",P),showBackupCodesForm:(0,a.equal)("shownSecondFactorMethod",x),totpAvailable(){return this.totpEnabled&&this.allowedMethods.includes(k)},backupCodesAvailable(){return this.backupCodesEnabled&&this.allowedMethods.includes(x)},securityKeysAvailable(){return this.securityKeysEnabled&&this.allowedMethods.includes(P)},shownSecondFactorMethod(e,t,i,n){if(null!==e)return e
if(t)return P
if(i)return k
if(n)return x
throw new Error("unexpected state of user 2fa settings!")},alternativeMethods(e,t,i,n){const r=[]
return t&&e!==P&&r.push({id:P,translationKey:"login.second_factor_toggle.security_key",class:"security-key"}),i&&e!==k&&r.push({id:k,translationKey:"login.second_factor_toggle.totp",class:"totp"}),n&&e!==x&&r.push({id:x,translationKey:"login.second_factor_toggle.backup_code",class:"backup-code"}),r},secondFactorTitle(e){switch(e){case k:case P:return n.default.t("login.second_factor_title")
case x:return n.default.t("login.second_factor_backup_title")}},secondFactorDescription(e){switch(e){case k:return n.default.t("login.second_factor_description")
case P:return n.default.t("login.security_key_description")
case x:return n.default.t("login.second_factor_backup_description")}},alertClass:e=>e?"alert-error":"alert-success",inputFormClass:(e,t)=>e?"totp-token":t?"backup-code-token":void 0,resetState(){this.set("message",null),this.set("messageIsError",!1),this.set("secondFactorToken",null),this.set("userSelectedMethod",null),this.set("loadError",!1)},displayError(e){this.set("message",e),this.set("messageIsError",!0)},displaySuccess(e){this.set("message",e),this.set("messageIsError",!1)},verifySecondFactor(e){return(0,r.ajax)("/session/2fa",{type:"POST",data:{...e,second_factor_method:this.shownSecondFactorMethod,nonce:this.nonce}}).then((e=>{this.displaySuccess(n.default.t("second_factor_auth.redirect_after_success")),(0,r.ajax)(e.callback_path,{type:e.callback_method,data:{second_factor_nonce:this.nonce}}).then((t=>{const i=t.redirect_url||e.redirect_url
c.default.routeTo(i)})).catch((e=>this.displayError((0,o.extractError)(e))))})).catch((e=>{this.displayError((0,o.extractError)(e))}))},onTokenInput(e){this.set("secondFactorToken",e.target.value)},useAnotherMethod(e,t){t?.preventDefault(),this.set("userSelectedMethod",e)},authenticateSecurityKey(){(0,u.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,(e=>{this.verifySecondFactor({second_factor_token:e})}),(e=>{this.displayError(e)}))},authenticateToken(){this.verifySecondFactor({second_factor_token:this.secondFactorToken})}},"totpAvailable",[d],Object.getOwnPropertyDescriptor(v,"totpAvailable"),v),w(v,"backupCodesAvailable",[p],Object.getOwnPropertyDescriptor(v,"backupCodesAvailable"),v),w(v,"securityKeysAvailable",[m],Object.getOwnPropertyDescriptor(v,"securityKeysAvailable"),v),w(v,"shownSecondFactorMethod",[h],Object.getOwnPropertyDescriptor(v,"shownSecondFactorMethod"),v),w(v,"alternativeMethods",[f],Object.getOwnPropertyDescriptor(v,"alternativeMethods"),v),w(v,"secondFactorTitle",[g],Object.getOwnPropertyDescriptor(v,"secondFactorTitle"),v),w(v,"secondFactorDescription",[b],Object.getOwnPropertyDescriptor(v,"secondFactorDescription"),v),w(v,"alertClass",[y],Object.getOwnPropertyDescriptor(v,"alertClass"),v),w(v,"inputFormClass",[_],Object.getOwnPropertyDescriptor(v,"inputFormClass"),v),w(v,"onTokenInput",[s.action],Object.getOwnPropertyDescriptor(v,"onTokenInput"),v),w(v,"useAnotherMethod",[s.action],Object.getOwnPropertyDescriptor(v,"useAnotherMethod"),v),w(v,"authenticateSecurityKey",[s.action],Object.getOwnPropertyDescriptor(v,"authenticateSecurityKey"),v),w(v,"authenticateToken",[s.action],Object.getOwnPropertyDescriptor(v,"authenticateToken"),v),v))
e.default=O})),define("discourse/controllers/share-and-invite",["exports","@ember/controller","discourse/mixins/modal-functionality"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend(i.default)
e.default=n}))
define("discourse/controllers/sidebar-tags-form",["exports","@ember/controller","discourse/mixins/modal-functionality"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends(t.default.extend(i.default)){}e.default=n})),define("discourse/controllers/tag-groups-edit",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({tagGroups:(0,t.inject)(),actions:{onDestroy(){this.tagGroups.model.removeObject(this.model),this.transitionToRoute("tagGroups.index")}}})
e.default=i})),define("discourse/controllers/tag-groups-new",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({tagGroups:(0,t.inject)(),actions:{onSave(){this.tagGroups.model.pushObject(this.model),this.transitionToRoute("tagGroups.index")}}})
e.default=i})),define("discourse/controllers/tag-groups",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({actions:{newTagGroup(){this.transitionToRoute("tagGroups.new")}}})
e.default=i})),define("discourse/controllers/tag-show",["exports","discourse/controllers/discovery-sortable","@ember/controller","discourse-common/utils/decorators","discourse/mixins/bulk-topic-selection","discourse/mixins/dismiss-topics","discourse/mixins/filter-mode","I18n","discourse/models/nav-item","discourse/models/topic","@ember/object/computed","discourse/lib/computed","@ember/object","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g,b,y,_,v
function w(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var k=t.default.extend(r.default,o.default,s.default,(h=(0,n.default)("canCreateTopic","category","canCreateTopicOnCategory","tag","canCreateTopicOnTag"),f=(0,n.default)("category","tag.id","filterType","noSubcategories"),g=(0,n.observes)("list.canLoadMore"),b=(0,n.default)("navMode","list.topics.length","loading"),y=(0,n.default)("list.filter","list.topics.length"),_=(0,n.default)("list.filter","list.topics.length"),v={application:(0,i.inject)(),dialog:(0,m.inject)(),tag:null,additionalTags:null,list:null,canAdminTag:(0,c.readOnly)("currentUser.staff"),navMode:"latest",loading:!1,canCreateTopic:!1,showInfo:!1,top:(0,d.endWith)("list.filter","top"),createTopicDisabled:(e,t,i,n,r)=>!e||t&&!i||n&&!r,navItems(e,t,i,n){return a.default.buildList(e,{tagId:t,filterType:i,noSubcategories:n,siteSettings:this.siteSettings})},_showFooter(){this.set("application.showFooter",!this.list?.canLoadMore)},footerMessage(e,t,i){if(!i)return 0===t?l.default.t(`tagging.topics.none.${e}`,{tag:this.tag?.id}):l.default.t("topics.bottom.tag",{tag:this.tag?.id})},showDismissRead(e,t){return this._isFilterPage(e,"unread")&&t>0},showResetNew(e,t){return this._isFilterPage(e,"new")&&t>0},callResetNew(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
const n="tracked"===(this.router.currentRoute.queryParams.f||this.router.currentRoute.queryParams.filter)
let r=this.selected?this.selected.mapBy("id"):null
u.default.resetNew(this.category,!this.noSubcategories,{tracked:n,tag:this.tag,topicIds:r,dismissPosts:e,dismissTopics:t,untrack:i}).then((e=>{e.topic_ids&&this.topicTrackingState.removeTopics(e.topic_ids),this.refresh(n?{skipResettingParams:["filter","f"]}:{})}))},showInserted(e){e?.preventDefault()
const t=this.topicTrackingState
return this.list.loadBefore(t.newIncoming,!0),t.resetTracking(),!1},changeSort(e){e===this.order?this.toggleProperty("ascending"):this.setProperties({order:e,ascending:!1})},changePeriod(e){this.set("period",e)},toggleInfo(){this.toggleProperty("showInfo")},refresh(){return this.store.findFiltered("topicList",{filter:this.list?.filter}).then((e=>{this.set("list",e),this.resetSelected()}))},deleteTag(e){const t=this.get("list.topic_list.tags.firstObject.topic_count")||0
let i=0===t?l.default.t("tagging.delete_confirm_no_topics"):l.default.t("tagging.delete_confirm",{count:t})
e.synonyms.length>0&&(i+=" "+l.default.t("tagging.delete_confirm_synonyms",{count:e.synonyms.length})),this.dialog.deleteConfirm({message:i,didConfirm:()=>this.tag.destroyRecord().then((()=>this.transitionToRoute("tags.index"))).catch((()=>this.dialog.alert(l.default.t("generic_error"))))})},changeTagNotificationLevel(e){this.tagNotification.update({notification_level:e}).then((t=>{const i=t.responseJson
this.tagNotification.set("notification_level",e),this.currentUser.setProperties({watched_tags:i.watched_tags,watching_first_post_tags:i.watching_first_post_tags,tracked_tags:i.tracked_tags,muted_tags:i.muted_tags,regular_tags:i.regular_tags})}))}},w(v,"createTopicDisabled",[h],Object.getOwnPropertyDescriptor(v,"createTopicDisabled"),v),w(v,"navItems",[f],Object.getOwnPropertyDescriptor(v,"navItems"),v),w(v,"_showFooter",[g],Object.getOwnPropertyDescriptor(v,"_showFooter"),v),w(v,"footerMessage",[b],Object.getOwnPropertyDescriptor(v,"footerMessage"),v),w(v,"showDismissRead",[y],Object.getOwnPropertyDescriptor(v,"showDismissRead"),v),w(v,"showResetNew",[_],Object.getOwnPropertyDescriptor(v,"showResetNew"),v),w(v,"showInserted",[p.action],Object.getOwnPropertyDescriptor(v,"showInserted"),v),w(v,"changeSort",[p.action],Object.getOwnPropertyDescriptor(v,"changeSort"),v),w(v,"changePeriod",[p.action],Object.getOwnPropertyDescriptor(v,"changePeriod"),v),w(v,"toggleInfo",[p.action],Object.getOwnPropertyDescriptor(v,"toggleInfo"),v),w(v,"refresh",[p.action],Object.getOwnPropertyDescriptor(v,"refresh"),v),w(v,"deleteTag",[p.action],Object.getOwnPropertyDescriptor(v,"deleteTag"),v),w(v,"changeTagNotificationLevel",[p.action],Object.getOwnPropertyDescriptor(v,"changeTagNotificationLevel"),v),v))
e.default=k})),define("discourse/controllers/tags-index",["exports","@ember/object","@ember/object/computed","@ember/controller","I18n","discourse/lib/ajax","discourse-common/utils/decorators","discourse/lib/ajax-error","discourse/lib/show-modal","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u){var c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var m=n.default.extend((c=(0,s.default)("groupedByCategory","groupedByTagGroup"),d={dialog:(0,u.inject)(),sortedByCount:!0,sortedByName:!1,canAdminTags:(0,i.alias)("currentUser.staff"),groupedByCategory:(0,i.notEmpty)("model.extras.categories"),groupedByTagGroup:(0,i.notEmpty)("model.extras.tag_groups"),init(){this._super(...arguments),this.sortProperties=["totalCount:desc","id"]},otherTagsTitleKey:(e,t)=>e||t?"tagging.other_tags":"tagging.all_tags",actionsMapping(){return{manageGroups:()=>this.send("showTagGroups"),uploadTags:()=>this.send("showUploader"),deleteUnusedTags:()=>this.send("deleteUnused")}},sortByCount(e){e?.preventDefault(),this.setProperties({sortProperties:["totalCount:desc","id"],sortedByCount:!0,sortedByName:!1})},sortById(e){e?.preventDefault(),this.setProperties({sortProperties:["id"],sortedByCount:!1,sortedByName:!0})},actions:{showUploader(){(0,a.default)("tag-upload")},deleteUnused(){(0,o.ajax)("/tags/unused",{type:"GET"}).then((e=>{const t=e.tags
if(0===t.length)return void this.dialog.alert(r.default.t("tagging.delete_no_unused_tags"))
const i=t.slice(0,20).join(r.default.t("tagging.tag_list_joiner")),n=Math.max(0,t.length-20),s=0===n?i:r.default.t("tagging.delete_unused_confirmation_more_tags",{count:n,tags:i}),a=r.default.t("tagging.delete_unused_confirmation",{count:t.length,tags:s})
this.dialog.deleteConfirm({message:a,confirmButtonLabel:"tagging.delete_unused",didConfirm:()=>(0,o.ajax)("/tags/unused",{type:"DELETE"}).then((()=>this.send("triggerRefresh"))).catch(l.popupAjaxError)})})).catch(l.popupAjaxError)}}},p(d,"otherTagsTitleKey",[c],Object.getOwnPropertyDescriptor(d,"otherTagsTitleKey"),d),p(d,"actionsMapping",[s.default],Object.getOwnPropertyDescriptor(d,"actionsMapping"),d),p(d,"sortByCount",[t.action],Object.getOwnPropertyDescriptor(d,"sortByCount"),d),p(d,"sortById",[t.action],Object.getOwnPropertyDescriptor(d,"sortById"),d),d))
e.default=m})),define("discourse/controllers/topic-bulk-actions",["exports","@ember/object/computed","@ember/controller","I18n","discourse/mixins/modal-functionality","rsvp","discourse/models/topic","@ember/service"],(function(e,t,i,n,r,o,s,l){Object.defineProperty(e,"__esModule",{value:!0}),e.addBulkButton=d,e.default=void 0
const a=[],u=()=>!0
function c(){}function d(e,t,i){const n={action:e,label:`topics.bulk.${t}`,icon:(i=i||{}).icon,buttonVisible:i.buttonVisible||u,enabledSetting:i.enabledSetting,class:i.class}
a.push(n)}d("showChangeCategory","change_category",{icon:"pencil-alt",class:"btn-default",buttonVisible:e=>!e.some((e=>e.isPrivateMessage))}),d("closeTopics","close_topics",{icon:"lock",class:"btn-default",buttonVisible:e=>!e.some((e=>e.isPrivateMessage))}),d("archiveTopics","archive_topics",{icon:"folder",class:"btn-default",buttonVisible:e=>!e.some((e=>e.isPrivateMessage))}),d("archiveMessages","archive_topics",{icon:"folder",class:"btn-default",buttonVisible:e=>e.some((e=>e.isPrivateMessage))}),d("moveMessagesToInbox","move_messages_to_inbox",{icon:"folder",class:"btn-default",buttonVisible:e=>e.some((e=>e.isPrivateMessage))}),d("showNotificationLevel","notification_level",{icon:"d-regular",class:"btn-default"}),d("deletePostTiming","defer",{icon:"circle",class:"btn-default",buttonVisible(){return this.currentUser.user_option.enable_defer}}),d("unlistTopics","unlist_topics",{icon:"far-eye-slash",class:"btn-default",buttonVisible:e=>e.some((e=>e.visible))&&!e.some((e=>e.isPrivateMessage))}),d("relistTopics","relist_topics",{icon:"far-eye",class:"btn-default",buttonVisible:e=>e.some((e=>!e.visible))&&!e.some((e=>e.isPrivateMessage))}),d("resetBumpDateTopics","reset_bump_dates",{icon:"anchor",class:"btn-default",buttonVisible(){return this.currentUser.canManageTopic}}),d("showTagTopics","change_tags",{icon:"tag",class:"btn-default",enabledSetting:"tagging_enabled",buttonVisible(){return this.currentUser.canManageTopic}}),d("showAppendTagTopics","append_tags",{icon:"tag",class:"btn-default",enabledSetting:"tagging_enabled",buttonVisible(){return this.currentUser.canManageTopic}}),d("removeTags","remove_tags",{icon:"tag",class:"btn-default",enabledSetting:"tagging_enabled",buttonVisible(){return this.currentUser.canManageTopic}}),d("deleteTopics","delete",{icon:"trash-alt",class:"btn-danger delete-topics",buttonVisible(){return this.currentUser.staff}})
var p=i.default.extend(r.default,{userPrivateMessages:(0,i.inject)("user-private-messages"),dialog:(0,l.inject)(),tags:null,emptyTags:(0,t.empty)("tags"),categoryId:(0,t.alias)("model.category.id"),processedTopicCount:0,isGroup:(0,t.alias)("userPrivateMessages.isGroup"),groupFilter:(0,t.alias)("userPrivateMessages.groupFilter"),onShow(){const e=this.get("model.topics")
this.set("buttons",a.filter((t=>!(t.enabledSetting&&!this.siteSettings[t.enabledSetting])&&t.buttonVisible.call(this,e)))),this.set("modal.modalClass","topic-bulk-actions-modal small"),this.send("changeBulkTemplate","modal/bulk-actions-buttons")},perform(e){return this.set("processedTopicCount",0),this.get("model.topics").length>20&&this.send("changeBulkTemplate","modal/bulk-progress"),this.set("loading",!0),this._processChunks(e).catch((()=>{this.dialog.alert(n.default.t("generic_error"))})).finally((()=>{this.set("loading",!1)}))},_generateTopicChunks(e){let t=0
const i=[]
for(;t<e.length;){let n=e.slice(t,t+30)
i.push(n),t+=30}return i},_processChunks(e){const t=this.get("model.topics"),i=this._generateTopicChunks(t),n=[],r=i.map((t=>()=>s.default.bulkOperation(t,e).then((e=>(this.set("processedTopicCount",this.get("processedTopicCount")+t.length),e)))))
return new o.Promise(((e,i)=>{const o=()=>{if(0===r.length){const i=n.map((e=>t.findBy("id",e)))
return e(i)}r.shift()().then((e=>{e&&e.topic_ids&&n.push(...e.topic_ids),o()})).catch(i)}
o()}))},forEachPerformed(e,t){this.perform(e).then((e=>{e&&(e.forEach(t),(this.refreshClosure||c)(),this.send("closeModal"))}))},performAndRefresh(e){return this.perform(e).then((()=>{(this.refreshClosure||c)(),this.send("closeModal")}))},actions:{showTagTopics(){this.set("tags",""),this.set("action","changeTags"),this.set("label","change_tags"),this.set("title","choose_new_tags"),this.send("changeBulkTemplate","bulk-tag")},changeTags(){this.performAndRefresh({type:"change_tags",tags:this.tags})},showAppendTagTopics(){this.set("tags",null),this.set("action","appendTags"),this.set("label","append_tags"),this.set("title","choose_append_tags"),this.send("changeBulkTemplate","bulk-tag")},appendTags(){this.performAndRefresh({type:"append_tags",tags:this.tags})},showChangeCategory(){this.send("changeBulkTemplate","modal/bulk-change-category")},showNotificationLevel(){this.send("changeBulkTemplate","modal/bulk-notification-level")},deleteTopics(){this.performAndRefresh({type:"delete"})},closeTopics(){this.forEachPerformed({type:"close"},(e=>e.set("closed",!0)))},archiveTopics(){this.forEachPerformed({type:"archive"},(e=>e.set("archived",!0)))},archiveMessages(){let e={type:"archive_messages"}
this.isGroup&&(e.group=this.groupFilter),this.performAndRefresh(e)},moveMessagesToInbox(){let e={type:"move_messages_to_inbox"}
this.isGroup&&(e.group=this.groupFilter),this.performAndRefresh(e)},unlistTopics(){this.forEachPerformed({type:"unlist"},(e=>e.set("visible",!1)))},relistTopics(){this.forEachPerformed({type:"relist"},(e=>e.set("visible",!0)))},resetBumpDateTopics(){this.performAndRefresh({type:"reset_bump_dates"})},changeCategory(){const e=parseInt(this.newCategoryId,10)||0
this.perform({type:"change_category",category_id:e}).then((t=>{t.forEach((t=>t.set("category_id",e))),(this.refreshClosure||c)(),this.send("closeModal")}))},deletePostTiming(){this.performAndRefresh({type:"destroy_post_timing"})},removeTags(){this.dialog.deleteConfirm({message:n.default.t("topics.bulk.confirm_remove_tags",{count:this.get("model.topics").length}),didConfirm:()=>this.performAndRefresh({type:"remove_tags"})})}}})
e.default=p})),define("discourse/controllers/topic",["exports","discourse/models/category","@ember/controller","discourse/lib/url","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/cached-topic-list","@ember/utils","@ember/runloop","discourse-common/lib/later","discourse/models/bookmark","discourse/models/composer","@ember/object","I18n","discourse/models/post","rsvp","discourse/lib/quote-state","discourse/models/topic","discourse/models/topic-timer","discourse/lib/ajax","discourse/mixins/buffered-content","discourse/lib/quote","discourse-common/lib/object","discourse/lib/utilities","discourse/lib/render-topic-featured-link","discourse/lib/ajax-error","@ember/service","discourse/lib/show-modal","discourse/helpers/loading-spinner","discourse/controllers/bookmark"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w,k,x,P,O,T,S,j,C){var z,I,E,M,D,N,L,A,U,F,R,B,$,q,H,W,V,G,K,Y,J,Q
function X(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.registerCustomPostMessageCallback=function(e,t){if(Z[e])throw new Error(`Error ${e} is an already registered post message!`)
Z[e]=t},e.resetCustomPostMessageCallbacks=function(){Z={}}
let Z={}
var ee=i.default.extend((0,v.bufferedProperty)("model"),(z=(0,o.observes)("model.title","category"),I=(0,o.default)("model.postStream.loaded","model.is_shared_draft"),E=(0,o.default)("site.mobileView","model.posts_count"),M=(0,o.default)("model.postStream.posts","model.postStream.postsWithPlaceholders"),D=(0,o.default)("model.postStream.loadingFilter"),N=(0,o.default)("model"),L=(0,o.default)("model.isPrivateMessage","model.category.id"),A=(0,o.default)("model"),U=(0,o.default)("model.isPrivateMessage"),F=(0,o.default)("currentUser.can_send_private_messages"),R=(0,o.default)("buffered.category_id"),B=(0,o.default)("selectedPostIds","model.postStream.posts","selectedPostIds.[]","model.postStream.posts.[]"),$=(0,o.default)("selectedPostsCount","selectedPosts","selectedPosts.[]"),q=(0,o.default)("selectedPostsCount","model.postStream.isMegaTopic","model.postStream.stream.length","model.posts_count"),H=(0,o.default)("selectedAllPosts","model.postStream.isMegaTopic"),W=(0,o.default)("currentUser.staff","selectedPostsCount","selectedAllPosts","selectedPosts","selectedPosts.[]"),V=(0,o.default)("model.details.can_move_posts","selectedPostsCount"),G=(0,o.default)("currentUser.admin","currentUser.staff","siteSettings.moderators_change_post_ownership","selectedPostsCount","selectedPostsUsername"),K=(0,o.default)("selectedPostsCount","selectedPostsUsername","selectedPosts","selectedPosts.[]"),Y=(0,o.observes)("multiSelect"),J=(0,o.observes)("model.postStream.loaded","model.postStream.loadedAllPosts"),Q={composer:(0,T.inject)(),application:(0,i.inject)(),dialog:(0,T.inject)(),documentTitle:(0,T.inject)(),screenTrack:(0,T.inject)(),multiSelect:!1,selectedPostIds:null,editingTopic:!1,queryParams:["filter","username_filters","replies_to_post_number"],loadedAllPosts:(0,r.or)("model.postStream.loadedAllPosts","model.postStream.loadingLastPost"),enteredAt:null,enteredIndex:null,retrying:!1,userTriggeredProgress:null,_progressIndex:null,hasScrolled:null,username_filters:null,replies_to_post_number:null,filter:null,quoteState:null,currentPostId:null,userLastReadPostNumber:null,highestPostNumber:null,init(){this._super(...arguments),this._retryInProgress=!1,this._retryRateLimited=!1,this._newPostsInStream=[],this.appEvents.on("post:show-revision",this,"_showRevision"),this.appEvents.on("post:created",this,(()=>{this._removeDeleteOnOwnerReplyBookmarks(),this.appEvents.trigger("post-stream:refresh",{force:!0})})),this.setProperties({selectedPostIds:[],quoteState:new g.default})},willDestroy(){this._super(...arguments),this.appEvents.off("post:show-revision",this,"_showRevision")},canRemoveTopicFeaturedLink:(0,r.and)("canEditTopicFeaturedLink","buffered.featured_link"),updateQueryParams(){const e=this.get("model.postStream.streamFilters")
Object.keys(e).length>0?this.setProperties(e):this.setProperties({username_filters:null,filter:null,replies_to_post_number:null})},_titleChanged(){const e=this.get("model.title");(0,l.isEmpty)(e)||this.send("refreshTitle")},showSharedDraftControls:(e,t)=>e&&t,showSelectedPostsAtBottom:(e,t)=>e&&t>3,postsToRender(e,t){return this.capabilities.isAndroid?e:t},androidLoading(e){return this.capabilities.isAndroid&&e},pmPath(e){return this.currentUser&&this.currentUser.pmPath(e)},_showRevision(e,t){const i=this.model.get("postStream").postForPostNumber(e)
i&&(0,a.schedule)("afterRender",(()=>this.send("showHistory",i,t)))},showCategoryChooser:(0,r.not)("model.isPrivateMessage"),gotoInbox(e){let t=(0,n.userPath)(`${this.get("currentUser.username_lower")}/messages`)
e&&(t=`${t}/group/${e}`),n.default.routeTo(t)},selectedQuery(){return e=>this.postSelected(e)},canEditTopicFeaturedLink(e,t){if(this.currentUser&&0===this.currentUser.trust_level)return!1
if(!this.siteSettings.topic_featured_link_enabled||e)return!1
const i=this.site.get("topic_featured_link_allowed_category_ids")
return void 0===i||!i.length||i.includes(t)},featuredLinkDomain:e=>(0,P.extractLinkMeta)(e).domain,canEditTags(e){return this.site.get("can_tag_topics")&&(!e||this.site.get("can_tag_pms"))},canSendPms(){return this.currentUser?.can_send_private_messages},minimumRequiredTags:e=>t.default.findById(e)?.minimumRequiredTags||0,_removeDeleteOnOwnerReplyBookmarks(){if(!this.model)return
const e=this.get("model.postStream.posts")
e&&e.filter((e=>e.bookmarked&&e.bookmark_auto_delete_preference===c.AUTO_DELETE_PREFERENCES.ON_OWNER_REPLY)).forEach((e=>{e.clearBookmark(),this.model.removeBookmark(e.bookmark_id)}))
const t=this.model.bookmarks.findBy("bookmarkable_type","Topic")
t?.auto_delete_preference===c.AUTO_DELETE_PREFERENCES.ON_OWNER_REPLY&&this.model.removeBookmark(t.id)},_forceRefreshPostStream(){this.appEvents.trigger("post-stream:refresh",{force:!0})},_updateSelectedPostIds(e){const t=this._smallActionPostIds()
this.selectedPostIds.pushObjects(e.filter((e=>!t.has(e)))),this.set("selectedPostIds",[...new Set(this.selectedPostIds)]),this._forceRefreshPostStream()},_smallActionPostIds(){const e=new Set,t=this.get("model.postStream.posts")
if(t&&this.site){const i=this.site.get("post_types.small_action"),n=this.site.get("post_types.whisper")
t.forEach((t=>{(t.post_type===i||!t.cooked&&t.post_type===n)&&e.add(t.id)}))}return e},_loadPostIds(e){if(this.loadingPostIds)return
const t=this.get("model.postStream"),i=`/t/${this.get("model.id")}/post_ids.json`
return this.set("loadingPostIds",!0),(0,_.ajax)(i,{data:(0,k.deepMerge)({post_number:e.get("post_number")},t.get("streamFilters"))}).then((t=>{t.post_ids.pushObject(e.get("id")),this._updateSelectedPostIds(t.post_ids)})).finally((()=>{this.set("loadingPostIds",!1)}))},editTopic(e){e?.preventDefault(),this.get("model.details.can_edit")&&this.set("editingTopic",!0)},jumpTop(e){if(e&&(0,x.modKeysPressed)(e).length>0)return!1
e?.preventDefault(),n.default.routeTo(this.get("model.firstPostUrl"),{skipIfOnScreen:!1,keepFilter:!0})},removeFeaturedLink(e){e?.preventDefault(),this.set("buffered.featured_link",null)},selectAll(e){e?.preventDefault()
const t=this._smallActionPostIds()
this.set("selectedPostIds",[...this.get("model.postStream.stream").filter((e=>!t.has(e)))]),this._forceRefreshPostStream()},deselectAll(e){e?.preventDefault(),this.set("selectedPostIds",[]),this._forceRefreshPostStream()},toggleMultiSelect(e){e?.preventDefault(),this.toggleProperty("multiSelect"),this._forceRefreshPostStream()},actions:{topicCategoryChanged(e){this.set("buffered.category_id",e)},topicTagsChanged(e){this.set("buffered.tags",e)},deletePending(e){return(0,_.ajax)(`/review/${e.id}`,{type:"DELETE"}).then((()=>{this.get("model.pending_posts").removeObject(e)})).catch(O.popupAjaxError)},showPostFlags(e){return this.send("showFlags",e)},openFeatureTopic(){this.send("showFeatureTopic")},selectText(){const{postId:e,buffer:t,opts:i}=this.quoteState,n=this.get("model.postStream").findLoadedPost(e)
return(n?f.Promise.resolve(n):this.get("model.postStream").loadPost(e)).then((e=>{const n=this.composer
if(!n.get("model.viewOpen")&&!this.get("model.details.can_create_post"))return void this.send("replyAsNewTopic",e)
const r={action:d.default.REPLY,draftSequence:e.get("topic.draft_sequence"),draftKey:e.get("topic.draft_key")}
1===e.get("post_number")?r.topic=e.get("topic"):r.post=e
const o=n.get("model.post")
o&&o.get("id")!==this.get("post.id")&&(r.post=o)
const s=(0,w.buildQuote)(e,t,i)
if(r.quote=s,n.get("model.viewOpen"))this.appEvents.trigger("composer:insert-block",s)
else if(n.get("model.viewDraft")){const e=n.get("model")
e.set("reply",e.get("reply")+"\n"+s),n.send("openIfDraft")}else n.open(r)}))},fillGapBefore(e){return this.get("model.postStream").fillGapBefore(e.post,e.gap)},fillGapAfter(e){return this.get("model.postStream").fillGapAfter(e.post,e.gap)},currentPostChanged(e){const{post:t}=e
if(!t)return
this.set("currentPostId",t.id)
const i=t.get("post_number"),n=this.model
n.set("currentPost",i),i>(n.get("last_read_post_number")||0)&&(n.set("last_read_post_id",t.get("id")),n.set("last_read_post_number",i)),this.send("postChangedRoute",i),this._progressIndex=n.get("postStream").progressIndexOfPost(t),this.appEvents.trigger("topic:current-post-changed",{post:t})},currentPostScrolled(e){const t=this.get("model.postStream.filteredPostsCount"),i=parseFloat(this._progressIndex+e.percent-1)/t
this.appEvents.trigger("topic:current-post-scrolled",{postIndex:this._progressIndex,percent:Math.max(Math.min(i,1),0)})},topVisibleChanged(e){const{post:t,refresh:i}=e
if(!t)return
const n=this.get("model.postStream"),r=n.get("posts.firstObject")
t.get&&1===t.get("post_number")||r&&r===t&&n.prependMore().then((()=>i()))},bottomVisibleChanged(e){const{post:t,refresh:i}=e,n=this.get("model.postStream"),r=n.get("posts.lastObject")
r&&r===t&&n.get("canAppendMore")&&(n.appendMore().then((()=>i())),i())},showTopReplies(){return this.get("model.postStream").showTopReplies().then((()=>{this.updateQueryParams()}))},cancelFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null
const t=this.get("model.postStream")
if(!e){const i=t.findLoadedPost(this.currentPostId)
i?e=i.post_number:t.findPostsByIds([this.currentPostId]).then((t=>{e=t[0].post_number}))}t.cancelFilter(),t.refresh({nearPost:e,forceLoad:!0}).then((()=>{n.default.routeTo(this.model.urlForPostNumber(e)),this.updateQueryParams()}))},removeAllowedUser(e){return this.get("model.details").removeAllowedUser(e).then((()=>{this.currentUser.id===e.id&&this.transitionToRoute("userPrivateMessages",e)}))},removeAllowedGroup(e){return this.get("model.details").removeAllowedGroup(e)},deleteTopic(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.deleteTopic(e)},toggleArchiveMessage(){const e=this.model
if(e.get("archiving"))return
const t=()=>{(0,s.resetCachedTopicList)(this.session),this.gotoInbox(e.get("inboxGroupName"))}
e.get("message_archived")?e.moveToInbox().then(t):e.archiveMessage().then(t)},deferTopic(){const{screenTrack:e,currentUser:t}=this,i=this.model
e.reset(),e.stop()
const r=i.get("isPrivateMessage")?t.pmPath(i):"/";(0,_.ajax)("/t/"+i.get("id")+"/timings.json?last=1",{type:"DELETE"}).then((()=>{this.session.get("highestSeenByTopic")[i.get("id")]=null,n.default.routeTo(r)})).catch(O.popupAjaxError)},editFirstPost(){this.model.firstPost().then((e=>this.send("editPost",e)))},replyToPost(e){this.currentUser&&this.siteSettings.enable_user_tips&&this.currentUser.hideUserTipForever("post_menu")
const t=this.composer,i=e?e.get("topic"):this.model,n=this.quoteState,r=this.get("model.postStream")
if(this.appEvents.trigger("page:compose-reply",i),!r||!i||!i.get("details.can_create_post"))return
const o=r.findLoadedPost(n.postId),s=(0,w.buildQuote)(o,n.buffer,n.opts)
if(n.clear(),t.get("model.topic.id")===i.get("id")&&t.get("model.action")===d.default.REPLY)t.set("model.post",e),t.set("model.composeState",d.default.OPEN),this.appEvents.trigger("composer:insert-block",s.trim())
else{const n={action:d.default.REPLY,draftKey:i.get("draft_key"),draftSequence:i.get("draft_sequence")}
s&&(n.quote=s),e&&1!==e.get("post_number")?n.post=e:n.topic=i,t.open(n)}return!1},recoverPost(e){1===e.get("post_number")?this.recoverTopic():e.recover()},deletePost(e,t){if(1===e.get("post_number"))return this.deleteTopic(t)
if(!t?.force_destroy&&!e.can_delete||t?.force_destroy&&!e.can_permanently_delete)return!1
const i=this.currentUser,n=()=>this.appEvents.trigger("post-stream:refresh"),r=e.get("reply_count")>0,o=this.get("model.postStream.posts")
if(!i.get("staff")||!r)return e.destroy(i,t).then(n).catch((t=>{(0,O.popupAjaxError)(t),e.undoDeleteState()}));(0,_.ajax)(`/posts/${e.id}/reply-ids.json`).then((r=>{if(0===r.length)return e.destroy(i,t).then(n).catch((t=>{(0,O.popupAjaxError)(t),e.undoDeleteState()}))
const s=[],l=r.filter((e=>1===e.level)).map((e=>e.id))
s.push({label:m.default.t("post.controls.delete_replies.direct_replies",{count:l.length}),class:"btn-primary",action:()=>{o.forEach((t=>(t===e||l.includes(t.id))&&t.setDeletedState(i))),h.default.deleteMany([e.id,...l]).then(n).catch(O.popupAjaxError)}}),r.some((e=>e.level>1))&&s.push({label:m.default.t("post.controls.delete_replies.all_replies",{count:r.length}),action:()=>{o.forEach((t=>(t===e||r.some((e=>e.id===t.id)))&&t.setDeletedState(i))),h.default.deleteMany([e.id,...r.map((e=>e.id))]).then(n).catch(O.popupAjaxError)}}),s.push({label:m.default.t("post.controls.delete_replies.just_the_post"),action:()=>{e.destroy(i,t).then(n).catch((t=>{(0,O.popupAjaxError)(t),e.undoDeleteState()}))}}),s.push({label:m.default.t("cancel"),class:"btn-flat"}),this.dialog.alert({title:m.default.t("post.controls.delete_replies.confirm"),buttons:s})}))},deletePostWithConfirmation(e,t){this.dialog.yesNoConfirm({message:m.default.t("post.confirm_delete"),didConfirm:()=>this.send("deletePost",e,t)})},permanentlyDeletePost(e){return this.dialog.yesNoConfirm({message:m.default.t("post.controls.permanently_delete_confirmation"),didConfirm:()=>{this.send("deletePost",e,{force_destroy:!0})}})},editPost(e){if(!this.currentUser)return this.dialog.alert(m.default.t("post.controls.edit_anonymous"))
if(!e.can_edit)return!1
const t=this.composer
let i=this.model
const n=t.get("model")
let r=n&&(e.get("firstPost")||n.get("editingFirstPost")),o=!1,s=this.get("site.shared_drafts_category_id")
s&&s===i.get("category.id")&&(o=e.get("firstPost"))
const l={post:e,action:o?d.default.EDIT_SHARED_DRAFT:d.default.EDIT,draftKey:e.get("topic.draft_key"),draftSequence:e.get("topic.draft_sequence")}
o&&(l.destinationCategoryId=i.get("destination_category_id")),r?t.cancelComposer(l).then((()=>t.open(l))):t.open(l)},toggleBookmark(e){if(this.currentUser){if(e){const t=this.model.bookmarks.find((t=>t.bookmarkable_id===e.id&&"Post"===t.bookmarkable_type))
return this._modifyPostBookmark(t||c.default.createFor(this.currentUser,"Post",e.id),e)}return this._toggleTopicLevelBookmark().then((e=>{e&&e.forEach((e=>this.appEvents.trigger("post-stream:refresh",{id:e})))}))}return this.dialog.alert(m.default.t("bookmarks.not_bookmarked"))},jumpToIndex(e){this._jumpToIndex(e)},jumpToDate(e){this._jumpToDate(e)},jumpToPostPrompt(){const e=this.model;(0,S.default)("jump-to-post",{modalClass:"jump-to-post-modal"}).setProperties({topic:e,postNumber:null,jumpToIndex:e=>this.send("jumpToIndex",e),jumpToDate:e=>this.send("jumpToDate",e)})},jumpToPost(e){this._jumpToPostNumber(e)},jumpBottom(){const e=1===this.model.highest_post_number
n.default.routeTo(this.get("model.lastPostUrl"),{skipIfOnScreen:!1,jumpEnd:e,keepFilter:!0})},jumpEnd(){this.appEvents.trigger("topic:jump-to-post",this.get("model.highest_post_number")),n.default.routeTo(this.get("model.lastPostUrl"),{jumpEnd:!0,keepFilter:!0})},jumpUnread(){this._jumpToPostId(this.get("model.last_read_post_id"))},jumpToPostId(e){this._jumpToPostId(e)},togglePostSelection(e){const t=this.selectedPostIds
t.includes(e.id)?t.removeObject(e.id):t.addObject(e.id)},selectReplies(e){(0,_.ajax)(`/posts/${e.id}/reply-ids.json`).then((t=>{const i=t.map((e=>e.id)),n=[...this.selectedPostIds,e.id,...i]
this.set("selectedPostIds",[...new Set(n)]),this._forceRefreshPostStream()}))},selectBelow(e){if(this.get("model.postStream.isMegaTopic"))this._loadPostIds(e)
else{const t=[...this.get("model.postStream.stream")],i=t.slice(t.indexOf(e.id))
this._updateSelectedPostIds(i)}},deleteSelected(){const e=this.currentUser
this.dialog.yesNoConfirm({message:m.default.t("post.delete.confirm",{count:this.selectedPostsCount}),didConfirm:()=>{if(this.selectedAllPosts)return this.deleteTopic()
h.default.deleteMany(this.selectedPostIds),this.get("model.postStream.posts").forEach((t=>this.postSelected(t)&&t.setDeletedState(e))),this.send("toggleMultiSelect")}})},mergePosts(){this.dialog.yesNoConfirm({message:m.default.t("post.merge.confirm",{count:this.selectedPostsCount}),didConfirm:()=>{h.default.mergePosts(this.selectedPostIds),this.send("toggleMultiSelect")}})},changePostOwner(e){this.set("selectedPostIds",[e.id]),this.send("changeOwner")},lockPost:e=>e.updatePostField("locked",!0),unlockPost:e=>e.updatePostField("locked",!1),grantBadge(e){this.set("selectedPostIds",[e.id]),this.send("showGrantBadgeModal")},changeNotice:e=>new f.Promise((function(t,i){(0,S.default)("change-post-notice",{model:e}).setProperties({resolve:t,reject:i,notice:e.notice?e.notice.raw:""})})),filterParticipant(e){this.get("model.postStream").filterParticipant(e.username).then((()=>this.updateQueryParams))},cancelEditingTopic(){this.set("editingTopic",!1),this.rollbackBuffer()},finishedEditingTopic(){if(!this.editingTopic)return
const e=this.get("buffered.buffer")
b.default.update(this.model,e,{fastEdit:!0}).then((()=>{this.rollbackBuffer(),this.set("editingTopic",!1)})).catch(O.popupAjaxError)},expandHidden:e=>e.expandHidden(),toggleVisibility(){this.model.toggleStatus("visible")},toggleClosed(){const e=this.model
this.model.toggleStatus("closed").then((t=>{e.set("topic_status_update",t.topic_status_update)}))},makeBanner(){this.model.makeBanner()},removeBanner(){this.model.removeBanner()},togglePinned(){const e=!this.get("model.pinned_at"),t=this.model,i=this.get("model.pinnedInCategoryUntil")
return t.setProperties({pinned_at:e?moment():null,pinned_globally:!1,pinned_until:e?i:null}),t.saveStatus("pinned",e,i)},pinGlobally(){const e=this.model,t=this.get("model.pinnedGloballyUntil")
return e.setProperties({pinned_at:moment(),pinned_globally:!0,pinned_until:t}),e.saveStatus("pinned_globally",!0,t)},toggleArchived(){this.model.toggleStatus("archived")},clearPin(){this.model.clearPin()},togglePinnedForUser(){if(this.get("model.pinned_at")){const e=this.model
e.get("pinned")?e.clearPin():e.rePin()}},replyAsNewTopic(e){const t=this.composer,{quoteState:i}=this,n=(0,w.buildQuote)(e,i.buffer,i.opts)
let r
if(i.clear(),this.get("model.isPrivateMessage")){let t=this.get("model.details.allowed_users"),i=this.get("model.details.allowed_groups"),n=[]
t.forEach((e=>n.push(e.username))),i.forEach((e=>n.push(e.name))),n=n.join(),r={action:d.default.PRIVATE_MESSAGE,archetypeId:"private_message",draftKey:e.topic.draft_key,recipients:n}}else r={action:d.default.CREATE_TOPIC,draftKey:e.topic.draft_key,topicCategoryId:this.get("model.category.id"),prioritizedCategoryId:this.get("model.category.id")}
t.open(r).then((()=>{const i=`[${(0,x.escapeExpression)(this.model.title)}](${`${location.protocol}//${location.host}${e.url}`})`,r=`${m.default.t("post.continue_discussion",{postLink:i})}\n\n${n}`
t.model.prependText(r,{new_line:!0})}))},retryLoading(){this.set("retrying",!0)
const e=()=>this.set("retrying",!1)
this.get("model.postStream").refresh().then(e,e)},toggleWiki:e=>e.updatePostField("wiki",!e.get("wiki")),togglePostType(e){const t=this.site.get("post_types.regular"),i=this.site.get("post_types.moderator_action")
return e.updatePostField("post_type",e.get("post_type")===i?t:i)},rebakePost:e=>e.rebake(),unhidePost:e=>e.unhide(),convertToPublicTopic(){(0,S.default)("convert-to-public-topic",{model:this.model,modalClass:"convert-to-public-topic"})},convertToPrivateMessage(){this.model.convertTopic("private").then((()=>window.location.reload())).catch(O.popupAjaxError)},resetBumpDate(){this.model.resetBumpDate()},removeTopicTimer(e,t){y.default.update(this.get("model.id"),null,null,e,null).then((()=>this.set(`model.${t}`,p.default.create({})))).catch((e=>(0,O.popupAjaxError)(e)))}},_jumpToIndex(e){const t=this.get("model.postStream")
if(t.get("isMegaTopic"))this._jumpToPostNumber(e)
else{const i=t.get("stream"),n=Math.max(1,Math.min(i.length,e))
this._jumpToPostId(i[n-1])}},_jumpToDate(e){const t=this.get("model.postStream")
t.loadNearestPostToDate(e).then((e=>{n.default.routeTo(this.model.urlForPostNumber(e.get("post_number")))})).catch((()=>{this._jumpToIndex(t.get("topic.highest_post_number"))}))},_jumpToPostNumber(e){const t=this.get("model.postStream"),i=t.get("posts").findBy("post_number",e)
i?n.default.routeTo(this.model.urlForPostNumber(i.get("post_number"))):t.loadPostByPostNumber(e).then((e=>{n.default.routeTo(this.model.urlForPostNumber(e.get("post_number")))}))},_jumpToPostId(e){if(!e)return void console.warn("jump-post code broken - requested an index outside the stream array")
this.appEvents.trigger("topic:jump-to-post",e)
const t=this.model,i=t.get("postStream"),r=i.findLoadedPost(e)
r?n.default.routeTo(t.urlForPostNumber(r.get("post_number")),{keepFilter:!0}):i.findPostsByIds([e]).then((e=>{n.default.routeTo(t.urlForPostNumber(e[0].get("post_number")),{keepFilter:!0})}))},_modifyTopicBookmark(e){return(0,C.openBookmarkModal)(e,{onAfterSave:t=>{this._syncBookmarks(t),this.model.set("bookmarking",!1),this.model.set("bookmarked",!0),this.model.incrementProperty("bookmarksWereChanged"),this.appEvents.trigger("bookmarks:changed",t,e.attachedTo())},onAfterDelete:(e,t)=>{this.model.removeBookmark(t)}})},_modifyPostBookmark(e,t){return(0,C.openBookmarkModal)(e,{onCloseWithoutSaving:()=>{t.appEvents.trigger("post-stream:refresh",{id:e.bookmarkable_id})},onAfterSave:e=>(this._syncBookmarks(e),this.model.set("bookmarking",!1),t.createBookmark(e),this.model.afterPostBookmarked(t,e),[t.id]),onAfterDelete:(e,i)=>{this.model.removeBookmark(i),t.deleteBookmark(e)}})},_syncBookmarks(e){this.model.bookmarks||this.model.set("bookmarks",[])
const t=this.model.bookmarks.findBy("id",e.id)
t?(t.reminder_at=e.reminder_at,t.name=e.name,t.auto_delete_preference=e.auto_delete_preference):this.model.bookmarks.pushObject(c.default.create(e))},async _toggleTopicLevelBookmark(){if(this.model.bookmarking)return f.Promise.resolve()
if(this.model.bookmarkCount>1)return this._maybeClearAllBookmarks()
if(1===this.model.bookmarkCount){const e=this.model.bookmarks.findBy("bookmarkable_type","Topic")
if(e)return this._modifyTopicBookmark(e)
{const e=this.model.bookmarks[0],t=await this.model.postById(e.bookmarkable_id)
return this._modifyPostBookmark(e,t)}}return 0===this.model.bookmarkCount?this._modifyTopicBookmark(c.default.createFor(this.currentUser,"Topic",this.model.id)):void 0},_maybeClearAllBookmarks(){return new f.Promise((e=>{this.dialog.yesNoConfirm({message:m.default.t("bookmarks.confirm_clear"),didConfirm:()=>this.model.deleteBookmarks().then((()=>e(this.model.clearBookmarks()))).catch(O.popupAjaxError).finally((()=>{this.model.set("bookmarking",!1)})),didCancel:()=>{this.model.set("bookmarking",!1),e()}})}))},togglePinnedState(){this.send("togglePinnedForUser")},print(){this.siteSettings.max_prints_per_hour_per_user>0&&window.open(this.get("model.printUrl"),"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=600,height=315")},hasError:(0,r.or)("model.errorHtml","model.errorMessage"),noErrorYet:(0,r.not)("hasError"),categories:(0,r.alias)("site.categoriesList"),selectedPostsCount:(0,r.alias)("selectedPostIds.length"),selectedPosts:(e,t)=>e.map((e=>t.find((t=>t.id===e)))).filter((e=>void 0!==e)),selectedPostsUsername(e,t){if(t.length<1||e>t.length)return
const i=t[0].username
return t.every((e=>e.username===i))?i:void 0},selectedAllPosts:(e,t,i,n)=>t?e>=n:e>=i,canSelectAll:(e,t)=>!t&&!e,canDeselectAll:(0,r.alias)("selectedAllPosts"),canDeleteSelected:(e,t,i,n)=>t>0&&(i&&e||n.every((e=>e.can_delete))),canMergeTopic:(e,t)=>e&&t>0,canChangeOwner:(e,t,i,n,r)=>(e||i&&t)&&n>0&&void 0!==r,canMergePosts:(e,t,i)=>e>1&&void 0!==t&&i.every((e=>e.can_delete)),_multiSelectChanged(){this.set("selectedPostIds",[])},postSelected(e){return this.selectedAllPost||this.selectedPostIds.includes(e.id)},loadingHTML:()=>j.spinnerHTML,recoverTopic(){this.model.recover()},deleteTopic(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if(e.force_destroy)return this.model.destroy(this.currentUser,e)
this.model.views>this.siteSettings.min_topic_views_for_delete_confirm?this.deleteTopicModal():this.model.destroy(this.currentUser,e)},deleteTopicModal(){(0,S.default)("delete-topic-confirm",{model:this.model,title:"topic.actions.delete"})},retryOnRateLimit(e,t,i){const n=this.get("model.id");(i=i||n)===n&&(this._retryRateLimited||e<=0||(this._retryInProgress?(0,u.default)((()=>{this.retryOnRateLimit(e,t,i)}),100):(this._retryInProgress=!0,t().catch((n=>{const r=n.jqXHR
if(r&&429===r.status&&r.responseJSON&&r.responseJSON.extras&&r.responseJSON.extras.wait_seconds){let n=r.responseJSON.extras.wait_seconds
n<5&&(n=5),this._retryRateLimited=!0,(0,u.default)((()=>{this._retryRateLimited=!1,this.retryOnRateLimit(e-1,t,i)}),1e3*n)}})).finally((()=>{this._retryInProgress=!1})))))},subscribe(){this.unsubscribe(),this.messageBus.subscribe(`/topic/${this.get("model.id")}`,this.onMessage,this.get("model.message_bus_last_id"))},unsubscribe(){this.get("model.id")&&this.messageBus.unsubscribe("/topic/*",this.onMessage)},onMessage(e){const t=this.model,i=e=>this.appEvents.trigger("post-stream:refresh",e)
if((0,l.isPresent)(e.notification_level_change))return t.set("details.notification_level",e.notification_level_change),void t.set("details.notifications_reason_id",e.notifications_reason_id)
const n=this.get("model.postStream")
if(e.reload_topic)t.reload().then((()=>{this.send("postChangedRoute",t.get("post_number")||1),this.appEvents.trigger("header:update-topic",t),e.refresh_stream&&n.refresh()}))
else switch(e.type){case"acted":n.triggerChangedPost(e.id,e.updated_at,{preserveCooked:!0}).then((()=>i({id:e.id,refreshLikes:!0})))
break
case"read":n.triggerReadPost(e.id,e.readers_count).then((()=>i({id:e.id,refreshLikes:!0})))
break
case"liked":case"unliked":n.triggerLikedPost(e.id,e.likes_count,e.user_id,e.type).then((()=>i({id:e.id,refreshLikes:!0})))
break
case"revised":case"rebaked":n.triggerChangedPost(e.id,e.updated_at).then((()=>i({id:e.id})))
break
case"deleted":n.triggerDeletedPost(e.id).then((()=>i({id:e.id})))
break
case"destroyed":n.triggerDestroyedPost(e.id).then((()=>i({id:e.id})))
break
case"recovered":n.triggerRecoveredPost(e.id).then((()=>i({id:e.id})))
break
case"created":this._newPostsInStream.push(e.id),this.retryOnRateLimit(4,(()=>{const e=this._newPostsInStream
return this._newPostsInStream=[],n.triggerNewPostsInStream(e,{background:!0}).then((()=>i())).catch((t=>{throw this._newPostsInStream=e.concat(this._newPostsInStream),t}))})),this.get("currentUser.id")!==e.user_id&&this.documentTitle.incrementBackgroundContextCount()
break
case"move_to_inbox":t.set("message_archived",!1)
break
case"archived":t.set("message_archived",!0)
break
case"stats":{let r=!1;["last_posted_at","like_count","posts_count"].forEach((i=>{const n=e[i]
void 0!==n&&(t.set(i,n),r=!0)})),e.last_poster&&(t.details.set("last_poster",e.last_poster),r=!0),r&&n.triggerChangedTopicStats().then((e=>i({id:e})))
break}default:{let t=Z[e.type]
t?t(this,e):console.warn("unknown topic bus message type",e)}}},reply(){this.replyToPost()},readPosts(e,t){const i=this.model,n=i.get("postStream")
if(i.get("id")===e&&(n.get("posts").forEach((e=>{!e.read&&t.includes(e.post_number)&&(e.set("read",!0),this.appEvents.trigger("post-stream:refresh",{id:e.get("id")}))})),this.siteSettings.automatically_unpin_topics&&this.currentUser&&this.currentUser.user_option.automatically_unpin_topics)){const e=Math.max(...t)
i.get("pinned")&&e>=i.get("highest_post_number")&&(0,a.next)((()=>i.clearPin()))}},_showFooter(){const e=this.get("model.postStream.loaded")&&this.get("model.postStream.loadedAllPosts")
this.set("application.showFooter",e)}},X(Q,"_titleChanged",[z],Object.getOwnPropertyDescriptor(Q,"_titleChanged"),Q),X(Q,"showSharedDraftControls",[I],Object.getOwnPropertyDescriptor(Q,"showSharedDraftControls"),Q),X(Q,"showSelectedPostsAtBottom",[E],Object.getOwnPropertyDescriptor(Q,"showSelectedPostsAtBottom"),Q),X(Q,"postsToRender",[M],Object.getOwnPropertyDescriptor(Q,"postsToRender"),Q),X(Q,"androidLoading",[D],Object.getOwnPropertyDescriptor(Q,"androidLoading"),Q),X(Q,"pmPath",[N],Object.getOwnPropertyDescriptor(Q,"pmPath"),Q),X(Q,"selectedQuery",[o.default],Object.getOwnPropertyDescriptor(Q,"selectedQuery"),Q),X(Q,"canEditTopicFeaturedLink",[L],Object.getOwnPropertyDescriptor(Q,"canEditTopicFeaturedLink"),Q),X(Q,"featuredLinkDomain",[A],Object.getOwnPropertyDescriptor(Q,"featuredLinkDomain"),Q),X(Q,"canEditTags",[U],Object.getOwnPropertyDescriptor(Q,"canEditTags"),Q),X(Q,"canSendPms",[F],Object.getOwnPropertyDescriptor(Q,"canSendPms"),Q),X(Q,"minimumRequiredTags",[R],Object.getOwnPropertyDescriptor(Q,"minimumRequiredTags"),Q),X(Q,"editTopic",[p.action],Object.getOwnPropertyDescriptor(Q,"editTopic"),Q),X(Q,"jumpTop",[p.action],Object.getOwnPropertyDescriptor(Q,"jumpTop"),Q),X(Q,"removeFeaturedLink",[p.action],Object.getOwnPropertyDescriptor(Q,"removeFeaturedLink"),Q),X(Q,"selectAll",[p.action],Object.getOwnPropertyDescriptor(Q,"selectAll"),Q),X(Q,"deselectAll",[p.action],Object.getOwnPropertyDescriptor(Q,"deselectAll"),Q),X(Q,"toggleMultiSelect",[p.action],Object.getOwnPropertyDescriptor(Q,"toggleMultiSelect"),Q),X(Q,"selectedPosts",[B],Object.getOwnPropertyDescriptor(Q,"selectedPosts"),Q),X(Q,"selectedPostsUsername",[$],Object.getOwnPropertyDescriptor(Q,"selectedPostsUsername"),Q),X(Q,"selectedAllPosts",[q],Object.getOwnPropertyDescriptor(Q,"selectedAllPosts"),Q),X(Q,"canSelectAll",[H],Object.getOwnPropertyDescriptor(Q,"canSelectAll"),Q),X(Q,"canDeleteSelected",[W],Object.getOwnPropertyDescriptor(Q,"canDeleteSelected"),Q),X(Q,"canMergeTopic",[V],Object.getOwnPropertyDescriptor(Q,"canMergeTopic"),Q),X(Q,"canChangeOwner",[G],Object.getOwnPropertyDescriptor(Q,"canChangeOwner"),Q),X(Q,"canMergePosts",[K],Object.getOwnPropertyDescriptor(Q,"canMergePosts"),Q),X(Q,"_multiSelectChanged",[Y],Object.getOwnPropertyDescriptor(Q,"_multiSelectChanged"),Q),X(Q,"loadingHTML",[o.default],Object.getOwnPropertyDescriptor(Q,"loadingHTML"),Q),X(Q,"recoverTopic",[p.action],Object.getOwnPropertyDescriptor(Q,"recoverTopic"),Q),X(Q,"onMessage",[o.bind],Object.getOwnPropertyDescriptor(Q,"onMessage"),Q),X(Q,"_showFooter",[J],Object.getOwnPropertyDescriptor(Q,"_showFooter"),Q),Q))
e.default=ee})),define("discourse/controllers/user-activity-bookmarks",["exports","@ember/controller","@ember/object","@ember/object/computed","discourse-common/lib/icon-library","discourse-common/utils/decorators","discourse/lib/ajax","discourse/models/bookmark","I18n","rsvp","@ember/template"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m,h
function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var g=t.default.extend((d=(0,o.default)(),p=(0,o.default)("inSearchMode","noContent"),m=(0,o.default)("inSearchMode","noContent"),f(h={queryParams:["q"],q:null,application:(0,t.inject)(),user:(0,t.inject)(),loading:!1,loadingMore:!1,permissionDenied:!1,inSearchMode:(0,n.notEmpty)("q"),noContent:(0,n.equal)("model.bookmarks.length",0),searchTerm:(0,i.computed)("q",{get(){return this.q},set:(e,t)=>t}),emptyStateBody:()=>(0,c.htmlSafe)(a.default.t("user.no_bookmarks_body",{icon:(0,r.iconHTML)("bookmark")})),userDoesNotHaveBookmarks:(e,t)=>!e&&t,nothingFound:(e,t)=>e&&t,search(){this.transitionToRoute({queryParams:{q:this.searchTerm}})},reload(){this.send("triggerRefresh")},loadMore(){return this.loadingMore?u.Promise.resolve():(this.set("loadingMore",!0),this._loadMoreBookmarks(this.q).then((e=>this._processLoadResponse(this.q,e))).catch((()=>this._bookmarksListDenied())).finally((()=>this.set("loadingMore",!1))))},_loadMoreBookmarks(e){if(!this.model.loadMoreUrl)return u.Promise.resolve()
let t=this.model.loadMoreUrl
if(e){const i=t.includes("?")?"&":"?"
t+=`${i}q=${encodeURIComponent(e)}`}return(0,s.ajax)({url:t})},_bookmarksListDenied(){this.set("permissionDenied",!0)},_processLoadResponse(e,t){if(t&&t.user_bookmark_list){if(t=t.user_bookmark_list,this.model.searchTerm=e,this.model.loadMoreUrl=t.more_bookmarks_url,t.bookmarks){const e=t.bookmarks.map(this.transform)
this.model.bookmarks.pushObjects(e),this.session.set("bookmarksModel",this.model)}}else this.model.loadMoreUrl=null},transform(e){const t=l.default.create(e)
return t.topicStatus=i.default.create({closed:e.closed,archived:e.archived,is_warning:e.is_warning,pinned:!1,unpinned:!1,invisible:e.invisible}),t}},"emptyStateBody",[d],Object.getOwnPropertyDescriptor(h,"emptyStateBody"),h),f(h,"userDoesNotHaveBookmarks",[p],Object.getOwnPropertyDescriptor(h,"userDoesNotHaveBookmarks"),h),f(h,"nothingFound",[m],Object.getOwnPropertyDescriptor(h,"nothingFound"),h),f(h,"search",[i.action],Object.getOwnPropertyDescriptor(h,"search"),h),f(h,"reload",[i.action],Object.getOwnPropertyDescriptor(h,"reload"),h),f(h,"loadMore",[i.action],Object.getOwnPropertyDescriptor(h,"loadMore"),h),h))
e.default=g})),define("discourse/controllers/user-activity",["exports","@ember/controller","I18n","@ember/object/computed","discourse/lib/export-csv","@ember/service","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s){var l,a,u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var p=t.default.extend((l=(0,s.observes)("userActionType","model.stream.itemsLoaded"),a=(0,s.default)("currentUser.draft_count"),u=(0,s.default)("model.pending_posts_count"),d(c={dialog:(0,o.inject)(),application:(0,t.inject)(),user:(0,t.inject)(),userActionType:null,canDownloadPosts:(0,n.alias)("user.viewingSelf"),_showFooter(){let e
if(this.userActionType){const t=(this.get("model.stats")||[]).find((e=>e.action_type===this.userActionType))
e=t&&t.count<=this.get("model.stream.itemsLoaded")}else e=this.get("model.statsCountNonPM")<=this.get("model.stream.itemsLoaded")
this.set("application.showFooter",e)},draftLabel:e=>e>0?i.default.t("drafts.label_with_count",{count:e}):i.default.t("drafts.label"),pendingLabel:e=>e>0?i.default.t("pending_posts.label_with_count",{count:e}):i.default.t("pending_posts.label"),actions:{exportUserArchive(){this.dialog.yesNoConfirm({message:i.default.t("user.download_archive.confirm"),didConfirm:()=>(0,r.exportUserArchive)()})}}},"_showFooter",[l],Object.getOwnPropertyDescriptor(c,"_showFooter"),c),d(c,"draftLabel",[a],Object.getOwnPropertyDescriptor(c,"draftLabel"),c),d(c,"pendingLabel",[u],Object.getOwnPropertyDescriptor(c,"pendingLabel"),c),c))
e.default=p})),define("discourse/controllers/user-badges",["exports","@ember/controller","@ember/object","@ember/object/computed","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=t.default.extend((o=(0,r.default)("favoriteBadges.length"),s={user:(0,t.inject)(),username:(0,n.alias)("user.model.username_lower"),sortedBadges:(0,n.sort)("model","badgeSortOrder"),favoriteBadges:(0,n.filterBy)("model","is_favorite",!0),canFavoriteMoreBadges(e){return e<this.siteSettings.max_favorite_badges},init(){this._super(...arguments),this.badgeSortOrder=["badge.badge_type.sort_order:desc","badge.name"]},favorite:e=>e.favorite()},l(s,"canFavoriteMoreBadges",[o],Object.getOwnPropertyDescriptor(s,"canFavoriteMoreBadges"),s),l(s,"favorite",[i.action],Object.getOwnPropertyDescriptor(s,"favorite"),s),s))
e.default=a})),define("discourse/controllers/user-invited-show",["exports","@ember/controller","@ember/object","@ember/object/computed","discourse-common/config/environment","discourse-common/utils/decorators","discourse/lib/ajax-error","discourse/lib/show-modal","discourse/models/invite","I18n","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m,h,f,g
function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var y=t.default.extend((d=(0,o.observes)("searchTerm"),p=(0,o.debounce)(r.INPUT_DELAY),m=(0,o.default)("model"),h=(0,o.default)("filter"),f=(0,o.default)("invitesCount","filter"),g={dialog:(0,c.inject)(),user:null,model:null,filter:null,invitesCount:null,canLoadMore:!0,invitesLoading:!1,reinvitedAll:!1,removedAll:!1,searchTerm:null,init(){this._super(...arguments),this.set("searchTerm","")},searchTermChanged(){this._searchTermChanged()},_searchTermChanged(){a.default.findInvitedBy(this.user,this.filter,this.searchTerm).then((e=>this.set("model",e)))},inviteRedeemed:(0,n.equal)("filter","redeemed"),inviteExpired:(0,n.equal)("filter","expired"),invitePending:(0,n.equal)("filter","pending"),hasEmailInvites:e=>e.invites.some((e=>e.email)),showBulkActionButtons(e){return"pending"===e&&this.model.invites.length>0&&this.currentUser.staff},canInviteToForum:(0,n.reads)("currentUser.can_invite_to_forum"),canBulkInvite:(0,n.reads)("currentUser.admin"),showSearch:(e,t)=>e[t]>5,createInvite(){(0,l.default)("create-invite").set("invites",this.model.invites)},createInviteCsv(){(0,l.default)("create-invite-bulk")},editInvite(e){const t=(0,l.default)("create-invite")
t.set("editing",!0),t.setInvite(e)},destroyInvite(e){e.destroy(),this.model.invites.removeObject(e)},destroyAllExpired(){this.dialog.deleteConfirm({message:u.default.t("user.invited.remove_all_confirm"),didConfirm:()=>a.default.destroyAllExpired().then((()=>{this.set("removedAll",!0),this.send("triggerRefresh")})).catch(s.popupAjaxError)})},reinvite:e=>(e.reinvite(),!1),reinviteAll(){this.dialog.yesNoConfirm({message:u.default.t("user.invited.reinvite_all_confirm"),didConfirm:()=>a.default.reinviteAll().then((()=>this.set("reinvitedAll",!0))).catch(s.popupAjaxError)})},loadMore(){const e=this.model
this.canLoadMore&&!this.invitesLoading&&(this.set("invitesLoading",!0),a.default.findInvitedBy(this.user,this.filter,this.searchTerm,e.invites.length).then((t=>{this.set("invitesLoading",!1),e.invites.pushObjects(t.invites),(0===t.invites.length||t.invites.length<this.siteSettings.invites_per_page)&&this.set("canLoadMore",!1)})))}},b(g,"searchTermChanged",[d],Object.getOwnPropertyDescriptor(g,"searchTermChanged"),g),b(g,"_searchTermChanged",[p],Object.getOwnPropertyDescriptor(g,"_searchTermChanged"),g),b(g,"hasEmailInvites",[m],Object.getOwnPropertyDescriptor(g,"hasEmailInvites"),g),b(g,"showBulkActionButtons",[h],Object.getOwnPropertyDescriptor(g,"showBulkActionButtons"),g),b(g,"showSearch",[f],Object.getOwnPropertyDescriptor(g,"showSearch"),g),b(g,"createInvite",[i.action],Object.getOwnPropertyDescriptor(g,"createInvite"),g),b(g,"createInviteCsv",[i.action],Object.getOwnPropertyDescriptor(g,"createInviteCsv"),g),b(g,"editInvite",[i.action],Object.getOwnPropertyDescriptor(g,"editInvite"),g),b(g,"destroyInvite",[i.action],Object.getOwnPropertyDescriptor(g,"destroyInvite"),g),b(g,"destroyAllExpired",[i.action],Object.getOwnPropertyDescriptor(g,"destroyAllExpired"),g),b(g,"reinvite",[i.action],Object.getOwnPropertyDescriptor(g,"reinvite"),g),b(g,"reinviteAll",[i.action],Object.getOwnPropertyDescriptor(g,"reinviteAll"),g),b(g,"loadMore",[i.action],Object.getOwnPropertyDescriptor(g,"loadMore"),g),g))
e.default=y})),define("discourse/controllers/user-invited",["exports","@ember/controller","discourse-common/utils/decorators","I18n"],(function(e,t,i,n){var r,o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u=t.default.extend((r=(0,i.default)("invitesCount.total","invitesCount.pending"),o=(0,i.default)("invitesCount.total","invitesCount.expired"),s=(0,i.default)("invitesCount.total","invitesCount.redeemed"),a(l={pendingLabel:(e,t)=>e>0?n.default.t("user.invited.pending_tab_with_count",{count:t}):n.default.t("user.invited.pending_tab"),expiredLabel:(e,t)=>e>0?n.default.t("user.invited.expired_tab_with_count",{count:t}):n.default.t("user.invited.expired_tab"),redeemedLabel:(e,t)=>e>0?n.default.t("user.invited.redeemed_tab_with_count",{count:t}):n.default.t("user.invited.redeemed_tab")},"pendingLabel",[r],Object.getOwnPropertyDescriptor(l,"pendingLabel"),l),a(l,"expiredLabel",[o],Object.getOwnPropertyDescriptor(l,"expiredLabel"),l),a(l,"redeemedLabel",[s],Object.getOwnPropertyDescriptor(l,"redeemedLabel"),l),l))
e.default=u})),define("discourse/controllers/user-notifications",["exports","@ember/controller","discourse-common/lib/get-url","discourse-common/lib/icon-library","discourse-common/utils/decorators","discourse/lib/ajax","I18n","@ember/template","@ember/service","discourse/components/modal/dismiss-notification-confirmation"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f,g
function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var y=t.default.extend((c=(0,r.observes)("model.canLoadMore"),d=(0,r.default)("filter"),p=(0,r.default)("model.content.@each.read"),m=(0,r.default)("isFiltered","model.content.length"),h=(0,r.default)("isFiltered","model.content.length"),f=(0,r.default)(),b(g={modal:(0,a.inject)(),application:(0,t.inject)(),queryParams:["filter"],filter:"all",_showFooter(){this.set("application.showFooter",!this.get("model.canLoadMore"))},isFiltered(){return this.filter&&"all"!==this.filter},allNotificationsRead(){return!this.get("model.content").some((e=>!e.get("read")))},doesNotHaveNotifications:(e,t)=>!e&&0===t,nothingFound:(e,t)=>e&&0===t,emptyStateBody:()=>(0,l.htmlSafe)(s.default.t("user.no_notifications_page_body",{preferencesUrl:(0,i.default)("/my/preferences/notifications"),icon:(0,n.iconHTML)("bell")})),async markRead(){await(0,o.ajax)("/notifications/mark-read",{type:"PUT"}),this.model.forEach((e=>e.set("read",!0)))},actions:{async resetNew(){this.currentUser.unread_high_priority_notifications>0?this.modal.show(u.default,{model:{confirmationMessage:s.default.t("notifications.dismiss_confirmation.body.default",{count:this.currentUser.unread_high_priority_notifications}),dismissNotifications:()=>this.markRead()}}):this.markRead()},loadMore(){this.model.loadMore()}}},"_showFooter",[c],Object.getOwnPropertyDescriptor(g,"_showFooter"),g),b(g,"isFiltered",[d],Object.getOwnPropertyDescriptor(g,"isFiltered"),g),b(g,"allNotificationsRead",[p],Object.getOwnPropertyDescriptor(g,"allNotificationsRead"),g),b(g,"doesNotHaveNotifications",[m],Object.getOwnPropertyDescriptor(g,"doesNotHaveNotifications"),g),b(g,"nothingFound",[h],Object.getOwnPropertyDescriptor(g,"nothingFound"),g),b(g,"emptyStateBody",[f],Object.getOwnPropertyDescriptor(g,"emptyStateBody"),g),g))
e.default=y})),define("discourse/controllers/user-posts",["exports","@ember/controller","discourse-common/utils/decorators"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((n=(0,i.observes)("model.canLoadMore"),r={application:(0,t.inject)(),_showFooter(){this.set("application.showFooter",!this.get("model.canLoadMore"))}},o=r,s="_showFooter",l=[n],a=Object.getOwnPropertyDescriptor(r,"_showFooter"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/controllers/user-private-messages-group",["exports","I18n","@ember/controller","@ember/object"],(function(e,t,i,n){var r,o,s,l,a
function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let p=(r=(0,n.computed)("pmTopicTrackingState.newIncoming.[]","pmTopicTrackingState.statesModificationCounter","pmTopicTrackingState.isTracking"),o=(0,n.computed)("pmTopicTrackingState.newIncoming.[]","pmTopicTrackingState.statesModificationCounter","pmTopicTrackingState.isTracking"),a=new WeakSet,s=class extends i.default{constructor(){var e,t,i,n
super(...arguments),u(this,a),e=this,t="user",n=this,(i=l)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get viewingSelf(){return this.user.viewingSelf}get newLinkText(){return c(this,a,m).call(this,"new")}get unreadLinkText(){return c(this,a,m).call(this,"unread")}get navigationControlsButton(){return document.getElementById("navigation-controls__button")}changeGroupNotificationLevel(e){this.group.setNotification(e,this.get("user.model.id"))}},l=d(s.prototype,"user",[i.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(s.prototype,"newLinkText",[r],Object.getOwnPropertyDescriptor(s.prototype,"newLinkText"),s.prototype),d(s.prototype,"unreadLinkText",[o],Object.getOwnPropertyDescriptor(s.prototype,"unreadLinkText"),s.prototype),d(s.prototype,"changeGroupNotificationLevel",[n.action],Object.getOwnPropertyDescriptor(s.prototype,"changeGroupNotificationLevel"),s.prototype),s)
function m(e){const i=this.pmTopicTrackingState?.lookupCount(e,{inboxFilter:"group",groupName:this.group.name})
return 0===i?t.default.t(`user.messages.${e}`):t.default.t(`user.messages.${e}_with_count`,{count:i})}e.default=p})),define("discourse/controllers/user-private-messages-tags-index",["exports","@ember/controller","@ember/object","@glimmer/tracking"],(function(e,t,i,n){var r,o,s,l,a
function u(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let d=(r=class extends t.default{constructor(){super(...arguments),u(this,"tagsForUser",o,this),u(this,"sortedByCount",s,this),u(this,"sortedByName",l,this),u(this,"sortProperties",a,this)}sortByCount(e){e?.preventDefault(),this.sortProperties=["count:desc","id"],this.sortedByCount=!0,this.sortedByName=!1}sortById(e){e?.preventDefault(),this.sortProperties=["id"],this.sortedByCount=!1,this.sortedByName=!0}},o=c(r.prototype,"tagsForUser",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=c(r.prototype,"sortedByCount",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),l=c(r.prototype,"sortedByName",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=c(r.prototype,"sortProperties",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return["count:desc","id"]}}),c(r.prototype,"sortByCount",[i.action],Object.getOwnPropertyDescriptor(r.prototype,"sortByCount"),r.prototype),c(r.prototype,"sortById",[i.action],Object.getOwnPropertyDescriptor(r.prototype,"sortById"),r.prototype),r)
e.default=d})),define("discourse/controllers/user-private-messages-tags",["exports","@ember/controller","@glimmer/tracking"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let o=(n=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="tagName",n=this,(i=r)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}},s=n.prototype,l="tagName",a=[i.tracked],u={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}},d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r=d,n)
var s,l,a,u,c,d
e.default=o})),define("discourse/controllers/user-private-messages-user",["exports","I18n","@ember/controller","@ember/object","@ember/service"],(function(e,t,i,n,r){var o,s,l,a,u,c,d
function p(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function m(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function h(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let g=(o=(0,n.computed)("viewingSelf","router.currentRoute.name","currentUser.admin"),s=(0,n.computed)("pmTopicTrackingState.newIncoming.[]","pmTopicTrackingState.statesModificationCounter","pmTopicTrackingState.isTracking"),l=(0,n.computed)("pmTopicTrackingState.newIncoming.[]","pmTopicTrackingState.statesModificationCounter","pmTopicTrackingState.isTracking"),d=new WeakSet,a=class extends i.default{constructor(){super(...arguments),m(this,d),p(this,"router",u,this),p(this,"user",c,this)}get viewingSelf(){return this.user.viewingSelf}get showWarningsWarning(){return"userPrivateMessages.user.warnings"===this.router.currentRoute.name&&!this.viewingSelf&&!this.currentUser.isAdmin}get newLinkText(){return h(this,d,b).call(this,"new")}get unreadLinkText(){return h(this,d,b).call(this,"unread")}},u=f(a.prototype,"router",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(a.prototype,"user",[i.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(a.prototype,"showWarningsWarning",[o],Object.getOwnPropertyDescriptor(a.prototype,"showWarningsWarning"),a.prototype),f(a.prototype,"newLinkText",[s],Object.getOwnPropertyDescriptor(a.prototype,"newLinkText"),a.prototype),f(a.prototype,"unreadLinkText",[l],Object.getOwnPropertyDescriptor(a.prototype,"unreadLinkText"),a.prototype),a)
function b(e){const i=this.pmTopicTrackingState?.lookupCount(e,{inboxFilter:"user"})
return 0===i?t.default.t(`user.messages.${e}`):t.default.t(`user.messages.${e}_with_count`,{count:i})}e.default=g})),define("discourse/controllers/user-private-messages",["exports","@embroider/macros/es-compat","@ember/controller","@ember/object","@ember/service","@ember/object/computed","@glimmer/tracking","I18n","discourse/lib/url"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m,h,f,g,b,y,_,v,w,k,x,P,O
function T(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function S(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.registerCustomUserNavMessagesDropdownRow=function(e,t,i){C.push({routeName:e,name:t,icon:i})},e.resetCustomUserNavMessagesDropdownRows=function(){C.length=0}
let j=(0,t.default)(require("ember-cached-decorator-polyfill")).cached
const C=[]
let z=(u=(0,o.alias)("group.name"),c=(0,o.and)("user.viewingSelf","currentUser.can_send_private_messages"),d=(0,o.equal)("currentParentRouteName","userPrivateMessages.group"),p=(0,o.readOnly)("user.viewingSelf"),m=(0,o.readOnly)("router.currentRoute.parent.name"),h=(0,o.readOnly)("site.can_tag_pms"),f=class extends i.default{constructor(){super(...arguments),T(this,"router",g,this),T(this,"user",b,this),T(this,"group",y,this),T(this,"tagId",_,this),T(this,"groupFilter",v,this),T(this,"showNewPM",w,this),T(this,"isGroup",k,this),T(this,"viewingSelf",x,this),T(this,"currentParentRouteName",P,this),T(this,"pmTaggingEnabled",O,this)}get messagesDropdownValue(){let e
const t=this.router.currentURL.toLowerCase()
for(let i=this.messagesDropdownContent.length-1;i>=0;i--){const n=this.messagesDropdownContent[i]
if(t.includes(n.id.toLowerCase().replace(this.router.rootURL,"/"))){e=n.id
break}}return e}get messagesDropdownContent(){const e=this.model.username_lower,t=[{id:this.router.urlFor("userPrivateMessages.user",e),name:l.default.t("user.messages.inbox")}]
return this.model.groupsWithMessages.forEach((i=>{t.push({id:this.router.urlFor("userPrivateMessages.group",e,i.name),name:i.name,icon:"inbox"})})),this.pmTaggingEnabled&&t.push({id:this.router.urlFor("userPrivateMessages.tags",e),name:l.default.t("user.messages.tags"),icon:"tags"}),C.forEach((i=>{t.push({id:this.router.urlFor(i.routeName,e),name:i.name,icon:i.icon})})),t}onMessagesDropdownChange(e){return a.default.routeTo(e)}},g=S(f.prototype,"router",[r.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=S(f.prototype,"user",[i.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=S(f.prototype,"group",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=S(f.prototype,"tagId",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=S(f.prototype,"groupFilter",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=S(f.prototype,"showNewPM",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=S(f.prototype,"isGroup",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=S(f.prototype,"viewingSelf",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=S(f.prototype,"currentParentRouteName",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=S(f.prototype,"pmTaggingEnabled",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S(f.prototype,"messagesDropdownContent",[j],Object.getOwnPropertyDescriptor(f.prototype,"messagesDropdownContent"),f.prototype),S(f.prototype,"onMessagesDropdownChange",[n.action],Object.getOwnPropertyDescriptor(f.prototype,"onMessagesDropdownChange"),f.prototype),f)
e.default=z})),define("discourse/controllers/user-status",["exports","@ember/controller","discourse/mixins/modal-functionality","@ember/object","discourse/lib/ajax-error","discourse-common/utils/decorators","@discourse/itsatrap","discourse/lib/time-shortcut"],(function(e,t,i,n,r,o,s,l){var a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=t.default.extend(i.default,(u(a={showDeleteButton:!1,prefilledDateTime:null,timeShortcuts:null,_itsatrap:null,onShow(){const e={...this.model.status}
this.setProperties({status:e,hidePauseNotifications:this.model.hidePauseNotifications,pauseNotifications:this.model.pauseNotifications,showDeleteButton:!!this.model.status,timeShortcuts:this._buildTimeShortcuts(),prefilledDateTime:e?.ends_at}),this.set("_itsatrap",new s.default)},onClose(){this._itsatrap.destroy(),this.set("_itsatrap",null),this.set("timeShortcuts",null)},statusIsSet:(e,t)=>!!e&&!!t,customTimeShortcutLabels(){const e={}
return e[l.TIME_SHORTCUT_TYPES.NONE]="time_shortcut.never",e},hiddenTimeShortcutOptions:()=>[l.TIME_SHORTCUT_TYPES.LAST_CUSTOM],delete(){Promise.resolve(this.model.deleteAction()).then((()=>this.send("closeModal"))).catch((e=>this._handleError(e)))},onTimeSelected(e,t){this.set("status.endsAt",t)},saveAndClose(){const e={description:this.status.description,emoji:this.status.emoji,ends_at:this.status.endsAt?.toISOString()}
Promise.resolve(this.model.saveAction(e,this.pauseNotifications)).then((()=>this.send("closeModal"))).catch((e=>this._handleError(e)))},_handleError(e){"string"==typeof e?this.dialog.alert(e):(0,r.popupAjaxError)(e)},_buildTimeShortcuts(){const e=this.currentUser.user_option.timezone,t=(0,l.timeShortcuts)(e)
return[t.oneHour(),t.twoHours(),t.tomorrow()]}},"statusIsSet",[(0,o.default)("status.emoji","status.description")],Object.getOwnPropertyDescriptor(a,"statusIsSet"),a),u(a,"customTimeShortcutLabels",[o.default],Object.getOwnPropertyDescriptor(a,"customTimeShortcutLabels"),a),u(a,"hiddenTimeShortcutOptions",[o.default],Object.getOwnPropertyDescriptor(a,"hiddenTimeShortcutOptions"),a),u(a,"delete",[n.action],Object.getOwnPropertyDescriptor(a,"delete"),a),u(a,"onTimeSelected",[n.action],Object.getOwnPropertyDescriptor(a,"onTimeSelected"),a),u(a,"saveAndClose",[n.action],Object.getOwnPropertyDescriptor(a,"saveAndClose"),a),a))
e.default=c})),define("discourse/controllers/user-summary",["exports","@ember/controller","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/formatter"],(function(e,t,i,n,r){var o,s,l,a,u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var m=t.default.extend((o=(0,n.default)("model.badges.length"),s=(0,n.default)("model.time_read"),l=(0,n.default)("model.time_read"),a=(0,n.default)("model.time_read","model.recent_time_read"),u=(0,n.default)("model.recent_time_read"),c=(0,n.default)("model.recent_time_read"),p(d={userController:(0,t.inject)("user"),user:(0,i.alias)("userController.model"),moreBadges:e=>e>=6,timeRead:e=>(0,r.duration)(e,{format:"tiny"}),timeReadMedium:e=>(0,r.duration)(e,{format:"medium"}),showRecentTimeRead:(e,t)=>e!==t&&0!==t,recentTimeRead:e=>e>0?(0,r.duration)(e,{format:"tiny"}):null,recentTimeReadMedium:e=>e>0?(0,r.duration)(e,{format:"medium"}):null},"moreBadges",[o],Object.getOwnPropertyDescriptor(d,"moreBadges"),d),p(d,"timeRead",[s],Object.getOwnPropertyDescriptor(d,"timeRead"),d),p(d,"timeReadMedium",[l],Object.getOwnPropertyDescriptor(d,"timeReadMedium"),d),p(d,"showRecentTimeRead",[a],Object.getOwnPropertyDescriptor(d,"showRecentTimeRead"),d),p(d,"recentTimeRead",[u],Object.getOwnPropertyDescriptor(d,"recentTimeRead"),d),p(d,"recentTimeReadMedium",[c],Object.getOwnPropertyDescriptor(d,"recentTimeReadMedium"),d),d))
e.default=m})),define("discourse/controllers/user-topics-list",["exports","@ember/controller","discourse-common/utils/decorators","@ember/object/computed","discourse/mixins/bulk-topic-selection","@ember/object","discourse/models/topic","discourse/routes/build-private-messages-route"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p
function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var h=t.default.extend(r.default,(a=(0,i.default)("model.topics.length","incomingCount"),u=(0,i.observes)("model.canLoadMore"),c=(0,i.default)("filter","model.topics.length"),d=(0,i.default)("filter","model.topics.length"),m(p={application:(0,t.inject)(),hideCategory:!1,showPosters:!1,channel:null,tagsForUser:null,incomingCount:(0,n.reads)("pmTopicTrackingState.newIncoming.length"),noContent:(e,t)=>0===e&&0===t,saveScrollPosition(){this.session.set("topicListScrollPosition",$(window).scrollTop())},_showFooter(){this.set("application.showFooter",!this.get("model.canLoadMore"))},showResetNew:(e,t)=>e===l.NEW_FILTER&&t,showDismissRead:(e,t)=>e===l.UNREAD_FILTER&&t,subscribe(){this.pmTopicTrackingState.trackIncoming(this.inbox,this.filter)},unsubscribe(){this.pmTopicTrackingState.stopIncomingTracking()},resetNew(){const e=this.selected?this.selected.map((e=>e.id)):null,t={inbox:this.inbox,topicIds:e}
this.group&&(t.groupName=this.group.name),s.default.pmResetNew(t).then((e=>{e&&e.topic_ids.length>0&&(this.pmTopicTrackingState.removeTopics(e.topic_ids),this.send("refresh"))}))},loadMore(){this.model.loadMore()},showInserted(e){e?.preventDefault(),this.model.loadBefore(this.pmTopicTrackingState.newIncoming),this.pmTopicTrackingState.resetIncomingTracking()},refresh(){this.send("triggerRefresh")}},"noContent",[a],Object.getOwnPropertyDescriptor(p,"noContent"),p),m(p,"_showFooter",[u],Object.getOwnPropertyDescriptor(p,"_showFooter"),p),m(p,"showResetNew",[c],Object.getOwnPropertyDescriptor(p,"showResetNew"),p),m(p,"showDismissRead",[d],Object.getOwnPropertyDescriptor(p,"showDismissRead"),p),m(p,"resetNew",[o.action],Object.getOwnPropertyDescriptor(p,"resetNew"),p),m(p,"loadMore",[o.action],Object.getOwnPropertyDescriptor(p,"loadMore"),p),m(p,"showInserted",[o.action],Object.getOwnPropertyDescriptor(p,"showInserted"),p),m(p,"refresh",[o.action],Object.getOwnPropertyDescriptor(p,"refresh"),p),p))
e.default=h})),define("discourse/controllers/user",["exports","@ember/controller","@ember/object","@ember/object/computed","discourse/mixins/can-check-emails","discourse/models/user","I18n","discourse-common/utils/decorators","discourse-common/lib/get-url","@ember/utils","discourse/lib/optional-service","discourse/lib/settings","@ember/service","@ember/string"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g,b,y,_,v,w,k,x,P,O,T,S,j,C,z
function I(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var E=t.default.extend(r.default,(h=(0,l.default)("model.username"),f=(0,l.default)("viewingSelf","model.profile_hidden"),g=(0,l.default)("model.profileBackgroundUrl"),b=(0,l.default)("model.profile_hidden","isSummaryRoute","viewingSelf","forceExpand"),y=(0,l.default)("model.suspended","currentUser.staff"),_=(0,l.default)("model.trust_level"),v=(0,l.default)("viewingSelf","currentUser.admin"),w=(0,l.default)("viewingSelf"),k=(0,l.default)("viewingSelf"),x=(0,l.default)("viewingSelf","currentUser.admin","currentUser.can_send_private_messages"),P=(0,l.default)("viewingSelf","currentUser.admin"),O=(0,l.default)("model.name"),T=(0,l.default)("model.badge_count"),S=(0,l.default)(),j=(0,l.default)("model.user_fields.@each.value"),C=(0,l.default)("model.primary_group_name"),I(z={router:(0,p.inject)(),dialog:(0,p.inject)(),userNotifications:(0,t.inject)("user-notifications"),adminTools:(0,c.default)(),viewingSelf(e){let t=this.currentUser
return t&&e===t.get("username")},canExpandProfile:(e,t)=>!t&&e,hasProfileBackgroundUrl:e=>!(0,u.isEmpty)(e.toString()),isSummaryRoute:(0,n.equal)("router.currentRouteName","user.summary"),collapsedInfo:(e,t,i,n)=>!!e||(!t||i)&&!n,canMuteOrIgnoreUser:(0,n.or)("model.can_ignore_user","model.can_mute_user"),hasGivenFlags:(0,n.gt)("model.number_of_flags_given",0),hasFlaggedPosts:(0,n.gt)("model.number_of_flagged_posts",0),hasDeletedPosts:(0,n.gt)("model.number_of_deleted_posts",0),hasBeenSuspended:(0,n.gt)("model.number_of_suspensions",0),hasReceivedWarnings:(0,n.gt)("model.warnings_received_count",0),hasRejectedPosts:(0,n.gt)("model.number_of_rejected_posts",0),collapsedInfoState:(0,i.computed)("collapsedInfo",(function(){return{isExpanded:!this.collapsedInfo,icon:this.collapsedInfo?"angle-double-down":"angle-double-up",label:this.collapsedInfo?"expand_profile":"collapse_profile",ariaLabel:this.collapsedInfo?"user.sr_expand_profile":"user.sr_collapse_profile",action:this.collapsedInfo?"expandProfile":"collapseProfile"}})),showStaffCounters:(0,n.or)("hasGivenFlags","hasFlaggedPosts","hasDeletedPosts","hasBeenSuspended","hasReceivedWarnings","hasRejectedPosts"),showFeaturedTopic:(0,n.and)("model.featured_topic","siteSettings.allow_featured_topic_on_user_profiles"),isNotSuspendedOrIsStaff:(e,t)=>!e||t,linkWebsite:(0,n.not)("model.isBasic"),removeNoFollow(e){return e>2&&!this.siteSettings.tl3_links_no_follow},showBookmarks:(e,t)=>e||t,showDrafts:e=>e,showRead:e=>e,showPrivateMessages(e,t){return this.currentUser?.can_send_private_messages&&(e||t)},showNotificationsTab:(e,t)=>e||t,nameFirst:e=>(0,d.prioritizeNameInUx)(e),showBadges(e){return this.siteSettings.enable_badges&&e>0},canInviteToForum:()=>o.default.currentProp("can_invite_to_forum"),canDeleteUser:(0,n.and)("model.can_be_deleted","model.can_delete_all_posts"),publicUserFields(){const e=this.site.get("user_fields")
if(!(0,u.isEmpty)(e)){const t=this.get("model.user_fields")
return e.filterBy("show_on_profile",!0).sortBy("position").map((e=>{(0,i.set)(e,"dasherized_name",(0,m.dasherize)(e.get("name")))
const n=t?t[e.get("id").toString()]:null
return(0,u.isEmpty)(n)?null:i.default.create({value:n,field:e})})).compact()}},primaryGroup(e){if(e)return`group-${e}`},currentParentRoute:(0,n.readOnly)("router.currentRoute.parent.name"),userNotificationLevel:(0,i.computed)("currentUser.ignored_ids","model.ignored","model.muted",{get(){return this.get("model.ignored")?"changeToIgnored":this.get("model.muted")?"changeToMuted":"changeToNormal"},set:(e,t)=>t}),get displayTopLevelAdminButton(){return!!this.currentUser?.staff&&this.site.desktopView},showSuspensions(e){e?.preventDefault(),this.adminTools.showActionLogs(this,{target_user:this.get("model.username"),action_name:"suspend_user"})},actions:{collapseProfile(){this.set("forceExpand",!1)},expandProfile(){this.set("forceExpand",!0)},adminDelete(){const e=this.get("model.id"),t=document.location.pathname,i=i=>{this.dialog.notice(s.default.t("admin.user.deleting_user"))
let n={context:t}
return i&&(n.block_email=!0,n.block_urls=!0,n.block_ip=!0),n.delete_posts=!0,this.adminTools.deleteUser(e,n).then((e=>{e.deleted?document.location=(0,a.default)("/admin/users/list/active"):this.dialog.alert(s.default.t("admin.user.delete_failed"))})).catch((()=>this.dialog.alert(s.default.t("admin.user.delete_failed"))))}
this.dialog.alert({title:s.default.t("admin.user.delete_confirm_title"),message:s.default.t("admin.user.delete_confirm"),class:"delete-user-modal",buttons:[{label:s.default.t("admin.user.delete_dont_block"),class:"btn-primary",action:()=>i(!1)},{icon:"exclamation-triangle",label:s.default.t("admin.user.delete_and_block"),class:"btn-danger",action:()=>i(!0)},{label:s.default.t("composer.cancel")}]})},updateNotificationLevel(e){return this.model.updateNotificationLevel(e)}}},"viewingSelf",[h],Object.getOwnPropertyDescriptor(z,"viewingSelf"),z),I(z,"canExpandProfile",[f],Object.getOwnPropertyDescriptor(z,"canExpandProfile"),z),I(z,"hasProfileBackgroundUrl",[g],Object.getOwnPropertyDescriptor(z,"hasProfileBackgroundUrl"),z),I(z,"collapsedInfo",[b],Object.getOwnPropertyDescriptor(z,"collapsedInfo"),z),I(z,"isNotSuspendedOrIsStaff",[y],Object.getOwnPropertyDescriptor(z,"isNotSuspendedOrIsStaff"),z),I(z,"removeNoFollow",[_],Object.getOwnPropertyDescriptor(z,"removeNoFollow"),z),I(z,"showBookmarks",[v],Object.getOwnPropertyDescriptor(z,"showBookmarks"),z),I(z,"showDrafts",[w],Object.getOwnPropertyDescriptor(z,"showDrafts"),z),I(z,"showRead",[k],Object.getOwnPropertyDescriptor(z,"showRead"),z),I(z,"showPrivateMessages",[x],Object.getOwnPropertyDescriptor(z,"showPrivateMessages"),z),I(z,"showNotificationsTab",[P],Object.getOwnPropertyDescriptor(z,"showNotificationsTab"),z),I(z,"nameFirst",[O],Object.getOwnPropertyDescriptor(z,"nameFirst"),z),I(z,"showBadges",[T],Object.getOwnPropertyDescriptor(z,"showBadges"),z),I(z,"canInviteToForum",[S],Object.getOwnPropertyDescriptor(z,"canInviteToForum"),z),I(z,"publicUserFields",[j],Object.getOwnPropertyDescriptor(z,"publicUserFields"),z),I(z,"primaryGroup",[C],Object.getOwnPropertyDescriptor(z,"primaryGroup"),z),I(z,"showSuspensions",[i.action],Object.getOwnPropertyDescriptor(z,"showSuspensions"),z),z))
e.default=E})),define("discourse/controllers/users",["exports","@ember/controller","discourse/models/group","@ember/object","discourse-common/lib/debounce","discourse/lib/show-modal","@ember/object/computed","discourse/lib/formatter","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s,l,a){var u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var p=t.default.extend((u=(0,a.observes)("model.canLoadMore"),c={application:(0,t.inject)(),queryParams:["period","order","asc","name","group","exclude_usernames"],period:"weekly",order:"",asc:null,name:"",group:null,nameInput:null,exclude_usernames:null,isLoading:!1,columns:null,groupOptions:null,params:null,showGroupFilter:(0,s.and)("currentUser","groupOptions"),showTimeRead:(0,s.equal)("period","all"),loadUsers(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null
e&&this.set("params",e),this.setProperties({isLoading:!0,nameInput:this.params.name,order:this.params.order})
const t=this.columns.filter((e=>"user_field"===e.type)).map((e=>e.user_field_id)).join("|"),i=this.columns.filter((e=>"plugin"===e.type)).map((e=>e.id)).join("|")
return this.store.find("directoryItem",Object.assign(this.params,{user_field_ids:t,plugin_column_ids:i})).then((e=>{const t=e.get("resultSetMeta.last_updated_at")
this.setProperties({model:e,lastUpdatedAt:t?(0,l.longDate)(t):null,period:this.params.period})})).finally((()=>{this.set("isLoading",!1)}))},loadGroups(){if(this.currentUser)return i.default.findAll({ignore_automatic:!0}).then((e=>{const t=e.filter((e=>e.can_see_members)).map((e=>({name:e.full_name||e.name,id:e.name})))
this.set("groupOptions",t)}))},groupChanged(e,t){this.set("group",t?.id)},showEditColumnsModal(){(0,o.default)("edit-user-directory-columns")},onUsernameFilterChanged(e){(0,r.default)(this,this._setUsernameFilter,e,500)},_setUsernameFilter(e){this.setProperties({name:e,"params.name":e}),this.loadUsers()},_showFooter(){this.set("application.showFooter",!this.get("model.canLoadMore"))},loadMore(){this.model.loadMore()}},d(c,"groupChanged",[n.action],Object.getOwnPropertyDescriptor(c,"groupChanged"),c),d(c,"showEditColumnsModal",[n.action],Object.getOwnPropertyDescriptor(c,"showEditColumnsModal"),c),d(c,"onUsernameFilterChanged",[n.action],Object.getOwnPropertyDescriptor(c,"onUsernameFilterChanged"),c),d(c,"_showFooter",[u],Object.getOwnPropertyDescriptor(c,"_showFooter"),c),d(c,"loadMore",[n.action],Object.getOwnPropertyDescriptor(c,"loadMore"),c),c))
e.default=p})),define("discourse/global-compat",["virtual-dom","discourse-widget-hbs/helpers"],(function(e,t){window.__widget_helpers=t.default,window.virtualDom=e.default})),define("discourse/helpers/app-version",["exports","@ember/component/helper","discourse/config/environment","ember-cli-app-version/utils/regexp"],(function(e,t,i,n){function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const r=i.default.APP.version
let o=t.versionOnly||t.hideSha,s=t.shaOnly||t.hideVersion,l=null
return o&&(t.showExtended&&(l=r.match(n.versionExtendedRegExp)),l||(l=r.match(n.versionRegExp))),s&&(l=r.match(n.shaRegExp)),l?l[0]:r}Object.defineProperty(e,"__esModule",{value:!0}),e.appVersion=r,e.default=void 0
var o=(0,t.helper)(r)
e.default=o})),define("discourse/helpers/application",["discourse/lib/formatter","I18n","discourse/lib/utilities","@ember/template","discourse-common/lib/helpers"],(function(e,t,i,n,r){(0,r.registerUnbound)("raw-date",(t=>(0,n.htmlSafe)((0,e.longDate)(new Date(t))))),(0,r.registerUnbound)("age-with-tooltip",((t,i)=>(0,n.htmlSafe)((0,e.autoUpdatingRelativeAge)(new Date(t),{title:!0,addAgo:i.addAgo||!1,...i.defaultFormat&&{defaultFormat:i.defaultFormat}})))),(0,r.registerUnbound)("number",((r,o)=>{r=Math.round(parseFloat(r)),isNaN(r)&&(r=0)
let s=t.default.toNumber(r,{precision:0})
o.numberKey&&(s=t.default.t(o.numberKey,{number:s,count:parseInt(r,10)}))
let l="number"
o.class&&(l+=" "+o.class)
let a="<span class='"+l+"'",u=!o.noTitle
const c=(0,e.number)(r)
if(c.toString()!==s.toString()&&u&&(a+=" title='"+(0,i.escapeExpression)(s)+"'"),o.ariaLabel){a+=` aria-label='${(0,i.escapeExpression)(o.ariaLabel)}'`}return a+=">"+c+"</span>",(0,n.htmlSafe)(a)}))})),define("discourse/helpers/border-color",["exports","discourse-common/lib/helpers"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=["top","right","bottom","left"]
var n=(0,t.htmlHelper)(((e,t)=>{const n=`#${e}`
return`${t&&i.includes(t)?`border-${t}-color`:"border-color"}: ${n} `}))
e.default=n})),define("discourse/helpers/bound-avatar-template",["exports","discourse/lib/utilities","discourse-common/lib/helpers","@ember/utils"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=(0,i.htmlHelper)(((e,i)=>(0,n.isEmpty)(e)?"<div class='avatar-placeholder'></div>":(0,t.avatarImg)({size:i,avatarTemplate:e})))
e.default=r}))
define("discourse/helpers/bound-avatar",["exports","discourse/helpers/user-avatar","discourse/lib/utilities","@ember/object","discourse-common/lib/helpers","@ember/utils"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=(0,r.htmlHelper)(((e,r)=>{if((0,o.isEmpty)(e))return"<div class='avatar-placeholder'></div>"
const s=(0,n.get)(e,"avatar_template")
return(0,i.avatarImg)((0,t.addExtraUserClasses)(e,{size:r,avatarTemplate:s}))}))
e.default=s})),define("discourse/helpers/bound-category-link",["exports","discourse/helpers/category-link","discourse-common/lib/helpers"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,i.htmlHelper)(t.categoryLinkHTML)
e.default=n})),define("discourse/helpers/bound-date",["exports","discourse/lib/formatter","discourse-common/lib/helpers"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,i.htmlHelper)((e=>(0,t.autoUpdatingRelativeAge)(new Date(e),{format:"medium",title:!0})))
e.default=n})),define("discourse/helpers/capitalize-string",["exports","discourse-common/lib/helpers"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.htmlHelper)((e=>e[0].toUpperCase()+e.slice(1)))
e.default=i})),define("discourse/helpers/category-badge",["discourse/helpers/category-link","discourse-common/lib/helpers","@ember/utils"],(function(e,t,i){(0,t.registerUnbound)("category-badge",(function(t,n){return(0,e.categoryLinkHTML)(t,{hideParent:n.hideParent,allowUncategorized:n.allowUncategorized,categoryStyle:n.categoryStyle,link:!!(0,i.isPresent)(n.link)&&n.link})}))})),define("discourse/helpers/category-color-variable",["exports","discourse-common/lib/helpers"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.htmlHelper)((e=>`--category-color: #${e};`))
e.default=i})),define("discourse/helpers/category-link",["exports","discourse-common/lib/helpers","discourse/models/category","I18n","discourse/lib/utilities","@ember/object","discourse-common/lib/get-url","@ember/template","discourse-common/lib/icon-library","discourse/lib/text-direction"],(function(e,t,i,n,r,o,s,l,a,u){Object.defineProperty(e,"__esModule",{value:!0}),e.addExtraIconRenderer=function(e){p.push(e)},e.categoryBadgeHTML=m,e.categoryLinkHTML=h,e.defaultCategoryLinkRenderer=g,e.replaceCategoryLinkRenderer=function(e){c=e}
let c=g
function d(e,t){return"<span class='"+t+"' "+(e?"style='background-color: #"+e+";'":"")+"></span>"}let p=[]
function m(e,n){const{site:r,siteSettings:s}=(0,t.helperContext)()
if(n=n||{},!e||!n.allowUncategorized&&(0,o.get)(e,"id")===r.uncategorized_category_id&&s.suppress_uncategorized_badge)return""
const l=(n.depth||1)+1
if(n.recursive&&l<=s.max_category_nesting){const t=i.default.findById(e.parent_category_id),r=!n.depth
n.depth=l
const o=m(t,n)
return n.lastSubcategory=r,o+c(e,n)}return c(e,n)}function h(e,t){let i={}
return t&&t.hash&&(t=t.hash),t&&(t.allowUncategorized&&(i.allowUncategorized=!0),void 0!==t.link&&(i.link=t.link),t.extraClasses&&(i.extraClasses=t.extraClasses),t.hideParent&&(i.hideParent=!0),t.categoryStyle&&(i.categoryStyle=t.categoryStyle),t.recursive&&(i.recursive=!0)),(0,l.htmlSafe)(m(e,i))}function f(e){return`<span class="topic-count" aria-label="${n.default.t("category_row.topic_count",{count:e})}">&times; ${e}</span>`}function g(e,l){let c=(0,o.get)(e,"description_text"),m=(0,o.get)(e,"read_restricted"),h=l.url?l.url:(0,s.default)(`/c/${i.default.slugFor(e)}/${(0,o.get)(e,"id")}`),g=!1===l.link?"":h,b=!1===l.link||"false"===l.link?"span":"a",y=l.extraClasses?" "+l.extraClasses:"",_=(0,o.get)(e,"color"),v="",w=null,k=""
l.hideParent||(w=i.default.findById((0,o.get)(e,"parent_category_id")))
let x=(0,t.helperContext)().siteSettings
const P=l.categoryStyle||x.category_style
"none"!==P&&(w&&w!==e&&(v+=d((0,o.get)(w,"color"),"badge-category-parent-bg")),v+=d(_,"badge-category-bg"))
let O="badge-category clear-badge"
m&&(O+=" restricted")
let T=""
"box"===P&&(T=`style="color: #${(0,o.get)(e,"text_color")};"`),v+=`<span ${T} data-drop-close="true" class="`+O+'"'+(c?'title="'+c+'" ':"")+">"
let S=(0,r.escapeExpression)((0,o.get)(e,"name"))
x.support_mixed_text_direction&&(k=(0,u.isRTL)(S)?'dir="rtl"':'dir="ltr"'),m&&(v+=(0,a.iconHTML)("lock")),p.forEach((t=>{const i=t(e)
i&&(v+=(0,a.iconHTML)(i))})),v+=`<span class="category-name" ${k}>${S}</span>`,v+="</span>",l.topicCount&&"box"!==P&&(v+=f(l.topicCount)),g&&(g=` href="${g}" `),y=P?P+y:y
let j=""
return l.topicCount&&"box"===P&&(j+=f(l.topicCount)),l.plusSubcategories&&l.lastSubcategory&&(j+=`<span class="plus-subcategories">${n.default.t("category_row.plus_subcategories",{count:l.plusSubcategories})}</span>`),`<${b} class="badge-wrapper ${y}" ${g}>${v}</${b}>${j}`}(0,t.registerUnbound)("category-link",h)})),define("discourse/helpers/cold-age-class",["exports","discourse-common/lib/helpers"],(function(e,t){function i(e){return e.getTime()/864e5}Object.defineProperty(e,"__esModule",{value:!0}),e.daysSinceEpoch=i,(0,t.registerUnbound)("cold-age-class",(function(e,n){let r=n.class||"age"
if(!e)return r
let o=i(n.startDate||new Date),s=i(new Date(e)),l=(0,t.helperContext)().siteSettings
return o-s>l.cold_age_days_high?r+" coldmap-high":o-s>l.cold_age_days_medium?r+" coldmap-med":o-s>l.cold_age_days_low?r+" coldmap-low":r}))})),define("discourse/helpers/concat-class",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.helper)((function(e){const t=e.compact().join(" ")
return t.length?t:void 0}))
e.default=i})),define("discourse/helpers/custom-html",["exports","discourse/lib/preload-store","@ember/template"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.clearHTMLCache=function(){n={}},e.getCustomHTML=function(e){const r=n[e]
if(r)return(0,i.htmlSafe)(r)
const o=t.default.get("customHTML")
if(o&&o[e]&&o[e].length)return(0,i.htmlSafe)(o[e])},e.setCustomHTML=function(e,t){n[e]=t}
let n={}})),define("discourse/helpers/dash-if-empty",["exports","discourse-common/lib/helpers","@ember/utils"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,t.htmlHelper)((e=>(0,i.isEmpty)(e)?"&mdash;":e))
e.default=n})),define("discourse/helpers/dasherize",["exports","@ember/component/helper","@ember/string"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.helper((function(e){let[t]=e
return(0,i.dasherize)((t||"").replace(".","-"))}))
e.default=n})),define("discourse/helpers/decorate-username-selector",["exports","@ember/template","discourse-common/lib/helpers"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.addUsernameSelectorDecorator=function(e){n.push(e)},e.decorateUsername=r,e.default=void 0,e.resetUsernameDecorators=function(){n=[]}
let n=[]
function r(e){const i=[]
return n.forEach((t=>{i.push(t(e))})),i.length?(0,t.htmlSafe)(i.join("")):""}var o=(0,i.registerUnbound)("decorate-username-selector",(e=>r(e)))
e.default=o})),define("discourse/helpers/dir-span",["exports","discourse-common/lib/helpers","@ember/template","discourse/lib/text-direction","discourse/lib/utilities"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=(0,t.registerUnbound)("dir-span",(function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=!1
o.htmlSafe&&(s="true"===o.htmlSafe)
let l=s?e:(0,r.escapeExpression)(e)
return(0,i.htmlSafe)(function(e){let i=e||"",r=(0,t.helperContext)().siteSettings
if(i&&r.support_mixed_text_direction)return`<span dir="${(0,n.isRTL)(i)?"rtl":"ltr"}">${i}</span>`
return i}(l))}))
e.default=o})),define("discourse/helpers/directory-item-helpers",["@ember/template","discourse/lib/formatter","discourse-common/lib/helpers","I18n"],(function(e,t,i,n){(0,i.registerUnbound)("directory-item-label",(function(t){const i=t.item.get(t.column.name),r="automatic"===t.column.type?"directory.":""
return(0,e.htmlSafe)(n.default.t(`${r}${t.column.name}`,{count:i}))})),(0,i.registerUnbound)("directory-item-value",(function(i){return(0,e.htmlSafe)(`<span class='directory-table__value'>${(0,t.number)(i.item.get(i.column.name))}</span>`)})),(0,i.registerUnbound)("directory-item-user-field-value",(function(t){const i=(t.item.user&&t.item.user.user_fields?t.item.user.user_fields[t.column.user_field_id]:null)||"-"
return(0,e.htmlSafe)(`<span class='directory-table__value--user-field'>${i}</span>`)})),(0,i.registerUnbound)("directory-column-is-automatic",(function(e){return"automatic"===e.column.type})),(0,i.registerUnbound)("directory-column-is-user-field",(function(e){return"user_field"===e.column.type}))})),define("discourse/helpers/directory-table-header-title",["exports","discourse-common/lib/helpers","I18n","discourse-common/lib/icon-library","@ember/template"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=(0,t.registerUnbound)("directory-table-header-title",(function(e){let t=""
e.icon&&(t+=(0,n.iconHTML)(e.icon))
let o=e.labelKey||`directory.${e.field}`
return t+=e.translated?e.field:i.default.t(o+"_long",{defaultValue:i.default.t(o)}),(0,r.htmlSafe)(t)}))
e.default=o})),define("discourse/helpers/discourse-tag",["exports","@ember/template","discourse-common/lib/helpers","discourse/lib/render-tag"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=(0,i.registerUnbound)("discourse-tag",(function(e,i){return(0,t.htmlSafe)((0,n.default)(e,i))}))
e.default=r})),define("discourse/helpers/discourse-tags",["exports","@ember/template","discourse-common/lib/helpers","discourse/lib/render-tags"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=(0,i.registerUnbound)("discourse-tags",(function(e,i){return(0,t.htmlSafe)((0,n.default)(e,i))}))
e.default=r})),define("discourse/helpers/editable-value",["exports","@ember/component/helper","@ember/object"],(function(e,t,i){function n(e){let[t,n]=e
"category_id"===n&&(n="category.id")
let r=(0,i.get)(t,n)
return Array.isArray(r)&&(r=r.slice(0)),r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.formatCurrency=n
var r=t.default.helper(n)
e.default=r})),define("discourse/helpers/emoji",["discourse/lib/text","discourse/lib/utilities","@ember/template","discourse-common/lib/helpers"],(function(e,t,i,n){(0,n.registerUnbound)("emoji",(function(n,r){const o=(0,t.escapeExpression)(`:${n}:`)
return(0,i.htmlSafe)((0,e.emojiUnescape)(o,r))}))})),define("discourse/helpers/ensure-safe-component",["exports","@embroider/util"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.EnsureSafeComponentHelper}})})),define("discourse/helpers/fa-icon-node",["exports","discourse-common/lib/icon-library"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.iconNode=function(e,i){return(0,t.renderIcon)("node",e,i)}})),define("discourse/helpers/float",["discourse-common/lib/helpers"],(function(e){(0,e.registerUnbound)("float",(function(e){return parseFloat(e).toFixed(1)}))})),define("discourse/helpers/format-age",["discourse/lib/formatter","@ember/template","discourse-common/lib/helpers"],(function(e,t,i){(0,i.registerUnbound)("format-age",(function(i){return i=new Date(i),(0,t.htmlSafe)((0,e.autoUpdatingRelativeAge)(i))})),(0,i.registerUnbound)("format-duration",(function(i){return(0,t.htmlSafe)((0,e.durationTiny)(i))}))})),define("discourse/helpers/format-date",["discourse/lib/formatter","@ember/template","discourse-common/lib/helpers"],(function(e,t,i){(0,i.registerUnbound)("format-date",(function(i,n){let r,o="medium",s=!0
if(n.leaveAgo&&(r="true"===n.leaveAgo),n.format&&(o=n.format),n.noTitle&&(s=!1),i){let l=new Date(i)
return(0,t.htmlSafe)((0,e.autoUpdatingRelativeAge)(l,{format:o,title:s,leaveAgo:r,prefix:n.prefix}))}}))})),define("discourse/helpers/format-username",["exports","discourse/lib/utilities","discourse-common/lib/helpers"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,i.registerUnbound)("format-username",t.formatUsername)
e.default=n})),define("discourse/helpers/icon-or-image",["exports","discourse-common/lib/icon-library","discourse-common/lib/helpers","@ember/utils"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=(0,i.htmlHelper)((function(e){let{icon:i,image:r}=e
return(0,n.isEmpty)(r)?(0,n.isEmpty)(i)?"":(i=(0,t.convertIconClass)(i),(0,t.iconHTML)(i)):`<img src='${r}'>`}))
e.default=r})),define("discourse/helpers/inline-date",["discourse-common/lib/helpers","discourse/lib/formatter"],(function(e,t){(0,e.registerHelper)("inline-date",(function(e){let[i]=e
return i.value&&(i=i.value()),(0,t.relativeAge)(new Date(i))}))})),define("discourse/helpers/loading-spinner",["exports","discourse-common/lib/helpers"],(function(e,t){function i(e){let t="<div class='spinner"
return e&&(t+=" "+e),t+"'></div>"}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.renderSpinner=i,e.spinnerHTML=void 0
let n=i()
e.spinnerHTML=n
var r=(0,t.htmlHelper)((e=>{const t=e.hash
return i(t&&t.size?t.size:void 0)}))
e.default=r})),define("discourse/helpers/node",["exports","discourse/lib/formatter","virtual-dom"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.dateNode=function(e){"string"==typeof e&&(e=new Date(e))
if(e){const n={title:(0,t.longDate)(e),"data-time":e.getTime(),"data-format":"tiny"}
return(0,i.h)("span.relative-date",{attributes:n},(0,t.relativeAge)(e))}},e.numberNode=function(e,n){n=n||{},e=parseInt(e,10),isNaN(e)&&(e=0)
const r=e.toString(),o={},s=(0,t.number)(e)
s!==r&&(o.title=r)
return(0,i.h)("span.number",{className:n.className,attributes:o},s)}}))
define("discourse/helpers/page-reloader",["exports","discourse-common/config/environment"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.reload=function(){(0,t.isTesting)()||location.reload()}})),define("discourse/helpers/period-title",["exports","I18n","discourse-common/lib/helpers"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n={all:"all_time",yearly:"this_year",quarterly:"this_quarter",monthly:"this_month",daily:"today"}
var r=(0,i.htmlHelper)(((e,i)=>{const r=t.default.t("filters.top."+(n[e]||"this_week"))
if(i.hash.showDateRange){let n,o=""
switch(n=i.hash.fullDay?moment().utc().subtract(1,"days"):moment(),e){case"yearly":o=n.clone().subtract(1,"year").format(t.default.t("dates.long_with_year_no_time"))+" – "+n.format(t.default.t("dates.long_with_year_no_time"))
break
case"quarterly":o=n.clone().subtract(3,"month").format(t.default.t("dates.long_no_year_no_time"))+" – "+n.format(t.default.t("dates.long_no_year_no_time"))
break
case"weekly":let e
e=i.hash.fullDay?n.clone().subtract(1,"week"):n.clone().subtract(6,"days"),o=e.format(t.default.t("dates.long_no_year_no_time"))+" – "+n.format(t.default.t("dates.long_no_year_no_time"))
break
case"monthly":o=n.clone().subtract(1,"month").format(t.default.t("dates.long_no_year_no_time"))+" – "+n.format(t.default.t("dates.long_no_year_no_time"))
break
case"daily":o=n.clone().format(t.default.t("dates.full_no_year_no_time"))}return`<span class="date-section">${r}</span><span class='top-date-string'>${o}</span>`}return r}))
e.default=r})),define("discourse/helpers/raw-plugin-outlet",["discourse-common/lib/raw-handlebars","@ember/template","discourse/lib/plugin-connectors"],(function(e,t,i){e.default.registerHelper("raw-plugin-outlet",(function(e){const n=(0,i.rawConnectorsFor)(e.hash.name)
if(n.length){const e=n.map((e=>e.template({context:this})))
return(0,t.htmlSafe)(e.join(""))}}))})),define("discourse/helpers/raw",["discourse-common/lib/helpers","discourse-common/lib/raw-templates","@ember/template","discourse-common/lib/raw-handlebars-helpers","@ember/application"],(function(e,t,i,n,r){(0,e.registerUnbound)("raw",(function(o,s){o=o.replace(".","/")
const l=(0,t.findRawTemplate)(o)
if(l)return function(t,o,s,l){(l=Object.assign({},l)).parent=l.parent||t
let a=(0,e.helperContext)()
if(!l.view){const e=a.registry.resolve(`raw-view:${s}`)
e&&((0,r.setOwner)(l,(0,r.getOwner)(a)),l.view=e.create(l,a)),l.view||(l=Object.assign({},l,a))}return(0,i.htmlSafe)(o(l,n.RUNTIME_OPTIONS))}(this,l,o,s)
console.warn("Could not find raw template: "+o)}))})),define("discourse/helpers/replace-emoji",["discourse/lib/text","@ember/template","discourse-common/lib/helpers","discourse/lib/utilities"],(function(e,t,i,n){(0,i.registerUnbound)("replace-emoji",((i,r)=>(i=(0,t.isHTMLSafe)(i)?i.toString():(0,n.escapeExpression)(i),(0,t.htmlSafe)((0,e.emojiUnescape)(i,r)))))})),define("discourse/helpers/reviewable-history-description",["exports","discourse/models/reviewable-history","I18n","discourse-common/lib/helpers","discourse/helpers/reviewable-status","discourse-common/lib/icon-library"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=(0,n.htmlHelper)((function(e){return e.reviewable_history_type===t.EDITED?(0,o.iconHTML)("pencil-alt")+" "+i.default.t("review.history.edited"):(0,r.htmlStatus)(e.status)}))
e.default=s})),define("discourse/helpers/reviewable-status",["exports","discourse/models/reviewable","I18n","discourse-common/lib/helpers","discourse-common/lib/icon-library"],(function(e,t,i,n,r){function o(e,n){let o=function(e,i){switch(e){case t.PENDING:return{name:"pending"}
case t.APPROVED:switch(i){case"ReviewableQueuedPost":return{icon:"check",name:"approved_post",cssClass:"approved"}
case"ReviewableUser":return{icon:"check",name:"approved_user",cssClass:"approved"}
default:return{icon:"check",name:"approved_flag",cssClass:"approved"}}case t.REJECTED:switch(i){case"ReviewableQueuedPost":return{icon:"times",name:"rejected_post",cssClass:"rejected"}
case"ReviewableUser":return{icon:"times",name:"rejected_user",cssClass:"rejected"}
default:return{icon:"times",name:"rejected_flag",cssClass:"rejected"}}case t.IGNORED:return{icon:"external-link-alt",name:"ignored"}
case t.DELETED:return{icon:"trash-alt",name:"deleted"}}}(e,n)
if(!o)return
let s=o.icon?(0,r.iconHTML)(o.icon):""
return`\n      <span class="${o.cssClass||o.name}">\n        ${s}\n        ${i.default.t("review.statuses."+o.name+".title")}\n      </span>\n  `}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.htmlStatus=o
var s=(0,n.htmlHelper)(((e,t)=>o(e,t)))
e.default=s})),define("discourse/helpers/route-action",["exports","@ember/array","@ember/component/helper","@ember/object","@ember/application","@ember/runloop","@ember/debug"],(function(e,t,i,n,r,o,s){function l(e,i){let n,r=(0,t.A)(function(e){return(0,t.A)(function(e){return(e._routerMicrolib||e.router).currentRouteInfos}(e)).mapBy("_route").reverse()}(e)).find((e=>{let t=e.actions||e._actions
return n=t[i],"function"==typeof n}))
return{action:n,handler:r}}function a(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r]
return(0,s.runInDebug)((()=>{let{handler:i}=l(t,e)})),function(){let{action:i,handler:r}=l(t,e)
for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u]
let c=n.concat(a)
return(0,o.join)(r,i,...c)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.routeAction=a
var u=i.default.extend({router:(0,n.computed)({get(){return(0,r.getOwner)(this).lookup("router:main")}}),compute(e){let[t,...i]=e
return a(t,(0,n.get)(this,"router"),...i)}})
e.default=u})),define("discourse/helpers/share-url",["exports","discourse-common/lib/helpers"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.resolveShareUrl=function(e,i){const n=(0,t.helperContext)().siteSettings,r=n.enable_badges,o=n.allow_username_in_share_links,s=i&&r&&o?`?u=${i.username_lower}`:""
return e+s}})),define("discourse/helpers/shorten-url",["discourse-common/lib/helpers"],(function(e){(0,e.registerUnbound)("shorten-url",(function(e){let t=e.match(/\//g)
return t&&3===t.length&&(e=e.replace(/\/$/,"")),(e=(e=e.replace(/^https?:\/\//,"")).replace(/^www\./,"")).substring(0,80)}))})),define("discourse/helpers/slow-mode",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.cannotPostAgain=function(e,t,i){let n=new Date(i)
return n=new Date(n.getTime()+1e3*t),!e.staff&&new Date<n},e.durationTextFromSeconds=function(e){return moment.duration(e,"seconds").humanize()},e.fromSeconds=function(e){let t=e,i=Math.trunc(t/3600)
i>=1?t-=3600*i:i=0
let n=Math.trunc(t/60)
n>=1?t-=60*n:n=0
return{hours:i,minutes:n,seconds:t}},e.toSeconds=function(e,t,i){return i+60*e*60+60*t}})),define("discourse/helpers/theme-helpers",["discourse-common/lib/helpers","I18n","discourse/lib/theme-settings-store"],(function(e,t,i){(0,e.registerUnbound)("theme-i18n",((e,i,n)=>t.default.t(`theme_translations.${e}.${i}`,n))),(0,e.registerUnbound)("theme-prefix",((e,t)=>`theme_translations.${e}.${t}`)),(0,e.registerUnbound)("theme-setting",((e,t)=>(0,i.getSetting)(e,t)))})),define("discourse/helpers/topic-featured-link",["exports","@ember/template","discourse-common/lib/helpers","discourse/lib/render-topic-featured-link"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=(0,i.registerUnbound)("topic-featured-link",(function(e,i){return(0,t.htmlSafe)((0,n.default)(e,i))}))
e.default=r})),define("discourse/helpers/topic-link",["@ember/template","discourse-common/lib/helpers"],(function(e,t){(0,t.registerUnbound)("topic-link",((t,i)=>{const n=t.get("fancyTitle"),r=t.linked_post_number?t.urlForPostNumber(t.linked_post_number):t.get("lastUnreadUrl"),o=["title"]
return i.class&&i.class.split(" ").forEach((e=>o.push(e))),(0,e.htmlSafe)(`<a href='${r}'\n        role='heading'\n        aria-level='2'\n        class='${o.join(" ")}'\n        data-topic-id='${t.id}'>${n}</a>`)}))})),define("discourse/helpers/topic-status-icons",["exports","@ember/array/proxy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({render(e,t){const i=(i,n,r)=>{e.get(i)&&t(n,r)}
e.get("closed")&&e.get("archived")?t("lock","locked_and_archived"):(i("closed","lock","locked"),i("archived","lock","archived")),this.forEach((e=>i(...e)))}}).create({content:[["is_warning","envelope","warning"],["pinned","thumbtack","pinned"],["unpinned","thumbtack","unpinned"],["invisible","far-eye-slash","unlisted"]]})
e.default=i})),define("discourse/helpers/user-avatar",["exports","discourse/lib/utilities","I18n","@ember/object","@ember/template","discourse/lib/settings","discourse-common/lib/helpers"],(function(e,t,i,n,r,o,s){let l
function a(e){let t=[]
if(l)for(let i=0;i<l.length;i++)t=t.concat(l[i](e))
return t}function u(e,r){if(r=r||{},e){const s=(0,n.get)(e,r.namePath||"name"),l=(0,n.get)(e,r.usernamePath||"username"),a=(0,n.get)(e,r.avatarTemplatePath||"avatar_template")
if(!l||!a)return""
let u=(0,o.prioritizeNameInUx)(s)?s:(0,t.formatUsername)(l),c=r.title
if(!c&&!r.ignoreTitle&&(c=(0,n.get)(e,"title"),!c)){const t=(0,n.get)(e,"description")
t&&t.length>0&&(c=i.default.t("user.avatar.name_and_description",{name:u,description:t}))}return(0,t.avatarImg)({size:r.imageSize,extraClasses:(0,n.get)(e,"extras")||r.extraClasses,title:c||u,avatarTemplate:a})}return""}Object.defineProperty(e,"__esModule",{value:!0}),e.addExtraUserClasses=function(e,t){let i=a(e).join(" ")
i&&i.length&&(t.extraClasses=i)
return t},e.classesForUser=a,e.registerCustomAvatarHelper=function(e){l=l||[],l.push(e)},e.renderAvatar=u,(0,s.registerUnbound)("avatar",(function(e,t){return(0,r.htmlSafe)(u.call(this,e,t))}))})),define("discourse/helpers/user-status",["exports","I18n","discourse/lib/utilities","discourse-common/lib/helpers","discourse-common/lib/icon-library"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=(0,n.htmlHelper)(((e,n)=>{if(!e)return
const o=(0,i.escapeExpression)(e.get("name"))
let s
return n&&n.hash&&(s=n.hash.currentUser),s&&e.get("admin")&&s.get("staff")?(0,r.iconHTML)("shield-alt",{label:t.default.t("user.admin",{user:o})}):e.get("moderator")?(0,r.iconHTML)("shield-alt",{label:t.default.t("user.moderator",{user:o})}):void 0}))
e.default=o})),define("discourse/helpers/value-entered",["discourse-common/lib/helpers"],(function(e){(0,e.registerUnbound)("value-entered",(function(e){return e&&e.length>0?"value-entered":""}))})),define("discourse/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","discourse/config/environment"],(function(e,t,i){let n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i.default.APP&&(n=i.default.APP.name,r=i.default.APP.version)
var o={name:"App Version",initialize:(0,t.default)(n,r)}
e.default=o})),define("discourse/initializers/container-debug-adapter",["exports","ember-resolver/resolvers/classic/container-debug-adapter"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={name:"container-debug-adapter",initialize(){(arguments[1]||arguments[0]).register("container-debug-adapter:main",t.default)}}
e.default=i})),define("discourse/initializers/discourse-bootstrap",["exports","discourse-common/config/environment","discourse-common/lib/get-url","I18n","discourse/lib/preload-store","rsvp","discourse/models/session","discourse-common/lib/get-owner","discourse-common/lib/icon-library","discourse/lib/url","@ember/runloop"],(function(e,t,i,n,r,o,s,l,a,u,c){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var d={initialize(e){if((0,u.setURLContainer)(e.__container__),(0,l.setDefaultOwner)(e.__container__),(0,t.isTesting)())return
let c
const d=document.getElementById("data-discourse-setup")
let p
d&&(c=d.dataset)
const m=document.getElementById("data-preloaded")
m&&(p=JSON.parse(m.dataset.preloaded))
const h=Object.keys(p)
if(0===h.length)throw"No preload data found in #data-preloaded. Unable to boot Discourse."
h.forEach((function(e){r.default.store(e,JSON.parse(p[e])),"true"===c.debugPreloadedAppData&&console.log(e,r.default.get(e))})),(0,i.setupURL)(c.cdn,c.baseUrl,c.baseUri),(0,t.setEnvironment)(c.environment),n.default.defaultLocale=c.defaultLocale,window.Logster=window.Logster||{},window.Logster.enabled="true"===c.enableJsErrorReporting
let f=s.default.current()
f.serviceWorkerURL=c.serviceWorkerUrl,f.assetVersion=c.assetVersion,f.disableCustomCSS="true"===c.disableCustomCss,f.markdownItURL=c.markdownItUrl,c.mbLastFileChangeId&&(f.mbLastFileChangeId=parseInt(c.mbLastFileChangeId,10)),c.safeMode&&(f.safe_mode=c.safeMode),f.darkModeAvailable=document.querySelectorAll('link[media="(prefers-color-scheme: dark)"]').length>0,f.defaultColorSchemeIsDark="true"===c.colorSchemeIsDark,f.highlightJsPath=c.highlightJsPath,f.svgSpritePath=c.svgSpritePath,f.userColorSchemeId=parseInt(c.userColorSchemeId,10)||null,f.userDarkSchemeId=parseInt(c.userDarkSchemeId,10)||-1
let g=c.svgIconList;(0,t.isDevelopment)()&&g&&(0,a.setIconList)("string"==typeof g?JSON.parse(g):g),c.s3BaseUrl&&(0,i.setupS3CDN)(c.s3BaseUrl,c.s3Cdn),o.default.configure("onerror",(function(e){e&&"TransitionAborted"===e.message||((0,t.isProduction)()||(e?e.message||e.stack?(console.log(e.message),console.log(e.stack)):console.log("Uncaught promise: ",e):console.log("A promise failed but was not caught.")),window.onerror(e&&e.message,null,null,null,e))}))}}
e.default=d})),define("discourse/initializers/dynamic-route-builders",["exports","discourse/controllers/discovery-sortable","discourse/models/site","discourse/routes/tag-show","discourse/models/user","discourse/routes/build-category-route","discourse/routes/build-topic-route","@ember/string"],(function(e,t,i,n,r,o,s,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a={after:"inject-discourse-objects",initialize(e){e.register("controller:discovery.category",t.default.extend()),e.register("controller:discovery.category-none",t.default.extend()),e.register("controller:discovery.category-all",t.default.extend()),e.register("route:discovery.category",(0,o.default)("default")),e.register("route:discovery.category-none",(0,o.default)("default",{no_subcategories:!0})),e.register("route:discovery.category-all",(0,o.default)("default",{no_subcategories:!1}))
const a=i.default.current()
a.get("filters").forEach((i=>{const n=(0,l.dasherize)(i)
e.register(`controller:discovery.${n}`,t.default.extend()),e.register(`controller:discovery.${n}-category`,t.default.extend()),e.register(`controller:discovery.${n}-category-none`,t.default.extend()),"top"===i?e.register("route:discovery.top",(0,s.default)("top",{actions:{willTransition(){return r.default.currentProp("user_option.should_be_redirected_to_top",!1),r.default.currentProp("user_option.redirected_to_top")&&r.default.currentProp("user_option.redirected_to_top.reason",null),this._super(...arguments)}}})):e.register(`route:discovery.${n}`,(0,s.default)(i)),e.register(`route:discovery.${n}-category`,(0,o.default)(i)),e.register(`route:discovery.${n}-category-none`,(0,o.default)(i,{no_subcategories:!0}))})),e.register("route:tags.show-category",n.default.extend()),e.register("route:tags.show-category-none",n.default.extend({noSubcategories:!0})),e.register("route:tags.show-category-all",n.default.extend({noSubcategories:!1})),a.get("filters").forEach((function(t){const i=(0,l.dasherize)(t)
e.register(`route:tag.show-${i}`,n.default.extend({navMode:t})),e.register(`route:tags.show-category-${i}`,n.default.extend({navMode:t})),e.register(`route:tags.show-category-none-${i}`,n.default.extend({navMode:t,noSubcategories:!0})),e.register(`route:tags.show-category-all-${i}`,n.default.extend({navMode:t,noSubcategories:!1}))}))}}
e.default=a})),define("discourse/initializers/inject-discourse-objects",["exports","discourse/models/topic-tracking-state","discourse/lib/discourse-location","discourse/models/session","discourse/models/site","discourse/models/user","discourse/lib/implicit-injections"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l={after:"discourse-bootstrap",initialize(e){const l=e.__container__.lookup("service:site-settings"),a=o.default.current()
e.register("service:current-user",a,{instantiate:!1}),this.topicTrackingState=t.default.create({messageBus:e.__container__.lookup("service:message-bus"),siteSettings:l,currentUser:a}),e.register("service:topic-tracking-state",this.topicTrackingState,{instantiate:!1})
const u=r.default.current()
e.register("service:site",u,{instantiate:!1})
const c=n.default.current()
e.register("service:session",c,{instantiate:!1}),e.register("location:discourse-location",i.default),(0,s.registerDiscourseImplicitInjections)(),(0,t.startTracking)(this.topicTrackingState)},teardown(){this.topicTrackingState.willDestroy()}}
e.default=l})),define("discourse/initializers/install-function-helper-manager",["exports","ember-functions-as-helper-polyfill/initializers/install-function-helper-manager"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"initialize",{enumerable:!0,get:function(){return t.initialize}})})),define("discourse/initializers/map-routes",["exports","discourse/mapping-router"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={after:"inject-discourse-objects",initialize(e){this.routerClass=(0,t.mapRoutes)(),e.register("router:main",this.routerClass)},teardown(){this.routerClass.dslCallbacks.length=0}}
e.default=i})),define("discourse/initializers/usable-function-manager",["exports","ember-functions-as-helper-polyfill/initializers/usable-function-manager"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"initialize",{enumerable:!0,get:function(){return t.initialize}})})),define("discourse/instance-initializers/animated-images-pause-on-click",["exports","discourse-common/lib/icon-library","discourse/lib/utilities","discourse/lib/plugin-api"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let r={}
function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=document.createElement("canvas")
i.width=e.width,i.height=e.height,i.getContext("2d").drawImage(e,0,0,e.width,e.height),i.setAttribute("aria-hidden","true"),i.setAttribute("role","presentation"),t.manualPause&&e.classList.add("manually-paused"),e.parentNode.classList.add("paused-animated-image"),e.parentNode.insertBefore(i,e)}function s(e){e.previousSibling&&"CANVAS"===e.previousSibling.nodeName&&e.previousSibling.remove(),e.parentNode.classList.remove("paused-animated-image")}function l(){return document.querySelectorAll("img.animated:not(.manually-paused)")}var a={initialize(){(0,n.withPluginApi)("0.8.7",(e=>{function n(e){const t=e.target
t&&!t.previousSibling?o(t,{manualPause:!0}):s(t)}e.decorateCookedElement((function(e,o){if(!o)return
e.querySelectorAll("img.animated").forEach((e=>{if(e.parentNode.querySelectorAll("img").length>1)return
r[e.src]&&(r[e.src].removeEventListener("click",n),r[e.src].removeEventListener("load",n),delete r[e.src]),r[e.src]=e,e.addEventListener("click",n,!1),(0,i.prefersReducedMotion)()&&e.addEventListener("load",n,!1)
const o=document.createElement("div"),s=document.createElement("div")
e.parentNode.insertBefore(o,e),o.classList.add("pausable-animated-image"),o.appendChild(e),s.classList.add("animated-image-overlay"),s.setAttribute("aria-hidden","true"),s.setAttribute("role","presentation"),s.innerHTML=`${(0,t.iconHTML)("pause")}${(0,t.iconHTML)("play")}`,o.appendChild(s)}))}),{onlyStream:!0,id:"animated-images-pause-on-click"}),e.cleanupStream((function(){Object.values(r||{}).forEach((e=>{e.removeEventListener("click",n),e.removeEventListener("load",n)})),r={}})),(0,i.prefersReducedMotion)()||(window.addEventListener("blur",this.blurEvent),window.addEventListener("focus",this.focusEvent))}))},blurEvent(){l().forEach((e=>{1!==e.parentNode.querySelectorAll("img").length||e.previousSibling||o(e)}))},focusEvent(){l().forEach((e=>{1===e.parentNode.querySelectorAll("img").length&&e.previousSibling&&s(e)}))},teardown(){window.removeEventListener("blur",this.blurEvent),window.removeEventListener("focus",this.focusEvent)}}
e.default=a})),define("discourse/instance-initializers/auth-complete",["exports","@ember/runloop"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={after:"inject-objects",initialize(e){let i
if(document.getElementById("data-authentication")&&(i=document.getElementById("data-authentication").dataset.authenticationData),i){const n=e.lookup("router:main")
n.one("didTransition",(()=>{const r="invites.show"===n.currentPath?"invites-show":"login";(0,t.next)((()=>{e.lookup(`controller:${r}`).authenticationComplete(JSON.parse(i))}))}))}}}
e.default=i})),define("discourse/instance-initializers/auto-load-modules",["exports","discourse-common/lib/helpers","handlebars","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-handlebars-helpers","@ember/application"],(function(e,t,i,n,r,o){function s(e,s){Object.keys(requirejs.entries).forEach((e=>{/\/helpers\//.test(e)&&!/-test/.test(e)&&requirejs(e,null,null,!0),/\/widgets\//.test(e)&&!/-test/.test(e)&&requirejs(e,null,null,!0)}))
let l={siteSettings:e.lookup("service:site-settings"),keyValueStore:e.lookup("service:key-value-store"),capabilities:e.lookup("service:capabilities"),currentUser:e.lookup("service:current-user"),site:e.lookup("service:site"),session:e.lookup("service:session"),topicTrackingState:e.lookup("service:topic-tracking-state"),registry:s};(0,o.setOwner)(l,e),(0,t.createHelperContext)(l),(0,t.registerHelpers)(s),(0,r.registerRawHelpers)(n.default,i.default)}Object.defineProperty(e,"__esModule",{value:!0}),e.autoLoadModules=s,e.default=void 0
var l={after:"inject-objects",initialize:e=>{s(e,e.__container__.registry)}}
e.default=l})),define("discourse/instance-initializers/badging",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t={after:"message-bus",initialize(e){if(!navigator.setAppBadge)return
const t=e.lookup("service:current-user")
if(!t)return
e.lookup("service:app-events").on("notifications:changed",(()=>{let e
e=t.all_unread_notifications_count,t.unseen_reviewable_count&&(e+=t.unseen_reviewable_count),navigator.setAppBadge(e)}))}}
e.default=t}))
define("discourse/instance-initializers/banner",["exports","@ember/object","discourse-common/utils/decorators","discourse/lib/preload-store"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=(r={after:"message-bus",initialize(e){this.site=e.lookup("service:site"),this.messageBus=e.lookup("service:message-bus")
const i=t.default.create(n.default.get("banner")||{})
this.site.set("banner",i),this.messageBus.subscribe("/site/banner",this.onMessage)},teardown(){this.messageBus.unsubscribe("/site/banner",this.onMessage)},onMessage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.site.set("banner",t.default.create(e))}},o=r,s="onMessage",l=[i.bind],a=Object.getOwnPropertyDescriptor(r,"onMessage"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r)
e.default=d})),define("discourse/instance-initializers/category-color-css-generator",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t={after:"register-hashtag-types",initialize(e){if(this.site=e.lookup("service:site"),!this.site.categories)return
const t=[":root {",...this.site.categories.map((e=>`--category-${e.id}-color: #${e.color};`)),"}"],i=document.createElement("style")
i.type="text/css",i.id="category-color-css-generator",i.innerHTML=t.join("\n"),document.head.appendChild(i)}}
e.default=t})),define("discourse/instance-initializers/clean-dom-on-route-change",["exports","@ember/runloop"],(function(e,t){function i(e){window.MiniProfiler&&e.from&&window.MiniProfiler.pageTransition(),document.querySelectorAll("header ul.icons li").forEach((e=>{e.classList.remove("active")})),document.querySelectorAll('[data-toggle="dropdown"]').forEach((e=>{e.parentElement.classList.remove("open")})),$.magnificPopup?.instance&&($.magnificPopup.instance.close(),document.body.classList.remove("mfp-zoom-out-cur"))
const{activeElement:t}=document
t&&!t.classList.contains("no-blur")&&t.blur(),this.lookup("route:application").send("closeModal"),this.lookup("service:app-events").trigger("dom:clean"),this.lookup("service:document-title").updateContextCount(0)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n={after:"inject-objects",initialize(e){e.lookup("router:main").on("routeDidChange",(n=>{n.isAborted||(0,t.scheduleOnce)("afterRender",e,i,n)}))}}
e.default=n})),define("discourse/instance-initializers/click-interceptor",["exports","discourse/lib/url","discourse/lib/intercept-click"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n={initialize(e){this.selector=e.rootElement,$(this.selector).on("click.discourse","a",i.default),window.addEventListener("hashchange",this.hashChanged)},hashChanged(){t.default.routeTo(document.location.hash)},teardown(){$(this.selector).off("click.discourse","a",i.default),window.removeEventListener("hashchange",this.hashChanged)}}
e.default=n})),define("discourse/instance-initializers/codeblock-buttons",["exports","discourse/lib/plugin-api","@ember/runloop","discourse/lib/codeblock-buttons"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let r=[]
var o={initialize(e){const o=e.lookup("service:site-settings");(0,t.withPluginApi)("0.8.7",(e=>{e.decorateCookedElement(((e,t)=>{(0,i.schedule)("afterRender",(()=>{(function(e,t){if(!t)return
if(!o.show_copy_button_on_codeblocks)return
const i=t.getModel(),s=new n.default({showFullscreen:!0,showCopy:!0})
s.attachToPost(i,e),r.push(s)})(e,t)}))}),{onlyStream:!0,id:"codeblock-buttons"}),e.cleanupStream((function(){r.forEach((e=>e.cleanup())),r.length=0}))}))}}
e.default=o})),define("discourse/instance-initializers/colocated-template-overrides",["exports","discourse-common/lib/discourse-template-map","@glimmer/manager"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=new Map,r=i.getComponentTemplate
i.getComponentTemplate=e=>n.get(e)??r(e)
var o={after:["populate-template-map","mobile"],initialize(e){this.site=e.lookup("service:site"),this.eachThemePluginTemplate(((i,o,s)=>{if(!s&&t.default.coreTemplates.has(i))return
let l=i
s&&(l=l.slice(7)),l=l.slice(11)
const a=e.resolveRegistration(`component:${l}`)
if(a&&r(a)){const e=o[o.length-1],t=require(e).default
n.set(a,t)}}))},eachThemePluginTemplate(e){const{coreTemplates:i,pluginTemplates:n,themeTemplates:r}=t.default,o=[[n,"components/",!1],[r,"components/",!1]]
this.site.mobileView&&o.push([i,"mobile/components/",!0],[n,"mobile/components/",!0],[r,"mobile/components/",!0])
for(const[t,s,l]of o)for(const[i,n]of t)i.startsWith(s)&&e(i,n,l)},teardown(){n.clear()}}
e.default=o})),define("discourse/instance-initializers/csrf-token",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let t=!1,i=$.Callbacks()
var n={initialize(e){let n=e.lookup("service:session")
n.set("csrfToken",document.head.querySelector("meta[name=csrf-token]")?.content),t||($.ajaxPrefilter(i.fire),t=!0),i.add((function(e,t,i){e.crossDomain||i.setRequestHeader("X-CSRF-Token",n.get("csrfToken"))}))},teardown(){i.empty()}}
e.default=n})),define("discourse/instance-initializers/d-popover",["exports","discourse/lib/d-popover"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={initialize(){["click","mouseover"].forEach((e=>{document.addEventListener(e,(e=>{(e.target.dataset.tooltip||e.target.dataset.popover)&&(0,t.showPopover)(e,{interactive:!1,content:e=>e.dataset.tooltip||e.dataset.popover})}))}))}}
e.default=i})),define("discourse/instance-initializers/eager-load-raw-templates",["exports","discourse-common/lib/raw-templates"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={initialize(){(0,t.eagerLoadRawTemplateModules)()}}
e.default=i})),define("discourse/instance-initializers/enable-emoji",["exports","discourse/lib/preload-store","pretty-text/emoji","discourse/lib/plugin-api"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r={initialize(e){e.lookup("service:site-settings").enable_emoji&&((0,n.withPluginApi)("0.1",(e=>{e.onToolbarCreate((e=>{e.addButton({id:"emoji",group:"extras",icon:"far-smile",action:()=>e.context.send("emoji"),title:"composer.emoji",className:"emoji insert-emoji"})}))})),(t.default.get("customEmoji")||[]).forEach((e=>(0,i.registerEmoji)(e.name,e.url,e.group))))}}
e.default=r})),define("discourse/instance-initializers/handle-cookies",["exports","discourse/lib/theme-selector","discourse/lib/color-scheme-picker","discourse/models/user","@ember/runloop","discourse-common/config/environment"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,o.isTesting)()?0:5e3
var l={initialize(){(0,r.later)((()=>{(0,t.extendThemeCookie)(),(0,i.extendColorSchemeCookies)(),(0,n.extendTextSizeCookie)()}),s)}}
e.default=l})),define("discourse/instance-initializers/hashtag-css-generator",["exports","discourse/lib/hashtag-autocomplete"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={after:"category-color-css-generator",initialize(e){if(this.site=e.lookup("service:site"),!this.site.categories)return
let i=[]
Object.values((0,t.getHashtagTypeClasses)()).forEach((e=>{e.preloadedData.forEach((t=>{i=i.concat(e.generateColorCssClasses(t))}))}))
const n=document.createElement("style")
n.type="text/css",n.id="hashtag-css-generator",n.innerHTML=i.join("\n"),document.head.appendChild(n)}}
e.default=i})),define("discourse/instance-initializers/hashtag-post-decorations",["exports","discourse/lib/plugin-api","discourse/lib/hashtag-autocomplete"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n={after:"hashtag-css-generator",initialize(e){const n=e.lookup("service:site-settings"),r=e.lookup("service:site");(0,t.withPluginApi)("0.8.7",(e=>{n.enable_experimental_hashtag_autocomplete&&e.decorateCookedElement((e=>(0,i.decorateHashtags)(e,r)),{onlyStream:!0,id:"hashtag-icons"})}))}}
e.default=n})),define("discourse/instance-initializers/image-aspect-ratio",["exports","discourse/lib/plugin-api"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={initWithApi(e){const t=CSS.supports("aspect-ratio: 1")
e.decorateCookedElement((e=>{e.querySelectorAll("img").forEach((e=>{const i=parseFloat(e.getAttribute("height")),n=parseFloat(e.getAttribute("width"))
if(!(isNaN(i)||isNaN(n)||e.style.aspectRatio))if(t)e.style.setProperty("aspect-ratio",`${n} / ${i}`)
else{const t=e.width/(n/i)
e.style.setProperty("--calculated-height",`${t}px`)}}))}),{id:"image-aspect-ratio"})},initialize(){(0,t.withPluginApi)("1.2.0",this.initWithApi)}}
e.default=i})),define("discourse/instance-initializers/inject-objects",["exports","discourse-common/lib/get-owner","discourse/models/user","discourse/models/site","discourse-common/lib/deprecated"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o={after:"sniff-capabilities",initialize(e){(0,t.setDefaultOwner)(e.__container__),window.Discourse=e,Object.defineProperty(e,"SiteSettings",{get:()=>((0,r.default)("use injected siteSettings instead of Discourse.SiteSettings",{since:"2.8",dropFrom:"3.2",id:"discourse.global.site-settings"}),e.lookup("service:site-settings"))}),Object.defineProperty(e,"User",{get:()=>((0,r.default)("import discourse/models/user instead of using Discourse.User",{since:"2.8",dropFrom:"3.2",id:"discourse.global.user"}),i.default)}),Object.defineProperty(e,"Site",{get:()=>((0,r.default)("import discourse/models/site instead of using Discourse.Site",{since:"2.8",dropFrom:"3.2",id:"discourse.global.site"}),n.default)})},teardown(){delete window.Discourse}}
e.default=o})),define("discourse/instance-initializers/jquery-plugins",["exports","discourse/lib/autocomplete","bootbox","discourse-common/lib/get-owner","discourse-common/lib/deprecated"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let o=!1
var s={initialize(){if(o)return
i.default.animate(!1),i.default.backdrop(!0)
const e=i.default.alert
i.default.alert=function(){if(1===arguments.length){const e=(0,n.getOwner)(this).lookup("service:dialog")
if(e)return(0,r.default)("`bootbox.alert` is deprecated, please use the dialog service instead.",{id:"discourse.bootbox",dropFrom:"3.1.0.beta5",url:"https://meta.discourse.org/t/244902"}),e.alert(arguments[0])}return e(...arguments)}
const s=i.default.dialog
i.default.dialog=function(){return(0,r.default)("`bootbox` is now deprecated, please use the dialog service instead.",{id:"discourse.bootbox",dropFrom:"3.1.0.beta5",url:"https://meta.discourse.org/t/244902"}),s(...arguments)},$.fn.autocomplete=t.default,o=!0}}
e.default=s})),define("discourse/instance-initializers/keyboard-shortcuts",["exports","discourse/lib/keyboard-shortcuts","@discourse/itsatrap"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n={initialize(e){t.default.init(i.default,e),t.default.bindEvents()},teardown(){t.default.teardown()}}
e.default=n})),define("discourse/instance-initializers/live-development",["exports","discourse/lib/url","discourse-common/config/environment","discourse-common/lib/later","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=(s=o={initialize(e){this.messageBus=e.lookup("service:message-bus")
const n=e.lookup("service:session"),r=new URLSearchParams(window.location.search),o=r.get("preview_theme_id"),s="async-flamegraph"===r.get("pp");(s||null!==o)&&["replaceState","pushState"].forEach((e=>{const t=window.history[e]
window.history[e]=(e,i,n)=>{const r=new URL(n,window.location)
return null!==o&&r.searchParams.set("preview_theme_id",o),s&&r.searchParams.set("pp","async-flamegraph"),t.call(window.history,e,i,r.href)}})),(0,i.isDevelopment)()&&(window.DiscourseURL=t.default),this.messageBus.subscribe("/file-change",this.onFileChange,n.mbLastFileChangeId)},teardown(){this.messageBus.unsubscribe("/file-change",this.onFileChange)},onFileChange(e){e.forEach((e=>{if("refresh"===e)document.location.reload(!0)
else if(e.new_href&&e.target){let t=`link[data-target='${e.target}']`
e.theme_id&&(t+=`[data-theme-id='${e.theme_id}']`)
const i=document.querySelectorAll(t)
if(i.length>0){const t=i[i.length-1]
t.href.split("/").pop()!==e.new_href.split("/").pop()&&this.refreshCSS(t,e.new_href)}}}))},refreshCSS(e,t){const i=e.cloneNode(!0)
i.href=t,e.insertAdjacentElement("afterend",i),(0,n.default)((()=>e?.parentNode?.removeChild(e)),500)}},l="onFileChange",a=[r.bind],u=Object.getOwnPropertyDescriptor(o,"onFileChange"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o)
e.default=p})),define("discourse/instance-initializers/localization",["exports","I18n","bootbox"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n={after:"inject-objects",isVerboseLocalizationEnabled(e){if(e.lookup("service:site-settings").verbose_localization)return!0
try{return sessionStorage&&sessionStorage.getItem("verbose_localization")}catch(t){return!1}},initialize(e){this.isVerboseLocalizationEnabled(e)&&t.default.enableVerboseLocalization()
for(const[i,n]of Object.entries(t.default._overrides||{}))for(const[e,r]of Object.entries(n)){const n=e.replace(/^admin_js\./,"js.").split(".")
let o=t.default.translations[i]||{}
for(let e=0;e<n.length-1;e++)n[e]in o||(o[n[e]]={}),o=o[n[e]]
"object"==typeof o&&(o[n[n.length-1]]=r)}for(let[i,n]of Object.entries(t.default._mfOverrides||{}))i=i.replace(/^[a-z_]*js\./,""),t.default._compiledMFs[i]=n
i.default.addLocale(t.default.currentLocale(),{OK:t.default.t("composer.modal_ok"),CANCEL:t.default.t("composer.modal_cancel"),CONFIRM:t.default.t("composer.modal_ok")}),i.default.setLocale(t.default.currentLocale())}}
e.default=n})),define("discourse/instance-initializers/logout",["exports","I18n","discourse/lib/logout","discourse-common/utils/decorators"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let o=!1
var s,l,a,u,c,d,p=(s=r={after:"message-bus",initialize(e){this.messageBus=e.lookup("service:message-bus"),this.dialog=e.lookup("service:dialog"),this.currentUser=e.lookup("service:current-user"),this.currentUser&&this.messageBus.subscribe(`/logout/${this.currentUser.id}`,this.onMessage)},teardown(){this.currentUser&&this.messageBus.unsubscribe(`/logout/${this.currentUser.id}`,this.onMessage)},onMessage(){o||(o=!0,this.dialog.alert({message:t.default.t("logout"),confirmButtonLabel:"home",didConfirm:i.default,didCancel:i.default,shouldDisplayCancel:!1}))}},l="onMessage",a=[n.bind],u=Object.getOwnPropertyDescriptor(r,"onMessage"),c=r,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r)
e.default=p})),define("discourse/instance-initializers/logs-notice",["exports","discourse/services/logs-notice","discourse/mixins/singleton"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=!1
var r={after:"message-bus",initialize(e){if(n)return
const r=e.lookup("service:site-settings"),o=e.lookup("service:message-bus"),s=e.lookup("service:key-value-store"),l=e.lookup("service:current-user")
t.default.reopenClass(i.default,{createCurrent(){return this.create({messageBus:o,keyValueStore:s,siteSettings:r,currentUser:l})}}),n=!0}}
e.default=r})),define("discourse/instance-initializers/message-bus",["exports","discourse-common/config/environment","discourse-common/lib/get-url","discourse/lib/ajax","discourse/lib/user-presence"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=12e5
function s(e){if(e.complete){const t=e.complete
e.complete=function(e,i){(0,n.handleLogoff)(e),t(e,i)}}else e.complete=n.handleLogoff
return $.ajax(e)}var l={after:"inject-objects",initialize(e){if((0,t.isTesting)())return
const n=e.lookup("service:message-bus"),l=e.lookup("service:current-user"),a=e.lookup("service:site-settings")
if(n.alwaysLongPoll=!(0,t.isProduction)(),n.shouldLongPollCallback=()=>(0,r.default)({userUnseenTime:o}),n.stop(),(0,r.onPresenceChange)({unseenTime:o,callback:e=>{e&&n.onVisibilityChange&&n.onVisibilityChange()}}),a.login_required&&!l)return
const u=setInterval((()=>{"complete"===document.readyState&&(clearInterval(u),n.start())}),500)
n.callbackInterval=a.anon_polling_interval,n.backgroundCallbackInterval=a.background_polling_interval,n.baseUrl=a.long_polling_base_url.replace(/\/$/,"")+"/",n.enableChunkedEncoding=a.enable_chunked_encoding,"/"!==n.baseUrl?n.ajax=function(e){return e.headers=e.headers||{},e.headers["X-Shared-Session-Key"]=$("meta[name=shared_session_key]").attr("content"),(0,r.default)()&&(e.headers["Discourse-Present"]="true"),s(e)}:(n.ajax=function(e){return e.headers=e.headers||{},(0,r.default)()&&(e.headers["Discourse-Present"]="true"),s(e)},n.baseUrl=(0,i.default)("/")),l&&(n.callbackInterval=a.polling_interval)}}
e.default=l})),define("discourse/instance-initializers/meta-tag-updater",["exports","discourse-common/lib/get-url"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={initialize(e){const i=document.querySelector("meta[property='og:title']"),n=document.querySelector("meta[property='og:url']"),r=document.querySelector("meta[name='twitter:title']"),o=document.querySelector("meta[name='twitter:url']"),s=document.querySelector("link[rel='canonical']")
e.lookup("service:app-events").on("page:changed",(e=>{let{title:l,url:a}=e
const u=(0,t.getAbsoluteURL)(a)
i?.setAttribute("content",l),n?.setAttribute("content",u),r?.setAttribute("content",l),o?.setAttribute("content",u),s?.setAttribute("href",u)}))}}
e.default=i})),define("discourse/instance-initializers/mobile-keyboard",["exports","discourse-common/utils/decorators"],(function(e,t){var i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n,r,o,s,l,a,u=(n=i={after:"mobile",initialize(e){const t=e.lookup("service:site")
this.capabilities=e.lookup("service:capabilities"),(this.capabilities.isIpadOS||t.mobileView)&&window.visualViewport&&(this.windowInnerHeight=window.innerHeight,this.onViewportResize(),window.visualViewport.addEventListener("resize",this.onViewportResize),"virtualKeyboard"in navigator&&(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",this.onViewportResize)))},teardown(){window.visualViewport.removeEventListener("resize",this.onViewportResize),"virtualKeyboard"in navigator&&(navigator.virtualKeyboard.overlaysContent=!1,navigator.virtualKeyboard.removeEventListener("geometrychange",this.onViewportResize))},onViewportResize(){const e=.01*window.visualViewport.height,t=document.documentElement
t.style.setProperty("--composer-vh",`${e}px`)
let i=!1
if("virtualKeyboard"in navigator)navigator.virtualKeyboard.boundingRect.height>0&&(i=!0)
else if(this.capabilities.isFirefox&&this.capabilities.isAndroid)Math.abs(this.windowInnerHeight-Math.min(window.innerHeight,window.visualViewport.height))>150&&(i=!0)
else{let e=this.windowInnerHeight-window.visualViewport.height
e>0&&(i=!0),this.capabilities.isIpadOS&&t.style.setProperty("--composer-ipad-padding",`${e<75?e:0}px`)}i?t.classList.add("keyboard-visible"):t.classList.remove("keyboard-visible")}},r="onViewportResize",o=[t.bind],s=Object.getOwnPropertyDescriptor(i,"onViewportResize"),l=i,a={},Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=o.slice().reverse().reduce((function(e,t){return t(n,r,e)||e}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(n,r,a),a=null),i)
e.default=u})),define("discourse/instance-initializers/mobile",["exports","discourse/lib/mobile","discourse-common/resolver"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n={after:"inject-objects",initialize(e){t.default.init()
const n=e.lookup("service:site")
n.set("mobileView",t.default.mobileView),n.set("desktopView",!t.default.mobileView),n.set("isMobileDevice",t.default.isMobileDevice),(0,i.setResolverOption)("mobileView",t.default.mobileView)}}
e.default=n})),define("discourse/instance-initializers/moment",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t={after:"message-bus",initialize(){moment.tz.link(["Asia/Kolkata|IST","Asia/Seoul|KST","Asia/Tokyo|JST"]),delete moment.tz._links["us_pacific-new"]}}
e.default=t})),define("discourse/instance-initializers/narrow-desktop",["exports","discourse/lib/narrow-desktop"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={initialize(e){let i
if(t.default.init(),e.isDestroyed||(i=e.lookup("service:site"),i.set("narrowDesktopView",t.default.narrowDesktopView)),"ResizeObserver"in window){this._resizeObserver=new ResizeObserver((n=>{if(!e.isDestroyed)for(let r of n){const n=i.narrowDesktopView,o=t.default.isNarrowDesktopView(r.contentRect.width)
if(n!==o){const t=e.lookup("controller:application")
i.set("narrowDesktopView",o),t.set("showSidebar",t.calculateShowSidebar()),t.appEvents.trigger("site-header:force-refresh")}}}))
const n=document.querySelector("body")
n&&this._resizeObserver.observe(n)}}}
e.default=i})),define("discourse/instance-initializers/onebox-decorators",["exports","discourse/lib/plugin-api"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.decorateGithubOneboxBody=n,e.default=void 0
let i=[]
function n(e){e.querySelectorAll(".onebox.githubcommit .show-more-container, .onebox.githubpullrequest .show-more-container, .onebox.githubissue .show-more-container").length&&(i.push(e),e.addEventListener("click",r,!1))}function r(e){if(!e.target.classList.contains("show-more"))return
e.preventDefault()
const t=e.target.parentNode,i=t.parentNode
return t.classList.add("hidden"),i.querySelector(".excerpt.hidden").classList.remove("hidden"),!1}function o(){(i||[]).forEach((e=>{e.removeEventListener("click",r)})),i=[]}var s={initialize(){(0,t.withPluginApi)("0.8.42",(e=>{e.decorateCookedElement((e=>{n(e)}),{id:"onebox-github-body"}),e.cleanupStream(o)}))}}
e.default=s})),define("discourse/instance-initializers/page-tracking",["exports","discourse/lib/page-tracker","discourse/lib/ajax"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n={after:"inject-objects",initialize(e){const n=e.lookup("router:main")
n.on("routeWillChange",i.viewTrackingRequired)
let r=e.lookup("service:app-events"),o=e.lookup("service:document-title");(0,t.startPageTracking)(n,r,o),void 0===window._gaq?(void 0!==window.ga&&void 0===window.gtag&&r.on("page:changed",(e=>{e.replacedOnlyQueryParams||window.ga("send","pageview",{page:e.url,title:e.title})})),void 0!==window.gtag&&r.on("page:changed",(e=>{e.replacedOnlyQueryParams||window.gtag("event","page_view",{page_location:e.url,page_title:e.title})})),void 0!==window.dataLayer&&r.on("page:changed",(e=>{e.replacedOnlyQueryParams||(0,t.googleTagManagerPageChanged)(e)}))):r.on("page:changed",(e=>{e.replacedOnlyQueryParams||(window._gaq.push(["_set","title",e.title]),window._gaq.push(["_trackPageview",e.url]))}))},teardown(){(0,t.resetPageTracking)()}}
e.default=n})),define("discourse/instance-initializers/populate-template-map",["exports","discourse-common/lib/discourse-template-map"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={initialize(){t.default.setModuleNames(Object.keys(requirejs.entries))}}
e.default=i}))
define("discourse/instance-initializers/post-decorations",["exports","@ember/runloop","discourse-common/lib/later","I18n","discourse/lib/highlight-syntax","discourse/lib/lightbox","discourse/lib/columns","discourse-common/lib/icon-library","discourse/lib/text-direction","discourse/lib/lazy-load-images","discourse/lib/plugin-api","virtual-dom","discourse/components/modal/fullscreen-table"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var m={initialize(e){(0,c.withPluginApi)("0.1",(c=>{const m=e.lookup("service:site-settings"),h=e.lookup("service:session"),f=e.lookup("service:site"),g=e.lookup("service:modal")
c.decorateCookedElement((e=>(0,r.default)(e,m,h)),{id:"discourse-syntax-highlighting"}),c.decorateCookedElement((e=>(0,o.default)(e,m)),{id:"discourse-lightbox"}),c.decorateCookedElement((e=>{const t=e.querySelectorAll(".d-image-grid")
t.length&&t.forEach((e=>new s.default(e,{columns:f.mobileView?2:3})))}),{id:"discourse-image-grid"}),m.support_mixed_text_direction&&c.decorateCookedElement(a.setTextDirections,{id:"discourse-text-direction"}),(0,u.nativeLazyLoading)(c),c.decorateCookedElement((e=>{e.querySelectorAll("audio").forEach((t=>{t.addEventListener("play",(()=>{const t=parseInt(e.closest("article")?.dataset.postId,10)
t&&c.preventCloak(t)}))}))}),{id:"discourse-audio"})
const b=e.lookup("service:capabilities");(b.isSafari||b.isIOS)&&c.decorateCookedElement((e=>{e.querySelectorAll("video").forEach((e=>{if(e.poster&&""!==e.poster&&!e.autoplay)return
const t=e.querySelector("source")
t&&t.parentElement.load()}))}),{id:"safari-video-poster",afterAdopt:!0,onlyStream:!0})
const y={amazon:"discourse-amazon",githubactions:"fab-github",githubblob:"fab-github",githubcommit:"fab-github",githubpullrequest:"fab-github",githubissue:"fab-github",githubfile:"fab-github",githubgist:"fab-github",twitterstatus:"fab-twitter",wikipedia:"fab-wikipedia-w"}
function _(e){const t=e.currentTarget.parentElement.nextElementSibling.cloneNode(!0)
g.show(p.default,{model:{tableHtml:t}})}function v(e){e.forEach((e=>{if(!function(e){let{clientWidth:t,scrollWidth:i}=e
return i>t}(e.parentNode))return
if(f.isMobileDevice)return
const t=function(){const e=document.createElement("button")
e.classList.add("open-popup-link","btn-default","btn","btn-icon","btn-expand-table","no-text")
const t=(0,d.create)((0,l.iconNode)("discourse-expand",{class:"expand-table-icon"}))
return e.title=n.default.t("fullscreen_table.expand_btn"),e.append(t),e}()
e.parentNode.classList.add("fullscreen-table-wrapper")
const i=document.createElement("div")
i.classList.add("fullscreen-table-wrapper--buttons"),i.append(t),t.addEventListener("click",_,!1),e.parentNode.insertBefore(i,e)}))}c.decorateCookedElement((e=>{e.querySelectorAll(".onebox").forEach((e=>{Object.entries(y).forEach((t=>{let[i,n]=t
e.classList.contains(i)&&e.querySelector(".source").insertAdjacentHTML("afterbegin",(0,l.iconHTML)(n))}))}))}),{id:"onebox-source-icons"}),c.decorateCookedElement((e=>{e.querySelectorAll(".video-container").forEach((e=>{const t=e.getElementsByTagName("video")[0]
t.addEventListener("loadeddata",(()=>{(0,i.default)((()=>{if(0===t.videoWidth||0===t.videoHeight){const t=document.createElement("div")
t.className="notice",t.innerHTML=(0,l.iconHTML)("exclamation-triangle")+" "+n.default.t("cannot_render_video"),e.appendChild(t)}}),500)}))}))}),{id:"discourse-video-codecs"}),c.decorateCookedElement((e=>{(0,t.schedule)("afterRender",(()=>{v(e.querySelectorAll("table"))}))}),{onlyStream:!0,id:"fullscreen-table"})}))}}
e.default=m})),define("discourse/instance-initializers/read-only",["exports","discourse-common/utils/decorators"],(function(e,t){var i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n,r,o,s,l,a,u=(n=i={after:"message-bus",initialize(e){this.messageBus=e.lookup("service:message-bus"),this.site=e.lookup("service:site"),this.messageBus.subscribe("/site/read-only",this.onMessage)},teardown(){this.messageBus.unsubscribe("/site/read-only",this.onMessage)},onMessage(e){this.site.set("isReadOnly",e)}},r="onMessage",o=[t.bind],s=Object.getOwnPropertyDescriptor(i,"onMessage"),l=i,a={},Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=o.slice().reverse().reduce((function(e,t){return t(n,r,e)||e}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(n,r,a),a=null),i)
e.default=u})),define("discourse/instance-initializers/register-hashtag-types",["exports","discourse/lib/plugin-api","discourse/lib/hashtag-types/category","discourse/lib/hashtag-types/tag"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r={before:"hashtag-css-generator",initialize(e){(0,t.withPluginApi)("0.8.7",(t=>{t.registerHashtagType("category",new i.default(e)),t.registerHashtagType("tag",new n.default(e))}))}}
e.default=r})),define("discourse/instance-initializers/register-media-optimization-upload-processor",["exports","discourse/components/composer-editor","discourse/lib/uppy-media-optimization-plugin","rsvp"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r={initialize(e){const r=e.lookup("service:site-settings"),o=e.lookup("service:capabilities")
if(r.composer_media_optimization_image_enabled){if(o.isIOS&&!r.composer_ios_media_optimisation_image_enabled)return;(0,t.addComposerUploadPreProcessor)(i.default,(t=>{let{isMobileDevice:i}=t
return{optimizeFn:(t,i)=>e.isDestroyed||e.isDestroying?n.Promise.resolve():e.lookup("service:media-optimization-worker").optimizeImage(t,i),runParallel:!i}}))}}}
e.default=r})),define("discourse/instance-initializers/register-service-worker",["exports","discourse/lib/register-service-worker"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={initialize(e){let{serviceWorkerURL:i}=e.lookup("service:session");(0,t.registerServiceWorker)(i)}}
e.default=i})),define("discourse/instance-initializers/relative-ages",["exports","discourse/lib/formatter"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={initialize(){this._interval=setInterval((function(){(0,t.updateRelativeAge)(document.querySelectorAll(".relative-date"))}),6e4)},teardown(){this._interval&&(clearInterval(this._interval),this._interval=null)}}
e.default=i})),define("discourse/instance-initializers/sharing-sources",["exports","I18n","discourse/lib/sharing"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n={initialize(e){const n=e.lookup("service:site-settings")
i.default.addSource({id:"twitter",icon:"fab-twitter",generateUrl(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:""
const n=i?`"${i}" -- `:t
return`http://twitter.com/intent/tweet?url=${encodeURIComponent(e)}&text=${encodeURIComponent(n)}`},shouldOpenInPopup:!0,title:t.default.t("share.twitter"),popupHeight:265}),i.default.addSource({id:"facebook",icon:"fab-facebook",title:t.default.t("share.facebook"),generateUrl(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:""
return`${n.facebook_app_id?`https://www.facebook.com/dialog/share?app_id=${n.facebook_app_id}&quote=${encodeURIComponent(i)}&href=`:"https://www.facebook.com/sharer.php?u="}${encodeURIComponent(e)}`},shouldOpenInPopup:!0}),i.default.addSource({id:"email",icon:"envelope",title:t.default.t("share.email"),generateUrl(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:""
const r=i?`${i} \n\n ${e}`:e
return"mailto:?to=&subject="+encodeURIComponent("["+n.title+"] "+t)+"&body="+encodeURIComponent(r)},showInPrivateContext:!0})}}
e.default=n})),define("discourse/instance-initializers/show-footer",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t={initialize(e){const t=e.lookup("router:main"),i=e.lookup("controller:application")
t.on("routeWillChange",(()=>(i.set("showFooter",!1),!0)))}}
e.default=t})),define("discourse/instance-initializers/signup-cta",["exports","discourse/models/session"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={initialize(e){const i=e.lookup("service:screen-track"),n=t.default.current(),r=e.lookup("service:site-settings"),o=e.lookup("service:key-value-store"),s=e.lookup("service:current-user"),l=e.lookup("service:app-events")
function a(){if(n.get("showSignupCta"))return
if(n.get("hideSignupCta"))return
if(o.get("anon-cta-never"))return
const e=Date.now()
if(o.getInt("anon-cta-hidden",0)>e-864e5)return
if(o.getInt("anon-topic-time")<12e4)return
const t=o.get("anon-topic-ids")
if(!t)return
t.split(",").length<2||(n.set("showSignupCta",!0),l.trigger("cta:shown"))}s||o.get("anon-cta-never")||r.allow_new_registrations&&(r.invite_only||r.login_required||r.enable_signup_cta&&(i.registerAnonCallback(a),a()))}}
e.default=i})),define("discourse/instance-initializers/sniff-capabilities",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t={initialize(e){const t=e.lookup("service:capabilities"),i=document.documentElement
t.touch?i.classList.add("touch","discourse-touch"):i.classList.add("no-touch","discourse-no-touch")}}
e.default=t})),define("discourse/instance-initializers/sticky-avatars",["exports","discourse/lib/sticky-avatars"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={after:"inject-objects",initialize(e){this._stickyAvatars=t.default.init(e)},teardown(){this._stickyAvatars?.destroy()}}
e.default=i})),define("discourse/instance-initializers/strip-mobile-app-url-params",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t={initialize(){let e=window.location.search
if(e.includes("user_api_public_key")){let t=e.startsWith("?")?e.slice(1).split("&"):[]
t=t.filter((e=>!e.startsWith("user_api_public_key=")&&!e.startsWith("auth_redirect="))),e=t.length>0?`?${t.join("&")}`:"",window.history&&window.history.replaceState&&window.history.replaceState(null,null,`${location.pathname}${e}${location.hash}`)}}}
e.default=t})),define("discourse/instance-initializers/subscribe-user-notifications",["exports","discourse/lib/desktop-notifications","discourse/lib/push-notifications","discourse-common/config/environment","discourse/models/notification","discourse-common/utils/decorators"],(function(e,t,i,n,r,o){var s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=(l(s={after:"message-bus",initialize(e){this.currentUser=e.lookup("service:current-user"),this.currentUser&&(this.messageBus=e.lookup("service:message-bus"),this.store=e.lookup("service:store"),this.messageBus=e.lookup("service:message-bus"),this.appEvents=e.lookup("service:app-events"),this.siteSettings=e.lookup("service:site-settings"),this.site=e.lookup("service:site"),this.router=e.lookup("router:main"),this.reviewableCountsChannel=`/reviewable_counts/${this.currentUser.id}`,this.messageBus.subscribe(this.reviewableCountsChannel,this.onReviewableCounts),this.messageBus.subscribe(`/notification/${this.currentUser.id}`,this.onNotification,this.currentUser.notification_channel_position),this.messageBus.subscribe(`/user-drafts/${this.currentUser.id}`,this.onUserDrafts),this.messageBus.subscribe(`/do-not-disturb/${this.currentUser.id}`,this.onDoNotDisturb),this.messageBus.subscribe("/user-status",this.onUserStatus,this.currentUser.status?.message_bus_last_id),this.messageBus.subscribe("/categories",this.onCategories),this.messageBus.subscribe("/client_settings",this.onClientSettings),(0,n.isTesting)()||(this.messageBus.subscribe((0,t.alertChannel)(this.currentUser),this.onAlert),(0,t.init)(this.messageBus,this.appEvents),(0,i.isPushNotificationsEnabled)(this.currentUser)?((0,t.disable)(),(0,i.register)(this.currentUser,this.router,this.appEvents)):(0,i.unsubscribe)(this.currentUser)))},teardown(){this.currentUser&&(this.messageBus.unsubscribe(this.reviewableCountsChannel,this.onReviewableCounts),this.messageBus.unsubscribe(`/notification/${this.currentUser.id}`,this.onNotification),this.messageBus.unsubscribe(`/user-drafts/${this.currentUser.id}`,this.onUserDrafts),this.messageBus.unsubscribe(`/do-not-disturb/${this.currentUser.id}`,this.onDoNotDisturb),this.messageBus.unsubscribe("/user-status",this.onUserStatus),this.messageBus.unsubscribe("/categories",this.onCategories),this.messageBus.unsubscribe("/client_settings",this.onClientSettings),this.messageBus.unsubscribe((0,t.alertChannel)(this.currentUser),this.onAlert))},onReviewableCounts(e){e.reviewable_count>=0&&this.currentUser.updateReviewableCount(e.reviewable_count),this.currentUser.set("unseen_reviewable_count",e.unseen_reviewable_count)},onNotification(e){const t=this.currentUser.unread_notifications,i=this.currentUser.unread_high_priority_notifications,n=this.currentUser.all_unread_notifications_count
this.currentUser.setProperties({unread_notifications:e.unread_notifications,unread_high_priority_notifications:e.unread_high_priority_notifications,read_first_notification:e.read_first_notification,all_unread_notifications_count:e.all_unread_notifications_count,grouped_unread_notifications:e.grouped_unread_notifications,new_personal_messages_notifications_count:e.new_personal_messages_notifications_count}),t===e.unread_notifications&&i===e.unread_high_priority_notifications&&n===e.all_unread_notifications_count||(this.appEvents.trigger("notifications:changed"),this.site.mobileView&&(e.unread_notifications-t>0||e.unread_high_priority_notifications-i>0||e.all_unread_notifications_count-n>0)&&this.appEvents.trigger("header:update-topic",null,5e3))
const o=this.store.findStale("notification",{},{cacheKey:"recent-notifications"}),s=e.last_notification?.notification
if(o?.hasResults&&s){const t=o.results.get("content")
if(-1===t.findIndex((e=>e.id===s.id))){let e=0
if(!s.high_priority||s.read){const i=t.findIndex((e=>!e.high_priority||e.read));-1!==i&&(e=i)}t.insertAt(e,r.default.create(s))}const i=Object.fromEntries(e.recent),n=t.map((e=>{if(void 0!==i[e.id])return e.set("read",i[e.id]),e})).filter(Boolean)
o.results.set("content",n)}},onUserDrafts(e){this.currentUser.updateDraftProperties(e)},onDoNotDisturb(e){this.currentUser.updateDoNotDisturbStatus(e.ends_at)},onUserStatus(e){this.appEvents.trigger("user-status:changed",e)},onCategories(e){(e.categories||[]).forEach((e=>{const t=this.currentUser.muted_category_ids?.concat(this.currentUser.indirectly_muted_category_ids)
return t&&t.includes(e.parent_category_id)&&!t.includes(e.id)&&this.currentUser.set("indirectly_muted_category_ids",this.currentUser.indirectly_muted_category_ids.concat(e.id)),this.site.updateCategory(e)})),(e.deleted_categories||[]).forEach((e=>this.site.removeCategory(e)))},onClientSettings(e){this.siteSettings[e.name]=e.value},onAlert(e){return(0,t.onNotification)(e,this.siteSettings,this.currentUser)}},"onReviewableCounts",[o.bind],Object.getOwnPropertyDescriptor(s,"onReviewableCounts"),s),l(s,"onNotification",[o.bind],Object.getOwnPropertyDescriptor(s,"onNotification"),s),l(s,"onUserDrafts",[o.bind],Object.getOwnPropertyDescriptor(s,"onUserDrafts"),s),l(s,"onDoNotDisturb",[o.bind],Object.getOwnPropertyDescriptor(s,"onDoNotDisturb"),s),l(s,"onUserStatus",[o.bind],Object.getOwnPropertyDescriptor(s,"onUserStatus"),s),l(s,"onCategories",[o.bind],Object.getOwnPropertyDescriptor(s,"onCategories"),s),l(s,"onClientSettings",[o.bind],Object.getOwnPropertyDescriptor(s,"onClientSettings"),s),l(s,"onAlert",[o.bind],Object.getOwnPropertyDescriptor(s,"onAlert"),s),s)
e.default=a})),define("discourse/instance-initializers/svg-sprite-fontawesome",["exports","discourse/lib/svg-sprite-loader"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={initialize(e){const i=e.lookup("service:session")
i.svgSpritePath&&(0,t.loadSprites)(i.svgSpritePath,"fontawesome")}}
e.default=i})),define("discourse/instance-initializers/theme-errors-handler",["exports","discourse-common/config/environment","discourse/app","discourse-common/lib/get-url","I18n","discourse-common/utils/decorators","pretty-text/sanitizer","discourse/lib/source-identifier","ember"],(function(e,t,i,n,r,o,s,l,a){var u
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=new Set
var d,p,m,h,f,g,b=(d=u={initialize(e){(0,t.isTesting)()||(this.currentUser=e.lookup("service:current-user"),(0,i.getAndClearUnhandledThemeErrors)().forEach((e=>this.reportThemeError(e))),document.addEventListener("discourse-error",this.handleDiscourseError))},teardown(){document.removeEventListener("discourse-error",this.handleDiscourseError),delete this.currentUser},handleDiscourseError(e){e.detail?.themeId?this.reportThemeError(e):this.reportGenericError(e),e.preventDefault()},reportThemeError(e){const{themeId:t,error:i}=e.detail,o={type:"theme",...(0,l.getThemeInfo)(t)}
y(i,o),function(e,t){const i={message:`${e} theme/component is throwing errors:\n${t.name}: ${t.message}`,stacktrace:t.stack}
a.default.$.ajax((0,n.default)("/logs/report_js_error"),{data:i,type:"POST"})}(o.name,i)
const s=r.default.t("themes.broken_theme_alert")
this.displayErrorNotice(this.currentUser,s,o)},reportGenericError(e){const{messageKey:t,error:i}=e.detail,n=r.default.t(t),o=(0,l.default)(i)
y(i,o),t&&!c.has(t)&&(c.add(t),this.displayErrorNotice(n,o))},displayErrorNotice(e,t){if(!this.currentUser?.admin)return
let i=`⚠️ ${e}`
t&&"theme"===t.type&&(i+=`<br/>${r.default.t("themes.error_caused_by",{name:(0,s.escape)(t.name),path:t.path})}`),i+=`<br/><span class='theme-error-suffix'>${r.default.t("themes.only_admins")}</span>`
const n=document.createElement("div")
n.classList.add("broken-theme-alert"),n.innerHTML=i,document.body.prepend(n)}},p="handleDiscourseError",m=[o.bind],h=Object.getOwnPropertyDescriptor(u,"handleDiscourseError"),f=u,g={},Object.keys(h).forEach((function(e){g[e]=h[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=m.slice().reverse().reduce((function(e,t){return t(d,p,e)||e}),g),f&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(f):void 0,g.initializer=void 0),void 0===g.initializer&&(Object.defineProperty(d,p,g),g=null),u)
function y(e,t){const i=(0,l.consolePrefix)(e,t)
i?console.error(i,e):console.error(e)}e.default=b})),define("discourse/instance-initializers/topic-footer-buttons",["exports","I18n","discourse/models/bookmark","discourse/lib/register-topic-footer-button","discourse/components/modal/share-topic"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o={initialize(e){(0,n.registerTopicFooterButton)({id:"share-and-invite",icon:"d-topic-share",priority:1e3,label(){if(!this.get("topic.isPrivateMessage")||this.site.mobileView)return"footer_nav.share"},title:"topic.share.help",action(){e.lookup("service:modal").show(r.default,{model:{category:this.topic.category,topic:this.topic,allowInvites:this.currentUser.can_invite_to_forum&&this.canInviteTo&&!this.inviteDisabled}})},dropdown(){return this.site.mobileView},classNames:["share-and-invite"],dependentKeys:["topic.shareUrl","topic.isPrivateMessage","canInviteTo","inviteDisabled","isPM","invitingToTopic"]}),(0,n.registerTopicFooterButton)({id:"flag",icon:"flag",priority:700,label:"topic.flag_topic.title",title:"topic.flag_topic.help",action:"showFlagTopic",dropdown(){return this.site.mobileView},classNames:["flag-topic"],dependentKeys:["topic.details.can_flag_topic","topic.isPrivateMessage"],displayed(){return this.get("topic.details.can_flag_topic")&&!this.get("topic.isPrivateMessage")}}),(0,n.registerTopicFooterButton)({dependentKeys:["topic.bookmarked","topic.bookmarksWereChanged"],id:"bookmark",icon(){return this.topic.bookmarks.some((e=>e.reminder_at))?i.WITH_REMINDER_ICON:i.NO_REMINDER_ICON},priority:900,classNames(){return this.topic.bookmarked?["bookmark","bookmarked"]:["bookmark"]},label(){if(!this.topic.isPrivateMessage||this.site.mobileView)return 0===this.topic.bookmarkCount?"bookmarked.title":1===this.topic.bookmarkCount?"bookmarked.edit_bookmark":"bookmarked.clear_bookmarks"},translatedTitle(){if(0===this.topic.bookmarkCount)return t.default.t("bookmarked.help.bookmark")
if(1===this.topic.bookmarkCount){return this.topic.bookmarks.some((e=>"Topic"===e.bookmarkable_type))?t.default.t("bookmarked.help.edit_bookmark_for_topic"):t.default.t("bookmarked.help.edit_bookmark")}return this.topic.bookmarks.some((e=>e.reminder_at))?t.default.t("bookmarked.help.unbookmark_with_reminder"):t.default.t("bookmarked.help.unbookmark")},action:"toggleBookmark",dropdown(){return this.site.mobileView}}),(0,n.registerTopicFooterButton)({id:"archive",priority:800,icon(){return this.archiveIcon},label(){return this.archiveLabel},title(){return this.archiveTitle},action:"toggleArchiveMessage",classNames:["standard","archive-topic"],dependentKeys:["canArchive","archiveIcon","archiveLabel","archiveTitle","toggleArchiveMessage"],dropdown(){return this.site.mobileView},displayed(){return this.canArchive}}),(0,n.registerTopicFooterButton)({id:"defer",icon:"circle",priority:500,label:"topic.defer.title",title:"topic.defer.help",action:"deferTopic",displayed(){return this.canDefer},dropdown(){return this.site.mobileView}})}}
e.default=o})),define("discourse/instance-initializers/url-redirects",["exports","discourse/lib/url","discourse/lib/utilities","discourse-common/utils/escape-regexp"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r={after:"inject-objects",initialize(e){const r=e.lookup("service:current-user")
if(r){const e=r.get("username"),i=(0,n.default)(e)
t.default.rewrite(new RegExp(`^/u/${i}/?$`,"i"),`/u/${e}/activity`)}t.default.rewrite(/^\/group\//,"/groups/"),t.default.rewrite(/^\/groups$/,"/g"),t.default.rewrite(/^\/groups\//,"/g/")
let o=e.lookup("service:site-settings");(0,i.initializeDefaultHomepage)(o)
let s=o.view_user_route||"summary"
e.lookup(`route:user.${s}`)||(s="summary"),t.default.rewrite(/^\/u\/([^\/]+)\/?$/,`/u/$1/${s}`,{exceptions:["/u/account-created","/users/account-created","/u/password-reset","/users/password-reset"]})}}
e.default=r})),define("discourse/instance-initializers/user-tips",["exports","discourse-common/utils/decorators"],(function(e,t){var i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n,r,o,s,l,a,u=(n=i={after:"message-bus",initialize(e){this.currentUser=e.lookup("service:current-user"),this.currentUser&&(this.messageBus=e.lookup("service:message-bus"),this.site=e.lookup("service:site"),this.messageBus.subscribe(`/user-tips/${this.currentUser.id}`,this.onMessage))},teardown(){this.currentUser&&this.messageBus?.unsubscribe(`/user-tips/${this.currentUser.id}`,this.onMessage)},onMessage(e){this.site.user_tips&&(this.currentUser.set("seen_popups",e),this.currentUser.user_option||this.currentUser.set("user_option",{}),this.currentUser.set("user_option.seen_popups",e),(e||[]).forEach((e=>{this.currentUser.hideUserTipForever(Object.keys(this.site.user_tips).find((t=>this.site.user_tips[t]===e)))})))}},r="onMessage",o=[t.bind],s=Object.getOwnPropertyDescriptor(i,"onMessage"),l=i,a={},Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=o.slice().reverse().reduce((function(e,t){return t(n,r,e)||e}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(n,r,a),a=null),i)
e.default=u})),define("discourse/instance-initializers/webview-background",["exports","discourse/lib/utilities","discourse-common/lib/later"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n={after:"inject-objects",initialize(e){e.lookup("service:capabilities").isAppWebview&&(window.matchMedia("(prefers-color-scheme: dark)").addListener(this.updateAppBackground),this.updateAppBackground())},updateAppBackground(){(0,i.default)((()=>{const e=document.querySelector(".d-header-wrap .d-header")
if(e){const i=window.getComputedStyle(e);(0,t.postRNWebviewMessage)("headerBg",i.backgroundColor)}}),500)}}
e.default=n})),define("discourse/lib/ajax-error",["exports","I18n","discourse-common/lib/get-owner","@ember/template"],(function(e,t,i,n){function r(e,i){e instanceof Error&&console.error(e.stack),"string"==typeof e&&console.error(e),e.jqXHR&&(e=e.jqXHR)
let n,r,o=!1
if(e.responseJSON&&(r=e.responseJSON),!r&&e.responseText)try{r=$.parseJSON(e.responseText)}catch(s){console.error(s.stack)}return r&&(r.html_message&&(o=!0),r.errors?.length>1?n=t.default.t("multiple_errors",{errors:r.errors.map(((e,t)=>`${t+1}) ${e}`)).join(" ")}):r.errors?.length>0?n=t.default.t("generic_error_with_reason",{error:r.errors[0]}):r.error?n=r.error:r.message?n=r.message:r.failed&&(n=r.failed)),n||e.status&&e.status>=400&&(n=e.status+" "+e.statusText),{html:o,message:n||i||t.default.t("generic_error")}}function o(e,t){return r(e,t).message}Object.defineProperty(e,"__esModule",{value:!0}),e.extractError=o,e.flashAjaxError=function(e,t){return i=>{e.flash(o(i,t),"error")}},e.popupAjaxError=function(e){const t=(0,i.getOwner)(this).lookup("service:dialog"),o=r(e)
o.html?t.alert({message:(0,n.htmlSafe)(o.message)}):t.alert(o.message)},e.throwAjaxError=function(e,t){return function(i){throw e&&e(i),o(i,t)}}})),define("discourse/lib/ajax",["exports","rsvp","discourse/models/session","discourse/models/site","discourse/models/user","discourse-common/lib/get-url","discourse-common/config/environment","@ember/runloop","discourse/lib/user-presence"],(function(e,t,i,n,r,o,s,l,a){Object.defineProperty(e,"__esModule",{value:!0}),e.ajax=h,e.handleLogoff=p,e.setLogoffCallback=function(e){u=e},e.setTransientHeader=function(e,t){d={key:e,value:t}},e.updateCsrfToken=m,e.viewTrackingRequired=function(){c=!0}
let u,c=!1,d=null
function p(e){e&&e.getResponseHeader("Discourse-Logged-Out")&&u&&u()}function m(){return h("/session/csrf").then((e=>{i.default.currentProp("csrfToken",e.csrf)}))}function h(){let e,u,h
1===arguments.length?"string"==typeof arguments[0]?(e=arguments[0],u={}):(u=arguments[0],e=u.url,delete u.url):2===arguments.length&&(e=arguments[0],u=arguments[1])
let f,g=!0
function b(t,m){u.headers=u.headers||{},r.default.current()&&(u.headers["Discourse-Logged-In"]="true"),d&&(u.headers[d.key]=d.value,d=null),!c||u.type&&"GET"!==u.type||(c=!1,u.headers["Discourse-Track-View"]="true"),(0,a.default)()&&(u.headers["Discourse-Present"]="true"),u.success=(e,i,r)=>{(function(e){e&&e.getResponseHeader("Discourse-Xhr-Redirect")&&(window.location=e.responseText)})(r),p(r),(0,l.run)((()=>{n.default.currentProp("isReadOnly",!(!r||!r.getResponseHeader("Discourse-Readonly")))})),u.returnXHR&&(e={result:e,xhr:r}),(0,l.run)(null,t,e)},u.error=(t,n,r)=>{if(g&&0===t.readyState){if("error"===n&&(0,s.isTesting)())throw r}else{if(p(t),403===t.status&&'["BAD CSRF"]'===t.responseText&&i.default.current().set("csrfToken",null),200===t.status)return u.success(t)
t.jqTextStatus=n,t.requestedUrl=e,(0,l.run)(null,m,{jqXHR:t,textStatus:n,errorThrown:r})}},u.method&&(u.type=u.method,delete u.method),u.type||(u.type="GET"),u.dataType||"GET"!==u.type.toUpperCase()||(u.dataType="json"),"script"===u.dataType&&(u.headers["Discourse-Script"]=!0),h=$.ajax((0,o.default)(e),u)}return void 0!==u.ignoreUnsent&&(g=u.ignoreUnsent,delete u.ignoreUnsent),f=u.type&&"GET"!==u.type.toUpperCase()&&e!==(0,o.default)("/clicks/track")&&!i.default.currentProp("csrfToken")?new t.Promise(((e,t)=>{h=m().then((()=>{b(e,t)}))})):new t.Promise(b),f.abort=()=>{h&&h.abort()},f}})),define("discourse/lib/api",["exports","discourse/lib/plugin-api"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.apiInitializer=function(e,n,r){return{name:"api-initializer"+i++,after:"inject-objects",initialize:()=>(0,t.withPluginApi)(e,n,r)}}
let i=0})),define("discourse/lib/autocomplete",["exports","@ember/runloop","discourse-common/lib/later","discourse/lib/utilities","discourse-common/config/environment","discourse/models/site","@popperjs/core","discourse-common/lib/debounce","discourse-common/lib/icon-library","discourse/lib/text-direction"],(function(e,t,i,n,r,o,s,l,a,u){Object.defineProperty(e,"__esModule",{value:!0}),e.SKIP=e.CANCELLED_STATUS=void 0,e.default=function(e){if(0===this.length)return
if(("destroy"===e||e.updateData)&&((0,t.cancel)(f),this[0].removeEventListener("keydown",H),this[0].removeEventListener("keyup",R),this[0].removeEventListener("paste",S),this[0].removeEventListener("click",C),window.removeEventListener("click",C),"destroy"===e))return
if(e&&e.cancel&&this.data("closeAutocomplete"))return this.data("closeAutocomplete")(),this
if(1!==this.length)return window.console&&(window.console.log("WARNING: passed multiple elements to $.autocomplete, skipping."),window.Error&&window.console.log((new window.Error).stack)),this
e&&void 0===e.preserveKey&&(e.preserveKey=!0)
const g=e&&e.disabled
let b=null,y=null,_=null,v=null,w=this,k=null,x=null,P=null
"autoSelectFirstSuggestion"in e||(e.autoSelectFirstSuggestion=!0)
const O="INPUT"===w[0].tagName&&!e.treatAsTextarea
let T=[]
function S(){(0,i.default)((()=>w.trigger("keydown")),50)}function j(){if(!x&&!k)return
const e=x?.length>0?x[0]:k[0],t=M(),i=t.offsetTop,n=i+t.clientHeight
i<=e.scrollTop?e.scrollTo(0,i):n>=e.scrollTop+e.clientHeight&&e.scrollTo(0,e.scrollTop+t.clientHeight)}function C(){m?.destroy(),e.onClose&&e.onClose(),k&&k.hide().remove(),k=null,x=null,v=null,y=null,P=null,m=null}function z(t,i){let n,r=t
e.transformComplete&&(r=e.transformComplete(r)),e.single&&(T=[]),n=Array.isArray(r)?r:[r||t]
const o=n.map((e=>{let t=$(`<div class='item'><span>${e}<a class='remove' href>${(0,a.iconHTML)("times")}</a></span></div>`)
const i=w.parent().find(".item:last")
return 0===i.length?w.parent().prepend(t):i.after(t),T.push(e),t[0]}))
e.onChangeItems&&i&&e.onChangeItems(T),$(o).find("a").click((function(){return C(),T.splice($.inArray(r,T),1),$(this).parent().parent().remove(),e.single&&w.show(),e.onChangeItems&&e.onChangeItems(T),!1}))}let I=async function(t,i){let r=null
if(t)if(O)w.val(""),e.single&&w.hide(),z(t,!0)
else if(e.transformComplete&&(t=await e.transformComplete(t,i)),t){let o=w.val(),s=q({completeTerm:!0})
void 0!==s.completeStart&&void 0!==s.completeEnd?(v=s.completeStart,r=s.completeEnd):v=r=(0,n.caretPosition)(w[0])
let l=" "===o.substring(r+1,r+2)?"":" "
o=o.substring(0,v)+(e.preserveKey&&e.key||"")+t+l+o.substring(r+1,o.length),w.val(o)
let a=v+1+t.length
e.key&&a++,(0,n.setCaretPosition)(w[0],a),e&&e.afterComplete&&e.afterComplete(o,i)}C()}
if(O){const t=Math.max(this.width(),200)
e.updateData?(b=this.parent(),b.find(".item").remove(),w.show()):(b=this.wrap("<div class='ac-wrap clearfix"+(g?" disabled":"")+"'/>").parent(),e.fullWidthWrap||b.width(t)),e.single&&!e.width?this.attr("class",`${this.attr("class")} fullwidth-input`):e.width&&this.css("width",e.width),this.attr("name",e.updateData?this.attr("name"):this.attr("name")+"-renamed"),this.val().split(",").forEach((t=>{""!==t&&(e.reverseTransform&&(t=e.reverseTransform(t)),e.single&&w.hide(),z(t,!1))})),e.items&&e.items.forEach((t=>{e.single&&w.hide(),z(t,!0)})),this.val(""),v=0,b.click((function(){return this.focus(),!0}))}function E(){return D().removeClass("selected"),$(M()).addClass("selected")}function M(){return D()[_]}function D(){return k.find("li a")}const N=-32
function L(e,t){const i=t._gboard_hack_force_lookup
return i&&delete t._gboard_hack_force_lookup,P!==e||i?(P=e,0!==e.length&&0===e.trim().length?(C(),null):t.dataSource(e)):c}function A(t){if(null!==v&&t!==c)return t&&t.then&&"function"==typeof t.then?(k&&k.hide().remove(),void t.then(A)):void(t!==d&&(y=t,t&&0!==t.length?function(){if(k&&k.hide().remove(),0===y.length)return
k=$(e.template({options:y}))
let t=k.find("ul")
if(e.autoSelectFirstSuggestion?(_=0,E()):_=-1,t.find("li").click((function(i){let{originalEvent:n}=i
if(_=t.find("li").index(this),null==y){const t={...e,_gboard_hack_force_lookup:!0},i=L(P,t)
i?.then((t=>{A(t),I(y[_],n),e.single||w.focus()}))}else I(y[_],n),e.single||w.focus()
return!1})),e.appendSelector?w.parents(e.appendSelector).append(k):w.parent().append(k),e.scrollElementSelector&&(x=k.find(e.scrollElementSelector)),e.onRender&&e.onRender(y),O||e.treatAsTextarea)return m&&m.destroy(),m=(0,s.createPopper)(w[0],k[0],{placement:(o.default.currentProp("mobileView")?"top":"bottom")+"-start",modifiers:[{name:"offset",options:{offset:[0,2]}}]}),m
let i=0,n=w.caretPosition({pos:v+1})
e.treatAsTextarea&&(i=-32),O||e.treatAsTextarea||(i=k.height(),window.innerHeight-w.outerHeight()-$("header.d-header").innerHeight()<i&&i>n.top&&(i=N),o.default.currentProp("mobileView")&&w.height()/2>=n.top&&(i=N))
const r=w.position()
let l
if((0,u.isDocumentRTL)())l=r.left+n.left-k.width()
else{let e=10
o.default.currentProp("mobileView")&&w.width()/2<=n.left&&(e=-k.width()),l=r.left+n.left+e}l<0&&(l=0)
const a=w.offset().top,c=parseInt(w.css("border-top-width"),10)||0
r.top+n.top+c-i+a<30&&(i=N),k.css({position:"absolute",top:`${r.top+n.top-i+c}px`,left:`${l}px`})}():C()))}const U=w.data("closeAutocomplete")
function F(t){return!e.triggerRule||e.triggerRule(w[0],t)}function R(t){e.debounced?(0,l.default)(this,B,t,r.INPUT_DELAY):B(t)}function B(t){if([h.esc,h.enter].includes(t.which))return!0
let i=(0,n.caretPosition)(w[0])
const r=w[0].value[i-1]
if(e.key&&e.onKeyUp&&r!==e.key){let t=e.onKeyUp(w.val(),i)
if(t){v=i-t[0].length,A(L(t[0].substring(1,t[0].length),e))}}if(null===v&&i>0){if(r===e.key){let t=w.val().charAt(i-2)
!F()||t&&!p.test(t)||(v=i-1,A(L("",e)))}}else if(null!==v){A(L(w.val().substring(v+(e.key?1:0),i),e))}}function q(t){let i,r,o,s=!0,l=w[0],a=t&&t.backSpace,u=t&&t.completeTerm,c=(0,n.caretPosition)(l)
a&&(c-=1)
let d=null,m=null,h=c
for(;s&&c>=0;){if(c-=1,i=l.value[c],r=i===e.key,r&&(i=l.value[c-1],F({backSpace:a})&&(void 0===i||p.test(i)))){d=c,o=l.value.substring(c+1,h),m=c+o.length
break}s=!/\s/.test(i),u&&(s||=" "===i)}return{completeStart:d,completeEnd:m,term:o}}function H(r){let o,s,l,a,u
if(r.ctrlKey||r.altKey||r.metaKey)return!0
if(e.allowAny&&((0,t.cancel)(f),f=(0,i.default)((function(){0===T.length&&T.push(""),"string"==typeof T[0]&&w.val().length>0&&(T.pop(),T.push(w.val()),e.onChangeItems&&e.onChangeItems(T))}),50)),e.key||(v=0),r.which!==h.shift){if(null===v&&r.which===h.backSpace&&e.key){let t=q({backSpace:!0})
if(v=t.completeStart,t.completeEnd)return A(L(t.term,e)),!0}if(r.which===h.esc)return null===k||(C(),r.preventDefault(),r.stopImmediatePropagation(),!1)
if(null!==v){if(u=(0,n.caretPosition)(w[0]),r.which===h.rightArrow&&" "===w[0].value[u])return C(),!0
if(u<=v&&e.key)return C(),!0
switch(r.which){case h.tab:case h.enter:return y?!(_>=0&&(a=y[_]))||(I(a,r),r.stopImmediatePropagation(),r.preventDefault(),!1):(C(),!0)
case h.upArrow:return _-=1,_<0&&(_=0),E(),j(),r.preventDefault(),!1
case h.downArrow:return y?(l=y.length,_+=1,_>=l&&(_=l-1),_<0&&(_=0),E(),j(),r.preventDefault(),!1):(C(),!0)
case h.backSpace:return y=null,u--,u<0?(C(),O&&(o=b.find("a:last"),o&&o.click()),!0):(s=w.val().substring(v+(e.key?1:0),u),v===u&&s===e.key&&C(),A(L(s,e)),!0)
default:return y=null,!0}}}}return w.data("closeAutocomplete",(function(){U&&U(),C()})),window.addEventListener("click",C),this[0].addEventListener("click",C),this[0].addEventListener("paste",S),this[0].addEventListener("keyup",R),this[0].addEventListener("keydown",H),this}
const c="skip"
e.SKIP=c
const d="__CANCELLED"
e.CANCELLED_STATUS=d
const p=/[\s\t\[\{\(\/]/
let m
const h={backSpace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,esc:27,space:32,leftWindows:91,rightWindows:92,pageUp:33,pageDown:34,end:35,home:36,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40,insert:45,deleteKey:46,zero:48,a:65,z:90}
let f})),define("discourse/lib/autosize",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const t="function"==typeof Set?new Set:function(){const e=[]
return{has:t=>Boolean(e.includes(t)),add(t){e.push(t)},delete(t){e.splice(e.indexOf(t),1)}}}()
function i(e){if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName)return
const t=document.createEvent("Event")
t.initEvent("autosize:destroy",!0,!1),e.dispatchEvent(t)}function n(e){if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName)return
const t=document.createEvent("Event")
t.initEvent("autosize:update",!0,!1),e.dispatchEvent(t)}let r=(e,i)=>(e&&Array.prototype.forEach.call(e.length?e:[e],(e=>function(e){let{setOverflowX:i=!0,setOverflowY:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName||t.has(e))return
let r=null,o=null,s=e.clientWidth
function l(t){{const t=e.style.width
e.style.width="0px",e.offsetWidth,e.style.width=t}o=t,n&&(e.style.overflowY=t),a()}function a(){const t=window.pageYOffset,i=document.body.scrollTop,n=e.style.height
e.style.height="auto"
let o=e.scrollHeight+r
0!==e.scrollHeight?(e.style.height=o+"px",s=e.clientWidth,document.documentElement.scrollTop=t,document.body.scrollTop=i):e.style.height=n}function u(){const t=e.style.height
if(a(),window.getComputedStyle(e,null).height!==e.style.height?"visible"!==o&&l("visible"):"hidden"!==o&&l("hidden"),t!==e.style.height){const t=document.createEvent("Event")
t.initEvent("autosize:resized",!0,!1),e.dispatchEvent(t)}}const c=()=>{e.clientWidth!==s&&u()},d=i=>{window.removeEventListener("resize",c,!1),e.removeEventListener("input",u,!1),e.removeEventListener("keyup",u,!1),e.removeEventListener("autosize:destroy",d,!1),e.removeEventListener("autosize:update",u,!1),t.delete(e),Object.keys(i).forEach((t=>{e.style[t]=i[t]}))}
e.addEventListener("autosize:destroy",d,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",u,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",u,!1),e.addEventListener("autosize:update",u,!1),t.add(e),i&&(e.style.overflowX="hidden",e.style.wordWrap="break-word"),function(){const t=window.getComputedStyle(e,null)
o=t.overflowY,"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),r="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(r)&&(r=0),u()}()}(e,i))),e)
r.destroy=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],i),e),r.update=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],n),e)
var o=r
e.default=o})),define("discourse/lib/avatar-flair",["exports"],(function(e){let t,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n){t||function(e){t={},i=!0,["admins","moderators","staff","trust_level_0","trust_level_1","trust_level_2","trust_level_3","trust_level_4"].forEach((n=>{const r=e.groups?.findBy("name",n)
r&&r.flair_url&&(i=!1,t[n]={flair_name:r.name.replace(/_/g," "),flair_url:r.flair_url,flair_bg_color:r.flair_bg_color,flair_color:r.flair_color})}))}(e)
if(i)return null
if(n.admin&&t.admins)return t.admins
if(n.moderator&&t.moderators)return t.moderators
if(t.staff&&(n.admin||n.moderator))return t.staff
let r=n.trust_level||n.trustLevel
if(r)for(let i=r;i>=0;i--)if(t[`trust_level_${i}`])return t[`trust_level_${i}`]},e.resetFlair=function(){t=null,i=null}})),define("discourse/lib/bookmark",["exports","I18n"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.formattedReminderTime=function(e,i){let n=moment.tz(e,i),r=n.format(t.default.t("dates.time")),o=moment.tz(i),s=moment(o).add(1,"day")
if(n.isSame(s,"date"))return t.default.t("bookmarks.reminders.tomorrow_with_time",{time:r})
if(n.isSame(o,"date"))return t.default.t("bookmarks.reminders.today_with_time",{time:r})
return t.default.t("bookmarks.reminders.at_time",{date_time:n.format(t.default.t("dates.long_with_year"))})}})),define("discourse/lib/cached-topic-list",["exports"],(function(e){function t(e){e.setProperties({topicList:null,topicListScrollPosition:null})}Object.defineProperty(e,"__esModule",{value:!0}),e.findOrResetCachedTopicList=function(e,i){const n=e.get("topicList")
return n&&n.filter===i?n:(t(e),!1)},e.getCachedTopicList=function(e){e.get("topicList")},e.resetCachedTopicList=t,e.setCachedTopicList=function(e,t){e.set("topicList",t)}})),define("discourse/lib/category-hashtags",["exports","discourse/lib/hashtag-autocomplete","discourse-common/lib/deprecated"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.SEPARATOR=void 0,e.categoryHashtagTriggerRule=function(e,n){return(0,i.default)("categoryHashtagTriggerRule is being replaced by hashtagTriggerRule and the new hashtag-autocomplete plugin APIs",{since:"2.9.0.beta10",dropFrom:"3.0.0.beta1",id:"discourse.category-hashtags.categoryHashtagTriggerRule"}),(0,t.hashtagTriggerRule)(e,n)},e.replaceSpan=function(e,t,i,n){n=n?` data-type="${n}"`:"",e.replaceWith(`<a href="${i}" class="hashtag"${n}>#<span>${t}</span></a>`)}
e.SEPARATOR=":"})),define("discourse/lib/category-tag-search",["exports","@ember/runloop","discourse-common/lib/later","discourse/lib/autocomplete","discourse/models/category","rsvp","discourse/lib/category-hashtags","discourse/lib/tag-hashtags","discourse-common/lib/debounce","discourse-common/config/environment","discourse/lib/ajax"],(function(e,t,i,n,r,o,s,l,a,u,c){Object.defineProperty(e,"__esModule",{value:!0}),e.search=function(e,l){p&&(p.abort(),p=null)
new Date-d>3e4&&(m={})
const c=m[e]
if(c)return c
let g=r.default.search(e,{limit:5}),b=g.length
return g=g.map((e=>({model:e,text:r.default.slugFor(e,s.SEPARATOR,2)}))),5!==b&&l.tagging_enabled?function(e,r,s){return new o.Promise((o=>{let l=(0,u.isTesting)()?null:(0,i.default)((()=>{o(n.CANCELLED_STATUS)}),5e3);(0,a.default)(this,f,e,s,r,(i=>{(0,t.cancel)(l),o(h(e,i))}),300)}))}(e,g,5-b):h(e,g)}
let d,p,m={}
function h(e,t){return m[e]=t,d=new Date,t}function f(e,t,i,r){p=(0,c.ajax)("/tags/filter/search",{data:{limit:t,q:e}})
let o=n.CANCELLED_STATUS
p.then((e=>{const t=i.map((e=>e.model.get("name"))),n=e.results.map((e=>(e.text=t.includes(e.text)?`${e.text}${l.TAG_HASHTAG_POSTFIX}`:e.text,e)))
o=i.concat(n)})).finally((()=>{p=null,r(o)}))}})),define("discourse/lib/click-track",["exports","discourse/lib/url","I18n","rsvp","discourse/models/user","discourse/lib/ajax","discourse-common/lib/get-url","discourse-common/config/environment","discourse/lib/intercept-click","discourse-common/lib/deprecated","discourse-common/lib/get-owner","jquery"],(function(e,t,i,n,r,o,s,l,a,u,c,d){function p(e){if(e instanceof d.default&&(e=e[0],(0,u.default)("isValidLink now expects an Element, not a jQuery object",{since:"2.9.0.beta7",id:"discourse.click-track.is-valid-link-jquery"})),["lightbox","no-track-link","hashtag","hashtag-cooked","back"].some((t=>e.classList.contains(t))))return!1
const t=e.closest("aside.quote, .elided, .expanded-embed")
if(t&&t!==e)return!1
if(e.closest(".onebox-result, .onebox-body")){const t=e.closest(".onebox")?.querySelector("header a")
if(t&&t.href===e.href)return!0}return e.classList.contains("track-link")||!e.closest(".hashtag, .hashtag-cooked, .hashtag-icon-placeholder, .badge-category, .onebox-result, .onebox-body")}function m(e){const i=t.default.isInternal(e),n=r.default.currentProp("user_option.external_links_in_new_tab")
return!i&&n}function h(e,t){let i=(t.href||t.dataset.href||"").trim()
if(""===i)return
const n=window.open(i,"_blank")
n.opener=null,n.focus(),e.preventDefault()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.isValidLink=p,e.openLinkInNewTab=h,e.shouldOpenInNewTab=m
var f={trackClick(e,u){let{returnPromise:d=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
if(3===e.which)return!0
const f=e.currentTarget,g=p(f)
if(["mention","mention-group"].some((e=>f.classList.contains(e))))return!0
let b=(f.getAttribute("href")||f.dataset.href||"").trim()
if(!b||b.startsWith("mailto:"))return!0
if(f.classList.contains("attachment")){if(u?.prevent_anons_from_downloading_files&&!r.default.current()){(0,c.getOwner)(this).lookup("service:dialog").alert(i.default.t("post.errors.attachment_download_requires_login"))}else if((0,a.wantsNewWindow)(e)){const e=window.open(b,"_blank")
e.opener=null,e.focus()}else t.default.redirectTo(b)
return!1}const y=f.closest("article:not(.onebox-body), .excerpt, #revisions"),_=y.dataset.postId,v=document.querySelector("#topic")?.dataset?.topicId||y.dataset.topicId,w=f.dataset.userId||y.dataset.userId,k=w&&parseInt(w,10)===r.default.currentProp("id")
if(g&&!k){const e=f.querySelector("span.badge")
if(e){const t=e.innerHTML,i=`${(new Date).toLocaleDateString()}-${_}-${b}`;/^\d+$/.test(t)&&!sessionStorage.getItem(i)&&(sessionStorage.setItem(i,!0),e.innerHTML=parseInt(t,10)+1)}}let x=n.Promise.resolve()
if(g)if(!(0,l.isTesting)()&&navigator.sendBeacon){const e=new FormData
e.append("url",b),e.append("post_id",_),e.append("topic_id",v),navigator.sendBeacon((0,s.default)("/clicks/track"),e)}else x=(0,o.ajax)((0,s.default)("/clicks/track"),{type:"POST",data:{url:b,post_id:_,topic_id:v}})
return(0,a.wantsNewWindow)(e)?!d||x:(m(b)?h(e,f):x.finally((()=>{t.default.isInternal(b)&&(0,s.samePrefix)(b)?t.default.routeTo(b):t.default.redirectAbsolute(b)})),!!d&&x)}}
e.default=f}))
define("discourse/lib/codeblock-buttons",["exports","@ember/runloop","discourse-common/lib/later","discourse/lib/mobile","discourse-common/utils/decorators","I18n","@ember/object/internals","discourse/lib/utilities","discourse-common/lib/icon-library","discourse-common/lib/get-owner","discourse/components/modal/fullscreen-code"],(function(e,t,i,n,r,o,s,l,a,u,c){var d
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let p=(d=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this._codeblockButtonClickHandlers={},this._fadeCopyCodeblocksRunners={},e=Object.assign({showFullscreen:!0,showCopy:!0},e),this.showFullscreen=e.showFullscreen,this.showCopy=e.showCopy}attachToPost(e,t){let i=this._getCodeBlocks(t)
i.length&&e&&(this._createButtons(i),this._storeClickHandler(e.id,t),this._addClickEvent(t))}attachToGeneric(e){let t=this._getCodeBlocks(e)
if(!t.length)return
this._createButtons(t)
const i=(0,s.guidFor)(e)
this._storeClickHandler(i,e),this._addClickEvent(e)}cleanup(){Object.values(this._codeblockButtonClickHandlers||{}).forEach((e=>e.removeEventListener("click",this._handleClick))),Object.values(this._fadeCopyCodeblocksRunners||{}).forEach((e=>(0,t.cancel)(e))),this._codeblockButtonClickHandlers={},this._fadeCopyCodeblocksRunners={}}_storeClickHandler(e,t){this._codeblockButtonClickHandlers[e]&&(this._codeblockButtonClickHandlers[e].removeEventListener("click",this._handleClick),delete this._codeblockButtonClickHandlers[e]),this._codeblockButtonClickHandlers[e]=t}_getCodeBlocks(e){return e.querySelectorAll(":scope > pre > code, :scope :not(article):not(blockquote) > pre > code")}_createButtons(e){e.forEach((e=>{const t=document.createElement("div")
if(t.classList.add("codeblock-button-wrapper"),e.before(t),this.showCopy){const i=document.createElement("button")
i.classList.add("btn","nohighlight","copy-cmd"),i.ariaLabel=o.default.t("copy_codeblock.copy"),i.innerHTML=(0,a.iconHTML)("copy"),t.appendChild(i),t.style.right=e.offsetWidth-e.clientWidth+"px"}if(this.showFullscreen&&!n.default.isMobileDevice&&e.scrollWidth>e.clientWidth){const e=document.createElement("button")
e.classList.add("btn","nohighlight","fullscreen-cmd"),e.ariaLabel=o.default.t("copy_codeblock.fullscreen"),e.innerHTML=(0,a.iconHTML)("discourse-expand"),t.appendChild(e)}e.parentElement.classList.add("codeblock-buttons")}))}_addClickEvent(e){e.addEventListener("click",this._handleClick,!1)}_handleClick(e){if(!e.target.classList.contains("copy-cmd")&&!e.target.classList.contains("fullscreen-cmd"))return
const t=e.target.classList.contains("fullscreen-cmd")?"fullscreen":"copy",i=e.target,n=i.parentElement.parentElement.querySelector("code")
if(n){const e=n.innerText.replace(/[\f\v\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/g," ").trim()
if("copy"===t){const t=(0,l.clipboardCopy)(e)
t?.then?t.then((()=>{this._copyComplete(i)})):t&&this._copyComplete(i)}else if("fullscreen"===t){(0,u.getOwner)(this).lookup("service:modal").show(c.default,{model:{code:e,codeClasses:n.className}})}}}_copyComplete(e){e.classList.add("action-complete")
const n=e.innerHTML
e.innerHTML=o.default.t("copy_codeblock.copied")
const r=(0,s.guidFor)(e)
this._fadeCopyCodeblocksRunners[r]&&((0,t.cancel)(this._fadeCopyCodeblocksRunners[r]),delete this._fadeCopyCodeblocksRunners[r]),this._fadeCopyCodeblocksRunners[r]=(0,i.default)((()=>{e.classList.remove("action-complete"),e.innerHTML=n,delete this._fadeCopyCodeblocksRunners[r]}),3e3)}},m=d.prototype,h="_handleClick",f=[r.bind],g=Object.getOwnPropertyDescriptor(d.prototype,"_handleClick"),b=d.prototype,y={},Object.keys(g).forEach((function(e){y[e]=g[e]})),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=f.slice().reverse().reduce((function(e,t){return t(m,h,e)||e}),y),b&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(b):void 0,y.initializer=void 0),void 0===y.initializer&&(Object.defineProperty(m,h,y),y=null),d)
var m,h,f,g,b,y
e.default=p})),define("discourse/lib/color-scheme-picker",["exports","discourse/lib/cookie","I18n","discourse/models/session","discourse/lib/ajax","discourse-common/lib/later"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.extendColorSchemeCookies=function(){for(const e of[s,l]){const i=(0,t.default)(e)
i&&(0,t.default)(e,i,{path:"/",expires:a})}},e.listColorSchemes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.get("user_color_schemes")
if(!n||!Array.isArray(n))return null
let r=[]
t.darkOnly||(n=n.sort(((e,t)=>Number(e.is_dark)-Number(t.is_dark))))
if(n.forEach((e=>{(t.darkOnly&&e.is_dark||!t.darkOnly)&&r.push({name:e.name,id:e.id})})),t.darkOnly){const t=e.get("default_dark_color_scheme")
if(t){n.findBy("id",t.id)||r.unshift({id:t.id,name:`${t.name} ${i.default.t("user.color_schemes.default_dark_scheme")}`})}r.unshift({id:-1,name:i.default.t("user.color_schemes.disable_dark_scheme")})}return 0===r.length?null:r},e.loadColorSchemeStylesheet=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
const s=t?`/${t}`:""
return(0,r.ajax)(`/color-scheme-stylesheet/${e}${s}.json`).then((e=>{if(e&&e.new_href){const t=i?"cs-preview-dark":"cs-preview-light",r=document.querySelector(`link#${t}`)
if(r)r.href=e.new_href
else{let n=document.createElement("link")
n.href=e.new_href,n.media=i?"(prefers-color-scheme: dark)":"(prefers-color-scheme: light)",n.rel="stylesheet",n.id=t,document.body.appendChild(n)}i||(0,o.default)((()=>{const e=getComputedStyle(document.body).getPropertyValue("--scheme-type")
n.default.currentProp("defaultColorSchemeIsDark","dark"===e.trim())}),500)}}))},e.updateColorSchemeCookie=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=i.dark?l:s
e?(0,t.default)(n,e,{path:"/",expires:a}):(0,t.removeCookie)(n,{path:"/"})}
const s="color_scheme_id",l="dark_scheme_id",a=365})),define("discourse/lib/columns",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
this.container=e,this.options={columns:3,minCount:2,...t},this.items=this._prepareItems(),this.items.length>=this.options.minCount?this.render():e.dataset.disabled=!0}count(){return 4===this.items.length||2===this.items.length?2:this.options.columns}render(){if(this.container.dataset.columns)return
this.container.dataset.columns=this.count()
const e=this._distributeEvenly()
for(;this.container.firstChild;)this.container.removeChild(this.container.firstChild)
return this.container.append(...e),this}_prepareColumns(e){const t=[]
return[...Array(e)].forEach((()=>{const e=document.createElement("div")
e.classList.add("d-image-grid-column"),t.push(e)})),t}_prepareItems(){let e=[]
return Array.from(this.container.children).forEach((t=>{"P"===t.nodeName&&t.children.length>0?Array.from(t.children).forEach((t=>{e.push(this._wrapDirectImage(t))})):e.push(this._wrapDirectImage(t))})),e.filter((e=>!["BR","P"].includes(e.nodeName)))}_wrapDirectImage(e){if("IMG"!==e.nodeName)return e
const t=document.createElement("span")
return t.classList.add("image-wrapper"),t.append(e),t}_distributeEvenly(){const e=this.count(),t=this._prepareColumns(e),i=[]
for(let n=0;n<e;n++)i[n]=0
return this.items.forEach((n=>{let r=0
for(let t=1;t<e;++t)i[t]<i[r]&&(r=t)
const o=n.querySelector("img")||n,s="IMG"===o.nodeName?o.height/o.width:1
i[r]+=s,t[r].append(n)})),t}}})),define("discourse/lib/computed",["exports","I18n","@ember/object","discourse-common/lib/get-url","@ember/template"],(function(e,t,i,n,r){function o(e,t){let i=t
if(!Array.isArray(i)||arguments.length>2){i=new Array(arguments.length-1)
for(let e=1,t=arguments.length;e<t;e++)i[e-1]=arguments[e]}let n=0
return e.replace(/%@([0-9]+)?/g,(function(e,t){return t=t?parseInt(t,10)-1:n++,"string"==typeof(e=i[t])?e:null===e?"(null)":void 0===e?"":""+e}))}Object.defineProperty(e,"__esModule",{value:!0}),e.endWith=function(){const e=Array.prototype.slice.call(arguments,0),t=e.pop()
return(0,i.computed)(...e,(function(){return e.map((e=>this.get(e))).every((e=>{const i=e.length-t.length,n=e.lastIndexOf(t)
return-1!==n&&n===i}))}))},e.fmt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
const r=t.pop()
return(0,i.computed)(...t,(function(){return o(r,...t.map((e=>this.get(e))))}))},e.htmlSafe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return(0,i.computed)(...t,{get(){const e=t.pop()
return(0,r.htmlSafe)(this.get(e))}})},e.i18n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r]
const s=n.pop()
return(0,i.computed)(...n,(function(){return t.default.t(o(s,...n.map((e=>this.get(e)))))}))},e.propertyEqual=function(e,t){return(0,i.computed)(e,t,(function(){return this.get(e)===this.get(t)}))},e.propertyGreaterThan=function(e,t){return(0,i.computed)(e,t,(function(){return this.get(e)>this.get(t)}))},e.propertyLessThan=function(e,t){return(0,i.computed)(e,t,(function(){return this.get(e)<this.get(t)}))},e.propertyNotEqual=function(e,t){return(0,i.computed)(e,t,(function(){return this.get(e)!==this.get(t)}))},e.setting=function(e){return(0,i.computed)((function(){return this.siteSettings[e]}))},e.url=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]
const s=t.pop()
return(0,i.computed)(...t,(function(){return(0,n.default)(o(s,...t.map((e=>this.get(e)))))}))}})),define("discourse/lib/constants",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SIDEBAR_URL=e.SIDEBAR_SECTION=e.SEARCH_PRIORITIES=e.SEARCH_PHRASE_REGEXP=void 0
e.SEARCH_PRIORITIES={ignore:1,very_low:2,low:3,normal:0,high:4,very_high:5}
e.SEARCH_PHRASE_REGEXP='"([^"]+)"'
e.SIDEBAR_URL={max_icon_length:40,max_name_length:80,max_value_length:200}
e.SIDEBAR_SECTION={max_title_length:30}})),define("discourse/lib/cookie",["exports","discourse-common/lib/deprecated"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.removeCookie=o
const i=/\+/g
function n(e){e.startsWith('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"))
try{return e=decodeURIComponent(e.replace(i," "))}catch(t){}}function r(e,t,i){if(void 0!==t){if("number"==typeof(i=Object.assign({},i||{})).expires){let e=i.expires,t=i.expires=new Date
t.setTime(+t+864e5*e)}return document.cookie=[encodeURIComponent(e),"=",encodeURIComponent(String(t)),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}let r=e?void 0:{},o=document.cookie?document.cookie.split("; "):[]
for(let s=0,l=o.length;s<l;s++){let t=o[s].split("="),i=decodeURIComponent(t.shift()),l=t.join("=")
if(e&&e===i){r=n(l)
break}e||void 0===(l=n(l))||(r[i]=l)}return r}function o(e,t){return void 0!==r(e)&&(r(e,"",Object.assign({},t||{},{expires:-1})),!r(e))}if(window&&window.$){const e={since:"2.6.0",dropFrom:"2.7.0",id:"discourse.jquery-cookie"}
window.$.cookie=function(){return(0,t.default)("$.cookie is being removed from Discourse. Please import our cookie module and use that instead.",e),r(...arguments)},window.$.removeCookie=function(){return(0,t.default)("$.removeCookie is being removed from Discourse. Please import our cookie module and use that instead.",e),o(...arguments)}}var s=r
e.default=s})),define("discourse/lib/copy-text",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){let i=!1
try{document.queryCommandSupported("copy")&&(i=!0)}catch(o){}if(!i)return
let n=document.createRange()
n.selectNode(t)
const r=window.getSelection()
r.removeAllRanges(),r.addRange(n)
try{if(document.execCommand("copy"))return!0}catch(o){}return!1}})),define("discourse/lib/d-popover",["exports","tippy.js","discourse-common/lib/icon-library"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,e.hideOnEscapePlugin=void 0,e.hidePopover=function(e){const t=e.target._tippy
t?.state.isShown&&t.hide()},e.isPopoverShown=function(e){const t=e.target._tippy
return t?.state.isShown},e.showPopover=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const i=e.target._tippy??r(e.target,t)
i.state.isShown?i.hide():i.show()}
const n={name:"hideOnEscape",defaultValue:!0,fn(e){let{hide:t}=e
function i(e){27===e.keyCode&&t()}return{onShow(){document.addEventListener("keydown",i)},onHide(){document.removeEventListener("keydown",i)}}}}
function r(e,r){const o=Object.assign({arrow:(0,i.iconHTML)("tippy-rounded-arrow"),content:r.textContent||r.htmlContent,allowHTML:r?.htmlContent?.length,trigger:"mouseenter click",hideOnClick:!0,zIndex:1400,plugins:[n],touch:["hold",500]},r)
return delete o.htmlContent,(0,t.default)(e,o)}e.hideOnEscapePlugin=n})),define("discourse/lib/d-tooltip",["exports","tippy.js"],(function(e,t){function i(e,t){t.preventDefault(),t.stopPropagation()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n){return(0,t.default)(e,{interactive:!1,content:n,trigger:navigator.maxTouchPoints>1||"ontouchstart"in window?"click":"mouseenter",theme:"d-tooltip",arrow:!1,placement:"bottom-start",onTrigger:i,onUntrigger:i})}})),define("discourse/lib/debounce",["exports","@ember/runloop"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i){let n
const r=()=>{e.apply(this,n)}
return function(){n=arguments,(0,t.debounce)(null,r,i)}}})),define("discourse/lib/decimal-adjust",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,i){if(void 0===i||0==+i)return Math[e](t)
if(t=+t,i=+i,isNaN(t)||!("number"==typeof i&&i%1==0))return NaN
return t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-i:-i)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+i:i))}})),define("discourse/lib/desktop-notifications",["exports","discourse/lib/url","I18n","discourse/lib/key-value-store","rsvp","discourse/models/site","discourse/models/user","discourse/lib/utilities","discourse-common/lib/later"],(function(e,t,i,n,r,o,s,l,a){Object.defineProperty(e,"__esModule",{value:!0}),e.alertChannel=v,e.clearDesktopNotificationHandlers=function(){y=[]},e.confirmNotification=function(e){const t=new Notification(i.default.t("notifications.popup.confirm_title",{site_title:e.title}),{body:i.default.t("notifications.popup.confirm_body"),icon:e.site_logo_small_url||e.site_logo_url,tag:"confirm-subscription"}),n=()=>t.close()
t.addEventListener("click",n),(0,a.default)((()=>{t.close(),t.removeEventListener("click",n)}),1e4)},e.context=void 0,e.disable=function(){b.setItem("notifications-disabled","disabled")},e.init=function(e,t){if(c=!1,p=e.clientId,!s.default.current())return
try{b.getItem(h)}catch(i){return void console.info("Discourse desktop notifications are disabled - localStorage denied.")}if(!("Notification"in window))return void console.info("Discourse desktop notifications are disabled - not supported by browser")
try{if("granted"===Notification.permission)d=!0
else if("denied"===Notification.permission)return void(d=!1)}catch(i){console.warn("Unexpected error, Notification is defined on window but not a responding correctly "+i)}c=!0
try{(function(e){window.addEventListener("storage",(function(e){if(e.key!==`${g}${h}`)return!0
u=!1})),window.addEventListener("focus",(function(){u||(u=!0,b.setItem(h,p))})),document&&void 0!==document.hidden&&document.hidden?u=!1:(u=!0,b.setItem(h,p))
document&&document.addEventListener("scroll",_)
e.on("page:changed",_)})(t)}catch(i){console.error(i)}},e.onNotification=async function(e,n,s){if(!c)return
if(!u)return
if(!(m+f<Date.now()))return
if(s.isInDoNotDisturb())return
if(b.getItem("notifications-disabled"))return
const a=e.translated_title||i.default.t((_=e.notification_type,"notifications.popup."+o.default.current().get("notificationLookup")[_]),{site_title:n.title,topic:e.topic_title,username:(0,l.formatUsername)(e.username)}),p=e.excerpt,h=n.site_logo_small_url||n.site_logo_url,g="discourse-notification-"+n.title+"-"+e.topic_id
var _
await(!0===d?r.Promise.resolve():!1===d?r.Promise.reject():new r.Promise((function(e,t){Notification.requestPermission((function(i){"granted"===i?e():t()}))})))
const v=new Notification(a,{body:p,icon:h,tag:g})
v.onclick=()=>{t.default.routeTo(e.post_url),v.close()},y.forEach((t=>t(e,n,s)))},e.registerDesktopNotificationHandler=function(e){y.push(e)},e.resetIdle=_,e.unsubscribe=function(e,t){e.unsubscribe(v(t))}
let u=!1,c=!1,d=null,p="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",m=-1
const h="focus-tracker",f=1e4,g="discourse_desktop_notifications_"
e.context=g
const b=new n.default(g)
let y=[]
function _(){m=Date.now()}function v(e){return`/notification-alert/${e.get("id")}`}})),define("discourse/lib/dirty-keys",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e){this.name=e,this._keys={}}keyDirty(e,t){(t=t||{}).dirty=!0,this._keys[e]=t}forceAll(){this.keyDirty("*")}allDirty(){return!!this._keys["*"]}optionsFor(e){return this._keys[e]||{dirty:!1}}renderedKey(e){"*"===e?this._keys={}:delete this._keys[e]}}})),define("discourse/lib/discourse-location",["exports","@ember/object","discourse/lib/utilities","@ember/object/internals","discourse-common/lib/get-url"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let o=!1
const s=window.history&&"state"in window.history,l=[],a=t.default.extend({init(){this._super(...arguments),this.set("location",this.location||window.location),this.initState()},initState(){const e=this.history||window.history
e&&e.scrollRestoration&&(e.scrollRestoration="manual"),this.set("history",e)
let t=this.formatURL(this.getURL())
this.location&&this.location.hash&&(t+=this.location.hash),this.replaceState(t)},rootURL:"/",getURL(){let e=(0,r.withoutPrefix)(this.location.pathname)
return e+=this.location.search||"",e=e.replace(/\/\//g,"/"),e},setURL(e){const t=this.getState()
if(e=this.formatURL(e),t&&t.path!==e){const n=[e,t.path]
n.includes("/")&&n.includes(`/${(0,i.defaultHomepage)()}`)||this.pushState(e)}},replaceURL(e){const t=this.getState()
e=this.formatURL(e),t&&t.path===e||this.replaceState(e)},getState(){return s?this.history.state:this._historyState},pushState(e){const t={path:e}
s?this.history.pushState(t,null,e):this._historyState=t,this._previousURL=this.getURL()},replaceState(e){const t={path:e}
s?this.history.replaceState(t,null,e):this._historyState=t,this._previousURL=this.getURL()},onUpdateURL(e){const t=(0,n.guidFor)(this)
$(window).on(`popstate.ember-location-${t}`,(()=>{const t=this.getURL();(o||(o=!0,t!==this._previousURL))&&(l.forEach((e=>e(t))),e(t))}))},formatURL(e){let t=this.rootURL
return""!==e&&(t=t.replace(/\/$/,""),t.length>0&&e.startsWith(t+"/")&&(t="")),t+e},willDestroy(){this._super(...arguments)
const e=(0,n.guidFor)(this)
$(window).off(`popstate.ember-location-${e}`)}})
var u=a
e.default=u})),define("discourse/lib/do-not-disturb",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class t{static isEternal(e){return moment.utc(e).isSame(t.forever,"day")}}var i,n,r
e.default=t,i=t,r="3000-01-01T00:00:00.000Z",(n=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(n="forever"))in i?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r})),define("discourse/lib/download-calendar",["exports","discourse/models/user","discourse/lib/show-modal","discourse-common/lib/get-url"],(function(e,t,i,n){function r(e,t){const i=new File([l(e,t)],{type:"text/plain"}),n=document.createElement("a")
document.body.appendChild(n),n.style="display: none",n.href=window.URL.createObjectURL(i),n.download=`${e.toLowerCase().replace(/[^\w]/g,"-")}.ics`,n.click(),setTimeout((()=>window.URL.revokeObjectURL(i)),2e4)}function o(e,t){t.forEach((t=>{const i=encodeURIComponent(e),r=(0,n.default)(`\n      https://www.google.com/calendar/event?action=TEMPLATE&text=${i}&dates=${a(t.startsAt)}/${a(t.endsAt)}\n    `).trim()
window.open(r,"_blank","noopener","noreferrer")}))}function s(e){return e.map((e=>({startsAt:e.startsAt,endsAt:e.endsAt?e.endsAt:moment.utc(e.startsAt).add(1,"hours").format()})))}function l(e,t){let i="BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//Discourse//EN\n"
return t.forEach((t=>{const n=moment(t.startsAt),r=moment(t.endsAt)
i=i.concat(`BEGIN:VEVENT\nUID:${n.utc().format("x")}_${r.format("x")}\nDTSTAMP:${moment().utc().format("YMMDDTHHmmss")}Z\nDTSTART:${n.utc().format("YMMDDTHHmmss")}Z\nDTEND:${r.utc().format("YMMDDTHHmmss")}Z\nSUMMARY:${e}\nEND:VEVENT\n`)})),i=i.concat("END:VCALENDAR"),i}function a(e){return moment(e).toISOString().replace(/-|:|\.\d\d\d/g,"")}Object.defineProperty(e,"__esModule",{value:!0}),e.downloadCalendar=function(e,n){const l=t.default.current(),a=s(n)
switch(e=e.trim(),l.user_option.default_calendar){case"none_selected":(function(e,t){(0,i.default)("download-calendar",{model:{title:e,dates:t}})})(e,a)
break
case"ics":r(e,a)
break
case"google":o(e,a)}},e.downloadGoogle=o,e.downloadIcs=r,e.formatDates=s,e.generateIcsData=l})),define("discourse/lib/email-provider-default-settings",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i){if("gmail"===(e=e.toLowerCase(),i=i.toLowerCase(),e))return t[i]}
const t={imap:{imap_server:"imap.gmail.com",imap_port:"993",imap_ssl:!0},smtp:{smtp_server:"smtp.gmail.com",smtp_port:"587",smtp_ssl:!0}}})),define("discourse/lib/ember-action-modifier",["exports","ember-modifier"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.actionModifier=void 0,e.isSimpleClick=n
const i=(0,t.modifier)(((e,t,i)=>{let[s,l,...a]=t,{on:u,bubbles:c,preventDefault:d,allowedKeys:p}=i
const m=e=>{let t
if("string"==typeof l?t=s.actions?.[l]??s[l]:"function"==typeof l&&(t=l),void 0===t)throw new Error("Unexpected callback for `action` modifier. Please provide either a function or the name of a method on the current context.")
return!function(e,t){if(null==t){if(o.test(e.type))return n(e)
t=""}if(t.indexOf("any")>=0)return!0
for(let i=0;i<r.length;i++)if(e[r[i]+"Key"]&&-1===t.indexOf(r[i]))return!1
return!0}(e,p)||(!1!==d&&e.preventDefault(),!1!==c||e.stopPropagation(),a.length>0?t.call(s,...a):t.call(s,e))},h=u??"click"
return e.addEventListener(h,m),()=>{e.removeEventListener(h,m)}}),{eager:!1})
function n(e){if(!(e instanceof MouseEvent))return!1
let t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,i=e.which>1
return!t&&!i}e.actionModifier=i
const r=["alt","shift","meta","ctrl"],o=/^click|mouse|touch/})),define("discourse/lib/ember-events",["exports","@ember/component","@ember/object","discourse/lib/ember-action-modifier","ember"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeEmberEventHandling=function(e){r.default.EventDispatcher.reopen({events:{}}),function(e){const n={...o}
if(e.customEvents)for(const[t,i]of Object.entries(e.customEvents))n[t]=i
const r={}
for(const[t,i]of Object.entries(n))r[i]=t
i.default.reopen.call(t.default,{trigger(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r]
return e!==l?e.toLowerCase()in n?void 0:this._super.call(this,e,...i):this.element?this._super.call(this,...i):void 0},didInsertElement(){this._super(...arguments),function(e,t){let i
const{element:n}=e
for(const r of Object.keys(t))if(e.has(r)){const o=t[r]
void 0===i&&(i=s.get(e),void 0===i&&(i=[],s.set(e,i)))
const a=t=>{const i=e.trigger.call(e,l,r,t)
return!1===i&&(t.preventDefault(),t.stopPropagation()),i}
n.addEventListener(o,a),i.push({event:o,listener:a})}}(this,r)},willDestroyElement(){(function(e){const t=s.get(e)
if(t?.length>0){const{element:i}=e
if(i)for(const{event:e,listener:n}of t)i.removeEventListener(e,n)
s.delete(e)}})(this),this._super(...arguments)}})}(e),e.instanceInitializer({name:"rewire-action-modifier",initialize:e=>function(e){const t=e.lookup("renderer:-dom"),i=t._runtimeResolver.lookupModifier
t._runtimeResolver.lookupModifier=(e,t)=>"action"===e?n.actionModifier:i(e,t)}(e)})}
const o={touchstart:"touchStart",touchmove:"touchMove",touchend:"touchEnd",touchcancel:"touchCancel",keydown:"keyDown",keyup:"keyUp",keypress:"keyPress",mousedown:"mouseDown",mouseup:"mouseUp",contextmenu:"contextMenu",click:"click",dblclick:"doubleClick",focusin:"focusIn",focusout:"focusOut",submit:"submit",input:"input",change:"change",dragstart:"dragStart",drag:"drag",dragenter:"dragEnter",dragleave:"dragLeave",dragover:"dragOver",drop:"drop",dragend:"dragEnd"},s=new WeakMap,l=Symbol("INTERNAL")})),define("discourse/lib/export-csv",["exports","I18n","discourse/lib/ajax","discourse/lib/ajax-error","discourse-common/lib/get-owner"],(function(e,t,i,n,r){function o(e,t,n){return(0,i.ajax)("/export_csv/export_entity.json",{type:"POST",data:{entity:t,args:n}})}Object.defineProperty(e,"__esModule",{value:!0}),e.exportEntity=function(e,t){return o("admin",e,t)},e.exportUserArchive=function(){const e=(0,r.getOwner)(this).lookup("service:dialog")
return o("user","user_archive").then((function(){e.alert(t.default.t("user.download_archive.success"))})).catch(n.popupAjaxError)}})),define("discourse/lib/export-result",["exports","I18n","discourse-common/lib/get-owner"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.outputExportResult=function(e){const n=(0,i.getOwner)(this).lookup("service:dialog")
e.success?n.alert(t.default.t("admin.export_csv.success")):n.alert(t.default.t("admin.export_csv.failed"))}})),define("discourse/lib/eyeline",["exports","@ember/object","@ember/object/evented","discourse-common/config/environment"],(function(e,t,i,n){let r,o
function s(e){e?(r=e.skipUpdate,o=e.rootElement):(r=(0,n.isTesting)(),o=null)}Object.defineProperty(e,"__esModule",{value:!0}),e.configureEyeline=s,e.default=void 0,s()
var l=t.default.extend(i.default,{update(){if(r)return
const e=o?$(o).scrollTop():$(window).scrollTop(),t=o?$(o).height():$(window).height(),i=e+t,n=$(this.selector),s=o?n.last().position():n.last().offset(),l=s&&s.top<=i&&s.top>=e
return n.each(((t,r)=>{const s=$(r),a=o?s.position().top:s.offset().top,u=a+s.height()
let c=!1
return!s.is(":visible")||(a<=i&&a>=e&&(c=!0),a<=e&&u>=i&&(c=!0),l&&u>=e&&(c=!0),!c||!!l&&(t===n.length-1?this.trigger("sawBottom",{detail:s}):void 0))}))}})
e.default=l})),define("discourse/lib/flag-targets/flag",["exports","discourse/lib/ajax-error"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{targetsTopic(){return!1}editable(){return!0}create(e,i){let n=this.postActionFor(e)
e.appEvents.trigger(this.flagCreatedEvent,e.model,n,i),e.send("hideModal"),n.act(e.model,i).then((()=>{e.isDestroying||e.isDestroyed||(i.skipClose||e.send("closeModal"),i.message&&e.set("message",""),e.appEvents.trigger("post-stream:refresh",{id:e.get("model.id")}))})).catch((i=>{e.isDestroying||e.isDestroyed||e.send("closeModal"),(0,t.popupAjaxError)(i)}))}}})),define("discourse/lib/flag-targets/post-flag",["exports","discourse/lib/flag-targets/flag"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{title(){return"flagging.title"}customSubmitLabel(){return"flagging.notify_action"}submitLabel(){return"flagging.action"}flagCreatedEvent(){return"post:flag-created"}flagsAvailable(e,t,i){let n=i.flagsAvailable
const r=n.indexOf(n.filterBy("name_key","notify_user")[0])
if(-1!==r){const e=n[r]
n.splice(r,1),n.splice(0,0,e)}return n}postActionFor(e){return e.get("model.actions_summary").findBy("id",e.get("selected.id"))}}e.default=i})),define("discourse/lib/flag-targets/topic-flag",["exports","discourse/models/action-summary","@ember/object","discourse/lib/flag-targets/flag"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends n.default{title(){return"flagging_topic.title"}targetsTopic(){return!0}customSubmitLabel(){return"flagging_topic.notify_action"}submitLabel(){return"flagging_topic.action"}flagCreatedEvent(){return"topic:flag-created"}flagsAvailable(e,n,r){let o=i.default.create()
return r.actions_summary.forEach((e=>{e.flagTopic=r,e.actionType=n.topicFlagTypeById(e.id),o.set(e.actionType.name_key,t.default.create(e))})),e.set("topicActionByName",o),n.topic_flag_types.filter((e=>r.actions_summary.some((t=>t.id===e.id&&t.can_act))))}postActionFor(e){return e.get(`topicActionByName.${e.selected.name_key}`)}}e.default=r})),define("discourse/lib/form-template-validation",["exports","I18n"],(function(e,t){function i(e,i,n,r){r.includes(i.type)?r.forEach((r=>{i.type===r&&(e.textContent=t.default.t(`${n}.${r}`))})):e.textContent=t.default.t(`${n}.default`)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const n=new FormData(e)
if(function(e){Array.from(e.elements).forEach((e=>{e.setAttribute("aria-invalid",!1)
const n=document.createElement("div")
n.classList.add("form-template-field__error","popup-tip")
const r=e.id+"-error"
e.addEventListener("invalid",(()=>{e.setAttribute("aria-invalid",!0),n.classList.add("bad"),n.setAttribute("id",r),e.setAttribute("aria-describedby",r),e.nextElementSibling||e.insertAdjacentElement("afterend",n),function(e,n){if(e.validity.valueMissing){i(n,e,"form_templates.errors.valueMissing",["select-one","select-multiple","checkbox","text","number"])}else if(e.validity.typeMismatch){i(n,e,"form_templates.errors.typeMismatch",["color","date","email","number","password","tel","text","url"])}else e.validity.tooShort?n.textContent=t.default.t("form_templates.errors.tooShort",{minLength:e.minLength}):e.validity.tooLong?n.textContent=t.default.t("form_templates.errors.tooLong",{maxLength:e.maxLength}):e.validity.rangeOverflow?n.textContent=t.default.t("form_templates.errors.rangeOverflow",{max:e.max}):e.validity.rangeUnderflow?n.textContent=t.default.t("form_templates.errors.rangeUnderflow",{min:e.min}):e.validity.patternMismatch?n.textContent=t.default.t("form_templates.errors.patternMismatch"):e.validity.badInput&&(n.textContent=t.default.t("form_templates.errors.badInput"))}(e,n)})),e.addEventListener("input",(()=>{e.checkValidity()&&(e.setAttribute("aria-invalid",!1),n.classList.remove("bad"),n.textContent="")})),e.addEventListener("blur",(()=>{e.checkValidity()}))}))}(e),!e.checkValidity())return!1
const r=[]
for(let[t,i]of n.entries())r.push({[t]:i})
const o=[],s=new Set
for(const t of r){const e=Object.keys(t)[0]
s.has(e)?o[o.length-1][e]+="\n"+t[e]:(o.push(t),s.add(e))}return o.map((e=>{const t=Object.keys(e)[0],i=e[t]
if(i)return`### ${t}\n${i}`})).join("\n\n")}})),define("discourse/lib/formatter",["exports","discourse-common/lib/helpers","discourse-common/lib/deprecated","I18n","jquery"],(function(e,t,i,n,r){function o(e){return moment(e).format(n.default.t("dates.medium.date_year"))}function s(e){return moment(e).format(n.default.t("dates.tiny.date_month"))}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a
return e.getFullYear()===(new Date).getFullYear()?s(e):t(e)}function a(e){return moment(e).format(n.default.t("dates.tiny.date_year"))}function u(e){if(e)return moment(e).format(n.default.t("dates.long_with_year"))}function c(e){return n.default.t("dates.wrap_ago",{date:e})}function d(e,t){if("number"!=typeof e)return"&mdash;"
const i=Math.round(e/60),r=i<1?1:i,o=function(e,i){const r=t&&t.format||"tiny",o=n.default.t("dates."+r+"."+e,i)
return t&&t.addAgo?c(o):o}
let s
switch(!0){case e<=59:s=o("less_than_x_minutes",{count:1})
break
case r>=0&&r<=44:s=o("x_minutes",{count:r})
break
case r>=45&&r<=89:s=o("about_x_hours",{count:1})
break
case r>=90&&r<=1409:s=o("about_x_hours",{count:Math.round(r/60)})
break
case r>=1410&&r<=2519:s=o("x_days",{count:1})
break
case r>=2520&&r<=129599:s=o("x_days",{count:Math.round(r/1440)})
break
case r>=129600&&r<=525599:s=o("x_months",{count:Math.round(r/43200)})
break
default:const t=r/525600,i=t%1
s=i<.25?o("about_x_years",{count:Math.floor(t)}):i<.75?o("over_x_years",{count:Math.floor(t)}):o("almost_x_years",{count:Math.floor(t)+1})}return s}function p(e,t){let i
const r=Math.round(e/60),o=function(e,i){return n.default.t("dates.medium"+(t?"_with_ago":"")+"."+e,i)}
switch(!0){case r>=1&&r<=55:i=o("x_minutes",{count:r})
break
case r>=56&&r<=89:i=o("x_hours",{count:1})
break
case r>=90&&r<=1409:i=o("x_hours",{count:Math.round(r/60)})
break
case r>=1410&&r<=2519:i=o("x_days",{count:1})
break
case r>=2520&&r<=129599:i=o("x_days",{count:Math.round((r-720)/1440)})
break
case r>=129600&&r<=525599:i=o("x_months",{count:Math.round(r/43200)})
break
default:i=o("x_years",{count:Math.round(r/525600)})}return i||"&mdash;"}function m(e,t){const i=!1!==t.wrapInSpan,r=t.leaveAgo,s=Math.round((new Date-e)/1e3)
if(!e)return"&mdash;"
const a=u(e)
let c=""
var d
return s<60?c=n.default.t("now"):s>432e3?(c=l(e,o),t.wrapOn&&(d=c,c=n.default.t("dates.wrap_on",{date:d}))):c=p(s,r),i?"<span class='date' title='"+a+"'>"+c+"</span>":c}function h(e,i){const r=(i=i||{}).format||"tiny"
return"tiny"===r?function(e,i){let r=Math.round((new Date-e)/1e3)
r<0&&(r=Math.round((e-new Date)/1e3))
const o=Math.round(r/60),a=o<1?1:o
let u
const d=function(e,t){const r=n.default.t("dates.tiny."+e,t)
return i&&i.addAgo?c(r):r}
let p=(0,t.helperContext)().siteSettings
switch(!0){case a>=0&&a<=44:u=d("x_minutes",{count:a})
break
case a>=45&&a<=89:u=d("about_x_hours",{count:1})
break
case a>=90&&a<=1409:u=d("about_x_hours",{count:Math.round(a/60)})
break
case 0===p.relative_date_duration&&a<=525599:u=s(e)
break
case a>=1410&&a<=2519:u=d("x_days",{count:1})
break
case a>=2520&&a<=1440*(p.relative_date_duration||14):u=d("x_days",{count:Math.round(a/1440)})
break
default:u=(i.defaultFormat||l)(e)}return u}(e,i):"medium"===r?m(e,i):"medium-with-ago"===r?m(e,Object.assign(i,{format:"medium",leaveAgo:!0})):"medium-with-ago-and-on"===r?m(e,Object.assign(i,{format:"medium",leaveAgo:!0,wrapOn:!0})):"UNKNOWN FORMAT"}function f(e){return"string"==typeof e?JSON.parse(e):e}Object.defineProperty(e,"__esModule",{value:!0}),e.autoUpdatingRelativeAge=function(e,t){if(!e)return""
if(+e==+new Date(0))return""
let i=(t=t||{}).format||"tiny",n=""
"medium"===i&&(n=" date",t.leaveAgo&&(i="medium-with-ago"),t.wrapInSpan=!1)
const r=h(e,t)
"tiny"===i&&(o=r,o.match(/'[\d]{2}$/))&&(n+=" with-year")
var o
t.title&&(n+="' title='"+u(e))
let s=""
t.prefix&&(s=t.prefix+" ")
return"<span class='relative-date"+n+"' data-time='"+e.getTime()+"' data-format='"+i+"'>"+s+r+"</span>"},e.duration=d,e.durationTiny=function(e,t){return d(e,Object.assign({format:"tiny"},t))},e.ensureJSON=f,e.longDate=u,e.longDateNoYear=function(e){if(!e)return
return(new Date).getFullYear()!==e.getFullYear()?moment(e).format(n.default.t("dates.long_date_with_year")):moment(e).format(n.default.t("dates.long_date_without_year"))},e.number=function(e){let t
e=Math.round(parseFloat(e)),isNaN(e)&&(e=0)
if(e>999999)return t=n.default.toNumber(e/1e6,{precision:1}),n.default.t("number.short.millions",{number:t})
if(e>99999)return t=n.default.toNumber(Math.floor(e/1e3),{precision:0}),n.default.t("number.short.thousands",{number:t})
if(e>999)return t=n.default.toNumber(e/1e3,{precision:1}),n.default.t("number.short.thousands",{number:t})
return e.toString()},e.plainJSON=function(e){let t=f(e),i=""
return Object.keys(t).forEach((e=>{i+=`${e}: ${t[e]}\n`})),i},e.prettyJSON=function(e){return JSON.stringify(f(e),null,2)},e.relativeAge=h,e.relativeAgeMediumSpan=p,e.shortDate=o,e.smartShortDate=l,e.tinyDateYear=a,e.toTitleCase=function(e){return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}))},e.until=function(e,t,i){const r=moment.tz(e,t)
let o
if(moment.tz(t).isSame(r,"day")){const e=moment.localeData(i)
o=r.format(e.longDateFormat("LT"))}else o=r.format(n.default.t("dates.long_no_year_no_time"))
return`${n.default.t("until")} ${o}`},e.updateRelativeAge=function(e){e instanceof r.default&&(e=e.toArray(),(0,i.default)("updateRelativeAge now expects a DOM NodeList",{since:"2.8.0.beta7",dropFrom:"2.9.0.beta1",id:"discourse.formatter.update-relative-age-node-list"}))
NodeList.prototype.isPrototypeOf(e)||(e=(0,t.makeArray)(e))
e.forEach((e=>{e.innerHTML=h(new Date(parseInt(e.dataset.time,10)),{format:e.dataset.format,wrapInSpan:!1})}))}})),define("discourse/lib/hash",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hashString=function(e){let t=0
for(let i=0;i<e.length;i++)t=(t<<5)-t+e.charCodeAt(i),t|=0
return t}})),define("discourse/lib/hashtag-autocomplete",["exports","discourse-common/lib/raw-templates","discourse-common/lib/dom-from-string","discourse-common/lib/later","discourse-common/config/environment","@ember/runloop","discourse/lib/autocomplete","discourse/lib/ajax","discourse-common/lib/debounce","discourse/lib/utilities","discourse/lib/category-tag-search","discourse/lib/text","@ember/template"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){Object.defineProperty(e,"__esModule",{value:!0}),e.cleanUpHashtagTypeClasses=function(){m={}},e.decorateHashtags=function(e,t){e.querySelectorAll(".hashtag-cooked").forEach((e=>{const n=e.querySelector(".hashtag-icon-placeholder"),r=e.dataset.type,o=h()[r]
if(n&&o){const s=o.generateIconHTML({icon:t.hashtag_icons[r],id:e.dataset.id}).trim()
n.replaceWith((0,i.default)(s)[0])}e.setAttribute("aria-label",`${e.innerText.trim()}`)}))},e.fetchUnseenHashtagsInContext=function(e,t){return(0,l.ajax)("/hashtags",{data:{slugs:t,order:e}}).then((e=>{Object.keys(e).forEach((t=>{b[t]=b[t]||{},e[t].forEach((e=>{b[t][e.ref]=b[t][e.ref]||e}))})),t.forEach(g.add,g)}))},e.getHashtagTypeClasses=h,e.hashtagTriggerRule=f,e.linkSeenHashtagsInContext=function(e,t){const i=[...t?.querySelectorAll("span.hashtag-raw")||[]]
if(0===i.length)return[]
const n=[...i.map((e=>e.innerText.replace("#","")))]
return i.forEach(((t,i)=>{(function(e,t,i){t.forEach((t=>{const n=b[t]?.[e]
if(n){const e=document.createElement("a")
e.classList.add("hashtag-cooked"),e.href=n.relative_url,e.dataset.type=t,e.dataset.id=n.id,e.dataset.slug=n.slug
const r=(new h)[t]
e.innerHTML=`${r.generateIconHTML(n)}<span>${(0,d.emojiUnescape)(n.text)}</span>`,i.replaceWith(e)}}))})(n[i],e,t)})),n.map((e=>e.toLowerCase())).uniq().filter((e=>!g.has(e)))},e.registerHashtagType=function(e,t){m[e]=t},e.setupHashtagAutocomplete=function(e,i,l){let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}
l.enable_experimental_hashtag_autocomplete?function(e,i,l,u){i.autocomplete({template:(0,t.findRawTemplate)("hashtag-autocomplete"),key:"#",afterComplete:u.afterComplete,treatAsTextarea:u.treatAsTextarea,scrollElementSelector:".hashtag-autocomplete__fadeout",autoSelectFirstSuggestion:!0,transformComplete:e=>e.ref,dataSource:t=>t.match(/\s/)?null:function(e,t,i){_&&(_.abort(),_=null)
new Date-y>3e4&&(v={})
const l=v[e]
if(l)return l
return new Promise((l=>{let u=(0,r.isTesting)()?null:(0,n.default)((()=>{l(s.CANCELLED_STATUS)}),5e3)
if(!t.enable_experimental_hashtag_autocomplete&&""===e)return l(s.CANCELLED_STATUS);((e,t,i)=>{(0,a.default)(this,w,e,t,i,r.INPUT_DELAY)})(e,i,(t=>{(0,o.cancel)(u),l(function(e,t){return v[e]=t,y=new Date,t}(e,t))}))}))}(t,l,e),triggerRule:(e,t)=>f(e)})}(e,i,l,u):function(e,i,n){e.autocomplete({template:(0,t.findRawTemplate)("category-tag-autocomplete"),key:"#",afterComplete:n,transformComplete:e=>e.text,dataSource:e=>e.match(/\s/)?null:(0,c.search)(e,i),triggerRule:(e,t)=>f(e)})}(i,l,u.afterComplete)}
let m={}
function h(){return m}function f(e){return!(0,u.inCodeBlock)(e.value,(0,u.caretPosition)(e))}const g=new Set
let b={}
let y,_,v={}
function w(e,t,i){return _=(0,l.ajax)("/hashtags/search.json",{data:{term:e,order:t}}),_.then((e=>{e.results?.forEach((e=>{e.text=(0,p.htmlSafe)((0,d.emojiUnescape)((0,u.escapeExpression)(e.text)))
const t=h()[e.type]
e.icon=t.generateIconHTML({icon:e.icon,id:e.id})})),i(e.results||s.CANCELLED_STATUS)})).finally((()=>{_=null})),_}})),define("discourse/lib/hashtag-types/base",["exports","@ember/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e){(0,t.setOwner)(this,e)}get type(){throw"not implemented"}get preloadedData(){throw"not implemented"}generateColorCssClasses(){throw"not implemented"}generateIconHTML(){throw"not implemented"}}}))
define("discourse/lib/hashtag-types/category",["exports","discourse/lib/hashtag-types/base","@ember/service"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let o=(n=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="site",n=this,(i=r)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}get type(){return"category"}get preloadedData(){return this.site.categories||[]}generateColorCssClasses(e){const t=[],i=[`var(--category-${e.id}-color) 50%`]
return e.parentCategory?i.push(`var(--category-${e.parentCategory.id}-color) 50%`):i.push(`var(--category-${e.id}-color) 50%`),t.push(`.hashtag-color--category-${e.id} {\n  background: linear-gradient(90deg, ${i.join(", ")});\n}`),t}generateIconHTML(e){const t=parseInt(e.id,10)
return`<span class="hashtag-category-badge ${this.preloadedData.mapBy("id").includes(t)?`hashtag-color--${this.type}-${e.id}`:"hashtag-missing"}"></span>`}},s=n.prototype,l="site",a=[i.inject],u={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r=d,n)
var s,l,a,u,c,d
e.default=o})),define("discourse/lib/hashtag-types/tag",["exports","discourse/lib/hashtag-types/base","discourse-common/lib/icon-library"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{get type(){return"tag"}get preloadedData(){return[]}generateColorCssClasses(){return[]}generateIconHTML(e){return(0,i.iconHTML)(e.icon,{class:`hashtag-color--${this.type}-${e.id}`})}}e.default=n})),define("discourse/lib/highlight-html",["exports","discourse-common/lib/helpers"],(function(e,t){function i(e,t,n,r){if(![Node.ELEMENT_NODE,Node.TEXT_NODE].includes(e.nodeType)||["SCRIPT","STYLE"].includes(e.tagName)||e.tagName===n&&e.className===r)return 0
if(e.nodeType===Node.ELEMENT_NODE&&e.childNodes){for(let o=0;o<e.childNodes.length;o++)o+=i(e.childNodes[o],t,n,r)
return 0}if(e.nodeType===Node.TEXT_NODE){const i=e.data.match(t)
if(!i)return 0
const o=document.createElement(n)
o.className=r,o.innerText=i[0]
const s=e.splitText(i.index)
return s.splitText(i[0].length),s.parentNode.replaceChild(o,s),1}return 0}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={nodeName:"span",className:"highlighted",matchCase:!1}
if(o=Object.assign({},o,r),!(n=(0,t.makeArray)(n).filter(Boolean).map((e=>e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")))).length)return e
const s=`(${n.join(" ")})`
let l
o.matchCase||(l="i")
return i(e,new RegExp(s,l),o.nodeName.toUpperCase(),o.className),e},e.unhighlightHTML=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={nodeName:"span",className:"highlighted"}
t=Object.assign({},t,e),document.querySelectorAll(`${t.nodeName}.${t.className}`).forEach((e=>{const t=e.parentNode
t.replaceChild(e.firstChild,e),t.normalize()}))}})),define("discourse/lib/highlight-search",["exports","discourse/lib/constants","discourse/lib/highlight-html","@ember/utils"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CLASS_NAME=void 0,e.default=function(e,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
if(!(0,n.isEmpty)(o)){let n=o.match(new RegExp(`${t.SEARCH_PHRASE_REGEXP}|[^\\s]+`,"g")).filter((e=>"l"!==e)).map((e=>e.replace(/^"(.*)"$/,"$1")))
const l={}
s.defaultClassName||(l.className=r),(0,i.default)(e,n,l)}}
const r="search-highlight"
e.CLASS_NAME=r})),define("discourse/lib/highlight-syntax-merge-html-plugin",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t=function(){var e
function t(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(e){return e.nodeName.toLowerCase()}function n(e){const t=[]
return function e(n,r){for(let o=n.firstChild;o;o=o.nextSibling)3===o.nodeType?r+=o.nodeValue.length:1===o.nodeType&&(t.push({event:"start",offset:r,node:o}),r=e(o,r),i(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:o}))
return r}(e,0),t}return{"before:highlightElement":t=>{let{el:i}=t
e=n(i)},"after:highlightElement":r=>{let{el:o,result:s,text:l}=r
if(!e.length)return
const a=document.createElement("div")
a.innerHTML=s.value,s.value=function(e,n,r){let o=0,s=""
const l=[]
function a(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset<n[0].offset?e:n:"start"===n[0].event?e:n:e.length?e:n}function u(e){function n(e){return" "+e.nodeName+'="'+t(e.value)+'"'}s+="<"+i(e)+[].map.call(e.attributes,n).join("")+">"}function c(e){s+="</"+i(e)+">"}function d(e){("start"===e.event?u:c)(e.node)}for(;e.length||n.length;){let i=a()
if(s+=t(r.substring(o,i[0].offset)),o=i[0].offset,i===e){l.reverse().forEach(c)
do{d(i.splice(0,1)[0]),i=a()}while(i===e&&i.length&&i[0].offset===o)
l.reverse().forEach(u)}else"start"===i[0].event?l.push(i[0].node):l.pop(),d(i.splice(0,1)[0])}return s+t(r.substr(o))}(e,n(a),l),o.innerHTML=s.value}}}()
e.default=t})),define("discourse/lib/highlight-syntax",["exports","discourse/lib/load-script","discourse/lib/highlight-syntax-merge-html-plugin"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,s,l){if(!e)return
const a=s.autohighlight_all_code?"pre code":"pre code[class]",u=e.querySelectorAll(a)
if(!u.length)return
const c=l.highlightJsPath
if(!c)return
return(0,t.default)(c).then((()=>{o||(n.forEach((e=>{void 0===hljs.getLanguage(e.name)&&hljs.registerLanguage(e.name,e.fn)})),r.forEach((e=>{hljs.addPlugin(e)})),hljs.addPlugin(i.default),hljs.configure({ignoreUnescapedHTML:!0}),o=!0),u.forEach((e=>{e.innerHTML.length>3e4||(e.classList.remove("lang-auto"),hljs.highlightElement(e))}))}))},e.registerHighlightJSLanguage=function(e,t){n.push({name:e,fn:t})},e.registerHighlightJSPlugin=function(e){r.push(e)}
let n=[],r=[],o=!1})),define("discourse/lib/implicit-injections",["exports","@ember/application","@ember/object","@ember/controller","@ember/component","@ember/routing/route","discourse/models/rest","discourse/adapters/rest","@ember/service"],(function(e,t,i,n,r,o,s,l,a){Object.defineProperty(e,"__esModule",{value:!0}),e.disableImplicitInjections=function(e){e.prototype[u]=!0},e.registerDiscourseImplicitInjections=function(){if(p)return
const e={appEvents:"service:app-events",pmTopicTrackingState:"service:pm-topic-tracking-state",store:"service:store",site:"service:site",searchService:"service:search",session:"service:session",messageBus:"service:message-bus",siteSettings:"service:site-settings",topicTrackingState:"service:topic-tracking-state",keyValueStore:"service:key-value-store"}
d(n.default,{...e,capabilities:"service:capabilities",currentUser:"service:current-user"}),d(r.default,{capabilities:"service:capabilities",currentUser:"service:current-user",...e}),d(o.default,{...e,currentUser:"service:current-user"}),d(s.default,{...e}),d(l.default,{...e}),d(a.default,{session:"service:session",messageBus:"service:message-bus",siteSettings:"service:site-settings",topicTrackingState:"service:topic-tracking-state",keyValueStore:"service:key-value-store",currentUser:"service:current-user"}),p=!0}
const u=Symbol("DISABLE_IMPLICIT_INJECTIONS")
function c(e,n){let r=`__OVERRIDE_${n}`
return(0,i.computed)(n,{get(){if(this[r])return this[r]
if(this[u])return
let i=(0,t.getOwner)(this)||this.container
return i?i.lookup(e):void 0},set(e,t){return this[r]=t}})}function d(e,t){const n={}
for(const[i,r]of Object.entries(t))n[i]=c(r,i)
i.default.reopen.call(e,n)}let p=!1})),define("discourse/lib/intercept-click",["exports","discourse/lib/url"],(function(e,t){function i(e){return e.defaultPrevented||e.isDefaultPrevented&&e.isDefaultPrevented()||e.shiftKey||e.metaKey||e.ctrlKey||e.button&&0!==e.button||e.currentTarget&&"_blank"===e.currentTarget.target}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(i(e))return
const n=e.currentTarget,r=n.getAttribute("href"),o=n.getAttribute("target"),s=o&&"_self"!==o
if(!r||r.startsWith("#")||s||n.dataset.emberAction||n.dataset.autoRoute||n.dataset.shareUrl||n.classList.contains("widget-link")||n.classList.contains("raw-link")||n.classList.contains("mention")||!n.classList.contains("d-link")&&!n.dataset.userCard&&n.classList.contains("ember-view")||n.classList.contains("lightbox")||r.startsWith("mailto:")||r.match(/^http[s]?:\/\//i)&&!r.match(new RegExp("^https?:\\/\\/"+window.location.hostname,"i")))return
return e.preventDefault(),t.default.routeTo(r),!1},e.wantsNewWindow=i})),define("discourse/lib/is-element-in-viewport",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(!e)return
const t=e.getBoundingClientRect()
return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}})),define("discourse/lib/key-value-store",["exports","discourse-common/config/environment"],(function(e,t){function i(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n
try{n=localStorage,"true"===localStorage.disableLocalStorage?n=null:n.safeLocalStorage=!0}catch(o){n=null}class r{constructor(e){i(this,"context",null),this.context=(0,t.isTesting)()?`__test_${e}`:e}abandonLocal(){return this.removeKeys()}removeKeys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!0
if(!n)return
let t=n.length-1
for(;t>=0;){let i=n.key(t),r=n[i]
try{r=JSON.parse(r)}catch(o){}i.substring(0,this.context.length)===this.context&&e(i,r)&&n.removeItem(i),t--}return!0}remove(e){if(n)return n.removeItem(this.context+e)}set(e){if(!n)return!1
n[this.context+e.key]=e.value}setObject(e){this.set({key:e.key,value:JSON.stringify(e.value)})}get(e){return n?n[this.context+e]:null}getInt(e,t){if(t||(t=0),!n)return t
const i=parseInt(this.get(e),10)
return isFinite(i)?i:t}getObject(e){if(!n)return null
try{return JSON.parse(n[this.context+e])}catch(o){}}}e.default=r,r.prototype.getItem=r.prototype.get,r.prototype.removeItem=r.prototype.remove,r.prototype.setItem=function(e,t){this.set({key:e,value:t})}})),define("discourse/lib/keyboard-shortcuts",["exports","discourse-common/utils/decorators","discourse-common/lib/debounce","@ember/application","@ember/runloop","discourse-common/lib/later","discourse/lib/topic-list-tracker","discourse/models/composer","discourse/lib/url","discourse-common/utils/dom-utils","discourse-common/config/environment","discourse/lib/ajax","discourse/lib/offset-calculator","discourse-common/lib/helpers"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h
Object.defineProperty(e,"__esModule",{value:!0}),e.PLATFORM_KEY_MODIFIER=void 0,e.clearExtraKeyboardShortcutHelp=function(){e.extraKeyboardShortcutsHelp=f={}},e.extraKeyboardShortcutsHelp=e.default=void 0
let f={}
e.extraKeyboardShortcutsHelp=f
const g=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"
e.PLATFORM_KEY_MODIFIER=g
const b={"!":{postAction:"showFlags"},"#":{handler:"goToPost",anonymous:!0},"/":{handler:"toggleSearch",anonymous:!0},"ctrl+alt+f":{handler:"toggleSearch",anonymous:!0,global:!0},"=":{handler:"toggleHamburgerMenu",anonymous:!0},"?":{handler:"showHelpModal",anonymous:!0},".":{click:".alert.alert-info.clickable",anonymous:!0},b:{handler:"toggleBookmark"},c:{handler:"createTopic"},"shift+c":{handler:"focusComposer"},"ctrl+f":{handler:"showPageSearch",anonymous:!0},"command+f":{handler:"showPageSearch",anonymous:!0},"command+left":{handler:"webviewKeyboardBack",anonymous:!0},"command+[":{handler:"webviewKeyboardBack",anonymous:!0},"command+right":{handler:"webviewKeyboardForward",anonymous:!0},"command+]":{handler:"webviewKeyboardForward",anonymous:!0},"mod+p":{handler:"printTopic",anonymous:!0},d:{postAction:"deletePostWithConfirmation"},e:{handler:"editPost"},end:{handler:"goToLastPost",anonymous:!0},"command+down":{handler:"goToLastPost",anonymous:!0},f:{handler:"toggleBookmarkTopic"},"g h":{path:"/",anonymous:!0},"g l":{path:"/latest",anonymous:!0},"g n":{path:"/new"},"g u":{path:"/unread"},"g c":{path:"/categories",anonymous:!0},"g t":{path:"/top",anonymous:!0},"g b":{path:"/my/activity/bookmarks"},"g p":{path:"/my/activity"},"g m":{path:"/my/messages"},"g d":{path:"/my/activity/drafts"},"g s":{handler:"goToFirstSuggestedTopic",anonymous:!0},"g j":{handler:"goToNextTopic",anonymous:!0},"g k":{handler:"goToPreviousTopic",anonymous:!0},home:{handler:"goToFirstPost",anonymous:!0},"command+up":{handler:"goToFirstPost",anonymous:!0},j:{handler:"selectDown",anonymous:!0},k:{handler:"selectUp",anonymous:!0},l:{click:".topic-post.selected button.toggle-like"},"m m":{handler:"setTrackingToMuted"},"m r":{handler:"setTrackingToRegular"},"m t":{handler:"setTrackingToTracking"},"m w":{handler:"setTrackingToWatching"},"o,enter":{click:[".topic-list tr.selected a.title",".latest-topic-list .latest-topic-list-item.selected div.main-link a.title",".top-topic-list .latest-topic-list-item.selected div.main-link a.title",".latest .featured-topic.selected a.title",".search-results .fps-result.selected .search-link"].join(", "),anonymous:!0},tab:{handler:"switchFocusCategoriesPage",anonymous:!0},p:{handler:"showCurrentUser"},q:{handler:"quoteReply"},r:{postAction:"replyToPost"},s:{click:".topic-post.selected a.post-date",anonymous:!0},"shift+j":{handler:"nextSection",anonymous:!0},"shift+k":{handler:"prevSection",anonymous:!0},"shift+p":{handler:"pinUnpinTopic"},"shift+r":{handler:"replyToTopic"},"shift+s":{click:"#topic-footer-buttons button.share",anonymous:!0},"shift+l":{handler:"goToUnreadPost"},"shift+z shift+z":{handler:"logout"},"shift+f11":{handler:"fullscreenComposer",global:!0},"shift+u":{handler:"deferTopic"},"shift+a":{handler:"toggleAdminActions"},t:{postAction:"replyAsNewTopic"},u:{handler:"goBack",anonymous:!0},"x r":{click:"#dismiss-new-bottom,#dismiss-new-top"},"x t":{click:"#dismiss-topics-bottom,#dismiss-topics-top"}}
function y(e){e.preventDefault(),e.stopPropagation()}var _,v,w,k,x,P,O=(h={init(e,t){(0,n.setOwner)(this,t),this.keyTrapper&&(this.keyTrapper.destroy(),this.keyTrapper=null),this.keyTrapper=new e,this._stopCallback(),this.searchService=t.lookup("service:search"),this.appEvents=t.lookup("service:app-events"),this.currentUser=t.lookup("service:current-user"),this.siteSettings=t.lookup("service:site-settings"),this.site=t.lookup("service:site"),this.currentUser?.can_send_private_messages||delete b["g m"]},bindEvents(){Object.keys(b).forEach((e=>{this.bindKey(e)}))},teardown(){Object.getPrototypeOf(this.keyTrapper).stopCallback=this.oldStopCallback,this.oldStopCallback=null,this.keyTrapper?.destroy(),this.keyTrapper=null},isTornDown(){return null==this.keyTrapper},bindKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null
this.isTornDown()||(t||(t=b[e]),(t.anonymous||this.currentUser)&&(t.path?this._bindToPath(t.path,e):t.handler?t.global?this._globalBindToFunction(t.handler,e):this._bindToFunction(t.handler,e):t.postAction?this._bindToSelectedPost(t.postAction,e):t.click&&this._bindToClick(t.click,e)))},pause(e){this.isTornDown()||(e?e.forEach((e=>this.keyTrapper.unbind(e))):this.keyTrapper.paused=!0)},unpause(e){this.isTornDown()||(e?e.forEach((e=>this.bindKey(e))):this.keyTrapper.paused=!1)},addShortcut(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
e=e.trim()
let n=Object.assign({handler:t},i)
this.bindKey(e,n),i.help&&function(e){const t=e.category
f[t]?f[t]=f[t].concat([e]):f[t]=[e]}(i.help)},unbind(e){Object.keys(e).forEach((e=>this.keyTrapper.unbind(e)))},toggleBookmark(e){const t=this._getSelectedPost()
if(t)return y(e),void this.sendToSelectedPost("toggleBookmark",t)
const i=this._getSelectedTopicListItem()
if(i)return y(e),void this.sendToTopicListItemView("toggleBookmark",i)
this._bookmarkCurrentTopic(e)},toggleBookmarkTopic(e){const t=this._getSelectedTopicListItem()
if(t)return y(e),void this.sendToTopicListItemView("toggleBookmark",t)
this._bookmarkCurrentTopic(e)},_bookmarkCurrentTopic(e){this.currentTopic()&&document.querySelectorAll(".posts-wrapper").length&&(y(e),(0,n.getOwner)(this).lookup("controller:topic").send("toggleBookmark"))},logout(){(0,n.getOwner)(this).lookup("route:application").send("logout")},quoteReply(){return this.isPostTextSelected()?(this.appEvents.trigger("quote-button:quote"),!1):(this.sendToSelectedPost("replyToPost"),(0,o.default)((()=>document.querySelector(".d-editor .quote")?.click()),500),!1)},editPost(){return this.siteSettings.enable_fast_edit&&this.isPostTextSelected()?(this.appEvents.trigger("quote-button:edit"),!1):(this.sendToSelectedPost("editPost"),!1)},goToNextTopic(){(0,s.nextTopicUrl)().then((e=>{e&&a.default.routeTo(e)}))},goToPreviousTopic(){(0,s.previousTopicUrl)().then((e=>{e&&a.default.routeTo(e)}))},goToFirstSuggestedTopic(){const e=document.querySelector(".suggested-topics a.raw-topic-link")
if(e)e.click()
else{const e=(0,n.getOwner)(this).lookup("controller:topic"),t=`/t/${e.get("model.id")}/last.json`;(0,d.ajax)(t).then((t=>{if(t.suggested_topics&&t.suggested_topics.length>0){const i=e.store.createRecord("topic",t.suggested_topics[0])
a.default.routeTo(i.get("url"))}}))}},goToFirstPost(){this._jumpTo("jumpTop")},goToLastPost(){this._jumpTo("jumpBottom")},goToUnreadPost(){this._jumpTo("jumpUnread")},_jumpTo(e){document.querySelector(".container.posts")&&(0,n.getOwner)(this).lookup("controller:topic").send(e)},replyToTopic(){return this._replyToPost(),!1},selectDown(){this._moveSelection(1)},selectUp(){this._moveSelection(-1)},goBack(){history.back()},nextSection(){this._changeSection(1)},prevSection(){this._changeSection(-1)},showPageSearch(e){(0,r.run)((()=>{this.appEvents.trigger("header:keyboard-trigger",{type:"page-search",event:e})}))},printTopic(e){(0,r.run)((()=>{document.querySelector(".container.posts")&&(e.preventDefault(),(0,n.getOwner)(this).lookup("controller:topic").print())}))},createTopic(e){if(!this.currentUser||!this.currentUser.can_create_topic)return
e.preventDefault()
const t=document.querySelector("#create-topic")
t?t.click():(0,n.getOwner)(this).lookup("service:composer").open({action:l.default.CREATE_TOPIC,draftKey:l.default.NEW_TOPIC_KEY})},focusComposer(e){const t=(0,n.getOwner)(this).lookup("service:composer")
e&&(e.preventDefault(),e.stopPropagation()),t.focusComposer(e)},fullscreenComposer(){const e=(0,n.getOwner)(this).lookup("service:composer")
e.get("model")&&e.toggleFullscreen()},pinUnpinTopic(){(0,n.getOwner)(this).lookup("controller:topic").togglePinnedState()},goToPost(e){y(e),this.appEvents.trigger("topic:keyboard-trigger",{type:"jump"})},toggleSearch(e){return this.appEvents.trigger("header:keyboard-trigger",{type:"search",event:e}),!1},toggleHamburgerMenu(e){this.appEvents.trigger("header:keyboard-trigger",{type:"hamburger",event:e})},showCurrentUser(e){this.appEvents.trigger("header:keyboard-trigger",{type:"user",event:e})},showHelpModal(){(0,n.getOwner)(this).lookup("controller:application").send("showKeyboardShortcutsHelp")},setTrackingToMuted(){(0,r.throttle)(this,"_setTracking",0,c.INPUT_DELAY,!0)},setTrackingToRegular(){(0,r.throttle)(this,"_setTracking",1,c.INPUT_DELAY,!0)},setTrackingToTracking(){(0,r.throttle)(this,"_setTracking",2,c.INPUT_DELAY,!0)},setTrackingToWatching(){(0,r.throttle)(this,"_setTracking",3,c.INPUT_DELAY,!0)},_setTracking(e){const t=this.currentTopic()
t&&t.details.updateNotifications(e)},sendToTopicListItemView(e,t){if(t=t||document.querySelector("tr.selected.topic-list-item")){const i=(0,n.getOwner)(this).lookup("-view-registry:main")
if(i){i[t.id].send(e)}}},currentTopic(){const e=(0,n.getOwner)(this).lookup("controller:topic")
if(e){const t=e.get("model")
if(t)return t}},isPostTextSelected(){const e=(0,n.getOwner)(this).lookup("controller:topic")
return!!e?.get("quoteState")?.postId},sendToSelectedPost(e,t){const i=t||document.querySelector(".topic-post.selected article.boxed")
let r
if(i&&(r=parseInt(i.dataset.postId,10)),r){const t=(0,n.getOwner)(this).lookup("controller:topic"),i=t.get("model.postStream.posts").findBy("id",r)
if(i){let o=t.actions[e]
if(!o){o=(0,n.getOwner)(this).lookup("route:topic").actions[e]}const s=o.call(t,i)
s&&s.then&&this.appEvents.trigger("post-stream:refresh",{id:r})}}return!1},_bindToSelectedPost(e,t){this.keyTrapper.bind(t,(()=>this.sendToSelectedPost(e)))},_bindToPath(e,t){this.keyTrapper.bind(t,(()=>a.default.routeTo(e)))},_bindToClick(e,t){t=t.split(","),this.keyTrapper.bind(t,(function(t){const i=document.querySelector(e)
if(t&&"Enter"===t.key){if(!i)return
t.preventDefault()}i?.click()}))},_globalBindToFunction(e,t){let i="function"==typeof e?e:this[e]
"function"==typeof i&&this.keyTrapper.bindGlobal(t,i.bind(this))},_bindToFunction(e,t){let i="function"==typeof e?e:this[e]
"function"==typeof i&&this.keyTrapper.bind(t,i.bind(this))},_moveSelection(e){const t=+new Date,i=this._lastMoveTime&&t-this._lastMoveTime<150
this._lastMoveTime=t
let n=this._findArticles()
if(void 0===n)return
n=Array.from(n)
let r=n.find((e=>e.classList.contains("selected")))
if(r||(r=n.find((e=>"true"===e.dataset.islastviewedtopic))),r&&!i){const e=r.getBoundingClientRect();(e.bottom<(0,p.headerOffset)()||e.top>window.innerHeight)&&(r=null)}if(!r){const t=(0,p.headerOffset)()
r=n.find((i=>e>0?i.getBoundingClientRect().top>=t:i.getBoundingClientRect().bottom>=t)),r||(r=n[n.length-1]),e=0}const o=n.indexOf(r)
let s=r
if(!i&&0!==e&&s){const t=s.classList.contains("topic-post")&&s.querySelector("#post_1")?0:u.default.offset(s).top,i=u.default.offset(s).top+s.offsetHeight,n=window.scrollY,r=n+window.innerHeight
if(e<0&&n>t)return this._scrollTo(Math.max(n-window.innerHeight+3*(0,p.headerOffset)(),t-(0,p.headerOffset)()))
if(e>0&&r<i-(0,p.headerOffset)())return this._scrollTo(Math.min(r-3*(0,p.headerOffset)(),i-window.innerHeight))}if(!r){if(-1===e&&0===o)return
if(1===e&&o===n.length-1)return}if(s=n[o+e],!s)return
for(const u of n)u.classList.remove("selected")
s.classList.add("selected"),this.appEvents.trigger("keyboard:move-selection",{articles:n,selectedArticle:s})
const l=u.default.offset(s).top,a=l-(0,p.headerOffset)()
if(!i&&e<0&&s.offsetHeight>window.innerHeight)return this._scrollTo(l+s.offsetHeight-window.innerHeight)
if(s.classList.contains("topic-post"))return this._scrollTo(s.querySelector("#post_1")?0:a,{focusTabLoc:!0})
if(a>window.pageYOffset&&l+s.offsetHeight<window.pageYOffset+window.innerHeight)return
const c=e>0?.2:.7
this._scrollTo(a-window.innerHeight*c)},_scrollTo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
window.scrollTo({top:e,behavior:"smooth"}),t.focusTabLoc&&window.addEventListener("scroll",this._onScrollEnds,{passive:!0})},_onScrollEnds(){window.removeEventListener("scroll",this._onScrollEnds,{passive:!0}),(0,i.default)(this,this._onScrollEndsCallback,100)},_onScrollEndsCallback(){document.querySelector(".topic-post.selected span.tabLoc")?.focus()},categoriesTopicsList(){switch(this.siteSettings.desktop_category_page_style){case"categories_with_featured_topics":return document.querySelectorAll(".latest .featured-topic")
case"categories_and_latest_topics":case"categories_and_latest_topics_created_date":return document.querySelectorAll(".latest-topic-list .latest-topic-list-item")
case"categories_and_top_topics":return document.querySelectorAll(".top-topic-list .latest-topic-list-item")
default:return[]}},_findArticles(){let e
return document.querySelector(".posts-wrapper")?document.querySelectorAll(".posts-wrapper .topic-post, .topic-list tbody tr"):document.querySelector(".topic-list")?document.querySelectorAll(".topic-list .topic-list-item"):(e=this.categoriesTopicsList())?e:document.querySelector(".search-results")?document.querySelectorAll(".search-results .fps-result"):void 0},_changeSection(e){const t=Array.from(document.querySelectorAll(".nav.nav-pills li")),i=document.querySelector(".nav.nav-pills li.active"),n=t.indexOf(i)+e
n>=0&&n<t.length&&t[n].querySelector("a")?.click()},_stopCallback(){const e=Object.getPrototypeOf(this.keyTrapper),t=this.oldStopCallback=e.stopCallback
e.stopCallback=function(e,i,n,r){return!!this.paused||("ctrl+f"!==n&&"command+f"!==n||"search-term"!==i.id)&&t.call(this,e,i,n,r)}},_replyToPost(){(0,n.getOwner)(this).lookup("controller:topic").send("replyToPost")},_getSelectedPost:()=>document.querySelector(".topic-post.selected article[data-post-id]"),_getSelectedTopicListItem:()=>document.querySelector("tr.selected.topic-list-item"),deferTopic(){(0,n.getOwner)(this).lookup("controller:topic").send("deferTopic")},toggleAdminActions(){this.appEvents.trigger("topic:toggle-actions")},webviewKeyboardBack(){(0,m.helperContext)().capabilities.isAppWebview&&window.history.back()},webviewKeyboardForward(){(0,m.helperContext)().capabilities.isAppWebview&&window.history.forward()}},_=h,v="_onScrollEnds",w=[t.bind],k=Object.getOwnPropertyDescriptor(h,"_onScrollEnds"),x=h,P={},Object.keys(k).forEach((function(e){P[e]=k[e]})),P.enumerable=!!P.enumerable,P.configurable=!!P.configurable,("value"in P||P.initializer)&&(P.writable=!0),P=w.slice().reverse().reduce((function(e,t){return t(_,v,e)||e}),P),x&&void 0!==P.initializer&&(P.value=P.initializer?P.initializer.call(x):void 0,P.initializer=void 0),void 0===P.initializer&&(Object.defineProperty(_,v,P),P=null),h)
e.default=O})),define("discourse/lib/lazy-load-images",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nativeLazyLoading=function(e){e.decorateCookedElement((e=>e.querySelectorAll("img").forEach((e=>e.loading="lazy"))),{id:"discourse-lazy-load"}),e.decorateCookedElement((t=>{const i=e.container.lookup("service:site-settings")
t.querySelectorAll("img").forEach((e=>{const{smallUpload:t,dominantColor:n}=e.dataset
i.secure_uploads&&t||!t&&!n||function(e){return!!e.naturalHeight}(e)||(e.onload||(e.onload=()=>{e.style.removeProperty("background-image"),e.style.removeProperty("background-size"),e.style.removeProperty("background-color")}),t?(e.style.setProperty("background-image",`url(${t})`),e.style.setProperty("background-size","cover")):e.style.setProperty("background-color",`#${n}`))}))}),{id:"discourse-lazy-load-after-adopt",afterAdopt:!0})}})),define("discourse/lib/lightbox",["exports","discourse/lib/utilities","I18n","discourse/models/user","discourse/lib/load-script","discourse-common/lib/icon-library","discourse/helpers/loading-spinner","discourse-common/lib/helpers","discourse-common/config/environment"],(function(e,t,i,n,r,o,s,l,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,u){if(!e)return
const c=e.querySelectorAll("*:not(.spoiler):not(.spoiled) a.lightbox")
if(!c.length)return
const d=(0,l.helperContext)().capabilities,p=d.touch;(0,r.default)("/javascripts/jquery.magnific-popup.min.js").then((function(){$(c).magnificPopup({type:"image",closeOnContentClick:!1,removalDelay:(0,a.isTesting)()?0:300,mainClass:"mfp-zoom-in",tClose:i.default.t("lightbox.close"),tLoading:s.spinnerHTML,prependTo:(0,a.isTesting)()&&document.getElementById("ember-testing"),gallery:{enabled:!0,tPrev:i.default.t("lightbox.previous"),tNext:i.default.t("lightbox.next"),tCounter:i.default.t("lightbox.counter"),navigateByImgClick:p},ajax:{tError:i.default.t("lightbox.content_load_error")},callbacks:{open(){if(!p){const e=this.wrap,t=this.currItem.img,i=t.css("max-height")
e.on("click.pinhandler","img",(function(){e.toggleClass("mfp-force-scrollbars"),t.css("max-height",e.hasClass("mfp-force-scrollbars")?"none":i)}))}d.isAppWebview&&(0,t.postRNWebviewMessage)("headerBg",$(".mfp-bg").css("background-color"))},change(){this.wrap.removeClass("mfp-force-scrollbars")},beforeClose(){this.wrap.off("click.pinhandler"),this.wrap.removeClass("mfp-force-scrollbars"),d.isAppWebview&&(0,t.postRNWebviewMessage)("headerBg",$(".d-header").css("background-color"))}},image:{tError:i.default.t("lightbox.image_load_error"),titleSrc(e){const r=e.el.data("download-href")||e.src
let s=[(0,t.escapeExpression)(e.el.attr("title")),$("span.informations",e.el).text()]
return u.prevent_anons_from_downloading_files&&!n.default.current()||s.push('<a class="image-source-link" href="'+r+'">'+(0,o.renderIcon)("string","download")+i.default.t("lightbox.download")+"</a>"),s.push('<a class="image-source-link" href="'+e.src+'">'+(0,o.renderIcon)("string","image")+i.default.t("lightbox.open")+"</a>"),s.join(" &middot; ")}}})}))}})),define("discourse/lib/link-hashtags",["exports","discourse-common/lib/deprecated","discourse/lib/tag-hashtags","discourse/lib/ajax","discourse/lib/category-hashtags","jquery"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.fetchUnseenHashtags=function(e){return(0,n.ajax)("/hashtags",{data:{slugs:e}}).then((t=>{Object.keys(t.categories).forEach((e=>{s[e]=t.categories[e]})),Object.keys(t.tags).forEach((e=>{l[e]=t.tags[e]})),e.forEach(a.add,a)}))},e.linkSeenHashtags=function(e){e instanceof o.default&&(e=e[0],(0,t.default)("linkSeenHashtags now expects a DOM node as first parameter",{since:"2.8.0.beta7",dropFrom:"2.9.0.beta1",id:"discourse.link-hashtags.dom-node"}))
const n=[...e?.querySelectorAll("span.hashtag")||[]]
if(0===n.length)return[]
const u=[...n.map((e=>e.innerText.slice(1)))]
return n.forEach(((e,t)=>{let n=u[t]
const o=n.endsWith(i.TAG_HASHTAG_POSTFIX)
o&&(n=n.slice(0,n.length-i.TAG_HASHTAG_POSTFIX.length))
const a=n.toLowerCase()
s[a]&&!o?(0,r.replaceSpan)($(e),n,s[a]):l[a]&&(0,r.replaceSpan)($(e),n,l[a])})),u.map((e=>e.toLowerCase())).uniq().filter((e=>!a.has(e)))}
const s={},l={},a=new Set})),define("discourse/lib/link-lookup",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.reset=function(){t={}}
let t={}
const i=[!1,null]
e.default=class{constructor(e){this._links=e}check(e,n){if(t[n])return i
const r=n.toLowerCase().replace(/^https?:\/\//,"").replace(/\/$/,"")
if(t[r])return i
const o=this._links[r]
if(o){if(e){const t=e.get("post_number")
if(1===t||t===o.post_number)return i
if(moment(e.get("created_at")).isBefore(moment().subtract(2,"weeks")))return i}return t[n]=!0,t[r]=!0,[!0,o]}return i}}})),define("discourse/lib/link-mentions",["exports","discourse-common/lib/get-url","discourse/lib/ajax","discourse/lib/url","discourse/lib/utilities"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.fetchUnseenMentions=async function(e){let{names:t,topicId:n,allowedNames:r}=e
const d=await(0,i.ajax)("/composer/mentions",{data:{names:t,topic_id:n,allowed_names:r}})
return t.forEach((e=>s[e]=!0)),d.users.forEach((e=>l[e]=!0)),Object.entries(d.user_reasons).forEach((e=>{let[t,i]=e
return a[t]=i})),Object.entries(d.groups).forEach((e=>{let[t,i]=e
return u[t]=i})),Object.entries(d.group_reasons).forEach((e=>{let[t,i]=e
return c[t]=i})),o=d.max_users_notified_per_group_mention,d},e.linkSeenMentions=function(e,t){const i=[...e.querySelectorAll("span.mention:not(.mention-tested)")]
if(0===i.length)return[]
const n=i.map((e=>e.innerText.slice(1)))
return function(e,t){e.forEach(((e,i)=>{const n=t[i]
l[n.toLowerCase()]?d(e,n,{reason:a[n]}):u[n]?d(e,n,{group:!0,details:u[n],reason:c[n]}):s[n]&&e.classList.add("mention-tested")}))}(i,n),n.uniq().filter((e=>!s[e]&&e.length>=t.min_username_length))},e.resetMentions=function(){s={},l={},a={},u={},c={},o=null}
let o,s={},l={},a={},u={},c={}
function d(e,i,s){const l=document.createElement("a")
s.group?(l.href=(0,t.default)(`/g/${i}`),l.innerText=`@${i}`,l.classList.add("mention-group"),!s.reason&&s.details&&(l.dataset.mentionableUserCount=s.details.user_count,l.dataset.maxMentions=o)):(l.href=(0,n.userPath)(i.toLowerCase()),l.innerText=`@${(0,r.formatUsername)(i)}`,l.classList.add("mention")),l.dataset.name=i,s.reason&&(l.dataset.reason=s.reason,s.details&&(l.dataset.notifiedUserCount=s.details.notified_count)),e.replaceWith(l)}})),define("discourse/lib/load-oneboxes",["exports","pretty-text/oneboxer","pretty-text/inline-oneboxer"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.loadOneboxes=function(e,n,r,o,s,l,a){const u={},c={}
let d=e.querySelectorAll(`aside.onebox, a.${t.LOADING_ONEBOX_CSS_CLASS}, a.inline-onebox`).length
e.querySelectorAll("a.onebox, a.inline-onebox-loading").forEach((e=>{const t=e.classList.contains("inline-onebox-loading"),i=t?c:u
d<s?(void 0===i[e.href]&&(i[e.href]=[],d++),i[e.href].push(e)):void 0!==i[e.href]?i[e.href].push(e):t&&e.classList.remove("inline-onebox-loading")})),Object.keys(u).length>0&&function(e){let{oneboxes:i,ajax:n,topicId:r,categoryId:o,refresh:s,offline:l}=e
Object.values(i).forEach((e=>{e.forEach((e=>{(0,t.load)({elem:e,ajax:n,categoryId:o,topicId:r,refresh:s,offline:l})}))}))}({oneboxes:u,ajax:n,topicId:r,categoryId:o,refresh:l,offline:a})
Object.keys(c).length>0&&function(e,t,n,r){(0,i.applyInlineOneboxes)(e,t,{categoryId:n,topicId:r})}(c,n,r,o)
return Object.keys(u).length+Object.keys(c).length}})),define("discourse/lib/load-script",["exports","discourse-common/lib/get-url","discourse/lib/public-js-versions","rsvp","discourse/lib/ajax","@ember/runloop","discourse-common/config/environment","@ember/test"],(function(e,t,i,n,r,o,s,l){Object.defineProperty(e,"__esModule",{value:!0}),e.cacheBuster=d,e.default=c,e.loadCSS=function(e){return c(e,{css:!0})}
const a={},u={}
function c(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(a[e])return n.Promise.resolve()
e=d(e)
const c=i.css?(0,t.default)(e):(0,t.getURLWithCDN)(e)
return document.querySelectorAll("script").forEach((e=>{const t=e.getAttribute("src")
t&&t!==c&&!u[t]&&(a[t]=!0)})),new n.Promise((function(t){if(a[c])return t()
if(u[c])return u[c].then(t)
let d
u[c]=new n.Promise((function(e){d=e})),u[c].then((function(){delete u[c]}))
const p=function(n){if(i?.css){const e=document.createElement("style")
e.innerText=n,document.querySelector("head").appendChild(e)}d(),t(),a[e]=!0,a[c]=!0}
i.css?(0,r.ajax)({url:c,dataType:"text"}).then(p):function(e,t){const i=document.getElementsByTagName("head")[0]
let n=!1,r=document.createElement("script")
r.src=e,(0,s.isTesting)()&&(0,l.registerWaiter)((()=>n)),r.onerror=function(){n=!0},r.onload=r.onreadystatechange=function(e,i){n=!0,!i&&r.readyState&&"loaded"!==r.readyState&&"complete"!==r.readyState||(r=r.onload=r.onreadystatechange=null,i||(0,o.run)(null,t))},i.appendChild(r)}(c,p)}))}function d(e){if(i.PUBLIC_JS_VERSIONS){let[t,...n]=e.split("/").filter(Boolean)
if("javascripts"===t){n=n.join("/").toLowerCase()
const e=i.PUBLIC_JS_VERSIONS[n]
if(e)return`/javascripts/${e}`}}return e}})),define("discourse/lib/local-dates",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.applyLocalDates=function(e,t){if(!t.discourse_local_dates_enabled)return;(0,requirejs("discourse/plugins/discourse-local-dates/initializers/discourse-local-dates").applyLocalDates)(e,t)}})),define("discourse/lib/lock-on",["exports","discourse-common/utils/decorators","discourse/lib/offset-calculator"],(function(e,t,i){var n
function r(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=["scroll","touchmove","mousedown","wheel","keyup"],s=["mousedown","mousewheel","touchmove","wheel"]
function l(e,t,i){return Math.abs(t-i)<e}let a=(r((n=class{constructor(e,t){this.selector=e,this.options=t||{}}elementTop(){const e=document.querySelector(this.selector)
if(!e)return
const{top:t}=e.getBoundingClientRect()
let n=t+window.scrollY
return this.options.originalTopOffset&&window.innerHeight/2.25>this.options.originalTopOffset?n-this.options.originalTopOffset:n-(0,i.headerOffset)()}clearLock(){this._removeListener(),window.cancelAnimationFrame(this._requestId),this.options.finished&&this.options.finished()}lock(){this.startedAt=Date.now(),this.previousTop=this.elementTop(),this.previousTop&&window.scrollTo(window.pageXOffset,this.previousTop),this._requestId=window.requestAnimationFrame(this._performLocking),this._removeListener(),this._addListener()}_scrollListener(e){(e.which>0||s.includes(e.type))&&this.clearLock()}_addListener(){const e=document.querySelector("body")
o.forEach((t=>{e.addEventListener(t,this._scrollListener,{passive:!0})}))}_removeListener(){const e=document.querySelector("body")
o.forEach((t=>{e.removeEventListener(t,this._scrollListener)}))}_performLocking(){const e=this.elementTop()
if(!this.previousTop&&!e)return Date.now()-this.startedAt>5e3&&this.clearLock(),void(this._requestId=window.requestAnimationFrame(this._performLocking))
const t=Math.max(0,e)
return isNaN(t)?this.clearLock():(l(4,t,this.previousTop)&&l(4,window.scrollY,t)||(window.scrollTo(window.pageXOffset,t),this.previousTop=t),this.options.originalTopOffset||Date.now()-this.startedAt>1e3?this.clearLock():void(this._requestId=window.requestAnimationFrame(this._performLocking)))}}).prototype,"_scrollListener",[t.bind],Object.getOwnPropertyDescriptor(n.prototype,"_scrollListener"),n.prototype),r(n.prototype,"_performLocking",[t.bind],Object.getOwnPropertyDescriptor(n.prototype,"_performLocking"),n.prototype),n)
e.default=a})),define("discourse/lib/logout",["exports","discourse-common/lib/get-url","discourse-common/lib/helpers","@ember/utils"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){let{redirect:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if((0,i.helperContext)().keyValueStore.abandonLocal(),!(0,n.isEmpty)(e))return void(window.location.href=e)
window.location.href=(0,t.default)("/")}})),define("discourse/lib/media-optimization-utils",["exports","rsvp","discourse-common/lib/helpers"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.fileToImageData=async function(e){const n=function(e){const t=e.width,i=e.height,n=0,r=0,o=t,s=i,l=document.createElement("canvas")
l.width=t,l.height=i
const a=l.getContext("2d")
if(!a)throw"Could not create canvas context"
a.drawImage(e,n,r,o,s,0,0,t,i)
const u=a.getImageData(0,0,t,i)
return l.remove(),u}(await async function(e){const n=(0,i.helperContext)().capabilities
if("createImageBitmap"in self&&!n.isApple)return await createImageBitmap(e)
{const i=URL.createObjectURL(e),n=new Image
n.decoding="async",n.src=i
const r=new t.Promise(((e,t)=>{n.onload=()=>e(),n.onerror=()=>t(Error("Image loading error"))}))
return n.decode&&await n.decode().catch((()=>null)),await r,n}}(e))
if(function(e,t){if(!/(\.|\/)(png|webp)$/i.test(e))return!1
for(let i=0;i<t.data.length;i+=4)if(t.data[i+3]<255)return!0
return!1}(e.type,n))throw"Image has transparent pixels, won't convert to JPEG!"
if(function(e,t){if(!/(\.|\/)jpe?g$/i.test(e))return!1
return 0===t.data[3]}(e.type,n))throw"JPEG image has transparent pixel, decode failed!"
return n}})),define("discourse/lib/mobile",["exports","discourse-common/config/environment"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.forceMobile=function(){i=!0},e.resetMobile=function(){i=!1}
let i=!1
var n={isMobileDevice:!1,mobileView:!1,init(){const e=$("html")
if(this.isMobileDevice=i||e.hasClass("mobile-device"),this.mobileView=i||e.hasClass("mobile-view"),!(0,t.isTesting)()&&!i)try{if(window.location.search.match(/mobile_view=1/)&&(localStorage.mobileView=!0),window.location.search.match(/mobile_view=0/)&&(localStorage.mobileView=!1),window.location.search.match(/mobile_view=auto/)&&localStorage.removeItem("mobileView"),localStorage.mobileView){let e="true"===localStorage.mobileView
e!==this.mobileView&&this.reloadPage(e)}}catch(n){}},toggleMobileView(){try{localStorage&&(localStorage.mobileView=!this.mobileView)}catch(e){}this.reloadPage(!this.mobileView)},reloadPage(e){window.location.assign(window.location.pathname+"?mobile_view="+(e?"1":"0"))}}
e.default=n})),define("discourse/lib/model-transformers",["exports","discourse/lib/source-identifier"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.applyModelTransformations=async function(e,t){for(const r of i[e]||[])try{await r.execute(t)}catch(n){console.error(r.prefix,`transformer for the \`${e}\` model failed with:`,n,n.stack)}},e.registerModelTransformer=function(e,n){i[e]||(i[e]=[])
const r={prefix:(0,t.consolePrefix)(),execute:n}
i[e].push(r)},e.resetModelTransformers=function(){i={}}
let i={}})),define("discourse/lib/narrow-desktop",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t={narrowDesktopView:!1,init(){this.narrowDesktopView=this.isNarrowDesktopView(document.body.getBoundingClientRect().width)},isNarrowDesktopView:e=>e<768}
e.default=t})),define("discourse/lib/notification-levels",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.allLevels=e.NotificationLevels=void 0,e.buttonDetails=l,e.topicLevels=void 0
const t=0,i=1,n=2,r=3,o=4,s={WATCHING_FIRST_POST:o,WATCHING:r,TRACKING:n,REGULAR:i,NORMAL:1,MUTED:t}
function l(e){switch(e){case o:return{id:o,key:"watching_first_post",icon:"d-watching-first"}
case r:return{id:r,key:"watching",icon:"d-watching"}
case n:return{id:n,key:"tracking",icon:"d-tracking"}
case t:return{id:t,key:"muted",icon:"d-muted"}
default:return{id:i,key:"regular",icon:"d-regular"}}}e.NotificationLevels=s
const a=[r,n,o,i,t].map(l)
e.allLevels=a
const u=a.filter((e=>e.id!==o))
e.topicLevels=u})),define("discourse/lib/notification-types-manager",["exports","discourse/lib/notification-types/base","discourse/lib/notification-types/admin-problems","discourse/lib/notification-types/bookmark-reminder","discourse/lib/notification-types/custom","discourse/lib/notification-types/granted-badge","discourse/lib/notification-types/group-mentioned","discourse/lib/notification-types/group-message-summary","discourse/lib/notification-types/invitee-accepted","discourse/lib/notification-types/liked-consolidated","discourse/lib/notification-types/liked","discourse/lib/notification-types/membership-request-accepted","discourse/lib/notification-types/membership-request-consolidated","discourse/lib/notification-types/new-features","discourse/lib/notification-types/moved-post","discourse/lib/notification-types/watching-first-post","discourse/lib/notification-types/edited"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g){Object.defineProperty(e,"__esModule",{value:!0}),e.getRenderDirector=function(e,i,n,r,o){return new(y[e]||b[e]||t.default)({notification:i,currentUser:n,siteSettings:r,site:o})},e.registerNotificationTypeRenderer=function(e,i){y[e]=i(t.default)},e.resetNotificationTypeRenderers=function(){y={}}
const b={bookmark_reminder:n.default,custom:r.default,edited:g.default,granted_badge:o.default,group_mentioned:s.default,group_message_summary:l.default,invitee_accepted:a.default,liked:c.default,liked_consolidated:u.default,membership_request_accepted:d.default,membership_request_consolidated:p.default,moved_post:h.default,new_features:m.default,admin_problems:i.default,watching_first_post:f.default}
let y={}})),define("discourse/lib/notification-types/admin-problems",["exports","discourse/lib/notification-types/base","discourse-common/lib/get-url","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get label(){return null}get description(){return n.default.t("notifications.admin_problems")}get linkHref(){return(0,i.default)("/admin")}get icon(){return"gift"}}e.default=r})),define("discourse/lib/notification-types/base",["exports","discourse/lib/utilities","discourse/lib/url","discourse/lib/text","@ember/template","I18n"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e){let{notification:t,currentUser:i,siteSettings:n,site:r}=e
this.notification=t,this.currentUser=i,this.siteSettings=n,this.site=r}get classNames(){const e=["notification"]
return this.notification.read?e.push("read"):e.push("unread"),this.notificationName&&e.push(this.notificationName.replace(/_/g,"-")),this.notification.is_warning&&e.push("is-warning"),e}get linkHref(){return this.topicId?(0,t.postUrl)(this.notification.slug,this.topicId,this.notification.post_number):this.notification.data.group_id?(0,i.userPath)(`${this.notification.data.username}/messages/${this.notification.data.group_name}`):void 0}get linkTitle(){return this.notificationName?o.default.t(`notifications.titles.${this.notificationName}`):""}get icon(){return`notification.${this.notificationName}`}get label(){return this.username}get description(){const e=(0,n.emojiUnescape)(this.notification.fancy_title)
return e?(0,r.htmlSafe)(e):this.notification.data.topic_title}get labelClasses(){return[]}get descriptionClasses(){return[]}get topicId(){return this.notification.topic_id}get username(){return(0,t.formatUsername)(this.notification.data.display_username)}get notificationName(){return this.site.notificationLookup[this.notification.notification_type]}}})),define("discourse/lib/notification-types/bookmark-reminder",["exports","discourse/lib/notification-types/base","I18n","discourse-common/lib/get-url"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get linkTitle(){return this.notification.data.bookmark_name?i.default.t("notifications.titles.bookmark_reminder_with_name",{name:this.notification.data.bookmark_name}):super.linkTitle}get description(){return super.description||this.notification.data.title}get linkHref(){let e=super.linkHref
return e||(this.notification.data.bookmarkable_url?(0,n.default)(this.notification.data.bookmarkable_url):void 0)}}e.default=r}))
define("discourse/lib/notification-types/custom",["exports","discourse/lib/notification-types/base","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{get linkTitle(){if(this.notification.data.title)return i.default.t(this.notification.data.title)}get icon(){return`notification.${this.notification.data.message}`}}e.default=n})),define("discourse/lib/notification-types/edited",["exports","discourse/lib/notification-types/base","discourse/models/post-stream"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{onClick(){(0,i.setLastEditNotificationClick)(this.notification.topic_id,this.notification.post_number,this.notification.data.revision_number)}}e.default=n})),define("discourse/lib/notification-types/granted-badge",["exports","discourse/lib/notification-types/base","discourse-common/lib/get-url","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get linkHref(){const e=this.notification.data.badge_id
if(e){let t=this.notification.data.badge_slug
t||(t=this.notification.data.badge_name.replace(/[^A-Za-z0-9_]+/g,"-").toLowerCase())
let n=this.notification.data.username
return n=n?`?username=${n.toLowerCase()}`:"",(0,i.default)(`/badges/${e}/${t}${n}`)}return super.url}get description(){return n.default.t("notifications.granted_badge",{description:this.notification.data.badge_name})}get label(){return null}}e.default=r})),define("discourse/lib/notification-types/group-mentioned",["exports","discourse/lib/notification-types/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{get label(){return`${this.username} @${this.notification.data.group_name}`}get labelClasses(){return["mention-group","notify"]}}e.default=i})),define("discourse/lib/notification-types/group-message-summary",["exports","discourse/lib/notification-types/base","discourse/lib/url","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get description(){return n.default.t("notifications.group_message_summary",{count:this.notification.data.inbox_count,group_name:this.notification.data.group_name})}get label(){return null}get linkHref(){return(0,i.userPath)(`${this.notification.data.username}/messages/group/${this.notification.data.group_name}`)}}e.default=r})),define("discourse/lib/notification-types/invitee-accepted",["exports","discourse/lib/notification-types/base","discourse/lib/url","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get linkHref(){return(0,i.userPath)(this.notification.data.display_username)}get description(){return n.default.t("notifications.invitee_accepted_your_invitation")}}e.default=r})),define("discourse/lib/notification-types/liked-consolidated",["exports","discourse/lib/notification-types/base","discourse/lib/url","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get linkHref(){return(0,i.userPath)(`${this.currentUser.username}/notifications/likes-received?acting_username=${this.notification.data.username}`)}get description(){return n.default.t("notifications.liked_consolidated_description",{count:this.notification.data.count})}}e.default=r})),define("discourse/lib/notification-types/liked",["exports","discourse/lib/notification-types/base","discourse/lib/utilities","I18n"],(function(e,t,i,n){function r(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function o(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=new WeakMap
class l extends t.default{constructor(){super(...arguments),r(this,s,{get:a,set:void 0})}get label(){return 2===this.count?n.default.t("notifications.liked_by_2_users",{username:this.username,username2:o(this,s)}):this.count>2?n.default.t("notifications.liked_by_multiple_users",{username:this.username,username2:o(this,s),count:this.count-2}):super.label}get labelClasses(){return 2===this.count?["double-user"]:this.count>2?["multi-user"]:void 0}get count(){return this.notification.data.count}}function a(){return(0,i.formatUsername)(this.notification.data.username2)}e.default=l})),define("discourse/lib/notification-types/membership-request-accepted",["exports","discourse/lib/notification-types/base","discourse/lib/url","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get linkHref(){return(0,i.groupPath)(this.notification.data.group_name)}get description(){return n.default.t("notifications.membership_request_accepted",{group_name:this.notification.data.group_name})}get label(){return null}}e.default=r})),define("discourse/lib/notification-types/membership-request-consolidated",["exports","discourse/lib/notification-types/base","discourse/lib/url","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get linkHref(){return(0,i.userPath)(`${this.notification.username||this.currentUser.username}/messages`)}get description(){return n.default.t("notifications.membership_request_consolidated",{group_name:this.notification.data.group_name,count:this.notification.data.count})}get label(){return null}}e.default=r})),define("discourse/lib/notification-types/moved-post",["exports","discourse/lib/notification-types/base","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{get label(){return i.default.t("notifications.user_moved_post",{username:this.username})}}e.default=n})),define("discourse/lib/notification-types/new-features",["exports","discourse/lib/notification-types/base","discourse-common/lib/get-url","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{get label(){return null}get description(){return n.default.t("notifications.new_features")}get linkHref(){return(0,i.default)("/admin")}get icon(){return"gift"}}e.default=r})),define("discourse/lib/notification-types/watching-first-post",["exports","discourse/lib/notification-types/base","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{get label(){return i.default.t("notifications.watching_first_post_label")}}e.default=n})),define("discourse/lib/offset-calculator",["exports","discourse-common/lib/deprecated"],(function(e,t){function i(){return parseInt(document.documentElement.style.getPropertyValue("--header-offset"),10)||0}function n(){const e=i()
if(document.querySelector("html").classList.contains("mobile-view"))return e
const t=window.innerHeight,n=document.body.clientHeight,r=document.getElementById("topic-bottom").offsetTop
if(n-t>r)return e
const o=window.scrollY+t-r
if(o>0){const i=n-r,s=(t-i)*o/i
return Math.max(e,s)}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,e.headerOffset=i,e.minimumOffset=function(){(0,t.default)("The minimumOffset() helper is deprecated, please use headerOffset() instead.",{since:"2.8.0.beta10",dropFrom:"2.9.0.beta2",id:"discourse.offset-calculator.minimumOffset"})
const e=document.querySelector("header.d-header"),i=document.querySelector(".footer-nav-ipad .footer-nav"),n=i?i.offsetHeight:0,r=document.querySelector(".d-header-wrap").getBoundingClientRect()
return e?e.offsetHeight+r.top+n:0},e.scrollTopFor=function(e){return e-n()}})),define("discourse/lib/optional-service",["exports","@ember/object","@ember/application","@ember/string"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return(0,t.computed)((function(t){return(0,i.getOwner)(this).lookup(`service:${e||(0,n.dasherize)(t)}`)}))}})),define("discourse/lib/page-tracker",["exports","discourse-common/lib/get-url","@ember/runloop"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.addGTMPageChangedCallback=function(e){s.push(e)},e.getTransient=function(e){return r[e]},e.googleTagManagerPageChanged=function(e){let t={event:"virtualPageView",page:{title:e.title,url:e.url}}
s.forEach((e=>e(t))),window.dataLayer.push(t)},e.resetPageTracking=function(){n=!1,o=0,r={}},e.setTransient=function(e,t,i){r[e]={data:t,target:o+i}},e.startPageTracking=function(e,s,l){if(n)return
e.on("routeDidChange",(n=>{if(n.isAborted)return
const a="replace"===n.urlMethod&&n.queryParamsOnly
e.send("refreshTitle")
const u=(0,t.default)(e.get("url"));(0,i.next)((()=>{s.trigger("page:changed",{url:u,title:l.getTitle(),currentRouteName:e.currentRouteName,replacedOnlyQueryParams:a})})),o++,Object.keys(r).forEach((e=>{const t=r[e]
t&&t.target&&t.target<o&&delete r[e]}))})),n=!0}
let n=!1,r={},o=0
const s=[]})),define("discourse/lib/plugin-api",["exports","I18n","discourse/components/composer-editor","discourse/widgets/post-menu","discourse/helpers/category-link","discourse/widgets/post-stream","discourse/models/user","discourse/widgets/header","discourse/widgets/widget","discourse-common/lib/icon-library","discourse/models/composer","discourse/components/discourse-banner","discourse/lib/keyboard-shortcuts","discourse/lib/sharing","discourse/components/search-advanced-options","discourse/mixins/card-contents-base","discourse/components/edit-category-settings","discourse/widgets/post-cooked","discourse/controllers/discovery-sortable","discourse/lib/render-topic-featured-link","discourse/lib/page-tracker","discourse/components/global-notice","discourse/models/nav-item","discourse/components/d-document","discourse/components/plugin-connector","discourse/components/reviewable-item","discourse/services/composer","discourse/widgets/post","discourse/widgets/post-small-action","discourse/lib/render-tags","discourse/components/d-editor","discourse/widgets/topic-map","discourse/components/topic-title","discourse/components/user-menu/profile-tab-content","discourse/helpers/decorate-username-selector","discourse/components/mount-widget","discourse-common/lib/deprecated","discourse/widgets/poster-name","discourse/lib/plugin-connectors","discourse-common/lib/get-owner","virtual-dom","discourse/lib/transform-post","select-kit/mixins/plugin-api","@ember/object/evented","discourse/helpers/user-avatar","discourse/controllers/topic","discourse/lib/highlight-syntax","discourse/lib/register-topic-footer-button","discourse/lib/register-topic-footer-dropdown","discourse/lib/desktop-notifications","discourse/lib/utilities","discourse/lib/render-tag","discourse/models/topic","discourse/routes/new-category","discourse/lib/search","discourse/widgets/search-menu","discourse/widgets/search-menu-results","discourse/components/search-menu/results/assistant","select-kit/components/user-chooser","discourse/lib/download-calendar","discourse/lib/source-identifier","discourse/lib/sidebar/custom-community-section-links","discourse/lib/sidebar/custom-sections","discourse/lib/sidebar/user/categories-section/category-section-link","discourse/lib/sidebar/user/tags-section/base-tag-section-link","discourse/components/sidebar/user/categories-section","discourse/lib/url","discourse/lib/notification-types-manager","discourse/lib/user-menu/tab","discourse/lib/model-transformers","discourse/controllers/user-private-messages","discourse/controllers/full-page-search","discourse/lib/hashtag-autocomplete"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w,k,x,P,O,T,S,j,C,z,I,E,M,D,N,L,A,U,F,R,B,q,H,W,V,G,K,Y,J,Q,X,Z,ee,te,ie,ne,re,oe,se,le,ae,ue,ce,de,pe,me,he,fe,ge,be,ye,_e){Object.defineProperty(e,"__esModule",{value:!0}),e.PLUGIN_API_VERSION=void 0,e.withPluginApi=function(e,t,i){i=i||{}
const n=function(e){if(function(e,t){let i,n,r=/(\.0+)+$/,o=e.replace(r,"").split("."),s=t.replace(r,"").split("."),l=Math.min(o.length,s.length)
for(i=0;i<l;i++)if(n=parseInt(o[i],10)-parseInt(s[i],10),n)return n
return o.length-s.length}(e=e.toString(),ve)<=0){const t=(0,F.getOwner)(this)
let i=t.lookup("plugin-api:main")
return i?i.container=t:(i=new ke(e,t),t.registry.register("plugin-api:main",i,{instantiate:!1})),i.version<e&&(i.version=e),i}console.warn((0,le.consolePrefix)(),`Plugin API v${e} is not supported`)}(e)
if(n)return t(n,i)}
const ve="1.6.1"
function we(e,t,i,n){if(!n.pluginId)return console.warn((0,le.consolePrefix)(),"To prevent errors in tests, add a `pluginId` key to your `modifyClass` call. This will ensure the modification is only applied once."),!0
let r="_"+t+"/"+n.pluginId+"/"+i
return!e.class[r]&&(e.class[r]=1,!0)}e.PLUGIN_API_VERSION=ve
class ke{constructor(e,t){this.version=e,this.container=t,this.h=R.h}getCurrentUser(){return this._lookupContainer("service:current-user")}_lookupContainer(e){if(this.container&&!this.container.isDestroying&&!this.container.isDestroyed)return this.container.lookup(e)}_resolveClass(e,t){t=t||{},(this.container.cache[e]||"model:user"===e&&this.container.lookup("service:current-user"))&&console.warn((0,le.consolePrefix)(),`"${e}" has already been initialized and registered as a singleton. Move the modifyClass call earlier in the boot process for changes to take effect. https://meta.discourse.org/t/262064`)
const i=this.container.factoryFor(e)
if(i)return i
t.ignoreMissing||console.warn((0,le.consolePrefix)(),`"${e}" was not found by modifyClass`)}modifyClass(e,t,i){const n=this._resolveClass(e,i)
if(n)return we(n,"member",e,t)&&(delete t.pluginId,n.class.reopen?n.class.reopen(t):Object.defineProperties(n.class.prototype||n.class,Object.getOwnPropertyDescriptors(t))),n}modifyClassStatic(e,t,i){const n=this._resolveClass(e,i)
if(n)return we(n,"static",e,t)&&(delete t.pluginId,n.class.reopenClass(t)),n}registerIconRenderer(e){(0,u.registerIconRenderer)(e)}replaceIcon(e,t){(0,u.replaceIcon)(e,t)}decorateCooked(e,t){this.decorateCookedElement(((t,i)=>e($(t),i)),t)}decorateCookedElement(e,t){var n,r
t=t||{},n=e,r="broken_decorator_alert",e=function(){try{return n.call(this,...arguments)}catch(e){return void document.dispatchEvent(new CustomEvent("discourse-error",{detail:{messageKey:r,error:e}}))}},(0,b.addDecorator)(e,{afterAdopt:!!t.afterAdopt}),t.onlyStream||(Oe(i.default,"previewRefreshed",e,t.id),Oe(d.default,"didInsertElement",e,t.id),["didInsertElement","user-stream:new-item-inserted"].forEach((i=>{Oe(this.container.factoryFor("component:user-stream").class,i,e,t.id)})))}addKeyboardShortcut(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
p.default.addShortcut(e,t,i)}addPosterIcon(e){this.addPosterIcons(e)}addPosterIcons(e){const t=this._lookupContainer("service:site"),i=t&&t.mobileView?"before":"after";(0,a.decorateWidget)(`poster-name:${i}`,(t=>{const i=t.attrs
let n=e(i.userCustomFields||{},i)
if(n)return Array.isArray(n)||(n=[n]),n.map((e=>{let i
return e.icon?i=(0,u.iconNode)(e.icon):e.emoji&&(i=e.emoji.split("|").map((i=>{let n={name:i}
return e.emojiTitle&&(n.title=!0),t.attach("emoji",n)}))),e.text&&(i=[i,e.text]),e.url&&(i=t.h("a",{attributes:{href:e.url}},i)),t.h("span.poster-icon",{className:e.className,attributes:{title:e.title}},i)}))}))}decorateWidget(e,t){this._deprecateDecoratingHamburgerWidgetLinks(e,t),(0,a.decorateWidget)(e,t)}_deprecateDecoratingHamburgerWidgetLinks(e,i){if("hamburger-menu:generalLinks"===e||"hamburger-menu:footerLinks"===e){if("legacy"!==this.container.lookup("service:site-settings").navigation_menu){try{const{href:n,route:r,label:o,rawLabel:s,className:l}=i(),a=s||t.default.t(o),u={name:l||a.replace(/\s+/g,"-").toLowerCase(),title:a,text:a}
if(n){if(!me.default.isInternal(n))return
u.href=n}else u.route=r
this.addCommunitySectionLink(u,e.match(/footerLinks/))}catch{(0,L.default)("Usage of `api.decorateWidget('hamburger-menu:generalLinks')` is incompatible with the `navigation_menu` site setting when not set to \"legacy\". Please use `api.addCommunitySectionLink` instead.",{id:"discourse.decorate-widget.hamburger-widget-links"})}return}}}attachWidgetAction(e,t,i){const n=(0,a.queryRegistry)(e)||this.container.factoryFor(`widget:${e}`)?.class
n?n.prototype[t]=i:console.error((0,le.consolePrefix)(),`attachWidgetAction: Could not find widget ${e} in registry`)}includePostAttributes(){(0,B.includeAttributes)(...arguments)}addPostMenuButton(e,t){n.apiExtraButtons[e]=t,(0,n.addButton)(e,t)}removePostMenuButton(e,t){(0,n.removeButton)(e,t)}onToolbarCreate(e){(0,z.addToolbarCallback)(e)}addToolbarPopupMenuOptionsCallback(e){(0,T.addPopupMenuOptionsCallback)(e)}cleanupStream(e){(0,N.addWidgetCleanCallback)("post-stream",e)}onPageChange(e){this.onAppEvent("page:changed",(t=>e(t.url,t.title)))}onAppEvent(e,t){const i=this._lookupContainer("service:app-events")
i&&i.on(e,t)}customUserAvatarClasses(e){(0,W.registerCustomAvatarHelper)(e)}disableNameSuppressionOnPosts(){(0,A.disableNameSuppression)()}registerCustomPostMessageCallback(e,t){(0,V.registerCustomPostMessageCallback)(e,t)}changeWidgetSetting(e,t,i){(0,a.changeSetting)(e,t,i)}preventCloak(e){(0,o.preventCloak)(e)}createWidget(e,t){return(0,a.createWidget)(e,t)}reopenWidget(e,t){return(0,a.reopenWidget)(e,t)}addFlagProperty(){(0,L.default)("addFlagProperty has been removed. Use the reviewable API instead.",{id:"discourse.add-flag-property"})}addHeaderPanel(e,t,i){(0,l.attachAdditionalPanel)(e,t,i)}addStorePluralization(e,t){const i=this._lookupContainer("service:store")
i&&i.addPluralization(e,t)}registerConnectorClass(e,t,i){(0,U.extraConnectorClass)(`${e}/${t}`,i)}registerTopicFooterButton(e){(0,K.registerTopicFooterButton)(e)}registerTopicFooterDropdown(e){(0,Y.registerTopicFooterDropdown)(e)}registerDesktopNotificationHandler(e){(0,J.registerDesktopNotificationHandler)(e)}addPostSmallActionIcon(e,t){(0,j.addPostSmallActionIcon)(e,t)}addGroupPostSmallActionCode(e){(0,j.addGroupPostSmallActionCode)(e)}addPostSmallActionClassesCallback(e){(0,j.addPostSmallActionClassesCallback)(e)}addDiscoveryQueryParam(e,t){(0,y.addDiscoveryQueryParam)(e,t)}addTagsHtmlCallback(e,t){(0,C.addTagsHtmlCallback)(e,t)}addUserMenuGlyph(){(0,L.default)("addUserMenuGlyph has been removed. Use api.registerUserMenuTab instead.",{id:"discourse.add-user-menu-glyph"})}addPostClassesCallback(e){(0,S.addPostClassesCallback)(e)}addTopicParticipantClassesCallback(e){(0,I.addTopicParticipantClassesCallback)(e)}addPostTransformCallback(e){(0,o.addPostTransformCallback)(e)}addNavigationBarItem(e){if(e.name){const t=e.customHref
if(t){const i=this.container.lookup("service:router")
e.customHref=function(e,n){return t(e,n,i)}}const i=e.customFilter
if(i){const t=this.container.lookup("service:router")
e.customFilter=function(e,n){return i(e,n,t)}}const n=e.forceActive
if(n){const t=this.container.lookup("service:router")
e.forceActive=function(e,i){return n(e,i,t)}}const r=e.init
if(r){const t=this.container.lookup("service:router")
e.init=function(e,i,n){r(e,i,n,t)}}(0,k.addNavItem)(e)}else console.warn((0,le.consolePrefix)(),"A 'name' is required when adding a Navigation Bar Item.",e)}formatUsername(e){(0,Q.replaceFormatter)(e)}modifySelectKit(e){return(0,q.modifySelectKit)(e)}addGTMPageChangedCallback(e){(0,v.addGTMPageChangedCallback)(e)}addSharingSource(e){m.default.addSharingId(e.id),m.default.addSource(e)}addComposerUploadHandler(e,t){(0,i.addComposerUploadHandler)(e,t)}addComposerUploadPreProcessor(e,t){(0,i.addComposerUploadPreProcessor)(e,t)}addComposerUploadMarkdownResolver(e){(0,i.addComposerUploadMarkdownResolver)(e)}addUsernameSelectorDecorator(e){(0,D.addUsernameSelectorDecorator)(e)}composerBeforeSave(e){c.default.reopen({beforeSave:e})}addComposerSaveErrorCallback(e){(0,T.addComposerSaveErrorCallback)(e)}serializeToTopic(e,t){c.default.serializeToTopic(e,t)}serializeToDraft(e,t){c.default.serializeToDraft(e,t)}serializeOnCreate(e,t){c.default.serializeOnCreate(e,t)}serializeOnUpdate(e,t){c.default.serializeOnUpdate(e,t)}addCategorySortCriteria(e){(0,g.addCategorySortCriteria)(e)}addCardClickListenerSelector(e){(0,f.addCardClickListenerSelector)(e)}replaceCategoryLinkRenderer(e){(0,r.replaceCategoryLinkRenderer)(e)}replaceTagRenderer(e){(0,X.replaceTagRenderer)(e)}registerCustomLastUnreadUrlCallback(e){(0,Z.registerCustomLastUnreadUrlCallback)(e)}registerHighlightJSLanguage(e,t){(0,G.registerHighlightJSLanguage)(e,t)}registerHighlightJSPlugin(e){(0,G.registerHighlightJSPlugin)(e)}addGlobalNotice(e,t,i){(0,w.addGlobalNotice)(e,t,i)}addDocumentTitleCounter(e){(0,x.addPluginDocumentTitleCounter)(e)}decoratePluginOutlet(e,t,i){(0,P.addPluginOutletDecorator)(e,t,i||{})}decorateTopicTitle(e){(0,E.addTopicTitleDecorator)(e)}addCategoryLinkIcon(e){(0,r.addExtraIconRenderer)(e)}addToHeaderIcons(e){(0,l.addToHeaderIcons)(e)}addQuickAccessProfileItem(e){(0,M.addUserMenuProfileTabItem)(e)}addFeaturedLinkMetaDecorator(e){(0,_.addFeaturedLinkMetaDecorator)(e)}addAdvancedSearchOptions(e){(0,h.addAdvancedSearchOptions)(e)}addSaveableUserField(e){(0,s.addSaveableUserField)(e)}addSaveableUserOptionField(e){(0,s.addSaveableUserOptionField)(e)}addPluginReviewableParam(e,t){(0,O.addPluginReviewableParam)(e,t)}setNewCategoryDefaultColors(e,t){(0,ee.setNewCategoryDefaultColors)(e,t)}addSearchResultsCallback(e){(0,te.addSearchResultsCallback)(e)}addSearchSuggestion(e){(0,ne.addSearchSuggestion)(e),(0,re.addSearchSuggestion)(e)}downloadCalendar(e,t){(0,se.downloadCalendar)(e,t)}addSearchMenuOnKeyDownCallback(e){(0,ie.addOnKeyDownCallback)(e)}addQuickSearchRandomTip(e){(0,ne.addQuickSearchRandomTip)(e)}removeDefaultQuickSearchRandomTips(e){(0,ne.removeDefaultQuickSearchRandomTips)(e)}addUserSearchOption(e){oe.CUSTOM_USER_SEARCH_OPTIONS.push(e)}dispatchWidgetAppEvent(e,t,i){this.modifyClass(`component:${e}`,{pluginId:`${e}/${t}/${i}`,didInsertElement(){this._super(),this.dispatch(i,t)}},{ignoreMissing:!0})}customizeComposerText(e){(0,c.registerCustomizationCallback)(e)}addCommunitySectionLink(e,t){(0,ae.addSectionLink)(e,t)}registerUserCategorySectionLinkCountable(e){let{badgeTextFunction:t,route:i,routeQuery:n,shouldRegister:r,refreshCountFunction:o,prioritizeOverDefaults:s}=e;(0,ce.registerCustomCountable)({badgeTextFunction:t,route:i,routeQuery:n,shouldRegister:r,refreshCountFunction:o,prioritizeOverDefaults:s})}registerCustomCategorySectionLinkLockIcon(e){return(0,ce.registerCustomCategoryLockIcon)(e)}registerCustomCategorySectionLinkPrefix(e){let{categoryId:t,prefixType:i,prefixValue:n,prefixColor:r}=e;(0,ce.registerCustomCategorySectionLinkPrefix)({categoryId:t,prefixType:i,prefixValue:n,prefixColor:r})}registerCustomTagSectionLinkPrefixIcon(e){let{tagName:t,prefixValue:i,prefixColor:n}=e;(0,de.registerCustomTagSectionLinkPrefixIcon)({tagName:t,prefixValue:i,prefixColor:n})}refreshUserSidebarCategoriesSectionCounts(){const e=this._lookupContainer("service:app-events")
e?.trigger(pe.REFRESH_COUNTS_APP_EVENT_NAME)}addSidebarSection(e){(0,ue.addSidebarSection)(e)}registerNotificationTypeRenderer(e,t){(0,he.registerNotificationTypeRenderer)(e,t)}registerUserMenuTab(e){(0,fe.registerUserMenuTab)(e)}registerModelTransformer(e,t){(0,ge.registerModelTransformer)(e,t)}addUserMessagesNavigationDropdownRow(e,t,i){(0,be.registerCustomUserNavMessagesDropdownRow)(e,t,i)}addFullPageSearchType(e,t,i){(0,ye.registerFullPageSearchType)(e,t,i)}registerHashtagType(e,t){(0,_e.registerHashtagType)(e,t)}}let xe=0,Pe=new WeakMap
function Oe(e,t,i,n){if(n){Pe.has(e)||Pe.set(e,new Set),n=`${n}:${t}`
let i=Pe.get(e)
if(i.has(n))return
i.add(n)}else console.warn((0,le.consolePrefix)(),"`decorateCooked` should be supplied with an `id` option to avoid memory leaks in test mode. The id will be used to ensure the decorator is only applied once.")
const r={}
let o="_decorate_"+xe++
n&&(o+=`_${n.replaceAll(/\W/g,"_")}`),r[o]=(0,H.on)(t,(function(e){(e=e||this.element)&&i(e)})),e.reopen(r)}})),define("discourse/lib/plugin-connectors",["exports","discourse-common/lib/raw-templates","discourse-common/lib/deprecated","discourse-common/lib/discourse-template-map","@glimmer/manager","@ember/component/template-only"],(function(e,t,i,n,r,o){function s(e,t){a(e,t),t.add(e)}function l(e,t,i){a(e,t),t.set(e,i)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function c(e,t,i){return function(e,t,i){if(t.set)t.set.call(e,i)
else{if(!t.writable)throw new TypeError("attempted to set read only private field")
t.value=i}}(e,p(e,t,"set"),i),i}function d(e,t){return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,p(e,t,"get"))}function p(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}let m,h
Object.defineProperty(e,"__esModule",{value:!0}),e.buildArgsWithDeprecations=function(e,t){const n={}
return Object.keys(e).forEach((t=>{Object.defineProperty(n,t,{value:e[t]})})),Object.keys(t).forEach((e=>{Object.defineProperty(n,e,{get:()=>((0,i.default)(`${e} is deprecated`,{id:"discourse.plugin-connector.deprecated-arg"}),t[e])})})),n},e.clearCache=function(){m=null,h=null},e.connectorsFor=j,e.expireConnectorCache=function(){m=null},e.extraConnectorClass=function(e,t){g[e]=t},e.rawConnectorsFor=function(e){h||(h=(0,t.buildRawConnectorCache)(b))
return h[e]||[]},e.renderedConnectorsFor=function(e,t,i){return j(e).filter((e=>{const n=e.connectorClass?.shouldRender
return!n||n(t,i)}))},e.resetExtraClasses=function(){g={},f=void 0}
let f,g={}
function b(e,t){e.forEach((function(e){const i=e.split("/")
if(i.includes("connectors")){const n=i[i.length-2],r=i[i.length-1]
t(n,e,r)}}))}var y=new WeakMap,_=new WeakMap,v=new WeakSet,w=new WeakSet,k=new WeakSet
class x{constructor(e,t,i,n){s(this,k),s(this,w),s(this,v),l(this,y,{writable:!0,value:void 0}),l(this,_,{writable:!0,value:void 0}),this.outletName=e,this.connectorName=t,this.connectorClass=i,this.template=n}get componentClass(){return d(this,y)??c(this,y,u(this,v,P).call(this))}get templateOnly(){return d(this,_)??c(this,_,u(this,w,O).call(this))}get classicClassNames(){return`${this.outletName}-outlet ${this.connectorName}`}}function P(){const e=this.connectorClass
return!(!e||!(0,r.hasInternalComponentManager)(e))&&(function(e,t){try{(0,r.setComponentTemplate)(e,t)}catch(i){if((0,r.getComponentTemplate)(t)!==e)throw i}}(this.template,e),u(this,k,T).call(this),e)}function O(){const e=(0,o.default)()
return(0,r.setComponentTemplate)(this.template,e),u(this,k,T).call(this),e}function T(){for(const e of["actions","setupComponent","teardownComponent"])this.connectorClass?.[e]&&(0,i.default)(`actions, setupComponent and teardownComponent hooks cannot be used with Glimmer plugin outlets. Define a component class instead. (${this.outletName}/${this.connectorName}).`,{id:"discourse.plugin-outlet-classic-hooks"})}function S(){m={},b(n.default.keys(),((e,t,i)=>{m[e]||=[]
const r=require(n.default.resolve(t)).default,o=function(e,t){f||(f={},b(Object.keys(require._eak_seen),((e,t,i)=>{const n=requirejs(t).default
n.__id||(f[`${e}/${i}`]=n)})))
const i=`${e}/${t}`
return g[i]||f[i]}(e,i)
m[e].push(new x(e,i,o,r))}))}function j(e){return m||S(),m[e]||[]}})),define("discourse/lib/posts-with-placeholders",["exports","@ember/array","@ember/object","discourse-common/utils/decorators"],(function(e,t,i,n){var r
function o(e){this.viewName=e}Object.defineProperty(e,"__esModule",{value:!0}),e.Placeholder=o,e.default=void 0
var s,l,a,u,c,d,p=i.default.extend(t.default,(s=r={posts:null,_appendingIds:null,init(){this._appendingIds={}},length(){return this.get("posts.length")+Object.keys(this._appendingIds||{}).length},nextObject(e){return this.objectAt(e)},_changeArray(e,t,i,n){this.arrayContentWillChange(t,i,n),e(),this.arrayContentDidChange(t,i,n),this.notifyPropertyChange("length")},clear(e){this._changeArray(e,0,this.get("posts.length"),0)},appendPost(e){this._changeArray(e,this.get("posts.length"),0,1)},removePost(e){this._changeArray(e,this.get("posts.length")-1,1,0)},refreshAll(e){const t=this.get("posts.length")
this._changeArray(e,0,t,t)},appending(e){this._changeArray((()=>{const t=this._appendingIds
e.forEach((e=>t[e]=!0))}),this.length,0,e.length)},finishedAppending(e){this._changeArray((()=>{const t=this._appendingIds
e.forEach((e=>delete t[e]))}),this.get("posts.length")-e.length,e.length,e.length)},finishedPrepending(e){this._changeArray((function(){}),0,0,e.length)},objectAt(e){const t=this.posts
return e<t.length?t[e]:new o("post-placeholder")}},l="length",a=[n.default],u=Object.getOwnPropertyDescriptor(r,"length"),c=r,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r))
e.default=p})),define("discourse/lib/preload-store",["exports","rsvp"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={data:new Map,store(e,t){this.data.set(e,t)},getAndRemove(e,i){if(this.data.has(e)){let i=t.Promise.resolve(this.data.get(e))
return this.data.delete(e),i}return i?new t.Promise((function(e,t){let n=i()
n&&n.then?n.then((t=>e(t))).catch((e=>t(e))):e(n)})):t.Promise.resolve(null)},get(e){return this.data.get(e)},remove(e){this.data.delete(e)},reset(){this.data=new Map}}
e.default=i})),define("discourse/lib/public-js-versions",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PUBLIC_JS_VERSIONS=void 0
e.PUBLIC_JS_VERSIONS={"ace/ace.js":"ace.js/1.4.13/ace.js","jsoneditor.js":"@json-editor/json-editor/2.10.0/jsoneditor.js","chart.min.js":"chart.js/3.5.1/chart.min.js","chartjs-plugin-datalabels.min.js":"chartjs-plugin-datalabels/2.2.0/chartjs-plugin-datalabels.min.js","diffhtml.min.js":"diffhtml/1.0.0-beta.29/diffhtml.min.js","jquery.magnific-popup.min.js":"magnific-popup/1.1.0/jquery.magnific-popup.min.js","pikaday.js":"pikaday/1.8.2/pikaday.js"}})),define("discourse/lib/push-notifications",["exports","discourse/lib/key-value-store","discourse/lib/ajax","discourse-common/lib/helpers"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.isPushNotificationsEnabled=function(e){return e&&!e.isInDoNotDisturb()&&a()&&r.getItem(o(e))},e.isPushNotificationsSupported=a,e.keyValueStore=void 0,e.register=function(e,t,i){if(!a())return
if("denied"===Notification.permission||!e)return
navigator.serviceWorker.ready.then((t=>{t.pushManager.getSubscription().then((t=>{t&&(s(t,!1),r.setItem(o(e),"subscribed")),function(e){window.addEventListener("focus",l),document&&document.addEventListener("scroll",l)
e.on("page:changed",l)}(i)})).catch((e=>{console.error(e)}))})),navigator.serviceWorker.addEventListener("message",(e=>{if("url"in e.data){const i=e.data.url
t.handleURL(i)}}))},e.subscribe=function(e,t){if(!a())return
navigator.serviceWorker.ready.then((i=>{i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:new Uint8Array(t.split("|"))}).then((t=>{s(t,!0),e&&e()})).catch((e=>{console.error(e)}))}))},e.unsubscribe=function(e,t){if(!a())return
r.setItem(o(e),""),navigator.serviceWorker.ready.then((e=>{e.pushManager.getSubscription().then((e=>{e&&e.unsubscribe().then((t=>{t&&(0,i.ajax)("/push_notifications/unsubscribe",{type:"POST",data:{subscription:e.toJSON()}})}))})).catch((e=>{console.error(e)})),t&&t()}))},e.userSubscriptionKey=o
const r=new t.default("discourse_push_notifications_")
function o(e){return`subscribed-${e.get("id")}`}function s(e,t){(0,i.ajax)("/push_notifications/subscribe",{type:"POST",data:{subscription:e.toJSON(),send_confirmation:t}})}function l(){"controller"in navigator.serviceWorker&&null!=navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({lastAction:Date.now()})}function a(){let e=(0,n.helperContext)().capabilities
return!!("serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"undefined"!=typeof Notification&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window&&!e.isAppWebview&&navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state)}e.keyValueStore=r})),define("discourse/lib/put-cursor-at-end",["exports","discourse-common/lib/helpers","discourse/lib/safari-hacks"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){(0,t.helperContext)().capabilities.isApple&&i.default.touchstartEvent?i.default.touchstartEvent(e):e.focus()
const n=e.value.length
e.setSelectionRange(n,n),e.scrollTop=999999}})),define("discourse/lib/pwa-utils",["exports","rsvp"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.getNativeContact=function(e,i,n){return new t.Promise(((t,r)=>{if(!e.hasContactPicker)return r()
navigator.contacts.select(i,{multiple:n}).then(t).catch(r)}))},e.nativeShare=function(e,i){return new t.Promise(((t,n)=>{(e.isIOS||e.isAndroid||e.isWinphone)&&"https:"===window.location.protocol&&void 0!==window.navigator.share?window.navigator.share(i).then(t).catch((e=>{"AbortError"===e.name||n()})):n()}))}})),define("discourse/lib/quote-state",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(){this.clear()}selected(e,t,i){this.postId=e,this.buffer=t,this.opts=i}clear(){this.buffer="",this.postId=null,this.opts=null}}})),define("discourse/lib/quote",["exports","discourse/lib/settings","discourse-common/lib/helpers"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.QUOTE_REGEXP=void 0,e.buildQuote=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
if(!e||!n)return""
let o=e.name
r.username&&r.username!==e.username&&(o=null)
const s=[(0,t.prioritizeNameFallback)(o,r.username||e.username),`post:${r.post||e.post_number}`,`topic:${r.topic||e.topic_id}`]
r.full&&s.push("full:true");(0,i.helperContext)().siteSettings.display_name_on_posts&&!(0,i.helperContext)().siteSettings.prioritize_username_in_ux&&o&&s.push(`username:${r.username||e.username}`)
return`[quote="${s.join(", ")}"]\n${n.trim()}\n[/quote]\n\n`}
e.QUOTE_REGEXP=/\[quote=([^\]]*)\]((?:[\s\S](?!\[quote=[^\]]*\]))*?)\[\/quote\]/im})),define("discourse/lib/register-service-worker",["exports","discourse-common/lib/get-url"],(function(e,t){function i(e){(0,t.isAbsoluteURL)(e.scope)&&e.unregister()}Object.defineProperty(e,"__esModule",{value:!0}),e.registerServiceWorker=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
window.isSecureContext&&"serviceWorker"in navigator&&(e?(navigator.serviceWorker.getRegistrations().then((t=>{for(let n of t)n.active&&!n.active.scriptURL.includes(e)&&i(n)})),navigator.serviceWorker.register((0,t.default)(`/${e}`),n).catch((e=>{console.info(`Failed to register Service Worker: ${e}`)}))):navigator.serviceWorker.getRegistrations().then((e=>{for(let t of e)i(t)})))}})),define("discourse/lib/register-topic-footer-button",["exports","I18n","@ember/object"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.clearTopicFooterButtons=function(){n=[]},e.getTopicFooterButtons=function(){const e=[].concat(...Object.values(n).map((e=>e.dependentKeys)).filter((e=>e)))
return(0,i.computed)(...e,{get(){const e=e=>e&&"function"==typeof e,i=(t,i)=>{const n=t[i]
return e(n)?n.apply(this):n}
return Object.values(n).filter((e=>i(e,"displayed"))).map((n=>{const r={}
r.id=n.id,r.type=n.type
const o=i(n,"label")
r.label=o?t.default.t(o):i(n,"translatedLabel")
const s=i(n,"ariaLabel")
if(s)r.ariaLabel=t.default.t(s)
else{const e=i(n,"translatedAriaLabel")
r.ariaLabel=e||r.label}const l=i(n,"title")
if(r.title=l?t.default.t(l):i(n,"translatedTitle"),r.classNames=(i(n,"classNames")||[]).join(" "),r.icon=i(n,"icon"),r.disabled=i(n,"disabled"),r.dropdown=i(n,"dropdown"),r.priority=i(n,"priority"),e(n.action))r.action=()=>n.action.apply(this)
else{const e=n.action
r.action=()=>this[e]()}return r}))}})},e.registerTopicFooterButton=function(e){if(!e.id)throw new Error("Attempted to register a topic button with no id.")
if(n[e.id])return
const t=Object.assign({type:"inline-button",id:null,icon:null,title:null,translatedTitle:null,label:null,translatedLabel:null,ariaLabel:null,translatedAriaLabel:null,dropdown:!1,classNames:[],dependentKeys:[],displayed:!0,disabled:!1,priority:0},e)
if(!t.icon&&!t.title&&!t.translatedTitle)throw new Error(`Attempted to register a topic button: ${e.id} with no icon or title.`)
n[t.id]=t}
let n={}})),define("discourse/lib/register-topic-footer-dropdown",["exports","@ember/object"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.clearTopicFooterDropdowns=function(){i={}},e.getTopicFooterDropdowns=function(){const e=[].concat(...Object.values(i).mapBy("dependentKeys").filter(Boolean))
return(0,t.computed)(...e,{get(){const e=(e,t)=>{const i=e[t]
return(n=i)&&"function"==typeof n?i.apply(this):i
var n}
return Object.values(i).filter((t=>e(t,"displayed"))).map((t=>{const i={}
return i.id=t.id,i.type=t.type,i.classNames=(e(t,"classNames")||[]).join(" "),i.icon=e(t,"icon"),i.disabled=e(t,"disabled"),i.priority=e(t,"priority"),i.content=e(t,"content"),i.value=e(t,"value"),i.action=t.action,i.noneItem=e(t,"noneItem"),i}))}})},e.registerTopicFooterDropdown=function(e){if(!e.id)throw new Error("Attempted to register a topic dropdown with no id.")
if(i[e.id])return
const t=Object.assign({type:"inline-dropdown",id:null,icon:null,content:null,classNames:[],dependentKeys:[],displayed:!0,disabled:!1,priority:0,noneItem:null},e)
if(!t.content)throw new Error(`Attempted to register a topic dropdown: ${e.id} with no content.`)
i[t.id]=t}
let i={}})),define("discourse/lib/render-tag",["exports","discourse/models/user","discourse/lib/utilities","discourse-common/lib/get-url","discourse-common/lib/helpers","pretty-text/sanitizer"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){return s(e,t)},e.defaultRenderTag=l,e.replaceTagRenderer=function(e){s=e}
let s=l
function l(e,s){let l=(0,r.helperContext)().siteSettings
s=s||{}
const a=(0,i.escapeExpression)(e)
e=a.toLowerCase()
const u=["discourse-tag"],c=s.tagName||"a"
let d
if("a"===c&&!s.noHref)if((s.isPrivateMessage||s.pmOnly)&&t.default.current()){d=`/u/${s.tagsForUser?s.tagsForUser:t.default.current().username}/messages/tags/${e}`}else d=`/tag/${e}`
const p=d?` href='${(0,n.default)(d)}' `:"";(l.tag_style||s.style)&&u.push(s.style||l.tag_style),s.size&&u.push(s.size)
let m="<"+c+p+" data-tag-name="+e+(s.description?' title="'+(0,o.escape)(s.description)+'" ':"")+" class='"+u.join(" ")+"'>"+(s.displayName?(0,o.escape)(s.displayName):a)+"</"+c+">"
return s.count&&(m+=" <span class='discourse-tag-count'>x"+s.count+"</span>"),m}}))
define("discourse/lib/render-tags",["exports","I18n","discourse/lib/render-tag"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.addTagsHtmlCallback=function(e,t){n=n||[],r=r||[]
const i=t&&t.priority||0
let o=0
for(;o<r.length&&r[o]>i;)o+=1
r.splice(o,0,i),n.splice(o,0,e)},e.clearTagsHtmlCallbacks=function(){n=null,r=null},e.default=function(e,r){let o,s=e.tags,l="",a=null
const u=e.get("isPrivateMessage")
r&&("list"===r.mode&&(s=e.get("visibleListTags")),r.tagsForUser&&(a=r.tagsForUser),r.tagName&&(o=r.tagName))
let c=null
n&&n.forEach((t=>{const i=t(e,r)
i&&(c?c+=i:c=i)}))
if(c||s&&s.length>0){if(l=`<div class='discourse-tags' role='list' \n                aria-label=${t.default.t("tagging.tags")}>`,s)for(let t=0;t<s.length;t++)l+=(0,i.default)(s[t],{description:e.tags_descriptions&&e.tags_descriptions[s[t]],isPrivateMessage:u,tagsForUser:a,tagName:o})+" "
c&&(l+=c),l+="</div>"}return l}
let n=null,r=null})),define("discourse/lib/render-topic-featured-link",["exports","discourse/models/user","virtual-dom","discourse-common/lib/icon-library"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.addFeaturedLinkMetaDecorator=function(e){r.push(e)},e.default=function(e){const t=o(e)
return t?`<a class="topic-featured-link" rel="${t.rel}" target="${t.target}" href="${t.href}">${(0,n.renderIcon)("string","external-link-alt")} ${t.domain}</a>`:""},e.extractLinkMeta=o,e.topicFeaturedLinkNode=function(e){const t=o(e)
if(t)return(0,i.h)("a.topic-featured-link",{attributes:{href:t.href,rel:t.rel,target:t.target}},[(0,n.renderIcon)("node","external-link-alt"),t.domain])}
const r=[]
function o(e){const i=e.get("featured_link"),n=t.default.currentProp("user_option.external_links_in_new_tab")?"_blank":"",o=e.get("featured_link_root_domain")
let s=e.siteSettings.exclude_rel_nofollow_domains,l="nofollow ugc"
if(s&&(s=s.split("|"),s.includes(o)&&(l=l.replace("nofollow ",""))),!i)return
const a={target:n,href:i,domain:o,rel:l}
return r.length&&r.forEach((e=>e(a))),a}})),define("discourse/lib/reports-loader",["exports","discourse/lib/ajax","discourse-common/lib/debounce"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=[],r=0
var o={enqueue(e,t,r){if(n.length>=20){n.splice(0,1)[0].forEach((e=>{e.runnable()(429)}))}n.push({runnable:()=>r,type:e,params:t}),(0,i.default)(this,this._processQueue,50)},_processQueue(){if(0===n.length)return
if(r>=3)return
r++
const e=n.splice(0,4)
n.length>0&&(0,i.default)(this,this._processQueue,50)
let o={}
e.forEach((e=>{o[e.type]=e.params})),(0,t.ajax)("/admin/reports/bulk",{data:{reports:o}}).then((t=>{e.forEach((e=>{const i=t.reports.findBy("type",e.type)
e.runnable()(i)}))})).catch((t=>{e.forEach((e=>{t.jqXHR&&429===t.jqXHR.status?e.runnable()(429):t.jqXHR&&500===t.jqXHR.status?e.runnable()(500):e.runnable()()}))})).finally((()=>{r--,(0,i.default)(this,this._processQueue,50)}))},_reset(){n=[],r=0}}
e.default=o})),define("discourse/lib/reviewable-types-manager",["exports","discourse/lib/reviewable-types/base","discourse/lib/reviewable-types/flagged-post","discourse/lib/reviewable-types/queued-post","discourse/lib/reviewable-types/user"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.getRenderDirector=function(e,i,n,r,s){return new(o[e]||t.default)({reviewable:i,currentUser:n,siteSettings:r,site:s})}
const o={ReviewableFlaggedPost:i.default,ReviewableQueuedPost:n.default,ReviewableUser:r.default}})),define("discourse/lib/reviewable-types/base",["exports","I18n"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e){let{reviewable:t,currentUser:i,siteSettings:n,site:r}=e
this.reviewable=t,this.currentUser=i,this.siteSettings=n,this.site=r}get actor(){const e=this.reviewable.flagger_username
return e||t.default.t("user_menu.reviewable.deleted_user")}get description(){return t.default.t("user_menu.reviewable.default_item",{reviewable_id:this.reviewable.id})}get icon(){return"flag"}}})),define("discourse/lib/reviewable-types/flagged-post",["exports","discourse/lib/reviewable-types/base","@ember/template","I18n","discourse/lib/text"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class o extends t.default{get description(){const e=this.reviewable.topic_fancy_title,t=this.reviewable.post_number
return e&&t?(0,i.htmlSafe)(n.default.t("user_menu.reviewable.post_number_with_topic_title",{post_number:t,title:(0,r.emojiUnescape)(e)})):n.default.t("user_menu.reviewable.deleted_post")}}e.default=o})),define("discourse/lib/reviewable-types/queued-post",["exports","discourse/lib/reviewable-types/base","@ember/template","discourse/lib/utilities","discourse/lib/text","I18n"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class s extends t.default{get actor(){return o.default.t("user_menu.reviewable.queue")}get description(){let e=this.reviewable.topic_fancy_title
return e||(e=(0,n.escapeExpression)(this.reviewable.payload_title)),e=(0,r.emojiUnescape)(e),this.reviewable.is_new_topic?(0,i.htmlSafe)(e):(0,i.htmlSafe)(o.default.t("user_menu.reviewable.new_post_in_topic",{title:e}))}get icon(){return"layer-group"}}e.default=s})),define("discourse/lib/reviewable-types/user",["exports","discourse/lib/reviewable-types/base","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{get description(){return i.default.t("user_menu.reviewable.user_requires_approval",{username:this.reviewable.username})}get icon(){return"user"}}e.default=n})),define("discourse/lib/round",["exports","discourse/lib/decimal-adjust"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i){return(0,t.default)("round",e,i)}})),define("discourse/lib/safari-hacks",["exports","discourse-common/config/environment","discourse-common/lib/debounce","discourse-common/lib/helpers","discourse-common/lib/later"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.isWorkaroundActive=function(){return o}
let o=!1
var s=function e(s){let l=(0,n.helperContext)().capabilities
if(!l.isIOS)return
document.addEventListener("scroll",(()=>{!l.isIpadOS&&o&&window.scrollTo(0,0)}))
let a=0,u=null
e.blur=function(e){o&&(document.body.classList.remove("ios-safari-composer-hacks"),window.scrollTo(0,a),e?.target?.removeEventListener("blur",d),o=!1)}
let c=function(t){u&&("hidden"===document.visibilityState||s.classList.contains("edit-title")||u.classList.contains("select-kit-header")||u.closest(".autocomplete")||"TEXTAREA"===u.nodeName&&document.activeElement===u||u.closest(".d-editor-button-bar")||u.classList.contains("emoji"))||e.blur(t)},d=function(e){(0,i.default)(this,c,e,t.INPUT_DELAY)},p=function(e){void 0===e&&(e=new CustomEvent("no-op")),this.addEventListener("blur",d),s.querySelectorAll(".select-kit.is-expanded > button").forEach((e=>e.click())),s.querySelectorAll(".select-kit > button.is-focused").forEach((e=>e.classList.remove("is-focused"))),window.pageYOffset>0&&(a=window.pageYOffset)
let t=l.isIpadOS?350:150;(0,r.default)((()=>{if(l.isIpadOS){if(window.innerHeight-window.visualViewport.height<75)return}this.disabled||(document.body.classList.add("ios-safari-composer-hacks"),window.scrollTo(0,0),e.preventDefault(),this.focus(),o=!0)}),t)},m=function(e){e&&e.target&&(u=e.target)}
function h(e,t){$(e).data("listening")||(e.addEventListener("touchstart",t),$(e).data("listening",!0))}function f(){h(s,m),s.querySelectorAll("input[type=text], textarea").forEach((e=>{h(e,p)}))}e.touchstartEvent=function(e){p.bind(e)()},new MutationObserver((function(){(0,i.default)(f,100)})).observe(s,{childList:!0,subtree:!0,attributes:!1,characterData:!1})}
e.default=s})),define("discourse/lib/search",["exports","discourse/models/category","@ember/object","I18n","rsvp","discourse/models/post","discourse/models/topic","discourse/models/user","discourse/lib/ajax","discourse-common/lib/object","discourse/lib/text","discourse/lib/utilities","discourse-common/lib/raw-templates","discourse-common/lib/get-url","@ember/utils","discourse/lib/category-tag-search","discourse/lib/url","discourse/lib/user-search"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b){Object.defineProperty(e,"__esModule",{value:!0}),e.addSearchResultsCallback=function(e){y.push(e)},e.applySearchAutocomplete=function(e,t){e.autocomplete((0,u.deepMerge)({template:(0,p.findRawTemplate)("category-tag-autocomplete"),key:"#",width:"100%",treatAsTextarea:!0,autoSelectFirstSuggestion:!1,transformComplete:e=>e.text,dataSource:e=>(0,f.search)(e,t)})),t.enable_mentions&&e.autocomplete((0,u.deepMerge)({template:(0,p.findRawTemplate)("user-selector-autocomplete"),key:"@",width:"100%",treatAsTextarea:!0,autoSelectFirstSuggestion:!1,transformComplete:e=>e.username||e.name,dataSource:e=>(0,b.default)({term:e,includeGroups:!0})}))},e.getSearchKey=function(e){return e.q+"|"+(e.searchContext&&e.searchContext.type||"")+"|"+(e.searchContext&&e.searchContext.id||"")},e.isValidSearchTerm=function(e,t){return!!e&&e.trim().length>=t.min_search_term_length},e.logSearchLinkClick=function(e){(0,a.ajax)("/search/click",{type:"POST",data:{search_log_id:e.searchLogId,search_result_id:e.searchResultId,search_result_type:e.searchResultType}})},e.searchContextDescription=function(e,t){if(e)switch(e){case"topic":return n.default.t("search.context.topic")
case"user":return n.default.t("search.context.user",{username:t})
case"category":return n.default.t("search.context.category",{category:t})
case"tag":return n.default.t("search.context.tag",{tag:t})
case"private_messages":return n.default.t("search.context.private_messages")}},e.searchForTerm=function(e,t){t||(t={})
const i={term:e}
t.typeFilter&&(i.type_filter=t.typeFilter)
t.searchForId&&(i.search_for_id=!0)
t.restrictToArchetype&&(i.restrict_to_archetype=t.restrictToArchetype)
t.searchContext&&(i.search_context={type:t.searchContext.type,id:t.searchContext.id,name:t.searchContext.name})
let n=(0,a.ajax)("/search/query",{data:i})
const r=n.then((e=>v(e,t)))
return r.abort=n.abort,r},e.translateResults=v,e.updateRecentSearches=function(e,t){let i=Object.assign(e.recent_searches||[])
i.includes(t)?i=i.without(t):i.length===_&&i.popObject()
i.unshiftObject(t),e.set("recent_searches",i)}
const y=[],_=5
function v(e,n){n=n||{},e.topics=e.topics||[],e.users=e.users||[],e.posts=e.posts||[],e.categories=e.categories||[],e.tags=e.tags||[],e.groups=e.groups||[]
const a={}
return e.topics=e.topics.map((function(e){return e=s.default.create(e),a[e.id]=e,e})),e.posts=e.posts.map((e=>(e.username&&(e.userPath=(0,g.userPath)(e.username.toLowerCase())),(e=o.default.create(e)).set("topic",a[e.topic_id]),e.blurb=(0,c.emojiUnescape)(e.blurb),e))),e.users=e.users.map((function(e){return l.default.create(e)})),e.categories=e.categories.map((function(e){return t.default.list().findBy("id",e.id||e.model.id)})).compact(),e.groups=e.groups.map((e=>{const t=(0,d.escapeExpression)(e.name),i=(0,d.escapeExpression)(e.full_name||e.display_name),n=(0,h.isEmpty)(e.flair_url)?null:(0,d.escapeExpression)(e.flair_url),r=(0,d.escapeExpression)(e.flair_color),o=(0,d.escapeExpression)(e.flair_bg_color)
return{id:e.id,flairUrl:n,flairColor:r,flairBgColor:o,fullName:i,name:t,url:(0,m.default)(`/g/${t}`)}})).compact(),e.tags=e.tags.map((function(e){const t=(0,d.escapeExpression)(e.name)
return i.default.create({id:t,url:(0,m.default)("/tag/"+t)})})).compact(),y.reduce(((e,t)=>e.then((e=>t(e)))),r.Promise.resolve(e)).then((e=>(function(e,t){e.resultTypes=[]
const i=e.grouped_search_result
i&&[["topic","posts"],["category","categories"],["tag","tags"],["user","users"],["group","groups"]].forEach((function(n){const r=n[0],o=n[1]
if(e[o].length>0){const n="topic"===t.searchContext?.type&&"topic"===r?"post":r,s={results:e[o],componentName:`search-result-${n}`,type:r,more:i[`more_${o}`]}
s.more&&"topic"===n&&t.fullSearchUrl&&(s.more=!1,s.moreUrl=t.fullSearchUrl),e.resultTypes.push(s)}}))}(e,n),i.default.create(e))))}})),define("discourse/lib/settings",["exports","discourse-common/lib/helpers"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.emojiBasePath=function(){let e=(0,t.helperContext)().siteSettings
return""===e.external_emoji_url?"/images/emoji":e.external_emoji_url},e.prioritizeNameFallback=function(e,i){let n=(0,t.helperContext)().siteSettings
return n.display_name_on_posts&&!n.prioritize_username_in_ux&&e||i},e.prioritizeNameInUx=function(e){return!(0,t.helperContext)().siteSettings.prioritize_username_in_ux&&e&&e.trim().length>0}})),define("discourse/lib/sharing",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let t={},i=[]
var n={addSharingId(e){i.push(e)},addSource(e){e.faIcon&&(e.icon=e.faIcon.replace("fa-",""),delete e.faIcon),t[e.id]=e},shareSource(e,t){if(e.clickHandler)e.clickHandler(t.url,t.title)
else{const i=e.generateUrl(t.url,t.title,t.quote),n={menubar:"no",toolbar:"no",resizable:"yes",scrollbars:"yes",width:600,height:e.popupHeight||315},r=Object.keys(n).map((e=>`${e}=${n[e]}`)).join(",")
e.shouldOpenInPopup?window.open(i,"",r):"email"===e.id?window.location.href=i:window.open(i,"_blank")}},activeSources(){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
const n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("|").concat(i).map((e=>t[e])).compact()
return e?n.filter((e=>e.showInPrivateContext)):n},_reset(){t={},i=[]}}
e.default=n})),define("discourse/lib/show-modal",["exports","discourse-common/lib/get-owner"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i){if("string"!=typeof e)throw new Error("`discourse/lib/show-modal` can only be used with the legacy controller-based API. To use the new component-based API, inject the modal service and call modal.show(). https://meta.discourse.org/t/268057")
i=i||{}
let n=(0,t.getOwner)(this)
if(n.isDestroying||n.isDestroyed)return
return n.lookup("service:modal").show(e,i)}})),define("discourse/lib/sidebar/base-community-section-link",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(){let{topicTrackingState:e,currentUser:t,appEvents:i,router:n,siteSettings:r,inMoreDrawer:o,overridenName:s,overridenIcon:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.router=n,this.topicTrackingState=e,this.currentUser=t,this.appEvents=i,this.siteSettings=r,this.inMoreDrawer=o,this.overridenName=s,this.overridenIcon=l}onTopicTrackingStateChange(){}teardown(){}get name(){this._notImplemented()}get shouldDisplay(){return!0}get route(){this._notImplemented()}get href(){}get model(){}get models(){}get query(){return{}}get currentWhen(){}get title(){this._notImplemented()}get text(){this._notImplemented()}get badgeText(){}get prefixType(){return"icon"}get defaultPrefixValue(){return"link"}get prefixValue(){return this.overridenIcon||this.defaultPrefixValue}_notImplemented(){throw"not implemented"}}})),define("discourse/lib/sidebar/base-custom-sidebar-section-link",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{get name(){this._notImplemented()}get classNames(){return""}get route(){this._notImplemented()}get model(){}get models(){}get currentWhen(){}get title(){this._notImplemented()}get text(){this._notImplemented()}get contentCSSClass(){}get prefixType(){}get prefixValue(){}get prefixColor(){}get prefixBadge(){}get prefixCSSClass(){}get suffixType(){}get suffixValue(){}get suffixCSSClass(){}get hoverType(){}get hoverValue(){}get hoverAction(){}get hoverTitle(){}_notImplemented(){throw"not implemented"}}})),define("discourse/lib/sidebar/base-custom-sidebar-section",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(){let{sidebar:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.sidebar=e}get name(){this._notImplemented()}get text(){this._notImplemented()}get actions(){}get actionsIcon(){}get links(){}get displaySection(){return!0}_notImplemented(){throw"not implemented"}}})),define("discourse/lib/sidebar/common/community-section/about-section-link",["exports","I18n","discourse/lib/sidebar/base-community-section-link"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends i.default{get name(){return"about"}get route(){return"about"}get title(){return t.default.t("sidebar.sections.community.links.about.title")}get text(){return t.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get defaultPrefixValue(){return"info-circle"}}e.default=n})),define("discourse/lib/sidebar/common/community-section/badges-section-link",["exports","I18n","discourse/lib/sidebar/base-community-section-link"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends i.default{get name(){return"badges"}get route(){return"badges"}get title(){return t.default.t("sidebar.sections.community.links.badges.title")}get text(){return t.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return this.siteSettings.enable_badges}get defaultPrefixValue(){return"certificate"}}e.default=n})),define("discourse/lib/sidebar/common/community-section/everything-section-link",["exports","I18n","@glimmer/tracking","discourse/lib/sidebar/base-community-section-link"],(function(e,t,i,n){var r,o,s,l,a,u
function c(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function d(e,t,i){p(e,t),t.set(e,i)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}function h(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let g=(l=new WeakSet,a=new WeakMap,u=new WeakMap,r=class extends n.default{constructor(){var e,t
super(...arguments),d(this,u,{get:_,set:void 0}),d(this,a,{get:y,set:void 0}),p(e=this,t=l),t.add(e),c(this,"totalUnread",o,this),c(this,"totalNew",s,this),h(this,l,b).call(this)}onTopicTrackingStateChange(){h(this,l,b).call(this)}get showCount(){return this.currentUser?.sidebarShowCountOfNewItems}get name(){return"everything"}get query(){return{f:void 0}}get title(){return t.default.t("sidebar.sections.community.links.topics.title")}get text(){return t.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get currentWhen(){return"discovery.latest discovery.new discovery.unread discovery.top"}get badgeText(){if(this.showCount)return m(this,u)&&m(this,a)>0?m(this,a).toString():this.totalUnread>0?t.default.t("sidebar.unread_count",{count:this.totalUnread}):this.totalNew>0?t.default.t("sidebar.new_count",{count:this.totalNew}):void 0}get route(){if(this.currentUser?.sidebarLinkToFilteredList){if(m(this,u)&&m(this,a)>0)return"discovery.new"
if(this.totalUnread>0)return"discovery.unread"
if(this.totalNew>0)return"discovery.new"}return"discovery.latest"}get defaultPrefixValue(){return"layer-group"}get suffixCSSClass(){return"unread"}get suffixType(){return"icon"}get suffixValue(){if(!this.showCount&&(this.totalUnread||this.totalNew))return"circle"}},o=f(r.prototype,"totalUnread",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),s=f(r.prototype,"totalNew",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),r)
function b(){this.currentUser&&(this.totalUnread=this.topicTrackingState.countUnread(),(0===this.totalUnread||m(this,u))&&(this.totalNew=this.topicTrackingState.countNew()))}function y(){return this.totalUnread+this.totalNew}function _(){return!!this.currentUser?.new_new_view_enabled}e.default=g})),define("discourse/lib/sidebar/common/community-section/faq-section-link",["exports","I18n","discourse/lib/sidebar/base-community-section-link"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends i.default{get name(){return"faq"}get route(){return"faq"}get href(){return this.siteSettings.faq_url}get title(){return t.default.t("sidebar.sections.community.links.faq.title")}get text(){return t.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get defaultPrefixValue(){return"question-circle"}}e.default=n})),define("discourse/lib/sidebar/common/community-section/groups-section-link",["exports","I18n","discourse/lib/sidebar/base-community-section-link"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends i.default{get name(){return"groups"}get route(){return"groups"}get title(){return t.default.t("sidebar.sections.community.links.groups.title")}get text(){return t.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return this.siteSettings.enable_group_directory}get defaultPrefixValue(){return"user-friends"}}e.default=n})),define("discourse/lib/sidebar/common/community-section/section",["exports","discourse/lib/sidebar/section-link","@ember/application","@ember/service","@glimmer/tracking","discourse/lib/sidebar/common/community-section/everything-section-link","discourse/lib/sidebar/user/community-section/my-posts-section-link","discourse/lib/sidebar/user/community-section/admin-section-link","discourse/lib/sidebar/common/community-section/about-section-link","discourse/lib/sidebar/common/community-section/faq-section-link","discourse/lib/sidebar/common/community-section/users-section-link","discourse/lib/sidebar/common/community-section/groups-section-link","discourse/lib/sidebar/common/community-section/badges-section-link","discourse/lib/sidebar/user/community-section/review-section-link","discourse/lib/sidebar/custom-community-section-links"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h){var f,g,b,y,_,v,w,k,x,P,O
function T(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function S(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function j(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function C(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function z(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const I={"/latest":o.default,"/about":a.default,"/u":c.default,"/faq":u.default,"/my/activity":s.default,"/review":m.default,"/badges":p.default,"/admin":l.default,"/g":d.default}
let E=(P=new WeakSet,O=new WeakSet,g=z((f=class{constructor(e){let{section:t,owner:n}=e
S(this,O),S(this,P),T(this,"appEvents",g,this),T(this,"currentUser",b,this),T(this,"modal",y,this),T(this,"router",_,this),T(this,"siteSettings",v,this),T(this,"topicTrackingState",w,this),T(this,"links",k,this),T(this,"moreLinks",x,this),j(this,"reorderable",!1),j(this,"hideSectionHeader",!0),(0,i.setOwner)(this,n),this.section=t,this.slug=t.slug,this.callbackId=this.topicTrackingState?.onStateChange((()=>{this.links.forEach((e=>{e.onTopicTrackingStateChange&&e.onTopicTrackingStateChange()}))})),this.apiLinks=h.customSectionLinks.concat(h.secondaryCustomSectionLinks).map((e=>C(this,O,D).call(this,e,{inMoreDrawer:!0}))),this.links=this.section.links.reduce(((e,t)=>{if("primary"===t.segment){const i=C(this,P,M).call(this,t)
i&&e.push(i)}return e}),[]),this.moreLinks=this.section.links.reduce(((e,t)=>{if("secondary"===t.segment){const i=C(this,P,M).call(this,t,!0)
i&&e.push(i)}return e}),[]).concat(this.apiLinks)}teardown(){this.callbackId&&this.topicTrackingState.offStateChange(this.callbackId),[...this.links,...this.moreLinks].forEach((e=>{e.teardown?.()}))}}).prototype,"appEvents",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=z(f.prototype,"currentUser",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=z(f.prototype,"modal",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=z(f.prototype,"router",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=z(f.prototype,"siteSettings",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=z(f.prototype,"topicTrackingState",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=z(f.prototype,"links",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=z(f.prototype,"moreLinks",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f)
function M(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
const n=I[e.value]
return n?C(this,O,D).call(this,n,i,e.name,e.icon):new t.default(e,this,this.router)}function D(e,t,i,n){if(!this.router.isDestroying)return new e({topicTrackingState:this.topicTrackingState,currentUser:this.currentUser,appEvents:this.appEvents,router:this.router,siteSettings:this.siteSettings,inMoreDrawer:t,overridenName:i,overridenIcon:n})}e.default=E})),define("discourse/lib/sidebar/common/community-section/users-section-link",["exports","I18n","discourse/lib/sidebar/base-community-section-link"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends i.default{get name(){return"users"}get route(){return"users"}get title(){return t.default.t("sidebar.sections.community.links.users.title")}get text(){return t.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return this.siteSettings.enable_user_directory&&(this.currentUser||!this.siteSettings.hide_user_profiles_from_public)}get defaultPrefixValue(){return"users"}}e.default=n})),define("discourse/lib/sidebar/custom-community-section-links",["exports","discourse/lib/sidebar/base-community-section-link","discourse/lib/sidebar/route-info-helper"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.addSectionLink=function(e,o){const s=o?r:n
if("function"==typeof e)s.push(e.call(this,t.default))
else{const n=class extends t.default{constructor(){super(...arguments),e.href&&(this.routeInfoHelper=new i.default(this.router,e.href))}get name(){return e.name}get route(){return e.href?this.routeInfoHelper.route:e.route}get models(){if(e.href)return this.routeInfoHelper.models}get query(){if(e.href)return this.routeInfoHelper.query}get text(){return e.text}get title(){return e.title}get prefixValue(){return e.icon||super.prefixValue}}
s.push(n)}},e.customSectionLinks=void 0,e.resetDefaultSectionLinks=function(){n.length=0,r.length=0},e.secondaryCustomSectionLinks=void 0
let n=[]
e.customSectionLinks=n
let r=[]
e.secondaryCustomSectionLinks=r})),define("discourse/lib/sidebar/custom-sections",["exports","discourse/lib/sidebar/base-custom-sidebar-section","discourse/lib/sidebar/base-custom-sidebar-section-link"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.addSidebarSection=function(e){n.push(e.call(this,t.default,i.default))},e.customSections=void 0,e.resetSidebarSection=function(){n.length=0}
const n=[]
e.customSections=n})),define("discourse/lib/sidebar/helpers",["exports","discourse/models/category"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.canDisplayCategory=function(e,i){if(i.allow_uncategorized_topics)return!0
return!t.default.isUncategorized(e)},e.hasDefaultSidebarCategories=function(e){return e.default_navigation_menu_categories.length>0},e.hasDefaultSidebarTags=function(e){return e.default_navigation_menu_tags.length>0}})),define("discourse/lib/sidebar/route-info-helper",["exports"],(function(e){function t(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function i(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=new WeakMap
function r(){let e=[],t=this.routeInfo
do{const{params:i,paramNames:n}=t
e=[...n.map((e=>i[e])),...e]}while(t=t.parent)
return e}e.default=class{constructor(e,i){t(this,n,{get:r,set:void 0}),this.routeInfo=e.recognize(i)}get route(){return this.routeInfo.name}get models(){return i(this,n)}get query(){return this.routeInfo.queryParams}}})),define("discourse/lib/sidebar/section-link",["exports","@glimmer/tracking","discourse-common/utils/decorators","discourse/lib/sidebar/route-info-helper","discourse-common/lib/later"],(function(e,t,i,n,r){var o,s,l
function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function u(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let d=(l=new WeakSet,s=c((o=class{constructor(e,t,i){let{external:r,full_reload:o,icon:u,id:c,name:d,value:p}=e
var m,h,f,g
if(a(this,l),m=this,h="linkDragCss",g=this,(f=s)&&Object.defineProperty(m,h,{enumerable:f.enumerable,configurable:f.configurable,writable:f.writable,value:f.initializer?f.initializer.call(g):void 0}),this.external=r,this.fullReload=o,this.prefixValue=u,this.id=c,this.name=d,this.text=d,this.value=p,this.section=t,!this.externalOrFullReload){const e=new n.default(i,p)
this.route=e.route,this.models=e.models,this.query=e.query}}get shouldDisplay(){return!0}get externalOrFullReload(){return this.external||this.fullReload}didStartDrag(e){(0===e.button||e.targetTouches)&&(this.startMouseY=u(this,l,p).call(this,e),this.willDrag=!0,(0,r.default)((()=>{this.delayedStart(e)}),e.targetTouches?300:250))}delayedStart(e){if(this.willDrag){u(this,l,p).call(this,e)===this.startMouseY&&(e.stopPropagation(),e.preventDefault(),this.mouseY=u(this,l,p).call(this,e),this.linkDragCss="drag",this.section.disable(),this.drag=!0)}}didEndDrag(){this.linkDragCss=null,this.mouseY=null,this.section.enable(),this.section.reorder(),this.willDrag=!1,this.drag=!1}dragMove(e){if(this.startMouseY=u(this,l,p).call(this,e),!this.drag)return
e.stopPropagation(),e.preventDefault()
const t=u(this,l,p).call(this,e),i=t-this.mouseY
this.linkHeight||(this.linkHeight=document.getElementsByClassName("sidebar-section-link-wrapper")[0].clientHeight),i>=this.linkHeight&&this.section.links.indexOf(this)!==this.section.links.length-1&&(this.section.moveLinkDown(this),this.mouseY=t),i<=-this.linkHeight&&0!==this.section.links.indexOf(this)&&(this.section.moveLinkUp(this),this.mouseY=t)}}).prototype,"linkDragCss",[t.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c(o.prototype,"didStartDrag",[i.bind],Object.getOwnPropertyDescriptor(o.prototype,"didStartDrag"),o.prototype),c(o.prototype,"didEndDrag",[i.bind],Object.getOwnPropertyDescriptor(o.prototype,"didEndDrag"),o.prototype),c(o.prototype,"dragMove",[i.bind],Object.getOwnPropertyDescriptor(o.prototype,"dragMove"),o.prototype),o)
function p(e){return Math.round(e.targetTouches?e.targetTouches[0].clientY:e.y)}e.default=d})),define("discourse/lib/sidebar/section",["exports","I18n","discourse/lib/sidebar/section-link","@glimmer/tracking","@ember/application","@ember/service","discourse-common/utils/decorators","discourse/lib/ajax","discourse/components/modal/sidebar-section-form"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m,h
function f(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function g(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let y=(c=b((u=class{constructor(e){let{section:t,owner:n}=e
f(this,"currentUser",c,this),f(this,"modal",d,this),f(this,"router",p,this),f(this,"dragCss",m,this),f(this,"links",h,this),g(this,"reorderable",!0),(0,r.setOwner)(this,n),this.section=t,this.slug=t.slug,this.links=this.section.links.map((e=>new i.default(e,this,this.router)))}get decoratedTitle(){return this.section.title}get indicatePublic(){return this.section.public&&this.currentUser?.staff}get headerActions(){if(!this.section.public||this.currentUser?.staff)return[{action:()=>this.modal.show(a.default,{model:this}),title:t.default.t("sidebar.sections.custom.edit")}]}get headerActionIcon(){return"pencil-alt"}disable(){this.dragCss="disabled"}enable(){this.dragCss=null}moveLinkDown(e){const t=this.links.indexOf(e)+1
this.links=this.links.removeObject(e),this.links.splice(t,0,e)}moveLinkUp(e){const t=this.links.indexOf(e)-1
this.links=this.links.removeObject(e),this.links.splice(t,0,e)}reorder(){return(0,l.ajax)("/sidebar_sections/reorder",{type:"POST",contentType:"application/json",dataType:"json",data:JSON.stringify({sidebar_section_id:this.section.id,links_order:this.links.map((e=>e.id))})})}}).prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=b(u.prototype,"modal",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(u.prototype,"router",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=b(u.prototype,"dragCss",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=b(u.prototype,"links",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b(u.prototype,"disable",[s.bind],Object.getOwnPropertyDescriptor(u.prototype,"disable"),u.prototype),b(u.prototype,"enable",[s.bind],Object.getOwnPropertyDescriptor(u.prototype,"enable"),u.prototype),b(u.prototype,"moveLinkDown",[s.bind],Object.getOwnPropertyDescriptor(u.prototype,"moveLinkDown"),u.prototype),b(u.prototype,"moveLinkUp",[s.bind],Object.getOwnPropertyDescriptor(u.prototype,"moveLinkUp"),u.prototype),b(u.prototype,"reorder",[s.bind],Object.getOwnPropertyDescriptor(u.prototype,"reorder"),u.prototype),u)
e.default=y}))
define("discourse/lib/sidebar/user/categories-section/category-section-link",["exports","I18n","@glimmer/tracking","@ember/object","discourse-common/utils/decorators","discourse/models/category"],(function(e,t,i,n,r,o){var s,l,a,u
function c(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}function p(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.registerCustomCategoryLockIcon=function(e){b=e},e.registerCustomCategorySectionLinkPrefix=function(e){let{categoryId:t,prefixValue:i,prefixType:n,prefixColor:r}=e
y[t]={prefixValue:i,prefixType:n,prefixColor:r}},e.registerCustomCountable=function(e){let{badgeTextFunction:t,route:i,routeQuery:n,shouldRegister:r,refreshCountFunction:o,prioritizeOverDefaults:s}=e
const l=g.length+1
g.push({propertyName:`customCountableProperty${l}`,badgeTextFunction:t,route:i,routeQuery:n,shouldRegister:r,refreshCountFunction:o,prioritizeOverDefaults:s})},e.resetCustomCategoryLockIcon=function(){b=null},e.resetCustomCategorySectionLinkPrefix=function(){for(let e in y)y.hasOwnProperty(e)&&delete y[e]},e.resetCustomCountables=function(){g.length=0}
const h={propertyName:"unreadAndNewCount",badgeTextFunction:e=>e.toString(),route:"discovery.newCategory",refreshCountFunction:e=>{let{topicTrackingState:t,category:i}=e
return t.countNewAndUnread({categoryId:i.id})}},f=[{propertyName:"totalUnread",badgeTextFunction:e=>t.default.t("sidebar.unread_count",{count:e}),route:"discovery.unreadCategory",refreshCountFunction:e=>{let{topicTrackingState:t,category:i}=e
return t.countUnread({categoryId:i.id})}},{propertyName:"totalNew",badgeTextFunction:e=>t.default.t("sidebar.new_count",{count:e}),route:"discovery.newCategory",refreshCountFunction:e=>{let{topicTrackingState:t,category:i}=e
return t.countNew({categoryId:i.id})}}],g=[]
let b
let y={}
let _=(a=new WeakSet,u=new WeakMap,l=m((s=class{constructor(e){let{category:t,topicTrackingState:i,currentUser:n}=e
var r,o,s,d,m,h,f
s={get:w,set:void 0},c(r=this,o=u),o.set(r,s),function(e,t){c(e,t),t.add(e)}(this,a),d=this,m="activeCountable",f=this,(h=l)&&Object.defineProperty(d,m,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(f):void 0}),this.category=t,this.topicTrackingState=i,this.currentUser=n,this.countables=p(this,a,v).call(this),this.refreshCounts()}get showCount(){return this.currentUser?.sidebarShowCountOfNewItems}refreshCounts(){this.countables=p(this,a,v).call(this),this.activeCountable=this.countables.find((e=>{const t=e.refreshCountFunction({topicTrackingState:this.topicTrackingState,category:this.category})
return(0,n.set)(this,e.propertyName,t),t>0}))}get name(){return this.category.slug}get model(){return`${o.default.slugFor(this.category)}/${this.category.id}`}get currentWhen(){return"discovery.unreadCategory discovery.topCategory discovery.newCategory discovery.latestCategory discovery.category discovery.categoryNone discovery.categoryAll"}get title(){return this.category.description_text}get text(){return this.category.name}get prefixType(){return y[this.category.id]?.prefixType||"span"}get prefixValue(){const e=y[this.category.id]?.prefixValue
return e||(this.category.parentCategory?.color?[this.category.parentCategory?.color,this.category.color]:[this.category.color])}get prefixColor(){return y[this.category.id]?.prefixColor||this.category.color}get prefixBadge(){if(this.category.read_restricted)return b||"lock"}get badgeText(){if(!this.showCount)return
const e=this.activeCountable
return e?e.badgeTextFunction((0,n.get)(this,e.propertyName)):void 0}get route(){if(this.currentUser?.sidebarLinkToFilteredList){const e=this.activeCountable
if(e)return e.route}return"discovery.category"}get query(){if(this.currentUser?.sidebarLinkToFilteredList){const e=this.activeCountable
if(e?.routeQuery)return e.routeQuery}}get suffixCSSClass(){return"unread"}get suffixType(){return"icon"}get suffixValue(){if(!this.showCount&&this.activeCountable)return"circle"}}).prototype,"activeCountable",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(s.prototype,"refreshCounts",[r.bind],Object.getOwnPropertyDescriptor(s.prototype,"refreshCounts"),s.prototype),s)
function v(){const e=[]
return d(this,u)?e.push(h):e.push(...f),g.length>0&&g.forEach((t=>{t.shouldRegister&&!t.shouldRegister({category:this.category})||(t?.prioritizeOverDefaults({category:this.category,currentUser:this.currentUser})?e.unshift(t):e.push(t))})),e}function w(){return!!this.currentUser?.new_new_view_enabled}e.default=_})),define("discourse/lib/sidebar/user/community-section/admin-section-link",["exports","I18n","discourse/lib/sidebar/base-community-section-link"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends i.default{get name(){return"admin"}get route(){return"admin"}get title(){return t.default.t("sidebar.sections.community.links.admin.content")}get text(){return t.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return!!this.currentUser?.staff}get defaultPrefixValue(){return"wrench"}}e.default=n})),define("discourse/lib/sidebar/user/community-section/admin-section",["exports","I18n","@ember/object","@ember/service","discourse/lib/sidebar/common/community-section/section","discourse/components/modal/sidebar-section-form"],(function(e,t,i,n,r,o){var s,l,a
function u(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let d=(s=class extends r.default{constructor(){super(...arguments),u(this,"modal",l,this),u(this,"navigationMenu",a,this)}moreSectionButtonAction(){return this.modal.show(o.default,{model:this})}get moreSectionButtonText(){return t.default.t("sidebar.sections.community.edit_section."+(this.navigationMenu.isDesktopDropdownMode?"header_dropdown":"sidebar"))}get moreSectionButtonIcon(){return"pencil-alt"}},l=c(s.prototype,"modal",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=c(s.prototype,"navigationMenu",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c(s.prototype,"moreSectionButtonAction",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"moreSectionButtonAction"),s.prototype),s)
e.default=d})),define("discourse/lib/sidebar/user/community-section/my-posts-section-link",["exports","I18n","@glimmer/tracking","discourse/lib/sidebar/base-community-section-link"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s="user-drafts:changed"
let l=(r=class extends n.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="draftCount",n=this,(i=o)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),this.shouldDisplay&&this.appEvents.on(s,this,this._updateDraftCount)}teardown(){this.shouldDisplay&&this.appEvents.off(s,this,this._updateDraftCount)}_updateDraftCount(){this.draftCount=this.currentUser.draft_count}get showCount(){return this.currentUser.sidebarShowCountOfNewItems}get name(){return"my-posts"}get route(){return this._hasDraft?"userActivity.drafts":"userActivity.index"}get currentWhen(){if(this._hasDraft)return"userActivity.index userActivity.drafts"}get model(){return this.currentUser}get title(){return this._hasDraft?t.default.t("sidebar.sections.community.links.my_posts.title_drafts"):t.default.t("sidebar.sections.community.links.my_posts.title")}get text(){return this._hasDraft&&this.currentUser?.new_new_view_enabled?t.default.t("sidebar.sections.community.links.my_posts.content_drafts"):t.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase().replace(" ","_")}.content`,{defaultValue:this.overridenName})}get badgeText(){if(this.showCount&&this._hasDraft)return this.currentUser.new_new_view_enabled?this.draftCount.toString():t.default.t("sidebar.sections.community.links.my_posts.draft_count",{count:this.draftCount})}get _hasDraft(){return this.draftCount>0}get defaultPrefixValue(){return this._hasDraft&&this.currentUser?.new_new_view_enabled?"pencil-alt":"user"}get suffixCSSClass(){return"unread"}get suffixType(){return"icon"}get suffixValue(){if(this._hasDraft&&!this.showCount)return"circle"}get shouldDisplay(){return this.currentUser}},a=r.prototype,u="draftCount",c=[i.tracked],d={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.currentUser?.draft_count}},m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),o=m,r)
var a,u,c,d,p,m
e.default=l})),define("discourse/lib/sidebar/user/community-section/review-section-link",["exports","I18n","discourse/lib/sidebar/base-community-section-link"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends i.default{get shouldDisplay(){return!!this.currentUser?.can_review}get name(){return"review"}get route(){return"review"}get title(){return t.default.t("sidebar.sections.community.links.review.title")}get text(){return t.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get badgeText(){if(this.currentUser.get("reviewable_count")>0)return t.default.t("sidebar.sections.community.links.review.pending_count",{count:this.currentUser.reviewable_count})}get defaultPrefixValue(){return"flag"}}e.default=n})),define("discourse/lib/sidebar/user/messages-section/group-message-section-link",["exports","I18n","discourse/lib/sidebar/user/messages-section/message-section-link"],(function(e,t,i){function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends i.default{constructor(){super(...arguments),n(this,"routeNames",new Set(["userPrivateMessages.group","userPrivateMessages.group.index","userPrivateMessages.group.unread","userPrivateMessages.group.new","userPrivateMessages.group.archive"]))}get name(){return`group-messages-${this.type}`}get class(){return this.group.name}get route(){return this._isInbox?"userPrivateMessages.group":`userPrivateMessages.group.${this.type}`}get currentWhen(){if(this._isInbox)return[...this.routeNames].join(" ")}get models(){return[this.currentUser,this.group.name]}get text(){return this._isInbox?this.group.name:this.count>0?t.default.t(`sidebar.sections.messages.links.${this.type}_with_count`,{count:this.count}):t.default.t(`sidebar.sections.messages.links.${this.type}`)}pageChanged(e){let{currentRouteName:t,currentRouteParentParams:i,privateMessageTopic:n}=e
this._isInbox||(n?.allowedGroups?.some((e=>e.name===this.group.name))?this.setDisplayState=!0:this.setDisplayState=this.routeNames.has(t)&&i.name.toLowerCase()===this.group.name.toLowerCase())}}e.default=r})),define("discourse/lib/sidebar/user/messages-section/message-section-link",["exports","@glimmer/tracking","discourse/components/sidebar/user/messages-section"],(function(e,t,i){var n,r,o
function s(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let a=(r=l((n=class{constructor(e){let{group:t,currentUser:i,type:n,pmTopicTrackingState:l}=e
s(this,"shouldDisplay",r,this),s(this,"count",o,this),this.group=t,this.currentUser=i,this.type=n,this.pmTopicTrackingState=l}refreshCount(){this._refreshCount()}_refreshCount(){this.shouldDisplay&&this._shouldTrack&&(this.count=this.pmTopicTrackingState.lookupCount(this.type,{inboxFilter:this.group?"group":"user",groupName:this.group?.name}))}set setDisplayState(e){const t=this.shouldDisplay!==e
this.shouldDisplay=e,t&&this._refreshCount()}get inboxFilter(){throw"not implemented"}expand(){this._isInbox||(this.setDisplayState=!0)}collapse(){this._isInbox||(this.setDisplayState=!1)}pageChanged(e){let{currentRouteName:t,currentRouteParams:i,privateMessageTopic:n}=e
throw"not implemented"}get _isInbox(){return this.type===i.INBOX}get _shouldTrack(){return this.type===i.NEW||this.type===i.UNREAD}get prefixType(){if(this._isInbox)return"icon"}get prefixValue(){if(this._isInbox)return"inbox"}}).prototype,"shouldDisplay",[t.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this._isInbox}}),o=l(n.prototype,"count",[t.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),n)
e.default=a})),define("discourse/lib/sidebar/user/messages-section/personal-message-section-link",["exports","I18n","discourse/lib/sidebar/user/messages-section/message-section-link"],(function(e,t,i){function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends i.default{constructor(){super(...arguments),n(this,"routeNames",new Set(["userPrivateMessages.user","userPrivateMessages.user.index","userPrivateMessages.user.unread","userPrivateMessages.user.sent","userPrivateMessages.user.new","userPrivateMessages.user.archive"]))}get name(){return`personal-messages-${this.type}`}get class(){return"personal-messages"}get route(){return this._isInbox?"userPrivateMessages.user.index":`userPrivateMessages.user.${this.type}`}get currentWhen(){if(this._isInbox)return[...this.routeNames].join(" ")}get model(){return this.currentUser}get text(){return this.count>0?t.default.t(`sidebar.sections.messages.links.${this.type}_with_count`,{count:this.count}):t.default.t(`sidebar.sections.messages.links.${this.type}`)}pageChanged(e){let{currentRouteName:t,privateMessageTopic:i}=e
this._isInbox||(this.setDisplayState=0===i?.allowedGroups?.length||this.routeNames.has(t))}}e.default=r})),define("discourse/lib/sidebar/user/tags-section/base-tag-section-link",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.registerCustomTagSectionLinkPrefixIcon=function(e){let{tagName:i,prefixValue:n,prefixColor:r}=e
t[i]={prefixValue:n,prefixColor:r}},e.resetCustomTagSectionLinkPrefixIcons=function(){for(let e in t)t.hasOwnProperty(e)&&delete t[e]}
let t={}
e.default=class{constructor(e){let{tagName:t,currentUser:i}=e
this.tagName=t,this.currentUser=i}get name(){return this.tagName}get text(){return this.tagName}get prefixType(){return"icon"}get prefixValue(){return t[this.tagName]?.prefixValue||"tag"}get prefixColor(){return t[this.tagName]?.prefixColor}}})),define("discourse/lib/sidebar/user/tags-section/pm-tag-section-link",["exports","discourse/lib/sidebar/user/tags-section/base-tag-section-link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{get models(){return[this.currentUser,this.tagName]}get route(){return"userPrivateMessages.tags.show"}}e.default=i})),define("discourse/lib/sidebar/user/tags-section/tag-section-link",["exports","I18n","@glimmer/tracking","discourse-common/utils/decorators","discourse/lib/sidebar/user/tags-section/base-tag-section-link"],(function(e,t,i,n,r){var o,s,l,a,u
function c(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function d(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function p(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let h=(a=new WeakMap,u=new WeakMap,o=class extends r.default{constructor(e){let{topicTrackingState:t}=e
super(...arguments),d(this,u,{get:g,set:void 0}),d(this,a,{get:f,set:void 0}),c(this,"totalUnread",s,this),c(this,"totalNew",l,this),this.topicTrackingState=t,this.refreshCounts()}refreshCounts(){this.totalUnread=this.topicTrackingState.countUnread({tagId:this.tagName}),(0===this.totalUnread||p(this,u))&&(this.totalNew=this.topicTrackingState.countNew({tagId:this.tagName}))}get showCount(){return this.currentUser?.sidebarShowCountOfNewItems}get models(){return[this.tagName]}get route(){if(this.currentUser?.sidebarLinkToFilteredList){if(p(this,u)&&p(this,a)>0)return"tag.showNew"
if(this.totalUnread>0)return"tag.showUnread"
if(this.totalNew>0)return"tag.showNew"}return"tag.show"}get currentWhen(){return"tag.show tag.showNew tag.showUnread tag.showTop"}get badgeText(){if(this.showCount)return p(this,u)&&p(this,a)>0?p(this,a).toString():this.totalUnread>0?t.default.t("sidebar.unread_count",{count:this.totalUnread}):this.totalNew>0?t.default.t("sidebar.new_count",{count:this.totalNew}):void 0}get suffixCSSClass(){return"unread"}get suffixType(){return"icon"}get suffixValue(){if(!this.showCount&&(this.totalUnread||this.totalNew))return"circle"}},s=m(o.prototype,"totalUnread",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),l=m(o.prototype,"totalNew",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),m(o.prototype,"refreshCounts",[n.bind],Object.getOwnPropertyDescriptor(o.prototype,"refreshCounts"),o.prototype),o)
function f(){return this.totalUnread+this.totalNew}function g(){return!!this.currentUser?.new_new_view_enabled}e.default=h})),define("discourse/lib/source-identifier",["exports","discourse-common/lib/get-url","discourse/lib/preload-store","discourse-common/config/environment"],(function(e,t,i,n){function r(e){if(!e||!e.stack)try{throw new Error("Source identification error")}catch(r){e=r}if(!e.stack)return
const t=e.stack.match(/\/theme-javascripts\/[\w-]+\.js/g)||[]
for(const n of t){const e=document.querySelector(`script[src*="${n}"`)
if(e?.dataset.themeId)return{type:"theme",...o(e.dataset.themeId)}}let i
return i=i||e.stack.match(/plugins\/([\w-]+)\//)?.[1],(0,n.isDevelopment)()&&(i=i||e.stack.match(/assets\/plugins\/([\w-]+)\.js/)?.[1]),i=i||e.stack.match(/assets\/plugins\/_?([\w-]+)-[0-9a-f]+(?:\.br)?\.js/)?.[1],i?{type:"plugin",name:i}:void 0}function o(e){return{id:e,name:i.default.get("activatedThemes")?.[e]||`(theme-id: ${e})`,path:(0,t.default)(`/admin/customize/themes/${e}?safe_mode=no_themes`)}}Object.defineProperty(e,"__esModule",{value:!0}),e.consolePrefix=function(e,t){if((t=t||r(e))&&"theme"===t.type)return`[THEME ${t.id} '${t.name}']`
if(t&&"plugin"===t.type)return`[PLUGIN ${t.name}]`
return""},e.default=r,e.getThemeInfo=o})),define("discourse/lib/sticky-avatars",["exports","discourse/components/mount-widget","discourse/models/site","discourse-common/utils/decorators","discourse/lib/offset-calculator","@ember/application","@ember/runloop"],(function(e,t,i,n,r,o,s){var l
function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let c=(u((l=class{static init(e){return new this(e).init()}constructor(e){a(this,"stickyClass","sticky-avatar"),a(this,"topicPostSelector","#topic .post-stream .topic-post"),a(this,"intersectionObserver",null),a(this,"direction","⬇️"),a(this,"prevOffset",-1),(0,o.setOwner)(this,e)}init(){if(i.default.currentProp("mobileView")||!("IntersectionObserver"in window))return
const e=(0,o.getOwner)(this).lookup("service:app-events")
return e.on("topic:current-post-scrolled",this._handlePostNodes),e.on("topic:scrolled",this._handleScroll),e.on("page:topic-loaded",this._initIntersectionObserver),(0,t.addWidgetCleanCallback)("post-stream",this._clearIntersectionObserver),this}destroy(){}_handleScroll(e){e<=0?(this.direction="⬇️",document.querySelectorAll(`${this.topicPostSelector}.${this.stickyClass}`).forEach((e=>e.classList.remove(this.stickyClass)))):e>this.prevOffset?this.direction="⬇️":this.direction="⬆️",this.prevOffset=e}_handlePostNodes(){this._clearIntersectionObserver(),this._initIntersectionObserver(),(0,s.schedule)("afterRender",(()=>{document.querySelectorAll(this.topicPostSelector).forEach((e=>{this.intersectionObserver.observe(e)
const t=e.querySelector(".topic-avatar")
if(!t||!e.querySelector("#post_1"))return
const i=e.querySelector(".topic-map")
i&&(t.style.marginBottom=`${i.clientHeight}px`)}))}))}_initIntersectionObserver(){(0,s.schedule)("afterRender",(()=>{const e=(0,r.headerOffset)()<=0?"0px":`-${(0,r.headerOffset)()}px`
this.intersectionObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(!e.isIntersecting||1===e.intersectionRatio)return void e.target.classList.remove(this.stickyClass)
const t=e.target.querySelector(".contents")?.clientHeight;("⬆️"===this.direction||t>window.innerHeight-(0,r.headerOffset)())&&e.target.classList.add(this.stickyClass)}))}),{threshold:[0,1],rootMargin:`${e} 0px 0px 0px`})}))}_clearIntersectionObserver(){this.intersectionObserver?.disconnect(),this.intersectionObserver=null}}).prototype,"_handleScroll",[n.bind],Object.getOwnPropertyDescriptor(l.prototype,"_handleScroll"),l.prototype),u(l.prototype,"_handlePostNodes",[n.bind],Object.getOwnPropertyDescriptor(l.prototype,"_handlePostNodes"),l.prototype),u(l.prototype,"_initIntersectionObserver",[n.bind],Object.getOwnPropertyDescriptor(l.prototype,"_initIntersectionObserver"),l.prototype),u(l.prototype,"_clearIntersectionObserver",[n.bind],Object.getOwnPropertyDescriptor(l.prototype,"_clearIntersectionObserver"),l.prototype),l)
e.default=c})),define("discourse/lib/svg-sprite-loader",["exports","discourse/lib/load-script"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.loadSprites=function(e,n){let r=document.getElementById(i)
if(!r){r=document.createElement("div"),r.id=i
const e=document.querySelector("discourse-assets-icons")
e?.appendChild(r)}let o=r.querySelector(`.${n}`)
o||(o=document.createElement("div"),o.className=n,r.appendChild(o));(0,t.default)(e).then((()=>{o.innerHTML=window.__svg_sprite,delete window.__svg_sprite}))}
const i="svg-sprites"})),define("discourse/lib/tag-hashtags",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TAG_HASHTAG_POSTFIX=void 0
e.TAG_HASHTAG_POSTFIX="::tag"})),define("discourse/lib/text-direction",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isDocumentRTL=function(){return"rtl"===l()},e.isLTR=function(e){return r.test(e)},e.isRTL=s,e.setTextDirections=function(e){for(let t of e.children)t.textContent&&("ASIDE"===t.tagName&&t.classList.contains("quote")?a(t):t.setAttribute("dir",s(t.textContent)?"rtl":"ltr"))},e.siteDir=l
const t="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿Ⰰ-﬜﷾-﹯﻽-",i="֑-߿יִ-﷽ﹰ-ﻼ",n=new RegExp("^[^"+t+"]*["+i+"]"),r=new RegExp("^[^"+i+"]*["+t+"]")
let o
function s(e){return n.test(e)}function l(){return o||(o=document.documentElement.classList.contains("rtl")?"rtl":"ltr"),o}function a(e){for(let t of e.querySelectorAll(".title"))t.setAttribute("dir",l())
for(let t of e.querySelectorAll("blockquote > p"))t.setAttribute("dir",s(t.textContent)?"rtl":"ltr")}})),define("discourse/lib/text",["exports","pretty-text/pretty-text","pretty-text/emoji","pretty-text/allow-lister","rsvp","discourse/models/session","discourse/lib/utilities","discourse-common/lib/get-url","discourse-common/lib/helpers","@ember/template","discourse/lib/load-script","pretty-text/sanitizer"],(function(e,t,i,n,r,o,s,l,a,u,c,d){function p(e,t){return(0,u.htmlSafe)(h(t).cook(e))}function m(){return new r.Promise((e=>{let t=o.default.currentProp("markdownItURL")
t?(0,c.default)(t).then((()=>e())).catch((e=>{console.error(e)})):e()}))}function h(e){return new t.default(function(e){let i=(0,a.helperContext)()
return e=Object.assign({getURL:l.getURLWithCDN,currentUser:i.currentUser,censoredRegexp:i.site.censored_regexp,customEmojiTranslation:i.site.custom_emoji_translation,emojiDenyList:i.site.denied_emojis,siteSettings:i.siteSettings,formatUsername:s.formatUsername,watchedWordsReplace:i.site.watched_words_replace,watchedWordsLink:i.site.watched_words_link,additionalOptions:i.site.markdown_additional_options},e),(0,t.buildOptions)(e)}(e))}function f(){let e=(0,a.helperContext)().siteSettings,t=(0,a.helperContext)()
if(e.enable_emoji)return{getURL:e=>(0,l.getURLWithCDN)(e),emojiSet:e.emoji_set,enableEmojiShortcuts:e.enable_emoji_shortcuts,inlineEmoji:e.enable_inline_emoji_translation,emojiDenyList:t.site.denied_emojis,emojiCDNUrl:e.external_emoji_url}}function g(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function b(e,t){t(e)&&e.childNodes.forEach((e=>b(e,t)))}Object.defineProperty(e,"__esModule",{value:!0}),e.cook=p,e.cookAsync=function(e,t){return m().then((()=>p(e,t)))},e.emojiUnescape=function(e,t){const n=f()
return n?(0,i.performEmojiUnescape)(e,Object.assign(n,t||{})):e},e.emojiUrlFor=function(e){const t=f()
if(t)return(0,i.buildEmojiUrl)(e,t)},e.excerpt=function(e,t){let i="",n=0
const r=document.createElement("div")
return r.innerHTML=e,b(r,(e=>{if(!(n>=t))if(e.nodeType===Node.TEXT_NODE)if(n+e.textContent.length>t){const r=e.textContent.slice(0,t-n)
i+=g(r),i+="&hellip;",n+=r.length}else i+=g(e.textContent),n+=e.textContent.length
else if("A"===e.tagName)i+=e.outerHTML,n+=e.innerText.length
else{if("IMG"!==e.tagName)return!0
e.classList.contains("emoji")?i+=e.outerHTML:(i+="[image]",n+=7)}})),i},e.generateCookFunction=function(e){return m().then((()=>{const t=h(e)
return e=>t.cook(e)}))},e.generateLinkifyFunction=function(e){return m().then((()=>h(e).opts.engine.linkify))},e.parseAsync=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
return m().then((()=>h(t).opts.engine.parse(e,i)))},e.sanitize=function(e,t){return(0,d.sanitize)(e,new n.default(t))},e.sanitizeAsync=function(e,t){return m().then((()=>h(t).sanitize(e)))}})),define("discourse/lib/theme-selector",["exports","discourse/lib/cookie","I18n","discourse-common/lib/deprecated"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.currentThemeId=function(){return l()[0]},e.currentThemeIds=l,e.currentThemeKey=function(){console&&console.warn&&console.trace&&(0,n.default)("'currentThemeKey' is is deprecated use 'currentThemeId' instead. A theme component may require updating.",{id:"discourse.current-theme-key"})},e.extendThemeCookie=function(){const e=(0,t.default)(o)
e&&(0,t.default)(o,e,{path:"/",expires:s})},e.listThemes=function(e){let t=e.get("user_themes")
if(!t)return null
let n=!!t.findBy("default",!0),r=[]
n||r.push({name:i.default.t("themes.default_description"),id:null})
return t.forEach((e=>{r.push({name:e.name,id:e.theme_id,color_scheme_id:e.color_scheme_id})})),0===r.length?null:r},e.setLocalTheme=function(e,i){(e=e.reject((e=>!e)))&&e.length>0?(0,t.default)(o,`${e.join(",")}|${i}`,{path:"/",expires:s}):(0,t.removeCookie)(o,{path:"/"})}
const r="meta[name=discourse_theme_id]",o="theme_ids",s=365
function l(){const e=[],t=document.querySelector(r)
return t&&t.content.split(",").forEach((t=>{t=parseInt(t,10),isNaN(t)||e.push(t)})),e}})),define("discourse/lib/theme-settings-store",["exports","@ember/object","discourse-common/lib/object"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.getObjectForTheme=function(e){return r[e]},e.getSetting=function(e,i){if(r[e])return(0,t.get)(r[e],i)
return null},e.registerSettings=function(e,t){let{force:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
if(r[e]&&!o)return
n[e]=(0,i.cloneJSON)(t)
const s={}
Object.keys(t).forEach((e=>{Object.defineProperty(s,e,{enumerable:!0,get:()=>t[e],set(i){t[e]=i}})})),r[e]=s},e.resetSettings=function(){Object.keys(n).forEach((e=>{Object.keys(n[e]).forEach((t=>{const o=n[e][t]
r[e][t]=o&&"object"==typeof o?(0,i.cloneJSON)(o):o}))}))}
const n={},r={}})),define("discourse/lib/time-shortcut",["exports","discourse/lib/time-utils","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.TIME_SHORTCUT_TYPES=void 0,e.defaultTimeShortcuts=function(e){const t=r(e)
return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.nextMonth()]},e.extendedDefaultTimeShortcuts=function(e){const t=r(e)
return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.monday(),t.twoWeeks(),t.nextMonth(),t.twoMonths(),t.threeMonths(),t.fourMonths(),t.sixMonths(),t.oneYear(),t.forever()]},e.formatTime=function(e){if(!e.time||!e.timeFormatKey)return null
return e.time.format(i.default.t(e.timeFormatKey))},e.hideDynamicTimeShortcuts=function(e,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
const o=new Set,s=(0,t.now)(i)
s.hour()>=t.LATER_TODAY_CUTOFF_HOUR&&o.add(n.LATER_TODAY);(s.day===t.MOMENT_SUNDAY||s.day()>=t.MOMENT_THURSDAY)&&o.add(n.LATER_THIS_WEEK)
r.suggest_weekends_in_date_pickers&&s.day()!==t.MOMENT_FRIDAY&&s.day()!==t.MOMENT_SATURDAY&&s.day()!==t.MOMENT_SUNDAY||o.add(n.THIS_WEEKEND)
return e.filter((e=>!o.has(e.id)))},e.specialShortcutOptions=function(){const e=r()
return[e.lastCustom(),e.custom(),e.none()]},e.timeShortcuts=r
const n={ONE_HOUR:"one_hour",TWO_HOURS:"two_hours",LATER_TODAY:"later_today",TOMORROW:"tomorrow",THIS_WEEKEND:"this_weekend",NEXT_MONTH:"next_month",ONE_YEAR:"one_year",FOREVER:"forever",CUSTOM:"custom",RELATIVE:"relative",LAST_CUSTOM:"last_custom",NONE:"none",NOW:"now",START_OF_NEXT_BUSINESS_WEEK:"start_of_next_business_week",LATER_THIS_WEEK:"later_this_week",POST_LOCAL_DATE:"post_local_date"}
function r(e){return{oneHour:()=>({id:n.ONE_HOUR,icon:"angle-right",label:"time_shortcut.in_one_hour",time:(0,t.oneHour)(e),timeFormatKey:"dates.time"}),twoHours:()=>({id:n.TWO_HOURS,icon:"angle-right",label:"time_shortcut.in_two_hours",time:(0,t.twoHours)(e),timeFormatKey:"dates.time"}),laterToday:()=>({id:n.LATER_TODAY,icon:"angle-right",label:"time_shortcut.later_today",time:(0,t.laterToday)(e),timeFormatKey:"dates.time"}),tomorrow:()=>({id:n.TOMORROW,icon:"far-sun",label:"time_shortcut.tomorrow",time:(0,t.tomorrow)(e),timeFormatKey:"dates.time_short_day"}),twoDays:()=>({id:"two_days",icon:"angle-right",label:"time_shortcut.two_days",time:(0,t.twoDays)(e),timeFormatKey:"dates.time_short_day"}),laterThisWeek:()=>({id:n.LATER_THIS_WEEK,icon:"angle-double-right",label:"time_shortcut.later_this_week",time:(0,t.laterThisWeek)(e),timeFormatKey:"dates.time_short_day"}),thisWeekend:()=>({id:n.THIS_WEEKEND,icon:"bed",label:"time_shortcut.this_weekend",time:(0,t.thisWeekend)(e),timeFormatKey:"dates.time_short_day"}),monday:()=>({id:n.START_OF_NEXT_BUSINESS_WEEK,icon:"briefcase",label:(0,t.now)(e).day()===t.MOMENT_MONDAY||(0,t.now)(e).day()===t.MOMENT_SUNDAY?"time_shortcut.start_of_next_business_week_alt":"time_shortcut.start_of_next_business_week",time:(0,t.nextBusinessWeekStart)(e),timeFormatKey:"dates.long_no_year"}),nextMonth:()=>({id:n.NEXT_MONTH,icon:"far-calendar-plus",label:"time_shortcut.next_month",time:(0,t.nextMonth)(e),timeFormatKey:"dates.long_no_year"}),twoWeeks:()=>({id:"two_weeks",icon:"far-clock",label:"time_shortcut.two_weeks",time:(0,t.twoWeeks)(e),timeFormatKey:"dates.long_no_year"}),twoMonths:()=>({id:"two_months",icon:"far-calendar-plus",label:"time_shortcut.two_months",time:(0,t.twoMonths)(e),timeFormatKey:"dates.long_no_year"}),threeMonths:()=>({icon:"far-calendar-plus",id:"three_months",label:"time_shortcut.three_months",time:(0,t.threeMonths)(e),timeFormatKey:"dates.long_no_year"}),fourMonths:()=>({id:"four_months",icon:"far-calendar-plus",label:"time_shortcut.four_months",time:(0,t.fourMonths)(e),timeFormatKey:"dates.long_no_year"}),sixMonths:()=>({id:"six_months",icon:"far-calendar-plus",label:"time_shortcut.six_months",time:(0,t.sixMonths)(e),timeFormatKey:"dates.long_with_year"}),oneYear:()=>({id:n.ONE_YEAR,icon:"far-calendar-plus",label:"time_shortcut.one_year",time:(0,t.oneYear)(e),timeFormatKey:"dates.long_with_year"}),forever:()=>({id:n.FOREVER,icon:"gavel",label:"time_shortcut.forever",time:(0,t.thousandYears)(e),timeFormatKey:"dates.long_with_year"}),custom:()=>({icon:"calendar-alt",id:n.CUSTOM,label:"time_shortcut.custom",time:null,isCustomTimeShortcut:!0}),lastCustom:()=>({icon:"undo",id:n.LAST_CUSTOM,label:"time_shortcut.last_custom",time:null,hidden:!0}),none:()=>({icon:"ban",id:n.NONE,label:"time_shortcut.none",time:null}),now:()=>({id:n.NOW,icon:"magic",label:"time_shortcut.now",time:(0,t.now)(e)})}}e.TIME_SHORTCUT_TYPES=n})),define("discourse/lib/time-utils",["exports","@ember/utils"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.START_OF_DAY_HOUR=e.MOMENT_WEDNESDAY=e.MOMENT_TUESDAY=e.MOMENT_THURSDAY=e.MOMENT_SUNDAY=e.MOMENT_SATURDAY=e.MOMENT_MONDAY=e.MOMENT_FRIDAY=e.LATER_TODAY_MAX_HOUR=e.LATER_TODAY_CUTOFF_HOUR=void 0,e.fourMonths=function(e){return l(s(e).add(4,"months").startOf("month"))},e.laterThisWeek=function(e){return a(e)},e.laterToday=function(e){let t=s(e).add(3,"hours")
if(t.hour()>=n)return t.hour(n).startOf("hour")
return t.minutes()<30?t.startOf("hour"):t.add(30,"minutes").startOf("hour")},e.nextBusinessWeekStart=function(e){return l(s(e).add(7,"days")).day(r)},e.nextMonth=function(e){return l(s(e).add(1,"month").startOf("month"))},e.now=s,e.oneHour=function(e){return s(e).add(1,"hours")},e.oneYear=function(e){return l(s(e).add(1,"years").startOf("month"))},e.parseCustomDatetime=function(e,i,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
e=e||(new Date).toISOString().split("T")[0]
let o=(0,t.isPresent)(i)?`${e} ${i}`:e
r=r||n
let s=moment.tz(o,r)
r!==n&&(s=s.tz(n))
return s},e.sixMonths=function(e){return l(s(e).add(6,"months").startOf("month"))},e.startOfDay=l,e.thisWeekend=function(e){return l(s(e).day(o))},e.thousandYears=function(e){return l(s(e).add(1e3,"years").startOf("month"))},e.threeMonths=function(e){return l(s(e).add(3,"months").startOf("month"))},e.tomorrow=function(e){return l(s(e).add(1,"day"))},e.twoDays=a,e.twoHours=function(e){return s(e).add(2,"hours")},e.twoMonths=function(e){return l(s(e).add(2,"months").startOf("month"))},e.twoWeeks=function(e){return l(s(e).add(2,"weeks").day(r))}
const i=8
e.START_OF_DAY_HOUR=i
e.LATER_TODAY_CUTOFF_HOUR=17
const n=18
e.LATER_TODAY_MAX_HOUR=n
e.MOMENT_SUNDAY=0
const r=1
e.MOMENT_MONDAY=r
e.MOMENT_TUESDAY=2
e.MOMENT_WEDNESDAY=3
e.MOMENT_THURSDAY=4
e.MOMENT_FRIDAY=5
const o=6
function s(e){return moment.tz(e)}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i
return e.hour(t).startOf("hour")}function a(e){return l(s(e).add(2,"days"))}e.MOMENT_SATURDAY=o})),define("discourse/lib/to-markdown",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Tag=void 0,e.addBlockDecorateCallback=function(e){r.push(e)},e.addTagDecorateCallback=function(e){n.push(e)},e.addTextDecorateCallback=function(e){o.push(e)},e.clearBlockDecorateCallbacks=function(){r=[]},e.clearTagDecorateCallbacks=function(){n=[]},e.clearTextDecorateCallbacks=function(){o=[]},e.default=function(e){try{const{elements:t,placeholders:i}=function(e){const t=/<code[^>]*>([\s\S]*?)<\/code>/gi,i=e
let n=t.exec(i),r=[]
for(;n;){const o=`DISCOURSE_PLACEHOLDER_${r.length+1}`,s=document.createElement("div")
s.innerHTML=n[1]
const l=s.innerText.replace(/^\n/,"").replace(/\n$/,"")
r.push([o,l]),e=e.replace(n[0],`<code>${o}</code>`),n=t.exec(i)}const o=e=>{if("#text"!==e.nodeName&&void 0!==e.length){const t=[]
for(let i=0;i<e.length;++i)"#comment"!==e[i].nodeName&&t.push(o(e[i]))
return t}const t={name:e.nodeName.toLowerCase(),data:e.data,children:[],attributes:{}}
if("#text"===e.nodeName)return t
for(let i=0;i<e.childNodes.length;++i)"#comment"!==e.childNodes[i].nodeName&&t.children.push(o(e.childNodes[i]))
for(let i=0;i<e.attributes.length;++i)t.attributes[e.attributes[i].name]=e.attributes[i].value
return t},s=document.createElement("template")
s.innerHTML=function(e){const t=e.match(/<body[^>]*>([\s\S]*?)<\/body>/)
let i
e=t?t[1]:e,e=e.replace(/\r|\n|&nbsp;/g," "),e=e.replace(/\u00A0/g," ")
for(;i=e.match(/<[^\s>]+[^>]*>\s{2,}<[^\s>]+[^>]*>/);)e=e.replace(i[0],i[0].replace(/>\s{2,}</,"> <"))
return e=e.replace(/<!\[if !?\S*]>[^!]*<!\[endif]>/g,""),e}(e)
const l=o(s.content.childNodes)
return{elements:l,placeholders:r}}(e)
let n=l.parse(t).trim()
return n=n.replace(/^<b>/,"").replace(/<\/b>$/,"").trim(),n=n.replace(/\n +/g,"\n").replace(/ +\n/g,"\n").replace(/ {2,}/g," ").replace(/\n{3,}/g,"\n\n").replace(/\t/g,"  "),function(e,t){return t.forEach((t=>{e=e.replace(t[0],t[1])})),e}(n,i)}catch(t){return""}}
const t=["MsoListParagraphCxSpFirst","MsoListParagraphCxSpMiddle","MsoListParagraphCxSpLast"]
let i,n=[],r=[],o=[]
class s{static named(e){const t=class extends s{}
return t.tagName=e,t}static blocks(){return["address","article","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","hr","main","nav","p","pre","section"]}static headings(){return["h1","h2","h3","h4","h5","h6"]}static emphases(){return[["b","**"],["strong","**"],["i","*"],["em","*"],["s","~~"],["strike","~~"]]}static slices(){return["dt","dd","thead","tbody","tfoot"]}static trimmable(){return[...s.blocks(),...s.headings(),...s.slices(),"aside","li","td","th","br","hr","blockquote","table","ol","tr","ul"]}static allowedTags(){return["ins","del","small","big","kbd","ruby","rt","rb","rp","mark"]}static block(e,t,i){return class extends(s.named(e)){constructor(){super(t,i),this.gap="\n\n"}decorate(t){const i=this.element.parent
for(const e of r){const i=e.call(this,t)
void 0!==i&&(t=i)}return"p"===e&&"li"===i?.name&&(this.gap=""),`${this.gap}${this.prefix}${t}${this.suffix}${this.gap}`}}}static aside(){return class extends(s.block("aside")){constructor(){super()}toMarkdown(){if(!/\bquote\b/.test(this.element.attributes.class))return super.toMarkdown()
const e=this.element.children.find((e=>"blockquote"===e.name))
if(!e)return super.toMarkdown()
let t=l.parse([e],this.element)||""
if(t=t.trim().replaceAll(/^> /gm,"").trim(),0===t.length)return""
const i=this.element.attributes["data-username"],n=this.element.attributes["data-post"],r=this.element.attributes["data-topic"]
return`\n${i&&n&&r?`[quote="${i}, post:${n}, topic:${r}"]`:"[quote]"}\n${t}\n[/quote]\n`}}}static heading(e,t){const i=`${[...Array(t)].map((()=>"#")).join("")} `
return s.block(e,i,"")}static emphasis(e,t){return class extends(s.named(e)){constructor(){super(t,t,!0)}decorate(t){t.includes("\n")&&(this.prefix=`<${e}>`,this.suffix=`</${e}>`)
let i=t.match(/^\s/)
return i&&(this.prefix=i[0]+this.prefix),i=t.match(/\s$/),i&&(this.suffix=this.suffix+i[0]),super.decorate(t.trim())}}}static allowedTag(e){return class extends(s.named(e)){constructor(){super(`<${e}>`,`</${e}>`)}}}static replace(e,t){return class extends(s.named(e)){constructor(){super("",""),this.text=t}toMarkdown(){return this.text}}}static span(){return class extends(s.named("span")){constructor(){super()}decorate(e){return"badge badge-notification clicks"===this.element.attributes.class?"":super.decorate(e)}}}static link(){return class extends(s.named("a")){constructor(){super("","",!0)}decorate(e){const t=this.element,i=t.attributes
if(/^mention/.test(i.class)&&"@"===e[0])return e
if("hashtag"===i.class&&"#"===e[0])return e
if(i.class?.includes("hashtag-cooked")){if(i["data-ref"])return`#${i["data-ref"]}`
{let e=""
return i["data-type"]&&(e=`::${i["data-type"]}`),`#${i["data-slug"]}${e}`}}let n
if(["lightbox","d-lazyload"].includes(i.class)&&(n=(t.children||[]).find((e=>"img"===e.name)))){let t=i.href
const r=n.attributes["data-base62-sha1"]
return r&&(t=`upload://${r}`),`![${e=i.title||""}](${t})`}if(i.href&&e!==i.href){e=e.replace(/\n{2,}/g,"\n")
let t=""
return i.class?.includes("attachment")&&(t="|attachment"),`[${e}${t}](${i.href})`}return e}}}static image(){return class extends(s.named("img")){constructor(){super("","",!0)}toMarkdown(){const e=this.element,t=e.attributes,i=e.parent?.attributes||{},n=t.class||i.class
let r=t.src||i.src
const o=t["data-base62-sha1"]
if(o&&(r=`upload://${o}`),n?.includes("emoji"))return n.includes("user-status")?"":t.title||i.title
if(r){if(r.match(/^data:image\/([a-zA-Z]*);base64,([^\"]*)$/))return"[image]"
let e=t.alt||i.alt||""
const n=t.width||i.width,o=t.height||i.height,s=t.title
if(n&&o){e=`${e}${this.element.parentNames.includes("table")?"\\|":"|"}${n}x${o}`}return`![${e}](${r}${s?` "${s}"`:""})`}return""}}}static slice(e,t){return class extends(s.named(e)){constructor(){super("",t)}decorate(e){return this.element.next||(this.suffix=""),`${e}${this.suffix}`}}}static cell(e){return class extends(s.named(e)){constructor(){super("|")}toMarkdown(){const e=this.element.innerMarkdown().trim()
if(e.includes("\n")){let e=this.element
for(;e=e.parent;)if("table"===e.name){e.tag().invalid()
break}}return this.decorate(e)}}}static li(){return class extends(s.slice("li","\n")){decorate(e){const i=this.element.attributes
let n=this.element.filterParentNames(["ol","ul"]).slice(1).map((()=>"\t")).join("")
if(t.includes(i.class))try{const e=parseInt(i.style.match(/level./)[0].replace("level",""),10)
n=Array(e).join("\t")+n}finally{"MsoListParagraphCxSpFirst"===i.class?n=`\n\n${n}`:"MsoListParagraphCxSpLast"===i.class&&(e=`${e}\n`)}return super.decorate(`${n}* ${e.trimStart()}`)}}}static code(){return class extends(s.named("code")){constructor(){super("`","`")}decorate(e){this.element.parentNames.includes("pre")?(this.prefix="\n\n```\n",this.suffix="\n```\n\n"):this.inline=!0
const t=document.createElement("textarea")
return t.innerHTML=e,super.decorate(t.innerText)}}}static blockquote(){return class extends(s.named("blockquote")){constructor(){super("\n> ","\n")}decorate(e){return e=e.trim().replace(/\n{2,}>/g,"\n>").replace(/\n/g,"\n> "),super.decorate(e)}}}static table(){return class extends(s.block("table")){constructor(){super(),this.isValid=!0}invalid(){if(this.isValid=!1,this.element.parentNames.includes("table")){let e=this.element
for(;e=e.parent;)if("table"===e.name){e.tag().invalid()
break}}}countPipes(e){return(e.replace(/\\\|/,"").match(/\|/g)||[]).length}decorate(e){const t=(e=super.decorate(e).replace(/\|\n{2,}\|/g,"|\n|")).trim().split("\n"),i=this.countPipes(t[0])
if(this.isValid=this.isValid&&t.length>1&&i>2&&t.reduce(((e,t)=>e&&this.countPipes(t)<=i)),this.isValid){const t=[...Array(i-1)].map((()=>"| --- ")).join("")+"|\n"
e=e.replace("|\n","|\n"+t)}else e=e.replace(/\|/g," "),this.invalid()
return e}}}static list(e){return class extends(s.block(e)){decorate(e){let t=""
const i=this.element.parent
return"ul"===i?.name&&(this.gap="",this.suffix="\n"),this.element.filterParentNames(["li"]).length&&(this.gap="",t="\n"),t+super.decorate(e.trimEnd())}}}static ol(){return class extends(s.list("ol")){decorate(e){const t=(e="\n"+e).match(/\n\t*\*/)[0]
let i=parseInt(this.element.attributes.start||1,10)
for(;e.includes(t);)e=e.replace(t,t.replace("*",`${i}.`)),i++
return super.decorate(e.slice(1))}}}static tr(){return class extends(s.slice("tr","|\n")){decorate(e){return this.element.next||(this.suffix="|"),`${e}${this.suffix}`}}}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
this.prefix=e,this.suffix=t,this.inline=i}decorate(e){for(const t of n){const i=t.call(this,e)
void 0!==i&&(e=i)}if((this.prefix||this.suffix)&&(e=[this.prefix,e,this.suffix].join("")),this.inline){const{prev:t,next:i}=this.element
t&&"#text"!==t.name&&(e=" "+e),i&&"#text"!==i.name&&(e+=" ")}return e}toMarkdown(){const e=this.element.innerMarkdown()
return e?.trim()?this.decorate(e):e}}e.Tag=s
class l{static toMarkdown(e,t,i,n,r){return new l(e,t,i,n,r).toMarkdown()}static parseChildren(e){return l.parse(e.children,e)}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null
if(e){let i=[],n={}
for(let r=0;r<e.length;r++){const o=0===r?null:e[r-1],s=r===e.length?null:e[r+1]
i.push(l.toMarkdown(e[r],t,o,s,n))}return i.join("")}return""}constructor(e,i,n,r,o){this.name=e.name,this.data=e.data,this.metadata=o,this.children=e.children,this.attributes=e.attributes,i&&(this.parent=i,this.parentNames=i.parentNames.slice(),this.parentNames.push(i.name)),this.parentNames=this.parentNames||[],this.previous=n,this.next=r,"p"===this.name&&t.includes(this.attributes.class)&&(this.name="li",this.parentNames.push("ul"))}tag(){const e=new(function(e){if(!i){i=new Map
const e=[...s.blocks().map((e=>s.block(e))),...s.headings().map(((e,t)=>s.heading(e,t+1))),...s.slices().map((e=>s.slice(e,"\n"))),...s.emphases().map((e=>s.emphasis(e[0],e[1]))),...s.allowedTags().map((e=>s.allowedTag(e))),s.aside(),s.cell("td"),s.cell("th"),s.replace("br","\n"),s.replace("hr","\n---\n"),s.replace("head",""),s.li(),s.link(),s.image(),s.code(),s.blockquote(),s.table(),s.tr(),s.ol(),s.list("ul"),s.span()]
for(const t of e)i.set(t.tagName,t)}return i.get(e)}(this.name)||s)
return e.element=this,e.metadata=this.metadata,e}innerMarkdown(){return l.parseChildren(this)}leftTrimmable(){return this.previous&&s.trimmable().includes(this.previous.name)}rightTrimmable(){return this.next&&s.trimmable().includes(this.next.name)}text(){let e=this.data||""
return this.leftTrimmable()&&(e=e.trimStart()),this.rightTrimmable()&&(e=e.trimEnd()),e=e.replace(/[\s\t]+/g," "),o.forEach((t=>{const i=t.call(this,e,this.next,this.previous,this.metadata)
void 0!==i&&(e=i)})),e}toMarkdown(){return"#text"===this.name?this.text():this.tag().toMarkdown()}filterParentNames(e){return this.parentNames.filter((t=>e.includes(t)))}}})),define("discourse/lib/topic-fancy-title",["exports","discourse/models/site","pretty-text/censored-words","discourse/lib/text","discourse/lib/text-direction"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.fancyTitle=function(e,o){let s=(0,i.censor)((0,n.emojiUnescape)(e)||"",t.default.currentProp("censored_regexp"))
if(o){return`<span dir="${(0,r.isRTL)(s)?"rtl":"ltr"}">${s}</span>`}return s}})),define("discourse/lib/topic-list-tracked-filter",["exports","discourse/models/site","discourse/models/user"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.TRACKED_QUERY_PARAM_VALUE=void 0,e.hasTrackedFilter=function(e){if(!e)return!1
return e.f===n||e.filter===n},e.isTrackedTopic=function(e){if(e.category_id){const i=t.default.current().trackedCategoriesList
for(const t of i){if(t.id===e.category_id)return!0
if(t.subcategories&&t.subcategories.some((t=>t.id===e.category_id||(!(!t.subcategories||!t.subcategories.some((t=>t.id===e.category_id)))||void 0))))return!0}}if(e.tags){const t=i.default.current().trackedTags
for(const i of t)if(e.tags.includes(i))return!0}return!1}
const n="tracked"
e.TRACKED_QUERY_PARAM_VALUE=n})),define("discourse/lib/topic-list-tracker",["exports","rsvp","discourse/lib/notification-levels"],(function(e,t,i){let n,r,o,s
function l(e){if(e===o)return s}function a(){o=void 0,s=void 0}function u(e){if(!n||!n.topics)return t.Promise.resolve(null)
let i=function(){if(r&&n&&n.topics){const e=n.topics.findIndex((e=>e.id===r))
if(e>-1)return e}return-1}();-1===i?i=0:i+=e
const o=n.topics[i]
return!o&&i>0&&n.more_topics_url&&n.loadMore?n.loadMore().then((()=>u(e))):o?(r=o.id,t.Promise.resolve(o.lastUnreadUrl)):t.Promise.resolve(null)}Object.defineProperty(e,"__esModule",{value:!0}),e.getHighestReadCache=l,e.nextTopicUrl=function(){return u(1)},e.previousTopicUrl=function(){return u(-1)},e.resetHighestReadCache=a,e.setHighestReadCache=function(e,t){o=e,s=t},e.setTopicId=function(e){r=e},e.setTopicList=function(e){n=e,n?.topics?.forEach((e=>{if(e.notification_level>=i.NotificationLevels.TRACKING){const t=l(e.id)
if(t&&t>=e.last_read_post_number){const i=Math.max(e.highest_post_number-t,0)
e.setProperties({unread_posts:i,new_posts:i}),a()}}})),r=null}})),define("discourse/lib/transform-post",["exports","I18n","@ember/utils","discourse/lib/url","discourse-common/lib/get-url"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i,n,l,a){const u=n.post_type,c=i.post_types,d=n.topic,p=d.get("details"),m=d.get("postStream.filterUpwardsPostID"),h=d.get("postStream.filterRepliesToPostNumber"),f=s(n),g=p.created_by||{}
f.topicId=d.id,f.topicOwner=g.id===n.user_id,f.topicCreatedById=g.id,f.post_type=u,f.via_email=n.via_email,f.isAutoGenerated=n.is_auto_generated,f.isModeratorAction=u===c.moderator_action,f.isWhisper=u===c.whisper,f.isSmallAction=u===c.small_action||"split_topic"===n.action_code,f.canBookmark=!!e,f.canManage=e&&e.get("canManageTopic"),f.canViewRawEmail=e&&e.staff,f.canArchiveTopic=!!p.can_archive_topic,f.canCloseTopic=!!p.can_close_topic,f.canSplitMergeTopic=!!p.can_split_merge_topic,f.canEditStaffNotes=!!p.can_edit_staff_notes,f.canReplyAsNewTopic=!!p.can_reply_as_new_topic,f.canReviewTopic=!!p.can_review_topic,f.canPublishPage=!!p.can_publish_page&&1===n.post_number,f.isWarning=d.is_warning,f.links=n.get("internalLinks"),f.replyDirectlyBelow=a&&a.reply_to_post_number===n.post_number&&n.post_number!==h,f.replyDirectlyAbove=l&&n.id!==m&&n.reply_to_post_number===l.post_number,f.linkCounts=n.link_counts,f.actionCode=n.action_code,f.actionCodeWho=n.action_code_who,f.actionCodePath=(0,r.default)(n.action_code_path||`/t/${d.id}`),f.topicUrl=d.get("url"),f.isSaving=n.isSaving,f.staged=n.staged,f.user=n.user,n.notice&&(f.notice=n.notice,"returning_user"===f.notice.type&&(f.notice.lastPostedAt=new Date(n.notice.last_posted_at)))
1===n.post_number&&d.requested_group_name&&(f.requestedGroupName=d.requested_group_name)
const b="private_message"===d.archetype&&1===n.post_number
b&&(f.showPMMap=!0,f.allowedGroups=p.allowed_groups,f.allowedUsers=p.allowed_users,f.canRemoveAllowedUsers=p.can_remove_allowed_users,f.canRemoveSelfId=p.can_remove_self_id,f.canInvite=p.can_invite_to)
if(o.includes("topicMap")&&1===n.post_number||b||1===n.post_number&&"regular"===d.archetype&&d.posts_count>1){f.showTopicMap=!0,f.topicCreatedAt=d.created_at,f.createdByUsername=g.username,f.createdByAvatarTemplate=g.avatar_template,f.createdByName=g.name,f.lastPostUrl=d.get("lastPostUrl"),p.last_poster&&(f.lastPostUsername=p.last_poster.username,f.lastPostAvatarTemplate=p.last_poster.avatar_template,f.lastPostName=p.last_poster.name),f.lastPostAt=d.last_posted_at,f.topicReplyCount=d.get("replyCount"),f.topicViews=d.views,f.topicViewsHeat=d.get("viewsHeat"),f.participantCount=d.participant_count,f.topicLikeCount=d.like_count,f.topicLinks=p.links,f.topicLinks&&(f.topicLinkLength=p.links.length),f.topicPostsCount=d.posts_count,f.participants=p.participants
const e=d.get("postStream")
f.userFilters=e.userFilters,f.topicSummaryEnabled=e.summary,f.topicWordCount=d.word_count,f.hasTopRepliesSummary=d.has_summary}f.isDeleted&&(f.deletedByAvatarTemplate=n.get("postDeletedBy.avatar_template"),f.deletedByUsername=n.get("postDeletedBy.username"))
const y=n.get("reply_to_user")
y&&(f.replyToUsername=y.username,f.replyToName=y.name,f.replyToAvatarTemplate=y.avatar_template)
n.actions_summary&&(f.actionsSummary=n.actions_summary.filter((e=>"like"!==e.actionType.name_key&&e.acted)).map((e=>{const i=e.actionType.name_key
return{id:e.id,postId:n.id,action:i,canUndo:e.can_undo,description:t.default.t(`post.actions.by_you.${i}`)}})))
const _=n.likeAction
_?(f.liked=_.acted,f.canToggleLike=_.get("canToggle"),f.showLike=f.liked||f.canToggleLike,f.likeCount=_.count):(!e||d.archived&&d.user_id!==e.id)&&(f.showLike=!0)
1===f.post_number?(f.canRecoverTopic=f.isDeleted&&p.can_recover,f.canDeleteTopic=!f.isDeleted&&p.can_delete,f.expandablePost=d.expandable_first_post,f.canPermanentlyDelete=f.isDeleted&&p.can_permanently_delete,f.showFlagDelete=!f.canDelete&&f.yours&&f.canFlag&&e&&!e.staff):(f.canRecover=f.isDeleted&&f.canRecover,f.canDelete=f.canDelete&&!n.deleted_at&&e&&(e.staff||!n.user_deleted),f.canPermanentlyDelete=f.isDeleted&&n.can_permanently_delete)
return o.forEach((e=>f[e]=n[e])),f},e.includeAttributes=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i]
t.forEach((e=>o.push(e)))},e.transformBasicPost=s
const o=[]
function s(e){const t={id:e.id,hidden:e.hidden,deleted:e.get("deleted"),deleted_at:e.deleted_at,user_deleted:e.user_deleted,isDeleted:e.deleted_at||e.user_deleted,deletedByAvatarTemplate:null,deletedByUsername:null,primary_group_name:e.primary_group_name,flair_name:e.flair_name,flair_url:e.flair_url,flair_bg_color:e.flair_bg_color,flair_color:e.flair_color,flair_group_id:e.flair_group_id,wiki:e.wiki,lastWikiEdit:e.last_wiki_edit,firstPost:1===e.post_number,post_number:e.post_number,cooked:e.cooked,via_email:e.via_email,isAutoGenerated:e.is_auto_generated,user_id:e.user_id,usernameUrl:(0,n.userPath)(e.username),username:e.username,avatar_template:e.avatar_template,bookmarked:e.bookmarked,bookmarkReminderAt:e.bookmark_reminder_at,bookmarkName:e.bookmark_name,yours:e.yours,shareUrl:e.get("shareUrl"),staff:e.staff,admin:e.admin,moderator:e.moderator,groupModerator:e.group_moderator,new_user:0===e.trust_level,name:e.name,user_title:e.user_title,title_is_group:e.title_is_group,created_at:e.created_at,updated_at:e.updated_at,canDelete:e.can_delete,canPermanentlyDelete:!1,showFlagDelete:!1,canRecover:e.can_recover,canSeeHiddenPost:e.can_see_hidden_post,canEdit:e.can_edit,canFlag:!e.get("topic.deleted")&&!(0,i.isEmpty)(e.get("flagsAvailable")),canReviewTopic:!1,reviewableId:e.reviewable_id,reviewableScoreCount:e.reviewable_score_count,reviewableScorePendingCount:e.reviewable_score_pending_count,version:e.version,canRecoverTopic:!1,canDeleteTopic:!1,canViewEditHistory:e.can_view_edit_history,canWiki:e.can_wiki,showLike:!1,liked:!1,canToggleLike:!1,likeCount:!1,actionsSummary:null,read:e.read,replyToUsername:null,replyToName:null,replyToAvatarTemplate:null,reply_to_post_number:e.reply_to_post_number,cooked_hidden:!!e.cooked_hidden,expandablePost:!1,replyCount:e.reply_count,locked:e.locked,userCustomFields:e.user_custom_fields,readCount:e.readers_count,canPublishPage:!1,trustLevel:e.trust_level,userSuspended:e.user_suspended}
return o.forEach((i=>t[i]=e[i])),t}})),define("discourse/lib/update-tab-count",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){let i=document.createElement("canvas")
if(i.getContext){let n=document.createElement("img")
n.crossOrigin="anonymous",n.onload=()=>function(e,t,i){i=Math.round(i),isNaN(i)||i<1?i="":i<10?i=" "+i:i>99&&(i="99")
let n=t.width/16,r=11*n,o=n,s=2*n
e.height=e.width=t.width
let l=e.getContext("2d")
l.font=`bold ${r}px Arial, sans-serif`,i&&(l.globalAlpha=.4)
l.drawImage(t,0,0),l.globalAlpha=1,l.shadowColor="#FFF",l.shadowBlur=s,l.shadowOffsetX=0,l.shadowOffsetY=0,l.fillStyle="#FFF",l.fillText(i,o,r),l.fillText(i,o+n,r),l.fillText(i,o,r+n),l.fillText(i,o+n,r+n),l.fillStyle="#000",l.fillText(i,o+n/2,r+n/2)
let a=document.createElement("link")
a.rel="icon",a.href=e.toDataURL("image/png")
let u=document.querySelector("link[rel=icon]"),c=document.querySelector("head")
u&&c.removeChild(u)
c.appendChild(a)}(i,n,t),n.src=e}}})),define("discourse/lib/update-user-status-on-mention",["exports","discourse/lib/user-status-message"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.updateUserStatusOnMention=function(e,i,n){if(function(e){e.querySelector("span.user-status-message")?.remove()}(e),i){const r=(0,t.default)(i,{showTooltip:!0})
n.push(r._tippy),e.appendChild(r)}}})),define("discourse/lib/uploads",["exports","I18n","discourse-common/lib/deprecated","discourse/lib/utilities","discourse-common/lib/get-owner"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.allowsAttachments=v,e.allowsImages=function(e,t){return h(e,t)||p(e,t).some((e=>g(`.${e}`)))},e.authorizedExtensions=p,e.authorizesAllExtensions=h,e.authorizesOneOrMoreExtensions=f,e.authorizesOneOrMoreImageExtensions=function(e,t){if(h(e,t))return!0
return d(e,t).length>0},e.bindFileInputChangeListener=function(e,t){function i(e){Array.from(e.target.files).forEach((e=>{t(e)}))}return e.addEventListener("change",i),i},e.dialog=void 0,e.displayErrorForUpload=function(e,n,r){r||((0,i.default)("Calling displayErrorForUpload without a fileName is deprecated and will be removed in a future version.",{id:"discourse.uploads.display-error-for-upload"}),r=e.files[0].name)
if(e.jqXHR){if(k(e.jqXHR.status,e.jqXHR.responseJSON,r,n))return}else if(e.body&&e.status){if(k(e.status,e.body,r,n))return}else if(e.errors&&e.errors.length>0)return void o.alert(e.errors.join("\n"))
o.alert(t.default.t("post.errors.upload"))},e.getUploadMarkdown=function(e){return g(e.original_filename)?function(e){return`![${s(e.original_filename)}|${e.thumbnail_width}x${e.thumbnail_height}](${e.short_url||e.url})`}(e):y(e.original_filename)?w(e,"audio"):b(e.original_filename)?w(e,"video"):function(e){return`[${e.original_filename}|attachment](${e.short_url}) (${t.default.toHumanSize(e.filesize)})`}(e)},e.isAudio=y,e.isImage=g,e.isVideo=b,e.markdownNameFromFileName=s,e.uploadIcon=function(e,t){return v(e,t)?"upload":"far-image"},e.validateUploadedFile=l,e.validateUploadedFiles=function(e,i){if(!e||0===e.length)return!1
if(e.length>1)return o.alert(t.default.t("post.errors.too_many_uploads")),!1
return l(e[0],i)}
const o={alert(e){(0,r.getOwner)(this).lookup("service:dialog").alert(e)}}
function s(e){let i=e.slice(0,e.lastIndexOf("."))
return(0,n.isAppleDevice)()&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(i)&&(i=t.default.t("upload_selector.default_image_alt_text")),i.replace(/\[|\]|\|/g,"")}function l(e,i){if("undefined"!=typeof Blob&&"undefined"!=typeof File&&e instanceof Blob&&!(e instanceof File)&&"image/png"===e.type&&(e.name="image.png"),(i=i||{}).type=_(e.name),i.skipValidation)return!0
let n=i.user,r=n&&n.staff
if(!f(r,i.siteSettings))return o.alert(t.default.t("post.errors.no_uploads_authorized")),!1
const s=e&&e.name
if(!s)return!1
if(i.allowStaffToUploadAnyFileInPm&&i.isPrivateMessage&&r)return!0
if(i.imagesOnly){if(!g(s)&&!function(e,t,i){return new RegExp("\\.("+d(t,i).join("|")+")$","i").test(e)}(s,r,i.siteSettings))return o.alert(t.default.t("post.errors.upload_not_authorized",{authorized_extensions:m(r,i.siteSettings)})),!1}else if(i.csvOnly){if(!/\.csv$/i.test(s))return o.alert(t.default.t("user.invited.bulk_invite.error")),!1}else if(!h(r,i.siteSettings)&&!function(e,t,i){if(t&&new RegExp("\\.("+c(i).join("|")+")$","i").test(e))return!0
return new RegExp("\\.("+u(i).join("|")+")$","i").test(e)}(s,r,i.siteSettings))return o.alert(t.default.t("post.errors.upload_not_authorized",{authorized_extensions:p(r,i.siteSettings).join(", ")})),!1
return i.bypassNewUserRestriction||!n||n.isAllowedToUploadAFile(i.type)?0!==e.size||(console.warn("File with a 0 byte size detected, cancelling upload.",e),o.alert(t.default.t("post.errors.file_size_zero")),!1):(o.alert(t.default.t(`post.errors.${i.type}_upload_not_allowed_for_new_user`)),!1)}function a(e){return e.toLowerCase().replace(/[\s\.]+/g,"").split("|").filter((e=>!e.includes("*")))}function u(e){return a(e.authorized_extensions)}function c(e){return a(e.authorized_extensions_for_staff)}function d(e,t){let i=u(t).filter((e=>g(`.${e}`)))
if(e){const e=c(t).filter((e=>g(`.${e}`)))
i=i.concat(e)}return i}function p(e,t){return(e?[...u(t),...c(t)]:u(t)).filter((e=>e.length>0))}function m(e,t){return h(e,t)?"png, jpg, jpeg, gif, svg, ico, heic, heif, webp, avif":d(e,t).join(", ")}function h(e,t){return t.authorized_extensions.includes("*")||t.authorized_extensions_for_staff.includes("*")&&e}function f(e,t){return!!h(e,t)||(t.authorized_extensions.split("|").filter((e=>e)).length>0||t.authorized_extensions_for_staff.split("|").filter((e=>e)).length>0&&e)}function g(e){return/\.(png|webp|jpe?g|gif|svg|ico|heic|heif|avif)$/i.test(e)}function b(e){return/\.(mov|mp4|webm|m4v|3gp|ogv|avi|mpeg)$/i.test(e)}function y(e){return/\.(mp3|og[ga]|opus|wav|m4[abpr]|aac|flac)$/i.test(e)}function _(e){return g(e)?"image":"attachment"}function v(e,t){return h(e,t)||p(e,t).length>d(e,t).length}function w(e,t){return`![${s(e.original_filename)}|${t}](${e.short_url})`}function k(e,i,n,r){switch(e){case 0:return o.alert(t.default.t("post.errors.upload")),!0
case 413:const e=r[`max_${_(n)}_size_kb`]
return o.alert(t.default.t("post.errors.file_too_large_humanized",{max_size:t.default.toHumanSize(1024*e)})),!0
case 422:return i.message?o.alert(i.message):o.alert(i.errors.join("\n")),!0}}e.dialog=o})),define("discourse/lib/uppy-checksum-plugin",["exports","discourse/lib/uppy-plugin-base","rsvp","discourse/mixins/uppy-upload","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let l=(s=class extends t.UploadPreProcessorPlugin{constructor(e,t){super(e,t),this.capabilities=t.capabilities}_canUseSubtleCrypto(){return this._secureContext()?this.capabilities.isIE11?(this._consoleWarn("The required cipher suite is unavailable in Internet Explorer 11."),!1):Blob.prototype.arrayBuffer?!!this._hasCryptoCipher()||(this._consoleWarn("The required cipher suite is unavailable in this browser."),!1):(this._consoleWarn("The required File API is unavailable in this browser."),!1):(this._consoleWarn("Cannot generate cryptographic digests in an insecure context (not HTTPS)."),!1)}_generateChecksum(e){if(!this._canUseSubtleCrypto())return this._skipAll(e,!0)
let t=e.map((e=>{let t=this._getFile(e)
return this._emitProgress(t),t.size>n.HUGE_FILE_THRESHOLD_BYTES?(this._consoleWarn("The file provided is too large to checksum, skipping."),this._skip(t)):t.data.arrayBuffer().then((i=>window.crypto.subtle.digest("SHA-1",i).then((i=>{const n=Array.from(new Uint8Array(i)).map((e=>e.toString(16).padStart(2,"0"))).join("")
this._setFileMeta(e,{sha1_checksum:n}),this._emitComplete(t)})).catch((e=>{e.message.toString().includes("Algorithm: Unrecognized name")?this._consoleWarn("SHA-1 algorithm is unsupported in this browser."):this._consoleWarn(`Error encountered when generating digest: ${e.message}`),this._emitComplete(t)}))))}))
return i.Promise.all(t)}_secureContext(){return window.isSecureContext}_hasCryptoCipher(){return window.crypto?.subtle?.digest}install(){this._install(this._generateChecksum)}uninstall(){this._uninstall(this._generateChecksum)}},h=s,g="uppy-checksum",(f=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(f="pluginId"))in h?Object.defineProperty(h,f,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[f]=g,a=(o=s).prototype,u="_generateChecksum",c=[r.bind],d=Object.getOwnPropertyDescriptor(o.prototype,"_generateChecksum"),p=o.prototype,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),o)
var a,u,c,d,p,m,h,f,g
e.default=l}))
define("discourse/lib/uppy-chunked-upload",["exports","rsvp","@uppy/utils/lib/delay","@uppy/utils/lib/AbortController"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r={limit:5,retryDelays:[0,1e3,3e3,5e3],getChunkSize:()=>5242880,onStart(){},onProgress(){},onChunkComplete(){},onSuccess(){},onError(e){throw e}}
e.default=class{constructor(e,t){this.options={...r,...t},this.file=e,this.options.getChunkSize||(this.options.getChunkSize=r.getChunkSize,this.chunkSize=this.options.getChunkSize(this.file)),this.abortController=new n.AbortController,this._initChunks()}_aborted(){return this.abortController.signal.aborted}_initChunks(){this.chunksInProgress=0,this.chunks=null,this.chunkState=null
const e=[]
if(0===this.file.size)e.push(this.file.data)
else for(let t=0;t<this.file.data.size;t+=this.chunkSize){const i=Math.min(this.file.data.size,t+this.chunkSize)
e.push(this.file.data.slice(t,i))}this.chunks=e,this.chunkState=e.map((()=>({bytesUploaded:0,busy:!1,done:!1})))}_createUpload(){if(this._aborted())throw(0,n.createAbortError)()
this.options.onStart(),this._uploadChunks()}_uploadChunks(){if(this.chunkState.every((e=>e.done)))return void this._completeUpload()
const e=this.options.limit-this.chunksInProgress,t=this.chunkState.filter((e=>e.done)).length,i=this.chunks.length-t
let n=Math.ceil(this.options.limit/2)
if(n>i&&(n=i),e<n)return
const r=[]
for(let o=0;o<this.chunkState.length;o++){const t=this.chunkState[o]
if(!t.done&&!t.busy&&(r.push(o),r.length>=e))break}0!==r.length&&r.forEach((e=>{this._uploadChunkRetryable(e).then((()=>{this._uploadChunks()}),(e=>{this._onError(e)}))}))}_shouldRetry(e){if(e.source&&"number"==typeof e.source.status){const{status:t}=e.source
return 0===t||409===t||423===t||t>=500&&t<600}return!1}_retryable(e){let{before:t,attempt:r,after:o}=e
const{retryDelays:s}=this.options,{signal:l}=this.abortController
t&&t()
const a=e=>r().catch((t=>{if(this._aborted())throw(0,n.createAbortError)()
if(this._shouldRetry(t)&&e<s.length)return(0,i.default)(s[e],{signal:l}).then((()=>a(e+1)))
throw t}))
return a(0).then((e=>(o&&o(),e)),(e=>{throw o&&o(),e}))}_uploadChunkRetryable(e){return this._retryable({before:()=>{this.chunksInProgress+=1},attempt:()=>this._uploadChunk(e),after:()=>{this.chunksInProgress-=1}})}_uploadChunk(e){if(this.chunkState[e].busy=!0,this._aborted())throw this.chunkState[e].busy=!1,(0,n.createAbortError)()
return this._uploadChunkBytes(e,this.options.url,this.options.headers)}_onChunkProgress(e,t){this.chunkState[e].bytesUploaded=parseInt(t,10)
const i=this.chunkState.reduce(((e,t)=>e+t.bytesUploaded),0)
this.options.onProgress(i,this.file.data.size)}_onChunkComplete(e){this.chunkState[e].done=!0,this.options.onChunkComplete(e)}_uploadChunkBytes(e,i,r){const o=this.chunks[e],{signal:s}=this.abortController
return new t.Promise(((t,l)=>{const a=new XMLHttpRequest
function u(){s.removeEventListener("abort",(()=>a.abort()))}s.addEventListener("abort",a.abort()),a.open(this.options.method||"POST",i,!0),r&&Object.keys(r).forEach((e=>{a.setRequestHeader(e,r[e])})),a.responseType="text",a.upload.addEventListener("progress",(t=>{t.lengthComputable&&this._onChunkProgress(e,t.loaded,t.total)})),a.addEventListener("abort",(()=>{u(),this.chunkState[e].busy=!1,l((0,n.createAbortError)())})),a.addEventListener("load",(i=>{if(u(),this.chunkState[e].busy=!1,i.target.status<200||i.target.status>=300){const e=new Error("Non 2xx")
return e.source=i.target,void l(e)}this.chunks[e]=null,this._onChunkProgress(e,o.size,o.size),this._onChunkComplete(e),t()})),a.addEventListener("error",(t=>{u(),this.chunkState[e].busy=!1
const i=new Error("Unknown error")
i.source=t.target,l(i)})),a.send(this._buildFormData(e+1,o))}))}async _completeUpload(){this.options.onSuccess()}_buildFormData(e,t){const i=this.file.data.size+"-"+this.file.data.name.replace(/[^0-9a-zA-Z_-]/gim,""),n=new FormData
return n.append("file",t),n.append("resumableChunkNumber",e),n.append("resumableCurrentChunkSize",t.size),n.append("resumableChunkSize",this.chunkSize),n.append("resumableTotalSize",this.file.data.size),n.append("resumableFilename",this.file.data.name),n.append("resumableIdentifier",i),n}_abortUpload(){this.abortController.abort()}_onError(e){e&&"AbortError"===e.name||this.options.onError(e)}start(){this._createUpload()}abort(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0
e?.really&&this._abortUpload()}}})),define("discourse/lib/uppy-chunked-uploader-plugin",["exports","discourse/lib/uppy-plugin-base","@ember/runloop","discourse-common/lib/get-url","rsvp","discourse/lib/uppy-chunked-upload","@uppy/utils/lib/EventTracker"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.UploaderPlugin{constructor(e,t){super(e,t)
this.opts={limit:0,retryDelays:[0,1e3,3e3,5e3],...t},this.url=(0,n.default)(t.url),this.method=t.method||"POST",this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null)}_resetUploaderReferences(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
this.uploaders[e]&&(this.uploaders[e].abort({really:t.abort||!1}),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}_uploadFile(e){return new r.Promise(((t,n)=>{const r=new o.default(e,{getChunkSize:this.opts.getChunkSize?this.opts.getChunkSize.bind(this):null,onStart:()=>{this.uppy.emit("upload-started",e)},onProgress:(t,i)=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t,bytesTotal:i})},onChunkComplete:t=>{const i=this.uppy.getFile(e.id)
i&&this.uppy.emit("chunk-uploaded",i,t)},onSuccess:()=>{this._resetUploaderReferences(e.id)
const i=this.uppy.getFile(e.id)
this.uppy.emit("upload-success",i||e,{}),t(r)},onError:t=>{this.uppy.log(t),this.uppy.emit("upload-error",e,t),this._resetUploaderReferences(e.id),n(t)},limit:this.opts.limit||5,retryDelays:this.opts.retryDelays||[],method:this.method,url:this.url,headers:this.opts.headers})
this.uploaders[e.id]=r,this.uploaderEvents[e.id]=new s.default(this.uppy),(0,i.next)((()=>{e.isPaused||r.start()})),this._onFileRemove(e.id,(i=>{this._resetUploaderReferences(e.id,{abort:!0}),t(`upload ${i.id} was removed`)})),this._onCancelAll(e.id,(()=>{this._resetUploaderReferences(e.id,{abort:!0}),t(`upload ${e.id} was canceled`)})),this._onFilePause(e.id,(e=>{e?r.pause():(0,i.next)((()=>{r.start()}))})),this._onPauseAll(e.id,(()=>{r.pause()})),this._onResumeAll(e.id,(()=>{e.error&&r.abort(),(0,i.next)((()=>{r.start()}))})),e.progress.uploadStarted&&e.isRestored||this.uppy.emit("upload-started",e)}))}_onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(i=>{e===i.id&&t(i.id)}))}_onFilePause(e,t){this.uploaderEvents[e].on("upload-pause",((i,n)=>{e===i&&t(n)}))}_onPauseAll(e,t){this.uploaderEvents[e].on("pause-all",(()=>{this.uppy.getFile(e)&&t()}))}_onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}_onResumeAll(e,t){this.uploaderEvents[e].on("resume-all",(()=>{this.uppy.getFile(e)&&t()}))}_upload(e){const t=e.map((e=>{const t=this.uppy.getFile(e)
return this._uploadFile(t)}))
return r.Promise.all(t)}install(){this._install(this._upload.bind(this))}uninstall(){this._uninstall(this._upload.bind(this))}}var a,u,c
e.default=l,a=l,c="uppy-chunked-uploader",(u=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(u="pluginId"))in a?Object.defineProperty(a,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[u]=c})),define("discourse/lib/uppy-media-optimization-plugin",["exports","discourse/lib/uppy-plugin-base","rsvp","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let l=(o=class extends t.UploadPreProcessorPlugin{constructor(e,t){super(e,t),this.optimizeFn=t.optimizeFn,this.runParallel=t.runParallel||!1}_optimizeFile(e){let t=this._getFile(e)
return this._emitProgress(t),this.optimizeFn(t,{stopWorkerOnError:!this.runParallel}).then((i=>{let n=!1
i?this._setFileState(e,{data:i,size:i.size}):(this._consoleWarn("Nothing happened, possible error or other restriction, or the file format is not a valid one for compression."),n=!0),this._emitComplete(t,n)})).catch((e=>{this._consoleWarn(e),this._emitComplete(t)}))}_optimizeParallel(e){return i.Promise.all(e.map(this._optimizeFile))}async _optimizeSerial(e){let t=e.map((e=>()=>this._optimizeFile(e)))
for(const i of t)await i()}install(){this.runParallel?this._install(this._optimizeParallel):this._install(this._optimizeSerial)}uninstall(){this.runParallel?this._uninstall(this._optimizeParallel):this._uninstall(this._optimizeSerial)}},a=o,c="uppy-media-optimization",(u=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(u="pluginId"))in a?Object.defineProperty(a,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[u]=c,s((r=o).prototype,"_optimizeFile",[n.bind],Object.getOwnPropertyDescriptor(r.prototype,"_optimizeFile"),r.prototype),s(r.prototype,"_optimizeParallel",[n.bind],Object.getOwnPropertyDescriptor(r.prototype,"_optimizeParallel"),r.prototype),s(r.prototype,"_optimizeSerial",[n.bind],Object.getOwnPropertyDescriptor(r.prototype,"_optimizeSerial"),r.prototype),r)
var a,u,c
e.default=l})),define("discourse/lib/uppy-plugin-base",["exports","@uppy/core","rsvp","@ember/debug","discourse-common/config/environment"],(function(e,t,i,n,r){function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.UppyPluginBase=e.UploaderPlugin=e.UploadPreProcessorPlugin=void 0
class s extends t.BasePlugin{constructor(e,t){super(e,t),this.id=this.constructor.pluginId}_consoleWarn(e){(0,r.isTesting)()}_consoleDebug(e){this.siteSettings?.enable_upload_debug_mode&&console.log(`[${this.id}] ${e}`)}_getFile(e){return this.uppy.getFile(e)}_setFileMeta(e,t){this.uppy.setFileMeta(e,t)}_setFileState(e,t){this.uppy.setFileState(e,t)}_emitAllComplete(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return e.forEach((e=>{let i=this._getFile(e)
this._emitComplete(i,t)})),i.Promise.resolve()}_emitError(e,t){this.uppy.emit("upload-error",e,{errors:[t],message:`[${this.id}] ${t}`})}_skip(e){return this._emitComplete(e,!0)}_skipAll(e){return this._emitAllComplete(e,!0)}}e.UppyPluginBase=s
class l extends s{constructor(e,t){super(e,t),this.type=this.constructor.pluginType}_install(e){this.uppy.addPreProcessor(e)}_uninstall(e){this.uppy.removePreProcessor(e)}_emitProgress(e){this.uppy.emit("preprocess-progress",e,null,this.id)}_emitComplete(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return this.uppy.emit("preprocess-complete",e,t,this.id),i.Promise.resolve()}}e.UploadPreProcessorPlugin=l,o(l,"pluginType","preprocessor")
class a extends s{constructor(e,t){super(e,t),this.type=this.constructor.pluginType}_install(e){this.uppy.addUploader(e)}_uninstall(e){this.uppy.removeUploader(e)}_emitProgress(e){this.uppy.emit("upload-progress",e,null,this.id)}_emitComplete(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return this.uppy.emit("upload-complete",e,t,this.id),i.Promise.resolve()}}e.UploaderPlugin=a,o(a,"pluginType","uploader")})),define("discourse/lib/url",["exports","discourse-common/lib/get-url","@ember/runloop","discourse/models/category","@ember/object","discourse/lib/lock-on","discourse/models/session","discourse/models/user","discourse/lib/utilities","@ember/utils","discourse/lib/offset-calculator","@ember/application","discourse-common/config/environment"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){Object.defineProperty(e,"__esModule",{value:!0}),e.TOPIC_URL_REGEXP=void 0,e.clearRewrites=function(){m.length=0},e.default=void 0,e.getCategoryAndTagUrl=function(e,i,n){let r
e&&(r=e.path,"none"===e.default_list_filter&&i?r+=i?"/all":"/none":i||(r+="/none"))
n&&(r=r?"/tags"+r+"/"+n.toLowerCase():"/tag/"+n.toLowerCase())
return(0,t.default)(r||"/")},e.getEditCategoryUrl=function(e,i,r){let o=`/c/${n.default.slugFor(e)}/edit`
r&&(o+=`/${r}`)
return(0,t.default)(o)},e.groupPath=function(e){return(0,t.default)(e?`/g/${e}`:"/g")},e.prefixProtocol=function(e){return e.includes("://")||e.startsWith("mailto:")?e:"https://"+e},e.rewritePath=g,e.setURLContainer=function(e){k.container=e,(0,d.setOwner)(k,e)},e.userPath=b
const m=[],h=/\/t\/([^\/]*[^\d\/][^\/]*)\/(\d+)\/?(\d+)?/
e.TOPIC_URL_REGEXP=h
const f=[/^\/assets\//,/^\/uploads\//,/^\/secure-media-uploads\//,/^\/secure-uploads\//,/^\/stylesheets\//,/^\/site_customizations\//,/^\/raw\//,/^\/posts\/\d+\/raw/,/^\/raw\/\d+/,/\.rss$/,/\.json$/,/^\/logs($|\/)/,/^\/admin\/customize\/watched_words\/action\/[^\/]+\/download$/,/^\/pub\//,/^\/invites\//,/^\/styleguide/]
function g(e){const t=e.split("?")
let i=t[0]
return m.forEach((t=>{(t.opts.exceptions||[]).some((t=>e.startsWith(t)))||(i=i.replace(t.regexp,t.replacement))})),t.length>1&&(i+=`?${t[1]}`),i}function b(e){return(0,t.default)(e?`/u/${e}`:"/u")}let y=!1,_=!1,v=null
const w=r.default.extend({isJumpScheduled:()=>_||y,jumpToPost(e,t){t=t||{}
const n=`#post_${e}`
_=e>1,(0,i.schedule)("afterRender",(()=>{if(t.jumpEnd){let e=$(n),t=e.height()
if(t>$(window).height()-(0,c.default)())return $(window).scrollTop(e.offset().top+(t-250)),void(_=!1)}if(1===e&&!t.anchor)return $(window).scrollTop(0),void(_=!1)
let i,r
if(t.anchor&&(i=`#main #${t.anchor}, a[name=${t.anchor}]`,r=document.querySelector(i)),r||(i=n,r=document.querySelector(i)),v&&v.clearLock(),v=new o.default(i,{originalTopOffset:t.originalTopOffset,finished(){_=!1,v=null}}),r&&t.skipIfOnScreen){const e=v.elementTop(),t=$(window).scrollTop(),i=$(window).height()-(0,c.default)(),n=$(r).height()
if(e>t&&e+n<t+i)return void(_=!1)}v.lock(),v.elementTop()<1&&(_=!1)}))},replaceState(e){e.startsWith("#")&&(e=this.router.currentURL.replace(/#.*$/,"")+e),this.router.currentURL!==e&&(0,i.next)((()=>{this.router._routerMicrolib.replaceURL(e)}))},routeToTag(e){return!(!e||!e.href)&&(e.host&&e.host!==document.location.host?(document.location=e.href,!1):this.routeTo(e.href))},routeTo(e,n){if(n=n||{},(0,u.isEmpty)(e))return
if(s.default.currentProp("requiresRefresh")&&!this.isComposerOpen)return this.redirectTo(e)
const r=e.replace(/(https?\:)?\/\/[^\/]+/,"")
if(!this.isInternal(e))return this.redirectTo(e)
if(f.some((e=>r.match(e))))return void this.redirectTo(e)
const o=/^#(.+)$/.exec(e)
if(o)return this.jumpToElement(o[1]),this.replaceState(e)
const a=this.router.currentURL
e=e.replace(/(https?\:)?\/\/[^\/]+/,"")
let c=(0,t.default)("/my")
const d=(0,t.default)(e)
if(d.startsWith(c)){const t=l.default.current()
if(!t)return this.redirectTo("/login-preferences")
e=d.replace(c,b(t.get("username_lower")))}return e.startsWith("/")&&(e=(0,t.withoutPrefix)(e)),e=g(e),"function"==typeof n.afterRouteComplete&&(0,i.schedule)("afterRender",n.afterRouteComplete),this.navigatedToPost(a,e,n)||(a===e&&this.appEvents.trigger("url:refresh"),this.navigatedToHome(a,e,n))?void 0:(""===e&&(e="/"),this.handleURL(e,n))},routeToUrl(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
this.routeTo((0,t.default)(e),i)},rewrite(e,t,i){m.push({regexp:e,replacement:t,opts:i||{}})},redirectAbsolute:e=>((0,p.isTesting)()||(window.location=e),!0),redirectTo(e){return this.redirectAbsolute((0,t.default)(e))},isInternal(e){if(e&&e.length){if(e.startsWith("//")&&(e="http:"+e),e.startsWith("#"))return!0
if(e.startsWith("/"))return!0
if(e.startsWith(this.origin()))return!0
if(e.replace(/^http/,"https").startsWith(this.origin()))return!0
if(e.replace(/^https/,"http").startsWith(this.origin()))return!0}return!1},navigatedToPost(e,t,i){const n=h.exec(t),r=n?n[2]:null
if(r){const o=h.exec(e)
if((o?o[2]:null)===r){this.replaceState(t)
const e=this.container.lookup("controller:topic"),r={},o=e.get("model.postStream")
return n[3]&&(r.nearPost=n[3]),t.match(/last$/)&&(r.nearPost=e.get("model.highest_post_number")),i.keepFilter||(r.cancelFilter=!0),o.refresh(r).then((()=>{const n=o.closestPostNumberFor(r.nearPost||1)
e.setProperties({"model.currentPost":n,enteredAt:Date.now().toString()}),this.appEvents.trigger("post:highlight",n)
const s={skipIfOnScreen:i.skipIfOnScreen,jumpEnd:i.jumpEnd},l=/#(.+)$/.exec(t)
l&&(s.anchor=l[1]),this.jumpToPost(n,s)})),!0}}return!1},navigatedToHome(e,t){const i=(0,a.defaultHomepage)()
return!(!window.history||!window.history.pushState||"/"!==t&&t!=="/"+i||"/"!==e&&e!=="/"+i)&&(this.appEvents.trigger("url:refresh"),!0)},origin(){let e=(0,t.default)("/")
return window.location.origin+("/"===e?"":e)},get isComposerOpen(){return this.container.lookup("service:composer")?.visible},get router(){return this.container.lookup("router:main")},get appEvents(){return this.container.lookup("service:app-events")},controllerFor(e){return this.container.lookup("controller:"+e)},handleURL(e,t){t=t||{}
const i=this.router
t.replaceURL&&this.replaceState(e)
const n=e.split("#")
let r,o
2===n.length&&(e=n[0],r=n[1]),"/"===e||"/?"===e.substring(0,2)?(i._routerMicrolib.updateURL(e),o=i.handleURL(e)):o=i.transitionTo(e),o._discourse_intercepted=!0,o._discourse_anchor=r,o._discourse_original_url=e
return(o.promise||o).then((()=>this.jumpToElement(r)))},jumpToElement(e){if(y||(0,u.isEmpty)(e))return
const t=`#main #${e}, a[name=${e}]`
y=!0,(0,i.schedule)("afterRender",(function(){v&&v.clearLock(),v=new o.default(t,{finished(){y=!1,v=null}}),v.lock()}))}})
let k=w.create()
var x=k
e.default=x})),define("discourse/lib/user-activation",["exports","discourse/lib/ajax","discourse/lib/ajax-error","discourse/lib/url"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.changeEmail=function(e){return(0,t.ajax)((0,n.userPath)("update-activation-email"),{data:e,type:"PUT"})},e.resendActivationEmail=function(e){return(0,t.ajax)((0,n.userPath)("action/send_activation_email"),{type:"POST",data:{username:e}}).catch(i.popupAjaxError)}})),define("discourse/lib/user-menu/base-item",["exports","discourse/lib/url","discourse/lib/intercept-click"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{get className(){}get linkHref(){throw new Error("not implemented")}get linkTitle(){throw new Error("not implemented")}get icon(){throw new Error("not implemented")}get label(){throw new Error("not implemented")}get labelClass(){}get description(){throw new Error("not implemented")}get descriptionClass(){}get topicId(){}onClick(e){let{event:n,closeUserMenu:r}=e
if((0,i.wantsNewWindow)(n))return
r()
const o=this.linkHref
o&&t.default.routeTo(o),n.preventDefault()}}})),define("discourse/lib/user-menu/bookmark-item",["exports","discourse/lib/user-menu/base-item","discourse/models/bookmark"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(e){let{bookmark:t}=e
super(...arguments),this.bookmark=t}get className(){return"bookmark"}get linkHref(){return this.bookmark.bookmarkable_url}get linkTitle(){return this.bookmark.name}get icon(){return i.NO_REMINDER_ICON}get label(){return this.bookmark.user?.username}get description(){return this.bookmark.title}get topicId(){return this.bookmark.topic_id}}e.default=n})),define("discourse/lib/user-menu/message-item",["exports","discourse/lib/user-menu/base-item","discourse/lib/utilities","@ember/template","discourse/lib/text","I18n"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class s extends t.default{constructor(e){let{message:t}=e
super(...arguments),this.message=t}get className(){return"message"}get linkHref(){const e=Math.min((this.message.last_read_post_number||0)+1,this.message.highest_post_number)
return(0,i.postUrl)(this.message.slug,this.message.id,e)}get linkTitle(){return o.default.t("user.private_message")}get icon(){return"notification.private_message"}get label(){return this.message.last_poster_username}get description(){return(0,n.htmlSafe)((0,r.emojiUnescape)(this.message.fancy_title))}get topicId(){return this.message.id}}e.default=s})),define("discourse/lib/user-menu/notification-item",["exports","discourse/lib/user-menu/base-item","discourse/lib/cookie","discourse-common/lib/get-url","discourse/lib/ajax","discourse/lib/notification-types-manager"],(function(e,t,i,n,r,o){function s(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function l(e,t){var i=function(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}(e,t,"get")
return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=new WeakMap
class u extends t.default{constructor(e){let{notification:t,appEvents:i,currentUser:n,siteSettings:r,site:u}=e
super(...arguments),s(this,a,{get:c,set:void 0}),this.appEvents=i,this.notification=t,this.currentUser=n,this.siteSettings=r,this.site=u,this.renderDirector=(0,o.getRenderDirector)(l(this,a),t,n,r,u)}get className(){return this.renderDirector.classNames?.join(" ")||""}get linkHref(){return this.renderDirector.linkHref}get linkTitle(){return this.renderDirector.linkTitle}get icon(){return this.renderDirector.icon}get label(){return this.renderDirector.label}get labelClass(){return this.renderDirector.labelClasses?.join(" ")||""}get description(){return this.renderDirector.description}get descriptionClass(){return this.renderDirector.descriptionClasses?.join(" ")||""}get topicId(){return this.notification.topic_id}onClick(){if(this.renderDirector.onClick?.(),this.appEvents.trigger("user-menu:notification-click",this.notification),!this.notification.read){this.notification.set("read",!0)
const e={...this.currentUser.grouped_unread_notifications},t=e&&e[this.notification.notification_type]
t>0&&(e[this.notification.notification_type]=t-1,this.currentUser.set("grouped_unread_notifications",e)),(0,r.setTransientHeader)("Discourse-Clear-Notifications",this.notification.id),(0,i.default)("cn",this.notification.id,{path:(0,n.default)("/")})}super.onClick(...arguments)}}function c(){return this.site.notificationLookup[this.notification.notification_type]}e.default=u})),define("discourse/lib/user-menu/reviewable-item",["exports","discourse/lib/user-menu/base-item","discourse-common/lib/get-url","discourse/lib/reviewable-types-manager"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{constructor(e){let{reviewable:t,currentUser:i,siteSettings:r,site:o}=e
super(...arguments),this.reviewable=t,this.currentUser=i,this.siteSettings=r,this.site=o,this.renderDirector=(0,n.getRenderDirector)(this.reviewable.type,this.reviewable,this.currentUser,this.siteSettings,this.site)}get className(){const e=["reviewable"]
return this.reviewable.pending?e.push("pending"):e.push("reviewed"),e.join(" ")}get linkHref(){return(0,i.default)(`/review/${this.reviewable.id}`)}get linkTitle(){return""}get icon(){return this.renderDirector.icon}get label(){return this.renderDirector.actor}get description(){return this.renderDirector.description}}e.default=r})),define("discourse/lib/user-menu/tab",["exports","I18n"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CUSTOM_TABS_CLASSES=void 0,e.registerUserMenuTab=function(e){n.push(e(i))},e.resetUserMenuTabs=function(){n.length=0}
class i{constructor(e,t,i){this.currentUser=e,this.siteSettings=t,this.site=i}get shouldDisplay(){return!0}get count(){return 0}get title(){const e=this.id.replaceAll(/-/g,"_"),i=this.count
let n
if(n=this.count?`user_menu.tabs.${e}_with_unread`:`user_menu.tabs.${e}`,t.default.lookup(n))return t.default.t(n,{count:i})}get panelComponent(){throw new Error("not implemented")}get id(){throw new Error("not implemented")}get icon(){throw new Error("not implemented")}get notificationTypes(){}getUnreadCountForType(e){const t=`grouped_unread_notifications.${this.site.notification_types[e]}`,i=`grouped_unread_high_priority_notifications.${this.site.notification_types[e]}`
return this.currentUser.get(t)||this.currentUser.get(i)||0}}e.default=i
const n=[]
e.CUSTOM_TABS_CLASSES=n})),define("discourse/lib/user-presence",["exports","discourse-common/config/environment"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.clearPresenceCallbacks=function(){i.length=0},e.default=c,e.onPresenceChange=function(){let{userUnseenTime:e=n,browserHiddenTime:t=r,callback:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if(e<n)throw`userUnseenTime must be at least ${n}`
i.push({userUnseenTime:e,browserHiddenTime:t,lastState:!0,callback:o})},e.removeOnPresenceChange=function(e){const t=i.findIndex((t=>t.callback===e))
i.splice(t,1)},e.seenUser=p,e.setTestPresence=function(e){if(!(0,t.isTesting)())throw"Only available in test mode"
u=e},e.visibilityChanged=m
const i=[],n=6e4,r=0
let o=null,s=Date.now(),l=!1,a=!1,u=!0
function c(){let{browserHiddenTime:e=r,userUnseenTime:i=n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if((0,t.isTesting)())return u
if(o){if(Date.now()-o>=e)return!1}return!(Date.now()-s>=i)}function d(){const e=document.hidden
!!o!==e&&(o=e?Date.now():null),l&&(s=Date.now(),l=!1),a=!1
for(const t of i){const e=c({userUnseenTime:t.userUnseenTime,browserHiddenTime:t.browserHiddenTime})
if(t.lastState!==e)try{t.callback(e)}finally{t.lastState=e}e||(a=!0)}}function p(){l=!0,a&&d()}function m(){document.hidden?d():p()}(0,t.isTesting)()||(document.addEventListener("touchmove",p,{passive:!0}),document.addEventListener("click",p,{passive:!0}),window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("focus",p,{passive:!0}),document.addEventListener("visibilitychange",m,{passive:!0}),setInterval(d,1e4))})),define("discourse/lib/user-search",["exports","@ember/runloop","discourse-common/lib/later","discourse/lib/autocomplete","rsvp","discourse-common/lib/debounce","discourse/lib/utilities","discourse-common/config/environment","discourse/lib/url","discourse/lib/ajax"],(function(e,t,i,n,r,o,s,l,a,u){Object.defineProperty(e,"__esModule",{value:!0}),e.camelCaseToSnakeCase=f,e.default=function(e){e.term&&e.term.length>0&&"@"===e.term[0]&&(e.term=e.term.substring(1))
let o=e.term||"",a=e.includeGroups,u=e.includeMentionableGroups,f=e.includeMessageableGroups,g=e.customUserSearchOptions,_=e.allowedUsers,w=e.topicId,k=e.categoryId,x=e.groupMembersOf,P=e.includeStagedUsers,O=e.lastSeenUsers,T=e.limit||6
m&&(m.abort(),m=null)
return p=o,new r.Promise((function(r){const p=`${w}-${k}`
let m;(new Date-d>3e4||c!==p)&&(h={}),c=p,(0,l.isTesting)()||(m=(0,i.default)((()=>r(n.CANCELLED_STATUS)),5e3)),v(o,e.allowEmails,e.lastSeenUsers)?r([]):b(o,w,k,a,u,f,g,_,x,P,O,T,(function(i){(0,t.cancel)(m),r(function(e,t){if(e===n.CANCELLED_STATUS)return e
const i=t.exclude||[],r=t.term?.trim()?.split(/\s/,1)?.[0],o=[],l=[],a=[]
let u=0
e.users&&e.users.forEach((e=>{u<t.limit&&!i.includes(e.username)&&(e.isUser=!0,e.isMetadataMatch=!y(e.username,r)&&!y(e.name,r),o.push(e),u+=1)}))
t.allowEmails&&(0,s.emailValid)(t.term)&&(l.push({username:t.term,isEmail:!0}),u+=1)
e.groups&&e.groups.forEach((e=>{(t.term.toLowerCase()===e.name.toLowerCase()||u<t.limit)&&!i.includes(e.name)&&(e.isGroup=!0,a.push(e),u+=1)}))
const c=[...o.filter((e=>!e.isMetadataMatch)),...l,...a,...o.filter((e=>e.isMetadataMatch))]
return c.users=o,c.emails=l,c.groups=a,c}(i,{...e,limit:T}))}))}))},e.eagerCompleteSearch=w,e.resetUserSearchCache=function(){h={},c=null,d=null,p=null,m=null},e.skipSearch=v
let c,d,p,m,h={}
function f(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1_").toLowerCase()}function g(e,t,i,r,o,s,l,c,g,b,y,_,v){let k=h[e]
if(k)return void v(k)
const x=w(e,t||i)
if(""===e&&!x&&!y)return void v(n.CANCELLED_STATUS)
let P={term:e,topic_id:t,category_id:i,include_groups:r,include_mentionable_groups:o,include_messageable_groups:s,groups:g,topic_allowed_users:c,include_staged_users:b,last_seen_users:y,limit:_}
l&&Object.keys(l).forEach((e=>{P[f(e)]=l[e]})),m=(0,u.ajax)((0,a.userPath)("search/users"),{data:P})
let O=n.CANCELLED_STATUS
m.then((function(t){const i=!!(t.users&&t.users.length||t.groups&&t.groups.length||t.emails&&t.emails.length)
x&&!i&&(t=n.CANCELLED_STATUS),h[e]=t,d=new Date,e===p&&(O=t)})).finally((function(){m=null,v(O)}))}let b=function(e,t,i,n,r,s,l,a,u,c,d,p,m){(0,o.default)(this,g,e,t,i,n,r,s,l,a,u,c,d,p,m,300)}
function y(e,t){return e&&t&&e.toLowerCase().includes(t.toLowerCase())}const _=/([\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*,\/:;<=>?\[\]^`{|}~])|\s\s|^\s$|^[^+]*\+[^@]*$/
function v(e,t){return!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&(!(!e.includes("@")||t)||!!e.match(_))}function w(e,t){return""===e&&!!t}})),define("discourse/lib/user-status-message",["exports","discourse/lib/d-tooltip","discourse/lib/text","discourse/lib/utilities","discourse/lib/formatter","discourse/models/user"],(function(e,t,i,n,r,o){function s(e){const t=(0,n.escapeExpression)(`:${e}:`)
return(0,i.emojiUnescape)(t,{skipTitle:!0})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i){const n=document.createElement("span")
n.classList.add("user-status-message"),i?.class&&n.classList.add(i.class)
if(n.innerHTML=s(e.emoji),i?.showDescription){const t=document.createElement("span")
t.classList.add("user-status-message-description"),t.innerText=e.description,n.appendChild(t)}i?.showTooltip&&function(e,i){const n=document.createElement("div")
n.classList.add("user-status-message-tooltip"),n.innerHTML=s(i.emoji)
const l=document.createElement("span")
if(l.classList.add("user-status-tooltip-description"),l.innerText=i.description,n.appendChild(l),i.ends_at){const e=document.createElement("div")
e.classList.add("user-status-tooltip-until"),e.innerText=function(e){const t=o.default.current(),i=t?t.user_option?.timezone:moment.tz.guess()
return(0,r.until)(e,i,t?.locale)}(i.ends_at),n.appendChild(e)}(0,t.default)(e,n)}(n,e)
return n}})),define("discourse/lib/user-status-on-autocomplete",["exports","discourse/lib/user-status-message"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.destroyTippyInstances=function(){i.forEach((e=>{e.destroy()})),i=[]},e.initUserStatusHtml=function(e){(e||[]).forEach(((e,n)=>{e.status&&(e.index=n,e.statusHtml=(0,t.default)(e.status,{showTooltip:!0,showDescription:!0}),i.push(e.statusHtml._tippy))}))},e.renderUserStatusHtml=function(e){document.querySelectorAll(".autocomplete.ac-user li").forEach((t=>{const i=t.dataset.index,n=e.find((function(e){return e.index===parseInt(i,10)}))?.statusHtml
n&&t.querySelector(".user-status").replaceWith(n)}))}
let i=[]})),define("discourse/lib/user-tips",["exports","discourse-common/config/environment","discourse-common/lib/icon-library","I18n","pretty-text/sanitizer","tippy.js","discourse/lib/is-element-in-viewport"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.hideAllUserTips=function(){Object.keys(a).forEach((e=>{u(a[e]),delete a[e]}))},e.hideUserTip=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
const i=a[e]
if(!i)return
t?(u(i),delete a[e],c()):i.destroyTimeout||(i.destroyTimeout=setTimeout((()=>{u(a[e]),delete a[e],c()}),l))},e.showNextUserTip=c,e.showUserTip=function(e){let t=a[e.id]
if(t){if(t.reference===e.reference)return function(e){e.destroyTimeout&&(clearTimeout(e.destroyTimeout),e.destroyTimeout=null)}(t)
u(t),delete a[e.id]}if(!e.reference)return
let s=(0,r.escape)(n.default.t(e.buttonLabel||"user_tips.button"))
e.buttonIcon&&(s=`${(0,i.iconHTML)(e.buttonIcon)} ${s}`)
a[e.id]=(0,o.default)(e.reference,{hideOnClick:!1,trigger:"manual",theme:"user-tip",zIndex:"",duration:l,arrow:(0,i.iconHTML)("tippy-rounded-arrow"),placement:e.placement,appendTo:e.appendTo,interactive:!0,allowHTML:!0,content:e.content||`<div class='user-tip__container'>\n        <div class='user-tip__title'>${(0,r.escape)(e.titleText)}</div>\n        <div class='user-tip__content'>${(0,r.escape)(e.contentText)}</div>\n        <div class='user-tip__buttons'>\n          <button class="btn btn-primary">${s}</button>\n        </div>\n      </div>`,onCreate(t){t.popper.classList.add("user-tip"),t.popper.querySelector(".btn").addEventListener("click",(t=>{e.onDismiss?.(),t.preventDefault()}))}}),c()}
const l=500,a={}
function u(e){e.showTimeout&&(clearTimeout(e.showTimeout),e.showTimeout=null),e.destroyTimeout&&(clearTimeout(e.destroyTimeout),e.destroyTimeout=null),e.destroy()}function c(){const e=Object.values(a)
if(e.find((e=>e.state.isVisible&&(0,s.default)(e.reference))))return
const i=e.findIndex((e=>(0,s.default)(e.reference))),n=e[-1===i?0:i]
e.forEach((e=>{e===n?function(e){(0,t.isTesting)()?e.show():e.showTimeout||(e.showTimeout=setTimeout((()=>{e.showTimeout=null,e.state.isDestroyed||e.show()}),l))}(e):function(e){clearTimeout(e.showTimeout),e.showTimeout=null,e.hide()}(e)}))}window.instancesMap=a})),define("discourse/lib/utilities",["exports","discourse-common/lib/get-url","handlebars","I18n","discourse-common/lib/object","pretty-text/sanitizer","discourse-common/lib/helpers","discourse/lib/to-markdown","discourse-common/lib/deprecated"],(function(e,t,i,n,r,o,s,l,a){let u
function c(e){switch(e){case"tiny":case"small":return 24
case"medium":case"large":return 48
case"extra_large":return 96
case"huge":return 144}return e}function d(e){return e?e instanceof i.default.SafeString?e.toString():(0,o.escape)(e):""}Object.defineProperty(e,"__esModule",{value:!0}),e.areCookiesEnabled=function(){try{document.cookie="cookietest=1"
let e=document.cookie.includes("cookietest=")
return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(e){return!1}},e.avatarImg=y,e.avatarUrl=m,e.caretPosition=v,e.caretRowCol=function(e){let t=v(e),i=e.value.slice(0,t).split("\n"),n=i.length,r=t-i.splice(0,n-1).reduce((function(e,t){return e+t.length+1}),0)
return{rowNum:n,colNum:r}},e.clipboardCopy=S,e.clipboardCopyAsync=function(e){if(window.navigator.clipboard)return window.ClipboardItem?window.navigator.clipboard.write([new window.ClipboardItem({"text/plain":e()})]).catch((function(e){throw void 0!==e?e:new DOMException("The request is not allowed","NotAllowedError")})):e().then((e=>e.text().then((e=>S(e)))))
return e().then((e=>{e.text().then((e=>j(e)))}))},e.clipboardHelpers=function(e,t){const i=e.clipboardData||e.originalEvent.clipboardData||e.delegatedEvent.originalEvent.clipboardData,n=k(i.types)
let r=k(i.files)
n.includes("Files")&&0===r.length&&(r=k(i.items).filter((e=>"file"===e.kind)))
let o=r&&t.canUpload&&n.includes("Files")
const s=o&&r.filter((e=>e.type.match("^image/")))[0]&&!x(i),l=t.siteSettings.enable_rich_text_paste&&n.includes("text/html")&&!s
return{clipboard:i,types:n,canUpload:o,canPasteHtml:l}},e.default=void 0,e.defaultHomepage=function(){return u},e.determinePostReplaceSelection=function(e){let{selection:t,needle:i,replacement:n}=e
const r=n.end-n.start-(i.end-i.start)
return t.end<=i.start?{start:t.start,end:t.end}:t.start<=i.start?t.end<i.end?{start:t.start,end:i.start}:{start:t.start,end:t.end+r}:t.start<i.end?t.end<=i.end?{start:n.end,end:n.end}:{start:n.end,end:t.end+r}:{start:t.start+r,end:t.end+r}},e.emailValid=function(e){return/^[a-zA-Z0-9!#$%&'*+\/=?\^_`{|}~\-]+(?:\.[a-zA-Z0-9!#$%&'\*+\/=?\^_`{|}~\-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/.test(e)},e.escapeExpression=d,e.extractDomainFromUrl=function(e){e=e.includes("://")?e.split("/")[2]:e.split("/")[0]
return e.split(":")[0]},e.fillMissingDates=function(e,t,i){const n=moment(t,"YYYY-MM-DD"),r=moment(i,"YYYY-MM-DD").diff(n,"days")
let o=n
for(let s=0;s<=r;s++){let t=e[s]?moment(e[s].x,"YYYY-MM-DD"):null
0!==s||t&&!t.isAfter(n)?t&&!t.isAfter(moment(o))||e.splice(s,0,{x:o,y:0}):e.splice(s,0,{x:n.format("YYYY-MM-DD"),y:0}),o=moment(o).add(1,"day").format("YYYY-MM-DD")}return e},e.formatUsername=function(e){return p(e||"")},e.getRawAvatarSize=g,e.getRawSize=b,e.highlightPost=function(e){const t=document.querySelector(`#post_${e}`)
if(!t)return
const i=t.querySelector(".topic-body")
if(!i||i.classList.contains("highlighted"))return
i.classList.add("highlighted")
const n=function(){i.classList.remove("highlighted"),i.removeEventListener("animationend",n)}
i.addEventListener("animationend",n),t.querySelector(".tabLoc").focus()},e.hostnameValid=function(e){return e&&/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/.test(e)},e.inCodeBlock=function(e,t){let i=0
for(const r of e.matchAll(O))if(i=r.index+r[0].length,r.index<=t&&t<=i)return!0
const n=e.slice(i).search(T)
return-1!==n&&t>=i+n},e.initializeDefaultHomepage=function(e){let t,i=document.querySelector("meta[name='discourse_current_homepage']")
i&&(t=i.getAttribute("content"))
t||(t=e.top_menu.split("|")[0].split(",")[0])
w(t)},e.isAppleDevice=function(){return(0,s.helperContext)().capabilities.isIOS&&!window.navigator.userAgent.match(/Trident/g)},e.isNumeric=function(e){return!isNaN(P(e))&&isFinite(e)},e.isiPad=function(){void 0===h&&(h=window.navigator.userAgent.match(/iPad/g)&&!window.navigator.userAgent.match(/Trident/g))
return h},e.mergeSortedLists=function(e,t,i){let n=0,r=0
const o=[]
for(;n<e.length||r<t.length;)n===e.length||r<t.length&&i(e[n],t[r])?(o.push(t[r]),r++):(o.push(e[n]),n++)
return o},e.modKeysPressed=function(e){return["alt","shift","meta","ctrl"].filter((t=>e[`${t}Key`]))},e.postRNWebviewMessage=function(e,t){void 0!==window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify({[e]:t}))},e.postUrl=function(e,i,n){let r=(0,t.default)("/t/")
r+=e?e+"/":"topic/"
r+=i,n>1&&(r+="/"+n)
return r}
e.prefersReducedMotion=function(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches},e.replaceFormatter=function(e){p=e},e.safariHacksDisabled=function(){return(0,a.default)("`safariHacksDisabled()` is deprecated, it now always returns `false`",{since:"2.8.0.beta8",dropFrom:"2.9.0.beta1",id:"discourse.safari-hacks-disabled"}),!1},e.selectedElement=function(){return _()?.commonAncestorContainer},e.selectedRange=_,e.selectedText=function(){const e=window.getSelection()
if(e.isCollapsed)return""
const t=$("<div>")
for(let i=0;i<e.rangeCount;i++){const n=e.getRangeAt(i),r=$(n.commonAncestorContainer),o=r.find(".post-menu-area")[0]
o&&n.setEndBefore(o)
const s=r.closest("aside.onebox[data-onebox-src]")
if(r.parents("pre").length){const e=$("<code>")
if(e.append(n.cloneContents()),/\n/.test(e.text())){const i=$("<pre>")
i.append(e),t.append(i)}else t.append(e)}else if(s.length){const e=$(s).data("onebox-src")
t.append(e)}else t.append(n.cloneContents())}return t.find("aside.onebox[data-onebox-src]").each((function(){const e=$(this).data("onebox-src")
$(this).replaceWith(e)})),(0,l.default)(t.html())},e.setCaretPosition=function(e,t){let i
if(e.setSelectionRange)return e.focus(),void e.setSelectionRange(t,t)
if(e.createTextRange)return i=e.createTextRange(),i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",t),i.select()},e.setDefaultHomepage=w,e.slugify=function(e){return e.trim().toLowerCase().replace(/\s|_+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},e.splitString=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:","
return"string"==typeof e?e.split(t).filter(Boolean):[]},e.tinyAvatar=function(e,t){return y((0,r.deepMerge)({avatarTemplate:e,size:"tiny"},t))},e.toAsciiPrintable=function(e,t){"function"==typeof e.normalize&&(e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""))
return/^[\040-\176]*$/.test(e)?e:t},e.toNumber=P,e.translateModKey=function(e){const{isApple:t}=(0,s.helperContext)().capabilities
e=t?e.toLowerCase().replace("shift","⇧").replace("meta","⌘").replace("alt","⌥").replace(/\+/g,""):e.toLowerCase().replace("shift",n.default.t("shortcut_modifier_key.shift")).replace("ctrl",n.default.t("shortcut_modifier_key.ctrl")).replace("meta",n.default.t("shortcut_modifier_key.ctrl")).replace("alt",n.default.t("shortcut_modifier_key.alt"))
return e},e.translateSize=c
let p=e=>e
function m(e,i){let{customGetURL:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
if(!e)return""
const r=g(c(i)),o=e.replace(/\{size\}/g,r)
return(n||t.getURLWithCDN)(o)}let h,f=null
function g(e){f??=(0,s.helperContext)().siteSettings.avatar_sizes.split("|").map((e=>parseInt(e,10))).sort(((e,t)=>e-t)),e=b(e)
for(let t=0;t<f.length;t++)if(f[t]>=e)return f[t]
return f[f.length-1]}function b(e){const t=window.devicePixelRatio||1
let i=1
return t>1.1&&t<2.1?i=2:t>=2.1&&(i=3),e*i}function y(e,t){const i=c(e.size)
let n=m(e.avatarTemplate,i,{customGetURL:t})
if(!n)return""
const r="avatar"+(e.extraClasses?" "+e.extraClasses:"")
let o=""
if(e.title){const t=d(e.title||"")
o=` title='${t}' aria-label='${t}'`}return`<img loading='lazy' alt='' width='${i}' height='${i}' src='${n}' class='${r}'${o}>`}function _(){const e=window.getSelection()
if(e.rangeCount>0)return e.getRangeAt(0)}function v(e){return e?.selectionStart||0}function w(e){u=e}const k=e=>(e=e||[],Array.isArray(e)?e:Array.from(e)),x=e=>1===e.files.length&&"image/png"===e.files[0].type&&e.types.every((e=>["text/html","Files"].includes(e)))&&/<img.*src=.*\.gif/.test(e.getData("text/html"))
function P(e){return"number"==typeof e?e:parseFloat(e)}const O=/^(  |\t).*|`[^`]+`|^```[^]*?^```|\[code\][^]*?\[\/code\]/gm,T=/^(  |\t).*|`[^`]+|^```[^]*?|\[code\][^]*?/gm
function S(e){return window.navigator.clipboard?window.navigator.clipboard.writeText(e).catch((function(e){throw void 0!==e?e:new DOMException("The request is not allowed","NotAllowedError")})):j(e)}function j(e){const t=document.createElement("span")
t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t)
const i=window.getSelection(),n=window.document.createRange()
i.removeAllRanges(),n.selectNode(t),i.addRange(n)
let r=!1
try{r=window.document.execCommand("copy")}catch(o){console.log("error",o)}return i.removeAllRanges(),window.document.body.removeChild(t),r}e.default={}})),define("discourse/lib/virtual-element-from-text-range",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return new t}
class t{constructor(){this.updateRect()}updateRect(){const e=document.getSelection()
if(this.range=e&&e.rangeCount&&e.getRangeAt(0),this.range)return this.rect=this.range.getBoundingClientRect(),this.rect}getBoundingClientRect(){return this.rect}get clientWidth(){return this.rect.width}get clientHeight(){return this.rect.height}}})),define("discourse/lib/waving-hand-url",["exports","discourse-common/lib/helpers","discourse/lib/settings","discourse-common/lib/get-url"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.wavingHandURL=function(){const e=(0,t.helperContext)().siteSettings.emoji_set,r=Math.floor(5*Math.random()+2)
return(0,n.default)(`${(0,i.emojiBasePath)()}/${e}/wave/${r}.png`)}})),define("discourse/lib/webauthn",["exports","I18n"],(function(e,t){function i(e){let t=new ArrayBuffer(e.length),i=new Uint8Array(t)
for(let n=0;n<e.length;n++)i[n]=e.charCodeAt(n)
return t}function n(e){return btoa(String.fromCharCode(...new Uint8Array(e)))}function r(){return"undefined"!=typeof PublicKeyCredential}Object.defineProperty(e,"__esModule",{value:!0}),e.bufferToBase64=n,e.getWebauthnCredential=function(e,o,s,l){if(!r())return l(t.default.t("login.security_key_support_missing_error"))
let a=i(e),u=o.map((e=>({id:i(atob(e)),type:"public-key"})))
navigator.credentials.get({publicKey:{challenge:a,allowCredentials:u,timeout:6e4,userVerification:"discouraged"}}).then((e=>{if(!o.some((t=>n(e.rawId)===t)))return l(t.default.t("login.security_key_no_matching_credential_error"))
const i={signature:n(e.response.signature),clientData:n(e.response.clientDataJSON),authenticatorData:n(e.response.authenticatorData),credentialId:n(e.rawId)}
s(i)})).catch((e=>{if("NotAllowedError"===e.name)return l(t.default.t("login.security_key_not_allowed_error"))
l(e)}))},e.isWebauthnSupported=r,e.stringToBuffer=i})),define("discourse/mapping-router",["exports","@ember/routing/router","discourse/models/site","discourse/lib/utilities","discourse-common/lib/get-url","discourse-common/config/environment","discourse/lib/url"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.mapRoutes=function(){const e=new a("root"),t=[]
return Object.keys(requirejs._eak_seen).forEach((function(i){if(/route-map$/.test(i)){let n=requirejs(i,null,null,!0)
if(!n||!n.default)throw new Error(i+" must export a route map.")
const r=n.default
"function"==typeof r?e.extract(r):t.push(r)}})),t.forEach((t=>{let i=e.findPath(t.resource)
i&&i.extract(t.map)})),l.extend({rootURL:(0,r.default)("/")}).map((function(){e.mapRoutes(this),this.route("unknown",{path:"*path"})}))}
const l=t.default.extend({location:(0,o.isTesting)()?"none":"discourse-location",handleURL(e){const t=(e=(0,s.rewritePath)(e)).split("?")
return"/"!==t[0]&&""!==t[0]||(e=(0,n.defaultHomepage)(),t[1]&&t[1].length&&(e=`${e}?${t[1]}`)),this._super(e)}})
class a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0
this.name=e,this.opts=t,this.depth=n,this.children=[],this.childrenByName={},this.paths={},this.site=i.default.current(),t.path||(t.path=e),this.paths[t.path]=!0}route(e,t,i){"function"==typeof t?(i=t,t={}):t=t||{}
const n=this.childrenByName[e]
if(n)t.path&&(n.paths[t.path]=!0),n.extract(i)
else{const n=new a(e,t,this.depth+1)
n.extract(i),this.childrenByName[e]=n,this.children.push(n)}}extract(e){e&&e.call(this)}mapRoutes(e){const t=this.children
if("root"===this.name)t.forEach((t=>t.mapRoutes(e)))
else{const i=0===t.length?void 0:function(){t.forEach((e=>e.mapRoutes(this)))}
e.route(this.name,this.opts,i)}}findSegment(e){if(e&&e.length){const t=e.shift(),i=this.childrenByName[t]
if(i)return 0===e.length?i:i.findSegment(e)}}findPath(e){if(e)return this.findSegment(e.split("."))}}})),define("discourse/mixins/add-archetype-class",["exports","discourse-common/utils/decorators"],(function(e,t){var i,n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=(i=(0,t.observes)("archetype"),n=(0,t.on)("init"),r={_cleanUp(){document.body.classList.forEach((e=>{/\barchetype-\S+/g.test(e)&&document.body.classList.remove(e)}))},_archetypeChanged(){this._cleanUp(),this.archetype&&document.body.classList.add(`archetype-${this.archetype}`)},willDestroyElement(){this._super(...arguments),this._cleanUp()}},o=r,s="_archetypeChanged",l=[i,n],a=Object.getOwnPropertyDescriptor(r,"_archetypeChanged"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r)
e.default=d})),define("discourse/mixins/buffered-content",["exports","ember-buffered-proxy/proxy","@ember/object/mixin","@ember/object"],(function(e,t,i,n){function r(e){const r={buffered:(0,n.computed)(e,(function(){return t.default.create({content:this.get(e)})})),rollbackBuffer(){this.buffered.discardBufferedChanges()},commitBuffer(){this.buffered.applyBufferedChanges()},property:null}
return i.default.create(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.bufferedProperty=r,e.default=void 0
var o=r("content")
e.default=o})),define("discourse/mixins/bulk-topic-selection",["exports","@ember/object/mixin","@ember/object/computed","discourse-common/utils/decorators","discourse/lib/notification-levels","discourse/models/topic","@ember/service"],(function(e,t,i,n,r,o,s){var l,a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u,c,d,p,m,h,f=t.default.create((l=(0,n.on)("init"),a={router:(0,s.inject)(),bulkSelectEnabled:!1,autoAddTopicsToBulkSelect:!1,selected:null,lastChecked:null,canBulkSelect:(0,i.or)("currentUser.canManageTopic","showDismissRead","showResetNew"),resetSelected(){this.set("selected",[])},_isFilterPage:(e,t)=>!!e&&new RegExp(t+"$","gi").test(e),actions:{toggleBulkSelect(){this.toggleProperty("bulkSelectEnabled"),this.selected.clear()},dismissRead(e,t){const i="posts"===e?{type:"dismiss_posts"}:{type:"change_notification_level",notification_level_id:r.NotificationLevels.REGULAR},n="tracked"===(this.router.currentRoute.queryParams.f||this.router.currentRoute.queryParams.filter);(this.selected.length?o.default.bulkOperation(this.selected,i,n):o.default.bulkOperationByFilter("unread",i,t,n)).then((e=>{e&&e.topic_ids&&(t.private_message_inbox?this.pmTopicTrackingState.removeTopics(e.topic_ids):this.topicTrackingState.removeTopics(e.topic_ids)),this.send("closeModal"),this.send("refresh",n?{skipResettingParams:["filter","f"]}:{})}))},updateAutoAddTopicsToBulkSelect(e){this.set("autoAddTopicsToBulkSelect",e)},addTopicsToBulkSelect(e){this.selected.pushObjects(e)}}},u=a,c="resetSelected",d=[l],p=Object.getOwnPropertyDescriptor(a,"resetSelected"),m=a,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),a))
e.default=f})),define("discourse/mixins/can-check-emails",["exports","@ember/object/computed","discourse/lib/computed","@ember/object/mixin"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=n.default.create({isCurrentUser:(0,i.propertyEqual)("model.id","currentUser.id"),showEmailOnProfile:(0,i.setting)("moderators_view_emails"),canStaffCheckEmails:(0,t.and)("showEmailOnProfile","currentUser.staff"),canAdminCheckEmails:(0,t.alias)("currentUser.admin"),canCheckEmails:(0,t.or)("isCurrentUser","canStaffCheckEmails","canAdminCheckEmails")})
e.default=r})),define("discourse/mixins/card-contents-base",["exports","@ember/object/computed","@ember/runloop","discourse/lib/url","@ember/object/mixin","discourse/lib/utilities","@ember/service","discourse/lib/intercept-click","discourse-common/utils/decorators","discourse-common/lib/later","@popperjs/core","discourse/lib/offset-calculator"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p
function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addCardClickListenerSelector=function(e){f.push(e)},e.default=void 0,e.resetCardClickListenerSelector=function(){f=[h]}
const h="#main-outlet"
let f=[h]
var g=r.default.create((p={router:(0,s.inject)(),elementId:null,triggeringLinkClass:null,_showCallback:null,postStream:(0,t.alias)("topic.postStream"),viewingTopic:(0,t.match)("router.currentRouteName",/^topic\./),visible:!1,username:null,loading:null,cardTarget:null,post:null,isDocked:!1,_popperReference:null,_show(e,t,i){if(this.siteSettings.hide_user_profiles_from_public&&!this.currentUser)return!1
if(e=(0,o.escapeExpression)(e.toString()),t.closest(".card-content"))return this._close(),n.default.routeTo(t.href),!1
this.appEvents.trigger("card:show",e,t,i)
const r=t.closest("article"),s=r?.dataset?.postId||null,l=this.visible,a=this.cardTarget
if(l&&(this._close(),t===a))return
const u=this.viewingTopic&&s?this.postStream.findLoadedPost(s):null
return this.setProperties({username:e,loading:e,cardTarget:t,post:u}),document.querySelector(".card-cloak")?.classList.remove("hidden"),this.appEvents.trigger("user-card:show",{username:e}),this._showCallback(e,$(t)).then((e=>{this.appEvents.trigger("user-card:after-show",{user:e}),this._positionCard($(t),i)})),this.site.mobileView&&this._bindMobileScroll(),!1},didInsertElement(){this._super(...arguments)
const e=this.elementId,t=`click.discourse-preview-${e}-${this.triggeringLinkClass}`
this.setProperties({boundCardClickHandler:this._cardClickHandler,previewClickEvent:t,mobileScrollEvent:"scroll.mobile-card-cloak"}),document.addEventListener("mousedown",this._clickOutsideHandler),document.addEventListener("keyup",this._escListener),f.forEach((e=>{document.querySelector(e).addEventListener("click",this.boundCardClickHandler)})),this.appEvents.on(t,this,"_previewClick"),this.appEvents.on(`topic-header:trigger-${e}`,this,"_topicHeaderTrigger"),this.appEvents.on("card:close",this,"_close")},_cardClickHandler(e){if(this.avatarSelector){if(this._showCardOnClick(e,this.avatarSelector,(e=>e.dataset[this.avatarDataAttrKey])))return}this._showCardOnClick(e,this.mentionSelector,(e=>e.innerText.replace(/^@/,"")))},_showCardOnClick(e,t,i){let n=e.target.closest(t)
return!!n&&(!!(0,l.wantsNewWindow)(e)||(e.preventDefault(),e.stopPropagation(),this._show(i(n),n,e)))},_topicHeaderTrigger(e,t){return this.setProperties({isDocked:!0}),this._show(e,t)},_bindMobileScroll(){const e=this.mobileScrollEvent
$(window).on(e,(()=>{(0,i.throttle)(this,this._close,1e3)}))},_unbindMobileScroll(){const e=this.mobileScrollEvent
$(window).off(e)},_previewClick(e){return this._show(e.text().replace(/^@/,""),e)},_positionCard(e,t){this._popperReference?.destroy(),(0,i.schedule)("afterRender",(()=>{if(e){if(this.site.desktopView){const t=44
this._popperReference=(0,c.createPopper)(e[0],this.element,{placement:"right",modifiers:[{name:"preventOverflow",options:{padding:{top:(0,d.headerOffset)()+t,right:10,bottom:10,left:10}}},{name:"eventListeners",enabled:!1},{name:"offset",options:{offset:[10,10]}}]})}else this._popperReference=(0,c.createPopper)(e[0],this.element,{modifiers:[{name:"eventListeners",enabled:!1},{name:"computeStyles",enabled:!0,fn(e){let{state:t}=e
return t.styles.popper={...t.styles.popper,position:"fixed",left:(window.innerWidth-t.rects.popper.width)/2+"px",top:"10%",transform:"translateY(-10%)"},t}}]})
this.element.classList.toggle("docked-card",this.isDocked),-1===t?.pointerId&&(0,u.default)((()=>{this.element.querySelector("a")?.focus()}),350)}}))},_hide(){this.visible||($(this.element).css({left:-9999,top:-9999}),this.site.mobileView&&$(".card-cloak").addClass("hidden"))},_close(){this.setProperties({visible:!1,username:null,loading:null,cardTarget:null,post:null,isDocked:!1}),this.site.mobileView&&this._unbindMobileScroll(),this._hide(),this.appEvents.trigger("card:hide")},willDestroyElement(){this._super(...arguments),document.removeEventListener("mousedown",this._clickOutsideHandler),document.removeEventListener("keyup",this._escListener),f.forEach((e=>{document.querySelector(e).removeEventListener("click",this.boundCardClickHandler)}))
const e=this.previewClickEvent
this.appEvents.off(e,this,"_previewClick"),this.appEvents.off(`topic-header:trigger-${this.elementId}`,this,"_topicHeaderTrigger"),this.appEvents.off("card:close",this,"_close"),this._hide()},_clickOutsideHandler(e){if(this.visible){if(e.target.closest(`[data-${this.elementId}]`)?.getAttribute(`data-${this.elementId}`)||e.target.closest(`a.${this.triggeringLinkClass}`)||e.target.closest(`#${this.elementId}`))return
this._close()}return!0},_escListener(e){if(this.visible&&"Escape"===e.key)return this.cardTarget?.focus(),void this._close()}},m(p,"_cardClickHandler",[a.bind],Object.getOwnPropertyDescriptor(p,"_cardClickHandler"),p),m(p,"_hide",[a.bind],Object.getOwnPropertyDescriptor(p,"_hide"),p),m(p,"_clickOutsideHandler",[a.bind],Object.getOwnPropertyDescriptor(p,"_clickOutsideHandler"),p),m(p,"_escListener",[a.bind],Object.getOwnPropertyDescriptor(p,"_escListener"),p),p))
e.default=g})),define("discourse/mixins/cleans-up",["exports","@ember/object/mixin","@ember/object/evented"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.create({_initializeChooser:(0,i.on)("didInsertElement",(function(){this.appEvents.on("dom:clean",this,"cleanUp")})),_clearChooser:(0,i.on)("willDestroyElement",(function(){this.appEvents.off("dom:clean",this,"cleanUp")}))})
e.default=n})),define("discourse/mixins/composer-upload-uppy",["exports","@ember/object/mixin","discourse/mixins/extendable-uploader","@ember/object","discourse/mixins/uppy-s3-multipart","discourse-common/lib/object","discourse/lib/uppy-checksum-plugin","@uppy/core","@uppy/drop-target","@uppy/xhr-upload","@ember/debug","I18n","discourse-common/lib/get-url","discourse/lib/utilities","discourse-common/utils/decorators","discourse/lib/uploads","pretty-text/upload-short-url","@ember/service","@ember/runloop","discourse-common/utils/escape-regexp"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_){var v,w,k
function x(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var P=t.default.create(i.default,r.default,(v=(0,h.observes)("composerModel.uploadCancelled"),w=(0,h.on)("willDestroyElement"),k={dialog:(0,b.inject)(),uploadRootPath:"/uploads",uploadTargetBound:!1,useUploadPlaceholders:!0,_cancelSingleUpload(e){this._uppyInstance.removeFile(e.fileId)},_cancelUpload(){this.get("composerModel.uploadCancelled")&&(this.set("composerModel.uploadCancelled",!1),this.set("userCancelled",!0),this._uppyInstance.cancelAll())},_unbindUploadTarget(){this.uploadTargetBound&&(this.fileInputEl?.removeEventListener("change",this.fileInputEventListener),this.editorEl?.removeEventListener("paste",this.pasteEventListener),this.appEvents.off(`${this.composerEventPrefix}:add-files`,this._addFiles),this.appEvents.off(`${this.composerEventPrefix}:cancel-upload`,this._cancelSingleUpload),this._reset(),this._uppyInstance&&(this._uppyInstance.close(),this._uppyInstance=null),this.uploadTargetBound=!1)},_abortAndReset(){return this.appEvents.trigger(`${this.composerEventPrefix}:uploads-aborted`),this._reset(),!1},_bindUploadTarget(){this.set("inProgressUploads",[]),this.placeholders={},this._preProcessorStatus={},this.editorEl=this.element.querySelector(this.editorClass),this.fileInputEl=document.getElementById(this.fileUploadElementId)
const e=this.get("composerModel.privateMessage")
this.appEvents.on(`${this.composerEventPrefix}:add-files`,this._addFiles),this.appEvents.on(`${this.composerEventPrefix}:cancel-upload`,this._cancelSingleUpload),this._unbindUploadTarget(),this.fileInputEventListener=(0,f.bindFileInputChangeListener)(this.fileInputEl,this._addFiles),this.editorEl.addEventListener("paste",this.pasteEventListener),this._uppyInstance=new l.default({id:this.uppyId,autoProceed:!0,meta:(0,o.deepMerge)({upload_type:this.uploadType},this.data||{}),onBeforeFileAdded:t=>{const i={user:this.currentUser,siteSettings:this.siteSettings,isPrivateMessage:e,allowStaffToUploadAnyFileInPm:this.siteSettings.allow_staff_to_upload_any_file_in_pm},n=(0,f.validateUploadedFile)(t,i)
return this.setProperties({uploadProgress:0,isUploading:n,isCancellable:n}),n||this.appEvents.trigger(`${this.composerEventPrefix}:uploads-aborted`),n},onBeforeUpload:e=>{const t=this.siteSettings.simultaneous_uploads,i={},n={}
for(const[o,s]of Object.entries(e)){const t=this._findMatchingUploadHandler(s.name)
t?n[t.method]?n[t.method].files.push(s):n[t.method]={fn:t.method,files:[s.data]}:i[o]={...e[o]}}for(const o of Object.values(n))if(!o.fn(o.files,this))return this._abortAndReset()
const r=Object.keys(i).length
return t>0&&r>t?(this.dialog.alert(d.default.t("post.errors.too_many_dragged_and_dropped_files",{count:t})),this._abortAndReset()):i}}),this.siteSettings.enable_upload_debug_mode&&this._instrumentUploadTimings(),this.siteSettings.enable_direct_s3_uploads?this._useS3MultipartUploads():this._useXHRUploads(),this._uppyInstance.on("file-added",(t=>{(0,y.run)((()=>{e&&(t.meta.for_private_message=!0)}))})),this._uppyInstance.on("progress",(e=>{(0,y.run)((()=>{this.isDestroying||this.isDestroyed||this.set("uploadProgress",e)}))})),this._uppyInstance.on("file-removed",((e,t)=>{(0,y.run)((()=>{"cancel-all"!==t&&(this.appEvents.trigger(`${this.composerEventPrefix}:upload-cancelled`,e.id),e.meta.cancelled=!0,this._removeInProgressUpload(e.id),this._resetUpload(e,{removePlaceholder:!0}),0===this.inProgressUploads.length&&(this.set("userCancelled",!0),this._uppyInstance.cancelAll()))}))})),this._uppyInstance.on("upload-progress",((e,t)=>{(0,y.run)((()=>{if(this.isDestroying||this.isDestroyed)return
const i=this.inProgressUploads.find((t=>t.id===e.id))
if(i){const e=Math.round(t.bytesUploaded/t.bytesTotal*100)
i.set("progress",e)}}))})),this._uppyInstance.on("upload",(e=>{(0,y.run)((()=>{this._addNeedProcessing(e.fileIDs.length)
const t=e.fileIDs.map((e=>this._uppyInstance.getFile(e)))
this.setProperties({isProcessingUpload:!0,isCancellable:!1}),t.forEach((e=>{this.inProgressUploads.pushObject(n.default.create({fileName:e.name,id:e.id,progress:0,extension:e.extension}))
const t=this._uploadPlaceholder(e)
this.placeholders[e.id]={uploadPlaceholder:t},this.useUploadPlaceholders&&this.appEvents.trigger(`${this.composerEventPrefix}:insert-text`,t),this.appEvents.trigger(`${this.composerEventPrefix}:upload-started`,e.name)}))}))})),this._uppyInstance.on("upload-success",((e,t)=>{(0,y.run)((()=>{if(!this._uppyInstance)return
this._removeInProgressUpload(e.id)
let i=t.body
const n=this.uploadMarkdownResolvers.reduce(((e,t)=>t(i)||e),(0,f.getUploadMarkdown)(i));(0,g.cacheShortUploadUrl)(i.short_url,i),this._generateVideoThumbnail(e,i.url,(()=>{this.useUploadPlaceholders&&this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,this.placeholders[e.id].uploadPlaceholder.trim(),n),this._resetUpload(e,{removePlaceholder:!1}),this.appEvents.trigger(`${this.composerEventPrefix}:upload-success`,e.name,i),0===this.inProgressUploads.length&&(this.appEvents.trigger(`${this.composerEventPrefix}:all-uploads-complete`),this._reset())}))}))})),this._uppyInstance.on("upload-error",this._handleUploadError),this._uppyInstance.on("cancel-all",(()=>{this.userCancelled&&(Object.values(this.placeholders).forEach((e=>{(0,y.run)((()=>{this.useUploadPlaceholders&&this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,e.uploadPlaceholder,"")}))})),this.set("userCancelled",!1),this._reset(),this.appEvents.trigger(`${this.composerEventPrefix}:uploads-cancelled`))})),this._setupPreProcessors(),this._setupUIPlugins(),this.uploadTargetBound=!0,this._uppyReady()},_uppyReady(){},_handleUploadError(e,t,i){this._removeInProgressUpload(e.id),this._resetUpload(e,{removePlaceholder:!0}),e.meta.error=t,this.userCancelled||((0,f.displayErrorForUpload)(i||t,this.siteSettings,e.name),this.appEvents.trigger(`${this.composerEventPrefix}:upload-error`,e)),0===this.inProgressUploads.length&&this._reset()},_removeInProgressUpload(e){this.set("inProgressUploads",this.inProgressUploads.filter((t=>t.id!==e)))},_setupPreProcessors(){const e={pluginClass:s.default,optionsResolverFn:e=>{let{capabilities:t}=e
return{capabilities:t}}};[this.uploadPreProcessors,e].flat().forEach((e=>{let{pluginClass:t,optionsResolverFn:i}=e
this._useUploadPlugin(t,i({composerModel:this.composerModel,composerElement:this.composerElement,capabilities:this.capabilities,isMobileDevice:this.site.isMobileDevice}))})),this._onPreProcessProgress((e=>{let t=this.placeholders[e.id]
t.processingPlaceholder=`[${d.default.t("processing_filename",{filename:e.name})}]()\n`,this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,t.uploadPlaceholder,t.processingPlaceholder),this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,t.uploadPlaceholder.replace("...","…"),t.processingPlaceholder)})),this._onPreProcessComplete((e=>{(0,y.run)((()=>{let t=this.placeholders[e.id]
this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,t.processingPlaceholder,t.uploadPlaceholder)}))}),(()=>{(0,y.run)((()=>{this.setProperties({isProcessingUpload:!1,isCancellable:!0}),this.appEvents.trigger(`${this.composerEventPrefix}:uploads-preprocessing-complete`)}))}))},_setupUIPlugins(){this._uppyInstance.use(a.default,this._uploadDropTargetOptions())},_uploadFilenamePlaceholder(e){const t=this._filenamePlaceholder(e),i=(0,_.default)(t),n=`\\[${d.default.t("uploading_filename",{filename:i+"(?:\\()?([0-9])?(?:\\))?"})}\\]\\(\\)`,r=new RegExp(n,"g"),o=this.get(`composerModel.${this.composerModelContentKey}`).match(r)
if(o){const e=o[o.length-1],i=new RegExp(n)
return`${t}(${i.exec(e)[1]?parseInt(i.exec(e)[1],10)+1:1})`}return t},_uploadPlaceholder(e){const t=d.default.t("clipboard"),i=this._uploadFilenamePlaceholder(e),n=i||t
let r=`[${d.default.t("uploading_filename",{filename:n})}]()\n`
return this._cursorIsOnEmptyLine()||(r=`\n${r}`),r},_useXHRUploads(){this._uppyInstance.use(u.default,{endpoint:(0,p.default)(`/uploads.json?client_id=${this.messageBus.clientId}`),headers:{"X-CSRF-Token":this.session.csrfToken}})},_reset(){this._uppyInstance?.cancelAll(),this.setProperties({uploadProgress:0,isUploading:!1,isProcessingUpload:!1,isCancellable:!1,inProgressUploads:[]}),this._resetPreProcessors(),this.fileInputEl.value=""},_resetUpload(e,t){t.removePlaceholder&&this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,this.placeholders[e.id].uploadPlaceholder,"")},pasteEventListener(e){if(document.activeElement!==document.querySelector(this.editorInputClass))return
const{canUpload:t,canPasteHtml:i,types:n}=(0,m.clipboardHelpers)(e,{siteSettings:this.siteSettings,canUpload:!0})
!t||i||n.includes("text/plain")||e&&e.clipboardData&&e.clipboardData.files&&this._addFiles([...e.clipboardData.files],{pasted:!0})},_addFiles(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
e=Array.isArray(e)?e:[e]
try{this._uppyInstance.addFiles(e.map((e=>({source:this.uppyId,name:e.name,type:e.type,data:e,meta:{pasted:t.pasted}}))))}catch(i){}},showUploadSelector(e){this.send("showUploadSelector",e)},_bindMobileUploadButton(){this.site.mobileView&&(this.mobileUploadButton=document.getElementById(this.mobileFileUploaderId),this.mobileUploadButtonEventListener=()=>{document.getElementById(this.fileUploadElementId).click()},this.mobileUploadButton.addEventListener("click",this.mobileUploadButtonEventListener,!1))},_unbindMobileUploadButton(){this.mobileUploadButton?.removeEventListener("click",this.mobileUploadButtonEventListener)},_filenamePlaceholder:e=>e.name.replace(/\u200B-\u200D\uFEFF]/g,""),_resetUploadFilenamePlaceholder(){this.set("uploadFilenamePlaceholder",null)},_uploadDropTargetOptions(){return{target:this.element}}},x(k,"_cancelSingleUpload",[h.bind],Object.getOwnPropertyDescriptor(k,"_cancelSingleUpload"),k),x(k,"_cancelUpload",[v],Object.getOwnPropertyDescriptor(k,"_cancelUpload"),k),x(k,"_unbindUploadTarget",[w],Object.getOwnPropertyDescriptor(k,"_unbindUploadTarget"),k),x(k,"_handleUploadError",[h.bind],Object.getOwnPropertyDescriptor(k,"_handleUploadError"),k),x(k,"pasteEventListener",[h.bind],Object.getOwnPropertyDescriptor(k,"pasteEventListener"),k),x(k,"_addFiles",[h.bind],Object.getOwnPropertyDescriptor(k,"_addFiles"),k),k))
e.default=P})),define("discourse/mixins/composer-video-thumbnail-uppy",["exports","@ember/object/mixin","discourse/mixins/extendable-uploader","discourse/mixins/uppy-s3-multipart","@uppy/core","@uppy/drop-target","@uppy/xhr-upload","@ember/debug","I18n","discourse-common/lib/get-url","discourse-common/utils/decorators","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var m,h,f,g,b,y,_=t.default.create(i.default,n.default,(p={dialog:(0,d.inject)(),uploadRootPath:"/uploads",uploadTargetBound:!1,useUploadPlaceholders:!0,_generateVideoThumbnail(e,t,i){if(!this.siteSettings.video_thumbnails_enabled)return i()
if("video"!==e.type.split("/")[0])return i()
let n=document.createElement("video")
n.src=URL.createObjectURL(e.data),n.autoplay=!0,n.muted=!0,n.playsinline=!0
let s=t.substring(t.lastIndexOf("/")+1).split(".")[0]
n.onloadedmetadata=()=>{let e=document.createElement("canvas"),t=e.getContext("2d")
e.width=n.videoWidth,e.height=n.videoHeight,setTimeout((()=>{t.drawImage(n,0,0,n.videoWidth,n.videoHeight),e.toBlob((e=>{this._uppyInstance=new r.default({id:"video-thumbnail",meta:{upload_type:"thumbnail",videoSha1:s},autoProceed:!0}),this.siteSettings.enable_upload_debug_mode&&this._instrumentUploadTimings(),this.siteSettings.enable_direct_s3_uploads?this._useS3MultipartUploads():this._useXHRUploads(),this._uppyInstance.use(o.default,{target:this.element}),this._uppyInstance.on("upload",(()=>{this.set("uploading",!0)})),this._uppyInstance.on("upload-success",(()=>{this.set("uploading",!1),i()})),this._uppyInstance.on("upload-error",((e,t,n)=>{let r=a.default.t("wizard.upload_error")
n.body.errors&&(r=n.body.errors.join("\n")),console.error(r),this.set("uploading",!1),i()}))
try{this._uppyInstance.addFile({source:`${this.id} thumbnail`,name:`${s}`,type:e.type,data:e})}catch(t){}}))}),100)}},_uppyReady(){},_useXHRUploads(){this._uppyInstance.use(s.default,{endpoint:(0,u.default)(`/uploads.json?client_id=${this.messageBus.clientId}`),headers:{"X-CSRF-Token":this.session.csrfToken}})}},m=p,h="_generateVideoThumbnail",f=[c.bind],g=Object.getOwnPropertyDescriptor(p,"_generateVideoThumbnail"),b=p,y={},Object.keys(g).forEach((function(e){y[e]=g[e]})),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=f.slice().reverse().reduce((function(e,t){return t(m,h,e)||e}),y),b&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(b):void 0,y.initializer=void 0),void 0===y.initializer&&(Object.defineProperty(m,h,y),y=null),p))
e.default=_}))
define("discourse/mixins/disable-sidebar",["exports","@ember/object/mixin"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.create({activate(){this.controllerFor("application").setProperties({sidebarDisabledRouteOverride:!0})},deactivate(){this.controllerFor("application").setProperties({sidebarDisabledRouteOverride:!1})}})
e.default=i})),define("discourse/mixins/dismiss-topics",["exports","@ember/object/mixin","@ember/service","@ember/object","discourse/components/modal/dismiss-new"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=t.default.create((o={modal:(0,i.inject)(),currentUser:(0,i.inject)(),resetNew(){if(!this.currentUser.new_new_view_enabled)return this.callResetNew()
this.modal.show(r.default,{model:{dismissCallback:e=>{let{dismissPosts:t,dismissTopics:i,untrack:n}=e
this.callResetNew(t,i,n)}}})}},s=o,l="resetNew",a=[n.action],u=Object.getOwnPropertyDescriptor(o,"resetNew"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/mixins/docking",["exports","@ember/object/mixin","discourse-common/lib/debounce","@ember/runloop","discourse-common/lib/later","discourse-common/utils/decorators"],(function(e,t,i,n,r,o){var s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=t.default.create((s={_initialTimer:null,_queuedTimer:null,didInsertElement(){this._super(...arguments),window.addEventListener("scroll",this.queueDockCheck,{passive:!0}),document.addEventListener("touchmove",this.queueDockCheck,{passive:!0}),this._initialTimer=(0,r.default)(this,this.safeDockCheck,50)},willDestroyElement(){this._super(...arguments),this._queuedTimer&&(0,n.cancel)(this._queuedTimer),(0,n.cancel)(this._initialTimer),window.removeEventListener("scroll",this.queueDockCheck),document.removeEventListener("touchmove",this.queueDockCheck)},queueDockCheck(){this._queuedTimer=(0,i.default)(this,this.safeDockCheck,5)},safeDockCheck(){this.isDestroyed||this.isDestroying||this.dockCheck()}},l(s,"queueDockCheck",[o.bind],Object.getOwnPropertyDescriptor(s,"queueDockCheck"),s),l(s,"safeDockCheck",[o.bind],Object.getOwnPropertyDescriptor(s,"safeDockCheck"),s),s))
e.default=a})),define("discourse/mixins/extendable-uploader",["exports","@ember/object/mixin","discourse/mixins/upload-debugging"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.create(i.default,{_useUploadPlugin(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(this._uppyInstance){if(!e.pluginId)throw new Error("The uppy plugin should have a static pluginId that is used to uniquely identify it.")
if(!e.pluginType||!["preprocessor","uploader"].includes(e.pluginType))throw new Error(`The uppy plugin ${e.pluginId} should have a static pluginType that should be preprocessor or uploader`)
this._uppyInstance.use(e,Object.assign(t,{id:e.pluginId,type:e.pluginType})),"preprocessor"===e.pluginType&&this._trackPreProcessorStatus(e.pluginId)}},_onPreProcessProgress(e){this._uppyInstance.on("preprocess-progress",((t,i,n)=>{this._consoleDebug(`[${n}] processing file ${t.name} (${t.id})`),this._preProcessorStatus[n].activeProcessing++,e(t)}))},_onPreProcessComplete(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null
this._uppyInstance.on("preprocess-complete",((i,n,r)=>{this._consoleDebug(`[${r}] ${n?"skipped":"completed"} processing file ${i.name} (${i.id})`),e(i),this._completePreProcessing(r,(e=>{e&&(this._consoleDebug("[uppy] All upload preprocessors complete!"),t&&t())}))}))},_resetPreProcessors(){this._eachPreProcessor((e=>{this._preProcessorStatus[e]={needProcessing:0,activeProcessing:0,completeProcessing:0,allComplete:!1}}))},_trackPreProcessorStatus(e){this._preProcessorStatus||(this._preProcessorStatus={}),this._preProcessorStatus[e]={needProcessing:0,activeProcessing:0,completeProcessing:0,allComplete:!1}},_addNeedProcessing(e){this._eachPreProcessor(((t,i)=>{i.needProcessing+=e,i.allComplete=!1}))},_eachPreProcessor(e){for(const[t,i]of Object.entries(this._preProcessorStatus))e(t,i)},_allPreprocessorsComplete(){let e=[]
return this._eachPreProcessor(((t,i)=>{e.push(i.allComplete)})),e.every(Boolean)},_completePreProcessing(e,t){const i=this._preProcessorStatus[e]
i.activeProcessing--,i.completeProcessing++,i.completeProcessing===i.needProcessing&&(i.allComplete=!0,i.needProcessing=0,i.completeProcessing=0,this._allPreprocessorsComplete()?t(!0):t(!1))}})
e.default=n})),define("discourse/mixins/filter-mode",["exports","discourse/models/category","@ember/object/mixin","@ember/object"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=i.default.create({filterModeInternal:(0,n.computed)("rawFilterMode","filterType","category","noSubcategories",(function(){const e=this.rawFilterMode
if(e)return e
{const e=this.category,i=this.filterType
if(e){const n=this.noSubcategories
return`c/${t.default.slugFor(e)}${n?"/none":""}/l/${i}`}return i}})),filterMode:(0,n.computed)("filterModeInternal",{get(){return this.filterModeInternal},set(e,t){return this.set("rawFilterMode",t),this.set("filterType",t.split("/").pop()),t}})})
e.default=r})),define("discourse/mixins/grant-badge-controller",["exports","@ember/object/mixin","discourse/models/user-badge","discourse-common/lib/icon-library","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r,o){var s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=t.default.create((s=(0,r.default)("allBadges.[]","userBadges.[]"),l=(0,r.default)("selectedBadgeId","grantableBadges"),u(a={grantableBadges(e,t){const i=t.reduce(((e,t)=>(e[t.get("badge_id")]=!0,e)),{})
return e.filter((e=>e.get("enabled")&&e.get("manually_grantable")&&(!i[e.get("id")]||e.get("multiple_grant")))).map((e=>(e.get("icon")&&e.set("icon",(0,n.convertIconClass)(e.icon)),e))).sort(((e,t)=>e.get("name").localeCompare(t.get("name"))))},noGrantableBadges:(0,o.empty)("grantableBadges"),selectedBadgeGrantable:(e,t)=>t&&t.find((t=>t.get("id")===e)),grantBadge(e,t,n){return i.default.grant(e,t,n).then((e=>(this.userBadges.pushObject(e),e)),(e=>{throw e}))}},"grantableBadges",[s],Object.getOwnPropertyDescriptor(a,"grantableBadges"),a),u(a,"selectedBadgeGrantable",[l],Object.getOwnPropertyDescriptor(a,"selectedBadgeGrantable"),a),a))
e.default=c})),define("discourse/mixins/key-enter-escape",["exports","discourse/lib/utilities"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i={keyDown(e){if(!document.body.classList.contains("modal-open"))return 27===e.which?(this.cancelled(),!1):13===e.which&&(e.ctrlKey||e.metaKey||(0,t.isiPad)()&&e.altKey)?(this.save(void 0,e),!1):void 0}}
e.default=i})),define("discourse/mixins/load-more",["exports","discourse/lib/eyeline","@ember/object/mixin","discourse/mixins/scrolling","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u=i.default.create(n.default,(o=(0,r.on)("didInsertElement"),s=(0,r.on)("willDestroyElement"),a(l={scrolled(){return this.eyeline?.update()},loadMoreUnlessFull(){this.screenNotFull()&&this.send("loadMore")},_bindEyeline(){const e=t.default.create({selector:`${this.eyelineSelector}:last`})
this.set("eyeline",e),e.on("sawBottom",(()=>this.send("loadMore"))),e.update(),this.bindScrolling()},_removeEyeline(){this.unbindScrolling()}},"_bindEyeline",[o],Object.getOwnPropertyDescriptor(l,"_bindEyeline"),l),a(l,"_removeEyeline",[s],Object.getOwnPropertyDescriptor(l,"_removeEyeline"),l),l))
e.default=u})),define("discourse/mixins/mobile-scroll-direction",["exports","@ember/object/mixin","discourse-common/lib/debounce"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.create({_lastScroll:null,_bottomHit:0,calculateDirection(e){const t=Math.floor(e-this._lastScroll)
if(t<=5&&t>=-5)return
if(0===e)return
const n=this.mobileScrollDirection,r=t>0?"down":null,o=Math.floor($("body").height()-e-$(window).height())
e<0?this.set("mobileScrollDirection",null):r!==n&&o>0&&this.set("mobileScrollDirection",r),this._lastScroll=Math.floor(e),o>0?this._bottomHit=0:((0,i.default)(this,this._setBottomHit,1e3),1===this._bottomHit&&this.set("mobileScrollDirection",null))},_setBottomHit(){this._bottomHit=1}})
e.default=n})),define("discourse/mixins/modal-functionality",["exports","@ember/object/mixin","discourse/lib/show-modal"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.create({flash(e,t){this.appEvents.trigger("modal-body:flash",{text:e,messageClass:t})},clearFlash(){this.appEvents.trigger("modal-body:clearFlash")},showModal(){return(0,i.default)(...arguments)},actions:{closeModal(){this.modal.close()}}})
e.default=n})),define("discourse/mixins/modal-update-existing-users",["exports","@ember/object/mixin"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.create({onShow(){this.set("updateExistingUsers",null)},actions:{updateExistingUsers(){this.set("updateExistingUsers",!0),this.send("closeModal")},cancel(){this.set("updateExistingUsers",!1),this.send("closeModal")}}})
e.default=i})),define("discourse/mixins/name-validation",["exports","@ember/object","I18n","@ember/object/mixin","discourse-common/utils/decorators","@ember/utils"],(function(e,t,i,n,r,o){var s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=n.default.create((s=(0,r.default)(),l=(0,r.default)("accountName","forceValidationReason"),u(a={nameInstructions(){return i.default.t(this.siteSettings.full_name_required?"user.name.instructions_required":"user.name.instructions")},nameValidation(e,n){return this.siteSettings.full_name_required&&(0,o.isEmpty)(e)?t.default.create({failed:!0,ok:!1,message:i.default.t("user.name.required"),reason:n?i.default.t("user.name.required"):null,element:document.querySelector("#new-account-name")}):t.default.create({ok:!0})}},"nameInstructions",[s],Object.getOwnPropertyDescriptor(a,"nameInstructions"),a),u(a,"nameValidation",[l],Object.getOwnPropertyDescriptor(a,"nameValidation"),a),a))
e.default=c})),define("discourse/mixins/open-composer",["exports","discourse/models/composer","@ember/object/mixin","discourse-common/lib/get-owner"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=i.default.create({openComposer(e){let i=e.get("category.id")
this.siteSettings.default_subcategory_on_read_only_category&&!e.canCreateTopicOnCategory&&(i=e.canCreateTopicOnSubCategory?e.get("defaultSubcategory.id"):this.siteSettings.default_composer_category),i&&!this.siteSettings.default_subcategory_on_read_only_category&&e.category.isUncategorizedCategory&&!this.siteSettings.allow_uncategorized_topics&&(i=null),(0,n.getOwner)(this).lookup("service:composer").open({prioritizedCategoryId:i,topicCategoryId:i,action:t.default.CREATE_TOPIC,draftKey:e.get("model.draft_key")||t.default.NEW_TOPIC_KEY,draftSequence:e.get("model.draft_sequence")||0})},openComposerWithTopicParams(e,i,r,o,s){(0,n.getOwner)(this).lookup("service:composer").open({action:t.default.CREATE_TOPIC,topicTitle:i,topicBody:r,topicCategoryId:o,topicTags:s,draftKey:e.get("model.draft_key")||t.default.NEW_TOPIC_KEY,draftSequence:e.get("model.draft_sequence")})},openComposerWithMessageParams(){let{recipients:e="",topicTitle:i="",topicBody:r="",hasGroups:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.getOwner)(this).lookup("service:composer").open({action:t.default.PRIVATE_MESSAGE,recipients:e,topicTitle:i,topicBody:r,archetypeId:"private_message",draftKey:t.default.NEW_PRIVATE_MESSAGE_KEY,hasGroups:o})}})
e.default=r})),define("discourse/mixins/pan-events",["exports","@ember/object/mixin"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SWIPE_VELOCITY_THRESHOLD=e.SWIPE_DISTANCE_THRESHOLD=e.MINIMUM_SWIPE_DISTANCE=void 0
e.SWIPE_DISTANCE_THRESHOLD=50
e.SWIPE_VELOCITY_THRESHOLD=.12
e.MINIMUM_SWIPE_DISTANCE=5
var i=t.default.create({_panState:null,_animationPending:!1,didInsertElement(){this._super(...arguments),this.addTouchListeners(this.element)},willDestroyElement(){this._super(...arguments),this.removeTouchListeners(this.element)},addTouchListeners(e){if(this.site.mobileView){this.touchStart=e=>e.touches&&this._panStart(e.touches[0]),this.touchMove=e=>{const t=e.touches[0]
t.type="pointermove",this._panMove(t,e)},this.touchEnd=e=>this._panMove({type:"pointerup"},e),this.touchCancel=e=>this._panMove({type:"pointercancel"},e)
const t={passive:!1}
e.addEventListener("touchstart",this.touchStart,t),e.addEventListener("touchmove",this.touchMove,t),e.addEventListener("touchend",this.touchEnd,t),e.addEventListener("touchcancel",this.touchCancel,t)}},removeTouchListeners(e){this.site.mobileView&&(e.removeEventListener("touchstart",this.touchStart),e.removeEventListener("touchmove",this.touchMove),e.removeEventListener("touchend",this.touchEnd),e.removeEventListener("touchcancel",this.touchCancel))},_calculateDirection:(e,t,i)=>e.start||!e.direction?Math.abs(t)>Math.abs(i)?t>0?"right":"left":i>0?"down":"up":e.direction,_calculateNewPanState(e,t){if("pointerup"===t.type||"pointercancel"===t.type)return e
const i=Date.now(),n=i-e.timestamp
if(0===n)return e
const r=t.clientX-e.startLocation.x,o=t.clientY-e.startLocation.y,s=Math.sqrt(Math.pow(r,2)+Math.pow(o,2)),l=t.clientX-e.center.x,a=t.clientY-e.center.y,u=l/n,c=a/n,d=Math.sqrt(Math.pow(l,2)+Math.pow(a,2))/n
return{startLocation:e.startLocation,center:{x:t.clientX,y:t.clientY},velocity:d,velocityX:u,velocityY:c,deltaX:r,deltaY:o,distance:s,start:!1,timestamp:i,direction:this._calculateDirection(e,r,o)}},_panStart(e){const t={center:{x:e.clientX,y:e.clientY},startLocation:{x:e.clientX,y:e.clientY},velocity:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,distance:0,start:!0,timestamp:Date.now(),direction:null}
this.set("_panState",t)},_panMove(e,t){if(!this._panState)return void this._panStart(e)
const i=this._panState,n=this._calculateNewPanState(i,e)
if(!(i.start&&n.distance<5))if(this.set("_panState",n),n.originalEvent=t,i.start&&"panStart"in this)this.panStart(n)
else if("pointerup"!==e.type&&"pointercancel"!==e.type||!("panEnd"in this)){if("pointermove"===e.type&&"panMove"in this){if(this._animationPending)return
this._animationPending=!0,window.requestAnimationFrame((()=>{this._animationPending&&(this.panMove(n),this._animationPending=!1)}))}}else this.panEnd(n)}})
e.default=i})),define("discourse/mixins/password-validation",["exports","@ember/object","I18n","@ember/object/mixin","discourse-common/utils/decorators","@ember/utils"],(function(e,t,i,n,r,o){var s,l,a,u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var d=n.default.create((s=(0,r.default)("passwordMinLength"),l=(0,r.default)("isDeveloper","admin"),a=(0,r.default)("accountPassword","passwordRequired","rejectedPasswords.[]","accountUsername","accountEmail","passwordMinLength","forceValidationReason"),u={rejectedPasswords:null,init(){this._super(...arguments),this.set("rejectedPasswords",[]),this.set("rejectedPasswordsMessages",new Map)},passwordInstructions(){return i.default.t("user.password.instructions",{count:this.passwordMinLength})},passwordMinLength(e,t){return e||t?this.siteSettings.min_admin_password_length:this.siteSettings.min_password_length},passwordValidation(e,n,r,s,l,a,u){const c={failed:!0,ok:!1,element:document.querySelector("#new-account-password")}
return n?r.includes(e)?t.default.create(Object.assign(c,{reason:this.rejectedPasswordsMessages.get(e)||i.default.t("user.password.common")})):(0,o.isEmpty)(e)?t.default.create(Object.assign(c,{message:i.default.t("user.password.required"),reason:u?i.default.t("user.password.required"):null})):e.length<a?t.default.create(Object.assign(c,{reason:i.default.t("user.password.too_short")})):(0,o.isEmpty)(s)||e!==s?(0,o.isEmpty)(l)||e!==l?t.default.create({ok:!0,reason:i.default.t("user.password.ok")}):t.default.create(Object.assign(c,{reason:i.default.t("user.password.same_as_email")})):t.default.create(Object.assign(c,{reason:i.default.t("user.password.same_as_username")})):t.default.create({ok:!0})}},c(u,"passwordInstructions",[s],Object.getOwnPropertyDescriptor(u,"passwordInstructions"),u),c(u,"passwordMinLength",[l],Object.getOwnPropertyDescriptor(u,"passwordMinLength"),u),c(u,"passwordValidation",[a],Object.getOwnPropertyDescriptor(u,"passwordValidation"),u),u))
e.default=d})),define("discourse/mixins/rerender-on-do-not-disturb-change",["exports","@ember/runloop","discourse-common/lib/later","@ember/object/mixin","discourse-common/config/environment"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=n.default.create({_listenToDoNotDisturbLoop:null,listenForDoNotDisturbChanges(){this.currentUser&&!this.currentUser.isInDoNotDisturb()?this.queueRerender():((0,t.cancel)(this._listenToDoNotDisturbLoop),this._listenToDoNotDisturbLoop=(0,i.default)(this,(()=>{this.listenForDoNotDisturbChanges()}),1e4))},didInsertElement(){this._super(...arguments),this.appEvents.on("do-not-disturb:changed",(()=>this.queueRerender())),(0,r.isTesting)()||this.listenForDoNotDisturbChanges()},willDestroyElement(){this._super(...arguments),(0,t.cancel)(this._listenToDoNotDisturbLoop)}})
e.default=o})),define("discourse/mixins/scroll-top",["exports","discourse/lib/url","discourse-common/config/environment","@ember/runloop"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.scrollTop=function(){if(t.default.isJumpScheduled())return;(0,n.scheduleOnce)("afterRender",r,r._scrollTop)}
const r={_scrollTop(){(0,i.isTesting)()||(document.documentElement.scrollTop=0)}}})),define("discourse/mixins/scrolling",["exports","@ember/object/mixin","@ember/runloop","@ember/service"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ScrollingDOMMethods=void 0
const r={bindOnScroll(e){document.addEventListener("touchmove",e,{passive:!0}),window.addEventListener("scroll",e,{passive:!0})},unbindOnScroll(e){document.removeEventListener("touchmove",e),window.removeEventListener("scroll",e)},screenNotFull:()=>window.height>document.querySelector(".ember-application").offsetHeight}
e.ScrollingDOMMethods=r
const o=t.default.create({router:(0,n.inject)(),bindScrolling(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
e.throttle||(e.throttle=100)
const t=this.router._router._routerMicrolib
let n,o=()=>{if(!t.activeTransition)return(0,i.scheduleOnce)("afterRender",this,"scrolled")}
n=e.throttle?()=>(0,i.throttle)(this,o,e.throttle,!1):o,this._scrollingMixinOnScrollMethod=n,r.bindOnScroll(n)},screenNotFull:()=>r.screenNotFull(),unbindScrolling(){r.unbindOnScroll(this._scrollingMixinOnScrollMethod)}})
var s=o
e.default=s})),define("discourse/mixins/singleton",["exports","@ember/object/mixin"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.create({current(){return this._current||(this._current=this.createCurrent()),this._current},createCurrent(){return this.create({})},currentProp(e,t){let i=this.current()
if(i)return void 0!==t?(i.set(e,t),t):i.get(e)},resetCurrent(e){return this._current=e,e}})
e.default=i})),define("discourse/mixins/textarea-text-manipulation",["exports","discourse-common/utils/decorators","I18n","@ember/object/mixin","discourse/lib/text","discourse/lib/to-markdown","@ember/object","@ember/utils","discourse-common/config/environment","discourse/lib/utilities","@ember/runloop"],(function(e,t,i,n,r,o,s,l,a,u,c){var d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.getHead=y
const m="left",h="right",f=0,g=1,b=2
function y(e,t){return"string"==typeof e?[e,e.length]:y(e(t))}var _=n.default.create((d={init(){this._super(...arguments),this.composerEventPrefix||(this.composerEventPrefix="composer"),(0,r.generateLinkifyFunction)(this.markdownOptions||{}).then((e=>{this._cachedLinkify=e}))},focusTextArea(){!this.element||this.isDestroying||this.isDestroyed||this._textarea&&(this._textarea.blur(),this._textarea.focus())},insertBlock(e){this._addBlock(this.getSelected(),e)},insertText(e,t){this.addText(this.getSelected(),e,t)},getSelected(e,t){if(!this.ready||!this.element)return
const i=this._textarea.value
let n=this._textarea.selectionStart,r=this._textarea.selectionEnd
for(;r>n&&/\s/.test(i.charAt(r-1));)r--
if(e)for(;r>n&&/\s/.test(i.charAt(n));)n++
const o=i.substring(n,r),s=i.slice(0,n),l=i.slice(r)
if(t&&t.lineVal){return{start:n,end:r,value:o,pre:s,post:l,lineVal:i.split("\n")[i.slice(0,this._textarea.selectionStart).split("\n").length-1]}}return{start:n,end:r,value:o,pre:s,post:l}},selectText(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{scroll:!0};(0,c.next)((()=>{if(this.element&&(this._textarea.selectionStart=e,this._textarea.selectionEnd=e+t,i.scroll)){const e=this._textarea.scrollTop
this.capabilities.isIOS||this._textarea.focus(),this._textarea.scrollTop=e}}))},replaceText(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
const n=this.value,r=n.indexOf(e)
if(-1===r)return
const o=(0,u.determinePostReplaceSelection)({selection:{start:this._textarea.selectionStart,end:this._textarea.selectionEnd},needle:{start:r,end:r+e.length},replacement:{start:r,end:r+t.length}})
if(i.index&&i.regex){let e=-1
const r=n.replace(i.regex,(n=>(e++,e===i.index?t:n)))
this.set("value",r)}else this.set("value",n.replace(e,t))
!i.forceFocus&&!this._$textarea.is(":focus")||i.skipNewSelection||this.selectText(o.start,o.end-o.start)},applySurround(e,t,n,r,o){const s=e.pre,l=e.post,a=n.length
if(e.start===e.end){if(0===a)return
const[o,l]=y(t),u=i.default.t(`composer.${r}`)
this._insertAt(e.start,e.end,`${o}${u}${n}`),this.selectText(s.length+l,u.length)}else if(o&&!o.multiline){let[i,r]=y(t)
o.useBlockMode&&e.value.split("\n").length>1&&(i+="\n",r+=1,n=`\n${n}`),s.slice(-r)===i&&l.slice(0,n.length)===n?(this._insertAt(e.start-r,e.end+n.length,e.value),this.selectText(e.start-r,e.value.length)):(this._insertAt(e.start,e.end,`${i}${e.value}${n}`),this.selectText(e.start+r,e.value.length))}else{const i=e.value.split("\n")
let[r,u]=y(t)
if(1===i.length&&s.slice(-a)===n&&l.slice(0,u)===r)this._insertAt(e.start-u,e.end+a,e.value),this.selectText(e.start-u,e.value.length)
else{const s=this._getMultilineContents(i,t,r,u,n,a,o)
this._insertAt(e.start,e.end,s),1===i.length&&a>0?this.selectText(e.start+u,e.value.length):this.selectText(e.start,s.length)}}},_getMultilineContents(e,t,i,n,r,o,s){let l=f
const a=s&&s.applyEmptyLines
return e.map((e=>{if(!a&&0===e.length)return e
if(l!==b&&(e.slice(0,n)===i&&0===o||r.length&&e.slice(-o)===r)){if(l=g,0===o){const r=e.slice(n)
return[i,n]=y(t,i),r}if(e.slice(-o)===r){const r=e.slice(n,-o)
return[i,n]=y(t,i),r}}else if(l===f)l=b
else if(l===g)return e
const s=`${i}${e}${r}`
return[i,n]=y(t,i),s})).join("\n")},_addBlock(e,t){if(0===(t=(t||"").trim()).length)return
let i=e.start,n=e.end
const r=e.pre?.match(/\n*$/)?.[0]?.length
r&&(i-=r),e.pre.length>0&&(t=`\n\n${t}`)
const o=e.post?.match(/^\n*/)?.[0]?.length
o&&(n+=o),t=e.post.length>0?`${t}\n\n`:`${t}\n`,this._insertAt(i,n,t),this._textarea.setSelectionRange(i+t.length,i+t.length),(0,c.schedule)("afterRender",this,this.focusTextArea)},addText(e,t,i){i&&i.ensureSpace&&((e.pre+"").length>0&&(e.pre.match(/\s$/)||(t=" "+t)),(e.post+"").length>0&&(e.post.match(/^\s/)||(t+=" "))),this._insertAt(e.start,e.end,t),this.focusTextArea()},_insertAt(e,t,i){this._textarea.setSelectionRange(e,t),this._textarea.focus(),document.execCommand("insertText",!1,i)},extractTable(e){e.endsWith("\n")&&(e=e.substring(0,e.length-1)),e=e.split("")
let t=!1
e.forEach(((i,n)=>{"\n"===i&&t&&(e[n]="\r"),'"'===i&&(e[n]="",t=!t)}))
let i=e.join("").replace(/\r/g,"<br>").split("\n")
if(i.length>1){const e=i.map((e=>e.split("\t").length))
if(e.reduce(((t,i)=>t&&e[0]===i&&i>1))&&!(2===e[0]&&i[0].split("\t")[0].match(/^•$|^\d+.$/))){const t=[...Array(e[0])].map((()=>"---")).join("\t")
return i.splice(1,0,t),"|"+i.map((e=>e.split("\t").join("|"))).join("|\n|")+"|\n"}}return null},isInside(e,t){const i=e.match(t)
return i&&i.length%2},paste(e){const t=document.querySelector(this.composerFocusSelector)===e.target
if(!t&&!(0,a.isTesting)())return
let{clipboard:i,canPasteHtml:n,canUpload:r}=(0,u.clipboardHelpers)(e,{siteSettings:this.siteSettings,canUpload:t}),s=i.getData("text/plain"),l=i.getData("text/html"),c=!1
const d=this.getSelected(null,{lineVal:!0}),{pre:p,value:m,lineVal:h}=d,f=p.match(/[^\n]$/),g=this.isInside(p,/(^|\n)```/g)
if(s&&this.siteSettings.enable_rich_text_paste&&!f&&!g){s=s.replace(/\r/g,"")
const e=this.extractTable(s)
e&&(this.composerEventPrefix?this.appEvents.trigger(`${this.composerEventPrefix}:insert-text`,e):this.insertText(e),c=!0)}if(n&&s&&(n=f?!(h.match(/^```/)||this.isInside(p,/`/g)||h.match(/^    /)):!g),this._cachedLinkify&&s&&!c&&d.end>d.start&&!this._cachedLinkify.test(m)&&!m.match(/\[\/?[a-z =]+?\]/g)&&this._cachedLinkify.test(s)){const e=this._cachedLinkify.match(s)[0]
e&&0===e.index&&e.lastIndex===e.raw.length&&(this.addText(d,`[${m}](${e.url})`),c=!0)}if(n&&!c){let e=(0,o.default)(l);(!s||s.length<e.length)&&(f&&(e=e.replace(/^#+/,"").trim(),e=p.match(/\S$/)?` ${e}`:e),t&&(this.composerEventPrefix?this.appEvents.trigger(`${this.composerEventPrefix}:insert-text`,e):this.insertText(e),c=!0))}(c||r&&!s)&&e.preventDefault()},_deindentLine(e,t,i){let n=0
for(let r=0;r<e.length;r++){if(!(n<i&&e[r]===t))return e.slice(n)
n+=1}return e},indentSelection(e){if(![m,h].includes(e))return
const t=this.getSelected(null,{lineVal:!0}),{lineVal:i}=t
let n,r,o=t.value;(o.match(/^\t/gm)?.length||0)>(o.match(/^ /gm)?.length||0)?(n=1,r="\t"):(r=" ",n=2)
const s=new RegExp(`^${r}+`),l=i.match(s),a=o.match(s)
if(l){const e=a?a[0]:""
o=l[0].replace(e,"")+o}const u=o.split("\n").map((t=>e===m?this._deindentLine(t,r,n):`${Array(n+1).join(r)}${t}`)).join("\n")
""!==u.trim()&&(this.replaceText(o,u,{skipNewSelection:!0}),this.selectText(this.value.indexOf(u),u.length))},emojiSelected(e){let t=this.getSelected()
const i=t.pre.match(/\B:(\w*)$/)
if((0,l.isEmpty)(i))t.pre.match(/\S$/)?this.addText(t,` :${e}:`):this.addText(t,`:${e}:`)
else{let n=i[1].length
this._insertAt(t.start-n,t.end,`${e}:`)}}},p(d,"paste",[t.bind],Object.getOwnPropertyDescriptor(d,"paste"),d),p(d,"indentSelection",[t.bind],Object.getOwnPropertyDescriptor(d,"indentSelection"),d),p(d,"emojiSelected",[s.action],Object.getOwnPropertyDescriptor(d,"emojiSelected"),d),d))
e.default=_})),define("discourse/mixins/upload-debugging",["exports","@ember/object/mixin","@ember/debug"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.create({_consoleDebug(e){this.siteSettings.enable_upload_debug_mode&&console.log(e)},_consolePerformanceTiming(e){if(!e)return
const t=Math.floor(e.duration/6e4),i=(e.duration%6e4/1e3).toFixed(0),n=t+":"+(i<10?"0":"")+i
this._consoleDebug(`${e.name}:\n duration: ${n} (${e.duration}ms)`)},_performanceApiSupport(){this._performanceMark("testing support 1"),this._performanceMark("testing support 2")
return this._performanceMeasure("performance api support","testing support 1","testing support 2")},_performanceMark:e=>performance.mark(e),_performanceMeasure(e,t,i){let n
try{n=performance.measure(e,t,i)}catch(r){r.message.includes("Failed to execute 'measure' on 'Performance'")&&console.warn(`Uppy performance measure failed: ${e}, ${t}, ${i}`)}return n},_instrumentUploadTimings(){this._performanceApiSupport()&&(this._uppyInstance.on("upload",(e=>{e.fileIDs.forEach((e=>this._performanceMark(`upload-${e}-start`)))})),this._uppyInstance.on("create-multipart",(e=>{this._performanceMark(`upload-${e}-create-multipart`)})),this._uppyInstance.on("create-multipart-success",(e=>{this._performanceMark(`upload-${e}-create-multipart-success`)})),this._uppyInstance.on("complete-multipart",(e=>{this._performanceMark(`upload-${e}-complete-multipart`),this._consolePerformanceTiming(this._performanceMeasure(`upload-${e}-multipart-all-parts-complete`,`upload-${e}-create-multipart-success`,`upload-${e}-complete-multipart`))})),this._uppyInstance.on("complete-multipart-success",(e=>{this._performanceMark(`upload-${e}-complete-multipart-success`),this._consolePerformanceTiming(this._performanceMeasure(`upload-${e}-multipart-total-network-exclusive-complete-multipart`,`upload-${e}-create-multipart`,`upload-${e}-complete-multipart`)),this._consolePerformanceTiming(this._performanceMeasure(`upload-${e}-multipart-total-network-inclusive-complete-multipart`,`upload-${e}-create-multipart`,`upload-${e}-complete-multipart-success`)),this._consolePerformanceTiming(this._performanceMeasure(`upload-${e}-multipart-complete-convert-to-upload`,`upload-${e}-complete-multipart`,`upload-${e}-complete-multipart-success`))})),this._uppyInstance.on("upload-success",(e=>{this._performanceMark(`upload-${e.id}-end`),this._consolePerformanceTiming(this._performanceMeasure(`upload-${e.id}-multipart-total-inclusive-preprocessing`,`upload-${e.id}-start`,`upload-${e.id}-end`))})))}})
e.default=n})),define("discourse/mixins/uppy-s3-multipart",["exports","@ember/object/mixin","discourse-common/lib/get-url","discourse-common/utils/decorators","rsvp","discourse/lib/ajax","@uppy/aws-s3-multipart"],(function(e,t,i,n,r,o,s){var l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=[0,1e3,3e3,5e3],c=1048576
var d=t.default.create((a(l={_useS3MultipartUploads(){this.set("usingS3MultipartUploads",!0),this._uppyInstance.use(s.default,{limit:10,retryDelays:u,getChunkSize:e=>e.size>=500*c?20*c:e.size>=100*c?10*c:5*c,createMultipartUpload:this._createMultipartUpload,prepareUploadParts:this._prepareUploadParts,completeMultipartUpload:this._completeMultipartUpload,abortMultipartUpload:this._abortMultipartUpload})},_createMultipartUpload(e){this._uppyInstance.emit("create-multipart",e.id)
const t={file_name:e.name,file_size:e.size,upload_type:e.meta.upload_type,metadata:e.meta}
return e.meta.sha1_checksum&&(t.metadata={"sha1-checksum":e.meta.sha1_checksum}),(0,o.ajax)((0,i.default)(`${this.uploadRootPath}/create-multipart.json`),{type:"POST",data:t}).then((t=>(this._uppyInstance.emit("create-multipart-success",e.id),e.meta.unique_identifier=t.unique_identifier,{uploadId:t.external_upload_identifier,key:t.key})))},_prepareUploadParts(e,t){return void 0===e.preparePartsRetryAttempts&&(e.preparePartsRetryAttempts=0),(0,o.ajax)((0,i.default)(`${this.uploadRootPath}/batch-presign-multipart-parts.json`),{type:"POST",data:{part_numbers:t.parts.map((e=>e.number)),unique_identifier:e.meta.unique_identifier}}).then((t=>(e.preparePartsRetryAttempts&&(delete e.preparePartsRetryAttempts,this._consoleDebug(`[uppy] Retrying batch fetch for ${e.id} was successful, continuing.`)),{presignedUrls:t.presigned_urls}))).catch((t=>{const i=t.jqXHR.status
if(e.preparePartsRetryAttempts<u.length){e.preparePartsRetryAttempts+=1
const t=u.length-e.preparePartsRetryAttempts+1
return this._consoleDebug(`[uppy] Fetching a batch of upload part URLs for ${e.id} failed with status ${i}, retrying ${t} more times...`),r.Promise.reject({source:{status:i}})}this._consoleDebug(`[uppy] Fetching a batch of upload part URLs for ${e.id} failed too many times, throwing error.`),this._handleUploadError(e,t)}))},_completeMultipartUpload(e,t){if(e.meta.cancelled)return
this._uppyInstance.emit("complete-multipart",e.id)
const n=t.parts.map((e=>({part_number:e.PartNumber,etag:e.ETag})))
return(0,o.ajax)((0,i.default)(`${this.uploadRootPath}/complete-multipart.json`),{type:"POST",contentType:"application/json",data:JSON.stringify({parts:n,unique_identifier:e.meta.unique_identifier,pasted:e.meta.pasted,for_private_message:e.meta.for_private_message})}).then((t=>(this._uppyInstance.emit("complete-multipart-success",e.id),t)))},_abortMultipartUpload(e,t){let{key:n,uploadId:r}=t
if(n&&r&&(!e.meta.error||!this.siteSettings.enable_upload_debug_mode))return e.meta.cancelled=!0,(0,o.ajax)((0,i.default)(`${this.uploadRootPath}/abort-multipart.json`),{type:"POST",data:{external_upload_identifier:r}}).catch((t=>{this._handleUploadError(e,t)}))}},"_createMultipartUpload",[n.bind],Object.getOwnPropertyDescriptor(l,"_createMultipartUpload"),l),a(l,"_prepareUploadParts",[n.bind],Object.getOwnPropertyDescriptor(l,"_prepareUploadParts"),l),a(l,"_completeMultipartUpload",[n.bind],Object.getOwnPropertyDescriptor(l,"_completeMultipartUpload"),l),a(l,"_abortMultipartUpload",[n.bind],Object.getOwnPropertyDescriptor(l,"_abortMultipartUpload"),l),l))
e.default=d})),define("discourse/mixins/uppy-upload",["exports","@ember/object/mixin","@ember/runloop","discourse/mixins/extendable-uploader","@ember/object/computed","@ember/object","discourse/lib/ajax","discourse/lib/uploads","discourse-common/lib/object","discourse-common/lib/get-url","I18n","@uppy/core","@uppy/drop-target","@uppy/xhr-upload","@uppy/aws-s3","discourse/lib/uppy-checksum-plugin","discourse/mixins/uppy-s3-multipart","discourse/lib/uppy-chunked-uploader-plugin","discourse-common/utils/decorators","@ember/debug","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v){var w,k,x
function P(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.HUGE_FILE_THRESHOLD_BYTES=void 0
e.HUGE_FILE_THRESHOLD_BYTES=104857600
var O=t.default.create(g.default,n.default,(w=(0,y.on)("willDestroyElement"),k=(0,y.on)("didInsertElement"),x={dialog:(0,v.inject)(),uploading:!1,uploadProgress:0,_uppyInstance:null,autoStartUploads:!0,inProgressUploads:null,id:null,uploadRootPath:"/uploads",fileInputSelector:".hidden-upload-field",uploadDone(){},validateUploadedFilesOptions:()=>({}),uploadingOrProcessing:(0,r.or)("uploading","processing"),_destroy(){this.messageBus&&this.messageBus.unsubscribe(`/uploads/${this.type}`),this.fileInputEl?.removeEventListener("change",this.fileInputEventListener),this.appEvents.off(`upload-mixin:${this.id}:add-files`,this._addFiles),this.appEvents.off(`upload-mixin:${this.id}:cancel-upload`,this._cancelSingleUpload),this._uppyInstance?.close(),this._uppyInstance=null},_initialize(){this.setProperties({fileInputEl:this.element.querySelector(this.fileInputSelector)}),this.set("allowMultipleFiles",this.fileInputEl.multiple),this.set("inProgressUploads",[]),this._bindFileInputChange(),this.id,this._uppyInstance=new d.default({id:this.id,autoProceed:this.autoStartUploads,meta:(0,a.deepMerge)({upload_type:this.type},this.additionalParams||{},this.data||{}),onBeforeFileAdded:e=>{const t=(0,a.deepMerge)({bypassNewUserRestriction:!0,user:this.currentUser,siteSettings:this.siteSettings,validateSize:!0},this.validateUploadedFilesOptions()),i=(0,l.validateUploadedFile)(e,t)
return this.setProperties({uploadProgress:0,uploading:i&&this.autoStartUploads,filesAwaitingUpload:!this.autoStartUploads,cancellable:i&&this.autoStartUploads}),i},onBeforeUpload:e=>{let t=!1
const i=Object.keys(e).length,n=this.maxFiles||this.siteSettings.simultaneous_uploads
if(t=this.allowMultipleFiles?n>0&&i>n:i>1,t)return this.dialog.alert(c.default.t("post.errors.too_many_dragged_and_dropped_files",{count:this.allowMultipleFiles?n:1})),this._reset(),!1
this._perFileData&&Object.values(e).forEach((e=>{(0,a.deepMerge)(e.meta,this._perFileData())}))}}),this._uppyInstance.use(p.default,this._uploadDropTargetOptions()),this._uppyInstance.on("progress",(e=>{this.isDestroying||this.isDestroyed||this.set("uploadProgress",e)})),this._uppyInstance.on("upload",(e=>{if(this.isDestroying||this.isDestroyed)return
this._addNeedProcessing(e.fileIDs.length)
const t=e.fileIDs.map((e=>this._uppyInstance.getFile(e)))
this.setProperties({processing:!0,cancellable:!1}),t.forEach((e=>{this.inProgressUploads.pushObject(o.default.create({fileName:e.name,id:e.id,progress:0,extension:e.extension,processing:!1})),this._triggerInProgressUploadsEvent()}))})),this._uppyInstance.on("upload-progress",((e,t)=>{(0,i.run)((()=>{if(this.isDestroying||this.isDestroyed)return
const i=this.inProgressUploads.find((t=>t.id===e.id))
if(i){const e=Math.round(t.bytesUploaded/t.bytesTotal*100)
i.set("progress",e)}}))})),this._uppyInstance.on("upload-success",((e,t)=>{if(this.usingS3Uploads)this.setProperties({uploading:!1,processing:!0}),this._completeExternalUpload(e).then((t=>{this._removeInProgressUpload(e.id),this.appEvents.trigger(`upload-mixin:${this.id}:upload-success`,e.name,t),this.uploadDone((0,a.deepMerge)(t,{file_name:e.name})),this._triggerInProgressUploadsEvent(),0===this.inProgressUploads.length&&this._allUploadsComplete()})).catch((t=>{(0,l.displayErrorForUpload)(t,this.siteSettings,e.name),this._triggerInProgressUploadsEvent()}))
else{this._removeInProgressUpload(e.id)
const i=t?.body||{}
this.appEvents.trigger(`upload-mixin:${this.id}:upload-success`,e.name,i),this.uploadDone((0,a.deepMerge)(i,{file_name:e.name})),this._triggerInProgressUploadsEvent(),0===this.inProgressUploads.length&&this._allUploadsComplete()}})),this._uppyInstance.on("upload-error",((e,t,i)=>{this._removeInProgressUpload(e.id),(0,l.displayErrorForUpload)(i||t,this.siteSettings,e.name),this._reset()})),this._uppyInstance.on("file-removed",((e,t)=>{(0,i.run)((()=>{"cancel-all"!==t&&this.appEvents.trigger(`upload-mixin:${this.id}:upload-cancelled`,e.id)}))})),this.siteSettings.enable_upload_debug_mode&&this._instrumentUploadTimings(),!this.siteSettings.enable_direct_s3_uploads||this.preventDirectS3Uploads||this.useChunkedUploads?this.useChunkedUploads?this._useChunkedUploads():this._useXHRUploads():this.useMultipartUploadsIfAvailable?this._useS3MultipartUploads():this._useS3Uploads(),this._uppyInstance.on("cancel-all",(()=>{this.appEvents.trigger(`upload-mixin:${this.id}:uploads-cancelled`),this.isDestroyed||this.isDestroying||this.inProgressUploads.length&&(this.set("inProgressUploads",[]),this._triggerInProgressUploadsEvent())})),this.appEvents.on(`upload-mixin:${this.id}:add-files`,this._addFiles),this.appEvents.on(`upload-mixin:${this.id}:cancel-upload`,this._cancelSingleUpload),this._uppyReady(),this._useUploadPlugin(f.default,{capabilities:this.capabilities})},_triggerInProgressUploadsEvent(){this.onProgressUploadsChanged?.(this.inProgressUploads),this.appEvents.trigger(`upload-mixin:${this.id}:in-progress-uploads`,this.inProgressUploads)},_uppyReady(){},_startUpload(){if(this.filesAwaitingUpload&&this._uppyInstance?.getFiles().length)return this.set("uploading",!0),this._uppyInstance?.upload()},_useXHRUploads(){this._uppyInstance.use(m.default,{endpoint:this._xhrUploadUrl(),headers:{"X-CSRF-Token":this.session.csrfToken}})},_useChunkedUploads(){this.set("usingChunkedUploads",!0),this._uppyInstance.use(b.default,{url:this._xhrUploadUrl(),headers:{"X-CSRF-Token":this.session.csrfToken}})},_useS3Uploads(){this.set("usingS3Uploads",!0),this._uppyInstance.use(h.default,{getUploadParameters:e=>{const t={file_name:e.name,file_size:e.size,type:this.type}
return e.meta.sha1_checksum&&(t.metadata={"sha1-checksum":e.meta.sha1_checksum}),(0,s.ajax)((0,u.default)(`${this.uploadRootPath}/generate-presigned-put`),{type:"POST",data:t}).then((t=>(this._uppyInstance.setFileMeta(e.id,{uniqueUploadIdentifier:t.unique_identifier}),{method:"put",url:t.url,headers:{"Content-Type":e.type}}))).catch((t=>{(0,l.displayErrorForUpload)(t,this.siteSettings,e.name),this._reset()}))}})},_xhrUploadUrl(){const e=this.uploadUrl||this.uploadRootPath
return(0,u.default)(e)+".json?client_id="+this.messageBus?.clientId},_bindFileInputChange(){this.fileInputEventListener=(0,l.bindFileInputChangeListener)(this.fileInputEl,this._addFiles)},_cancelSingleUpload(e){this._uppyInstance.removeFile(e.fileId),this._removeInProgressUpload(e.fileId)},_addFiles(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
e=Array.isArray(e)?e:[e]
try{this._uppyInstance.addFiles(e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{pasted:t.pasted}}))))}catch(i){}},_completeExternalUpload(e){return(0,s.ajax)((0,u.default)(`${this.uploadRootPath}/complete-external-upload`),{type:"POST",data:(0,a.deepMerge)({unique_identifier:e.meta.uniqueUploadIdentifier},this.additionalParams||{})})},_reset(){this._uppyInstance?.cancelAll(),this.setProperties({uploading:!1,processing:!1,cancellable:!1,uploadProgress:0,filesAwaitingUpload:!1}),this.fileInputEl.value=""},_removeInProgressUpload(e){this.isDestroyed||this.isDestroying||(this.set("inProgressUploads",this.inProgressUploads.filter((t=>t.id!==e))),this._triggerInProgressUploadsEvent())},_uploadDropTargetOptions(){return{target:this.element}},_allUploadsComplete(){this.isDestroying||this.isDestroyed||(this.appEvents.trigger(`upload-mixin:${this.id}:all-uploads-complete`),this._reset())}},P(x,"_destroy",[w],Object.getOwnPropertyDescriptor(x,"_destroy"),x),P(x,"_initialize",[k],Object.getOwnPropertyDescriptor(x,"_initialize"),x),P(x,"_cancelSingleUpload",[y.bind],Object.getOwnPropertyDescriptor(x,"_cancelSingleUpload"),x),P(x,"_addFiles",[y.bind],Object.getOwnPropertyDescriptor(x,"_addFiles"),x),x))
e.default=O})),define("discourse/mixins/url-refresh",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t={didInsertElement(){this._super(...arguments),this.appEvents.on("url:refresh",this,"refresh")},willDestroyElement(){this._super(...arguments),this.appEvents.off("url:refresh",this,"refresh")}}
e.default=t})),define("discourse/mixins/user-fields-validation",["exports","discourse-common/utils/decorators","@ember/object","I18n","@ember/object/mixin","@ember/utils"],(function(e,t,i,n,r,o){var s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=r.default.create((s=(0,t.on)("init"),l=(0,t.default)("userFields.@each.value"),u(a={_createUserFields(){if(!this.site)return
let e=this.site.get("user_fields")
e&&(e=e.sortBy("position").map((e=>i.default.create({value:null,field:e})))),this.set("userFields",e)},userFieldsValidation(){if(!this.userFields)return i.default.create({ok:!0})
this.userFields.forEach((e=>{let t=i.default.create({ok:!0})
!e.field.required||e.value&&!(0,o.isEmpty)(e.value)?this.accountPassword&&"text"===e.field.field_type&&e.value&&e.value.toLowerCase().includes(this.accountPassword.toLowerCase())&&(t=i.default.create({failed:!0,reason:n.default.t("user_fields.same_as_password"),element:e.field.element})):t=i.default.create({failed:!0,reason:n.default.t("user_fields.required",{name:e.field.name}),element:e.field.element}),e.set("validation",t)}))
const e=this.userFields.find((e=>e.validation.failed))
return e?e.validation:i.default.create({ok:!0})}},"_createUserFields",[s],Object.getOwnPropertyDescriptor(a,"_createUserFields"),a),u(a,"userFieldsValidation",[l],Object.getOwnPropertyDescriptor(a,"userFieldsValidation"),a),a))
e.default=c})),define("discourse/mixins/username-validation",["exports","@ember/object","I18n","@ember/object/mixin","discourse/models/user","discourse-common/lib/debounce","@ember/utils","discourse-common/utils/decorators","discourse/lib/computed"],(function(e,t,i,n,r,o,s,l,a){var u,c
function d(e){let i=t.default.create({shouldCheck:!1,failed:!0,ok:!1,element:document.querySelector("#new-account-username")})
return i.setProperties(e),i}function p(e){let i=t.default.create({ok:!0})
return i.setProperties(e),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var m,h,f,g,b,y,_=n.default.create((u=(0,l.observes)("accountUsername"),c={uniqueUsernameValidation:null,maxUsernameLength:(0,a.setting)("max_username_length"),minUsernameLength:(0,a.setting)("min_username_length"),fetchExistingUsername(){r.default.checkUsername(null,this.accountEmail).then((e=>{e.suggestion&&((0,s.isEmpty)(this.accountUsername)||this.accountUsername===this.get("authOptions.username"))&&this.setProperties({accountUsername:e.suggestion,prefilledUsername:e.suggestion})}))},triggerValidation(){let{accountUsername:e}=this,t=this.basicUsernameValidation(e)
t.shouldCheck&&(0,o.default)(this,this.checkUsernameAvailability,500),this.set("usernameValidation",t)},basicUsernameValidation(e){return e&&e===this.prefilledUsername?p({reason:i.default.t("user.username.prefilled")}):(0,s.isEmpty)(e)?d({message:i.default.t("user.username.required"),reason:this.forceValidationReason?i.default.t("user.username.required"):null}):e.length<this.siteSettings.min_username_length?d({reason:i.default.t("user.username.too_short")}):e.length>this.maxUsernameLength?d({reason:i.default.t("user.username.too_long")}):d({shouldCheck:!0,reason:i.default.t("user.username.checking")})},checkUsernameAvailability(){return r.default.checkUsername(this.accountUsername,this.accountEmail).then((e=>{if(!this.isDestroying&&!this.isDestroyed)return this.set("isDeveloper",!1),e.available?(e.is_developer&&this.set("isDeveloper",!0),this.set("usernameValidation",p({reason:i.default.t("user.username.available")}))):e.suggestion?this.set("usernameValidation",d({reason:i.default.t("user.username.not_available",e)})):this.set("usernameValidation",d({reason:e.errors?e.errors.join(" "):i.default.t("user.username.not_available_no_suggestion")}))}))}},m=c,h="triggerValidation",f=[u],g=Object.getOwnPropertyDescriptor(c,"triggerValidation"),b=c,y={},Object.keys(g).forEach((function(e){y[e]=g[e]})),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=f.slice().reverse().reduce((function(e,t){return t(m,h,e)||e}),y),b&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(b):void 0,y.initializer=void 0),void 0===y.initializer&&(Object.defineProperty(m,h,y),y=null),c))
e.default=_})),define("discourse/mixins/viewing-action-type",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var t={viewingActionType(e){this.controllerFor("user").set("userActionType",e),this.controllerFor("user-activity").set("userActionType",e)}}
e.default=t})),define("discourse/models/action-summary",["exports","discourse/models/rest","discourse/lib/ajax","@ember/object/computed","discourse/lib/ajax-error"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=t.default.extend({canToggle:(0,n.or)("can_undo","can_act"),removeAction(){this.setProperties({acted:!1,count:this.count-1,can_act:!0,can_undo:!1})},togglePromise(e){return this.acted?this.undo(e):this.act(e)},toggle(e){return this.acted?(this.undo(e),!1):(this.act(e),!0)},act(e,t){return t||(t={}),this.setProperties({acted:!0,count:this.count+1,can_act:!1,can_undo:!0}),(0,i.ajax)("/post_actions",{type:"POST",data:{id:this.flagTopic?this.get("flagTopic.id"):e.get("id"),post_action_type_id:this.id,message:t.message,is_warning:t.isWarning,take_action:t.takeAction,queue_for_review:t.queue_for_review,flag_topic:!!this.flagTopic},returnXHR:!0}).then((t=>{this.flagTopic||e.updateActionsSummary(t.result)
return{acted:!0,remaining:parseInt(t.xhr.getResponseHeader("Discourse-Actions-Remaining")||0,10),max:parseInt(t.xhr.getResponseHeader("Discourse-Actions-Max")||0,10)}})).catch((t=>{(0,r.popupAjaxError)(t),this.removeAction(e)}))},undo(e){return this.removeAction(e),(0,i.ajax)("/post_actions/"+e.get("id"),{type:"DELETE",data:{post_action_type_id:this.id}}).then((t=>(e.updateActionsSummary(t),{acted:!1})))}})
e.default=o})),define("discourse/models/archetype",["exports","@ember/object/computed","discourse/models/rest","discourse/lib/computed"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=i.default.extend({hasOptions:(0,t.gt)("options.length",0),isDefault:(0,n.propertyEqual)("id","site.default_archetype"),notDefault:(0,t.not)("isDefault")})
e.default=r})),define("discourse/models/associated-group",["exports","@ember/object","discourse/lib/ajax","discourse/lib/ajax-error"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=t.default.extend()
r.reopenClass({list:()=>(0,i.ajax)("/associated_groups").then((e=>e.associated_groups.map((e=>r.create(e))))).catch(n.popupAjaxError)})
var o=r
e.default=o}))
define("discourse/models/badge-grouping",["exports","I18n","discourse/models/rest","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o,s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=i.default.extend((r=(0,n.default)("name"),o=(0,n.default)("name"),l(s={i18nNameKey(){return this.name.toLowerCase().replace(/\s/g,"_")},displayName(){const e=`badges.badge_grouping.${this.i18nNameKey}.name`
return t.default.t(e,{defaultValue:this.name})}},"i18nNameKey",[r],Object.getOwnPropertyDescriptor(s,"i18nNameKey"),s),l(s,"displayName",[o],Object.getOwnPropertyDescriptor(s,"displayName"),s),s))
e.default=a})),define("discourse/models/badge",["exports","discourse/models/badge-grouping","@ember/object","rsvp","discourse/models/rest","discourse/lib/ajax","discourse-common/utils/decorators","discourse-common/lib/get-url","@ember/object/computed"],(function(e,t,i,n,r,o,s,l,a){var u,c
function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=r.default.extend((u=(0,s.default)("badge_type.name"),d(c={newBadge:(0,a.none)("id"),image:(0,a.alias)("image_url"),url(){return(0,l.default)(`/badges/${this.id}/${this.slug}`)},updateFromJson(e){e.badge&&Object.keys(e.badge).forEach((t=>this.set(t,e.badge[t]))),e.badge_types&&e.badge_types.forEach((e=>{e.id===this.badge_type_id&&this.set("badge_type",Object.create(e))}))},badgeTypeClassName:e=>`badge-type-${(e=e||"").toLowerCase()}`,save(e){let t="/admin/badges",i="POST"
return this.id&&(t+=`/${this.id}`,i="PUT"),(0,o.ajax)(t,{type:i,data:e}).then((e=>(this.updateFromJson(e),this)))},destroy(){return this.newBadge?n.Promise.resolve():(0,o.ajax)(`/admin/badges/${this.id}`,{type:"DELETE"})}},"url",[s.default],Object.getOwnPropertyDescriptor(c,"url"),c),d(c,"badgeTypeClassName",[u],Object.getOwnPropertyDescriptor(c,"badgeTypeClassName"),c),c))
p.reopenClass({createFromJson(e){const n={}
"badge_types"in e&&e.badge_types.forEach((e=>n[e.id]=i.default.create(e)))
const r={}
"badge_groupings"in e&&e.badge_groupings.forEach((e=>r[e.id]=t.default.create(e)))
let o=[]
return"badge"in e?o=[e.badge]:e.badges&&(o=e.badges),o=o.map((e=>{const t=p.create(e)
return t.setProperties({badge_type:n[t.badge_type_id],badge_grouping:r[t.badge_grouping_id]}),t})),"badge"in e?o[0]:o},findAll(e){let t=""
return e&&e.onlyListable&&(t="?only_listable=true"),(0,o.ajax)(`/badges.json${t}`,{data:e}).then((e=>p.createFromJson(e)))},findById:e=>(0,o.ajax)(`/badges/${e}`).then((e=>p.createFromJson(e)))})
var m=p
e.default=m})),define("discourse/models/bookmark",["exports","discourse-common/utils/category-macro","I18n","rsvp","discourse/models/rest","discourse/models/user","discourse/models/topic","discourse/lib/ajax","@ember/object","discourse-common/utils/decorators","discourse/lib/bookmark","discourse-common/lib/get-url","discourse/lib/formatter","@ember/object/computed","@ember/string","discourse/lib/model-transformers"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f){var g,b,y,_,v,w,k,x,P,O
function T(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.WITH_REMINDER_ICON=e.NO_REMINDER_ICON=e.AUTO_DELETE_PREFERENCES=void 0
e.AUTO_DELETE_PREFERENCES={NEVER:0,CLEAR_REMINDER:3,WHEN_REMINDER_SENT:1,ON_OWNER_REPLY:2}
e.NO_REMINDER_ICON="bookmark"
e.WITH_REMINDER_ICON="discourse-bookmark-clock"
const S=r.default.extend((g=(0,u.default)("highest_post_number","url"),b=(0,u.default)("bumped_at","createdAt"),y=(0,u.default)("bumpedAt","createdAt"),_=(0,u.default)("created_at"),v=(0,u.default)("tags"),w=(0,u.default)("reminder_at","currentUser"),k=(0,u.default)("reminder_at"),x=(0,u.default)(),P=(0,u.default)("bookmarkable_type"),T(O={newBookmark:(0,m.none)("id"),get url(){return(0,d.default)(`/bookmarks/${this.id}`)},destroy(){return this.newBookmark?n.Promise.resolve():(0,l.ajax)(this.url,{type:"DELETE"})},attachedTo(){return{target:this.bookmarkable_type.toLowerCase(),targetId:this.bookmarkable_id}},togglePin(){return this.newBookmark?n.Promise.resolve():(0,l.ajax)(this.url+"/toggle_pin",{type:"PUT"})},pinAction(){return this.pinned?"unpin":"pin"},lastPostUrl(e){return this.urlForPostNumber(e)},urlForPostNumber(e){let t=(0,d.default)(`/t/${this.topic_id}`)
return e>0&&(t+=`/${e}`),t},bumpedAt:(e,t)=>e?new Date(e):t,bumpedAtTitle:(e,t)=>i.default.t("topic.bumped_at_title",{createdAtDate:(0,p.longDate)(t),bumpedAtDate:(0,p.longDate)(e)}),createdAt:e=>new Date(e),visibleListTags(e){if(!e||!this.siteSettings.suppress_overlapping_tags_in_list)return e
const t=this.title,i=[]
return e.forEach((function(e){t.toLowerCase().includes(e)||i.push(e)})),i},category:(0,t.default)("category_id"),formattedReminder:(e,t)=>(0,h.capitalize)((0,c.formattedReminderTime)(e,t.user_option.timezone)),reminderAtExpired:e=>moment(e)<moment(),topicForList(){const e="Topic"===this.bookmarkable_type?null:this.linked_post_number
return s.default.create({id:this.topic_id,fancy_title:this.fancy_title,linked_post_number:e,last_read_post_number:this.last_read_post_number,highest_post_number:this.highest_post_number})},bookmarkableTopicAlike:e=>["Topic","Post"].includes(e)},"url",[a.computed],Object.getOwnPropertyDescriptor(O,"url"),O),T(O,"lastPostUrl",[g],Object.getOwnPropertyDescriptor(O,"lastPostUrl"),O),T(O,"bumpedAt",[b],Object.getOwnPropertyDescriptor(O,"bumpedAt"),O),T(O,"bumpedAtTitle",[y],Object.getOwnPropertyDescriptor(O,"bumpedAtTitle"),O),T(O,"createdAt",[_],Object.getOwnPropertyDescriptor(O,"createdAt"),O),T(O,"visibleListTags",[v],Object.getOwnPropertyDescriptor(O,"visibleListTags"),O),T(O,"formattedReminder",[w],Object.getOwnPropertyDescriptor(O,"formattedReminder"),O),T(O,"reminderAtExpired",[k],Object.getOwnPropertyDescriptor(O,"reminderAtExpired"),O),T(O,"topicForList",[x],Object.getOwnPropertyDescriptor(O,"topicForList"),O),T(O,"bookmarkableTopicAlike",[P],Object.getOwnPropertyDescriptor(O,"bookmarkableTopicAlike"),O),O))
S.reopenClass({create(e){return(e=e||{}).currentUser=e.currentUser||o.default.current(),e.user=o.default.create(e.user),this._super(e)},createFor:(e,t,i)=>S.create({bookmarkable_type:t,bookmarkable_id:i,user_id:e.id,auto_delete_preference:e.user_option.bookmark_auto_delete_preference}),async applyTransformations(e){await(0,f.applyModelTransformations)("bookmark",e)}})
var j=S
e.default=j})),define("discourse/models/category-list",["exports","@ember/array/proxy","discourse/models/category","I18n","discourse/lib/preload-store","discourse/models/site","discourse/models/topic","discourse/lib/ajax","discourse/lib/formatter"],(function(e,t,i,n,r,o,s,l,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=t.default.extend({init(){this.set("content",[]),this._super(...arguments)}})
u.reopenClass({categoriesFrom(e,t){const n=u.create(),r=i.default.list()
let o="all"
const s=.66*t.category_list.categories.length
return["week","month"].some((e=>{if(t.category_list.categories.filter((t=>t[`topics_${e}`]>0)).length>=s)return o=e,!0})),t.category_list.categories.forEach((e=>n.pushObject(this._buildCategoryResult(e,r,o)))),n},_buildCategoryResult(e,t,i){switch(e.parent_category_id&&(e.parentCategory=t.findBy("id",e.parent_category_id)),e.subcategory_list?e.subcategories=e.subcategory_list.map((e=>this._buildCategoryResult(e,t,i))):e.subcategory_ids&&(e.subcategories=e.subcategory_ids.map((e=>t.findBy("id",parseInt(e,10))))),e.topics&&(e.topics=e.topics.map((e=>s.default.create(e)))),i){case"week":case"month":const t=e[`topics_${i}`]
if(t>0){const r=n.default.t(`categories.topic_stat_unit.${i}`)
e.stat=n.default.t("categories.topic_stat",{count:t,number:`<span class="value">${(0,a.number)(t)}</span>`,unit:`<span class="unit">${r}</span>`}),e.statTitle=n.default.t(`categories.topic_stat_sentence_${i}`,{count:t}),e.pickAll=!1
break}default:e.stat=`<span class="value">${(0,a.number)(e.topics_all_time)}</span>`,e.statTitle=n.default.t("categories.topic_sentence",{count:e.topics_all_time}),e.pickAll=!0}o.default.currentProp("mobileView")&&(e.statTotal=n.default.t("categories.topic_stat_all_time",{count:e.topics_all_time,number:`<span class="value">${(0,a.number)(e.topics_all_time)}</span>`}))
const r=o.default.current().updateCategory(e)
return r.setupGroupsAndPermissions(),r},listForParent(e,t){return(0,l.ajax)(`/categories.json?parent_category_id=${t.get("id")}`).then((i=>u.create({categories:this.categoriesFrom(e,i),parentCategory:t})))},list(e){return r.default.getAndRemove("categories_list",(()=>(0,l.ajax)("/categories.json"))).then((t=>u.create({categories:this.categoriesFrom(e,t),can_create_category:t.category_list.can_create_category,can_create_topic:t.category_list.can_create_topic})))}})
var c=u
e.default=c})),define("discourse/models/category",["exports","discourse-common/utils/decorators","discourse/lib/notification-levels","discourse/models/permission-type","discourse/models/rest","discourse/models/site","discourse/models/user","discourse/lib/ajax","@ember/object","discourse-common/lib/get-owner","discourse-common/lib/get-url"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m,h,f,g,b,y,_,v,w,k,x,P,O,T,S,j,C,z,I,E,M,D,N
function L(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const A=r.default.extend((d=(0,t.on)("init"),p=(0,t.default)("required_tag_groups","minimum_required_tags"),m=(0,t.default)("id"),h=(0,t.default)("parentCategory.ancestors"),f=(0,t.default)("parentCategory.level"),g=(0,t.default)("subcategories"),b=(0,t.default)("subcategories"),y=(0,t.default)("notification_level"),_=(0,t.default)("isMuted","subcategories"),v=(0,t.default)("isMuted","subcategories"),w=(0,t.default)("notification_level"),k=(0,t.default)("name"),x=(0,t.default)("path"),P=(0,t.default)("name"),O=(0,t.default)("url"),T=(0,t.default)("url"),S=(0,t.default)("color","text_color"),j=(0,t.default)("topic_count"),C=(0,t.default)("topic_count","subcategories.[]"),z=(0,t.default)("default_slow_mode_seconds"),I=(0,t.default)("notification_level"),E=(0,t.default)("topics"),M=(0,t.default)("topics"),D=(0,t.default)("id"),L(N={permissions:null,setupGroupsAndPermissions(){const e=this.available_groups
if(!e)return
this.set("availableGroups",e)
const t=this.group_permissions
t&&this.set("permissions",t.map((t=>(e.removeObject(t.group_name),t))))},minimumRequiredTags(){return this.required_tag_groups?.length>0?Math.max(this.required_tag_groups.reduce(((e,t)=>e+t.min_count),0),this.minimum_required_tags||0):this.minimum_required_tags>0?this.minimum_required_tags:null},availablePermissions:()=>[n.default.create({id:n.default.FULL}),n.default.create({id:n.default.CREATE_POST}),n.default.create({id:n.default.READONLY})],searchContext(e){return{type:"category",id:e,category:this}},ancestors(e){return[...e||[],this]},level:e=>e?e+1:0===e?1:0,isParent:e=>e&&e.length>0,isGrandParent:e=>e&&e.some((e=>e.subcategories&&e.subcategories.length>0)),isMuted:e=>e===i.NotificationLevels.MUTED,isHidden:(e,t)=>!!e&&(!t||!t.some((e=>!e.isHidden))),hasMuted:(e,t)=>!!e||!!t&&!!t.some((e=>e.hasMuted)),notificationLevelString(e){const t=Object.keys(i.NotificationLevels).find((t=>i.NotificationLevels[t]===e))
if(t)return t.toLowerCase()},path(){return`/c/${A.slugFor(this)}/${this.id}`},url:e=>(0,c.default)(e),fullSlug(){return A.slugFor(this).replace(/\//g,"-")},nameLower:e=>e.toLowerCase(),unreadUrl:e=>`${e}/l/unread`,newUrl:e=>`${e}/l/new`,style:(e,t)=>`background-color: #${e}; color: #${t}`,moreTopics(e){return e>(this.num_featured_topics||2)},totalTopicCount:(e,t)=>(t&&t.forEach((t=>{e+=t.topic_count})),e),defaultSlowModeMinutes:e=>e?e/60:null,isTracked:e=>e>=i.NotificationLevels.TRACKING,get unreadTopicsCount(){return this.topicTrackingState.countUnread({categoryId:this.id})},get newTopicsCount(){return this.topicTrackingState.countNew({categoryId:this.id})},save(){const e=this.id,t=e?`/categories/${e}`:"/categories"
return(0,l.ajax)(t,{contentType:"application/json",data:JSON.stringify({name:this.name,slug:this.slug,color:this.color,text_color:this.text_color,secure:this.secure,permissions:this._permissionsForUpdate(),auto_close_hours:this.auto_close_hours,auto_close_based_on_last_post:this.get("auto_close_based_on_last_post"),default_slow_mode_seconds:this.default_slow_mode_seconds,position:this.position,email_in:this.email_in,email_in_allow_strangers:this.email_in_allow_strangers,mailinglist_mirror:this.mailinglist_mirror,parent_category_id:this.parent_category_id,uploaded_logo_id:this.get("uploaded_logo.id"),uploaded_logo_dark_id:this.get("uploaded_logo_dark.id"),uploaded_background_id:this.get("uploaded_background.id"),allow_badges:this.allow_badges,category_setting_attributes:this.category_setting,custom_fields:this.custom_fields,topic_template:this.topic_template,form_template_ids:this.form_template_ids,all_topics_wiki:this.all_topics_wiki,allow_unlimited_owner_edits_on_first_post:this.allow_unlimited_owner_edits_on_first_post,allowed_tags:this.allowed_tags,allowed_tag_groups:this.allowed_tag_groups,allow_global_tags:this.allow_global_tags,required_tag_groups:this.required_tag_groups,sort_order:this.sort_order,sort_ascending:this.sort_ascending,topic_featured_link_allowed:this.topic_featured_link_allowed,show_subcategory_list:this.show_subcategory_list,num_featured_topics:this.num_featured_topics,default_view:this.default_view,subcategory_list_style:this.subcategory_list_style,default_top_period:this.default_top_period,minimum_required_tags:this.minimum_required_tags,navigate_to_first_post_after_read:this.get("navigate_to_first_post_after_read"),search_priority:this.search_priority,reviewable_by_group_name:this.reviewable_by_group_name,read_only_banner:this.read_only_banner,default_list_filter:this.default_list_filter}),type:e?"PUT":"POST"})},_permissionsForUpdate(){const e=this.permissions
let t={}
return e.length?e.forEach((e=>t[e.group_name]=e.permission_type)):t.staff=n.default.FULL,t},destroy(){return(0,l.ajax)(`/categories/${this.id||this.slug}`,{type:"DELETE"})},addPermission(e){this.permissions.addObject(e),this.availableGroups.removeObject(e.group_name)},removePermission(e){const t=this.permissions.findBy("group_name",e)
t&&(this.permissions.removeObject(t),this.availableGroups.addObject(e))},updatePermission(e,t){this.permissions.forEach(((i,n)=>{i.group_name===e&&this.set(`permissions.${n}.permission_type`,t)}))},latestTopic(e){if(e&&e.length)return e[0]},featuredTopics(e){if(e&&e.length)return e.slice(0,this.num_featured_topics||2)},setNotification(e){s.default.currentProp("muted_category_ids",s.default.current().calculateMutedIds(e,this.id,"muted_category_ids"))
const t=`/category/${this.id}/notifications`
return(0,l.ajax)(t,{data:{notification_level:e},type:"POST"}).then((t=>{s.default.current().set("indirectly_muted_category_ids",t.indirectly_muted_category_ids),this.set("notification_level",e),this.notifyPropertyChange("notification_level")}))},isUncategorizedCategory:e=>A.isUncategorized(e)},"setupGroupsAndPermissions",[d],Object.getOwnPropertyDescriptor(N,"setupGroupsAndPermissions"),N),L(N,"minimumRequiredTags",[p],Object.getOwnPropertyDescriptor(N,"minimumRequiredTags"),N),L(N,"availablePermissions",[t.default],Object.getOwnPropertyDescriptor(N,"availablePermissions"),N),L(N,"searchContext",[m],Object.getOwnPropertyDescriptor(N,"searchContext"),N),L(N,"ancestors",[h],Object.getOwnPropertyDescriptor(N,"ancestors"),N),L(N,"level",[f],Object.getOwnPropertyDescriptor(N,"level"),N),L(N,"isParent",[g],Object.getOwnPropertyDescriptor(N,"isParent"),N),L(N,"isGrandParent",[b],Object.getOwnPropertyDescriptor(N,"isGrandParent"),N),L(N,"isMuted",[y],Object.getOwnPropertyDescriptor(N,"isMuted"),N),L(N,"isHidden",[_],Object.getOwnPropertyDescriptor(N,"isHidden"),N),L(N,"hasMuted",[v],Object.getOwnPropertyDescriptor(N,"hasMuted"),N),L(N,"notificationLevelString",[w],Object.getOwnPropertyDescriptor(N,"notificationLevelString"),N),L(N,"path",[k],Object.getOwnPropertyDescriptor(N,"path"),N),L(N,"url",[x],Object.getOwnPropertyDescriptor(N,"url"),N),L(N,"fullSlug",[t.default],Object.getOwnPropertyDescriptor(N,"fullSlug"),N),L(N,"nameLower",[P],Object.getOwnPropertyDescriptor(N,"nameLower"),N),L(N,"unreadUrl",[O],Object.getOwnPropertyDescriptor(N,"unreadUrl"),N),L(N,"newUrl",[T],Object.getOwnPropertyDescriptor(N,"newUrl"),N),L(N,"style",[S],Object.getOwnPropertyDescriptor(N,"style"),N),L(N,"moreTopics",[j],Object.getOwnPropertyDescriptor(N,"moreTopics"),N),L(N,"totalTopicCount",[C],Object.getOwnPropertyDescriptor(N,"totalTopicCount"),N),L(N,"defaultSlowModeMinutes",[z],Object.getOwnPropertyDescriptor(N,"defaultSlowModeMinutes"),N),L(N,"isTracked",[I],Object.getOwnPropertyDescriptor(N,"isTracked"),N),L(N,"latestTopic",[E],Object.getOwnPropertyDescriptor(N,"latestTopic"),N),L(N,"featuredTopics",[M],Object.getOwnPropertyDescriptor(N,"featuredTopics"),N),L(N,"isUncategorizedCategory",[D],Object.getOwnPropertyDescriptor(N,"isUncategorizedCategory"),N),N))
let U
A.reopenClass({sortCategories(e){const t=new Map
e.forEach((e=>{const i=parseInt(e.parent_category_id,10)||-1,n=t.get(i)||[]
n.pushObject(e),t.set(i,n)}))
const i=e=>e.flatMap((e=>[e,i(t.get(e.id)||[])])).flat()
return i(t.get(-1))},isUncategorized:e=>e===o.default.currentProp("uncategorized_category_id"),slugEncoded(){return"encoded"===(0,u.getOwner)(this).lookup("service:site-settings").slug_generation_method},findUncategorized:()=>(U=U||A.list().findBy("id",o.default.currentProp("uncategorized_category_id")),U),slugFor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3
if(!e)return""
const n=(0,a.get)(e,"parentCategory")
let r=""
n&&i>1&&(r=A.slugFor(n,t,i-1)+t)
const o=(0,a.get)(e,"id"),s=(0,a.get)(e,"slug")
return s&&0!==s.trim().length?r+s:`${r}${o}-category`},list:()=>o.default.currentProp("categoriesList"),listByActivity:()=>o.default.currentProp("sortedCategories"),_idMap:()=>o.default.currentProp("categoriesById"),findSingleBySlug(e){return this.slugEncoded()?A.list().find((t=>A.slugFor(t)===encodeURI(e))):A.list().find((t=>A.slugFor(t)===e))},findById(e){if(e)return A._idMap()[e]},findByIds(){const e=[]
return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const i=A.findById(t)
i&&e.push(i)})),e},findBySlugAndParent(e,t){return this.slugEncoded()&&(e=encodeURI(e)),A.list().find((i=>i.slug===e&&(i.parentCategory||null)===t))},findBySlugPath(e){let t=null
for(const i of e)if(t=this.findBySlugAndParent(i,t),!t)return null
return t},findBySlugPathWithID(e){let t=e.split("/").filter(Boolean)
this.slugEncoded()&&(t=t.map((e=>decodeURI(e))))
let i=null
if(t.length>0&&t[t.length-1].match(/^\d+$/)){const e=parseInt(t.pop(),10)
i=A.findById(e)}else if(i=A.findBySlugPath(t),!i&&t.length>0&&t[t.length-1].match(/^\d+-category/)){const e=parseInt(t.pop(),10)
i=A.findById(e)}return i},findBySlug(e,t){const i=A.list()
let n
if(t){const r=A.findSingleBySlug(t)
if(r){if("none"===e)return r
n=i.find((i=>i&&i.get("parentCategory")===r&&(!this.slugEncoded()&&A.slugFor(i)===t+"/"+e||this.slugEncoded()&&A.slugFor(i)===encodeURI(t)+"/"+encodeURI(e))))}}else if(n=A.findSingleBySlug(e),n&&n.get("parentCategory"))return
return n||(n=i.findBy("id",parseInt(e,10))),n},fetchVisibleGroups:e=>(0,l.ajax)(`/c/${e}/visible_groups.json`),reloadById:e=>(0,l.ajax)(`/c/${e}/show.json`),reloadBySlugPath:e=>(0,l.ajax)(`/c/${e}/find_by_slug.json`),reloadCategoryWithPermissions(e,t,i){return this.reloadBySlugPath(e.slug).then((e=>this._includePermissions(e.category,t,i)))},_includePermissions(e,t,i){const n=t.createRecord("category",e)
return n.setupGroupsAndPermissions(),i.updateCategory(n),n},search(e,t){let i,n=5
if(t){if(0===t.limit)return[]
t.limit&&(n=t.limit),t.parentCategoryId&&(i=t.parentCategoryId)}const r=""===e
let o=e
r||(o=e=e.toLowerCase(),e=e.replace(/-/g," "))
const s=A.listByActivity(),l=s.length
let a,u=[]
const c=()=>u.length===n,d=e=>!i||e.get("parent_category_id")===i
for(a=0;a<l&&!c();a++){const t=s[a];(r&&!t.get("parent_category_id")||!r&&(t.get("name").toLowerCase().startsWith(e)||t.get("slug").toLowerCase().startsWith(o)))&&d(t)&&u.push(t)}if(!c())for(a=0;a<l&&!c();a++){const t=s[a];(!r&&t.get("name").toLowerCase().indexOf(e)>0||t.get("slug").toLowerCase().indexOf(o)>0)&&d(t)&&(u.includes(t)||u.push(t))}return u.sortBy("read_restricted")}})
var F=A
e.default=F})),define("discourse/models/composer",["exports","@ember/object","@ember/object/computed","@ember/runloop","discourse-common/utils/decorators","discourse/lib/utilities","discourse/models/draft","I18n","rsvp","discourse/lib/quote","discourse/models/rest","discourse/models/site","discourse/models/topic","discourse/models/user","@ember/service","discourse-common/lib/deprecated","@ember/utils","discourse/lib/computed","discourse/lib/ajax-error","discourse/lib/settings"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_){var v,w,k,x,P,O,T,S,j,C,z,I,E,M,D,N,L,A,U,F,R,B,$,q,H,W,V,G,K,Y
function J(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SAVE_LABELS=e.SAVE_ICONS=e.REPLY=e.PRIVATE_MESSAGE=e.NEW_TOPIC_KEY=e.NEW_PRIVATE_MESSAGE_KEY=e.EDIT_SHARED_DRAFT=e.EDIT=e.CREATE_TOPIC=e.CREATE_SHARED_DRAFT=void 0,e.registerCustomizationCallback=function(e){Q.push(e)},e.resetComposerCustomizations=function(){Q=[]}
let Q=[]
const X="createTopic",Z="createSharedDraft",ee="editSharedDraft",te="privateMessage",ie="reply",ne="edit",re="new_private_message",oe="new_topic"
function se(e){return e===ne||e===ee}e.NEW_TOPIC_KEY=oe,e.NEW_PRIVATE_MESSAGE_KEY=re,e.EDIT=ne,e.REPLY=ie,e.PRIVATE_MESSAGE=te,e.EDIT_SHARED_DRAFT=ee,e.CREATE_SHARED_DRAFT=Z,e.CREATE_TOPIC=X
const le="closed",ae="saving",ue="open",ce="draft",de="fullscreen",pe={raw:"reply",title:"title",unlist_topic:"unlistTopic",category:"categoryId",topic_id:"topic.id",is_warning:"isWarning",whisper:"whisper",archetype:"archetypeId",target_recipients:"targetRecipients",typing_duration_msecs:"typingTime",composer_open_duration_msecs:"composerTime",tags:"tags",featured_link:"featuredLink",shared_draft:"sharedDraft",no_bump:"noBump",draft_key:"draftKey"},me={raw:"reply",topic_id:"topic.id",raw_old:"rawOld"},he={title:"topic.title",categoryId:"topic.category.id",tags:"topic.tags",featuredLink:"topic.featured_link"},fe={reply:"reply",action:"action",title:"title",categoryId:"categoryId",tags:"tags",archetypeId:"archetypeId",whisper:"whisper",metaData:"metaData",composerTime:"composerTime",typingTime:"typingTime",postId:"post.id",recipients:"targetRecipients"},ge={},be={[ne]:"composer.save_edit",[ie]:"composer.reply",[X]:"composer.create_topic",[te]:"composer.create_pm",[Z]:"composer.create_shared_draft",[ee]:"composer.save_edit"}
e.SAVE_LABELS=be
const ye={[ne]:"pencil-alt",[ee]:"far-clipboard",[ie]:"reply",[X]:"plus",[te]:"envelope",[Z]:"far-clipboard"}
e.SAVE_ICONS=ye
const _e=c.default.extend((v=(0,r.default)("categoryId"),w=(0,r.default)("category.minimumRequiredTags"),k=(0,r.default)("editingPost","topic.details.can_edit"),x=(0,r.default)("privateMessage","archetype.hasOptions"),P=(0,r.default)("creatingPrivateMessage","topic"),O=(0,r.default)("action"),T=(0,r.observes)("composeState"),S=(0,r.default)("archetypeId"),j=(0,r.observes)("archetype"),C=(0,r.default)("canEditTitle","creatingPrivateMessage","categoryId","user.trust_level"),z=(0,r.default)("canEditTopicFeaturedLink"),I=(0,r.default)("action","post","topic","topic.title"),E=(0,r.default)("targetRecipients"),M=(0,r.default)("loading","canEditTitle","titleLength","targetRecipients","targetRecipientsArray","replyLength","categoryId","missingReplyCharacters","tags","topicFirstPost","minimumRequiredTags","user.staff"),D=(0,r.default)("canCategorize","categoryId"),N=(0,r.default)("minimumTitleLength","titleLength","post.static_doc"),L=(0,r.default)("metaData"),A=(0,r.default)("minimumTitleLength","titleLength"),U=(0,r.default)("privateMessage"),F=(0,r.default)("minimumPostLength","replyLength","canEditTopicFeaturedLink"),R=(0,r.default)("privateMessage","topicFirstPost","topic.pm_with_non_human_user"),B=(0,r.default)("title"),$=(0,r.default)("reply"),q=(0,r.on)("init"),H=(0,r.default)("editConflict","originalText"),W=(0,r.default)("draftSaving","disableDrafts","canEditTitle","title","reply","titleLengthValid","replyLength","minimumPostLength"),J(V={dialog:(0,h.inject)(),_categoryId:null,unlistTopic:!1,noBump:!1,draftSaving:!1,draftForceSave:!1,showFullScreenExitPrompt:!1,archetypes:(0,i.reads)("site.archetypes"),sharedDraft:(0,i.equal)("action",Z),categoryId:{get(){return this._categoryId},set(e){const t=this._categoryId
if(this.privateMessage)e=null
else if((0,g.isEmpty)(e)){const t=parseInt(this.siteSettings.default_composer_category,10)
e=t&&t>0?t:null}return this._categoryId=e,t!==e&&this.applyTopicTemplate(t,e),e}},category(e){return e?this.site.categories.findBy("id",e):null},minimumRequiredTags:e=>e||0,creatingTopic:(0,i.equal)("action",X),creatingSharedDraft:(0,i.equal)("action",Z),creatingPrivateMessage:(0,i.equal)("action",te),notCreatingPrivateMessage:(0,i.not)("creatingPrivateMessage"),notPrivateMessage:(0,i.not)("privateMessage"),disableTitleInput:(e,t)=>e&&!t,showCategoryChooser(e,t){const i=this.site.categories.length>1
return!e&&(t||i)},privateMessage:(e,t)=>e||t&&"private_message"===t.archetype,topicFirstPost:(0,i.or)("creatingTopic","editingFirstPost"),editingPost:se,replyingToTopic:(0,i.equal)("action",ie),viewOpen:(0,i.equal)("composeState",ue),viewDraft:(0,i.equal)("composeState",ce),viewFullscreen:(0,i.equal)("composeState",de),viewOpenOrFullscreen:(0,i.or)("viewOpen","viewFullscreen"),composeStateChanged(){const e=this.composerOpened,t=document.querySelector("html")
if(this.composeState===de?t.classList.add("fullscreen-composer"):t.classList.remove("fullscreen-composer"),this.composeState===ue)this.set("composerOpened",e||new Date),t.classList.add("composer-open")
else{if(e){const t=this.composerTotalOpened||0
this.set("composerTotalOpened",t+(new Date-e))}this.set("composerOpened",null),t.classList.remove("composer-open")}},composerTime:{get(){let e=this.composerTotalOpened||0
const t=this.composerOpened
return t&&(e+=new Date-t),e}},archetype(e){return this.archetypes.findBy("id",e)},archetypeChanged(){return this.set("metaData",t.default.create())},typing(){(0,n.throttle)(this,(function(){const e=this.typingTime||0
this.set("typingTime",e+100)}),100,!1)},editingFirstPost:(0,i.and)("editingPost","post.firstPost"),canEditTitle:(0,i.or)("creatingTopic","creatingPrivateMessage","editingFirstPost","creatingSharedDraft"),canCategorize:(0,i.and)("canEditTitle","notCreatingPrivateMessage","notPrivateMessage"),canEditTopicFeaturedLink(e,t,i,n){if(0===n)return!1
if(!this.siteSettings.topic_featured_link_enabled||!e||t)return!1
const r=this.site.topic_featured_link_allowed_category_ids
return!(i||!r||!r.includes(this.site.uncategorized_category_id)&&this.siteSettings.allow_uncategorized_topics)||(void 0===r||!r.length||r.includes(i))},titlePlaceholder:e=>e?"composer.title_or_link_placeholder":"composer.title_placeholder",replyOptions(e,t,i,n){const r={userLink:null,topicLink:null,postLink:null,userAvatar:null,originalUser:null}
if(i&&(r.topicLink={href:i.url,anchor:i.fancyTitle||(0,o.escapeExpression)(n)}),t&&(r.label=l.default.t(`post.${e}`),r.userAvatar=(0,o.tinyAvatar)(t.avatar_template),!this.site.mobileView)){const i=t.get("reply_to_user.username"),n=t.get("reply_to_user.avatar_template")
i&&n&&se(e)&&(r.originalUser={username:i,avatar:(0,o.tinyAvatar)(n)})}if(i&&t){const e=t.post_number
r.postLink={href:`${i.url}/${e}`,anchor:l.default.t("post.post_number",{number:e})}
const n=(0,_.prioritizeNameFallback)(t.name,t.username)
r.userLink={href:`${i.url}/${e}`,anchor:n}}return r},targetRecipientsArray(e){const t=e?e.split(","):[],i=new Set(this.site.groups.map((e=>e.name)))
return t.map((e=>i.has(e)?{type:"group",name:e}:(0,o.emailValid)(e)?{type:"email",name:e}:{type:"user",name:e}))},cantSubmitPost(e,t,i,n,r,o,s,a,u,c,d,p){if(e)return!0
if(t&&!this.titleLengthValid)return!0
if(a>0)return!0
if(this.site.can_tag_topics&&!p&&c&&d){if((u||[]).length<d)return!0}if(c){const e=this.category
if(e&&e.topic_template&&this.reply.trim()===e.topic_template.trim())return this.dialog.alert(l.default.t("composer.error.topic_template_not_modified")),!0}return this.privateMessage?n&&0===r.length:this.requiredCategoryMissing},requiredCategoryMissing(e,t){return e&&!t&&!this.siteSettings.allow_uncategorized_topics&&!!this._hasTopicTemplates},titleLengthValid(e,t,i){return!!(this.user.admin&&i&&t>0)||!(t<e)&&t<=this.siteSettings.max_topic_title_length},hasMetaData:e=>!!e&&(0,g.isEmpty)(Object.keys(e)),replyDirty:(0,b.propertyNotEqual)("reply","originalText"),titleDirty:(0,b.propertyNotEqual)("title","originalTitle"),missingTitleCharacters:(e,t)=>e-t,minimumTitleLength(e){return e?this.siteSettings.min_personal_message_title_length:this.siteSettings.min_topic_title_length},missingReplyCharacters(e,t,i){return this.get("post.post_type")===this.site.get("post_types.small_action")||i&&this.featuredLink?0:e-t},minimumPostLength(e,t,i){return i?1:e?this.siteSettings.min_personal_message_post_length:t?this.siteSettings.min_first_post_length:this.siteSettings.min_post_length},titleLength:e=>(e=e||"").replace(/\s+/gim," ").trim().length,replyLength(e){if((e=e||"").length>1e4)return e.length
const t=/<!--(.*?)-->/gm
for(;t.test(e);)e=e.replace(t,"")
for(;u.QUOTE_REGEXP.test(e);){const t=new RegExp(u.QUOTE_REGEXP.source,"img")
e=e.replace(t,"")}let i=0,n=!0
for(let r=0;r<e.length;r++){const t=e.charCodeAt(r)
let o=!1
if(t>=8192&&t<=8202)o=!0
else switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:o=!0}o?n||(i++,n=!0):(i++,n=!1)}return i>0&&n&&i--,i},_setupComposer(){this.set("archetypeId",this.site.default_archetype)},appendText(e,t,i){const n=this.reply||""
t="number"==typeof t?t:n.length
let r,o,s=n.slice(0,t)||"",l=n.slice(t)||""
if(i&&i.block){if(""!==s.trim())for(r=s.replace(/\r/g,""),o=0;o<2;o++)"\n"!==r[r.length-1-o]&&(s+="\n",t++)
if(""!==l.trim())for(r=l.replace(/\r/g,""),o=0;o<2;o++)"\n"!==r[o]&&(l="\n"+l)}return i&&i.space&&(s.length>0&&!s[s.length-1].match(/\s/)&&(s+=" "),l.length>0&&!l[0].match(/\s/)&&(l=" "+l)),i&&i.new_line&&(e=s.length>0?"\n\n"+e.trim():e.trim()),this.set("reply",s+e+l),s.length+e.length},prependText(e,t){const i=this.reply||""
t&&t.new_line&&i.length>0&&(e=e.trim()+"\n\n"),this.set("reply",e+i)},applyTopicTemplate(e,t){if(this.action!==X)return
let i=this.reply
if(e){const t=this.site.categories.findBy("id",e)
t&&t.topic_template===i&&(i="")}if(!(0,g.isEmpty)(i))return
const n=this.site.categories.findBy("id",t)
n&&this.set("reply",n.topic_template||"")},open(e){let i=a.Promise.resolve()
if(e||(e={}),this.set("loading",!0),!(0,g.isEmpty)(this.reply)&&(e.reply||se(e.action))&&this.replyDirty)return i
if(e.action===ie&&se(this.action)&&this.set("reply",""),!e.draftKey)throw new Error("draft key is required")
if(null===e.draftSequence)throw new Error("draft sequence is required")
if(e.usernames&&(0,f.default)("`usernames` is deprecated, use `recipients` instead.",{id:"discourse.composer.usernames"}),this.setProperties({draftKey:e.draftKey,draftSequence:e.draftSequence,composeState:e.composerState||ue,action:e.action,topic:e.topic,targetRecipients:e.usernames||e.recipients,composerTotalOpened:e.composerTime,typingTime:e.typingTime,whisper:e.whisper,tags:e.tags,noBump:e.noBump}),e.post?(this.setProperties({post:e.post,whisper:e.post.post_type===this.site.post_types.whisper}),this.topic||this.set("topic",e.post.topic)):e.postId?i=i.then((()=>this.store.find("post",e.postId).then((e=>{this.set("post",e),e&&this.set("topic",e.topic)})))):this.set("post",null),this.setProperties({archetypeId:e.archetypeId||this.site.default_archetype,metaData:e.metaData?t.default.create(e.metaData):null,reply:e.reply||this.reply||""}),this.set("categoryId",e.categoryId||this.get("topic.category.id")),!this.categoryId&&this.creatingTopic){const e=this.site.categories
1===e.length&&this.set("categoryId",e[0].id)}if(this._hasTopicTemplates=this.site.categories.some((e=>e.topic_template)),se(e.action)&&this.post){const t=this.serialize(he)
t.loading=!0,e.action===ee&&e.destinationCategoryId&&(t.categoryId=e.destinationCategoryId),this.setProperties(t),i=i.then((()=>{let t=this.store.find("post",e.post.id).then((e=>{this.setProperties({post:e,reply:e.raw,originalText:e.raw})}))
return this.topic&&this.topic.id===this.post.topic_id||(t=this.store.find("topic",this.post.topic_id).then((e=>{this.set("topic",e)}))),t.then((()=>{this.appEvents.trigger("composer:reply-reloaded",this)}))}))}else e.action===ie&&e.quote&&this.setProperties({reply:e.quote,originalText:e.quote})
e.title&&this.set("title",e.title)
const n=e.draft||e.skipDraftCheck
return this.set("originalText",n?"":this.reply),this.canEditTitle&&((0,g.isEmpty)(this.title)&&""!==this.title&&this.set("title",""),this.set("originalTitle",this.title)),se(e.action)&&e.post||(i=i.then((()=>this.appEvents.trigger("composer:reply-reloaded",this)))),Object.keys(ge).forEach((t=>{this.set(ge[t],e[t])})),i.finally((()=>{this.set("loading",!1)}))},beforeSave:()=>a.Promise.resolve(),save(e){return this.beforeSave().then((()=>{if(!this.cantSubmitPost)return this.canEditTopicFeaturedLink||this.set("featuredLink",null),this.editingPost?this.editPost(e):this.createPost(e)}))},clearState(){this.setProperties({originalText:null,reply:null,post:null,title:null,unlistTopic:!1,editReason:null,stagedPost:!1,typingTime:0,composerOpened:null,composerTotalOpened:0,featuredLink:null,noBump:!1,editConflict:!1})},rawOld:(e,t)=>e?null:t,editPost(e){const t=this.post,i=t.cooked
let n=a.Promise.resolve()
if(this.title&&1===t.post_number){const e=this.topic
if(e.details.can_edit){const t=this.getProperties(Object.keys(he))
if(t.featuredLink&&(t.featured_link=t.featuredLink,delete t.featuredLink),this.action===ee){const i=t.categoryId
n=n.then((()=>e.updateDestinationCategory(i))),t.categoryId=e.get("category.id")}n=n.then((()=>p.default.update(e,t)))}else e.details.can_edit_tags&&(n=n.then((()=>e.updateTags(this.tags))))}const r={edit_reason:e.editReason,image_sizes:e.imageSizes,cooked:this.getCookedHtml()}
this.serialize(me,r),this.set("composeState",ae)
const o=(0,y.throwAjaxError)((e=>{t.setProperties("cooked",i),this.set("composeState",ue),e.jqXHR&&409===e.jqXHR.status&&this.set("editConflict",!0)}))
return t.setProperties({cooked:r.cooked,staged:!0}),this.appEvents.trigger("post-stream:refresh",{id:t.id}),n.then((()=>t.save(r).then((e=>(this.clearState(),e))))).catch(o).finally((()=>{t.set("staged",!1),this.appEvents.trigger("post-stream:refresh",{id:t.id})}))},serialize(e,i){return i=i||{},Object.keys(e).forEach((n=>{const r=this.get(e[n])
void 0!==r&&(0,t.set)(i,n,r)})),i},async createPost(e){X!==this.action&&te!==this.action||this.set("topic",null)
const t=this.post,i=this.topic,r=this.user,o=this.get("topic.postStream"),s=this.site.post_types,l=this.whisper?s.whisper:s.regular,a=this.store.createRecord("post",{imageSizes:e.imageSizes,cooked:this.getCookedHtml(),reply_count:0,name:r.name,display_username:r.name,username:r.username,user_id:r.id,user_title:r.title,avatar_template:r.avatar_template,user_custom_fields:r.custom_fields,post_type:l,actions_summary:[],moderator:r.moderator,admin:r.admin,yours:!0,read:!0,wiki:!1,typingTime:this.typingTime,composerTime:this.composerTime,metaData:this.metaData})
this.serialize(pe,a),t&&a.setProperties({reply_to_post_number:t.post_number,reply_to_user:t.getProperties("username","avatar_template")})
let u=null
if(!o||(t?.setProperties({reply_count:(t.reply_count||0)+1,replies:[]}),(0,g.isEmpty)(a.cooked)||(u=o.stagePost(a,r),"alreadyStaging"!==u))){this.setProperties({composeState:ae,stagedPost:"staged"===u&&a})
try{const e=await a.save()
let t=!0
if("enqueued"===e.responseJson.action)return o?.undoPost(a),e
e.responseJson.post&&!e.responseJson.post.reply_to_user&&a.set("reply_to_user",null)
let n=!1
if(i)i.set("draft_sequence",e.target.draft_sequence),o.commitPost(a),n=!0
else{this.set("composeState",le),t=!1
const e=parseInt(a.category,10)||1,i=this.site.categories.find((t=>t.id===e))
i?.incrementProperty("topic_count")}return this.clearState(),this.set("createdPost",a),this.replyingToTopic?this.appEvents.trigger("post:created",a):this.appEvents.trigger("topic:created",a,this),n?this.set("composeState",le):t&&this.set("composeState",ae),e}catch(c){throw o&&(o.undoPost(a),t?.set("reply_count",t.reply_count-1)),(0,n.next)((()=>this.set("composeState",ue))),(0,y.extractError)(c)}}},getCookedHtml(){const e=document.querySelector("#reply-control .d-editor-preview")
return e?e.innerHTML.replace(/<span class="marker"><\/span>/g,""):""},canSaveDraft(){if(this.draftSaving)return!1
if(this.disableDrafts)return!1
if(this.canEditTitle){if((0,g.isEmpty)(this.title)&&(0,g.isEmpty)(this.reply))return!1
if(!this.titleLengthValid&&this.replyLength<this.minimumPostLength)return!1}else if((0,g.isEmpty)(this.reply))return!1
return!0},saveDraft(e){if(!this.canSaveDraft)return a.Promise.resolve()
this.setProperties({draftSaving:!0,draftConflictUser:null})
let t=this.serialize(fe)
t.postId&&!(0,g.isEmpty)(this.originalText)&&(t.originalText=this.originalText)
const i=this.draftSequence
return this.set("draftSequence",this.draftSequence+1),s.default.save(this.draftKey,i,t,this.messageBus.clientId,{forceSave:this.draftForceSave}).then((t=>{"draft_sequence"in t&&this.set("draftSequence",t.draft_sequence),t.conflict_user?this.setProperties({draftStatus:l.default.t("composer.edit_conflict"),draftConflictUser:t.conflict_user}):(this.draftKey===oe&&e&&e.set("has_topic_draft",!0),this.setProperties({draftStatus:null,draftConflictUser:null,draftForceSave:!1}))})).catch((e=>{let t
const i=e&&e.jqXHR
if(i&&409===i.status&&i.responseJSON&&i.responseJSON.errors&&i.responseJSON.errors.length){const i=e.jqXHR.responseJSON
t=i.errors[0],i.extras?.description&&this.dialog.alert({message:i.extras.description,buttons:[{label:l.default.t("composer.reload"),class:"btn-primary",action:()=>window.location.reload()},{label:l.default.t("composer.ignore"),class:"btn",action:()=>this.set("draftForceSave",!0)}]})}this.setProperties({draftStatus:t||l.default.t("composer.drafts_offline"),draftConflictUser:null})})).finally((()=>{this.set("draftSaving",!1)}))},customizationFor(e){for(let t=0;t<Q.length;t++){let i=Q[t][e]
if(i){let e=i(this)
if(e)return e}}}},"categoryId",[r.default],(G=(G=Object.getOwnPropertyDescriptor(V,"categoryId"))?G.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return G}}),V),J(V,"category",[v],Object.getOwnPropertyDescriptor(V,"category"),V),J(V,"minimumRequiredTags",[w],Object.getOwnPropertyDescriptor(V,"minimumRequiredTags"),V),J(V,"disableTitleInput",[k],Object.getOwnPropertyDescriptor(V,"disableTitleInput"),V),J(V,"showCategoryChooser",[x],Object.getOwnPropertyDescriptor(V,"showCategoryChooser"),V),J(V,"privateMessage",[P],Object.getOwnPropertyDescriptor(V,"privateMessage"),V),J(V,"editingPost",[O],(K=(K=Object.getOwnPropertyDescriptor(V,"editingPost"))?K.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return K}}),V),J(V,"composeStateChanged",[T],Object.getOwnPropertyDescriptor(V,"composeStateChanged"),V),J(V,"composerTime",[r.default],(Y=(Y=Object.getOwnPropertyDescriptor(V,"composerTime"))?Y.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return Y}}),V),J(V,"archetype",[S],Object.getOwnPropertyDescriptor(V,"archetype"),V),J(V,"archetypeChanged",[j],Object.getOwnPropertyDescriptor(V,"archetypeChanged"),V),J(V,"canEditTopicFeaturedLink",[C],Object.getOwnPropertyDescriptor(V,"canEditTopicFeaturedLink"),V),J(V,"titlePlaceholder",[z],Object.getOwnPropertyDescriptor(V,"titlePlaceholder"),V),J(V,"replyOptions",[I],Object.getOwnPropertyDescriptor(V,"replyOptions"),V),J(V,"targetRecipientsArray",[E],Object.getOwnPropertyDescriptor(V,"targetRecipientsArray"),V),J(V,"cantSubmitPost",[M],Object.getOwnPropertyDescriptor(V,"cantSubmitPost"),V),J(V,"requiredCategoryMissing",[D],Object.getOwnPropertyDescriptor(V,"requiredCategoryMissing"),V),J(V,"titleLengthValid",[N],Object.getOwnPropertyDescriptor(V,"titleLengthValid"),V),J(V,"hasMetaData",[L],Object.getOwnPropertyDescriptor(V,"hasMetaData"),V),J(V,"missingTitleCharacters",[A],Object.getOwnPropertyDescriptor(V,"missingTitleCharacters"),V),J(V,"minimumTitleLength",[U],Object.getOwnPropertyDescriptor(V,"minimumTitleLength"),V),J(V,"missingReplyCharacters",[F],Object.getOwnPropertyDescriptor(V,"missingReplyCharacters"),V),J(V,"minimumPostLength",[R],Object.getOwnPropertyDescriptor(V,"minimumPostLength"),V),J(V,"titleLength",[B],Object.getOwnPropertyDescriptor(V,"titleLength"),V),J(V,"replyLength",[$],Object.getOwnPropertyDescriptor(V,"replyLength"),V),J(V,"_setupComposer",[q],Object.getOwnPropertyDescriptor(V,"_setupComposer"),V),J(V,"rawOld",[H],Object.getOwnPropertyDescriptor(V,"rawOld"),V),J(V,"canSaveDraft",[W],Object.getOwnPropertyDescriptor(V,"canSaveDraft"),V),V))
_e.reopenClass({create(e){return(e=e||{}).user=e.user||m.default.current(),e.site=e.site||d.default.current(),this._super(e)},serializeToTopic(e,t){t||(t=e),he[e]=t},serializeOnCreate(e,t){t||(t=e),pe[e]=t},serializedFieldsForCreate:()=>Object.keys(pe),serializeOnUpdate(e,t){t||(t=e),me[e]=t},serializedFieldsForUpdate:()=>Object.keys(me),serializeToDraft(e,t){t||(t=e),fe[e]=t,ge[e]=t},serializedFieldsForDraft:()=>Object.keys(fe),CLOSED:le,SAVING:ae,OPEN:ue,DRAFT:ce,FULLSCREEN:de,CREATE_TOPIC:X,CREATE_SHARED_DRAFT:Z,EDIT_SHARED_DRAFT:ee,PRIVATE_MESSAGE:te,REPLY:ie,EDIT:ne,NEW_PRIVATE_MESSAGE_KEY:re,NEW_TOPIC_KEY:oe})
var ve=_e
e.default=ve})),define("discourse/models/draft",["exports","@ember/object","discourse/lib/ajax"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=t.default.extend()
n.reopenClass({clear:(e,t)=>(0,i.ajax)(`/drafts/${e}.json`,{type:"DELETE",data:{draft_key:e,sequence:t}}),get:e=>(0,i.ajax)(`/drafts/${e}.json`),getLocal:(e,t)=>t,save(e,t,n,r){let{forceSave:o=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}
return n="string"==typeof n?n:JSON.stringify(n),(0,i.ajax)("/drafts.json",{type:"POST",data:{draft_key:e,sequence:t,data:n,owner:r,force_save:o},ignoreUnsent:!1})}})
var r=n
e.default=r})),define("discourse/models/form-template",["exports","discourse/lib/ajax","discourse/models/rest"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends i.default{static async findAll(){return(await(0,t.ajax)("/form-templates.json")).form_templates}static async findById(e){return await(0,t.ajax)(`/form-templates/${e}.json`)}}e.default=n})),define("discourse/models/group-history",["exports","I18n","discourse/models/rest","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=i.default.extend((r=(0,n.default)("action"),s=o={actionTitle:e=>t.default.t(`group_histories.actions.${e}`)},l="actionTitle",a=[r],u=Object.getOwnPropertyDescriptor(o,"actionTitle"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/models/group",["exports","discourse-common/utils/decorators","discourse/models/category","@ember/object","discourse/models/group-history","rsvp","discourse/models/rest","discourse/models/topic","discourse/models/user","discourse/lib/ajax","@ember/object/computed","@ember/utils"],(function(e,t,i,n,r,o,s,l,a,u,c,d){var p,m,h,f,g,b,y,_,v,w,k,x,P,O
function T(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const S=s.default.extend((p=(0,t.default)("automatic_membership_email_domains"),m=(0,t.default)("associated_group_ids"),h=(0,t.default)("automatic"),f=(0,t.default)("display_name","name"),g=(0,t.default)("flair_bg_color"),b=(0,t.default)("flair_color"),y=(0,t.default)("visibility_level"),_=(0,t.observes)("isPrivate","canEveryoneMention"),v=(0,t.default)("watching_category_ids"),w=(0,t.default)("tracking_category_ids"),k=(0,t.default)("watching_first_post_category_ids"),x=(0,t.default)("regular_category_ids"),P=(0,t.default)("muted_category_ids"),O={user_count:0,limit:null,offset:null,request_count:0,requestersLimit:null,requestersOffset:null,init(){this._super(...arguments),this.setProperties({members:[],requesters:[]})},emailDomains:e=>(0,d.isEmpty)(e)?"":e,associatedGroupIds:e=>(0,d.isEmpty)(e)?[]:e,type:e=>e?"automatic":"custom",async reloadMembers(e,t){if((0,d.isEmpty)(this.name)||!this.can_see_members)return
t&&this.setProperties({limit:null,offset:null}),e=Object.assign({offset:(this.offset||0)+(this.limit||0)},e)
const i=await S.loadMembers(this.name,e),n=new Set
i.owners.forEach((e=>n.add(e.id)))
const r=t?[]:this.members
r.pushObjects(i.members.map((e=>(e.owner=n.has(e.id),e.primary=e.primary_group_name===this.name,a.default.create(e))))),this.setProperties({members:r,user_count:i.meta.total,limit:i.meta.limit,offset:i.meta.offset})},findRequesters(e,t){return(0,d.isEmpty)(this.name)||!this.can_see_members?o.Promise.reject():(t&&this.setProperties({requestersOffset:null,requestersLimit:null}),e=Object.assign({offset:(this.requestersOffset||0)+(this.requestersLimit||0),requesters:!0},e),S.loadMembers(this.name,e).then((e=>{const i=t?[]:this.requesters
i.pushObjects(e.members.map((e=>a.default.create(e)))),this.setProperties({requesters:i,request_count:e.meta.total,requestersLimit:e.meta.limit,requestersOffset:e.meta.offset})})))},async removeOwner(e){await(0,u.ajax)(`/admin/groups/${this.id}/owners.json`,{type:"DELETE",data:{user_id:e.id}}),await this.reloadMembers({},!0)},async removeMember(e,t){await(0,u.ajax)(`/groups/${this.id}/members.json`,{type:"DELETE",data:{user_id:e.id}}),await this.reloadMembers(t,!0)},async leave(){await(0,u.ajax)(`/groups/${this.id}/leave.json`,{type:"DELETE"}),this.set("can_see_members",this.members_visibility_level<2),await this.reloadMembers({},!0)},async addMembers(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]
const r=await(0,u.ajax)(`/groups/${this.id}/members.json`,{type:"PUT",data:{usernames:e,emails:n,notify_users:i}})
t?await this._filterMembers(r.usernames):await this.reloadMembers()},async join(){await(0,u.ajax)(`/groups/${this.id}/join.json`,{type:"PUT"}),await this.reloadMembers({},!0)},async addOwners(e,t,i){const n=await(0,u.ajax)(`/groups/${this.id}/owners.json`,{type:"PUT",data:{usernames:e,notify_users:i}})
t?await this._filterMembers(n.usernames):await this.reloadMembers({},!0)},_filterMembers(e){return this.reloadMembers({filter:e.join(",")})},displayName:(e,t)=>e||t,flairBackgroundHexColor:e=>e?e.replace(new RegExp("[^0-9a-fA-F]","g"),""):null,flairHexColor:e=>e?e.replace(new RegExp("[^0-9a-fA-F]","g"),""):null,canEveryoneMention:(0,c.equal)("mentionable_level",99),isPrivate:e=>e>1,_updateAllowMembershipRequests(){!this.isPrivate&&this.canEveryoneMention||this.set("allow_membership_requests",!1)},watchingCategories:e=>i.default.findByIds(e),trackingCategories:e=>i.default.findByIds(e),watchingFirstPostCategories:e=>i.default.findByIds(e),regularCategories:e=>i.default.findByIds(e),mutedCategories:e=>i.default.findByIds(e),asJSON(){const e={name:this.name,mentionable_level:this.mentionable_level,messageable_level:this.messageable_level,visibility_level:this.visibility_level,members_visibility_level:this.members_visibility_level,automatic_membership_email_domains:this.emailDomains,title:this.title,primary_group:!!this.primary_group,grant_trust_level:this.grant_trust_level,incoming_email:this.incoming_email,smtp_server:this.smtp_server,smtp_port:this.smtp_port,smtp_ssl:this.smtp_ssl,smtp_enabled:this.smtp_enabled,imap_server:this.imap_server,imap_port:this.imap_port,imap_ssl:this.imap_ssl,imap_mailbox_name:this.imap_mailbox_name,imap_enabled:this.imap_enabled,email_username:this.email_username,email_from_alias:this.email_from_alias,email_password:this.email_password,flair_icon:null,flair_upload_id:null,flair_bg_color:this.flairBackgroundHexColor,flair_color:this.flairHexColor,bio_raw:this.bio_raw,public_admission:this.public_admission,public_exit:this.public_exit,allow_membership_requests:this.allow_membership_requests,full_name:this.full_name,default_notification_level:this.default_notification_level,membership_request_template:this.membership_request_template,publish_read_state:this.publish_read_state,allow_unknown_sender_topic_replies:this.allow_unknown_sender_topic_replies};["muted","regular","watching","tracking","watching_first_post"].forEach((t=>{let i="watching_first_post"===t?"watchingFirstPostCategories":t+"Categories",n=this.get(i)
n&&(e[t+"_category_ids"]=n.length>0?n.map((e=>e.get("id"))):[-1])
let r=this.get(t+"_tags")
r&&(e[t+"_tags"]=r.length>0?r:[""])}))
let t=this.associated_group_ids
return t&&(e.associated_group_ids=t.length?t:[null]),"icon"===this.flair_type?e.flair_icon=this.flair_icon:"image"===this.flair_type&&(e.flair_upload_id=this.flair_upload_id),this.id||(e.usernames=this.usernames,e.owner_usernames=this.ownerUsernames),e},async create(){const e=await(0,u.ajax)("/admin/groups",{type:"POST",data:{group:this.asJSON()}})
this.setProperties({id:e.basic_group.id,usernames:null,ownerUsernames:null}),await this.reloadMembers()},save(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return(0,u.ajax)(`/groups/${this.id}`,{type:"PUT",data:Object.assign({group:this.asJSON()},e)})},destroy(){if(this.id)return(0,u.ajax)(`/admin/groups/${this.id}`,{type:"DELETE"})},findLogs(e,t){return(0,u.ajax)(`/groups/${this.name}/logs.json`,{data:{offset:e,filters:t}}).then((e=>n.default.create({logs:e.logs.map((e=>r.default.create(e))),all_loaded:e.all_loaded})))},findPosts(e){const t=(e=e||{}).type||"posts",r={}
return e.beforePostId&&(r.before_post_id=e.beforePostId),e.categoryId&&(r.category_id=parseInt(e.categoryId,10)),(0,u.ajax)(`/groups/${this.name}/${t}.json`,{data:r}).then((e=>e.map((e=>(e.user=a.default.create(e.user),e.topic=l.default.create(e.topic),e.category=i.default.findById(e.category_id),n.default.create(e))))))},setNotification(e,t){return this.set("group_user.notification_level",e),(0,u.ajax)(`/groups/${this.name}/notifications`,{data:{notification_level:e,user_id:t},type:"POST"})},requestMembership(e){return(0,u.ajax)(`/groups/${this.name}/request_membership.json`,{type:"POST",data:{reason:e}})}},T(O,"emailDomains",[p],Object.getOwnPropertyDescriptor(O,"emailDomains"),O),T(O,"associatedGroupIds",[m],Object.getOwnPropertyDescriptor(O,"associatedGroupIds"),O),T(O,"type",[h],Object.getOwnPropertyDescriptor(O,"type"),O),T(O,"displayName",[f],Object.getOwnPropertyDescriptor(O,"displayName"),O),T(O,"flairBackgroundHexColor",[g],Object.getOwnPropertyDescriptor(O,"flairBackgroundHexColor"),O),T(O,"flairHexColor",[b],Object.getOwnPropertyDescriptor(O,"flairHexColor"),O),T(O,"isPrivate",[y],Object.getOwnPropertyDescriptor(O,"isPrivate"),O),T(O,"_updateAllowMembershipRequests",[_],Object.getOwnPropertyDescriptor(O,"_updateAllowMembershipRequests"),O),T(O,"watchingCategories",[v],Object.getOwnPropertyDescriptor(O,"watchingCategories"),O),T(O,"trackingCategories",[w],Object.getOwnPropertyDescriptor(O,"trackingCategories"),O),T(O,"watchingFirstPostCategories",[k],Object.getOwnPropertyDescriptor(O,"watchingFirstPostCategories"),O),T(O,"regularCategories",[x],Object.getOwnPropertyDescriptor(O,"regularCategories"),O),T(O,"mutedCategories",[P],Object.getOwnPropertyDescriptor(O,"mutedCategories"),O),O))
S.reopenClass({findAll:e=>(0,u.ajax)("/groups/search.json",{data:e}).then((e=>e.map((e=>S.create(e))))),loadMembers:(e,t)=>(0,u.ajax)(`/groups/${e}/members.json`,{data:t}),mentionable:e=>(0,u.ajax)(`/groups/${e}/mentionable`),messageable:e=>(0,u.ajax)(`/groups/${e}/messageable`),checkName:e=>(0,u.ajax)("/groups/check-name",{data:{group_name:e}})})
var j=S
e.default=j})),define("discourse/models/invite",["exports","@ember/object","@ember/object/computed","rsvp","discourse-common/utils/decorators","discourse/models/topic","discourse/models/user","discourse/lib/ajax","@ember/utils","discourse/lib/ajax-error","discourse/lib/url"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p,m,h,f
function g(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=t.default.extend((d=(0,r.default)("invite_key"),p=(0,r.default)("groups"),m=(0,r.default)("topics.firstObject"),h=(0,r.default)("email","domain"),g(f={save(e){return(this.id?(0,l.ajax)(`/invites/${this.id}`,{type:"PUT",data:e}):(0,l.ajax)("/invites",{type:"POST",data:e})).then((e=>this.setProperties(e)))},destroy(){return(0,l.ajax)("/invites",{type:"DELETE",data:{id:this.id}}).then((()=>this.set("destroyed",!0)))},reinvite(){return(0,l.ajax)("/invites/reinvite",{type:"POST",data:{email:this.email}}).then((()=>this.set("reinvited",!0))).catch(u.popupAjaxError)},shortKey:e=>e.slice(0,4)+"...",groupIds:e=>e?e.map((e=>e.id)):[],topic:e=>e?o.default.create(e):null,emailOrDomain:(e,t)=>e||t,topicId:(0,i.alias)("topics.firstObject.id"),topicTitle:(0,i.alias)("topics.firstObject.title")},"shortKey",[d],Object.getOwnPropertyDescriptor(f,"shortKey"),f),g(f,"groupIds",[p],Object.getOwnPropertyDescriptor(f,"groupIds"),f),g(f,"topic",[m],Object.getOwnPropertyDescriptor(f,"topic"),f),g(f,"emailOrDomain",[h],Object.getOwnPropertyDescriptor(f,"emailOrDomain"),f),f))
b.reopenClass({create(){const e=this._super.apply(this,arguments)
return e.user&&(e.user=s.default.create(e.user)),e},findInvitedBy(e,i,r,o){e||n.Promise.resolve()
const s={}
return(0,a.isNone)(i)||(s.filter=i),(0,a.isNone)(r)||(s.search=r),s.offset=o||0,(0,l.ajax)((0,c.userPath)(`${e.username_lower}/invited.json`),{data:s}).then((e=>(e.invites=e.invites.map((e=>b.create(e))),t.default.create(e))))},reinviteAll:()=>(0,l.ajax)("/invites/reinvite-all",{type:"POST"}),destroyAllExpired:()=>(0,l.ajax)("/invites/destroy-all-expired",{type:"POST"})})
var y=b
e.default=y})),define("discourse/models/live-post-counts",["exports","@ember/object","discourse/lib/ajax"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=t.default.extend({})
n.reopenClass({find:()=>(0,i.ajax)("/about/live_post_counts.json").then((e=>n.create(e)))})
var r=n
e.default=r})),define("discourse/models/login-method",["exports","@ember/object","I18n","rsvp","discourse/models/session","discourse/models/site","discourse-common/utils/decorators","discourse-common/lib/get-url","discourse/lib/ajax"],(function(e,t,i,n,r,o,s,l,a){var u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.clearAuthMethods=function(){p=void 0},e.default=void 0,e.findAll=function(){if(p)return p
return p=o.default.currentProp("auth_providers").map((e=>d.create(e))),p.forEach((e=>e.set("isGoogle","google_oauth2"===e.name))),p}
const d=t.default.extend((u={title(){return this.title_override||i.default.t(`login.${this.name}.title`)},screenReaderTitle(){return this.title_override||i.default.t(`login.${this.name}.sr_title`,{defaultValue:this.title})},prettyName(){return this.pretty_name_override||i.default.t(`login.${this.name}.name`)},doLogin(){let{reconnect:e=!1,signup:t=!1,params:i={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if(this.customLogin)return this.customLogin(),n.Promise.resolve()
if(this.custom_url)return window.location=this.custom_url,n.Promise.resolve()
let r=(0,l.default)(`/auth/${this.name}`)
e&&(i.reconnect=!0),t&&(i.signup=!0)
const o=Object.keys(i)
return o.length>0&&(r+="?",r+=o.map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(i[e])}`)).join("&")),d.buildPostForm(r).then((e=>e.submit()))}},c(u,"title",[s.default],Object.getOwnPropertyDescriptor(u,"title"),u),c(u,"screenReaderTitle",[s.default],Object.getOwnPropertyDescriptor(u,"screenReaderTitle"),u),c(u,"prettyName",[s.default],Object.getOwnPropertyDescriptor(u,"prettyName"),u),u))
let p
d.reopenClass({buildPostForm:e=>(0,a.updateCsrfToken)().then((()=>{const t=document.createElement("form")
t.setAttribute("style","display:none;"),t.setAttribute("method","post"),t.setAttribute("action",e)
const i=document.createElement("input")
return i.setAttribute("name","authenticity_token"),i.setAttribute("value",r.default.currentProp("csrfToken")),t.appendChild(i),document.body.appendChild(t),t}))})
var m=d
e.default=m})),define("discourse/models/nav-item",["exports","discourse/models/category","@ember/object","I18n","discourse/models/site","discourse/models/user","discourse-common/lib/object","discourse-common/lib/deprecated","discourse-common/utils/decorators","discourse/lib/text","discourse-common/lib/get-owner","discourse/lib/topic-list-tracked-filter","discourse-common/lib/get-url","@ember/object/computed"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h,f,g,b,y,_,v,w
function k(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addNavItem=function(e){x.extraNavItemDescriptors.push(e)},e.clearNavItems=function(){x.customNavItemHrefs.clear(),x.extraArgsCallbacks.clear(),x.extraNavItemDescriptors.clear()},e.customNavItemHref=function(e){x.customNavItemHrefs.push(e)},e.default=void 0,e.extraNavItemProperties=function(e){x.extraArgsCallbacks.push(e)}
const x=i.default.extend((h=(0,a.default)("name"),f=(0,a.default)("name","count"),g=(0,a.default)("filterType","category","noSubcategories","tagId"),b=(0,a.default)("name","category","noSubcategories"),y=(0,a.default)("name","category","tagId","noSubcategories","currentRouteQueryParams","topicTrackingState.messageCount"),k(_={title:{get(e){return this._title?this._title:n.default.t("filters."+e.replace("/",".")+".help",{})},set(e){return this.set("_title",e)}},displayName:{get(e,t){if(this._displayName)return this._displayName
t=t||0,"latest"!==e||r.default.currentProp("mobileView")&&void 0===this.tagId||(t=0)
let i={count:t}
const o=0===t?".title":".title_with_count"
return(0,u.emojiUnescape)(n.default.t(`filters.${e.replace("/",".")+o}`,i))},set(e){return this.set("_displayName",e)}},href(e,t,i,n){let r=null
if(x.customNavItemHrefs.forEach((function(e){if(r=e.call(this,this),r)return!1}),this),r)return(0,p.default)(r)
const o={category:t,noSubcategories:i,tagId:n}
return x.pathFor(e,o)},filterType:(0,m.reads)("name"),filterMode(e,i,n){let r=""
return i&&(r+="c/",r+=t.default.slugFor(i),n&&(r+="/none"),r+="/l/"),r+e.replace(" ","-")},count(e,t,i,n,r){const o=this.topicTrackingState
if(o)return o.lookupCount({type:e,category:t,tagId:i,noSubcategories:n,customFilterFn:(0,d.hasTrackedFilter)(r)?d.isTrackedTopic:void 0})}},"title",[h],(v=(v=Object.getOwnPropertyDescriptor(_,"title"))?v.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return v}}),_),k(_,"displayName",[f],(w=(w=Object.getOwnPropertyDescriptor(_,"displayName"))?w.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return w}}),_),k(_,"href",[g],Object.getOwnPropertyDescriptor(_,"href"),_),k(_,"filterMode",[b],Object.getOwnPropertyDescriptor(_,"filterMode"),_),k(_,"count",[y],Object.getOwnPropertyDescriptor(_,"count"),_),_)),P=x.extend({href:(0,a.default)("href",{get(){return this._href?this._href:this.href},set(e,t){return this._href=t}}),count:0,customFilter:null})
x.reopenClass({extraArgsCallbacks:[],customNavItemHrefs:[],extraNavItemDescriptors:[],pathFor(e,i){let n=(0,p.default)(""),o=!1,s=!1
return"categories"===e?(n+="/categories",n):(i.tagId&&r.default.currentProp("filters").includes(e)&&(s=!0,i.category?n+="/tags":n+="/tag"),i.category&&(o=!0,n+=`/c/${t.default.slugFor(i.category)}/${i.category.id}`,i.noSubcategories&&(n+="/none")),s&&(n+=`/${i.tagId}`),(s||o)&&(n+="/l"),n+=`/${e}`,n)},fromText(e,i){const n=!o.default.current()
if(i=i||{},n){const t=r.default.currentProp("anonymous_top_menu_items")
if(!t||!t.includes(e))return null}if(!t.default.list()&&"categories"===e)return null
if(!r.default.currentProp("top_menu_items").includes(e))return null
let l={name:e,hasIcon:"unread"===e}
return i.category&&(l.category=i.category),i.tagId&&(l.tagId=i.tagId),i.currentRouteQueryParams&&(l.currentRouteQueryParams=i.currentRouteQueryParams),i.noSubcategories&&(l.noSubcategories=!0),x.extraArgsCallbacks.forEach((t=>(0,s.deepMerge)(l,t.call(this,e,i)))),(0,c.getOwner)(this).lookup("service:store").createRecord("nav-item",l)},buildList(e,t){t=t||{},e&&(t.category=e),t.siteSettings||((0,l.default)("You must supply `buildList` with a `siteSettings` object",{since:"2.6.0",dropFrom:"2.7.0",id:"discourse.nav-item.built-list-site-settings"}),t.siteSettings=(0,c.getOwner)(this).lookup("service:site-settings"))
let i=t.siteSettings.top_menu.split("|")
const n=(0,c.getOwner)(this).lookup("service:current-user")
n?.new_new_view_enabled&&(i=i.reject((e=>"unread"===e)))
const r=(t.filterMode||"").split("/").pop()
i.some((e=>r===e))||i.push(r),i=i.map((e=>x.fromText(e,t))).filter((i=>null!==i&&(!e&&!t.skipCategoriesNavItem||!i.name.startsWith("categor"))))
const o={category:t.category,tagId:t.tagId,noSubcategories:t.noSubcategories},a=x.extraNavItemDescriptors.map((e=>P.create((0,s.deepMerge)({},o,e)))).filter((i=>!i.customFilter||i.customFilter(e,t)))
let u=!1
return a.forEach((n=>{n.init&&n.init(n,e,t),n.href&&(n.href=(0,p.default)(n.href))
const r=n.before
if(r){let e=0
for(e=0;e<i.length&&i[e].name!==r;e++);i.splice(e,0,n)}else i.push(n)
n.customHref&&n.set("href",n.customHref(e,t)),n.forceActive&&n.forceActive(e,t)?(n.active=!0,u=!0):n.active=void 0})),u&&i.forEach((e=>{void 0===e.active&&(e.active=!1)})),i}})
var O=x
e.default=O})),define("discourse/models/notification",["exports","discourse/models/rest","@glimmer/tracking","discourse/lib/model-transformers"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let s=(r=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="read",n=this,(i=o)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}static async applyTransformations(e){await(0,n.applyModelTransformations)("notification",e)}static async initializeNotifications(e){const t=e.map((e=>this.create(e)))
return await this.applyTransformations(t),t}},l=r.prototype,a="read",u=[i.tracked],c={configurable:!0,enumerable:!0,writable:!0,initializer:null},p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o=p,r)
var l,a,u,c,d,p
e.default=s})),define("discourse/models/pending-post",["exports","discourse-common/utils/decorators","discourse/models/rest","discourse-common/utils/category-macro","discourse/lib/url","@ember/object/computed","discourse/lib/text"],(function(e,t,i,n,r,o,s){var l,a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=i.default.extend((l=(0,t.default)("username"),a={expandedExcerpt:null,postUrl:(0,o.reads)("topic_url"),truncated:!1,init(){this._super(...arguments),(0,s.cookAsync)(this.raw_text).then((e=>{this.set("expandedExcerpt",e)}))},userUrl:e=>(0,r.userPath)(e.toLowerCase()),category:(0,n.default)("category_id")},c=a,d="userUrl",p=[l],m=Object.getOwnPropertyDescriptor(a,"userUrl"),h=a,f={},Object.keys(m).forEach((function(e){f[e]=m[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),f),h&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(h):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(c,d,f),f=null),a))
var c,d,p,m,h,f,g=u
e.default=g})),define("discourse/models/permission-type",["exports","@ember/object","I18n","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
function s(e){return i.default.t("permission_types."+l.DESCRIPTION_KEYS[e])}Object.defineProperty(e,"__esModule",{value:!0}),e.buildPermissionDescription=s,e.default=void 0
const l=t.default.extend((r=(0,n.default)("id"),a=o={description:e=>s(e)},u="description",c=[r],d=Object.getOwnPropertyDescriptor(o,"description"),p=o,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),o))
var a,u,c,d,p,m
l.FULL=1,l.CREATE_POST=2,l.READONLY=3,l.DESCRIPTION_KEYS={1:"full",2:"create_post",3:"readonly"}
var h=l
e.default=h})),define("discourse/models/post-action-type",["exports","discourse/models/rest","@ember/object/computed"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.MAX_MESSAGE_LENGTH=void 0
e.MAX_MESSAGE_LENGTH=500
var n=t.default.extend({notCustomFlag:(0,i.not)("is_custom_flag")})
e.default=n})),define("discourse/models/post-stream",["exports","@ember/object/computed","discourse/lib/url","I18n","discourse/lib/posts-with-placeholders","rsvp","discourse/models/rest","discourse/models/user","discourse/lib/ajax","discourse-common/lib/object","discourse-common/lib/deprecated","discourse-common/utils/decorators","@ember/object","discourse/lib/utilities","@ember/utils","discourse/models/topic","@ember/runloop"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g){var b,y,_,v,w,k,x,P,O,T,S
function j(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.resetLastEditNotificationClick=z,e.setLastEditNotificationClick=function(e,t,i){C={topicId:e,postNumber:t,revisionNumber:i}}
let C=null
function z(){C=null}var I=s.default.extend((b=(0,d.default)("isMegaTopic","stream.length","topic.highest_post_number"),y=(0,d.default)("posts.[]"),_=(0,d.default)("hasPosts","filteredPostsCount"),v=(0,d.default)("hasLoadedData","posts.[]"),w=(0,d.default)("isMegaTopic","stream.lastObject","lastId"),k=(0,d.default)("hasLoadedData","lastPostId","posts.@each.id"),x=(0,d.default)("filter","userFilters.[]","filterRepliesToPostNumber","filterUpwardsPostID"),P=(0,d.default)("streamFilters.[]","topic.posts_count","posts.length"),O=(0,d.default)("posts.[]","stream.[]"),T=(0,d.default)("posts.lastObject","stream.[]"),j(S={_identityMap:null,posts:null,stream:null,userFilters:null,loaded:null,loadingAbove:null,loadingBelow:null,loadingFilter:null,loadingNearPost:null,stagingPost:null,postsWithPlaceholders:null,timelineLookup:null,filterRepliesToPostNumber:null,filterUpwardsPostID:null,filter:null,init(){this._identityMap={}
const e=[],t=r.default.create({posts:e,store:this.store})
this.setProperties({posts:e,postsWithPlaceholders:t,stream:[],userFilters:[],filterRepliesToPostNumber:parseInt(this.get("topic.replies_to_post_number"),10)||!1,filterUpwardsPostID:!1,loaded:!1,loadingAbove:!1,loadingBelow:!1,loadingFilter:!1,stagingPost:!1,timelineLookup:[]})},loading:(0,t.or)("loadingAbove","loadingBelow","loadingFilter","stagingPost"),notLoading:(0,t.not)("loading"),summary:(0,t.equal)("filter","summary"),filteredPostsCount:(e,t,i)=>e?i:t,hasPosts(){return this.get("posts.length")>0},hasLoadedData:(e,t)=>e&&t>0,canAppendMore:(0,t.and)("notLoading","hasPosts","lastPostNotLoaded"),canPrependMore:(0,t.and)("notLoading","hasPosts","firstPostNotLoaded"),firstPostPresent(e){return!!e&&!!this.posts.findBy("post_number",1)},firstPostNotLoaded:(0,t.not)("firstPostPresent"),lastId:null,lastPostId:(e,t,i)=>e?i:t,loadedAllPosts(e,t){return!!e&&(-1===t||!!this.posts.findBy("id",t))},lastPostNotLoaded:(0,t.not)("loadedAllPosts"),streamFilters(){const e={}
this.filter&&(e.filter=this.filter)
const t=this.userFilters
return(0,h.isEmpty)(t)||(e.username_filters=t.join(",")),this.filterRepliesToPostNumber&&(e.replies_to_post_number=this.filterRepliesToPostNumber),this.filterUpwardsPostID&&(e.filter_upwards_post_id=this.filterUpwardsPostID),e},hasNoFilters(){const e=this.streamFilters
return!(e&&("summary"===e.filter||e.username_filters))},previousWindow(){if(!this.posts)return[]
const e=this.posts[0]
if(!e)return[]
const t=this.stream,i=this.indexOf(e)
if(-1===i)return[]
let n=i-this.get("topic.chunk_size")
return n<0&&(n=0),t.slice(n,i)},nextWindow(e){if(!e)return[]
const t=this.stream,i=this.indexOf(e)
return-1===i||i+1>=this.highest_post_number?[]:t.slice(i+1,i+this.get("topic.chunk_size")+1)},cancelFilter(){this.setProperties({userFilters:[],filterRepliesToPostNumber:!1,filterUpwardsPostID:!1,mixedHiddenPosts:!1,filter:null})},refreshAndJumpToSecondVisible(){return this.refresh({}).then((()=>{this.posts&&this.posts.length>1&&i.default.jumpToPost(this.posts[1].get("post_number"))}))},showTopReplies(){return this.cancelFilter(),this.set("filter","summary"),this.refreshAndJumpToSecondVisible()},filterParticipant(e){return this.cancelFilter(),this.userFilters.addObject(e),this.refreshAndJumpToSecondVisible()},filterReplies(e,t){return this.cancelFilter(),this.set("filterRepliesToPostNumber",e),this.appEvents.trigger("post-stream:filter-replies",{topic_id:this.get("topic.id"),post_number:e,post_id:t}),this.refresh({refreshInPlace:!0}).then((()=>{const t=document.querySelector(`#post_${e}`),n=t?t.getBoundingClientRect().top:null
this.appEvents.trigger("post-stream:refresh"),i.default.jumpToPost(e,{originalTopOffset:n}),(0,g.schedule)("afterRender",(()=>{(0,m.highlightPost)(e)}))}))},filterUpwards(e){return this.cancelFilter(),this.set("filterUpwardsPostID",e),this.appEvents.trigger("post-stream:filter-upwards",{topic_id:this.get("topic.id"),post_id:e}),this.refresh({refreshInPlace:!0}).then((()=>{if(this.appEvents.trigger("post-stream:refresh"),this.posts&&this.posts.length>1){const e=this.posts[1].get("post_number")
i.default.jumpToPost(e,{skipIfOnScreen:!0}),(0,g.schedule)("afterRender",(()=>{(0,m.highlightPost)(e)}))}}))},refresh(e){(e=e||{}).nearPost=parseInt(e.nearPost,10),e.cancelFilter&&(this.cancelFilter(),delete e.cancelFilter)
const t=this.topic
if(e.forceLoad)this.set("loaded",!1)
else{if(this.posts.findBy("post_number",e.nearPost))return o.Promise.resolve().then((()=>this._checkIfShouldShowRevisions()))}return e.refreshInPlace||this.set("loadingFilter",!0),this.set("loadingNearPost",e.nearPost),e=(0,u.deepMerge)(e,this.streamFilters),(0,f.loadTopicView)(t,e).then((e=>{this.updateFromJson(e.post_stream),this.setProperties({loadingFilter:!1,timelineLookup:e.timeline_lookup,loaded:!0}),this._checkIfShouldShowRevisions(),t.setProperties({errorLoading:!1,errorTitle:null,errorHtml:null,errorMessage:null,noRetry:!1})})).catch((e=>{throw this.errorLoading(e),new Error(e)})).finally((()=>{this.set("loadingNearPost",null)}))},fillGapBefore(e,t){const i=e.get("id"),n=this.stream,r=n.indexOf(i),s=this.posts
if(-1!==r){let o=s.indexOf(e)
const l=o
let a=t.slice(0,this.topic.chunk_size),u=t.slice(this.topic.chunk_size)
if(n.splice.apply(n,[r,0].concat(a)),-1!==o)return this.findPostsByIds(a).then((t=>{t.forEach((e=>{this._initUserModels(e)
const t=this.storePost(e)
s.includes(t)||s.insertAt(o++,t)})),u.length>0?this.get("gaps.before")[i]=u:delete this.get("gaps.before")[i],this.postsWithPlaceholders.arrayContentDidChange(l,0,t.length),e.set("hasGap",!1),this.gapExpanded()}))}return o.Promise.resolve()},fillGapAfter(e,t){const i=e.get("id"),n=this.stream
return-1!==n.indexOf(i)?(n.pushObjects(t),this.appendMore().then((()=>{delete this.get("gaps.after")[i],this.gapExpanded()}))):o.Promise.resolve()},gapExpanded(){this.appEvents.trigger("post-stream:refresh"),this.streamFilters&&this.streamFilters.replies_to_post_number&&this.set("streamFilters.mixedHiddenPosts",!0)},appendMore(){if(!this.canAppendMore)return o.Promise.resolve()
const e=this.postsWithPlaceholders
if(this.isMegaTopic){this.set("loadingBelow",!0)
const t=[...Array(this.get("topic.chunk_size")-1).keys()].map((e=>-e-1))
return e.appending(t),this.fetchNextWindow(this.get("posts.lastObject.post_number"),!0,(e=>{this.appendPost(e)})).finally((()=>{e.finishedAppending(t),this.set("loadingBelow",!1)}))}{const t=this.nextWindow
return(0,h.isEmpty)(t)?o.Promise.resolve():(this.set("loadingBelow",!0),e.appending(t),this.findPostsByIds(t).then((e=>(e.forEach((e=>this.appendPost(e))),e))).finally((()=>{e.finishedAppending(t),this.set("loadingBelow",!1)})))}},prependMore(){if(!this.canPrependMore)return o.Promise.resolve()
if(this.isMegaTopic){this.set("loadingAbove",!0)
let e=[]
return this.fetchNextWindow(this.get("posts.firstObject.post_number"),!1,(t=>{this.prependPost(t),e.push(t.get("id"))})).finally((()=>{this.postsWithPlaceholders.finishedPrepending(e),this.set("loadingAbove",!1)}))}{const e=this.previousWindow
return(0,h.isEmpty)(e)?o.Promise.resolve():(this.set("loadingAbove",!0),this.findPostsByIds(e.reverse()).then((e=>{e.forEach((e=>this.prependPost(e)))})).finally((()=>{this.postsWithPlaceholders.finishedPrepending(e),this.set("loadingAbove",!1)})))}},stagePost(e,t){if(this.stagingPost)return"alreadyStaging"
this.set("stagingPost",!0)
const i=this.topic
return i.setProperties({posts_count:(i.get("posts_count")||0)+1,last_posted_at:new Date,"details.last_poster":t,highest_post_number:(i.get("highest_post_number")||0)+1}),e.setProperties({post_number:i.get("highest_post_number"),topic:i,created_at:new Date,id:-1}),this.loadedAllPosts?(this.appendPost(e),this.stream.addObject(e.get("id")),"staged"):"offScreen"},commitPost(e){this.get("topic.id")===e.get("topic_id")&&this.loadedAllPosts&&(this.appendPost(e),this.stream.addObject(e.get("id"))),this.stream.removeObject(-1),this._identityMap[-1]=null,this.set("stagingPost",!1)},undoPost(e){this.stream.removeObject(-1),this.postsWithPlaceholders.removePost((()=>this.posts.removeObject(e))),this._identityMap[-1]=null
const t=this.topic
this.set("stagingPost",!1),t.setProperties({highest_post_number:(t.get("highest_post_number")||0)-1,posts_count:(t.get("posts_count")||0)-1})},prependPost(e){this._initUserModels(e)
const t=this.storePost(e)
if(t){this.posts.unshiftObject(t)}return e},appendPost(e){this._initUserModels(e)
const t=this.storePost(e)
if(t){const e=this.posts
e.includes(t)||(this.loadingBelow?e.pushObject(t):this.postsWithPlaceholders.appendPost((()=>e.pushObject(t)))),-1!==t.get("id")&&this.set("lastAppended",t)}return e},removePosts(e){(0,h.isEmpty)(e)||this.postsWithPlaceholders.refreshAll((()=>{const t=this.posts,i=e.map((e=>e.get("id"))),n=this._identityMap
this.stream.removeObjects(i),t.removeObjects(e),i.forEach((e=>delete n[e]))}))},findLoadedPost(e){return this._identityMap[e]},loadPostByPostNumber(e){const t=`/posts/by_number/${this.get("topic.id")}/${e}`,i=this.store
return(0,a.ajax)(t).then((e=>this.storePost(i.createRecord("post",e))))},loadNearestPostToDate(e){const t=`/posts/by-date/${this.get("topic.id")}/${e}`,i=this.store
return(0,a.ajax)(t).then((e=>this.storePost(i.createRecord("post",e))))},loadPost(e){const t="/posts/"+e,i=this.store,n=this._identityMap[e]
return(0,a.ajax)(t).then((e=>(n&&(e.cooked=n.cooked),this.storePost(i.createRecord("post",e)))))},triggerNewPostInStream(e,t){return(0,c.default)("Please use triggerNewPostsInStream, this method will be removed July 2021",{id:"discourse.post-stream.trigger-new-post"}),this.triggerNewPostsInStream([e],t)},triggerNewPostsInStream(e,t){const i=o.Promise.resolve()
if(!e||0===e.length)return i
if(!this.hasNoFilters)return i
const n=this.loadedAllPosts
this._loadingPostIds=this._loadingPostIds||[]
let r=[]
return e.forEach((e=>{e&&!this.stream.includes(e)&&r.push(e)})),0===r.length?i:n?(r.forEach((e=>{this._loadingPostIds.includes(e)||this._loadingPostIds.push(e)})),this.set("loadingLastPost",!0),this.findPostsByIds(this._loadingPostIds,t).then((e=>{this._loadingPostIds=null
const t=l.default.current()&&l.default.current().get("ignored_users")
e.forEach((e=>{t&&t.includes(e.username)?this.stream.removeObject(e.id):(this.stream.addObject(e.id),this.appendPost(e))}))})).finally((()=>{this.set("loadingLastPost",!1)}))):(r.forEach((e=>this.stream.addObject(e))),i)},triggerRecoveredPost(e){if(this._identityMap[e])return this.triggerChangedPost(e,new Date)
{const t=`/posts/${e}`,i=this.store
return(0,a.ajax)(t).then((e=>{const t=i.createRecord("post",e),n=this.stream,r=this.posts
this.storePost(t)
let o=0
n.forEach((t=>{t<e.id&&(o+=1)})),n.insertAt(o,e.id),o=0,r.forEach((t=>{t.id<e.id&&(o+=1)})),o<r.length?this.postsWithPlaceholders.refreshAll((()=>{r.insertAt(o,t)})):t.post_number<r[r.length-1].post_number+5&&this.appendMore()}))}},triggerDeletedPost(e){const t=this._identityMap[e]
if(t&&!t.deleted_at){const i="/posts/"+e,n=this.store
return(0,a.ajax)(i).then((e=>{this.storePost(n.createRecord("post",e))})).catch((()=>{this.removePosts([t])}))}return o.Promise.resolve()},triggerDestroyedPost(e){const t=this._identityMap[e]
return this.removePosts([t]),o.Promise.resolve()},triggerChangedPost(e,t,i){i=i||{}
const n=o.Promise.resolve()
if(!e)return n
const r=this._identityMap[e]
if(r&&r.updated_at!==t){const t="/posts/"+e,n=this.store
return(0,a.ajax)(t).then((e=>{i.preserveCooked&&(e.cooked=r.get("cooked")),this.storePost(n.createRecord("post",e))}))}return n},triggerLikedPost(e,t,i,n){const r=o.Promise.resolve(),s=this.findLoadedPost(e)
return s&&(s.updateLikeCount(t,i,n),this.storePost(s)),r},triggerReadPost(e,t){const i=o.Promise.resolve()
return i.then((()=>{const i=this.findLoadedPost(e)
i&&t>i.readers_count&&(i.set("readers_count",t),this.storePost(i))})),i},triggerChangedTopicStats(){return this.firstPostNotLoaded?o.Promise.reject():o.Promise.resolve().then((()=>this.posts.findBy("post_number",1).id))},postForPostNumber(e){if(this.hasPosts)return this.posts.find((t=>t.get("post_number")===e))},closestPostForPostNumber(e){if(!this.hasPosts)return
let t=null
return this.posts.forEach((i=>{t?Math.abs(e-i.get("post_number"))<Math.abs(t.get("post_number")-e)&&(t=i):t=i})),t},progressIndexOfPost(e){return this.progressIndexOfPostId(e)},progressIndexOfPostId(e){const t=e.get("id")
if(this.isMegaTopic)return e.get("post_number")
return this.stream.indexOf(t)+1},closestPostNumberFor(e){if(!this.hasPosts)return
let t=null
return this.posts.forEach((i=>{t!==e&&(t||(t=i.get("post_number")),Math.abs(e-i.get("post_number"))<Math.abs(t-e)&&(t=i.get("post_number")))})),t},closestDaysAgoFor(e){const t=this.timelineLookup||[]
let i=0,n=t.length-1
for(;i<=n;){const r=Math.floor(i+(n-i)/2),o=t[r][0]
if(o>e)n=r-1
else{if(!(o<e))return t[r][1]
i=r+1}}const r=t[n]||t[i]
if(r)return r[1]},findPostIdForPostNumber(e){const t=this.stream,i=this.get("gaps.before"),n=t.length
let r=1
for(let o=0;o<n;o++){const n=t[o]
if(i){const t=i[n]
if(t)for(let i=0;i<t.length;i++){if(r===e)return n
r++}}if(r===e)return n
r++}},updateFromJson(e){const t=this.posts
if(this.postsWithPlaceholders.clear((()=>t.clear())),this.set("gaps",null),e){const t=this.store
e.posts.forEach((e=>this.appendPost(t.createRecord("post",e)))),delete e.posts,this.setProperties(e)}},storePost(e){if(!e)return
if((0,p.get)(e,"id")){const t=this._identityMap[e.get("id")],i=e.get("post_number")
if(i&&i>(this.get("topic.highest_post_number")||0)&&(this.set("topic.highest_post_number",i),this.set("topic.last_posted_at",e.get("created_at"))),t)return t.updateFromPost(e),t
e.set("topic",this.topic),this._identityMap[e.get("id")]=e}return e},fetchNextWindow(e,t,i){let n=!this.get("topic.suggested_topics")
const r=`/t/${this.get("topic.id")}/posts.json`
let o={post_number:e,asc:t,include_suggested:n}
o=(0,u.deepMerge)(o,this.streamFilters)
const s=this.store
return(0,a.ajax)(r,{data:o}).then((e=>{this._setSuggestedTopics(e)
const t=(0,p.get)(e,"post_stream.posts")
t&&t.forEach((e=>{e=this.storePost(s.createRecord("post",e)),i&&i.call(this,e)}))}))},findPostsByIds(e,t){const i=this._identityMap,n=e.filter((e=>!i[e]))
return this.loadIntoIdentityMap(n,t).then((()=>e.map((e=>i[e])).compact()))},loadIntoIdentityMap(e,t){if((0,h.isEmpty)(e))return o.Promise.resolve([])
let i=!this.get("topic.suggested_topics")
const n="/t/"+this.get("topic.id")+"/posts.json",r={post_ids:e,include_suggested:i},s=this.store
let l={}
return t&&t.background&&(l["Discourse-Background"]="true"),(0,a.ajax)(n,{data:r,headers:l}).then((e=>{this._setSuggestedTopics(e)
const t=(0,p.get)(e,"post_stream.posts")
t&&t.forEach((e=>this.storePost(s.createRecord("post",e))))}))},backfillExcerpts(e){this._excerpts=this._excerpts||[]
const t=this.stream
if(this._excerpts.loadNext=e,this._excerpts.loading)return this._excerpts.loading.then((()=>{if(!this._excerpts[t[e]]&&this._excerpts.loadNext===e)return this.backfillExcerpts(e)}))
let i=t.slice(Math.max(e-20,0),e+20)
for(let r=i.length-1;r>=0;r--)this._excerpts[i[r]]&&i.splice(r,1)
let n={post_ids:i}
return this._excerpts.loading=(0,a.ajax)("/t/"+this.get("topic.id")+"/excerpts.json",{data:n}).then((e=>{e.forEach((e=>{this._excerpts[e.post_id]=e}))})).finally((()=>{this._excerpts.loading=null})),this._excerpts.loading},excerpt(e){if(this.isMegaTopic)return new o.Promise((e=>e("")))
const t=this.stream
return new o.Promise(((i,n)=>{let r=this._excerpts&&this._excerpts[t[e]]
r?i(r):this.backfillExcerpts(e).then((()=>{i(this._excerpts[t[e]])})).catch((e=>n(e)))}))},indexOf(e){return this.stream.indexOf(e.get("id"))},errorLoading(e){const t=this.topic
if(this.set("loadingFilter",!1),t.set("errorLoading",!0),!e.jqXHR)throw e
const i=e.jqXHR.responseJSON
i&&i.extras&&i.extras.html?(t.set("errorTitle",i.extras.title),t.set("errorHtml",i.extras.html)):(t.set("errorMessage",n.default.t("topic.server_error.description")),t.set("noRetry",403===e.jqXHR.status))},_initUserModels(e){e.user=l.default.create({id:e.user_id,username:e.username}),e.user_status&&(e.user.status=e.user_status),e.mentioned_users&&(e.mentioned_users=e.mentioned_users.map((e=>l.default.create(e))))},_checkIfShouldShowRevisions(){if(C){const e=C
z()
const t=this.posts.mapBy("post_number")
e.topicId===this.topic.id&&t.includes(e.postNumber)&&(0,g.schedule)("afterRender",(()=>{this.appEvents.trigger("post:show-revision",e.postNumber,e.revisionNumber)}))}},_setSuggestedTopics(e){e.suggested_topics&&(this.topic.setProperties({suggested_topics:e.suggested_topics,suggested_group_name:e.suggested_group_name}),this.topic.isPrivateMessage&&this.pmTopicTrackingState.startTracking())}},"filteredPostsCount",[b],Object.getOwnPropertyDescriptor(S,"filteredPostsCount"),S),j(S,"hasPosts",[y],Object.getOwnPropertyDescriptor(S,"hasPosts"),S),j(S,"hasLoadedData",[_],Object.getOwnPropertyDescriptor(S,"hasLoadedData"),S),j(S,"firstPostPresent",[v],Object.getOwnPropertyDescriptor(S,"firstPostPresent"),S),j(S,"lastPostId",[w],Object.getOwnPropertyDescriptor(S,"lastPostId"),S),j(S,"loadedAllPosts",[k],Object.getOwnPropertyDescriptor(S,"loadedAllPosts"),S),j(S,"streamFilters",[x],Object.getOwnPropertyDescriptor(S,"streamFilters"),S),j(S,"hasNoFilters",[P],Object.getOwnPropertyDescriptor(S,"hasNoFilters"),S),j(S,"previousWindow",[O],Object.getOwnPropertyDescriptor(S,"previousWindow"),S),j(S,"nextWindow",[T],Object.getOwnPropertyDescriptor(S,"nextWindow"),S),S))
e.default=I})),define("discourse/models/post",["exports","@ember/object","@ember/object/computed","discourse/models/action-summary","discourse/models/composer","I18n","rsvp","discourse/models/rest","discourse/models/site","discourse/models/user","discourse/lib/ajax","discourse/lib/text","discourse-common/utils/decorators","discourse/lib/topic-fancy-title","@ember/utils","discourse/lib/ajax-error","discourse/lib/utilities","discourse/lib/computed","discourse/helpers/share-url","discourse/lib/url"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_){var v,w,k,x,P,O,T,S,j,C,z,I,E
function M(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const D=l.default.extend((v=(0,p.default)("url","customShare"),w=(0,p.default)("name","username"),k=(0,p.default)("firstPost","deleted_by","topic.deleted_by"),x=(0,p.default)("firstPost","deleted_at","topic.deleted_at"),P=(0,p.default)("post_number","topic_id","topic.slug"),O=(0,p.default)("post_number","url"),T=(0,p.default)("username"),S=(0,p.default)("link_counts.@each.internal"),j=(0,p.default)("actions_summary.@each.can_act"),C=(0,p.default)("siteSettings.use_pg_headlines_for_excerpt","topic_title_headline"),z=(0,p.default)("topic_title_headline"),M(I={customShare:null,shareUrl(e){if(this.customShare)return this.customShare
const t=u.default.current()
return(0,y.resolveShareUrl)(e,t)},new_user:(0,i.equal)("trust_level",0),firstPost:(0,i.equal)("post_number",1),deletedViaTopic:(0,i.and)("firstPost","topic.deleted_at"),deleted:(0,i.or)("deleted_at","deletedViaTopic"),notDeleted:(0,i.not)("deleted"),showName(e,t){return e&&e!==t&&this.siteSettings.display_name_on_posts},postDeletedBy:(e,t,i)=>e?i:t,postDeletedAt:(e,t,i)=>e?i:t,url(e,t,i){return(0,g.postUrl)(i||this.topic_slug,t||this.get("topic.id"),e)},urlWithNumber:(e,t)=>1===e?`${t}/1`:t,usernameUrl:_.userPath,topicOwner:(0,b.propertyEqual)("topic.details.created_by.id","user_id"),updatePostField(e,t){const i={}
return i[e]=t,(0,c.ajax)(`/posts/${this.id}/${e}`,{type:"PUT",data:i}).then((()=>this.set(e,t))).catch(f.popupAjaxError)},internalLinks(){return(0,h.isEmpty)(this.link_counts)?null:this.link_counts.filterBy("internal").filterBy("title")},flagsAvailable(){return this.site?this.site.flagTypes.filter((e=>this.get(`actionByName.${e.name_key}.can_act`))):[]},useTopicTitleHeadline:(e,t)=>e&&t,topicTitleHeadline(e){return(0,m.fancyTitle)(e,this.siteSettings.support_mixed_text_direction)},afterUpdate(e){e.category&&this.site.updateCategory(e.category)},updateProperties(){return{post:{raw:this.raw,edit_reason:this.editReason},image_sizes:this.imageSizes}},createProperties(){const e=this.getProperties(r.default.serializedFieldsForCreate())
e.reply_to_post_number=this.reply_to_post_number,e.image_sizes=this.imageSizes
const t=this.metaData
return t&&(e.meta_data={},Object.keys(t).forEach((i=>e.meta_data[i]=t[i]))),e},expand(){return(0,c.ajax)(`/posts/${this.id}/expand-embed`).then((e=>{this.set("cooked",`<section class="expanded-embed">${e.cooked}</section>`)}))},recover(){const e=this.getProperties("deleted_at","deleted_by","user_deleted","can_delete")
return this.setProperties({deleted_at:null,deleted_by:null,user_deleted:!1,can_delete:!1}),(0,c.ajax)(`/posts/${this.id}/recover`,{type:"PUT"}).then((e=>{this.setProperties({cooked:e.cooked,raw:e.raw,user_deleted:!1,can_delete:!0,version:e.version})})).catch((t=>{(0,f.popupAjaxError)(t),this.setProperties(e)}))},setDeletedState(e){let t
if(this.set("oldCooked",this.cooked),e.staff||0===this.siteSettings.delete_removed_posts_after)this.setProperties({deleted_at:new Date,deleted_by:e,can_delete:!1,can_permanently_delete:this.siteSettings.can_permanently_delete&&e.admin,can_recover:!0})
else{const e=1===this.post_number?"topic.deleted_by_author_simple":"post.deleted_by_author_simple"
t=(0,d.cookAsync)(o.default.t(e)).then((e=>{this.setProperties({cooked:e,can_delete:!1,can_permanently_delete:!1,version:this.version+1,can_recover:!0,can_edit:!1,user_deleted:!0})}))}return t||s.Promise.resolve()},undoDeleteState(){this.oldCooked&&this.setProperties({deleted_at:null,deleted_by:null,cooked:this.oldCooked,version:this.version-1,can_recover:!1,can_delete:!0,user_deleted:!1})},destroy(e,t){return this.setDeletedState(e).then((()=>(0,c.ajax)("/posts/"+this.id,{data:{context:window.location.pathname,...t},type:"DELETE"})))},updateFromPost(e){Object.keys(e).forEach((i=>{let n=e[i],r=this[i]
n||(n=null),r||(r=null)
let o=!1
"function"!=typeof n&&r!==n&&("reply_to_user"===i&&n&&r&&(o=n.username===r.username||(0,t.get)(n,"username")===(0,t.get)(r,"username")),o||this.set(i,n))}))},expandHidden(){return(0,c.ajax)(`/posts/${this.id}/cooked.json`).then((e=>{this.setProperties({cooked:e.cooked,cooked_hidden:!1})}))},rebake(){return(0,c.ajax)(`/posts/${this.id}/rebake`,{type:"PUT"}).catch(f.popupAjaxError)},unhide(){return(0,c.ajax)(`/posts/${this.id}/unhide`,{type:"PUT"})},createBookmark(e){this.setProperties({"topic.bookmarked":!0,bookmarked:!0,bookmark_reminder_at:e.reminder_at,bookmark_auto_delete_preference:e.auto_delete_preference,bookmark_name:e.name,bookmark_id:e.id}),this.topic.incrementProperty("bookmarksWereChanged"),this.appEvents.trigger("bookmarks:changed",e,{target:"post",targetId:this.id}),this.appEvents.trigger("post-stream:refresh",{id:this.id})},deleteBookmark(e){this.set("topic.bookmarked",e),this.clearBookmark()},clearBookmark(){this.setProperties({bookmark_reminder_at:null,bookmark_name:null,bookmark_id:null,bookmarked:!1,bookmark_auto_delete_preference:null}),this.topic.incrementProperty("bookmarksWereChanged"),this.appEvents.trigger("bookmarks:changed",null,{target:"post",targetId:this.id})},updateActionsSummary(e){e&&e.id===this.id&&(e=D.munge(e),this.set("actions_summary",e.actions_summary))},updateLikeCount(e,t,i){let n=u.default.current()?.id===t,r=n&&"liked"===i,o=this.get("actions_summary"),s=a.default.current().post_action_types.find((e=>"like"===e.name_key)).id
const l={id:s,count:e,acted:r}
if(this.actions_summary.find((e=>e.id===s)))l.acted=(r||this.likeAction.acted)&&!("unliked"===i&&n),Object.assign(this.actions_summary.find((e=>e.id===s)),l),Object.assign(this.actionByName.like,l),Object.assign(this.likeAction,l)
else{let e=D.munge({id:this.id,actions_summary:[l]})
this.set("actions_summary",Object.assign(o,e.actions_summary)),this.set("actionByName",e.actionByName),this.set("likeAction",e.likeAction)}},revertToRevision(e){return(0,c.ajax)(`/posts/${this.id}/revisions/${e}/revert`,{type:"PUT"})}},"shareUrl",[v],Object.getOwnPropertyDescriptor(I,"shareUrl"),I),M(I,"showName",[w],Object.getOwnPropertyDescriptor(I,"showName"),I),M(I,"postDeletedBy",[k],Object.getOwnPropertyDescriptor(I,"postDeletedBy"),I),M(I,"postDeletedAt",[x],Object.getOwnPropertyDescriptor(I,"postDeletedAt"),I),M(I,"url",[P],Object.getOwnPropertyDescriptor(I,"url"),I),M(I,"urlWithNumber",[O],Object.getOwnPropertyDescriptor(I,"urlWithNumber"),I),M(I,"usernameUrl",[T],(E=(E=Object.getOwnPropertyDescriptor(I,"usernameUrl"))?E.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return E}}),I),M(I,"internalLinks",[S],Object.getOwnPropertyDescriptor(I,"internalLinks"),I),M(I,"flagsAvailable",[j],Object.getOwnPropertyDescriptor(I,"flagsAvailable"),I),M(I,"useTopicTitleHeadline",[C],Object.getOwnPropertyDescriptor(I,"useTopicTitleHeadline"),I),M(I,"topicTitleHeadline",[z],Object.getOwnPropertyDescriptor(I,"topicTitleHeadline"),I),I))
D.reopenClass({munge(e){if(e.actions_summary){const i=t.default.create()
e.actions_summary=e.actions_summary.map((t=>{t.actionType=a.default.current().postActionTypeById(t.id),t.count=t.count||0
const r=n.default.create(t)
return i[t.actionType.name_key]=r,"like"===t.actionType.name_key&&(e.likeAction=r),r})),e.actionByName=i}return e&&e.reply_to_user&&(e.reply_to_user=u.default.create(e.reply_to_user)),e},updateBookmark:(e,t)=>(0,c.ajax)(`/posts/${e}/bookmark`,{type:"PUT",data:{bookmarked:t}}),destroyBookmark:e=>(0,c.ajax)(`/posts/${e}/bookmark`,{type:"DELETE"}),deleteMany(e){let{agreeWithFirstReplyFlag:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return(0,c.ajax)("/posts/destroy_many",{type:"DELETE",data:{post_ids:e,agree_with_first_reply_flag:t}})},mergePosts:e=>(0,c.ajax)("/posts/merge_posts",{type:"PUT",data:{post_ids:e}}).catch(f.popupAjaxError),loadRevision:(e,i)=>(0,c.ajax)(`/posts/${e}/revisions/${i}.json`).then((e=>t.default.create(e))),hideRevision:(e,t)=>(0,c.ajax)(`/posts/${e}/revisions/${t}/hide`,{type:"PUT"}),permanentlyDeleteRevisions:e=>(0,c.ajax)(`/posts/${e}/revisions/permanently_delete`,{type:"DELETE"}),showRevision:(e,t)=>(0,c.ajax)(`/posts/${e}/revisions/${t}/show`,{type:"PUT"}),loadRawEmail:e=>(0,c.ajax)(`/posts/${e}/raw-email.json`)})
var N=D
e.default=N})),define("discourse/models/published-page",["exports","discourse/models/rest","@ember/object","discourse-common/lib/get-url"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({url:(0,i.computed)("slug",(function(){return(0,n.getAbsoluteURL)(`/pub/${this.slug}`)}))})
e.default=r})),define("discourse/models/rest",["exports","@ember/object","rsvp","@ember/object/computed","discourse-common/lib/get-owner","@ember/debug"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=t.default.extend({isNew:(0,n.equal)("__state","new"),isCreated:(0,n.equal)("__state","created"),isSaving:!1,beforeCreate(){},afterCreate(){},beforeUpdate(){},afterUpdate(){},update(e){return this.isSaving?i.Promise.reject():(e=e||this.updateProperties(),this.beforeUpdate(e),this.set("isSaving",!0),this.store.update(this.__type,this.id,e).then((t=>{const i=this.__munge(t.payload||t.responseJson)
return"OK"===i.success&&(t=e),this.setProperties(i),this.afterUpdate(t),t.target=this,t})).finally((()=>this.set("isSaving",!1))))},_saveNew(e){if(this.isSaving)return i.Promise.reject()
e=e||this.createProperties(),this.beforeCreate(e)
const t=this.store.adapterFor(this.__type)
return this.set("isSaving",!0),t.createRecord(this.store,this.__type,e).then((e=>{if(!e)throw new Error("Received no data back from createRecord")
return e.payload&&(this.setProperties(this.__munge(e.payload)),this.set("__state","created")),this.afterCreate(e),e.target=this,e})).finally((()=>this.set("isSaving",!1)))},createProperties(){throw new Error("You must overwrite `createProperties()` before saving a record")},save(e){return this.isNew?this._saveNew(e):this.update(e)},destroyRecord(){return this.store.destroyRecord(this.__type,this)}})
s.reopenClass({munge:e=>e,create(e){e=e||{}
let t=(0,r.getOwner)(this)
return e.store||(e.store=t.lookup("service:store")),e.siteSettings||(e.siteSettings=t.lookup("service:site-settings")),e.appEvents||(e.appEvents=t.lookup("service:app-events")),e.__munge=this.munge,this._super(this.munge(e,e.store))}})
var l=s
e.default=l})),define("discourse/models/result-set",["exports","@ember/array/proxy","rsvp","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=t.default.extend((r=(0,n.default)("totalRows","length"),s=o={loading:!1,loadingMore:!1,totalRows:0,refreshing:!1,content:null,loadMoreUrl:null,refreshUrl:null,findArgs:null,store:null,__type:null,resultSetMeta:null,canLoadMore:(e,t)=>t<e,loadMore(){const e=this.loadMoreUrl
if(!e)return
const t=this.totalRows
return this.length<t&&!this.loadingMore?(this.set("loadingMore",!0),this.store.appendResults(this,this.__type,e).finally((()=>this.set("loadingMore",!1)))):i.Promise.resolve()},refresh(){if(this.refreshing)return
const e=this.refreshUrl
return e?(this.set("refreshing",!0),this.store.refreshResults(this,this.__type,e).finally((()=>this.set("refreshing",!1)))):void 0}},l="canLoadMore",a=[r],u=Object.getOwnPropertyDescriptor(o,"canLoadMore"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/models/reviewable-history",["exports","discourse/models/rest","@ember/object/computed"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.TRANSITIONED_TO=e.EDITED=e.CREATED=void 0
e.CREATED=0
e.TRANSITIONED_TO=1
e.EDITED=2
var n=t.default.extend({created:(0,i.equal)("reviewable_history_type",0)})
e.default=n})),define("discourse/models/reviewable",["exports","discourse-common/utils/category-macro","@ember/string","I18n","rsvp","discourse/models/rest","discourse/lib/ajax","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s,l){var a,u,c,d
function p(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.REJECTED=e.PENDING=e.IGNORED=e.DELETED=e.APPROVED=void 0
e.PENDING=0
e.APPROVED=1
e.REJECTED=2
e.IGNORED=3
e.DELETED=4
const m=o.default.extend((a=(0,l.default)("type","topic"),u=(0,l.default)("resolvedType"),c=(0,l.default)("humanType"),p(d={resolvedType:(e,t)=>"ReviewableQueuedPost"!==e||t?e:"ReviewableQueuedTopic",humanType:e=>n.default.t(`review.types.${(0,i.underscore)(e)}.title`,{defaultValue:""}),humanTypeCssClass:e=>"-"+(0,i.dasherize)(e),flaggedPostContextQuestion(){const e=this.reviewable_scores.uniqBy("score_type.type")
if(1===e.length&&"notify_moderators"===e[0].score_type.type)return n.default.t("review.context_question.something_else_wrong")
const t=n.default.listJoiner(e.map((e=>e.score_type.title.toLowerCase())).uniq(),n.default.t("review.context_question.delimiter"))
return n.default.t("review.context_question.is_this_post",{reviewable_human_score_types:t})},category:(0,t.default)("category_id"),update(e){if(0===Object.keys(e).length)return r.Promise.resolve()
let t=this.store.adapterFor("reviewable")
return(0,s.ajax)(`/review/${this.id}?version=${this.version}`,t.getPayload("PUT",{reviewable:e})).then((e=>{e.payload=Object.assign({},this.payload||{},e.payload||{}),this.setProperties(e)}))}},"resolvedType",[a],Object.getOwnPropertyDescriptor(d,"resolvedType"),d),p(d,"humanType",[u],Object.getOwnPropertyDescriptor(d,"humanType"),d),p(d,"humanTypeCssClass",[c],Object.getOwnPropertyDescriptor(d,"humanTypeCssClass"),d),p(d,"flaggedPostContextQuestion",[l.default],Object.getOwnPropertyDescriptor(d,"flaggedPostContextQuestion"),d),d))
m.reopenClass({munge:e=>(delete e.category,e)})
var h=m
e.default=h})),define("discourse/models/session",["exports","discourse/models/rest","discourse/mixins/singleton"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=t.default.extend({hasFocus:null,init(){this.set("highestSeenByTopic",{})}})
n.reopenClass(i.default)
var r=n
e.default=r})),define("discourse/models/site",["exports","@ember/object","@ember/object/computed","discourse/models/archetype","discourse/models/category","discourse/models/post-action-type","discourse/lib/preload-store","discourse/models/rest","discourse/mixins/singleton","discourse/models/trust-level","discourse-common/lib/deprecated","discourse-common/utils/decorators","discourse-common/lib/get-owner","@ember/utils","@ember/template"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h){var f,g,b,y,_,v
function w(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const k=l.default.extend((f=(0,d.default)("notification_types"),g=(0,d.default)("post_action_types.[]"),b=(0,d.default)("categoriesByCount","categories.[]"),y=(0,d.default)("categories.[]"),_=(0,d.default)("categories.[]","categories.@each.notification_level"),v={isReadOnly:(0,i.alias)("is_readonly"),init(){this._super(...arguments),this.topicCountDesc=["topic_count:desc"]},notificationLookup(e){const t=[]
return Object.keys(e).forEach((i=>t[e[i]]=i)),t},flagTypes(){const e=this.post_action_types
return e?e.filterBy("is_flag",!0):[]},categoriesByCount:(0,i.sort)("categories","topicCountDesc"),collectUserFields(e){e=e||{}
let t=this.user_fields
return(0,m.isEmpty)(t)?[]:t.map((t=>{let i=e?e[t.id.toString()]:null
return i=i||(0,h.htmlSafe)("&mdash;"),{name:t.name,value:i}}))},sortedCategories:e=>r.default.sortCategories(e),categoriesList(e){return this.siteSettings.fixed_category_positions?e:this.sortedCategories},trackedCategoriesList(e){const t=[]
for(const i of e)i.isTracked&&(!this.siteSettings.allow_uncategorized_topics&&i.isUncategorizedCategory||t.push(i))
return t},postActionTypeById(e){return this.get("postActionByIdLookup.action"+e)},topicFlagTypeById(e){return this.get("topicFlagByIdLookup.action"+e)},removeCategory(e){const t=this.categories,i=t.findBy("id",e)
i&&(t.removeObject(i),delete this.categoriesById.categoryId)},updateCategory(e){const i=this.categories,n=(0,t.get)(e,"id"),r=i.findBy("id",n)
return null===e.permission&&delete e.permission,r?(r.setProperties(e),r):(e=this.store.createRecord("category",e),i.pushObject(e),this.categoriesById[n]=e,e)}},w(v,"notificationLookup",[f],Object.getOwnPropertyDescriptor(v,"notificationLookup"),v),w(v,"flagTypes",[g],Object.getOwnPropertyDescriptor(v,"flagTypes"),v),w(v,"sortedCategories",[b],Object.getOwnPropertyDescriptor(v,"sortedCategories"),v),w(v,"categoriesList",[y],Object.getOwnPropertyDescriptor(v,"categoriesList"),v),w(v,"trackedCategoriesList",[_],Object.getOwnPropertyDescriptor(v,"trackedCategoriesList"),v),v))
if(k.reopenClass(a.default,{createCurrent(){const e=(0,p.getOwner)(this).lookup("service:store"),t=s.default.get("site")
return t.isReadOnly=s.default.get("isReadOnly"),t.isStaffWritesOnly=s.default.get("isStaffWritesOnly"),e.createRecord("site",t)},create(){const e=this._super.apply(this,arguments),i=e.store
if(e.categories){let t={}
e.categoriesById=new Map,e.categories=e.categories.map((n=>(n.parent_category_id&&(t[n.parent_category_id]=t[n.parent_category_id]||[],t[n.parent_category_id].push(n.id)),e.categoriesById[n.id]=i.createRecord("category",n)))),e.categories.forEach((i=>{let n=t[i.get("id")]
n&&i.set("subcategories",n.map((t=>e.categoriesById[t]))),i.get("parent_category_id")&&i.set("parentCategory",e.categoriesById[i.get("parent_category_id")])}))}return e.trust_levels&&(e.trustLevels=Object.entries(e.trust_levels).map((e=>{let[t,i]=e
return new u.default(i,t)})),delete e.trust_levels),e.post_action_types&&(e.postActionByIdLookup=t.default.create(),e.post_action_types=e.post_action_types.map((t=>{const i=o.default.create(t)
return e.postActionByIdLookup.set("action"+t.id,i),i}))),e.topic_flag_types&&(e.topicFlagByIdLookup=t.default.create(),e.topic_flag_types=e.topic_flag_types.map((t=>{const i=o.default.create(t)
return e.topicFlagByIdLookup.set("action"+t.id,i),i}))),e.archetypes&&(e.archetypes=e.archetypes.map((t=>(t.site=e,n.default.create(t))))),e.user_fields&&(e.user_fields=e.user_fields.map((e=>t.default.create(e)))),e}}),"undefined"!=typeof Discourse){let e=!1
Object.defineProperty(Discourse,"Site",{get:()=>(e||((0,c.default)("Import the Site class instead of using Discourse.Site",{since:"2.4.0",id:"discourse.globals.site"}),e=!0),k)})}var x=k
e.default=x})),define("discourse/models/static-page",["exports","@ember/object","rsvp","discourse/lib/ajax"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=t.default.extend()
r.reopenClass({find:e=>new i.Promise((t=>{const i=$('noscript[data-path="/'+e+'"]')
if(i.length){let n=i.text()
n=n.match(/<!-- preload-content: -->((?:.|[\n\r])*)<!-- :preload-content -->/)[1],t(r.create({path:e,html:n}))}else(0,n.ajax)(`/${e}.html`,{dataType:"html"}).then((i=>t(r.create({path:e,html:i}))))}))})
var o=r
e.default=o})),define("discourse/models/store",["exports","discourse-common/lib/deprecated","discourse/services/store"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"flushMap",{enumerable:!0,get:function(){return i.flushMap}}),(0,t.default)('"discourse/models/store" import is deprecated, use "discourse/services/store" instead',{since:"2.8.0.beta8",dropFrom:"2.9.0.beta1",id:"discourse.models-store"})})),define("discourse/models/tag-group",["exports","discourse/models/permission-type","discourse/models/rest","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=i.default.extend((r=(0,n.default)("permissions"),s=o={permissionName:e=>e?e.everyone===t.default.FULL?"public":e.everyone===t.default.READONLY?"visible":"private":"public"},l="permissionName",a=[r],u=Object.getOwnPropertyDescriptor(o,"permissionName"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p}))
define("discourse/models/tag",["exports","discourse/models/rest","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n){var r,o,s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=t.default.extend((r=(0,i.default)("count","pm_count"),o=(0,i.default)("id"),l(s={pmOnly:(0,n.readOnly)("pm_only"),totalCount:(e,t)=>t?e+t:e,searchContext(e){return{type:"tag",id:e,tag:this,name:e}}},"totalCount",[r],Object.getOwnPropertyDescriptor(s,"totalCount"),s),l(s,"searchContext",[o],Object.getOwnPropertyDescriptor(s,"searchContext"),s),s))
e.default=a})),define("discourse/models/topic-details",["exports","@ember/object","discourse/models/rest","discourse/models/user","discourse/lib/ajax"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=i.default.extend({loaded:!1,updateFromJson(e){const i=this.topic
e.allowed_users&&(e.allowed_users=e.allowed_users.map((function(e){return n.default.create(e)}))),e.participants&&(e.participants=e.participants.map((function(e){return e.topic=i,t.default.create(e)}))),this.setProperties(e),this.set("loaded",!0)},updateNotifications(e){return(0,r.ajax)(`/t/${this.get("topic.id")}/notifications`,{type:"POST",data:{notification_level:e}}).then((()=>{this.setProperties({notification_level:e,notifications_reason_id:null})}))},removeAllowedGroup(e){const t=this.allowed_groups,i=e.name
return(0,r.ajax)("/t/"+this.get("topic.id")+"/remove-allowed-group",{type:"PUT",data:{name:i}}).then((()=>{t.removeObject(t.findBy("name",i))}))},removeAllowedUser(e){const t=this.allowed_users,i=e.get("username")
return(0,r.ajax)("/t/"+this.get("topic.id")+"/remove-allowed-user",{type:"PUT",data:{username:i}}).then((()=>{t.removeObject(t.findBy("username",i))}))}})
e.default=o})),define("discourse/models/topic-list",["exports","@ember/object","rsvp","discourse/models/rest","discourse/models/session","discourse/models/user","discourse/lib/ajax","discourse-common/lib/get-owner","@ember/utils","@ember/object/computed","discourse-common/lib/deprecated"],(function(e,t,i,n,r,o,s,l,a,u,c){function d(e,t){const i={}
return(0,a.isEmpty)(e)||e.forEach((function(e){i[e.id]=t.create(e)})),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=n.default.extend({canLoadMore:(0,u.notEmpty)("more_topics_url"),forEachNew(e,t){const i=new Set
this.topics.forEach((e=>i.add(e.id))),e.forEach((e=>{i.has(e.id)||t(e)}))},updateSortParams(e,t){let i=Object.assign({},this.params||{})
i.q?i={q:i.q}:(i.order=e||i.order,i.ascending=t),this.set("params",i)},loadMore(){if(this.loadingMore)return i.Promise.resolve()
let e=this.more_topics_url
if(e){let[t,i]=e.split("?")
return t.match(/\.json$/)||(t+=".json"),e=t,i&&(e+="?"+i),this.set("loadingMore",!0),(0,s.ajax)({url:e}).then((e=>{let t=0
if(e){const i=p.topicsFrom(this.store,e)
return this.forEachNew(i,(e=>{e.set("highlight",0==t++),this.topics.pushObject(e)})),this.setProperties({loadingMore:!1,more_topics_url:e.topic_list.more_topics_url}),r.default.currentProp("topicList",this),{moreTopicsUrl:this.more_topics_url,newTopics:i}}}))}return i.Promise.resolve()},loadBefore(e,t){this.topics.removeObjects(this.topics.filter((t=>e.includes(t.id))))
const i=`/${this.filter}.json?topic_ids=${e.join(",")}`
return(0,s.ajax)({url:i,data:this.params}).then((e=>{let i=0
this.forEachNew(p.topicsFrom(this.store,e),(e=>{e.set("highlight",!0),this.topics.insertAt(i,e),i++})),t&&r.default.currentProp("topicList",this)}))}})
p.reopenClass({topicsFrom(e,i,n){if(!i)return
let r=(n=n||{}).listKey||"topics"
const s=d(i.users,o.default),l=d(i.primary_groups,t.default)
return i.topic_list[r].map((t=>(t.posters.forEach((e=>{e.user=s[e.user_id],e.extraClasses=e.extras,e.primary_group_id&&(e.primary_group=l[e.primary_group_id],e.primary_group&&(e.extraClasses=`${e.extraClasses||""} group-${e.primary_group.name}`))})),t.participants&&t.participants.forEach((e=>e.user=s[e.user_id])),e.createRecord("topic",t))))},munge(e,t){return e.inserted=e.inserted||[],e.can_create_topic=e.topic_list.can_create_topic,e.more_topics_url=e.topic_list.more_topics_url,e.for_period=e.topic_list.for_period,e.loaded=!0,e.per_page=e.topic_list.per_page,e.topics=this.topicsFrom(t,e),e.topic_list.shared_drafts&&(e.sharedDrafts=this.topicsFrom(t,e,{listKey:"shared_drafts"})),e},find(e,t){(0,c.default)('TopicList.find is deprecated. Use `findFiltered("topicList")` on the `store` service instead.',{id:"topic-list-find",since:"3.1.0.beta5",dropFrom:"3.2.0.beta1"})
return(0,l.getOwner)(this).lookup("service:store").findFiltered("topicList",{filter:e,params:t})},hideUniformCategory(e,t){e.set("hideCategory",!function(e,t){if(t){if(t.has_children)return!0
const i=e.shared_drafts_category_id
return!(!i||t.id!==i)}return!0}(e.site,t))}})
var m=p
e.default=m})),define("discourse/models/topic-timer",["exports","discourse/models/rest","discourse/lib/ajax"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=t.default.extend({})
n.reopenClass({update(e,t,n,r,o,s){let l={time:t,status_type:r}
return n&&(l.based_on_last_post=n),o&&(l.category_id=o),s&&(l.duration_minutes=s),(0,i.ajax)({url:`/t/${e}/timer`,type:"POST",data:l})}})
var r=n
e.default=r})),define("discourse/models/topic-tracking-state",["exports","@ember/object","discourse-common/utils/decorators","discourse/models/category","discourse-common/lib/object","discourse/lib/url","discourse/lib/notification-levels","discourse/lib/preload-store","discourse/models/user","discourse/models/site","@ember/utils"],(function(e,t,i,n,r,o,s,l,a,u,c){var d,p
function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function h(e){return null===e.last_read_post_number&&(0!==e.notification_level&&!e.notification_level||e.notification_level>=s.NotificationLevels.TRACKING)&&e.created_in_new_period&&b(e)}function f(e){return null!==e.last_read_post_number&&e.last_read_post_number<e.highest_post_number&&e.notification_level>=s.NotificationLevels.TRACKING}function g(e){return f(e)||h(e)}function b(e){return!e.is_seen}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.startTracking=function(e){l.default.getAndRemove("topicTrackingStates").then((t=>e.loadStates(t))),l.default.getAndRemove("topicTrackingStateMeta").then((t=>e.establishChannels(t)))}
const y=t.default.extend((d=(0,i.default)("incomingCount"),p={messageCount:0,init(){this._super(...arguments),this.states=new Map,this.stateChangeCallbacks={},this._trackedTopicLimit=4e3},willDestroy(){this._super(...arguments),this.messageBus.unsubscribe("/latest",this._processChannelPayload),this.currentUser&&(this.messageBus.unsubscribe("/new",this._processChannelPayload),this.messageBus.unsubscribe("/unread",this._processChannelPayload),this.messageBus.unsubscribe(`/unread/${this.currentUser.id}`,this._processChannelPayload)),this.messageBus.unsubscribe("/delete",this.onDeleteMessage),this.messageBus.unsubscribe("/recover",this.onRecoverMessage),this.messageBus.unsubscribe("/destroy",this.onDestroyMessage)},establishChannels(e){e??={}
const t=-1
this.messageBus.subscribe("/latest",this._processChannelPayload,e["/latest"]||t),this.currentUser&&(this.messageBus.subscribe("/new",this._processChannelPayload,e["/new"]||t),this.messageBus.subscribe("/unread",this._processChannelPayload,e["/unread"]||t),this.messageBus.subscribe(`/unread/${this.currentUser.id}`,this._processChannelPayload,e[`/unread/${this.currentUser.id}`]||t)),this.messageBus.subscribe("/delete",this.onDeleteMessage,e["/delete"]||t),this.messageBus.subscribe("/recover",this.onRecoverMessage,e["/recover"]||t),this.messageBus.subscribe("/destroy",this.onDestroyMessage,e["/destroy"]||t)},onDeleteMessage(e){this.modifyStateProp(e,"deleted",!0),this.incrementMessageCount()},onRecoverMessage(e){this.modifyStateProp(e,"deleted",!1),this.incrementMessageCount()},onDestroyMessage(e){this.incrementMessageCount()
const t=o.default.router.currentRoute.parent
"topic"===t.name&&parseInt(t.params.id,10)===e.topic_id&&o.default.redirectTo("/")},mutedTopics(){return this.currentUser&&this.currentUser.muted_topics||[]},unmutedTopics(){return this.currentUser&&this.currentUser.unmuted_topics||[]},trackMutedOrUnmutedTopic(e){let t,i
"muted"===e.message_type?(i="muted_topics",t=this.mutedTopics()):(i="unmuted_topics",t=this.unmutedTopics()),t=t.concat({topicId:e.topic_id,createdAt:Date.now()}),this.currentUser&&this.currentUser.set(i,t)},pruneOldMutedAndUnmutedTopics(){const e=Date.now()
let t=this.mutedTopics().filter((t=>e-t.createdAt<6e4)),i=this.unmutedTopics().filter((t=>e-t.createdAt<6e4))
this.currentUser&&this.currentUser.set("muted_topics",t)&&this.currentUser.set("unmuted_topics",i)},isMutedTopic(e){return!!this.mutedTopics().findBy("topicId",e)},isUnmutedTopic(e){return!!this.unmutedTopics().findBy("topicId",e)},updateSeen(e,t){if(!e||!t)return
const i=this.findState(e)
i&&(!i.last_read_post_number||i.last_read_post_number<t)&&(this.modifyStateProp(e,"last_read_post_number",t),this.incrementMessageCount())},notifyIncoming(e){if(!this.newIncoming)return
const t=this.filter,i=this.filterCategory,r=this.filterTag,o=e.payload&&e.payload.category_id
if(i&&i.get("id")!==o){const e=o&&n.default.findById(o)
if(!e||e.get("parentCategory.id")!==i.get("id"))return}if(r&&!e.payload.tags?.includes(r))return;["all","latest","new","unseen"].includes(t)&&"new_topic"===e.message_type&&this._addIncoming(e.topic_id)
const s=["all","unread","unseen"]
if(this.currentUser?.new_new_view_enabled&&s.push("new"),s.includes(t)&&"unread"===e.message_type){const t=this.findState(e)
t&&t.highest_post_number!==t.last_read_post_number||this._addIncoming(e.topic_id)}"latest"===t&&"latest"===e.message_type&&this._addIncoming(e.topic_id),"categories"!==t||"latest"!==e.message_type||u.default.current().mobileView||"categories_and_latest_topics"!==this.siteSettings.desktop_category_page_style&&"categories_and_latest_topics_created_date"!==this.siteSettings.desktop_category_page_style||this._addIncoming(e.topic_id),this.set("incomingCount",this.newIncoming.length)},resetTracking(){this.newIncoming=[],this.set("incomingCount",0)},trackIncoming(e){let t,i
if(this.newIncoming=[],e.startsWith("c/")||e.startsWith("tags/c/")){const r=e.match(/\/(\d*)\//)
t=n.default.findById(parseInt(r[1],10))
const o=e.split("/")
e.startsWith("tags/c/")&&(i=o[o.indexOf(r[1])+1]),o.length>=4&&(e=o[o.length-1])}else if(e.startsWith("tag/")){const t=e.split("/")
e=t[t.length-1],i=t[1]}this.set("filterCategory",t),this.set("filterTag",i),this.set("filter",e),this.set("incomingCount",0)},hasIncoming:e=>e&&e>0,removeTopic(e){this.states.delete(this._stateKey(e))&&this._afterStateChange()},removeTopics(e){e.forEach((e=>this.removeTopic(e))),this.incrementMessageCount(),this._afterStateChange()},updateTopics(e){(0,c.isEmpty)(e)||e.forEach((e=>{const t=this.findState(e.get("id"))
if(!t)return
const i=e.get("last_read_post_number"),n=e.get("is_seen")
if(i!==t.last_read_post_number||n!==t.is_seen){const i=e.get("posts_count")
let n
n=t.last_read_post_number?i-t.last_read_post_number:0,n<0&&(n=0),e.setProperties({highest_post_number:t.highest_post_number,last_read_post_number:t.last_read_post_number,unread_posts:n,is_seen:t.is_seen,unseen:!t.last_read_post_number&&b(t)})}}))},sync(e,t,i){if(!e||!e.topics)return
this._fixDelayedServerState(e,t)
const n=[]
for(const r of e.topics){const e=this._newStateFromListTopic(r)
e&&n.push(e)}this.loadStates(n),this._shouldCompensateState(e,t,i)&&this._correctMissingState(e,t),this.incrementMessageCount()},incrementMessageCount(){this.incrementProperty("messageCount")},_generateCallbackId:()=>Math.random().toString(12).slice(2,11),onStateChange(e){let t=this._generateCallbackId()
return this.stateChangeCallbacks[t]=e,t},offStateChange(e){delete this.stateChangeCallbacks[e]},getSubCategoryIds(e){const t=[e],i=n.default.list()
for(let n=0;n<t.length;++n)for(let e=0;e<i.length;++e)t[n]===i[e].parent_category_id&&(t[t.length]=i[e].id)
return new Set(t)},countCategoryByState(e){let{type:t,categoryId:i,tagId:n,noSubcategories:r,customFilterFn:o}=e
const s=r?new Set([i]):this.getSubCategoryIds(i),l=this.currentUser?.muted_category_ids?.concat(this.currentUser.indirectly_muted_category_ids)
let a
switch(t){case"new":a=h
break
case"unread":a=f
break
case"new_and_unread":case"unread_and_new":a=g
break
default:throw new Error(`Unkown filter type ${t}`)}return Array.from(this.states.values()).filter((e=>!!a(e)&&(!(i&&!s.has(e.category_id))&&((!i||!e.is_category_topic||i===e.category_id)&&(!(n&&!e.tags?.includes(n))&&(("new"!==t||!l?.includes(e.category_id))&&!(o&&!o.call(this,e)))))))).length},countNew(){let{categoryId:e,tagId:t,noSubcategories:i,customFilterFn:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return this.countCategoryByState({type:"new",categoryId:e,tagId:t,noSubcategories:i,customFilterFn:n})},countUnread(){let{categoryId:e,tagId:t,noSubcategories:i,customFilterFn:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return this.countCategoryByState({type:"unread",categoryId:e,tagId:t,noSubcategories:i,customFilterFn:n})},countNewAndUnread(){let{categoryId:e,tagId:t,noSubcategories:i,customFilterFn:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return this.countCategoryByState({type:"new_and_unread",categoryId:e,tagId:t,noSubcategories:i,customFilterFn:n})},forEachTracked(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
this._trackedTopics(t).forEach((t=>{e(t.topic,t.newTopic,t.unreadTopic)}))},countTags(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={}
return e.forEach((e=>{i[e]={unreadCount:0,newCount:0},t.includeTotal&&(i[e].totalCount=0)})),this.forEachTracked(((n,r,o)=>{n.tags&&n.tags.length>0&&e.forEach((e=>{n.tags.includes(e)&&(o&&i[e].unreadCount++,r&&i[e].newCount++,t.includeTotal&&i[e].totalCount++)}))}),{includeAll:t.includeTotal}),i},countCategory(e,t){let i=0
for(let n of this.states.values())n.category_id!==e||n.deleted||t&&!n.tags?.includes(t)||(i+=null===n.last_read_post_number||n.last_read_post_number<n.highest_post_number?1:0)
return i},lookupCount(){let{type:e,category:i,tagId:n,noSubcategories:r,customFilterFn:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if("latest"===e)return this.lookupCount({type:"new",category:i,tagId:n,noSubcategories:r,customFilterFn:o})+this.lookupCount({type:"unread",category:i,tagId:n,noSubcategories:r,customFilterFn:o})
let s=i?(0,t.get)(i,"id"):null
if("new"===e){let e=this.countNew({categoryId:s,tagId:n,noSubcategories:r,customFilterFn:o})
return this.currentUser?.new_new_view_enabled&&(e+=this.countUnread({categoryId:s,tagId:n,noSubcategories:r,customFilterFn:o})),e}if("unread"===e)return this.countUnread({categoryId:s,tagId:n,noSubcategories:r,customFilterFn:o})
if(e.split("/")[1])return this.countCategory(s,n)},loadStates(e){if(!e||0===e.length)return
e.every((e=>this._setState({topic:e,data:e,skipAfterStateChange:!0})))&&this._afterStateChange()},_setState(e){let{topic:t,data:i,skipAfterStateChange:n}=e
const r=this._stateKey(t),o=this.states.get(r)
return(!o||JSON.stringify(o)!==JSON.stringify(i))&&(this.states.set(r,i),n||this._afterStateChange(),!0)},modifyState(e,t){this._setState({topic:e,data:t})},modifyStateProp(e,t,i){const n=this.findState(e)
n&&(n[t]=i,this._afterStateChange())},findState(e){return this.states.get(this._stateKey(e))},_fixDelayedServerState(e,t){for(let i=e.topics.length-1;i>=0;i--){const n=e.topics[i],r=this.findState(n.id)
r&&r.last_read_post_number>0&&(0===n.last_read_post_number||!this.currentUser?.new_new_view_enabled)&&("new"===t?e.topics.splice(i,1):(e.topics[i].set("unseen",!1),e.topics[i].set("prevent_sync",!0)))}},_newStateFromListTopic(e){const t={...this.findState(e.id)||{}}
if(e.unseen)t.last_read_post_number=null
else{if(!e.unread_posts)return void(!e.prevent_sync&&this._maxStateSizeReached()&&this.removeTopic(e.id))
t.last_read_post_number=e.highest_post_number-(e.unread_posts||0)}return t.topic_id=e.id,e.notification_level&&(t.notification_level=e.notification_level),e.highest_post_number&&(t.highest_post_number=e.highest_post_number),e.category&&(t.category_id=e.category.id),e.tags&&(t.tags=e.tags),t},_shouldCompensateState(e,t,i){let n=("new"===t||"unread"===t)&&!e.more_topics_url
return n&&i&&Object.keys(i).forEach((e=>{"ascending"!==e&&"order"!==e&&(n=!1)})),n},_correctMissingState(e,t){const i={}
e.topics.forEach((e=>i[this._stateKey(e.id)]=!0))
for(let n of this.states.keys()){if(i[n])return
const e={...this.findState(n)}
"unread"===t&&f(e)&&(e.last_read_post_number=e.highest_post_number),"new"===t&&h(e)&&(e.last_read_post_number=1),this.modifyState(n,e)}},_processChannelPayload(e){if(["muted","unmuted"].includes(e.message_type))return void this.trackMutedOrUnmutedTopic(e)
if(this.pruneOldMutedAndUnmutedTopics(),this.isMutedTopic(e.topic_id))return
if(this.siteSettings.mute_all_categories_by_default&&!this.isUnmutedTopic(e.topic_id))return
if(["new_topic","latest"].includes(e.message_type)){const t=a.default.currentProp("muted_category_ids")?.concat(a.default.currentProp("indirectly_muted_category_ids"))
if(t&&t.includes(e.payload.category_id)&&!this.isUnmutedTopic(e.topic_id))return}if(["new_topic","latest"].includes(e.message_type)){const t=a.default.currentProp("muted_tags")
if(function(e,t,i){return!(!t||!e)&&("always"===i.remove_muted_tags_from_latest&&e.any((e=>t.includes(e)))||"only_muted"===i.remove_muted_tags_from_latest&&e.every((e=>t.includes(e))))}(e.payload.tags,t,this.siteSettings))return}const t={...this.findState(e)}
if("latest"===e.message_type&&(this.notifyIncoming(e),t.tags!==e.payload.tags&&(this.modifyStateProp(e,"tags",e.payload.tags),this.incrementMessageCount())),"dismiss_new"===e.message_type&&this._dismissNewTopics(e.payload.topic_ids),["new_topic","unread","read"].includes(e.message_type)&&(this.notifyIncoming(e),!(0,r.deepEqual)(t,e.payload))){let i=e.payload
t&&(i=(0,r.deepMerge)(t,e.payload)),"unread"===e.message_type&&(void 0===i.last_read_post_number&&(i.last_read_post_number=i.highest_post_number-1),void 0===i.notification_level&&(i.notification_level=s.NotificationLevels.TRACKING)),this.modifyState(e,i),this.incrementMessageCount()}},_dismissNewTopics(e){e.forEach((e=>{this.modifyStateProp(e,"is_seen",!0)})),this.incrementMessageCount()},_addIncoming(e){this.newIncoming.includes(e)||this.newIncoming.push(e)},_trackedTopics(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return Array.from(this.states.values()).map((t=>{let i=h(t),n=f(t)
if(i||n||e.includeAll)return{topic:t,newTopic:i,unreadTopic:n}})).compact()},_stateKey:e=>"number"==typeof e?`t${e}`:"string"==typeof e&&e.includes("t")?e:`t${e.topic_id}`,_afterStateChange(){this.notifyPropertyChange("states"),Object.values(this.stateChangeCallbacks).forEach((e=>e()))},_maxStateSizeReached(){return this.states.size>=this._trackedTopicLimit}},m(p,"onDeleteMessage",[i.bind],Object.getOwnPropertyDescriptor(p,"onDeleteMessage"),p),m(p,"onRecoverMessage",[i.bind],Object.getOwnPropertyDescriptor(p,"onRecoverMessage"),p),m(p,"onDestroyMessage",[i.bind],Object.getOwnPropertyDescriptor(p,"onDestroyMessage"),p),m(p,"hasIncoming",[d],Object.getOwnPropertyDescriptor(p,"hasIncoming"),p),m(p,"_newStateFromListTopic",[i.bind],Object.getOwnPropertyDescriptor(p,"_newStateFromListTopic"),p),m(p,"_processChannelPayload",[i.bind],Object.getOwnPropertyDescriptor(p,"_processChannelPayload"),p),p))
var _=y
e.default=_})),define("discourse/models/topic",["exports","@ember/object/computed","discourse/lib/computed","discourse/models/action-summary","discourse-common/utils/category-macro","discourse/models/bookmark","@ember/object","I18n","discourse/lib/preload-store","rsvp","discourse/models/rest","discourse/models/site","discourse/models/user","discourse/lib/ajax","discourse-common/lib/object","discourse-common/utils/decorators","discourse/lib/text","discourse/lib/topic-fancy-title","discourse/services/store","discourse-common/lib/get-url","discourse/lib/formatter","discourse/lib/ajax-error","discourse/helpers/share-url","discourse/lib/url","discourse-common/lib/deprecated","discourse/lib/model-transformers"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w,k,x,P,O){var T,S,j,C,z,I,E,M,D,N,L,A,U,F,R,B,$,q,H,W,V,G,K,Y,J,Q,X,Z,ee
function te(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.ID_CONSTRAINT=void 0,e.clearCustomLastUnreadUrlCallbacks=function(){ie.clear()},e.default=void 0,e.loadTopicView=function(e,t){const i=(0,h.deepMerge)({},t),n=`/t/${e.id}`,r=(i.nearPost?`${n}/${i.nearPost}`:n)+".json"
return delete i.nearPost,delete i.__type,delete i.store,a.default.getAndRemove(`topic_${e.id}`,(()=>(0,m.ajax)(r,{data:i}))).then((t=>(e.updateFromJson(t),t)))},e.mergeTopic=function(e,t){return(0,m.ajax)(`/t/${e}/merge-topic`,{type:"POST",data:t}).then(re)},e.movePosts=function(e,t){return(0,m.ajax)(`/t/${e}/move-posts`,{type:"POST",data:t}).then(re)},e.registerCustomLastUnreadUrlCallback=function(e){ie.push(e)}
e.ID_CONSTRAINT=/^\d+$/
let ie=[]
const ne=c.default.extend((T=(0,f.default)("last_read_post_number","highest_post_number"),S=(0,f.default)("posters.firstObject"),j=(0,f.default)("posters.[]"),C=(0,f.default)("posters.[]","participants.[]","allowed_user_count"),z=(0,f.default)("fancy_title"),I=(0,f.default)("bumped_at","createdAt"),E=(0,f.default)("bumpedAt","createdAt"),M=(0,f.default)("created_at"),D=(0,f.default)("tags"),N=(0,f.default)("related_messages"),L=(0,f.default)("suggested_topics"),A=(0,f.default)("posts_count"),U=(0,f.default)("visible"),F=(0,f.default)("id"),R=(0,f.default)("url"),B=(0,f.default)("id","slug"),$=(0,f.default)("unread_posts","new_posts"),q=(0,f.default)("unread_posts","new_posts"),H=(0,f.default)("last_read_post_number","url"),W=(0,f.default)("last_read_post_number","highest_post_number","url"),V=(0,f.default)("highest_post_number","url"),G=(0,f.default)("url"),K=(0,f.default)("url"),Y=(0,f.default)("last_poster.username"),J=(0,f.default)("views"),Q=(0,f.default)("archetype"),X=(0,f.default)("excerpt"),Z=(0,f.default)("excerpt"),ee={message:null,errorLoading:!1,visited:(e,t)=>e>=t,creator:e=>e&&e.user,lastPoster(e){if(e&&e.length>0){return e.filter((e=>e.extras?.includes("latest")))[0]||e.firstObject}},lastPosterUser:(0,t.alias)("lastPoster.user"),lastPosterGroup:(0,t.alias)("lastPoster.primary_group"),allowedGroups:(0,t.alias)("details.allowed_groups"),featuredUsers(e,t,i){let n=e
const r=n.length
if(this.isPrivateMessage&&t&&r<5){let i=0
if(r>1){const e=n[r-1]
e.extras&&e.extras.includes("latest")&&(i=1)}const o=e.map((e=>e.user&&e.user.id)).filter((e=>e))
t.some((e=>!o.includes(e.user_id)&&(n.splice(n.length-i,0,e),5===n.length)))}return this.isPrivateMessage&&i>5&&(n.splice(3,1),n.push({moreCount:"+"+(i-5+1)})),n},fancyTitle(e){return(0,b.fancyTitle)(e,this.siteSettings.support_mixed_text_direction)},bumpedAt:(e,t)=>e?new Date(e):t,bumpedAtTitle:(e,t)=>l.default.t("topic.bumped_at_title",{createdAtDate:(0,v.longDate)(t),bumpedAtDate:(0,v.longDate)(e)}),createdAt:e=>new Date(e),postStream(){return this.store.createRecord("postStream",{id:this.id,topic:this})},visibleListTags(e){if(!e||!this.siteSettings.suppress_overlapping_tags_in_list)return e
const t=this.title.toLowerCase(),i=[]
return e.forEach((function(e){t.includes(e.toLowerCase())||i.push(e)})),i},relatedMessages(e){if(e)return e.map((e=>this.store.createRecord("topic",e)))},suggestedTopics(e){if(e)return e.map((e=>this.store.createRecord("topic",e)))},replyCount:e=>e-1,get details(){return this._details??=this.store.createRecord("topicDetails",{id:this.id,topic:this})},set details(e){return this._details=e},invisible:e=>void 0!==e?!e:void 0,deleted:(0,t.notEmpty)("deleted_at"),searchContext:e=>({type:"topic",id:e}),category:(0,r.default)("category_id"),shareUrl(e){const t=p.default.current()
return(0,k.resolveShareUrl)(e,t)},printUrl:(0,i.fmt)("url","%@/print"),url:(e,t)=>(0===(t=t||"").trim().length&&(t="topic"),`${(0,_.default)("/t/")}${t}/${e}`),urlForPostNumber(e){let t=this.url
return e>0&&(t+=`/${e}`),t},totalUnread:(e,t)=>((0,P.default)("The totalUnread property of the topic model is deprecated",{id:"discourse.topic.totalUnread"}),e||t),displayNewPosts:(e,t)=>((0,P.default)("The displayNewPosts property of the topic model is deprecated",{id:"discourse.topic.totalUnread"}),e||t),lastReadUrl(e){return this.urlForPostNumber(e)},lastUnreadUrl(e,t){let i=null
if(ie.some((e=>{const 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 n=e+1
return n>t&&(n=t),this.urlForPostNumber(n)},lastPostUrl(e){return this.urlForPostNumber(e)},firstPostUrl(){return this.urlForPostNumber(1)},summaryUrl(){const e=this.has_summary?"?filter=summary":""
return`${this.urlForPostNumber(1)}${e}`},lastPosterUrl:e=>(0,x.userPath)(e),viewsHeat(e){return e>=this.siteSettings.topic_views_heat_high?"heatmap-high":e>=this.siteSettings.topic_views_heat_medium?"heatmap-med":e>=this.siteSettings.topic_views_heat_low?"heatmap-low":null},archetypeObject:e=>d.default.currentProp("archetypes").findBy("id",e),isPrivateMessage:(0,t.equal)("archetype","private_message"),isBanner:(0,t.equal)("archetype","banner"),toggleStatus(e){return this.toggleProperty(e),this.saveStatus(e,!!this.get(e))},saveStatus(e,t,i){return"closed"===e&&this.incrementProperty("posts_count"),(0,m.ajax)(`${this.url}/status`,{type:"PUT",data:{status:e,enabled:!!t,until:i}})},makeBanner(){return(0,m.ajax)(`/t/${this.id}/make-banner`,{type:"PUT"}).then((()=>this.set("archetype","banner")))},removeBanner(){return(0,m.ajax)(`/t/${this.id}/remove-banner`,{type:"PUT"}).then((()=>this.set("archetype","regular")))},afterPostBookmarked(e){e.set("bookmarked",!0)},firstPost(){const e=this.postStream
let t=e.get("posts.firstObject")
if(t&&1===t.post_number)return u.Promise.resolve(t)
const i=e.findPostIdForPostNumber(1)
return i?this.postById(i):this.postStream.loadPostByPostNumber(1)},postById(e){const t=this.postStream.findLoadedPost(e)
return t?u.Promise.resolve(t):this.postStream.loadPost(e)},deleteBookmarks(){return(0,m.ajax)(`/t/${this.id}/remove_bookmarks`,{type:"PUT"})},bookmarkCount:(0,t.alias)("bookmarks.length"),removeBookmark(e){this.bookmarks||this.set("bookmarks",[]),this.set("bookmarks",this.bookmarks.filter((t=>(t.id===e&&"Topic"===t.bookmarkable_type&&this.appEvents.trigger("bookmarks:changed",null,t.attachedTo()),t.id!==e)))),this.set("bookmarked",this.bookmarks.length),this.incrementProperty("bookmarksWereChanged")},clearBookmarks(){this.toggleProperty("bookmarked")
const e=this.bookmarks.filterBy("bookmarkable_type","Post").mapBy("bookmarkable_id")
return e.forEach((e=>{const t=this.postStream.findLoadedPost(e)
t&&t.clearBookmark()})),this.set("bookmarks",[]),e},createGroupInvite(e){return(0,m.ajax)(`/t/${this.id}/invite-group`,{type:"POST",data:{group:e}})},createInvite(e,t,i){return(0,m.ajax)(`/t/${this.id}/invite`,{type:"POST",data:{user:e,group_ids:t,custom_message:i}})},generateInviteLink:(e,t,i)=>(0,m.ajax)("/invites",{type:"POST",data:{email:e,skip_email:!0,group_ids:t,topic_id:i}}),destroy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return(0,m.ajax)(`/t/${this.id}`,{data:{context:window.location.pathname,...t},type:"DELETE"}).then((()=>{this.setProperties({deleted_at:new Date,deleted_by:e,"details.can_delete":!1,"details.can_recover":!0,"details.can_permanently_delete":this.siteSettings.can_permanently_delete&&e.admin}),!t.force_destroy&&(e.staff||e.groups.some((e=>e.name===this.category?.reviewable_by_group_name))||this.siteSettings.tl4_delete_posts_and_topics&&e.trust_level>=4)||x.default.redirectTo("/")})).catch(w.popupAjaxError)},recover(){return this.setProperties({deleted_at:null,deleted_by:null,"details.can_delete":!0,"details.can_recover":!1}),(0,m.ajax)(`/t/${this.id}/recover`,{data:{context:window.location.pathname},type:"PUT"})},updateFromJson(e){const t=Object.keys(e)
return e.view_hidden||(this.details.updateFromJson(e.details),t.removeObjects(["details","post_stream"]),e.published_page&&this.set("publishedPage",this.store.createRecord("published-page",e.published_page))),t.forEach((t=>this.set(t,e[t]))),this.bookmarks.length&&this.set("bookmarks",this.bookmarks.map((e=>o.default.create(e)))),this},reload(){return(0,m.ajax)(`/t/${this.id}`,{type:"GET"}).then((e=>this.updateFromJson(e)))},isPinnedUncategorized:(0,t.and)("pinned","category.isUncategorizedCategory"),clearPin(){this.setProperties({pinned:!1,unpinned:!0}),(0,m.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,m.ajax)(`/t/${this.id}/re-pin`,{type:"PUT"}).then(null,(()=>{this.setProperties({pinned:!0,unpinned:!1})}))},escapedExcerpt:e=>(0,g.emojiUnescape)(e),hasExcerpt:(0,t.notEmpty)("excerpt"),excerptTruncated:e=>e&&"&hellip;"===e.slice(-8),readLastPost:(0,i.propertyEqual)("last_read_post_number","highest_post_number"),canClearPin:(0,t.and)("pinned","readLastPost"),canEditTags:(0,t.or)("details.can_edit","details.can_edit_tags"),archiveMessage(){this.set("archiving",!0)
const e=(0,m.ajax)(`/t/${this.id}/archive-message`,{type:"PUT"})
return e.then((e=>{this.set("message_archived",!0),e&&e.group_name&&this.set("inboxGroupName",e.group_name)})).finally((()=>this.set("archiving",!1))),e},moveToInbox(){this.set("archiving",!0)
const e=(0,m.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,m.ajax)(`/t/${this.id}/publish`,{type:"PUT",data:this.getProperties("destination_category_id")}).then((()=>this.set("destination_category_id",null))).catch(w.popupAjaxError)},updateDestinationCategory(e){return this.set("destination_category_id",e),(0,m.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,m.ajax)(`/t/${this.id}/convert-topic/${e}`,i)},resetBumpDate(){return(0,m.ajax)(`/t/${this.id}/reset-bump-date`,{type:"PUT"}).catch(w.popupAjaxError)},updateTags(e){return e&&0!==e.length||(e=[""]),(0,m.ajax)(`/t/${this.id}/tags`,{type:"PUT",data:{tags:e}})}},te(ee,"visited",[T],Object.getOwnPropertyDescriptor(ee,"visited"),ee),te(ee,"creator",[S],Object.getOwnPropertyDescriptor(ee,"creator"),ee),te(ee,"lastPoster",[j],Object.getOwnPropertyDescriptor(ee,"lastPoster"),ee),te(ee,"featuredUsers",[C],Object.getOwnPropertyDescriptor(ee,"featuredUsers"),ee),te(ee,"fancyTitle",[z],Object.getOwnPropertyDescriptor(ee,"fancyTitle"),ee),te(ee,"bumpedAt",[I],Object.getOwnPropertyDescriptor(ee,"bumpedAt"),ee),te(ee,"bumpedAtTitle",[E],Object.getOwnPropertyDescriptor(ee,"bumpedAtTitle"),ee),te(ee,"createdAt",[M],Object.getOwnPropertyDescriptor(ee,"createdAt"),ee),te(ee,"postStream",[f.default],Object.getOwnPropertyDescriptor(ee,"postStream"),ee),te(ee,"visibleListTags",[D],Object.getOwnPropertyDescriptor(ee,"visibleListTags"),ee),te(ee,"relatedMessages",[N],Object.getOwnPropertyDescriptor(ee,"relatedMessages"),ee),te(ee,"suggestedTopics",[L],Object.getOwnPropertyDescriptor(ee,"suggestedTopics"),ee),te(ee,"replyCount",[A],Object.getOwnPropertyDescriptor(ee,"replyCount"),ee),te(ee,"invisible",[U],Object.getOwnPropertyDescriptor(ee,"invisible"),ee),te(ee,"searchContext",[F],Object.getOwnPropertyDescriptor(ee,"searchContext"),ee),te(ee,"shareUrl",[R],Object.getOwnPropertyDescriptor(ee,"shareUrl"),ee),te(ee,"url",[B],Object.getOwnPropertyDescriptor(ee,"url"),ee),te(ee,"totalUnread",[$],Object.getOwnPropertyDescriptor(ee,"totalUnread"),ee),te(ee,"displayNewPosts",[q],Object.getOwnPropertyDescriptor(ee,"displayNewPosts"),ee),te(ee,"lastReadUrl",[H],Object.getOwnPropertyDescriptor(ee,"lastReadUrl"),ee),te(ee,"lastUnreadUrl",[W],Object.getOwnPropertyDescriptor(ee,"lastUnreadUrl"),ee),te(ee,"lastPostUrl",[V],Object.getOwnPropertyDescriptor(ee,"lastPostUrl"),ee),te(ee,"firstPostUrl",[G],Object.getOwnPropertyDescriptor(ee,"firstPostUrl"),ee),te(ee,"summaryUrl",[K],Object.getOwnPropertyDescriptor(ee,"summaryUrl"),ee),te(ee,"lastPosterUrl",[Y],Object.getOwnPropertyDescriptor(ee,"lastPosterUrl"),ee),te(ee,"viewsHeat",[J],Object.getOwnPropertyDescriptor(ee,"viewsHeat"),ee),te(ee,"archetypeObject",[Q],Object.getOwnPropertyDescriptor(ee,"archetypeObject"),ee),te(ee,"escapedExcerpt",[X],Object.getOwnPropertyDescriptor(ee,"escapedExcerpt"),ee),te(ee,"excerptTruncated",[Z],Object.getOwnPropertyDescriptor(ee,"excerptTruncated"),ee),ee))
function re(e){if(e.success)return(0,y.flushMap)(),e
throw new Error("error moving posts topic")}ne.reopenClass({NotificationLevel:{WATCHING:3,TRACKING:2,REGULAR:1,MUTED:0},munge:e=>(delete e.category,e.bookmarks=e.bookmarks||[],e),createActionSummary(e){if(e.actions_summary){const t=s.default.create()
e.actions_summary=e.actions_summary.map((i=>{i.post=e,i.actionType=d.default.current().postActionTypeById(i.id)
const r=n.default.create(i)
return t.set(i.actionType.get("name_key"),r),r})),e.set("actionByName",t)}},update(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
void 0!==t.categoryId&&(t.category_id=t.categoryId,delete t.categoryId),e.get("isPrivateMessage")&&delete t.category_id
const n={...t}
return i.fastEdit&&(n.keep_existing_draft=!0),(0,m.ajax)(e.get("url"),{type:"PUT",data:JSON.stringify(n),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)}))},create(){const e=this._super.apply(this,arguments)
return this.createActionSummary(e),e},find(e,t){let i=(0,_.default)("/t/")+e
t.nearPost&&(i+=`/${t.nearPost}`)
const n={}
return t.postsAfter&&(n.posts_after=t.postsAfter),t.postsBefore&&(n.posts_before=t.postsBefore),t.trackVisit&&(n.track_visit=!0),t.userFilters&&t.userFilters.length>0&&(n.username_filters=[],t.userFilters.forEach((function(e){n.username_filters.push(e)}))),!0===t.summary&&(n.summary=!0),(0,m.ajax)(`${i}.json`,{data:n})},changeOwners(e,t){const i=(0,m.ajax)(`/t/${e}/change-owner`,{type:"POST",data:t}).then((e=>{if(e.success)return e
i.reject(new Error("error changing ownership of posts"))}))
return i},changeTimestamp(e,t){const i=(0,m.ajax)(`/t/${e}/change-timestamp`,{type:"PUT",data:{timestamp:t}}).then((e=>{if(e.success)return e
i.reject(new Error("error updating timestamp of topic"))}))
return i},bulkOperation(e,t,i){const n={topic_ids:e.mapBy("id"),operation:t,tracked:i}
return(0,m.ajax)("/topics/bulk",{type:"PUT",data:n})},bulkOperationByFilter(e,t,i,n){const r={filter:e,operation:t,tracked:n}
return i&&(i.categoryId&&(r.category_id=i.categoryId),i.includeSubcategories&&(r.include_subcategories=!0),i.tagName&&(r.tag_name=i.tagName),i.private_message_inbox&&(r.private_message_inbox=i.private_message_inbox,i.group_name&&(r.group_name=i.group_name))),(0,m.ajax)("/topics/bulk",{type:"PUT",data:r})},resetNew(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{tracked:n,tag:r,topicIds:o}={tracked:!1,tag:null,topicIds:null,...i}
const s={tracked:n}
return e&&(s.category_id=e.id,s.include_subcategories=t),r&&(s.tag_id=r.id),o&&(s.topic_ids=o),i.dismissPosts&&(s.dismiss_posts=i.dismissPosts),i.dismissTopics&&(s.dismiss_topics=i.dismissTopics),i.untrack&&(s.untrack=i.untrack),(0,m.ajax)("/topics/reset-new",{type:"PUT",data:s})},pmResetNew(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
const t={}
return e.topicIds&&(t.topic_ids=e.topicIds),e.inbox&&(t.inbox=e.inbox,e.groupName&&(t.group_name=e.groupName)),(0,m.ajax)("/topics/pm-reset-new",{type:"PUT",data:t})},idForSlug:e=>(0,m.ajax)(`/t/id_for/${e}`),setSlowMode(e,t,i){const n={seconds:t}
return n.enabled_until=i,(0,m.ajax)(`/t/${e}/slow_mode`,{type:"PUT",data:n})},async applyTransformations(e){await(0,O.applyModelTransformations)("topic",e)}})
var oe=ne
e.default=oe})),define("discourse/models/trust-level",["exports","@ember/object","I18n"],(function(e,t,i){var n
function r(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let o=(r((n=class{constructor(e,t){this.id=e,this._key=t}get name(){return i.default.t(`trust_levels.names.${this._key}`)}get detailedName(){return i.default.t("trust_levels.detailed_name",{level:this.id,name:this.name})}}).prototype,"name",[t.computed],Object.getOwnPropertyDescriptor(n.prototype,"name"),n.prototype),r(n.prototype,"detailedName",[t.computed],Object.getOwnPropertyDescriptor(n.prototype,"detailedName"),n.prototype),n)
e.default=o})),define("discourse/models/user-action-group",["exports","@ember/object"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({push(e){return this.items||(this.items=[]),this.items.push(e)}})
e.default=i})),define("discourse/models/user-action-stat",["exports","discourse/models/rest","discourse/models/user-action","discourse-common/utils/decorators","discourse/lib/computed"],(function(e,t,i,n,r){var o,s,l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u=t.default.extend((o=(0,n.default)("action_type"),s=(0,n.default)("action_type"),a(l={isPM:e=>e===i.default.TYPES.messages_sent||e===i.default.TYPES.messages_received,description:(0,r.i18n)("action_type","user_action_groups.%@"),isResponse:e=>e===i.default.TYPES.replies||e===i.default.TYPES.quotes},"isPM",[o],Object.getOwnPropertyDescriptor(l,"isPM"),l),a(l,"isResponse",[s],Object.getOwnPropertyDescriptor(l,"isResponse"),l),l))
e.default=u})),define("discourse/models/user-action",["exports","@ember/object/computed","discourse-common/utils/decorators","discourse-common/utils/category-macro","discourse/models/rest","discourse/models/user","discourse/models/user-action-group","discourse/lib/utilities","discourse/lib/url"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m,h,f,g,b,y
function _(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v={likes_given:1,likes_received:2,bookmarks:3,topics:4,posts:5,replies:6,mentions:7,quotes:9,edits:11,messages_sent:12,messages_received:13},w={}
Object.keys(v).forEach((e=>w[e]=v[e]))
const k=r.default.extend((u=(0,i.default)("action_type"),c=(0,i.default)("username"),d=(0,i.default)("target_username"),p=(0,i.default)("target_username"),m=(0,i.default)("username"),h=(0,i.default)("usernameLower"),f=(0,i.default)(),g=(0,i.default)(),b=(0,i.default)("childGroups","childGroups.likes.items","childGroups.likes.items.[]","childGroups.stars.items","childGroups.stars.items.[]","childGroups.edits.items","childGroups.edits.items.[]","childGroups.bookmarks.items","childGroups.bookmarks.items.[]"),_(y={category:(0,n.default)("category_id"),descriptionKey(e){return null===e||k.TO_SHOW.includes(e)?this.isPM?this.sameUser?"sent_by_you":"sent_by_user":this.sameUser?"posted_by_you":"posted_by_user":this.topicType?this.sameUser?"you_posted_topic":"user_posted_topic":this.postReplyType?this.reply_to_post_number?this.sameUser?"you_replied_to_post":"user_replied_to_post":this.sameUser?"you_replied_to_topic":"user_replied_to_topic":this.mentionType?this.sameUser?"you_mentioned_user":this.targetUser?"user_mentioned_you":"user_mentioned_user":void 0},sameUser:e=>e===o.default.currentProp("username"),targetUser:e=>e===o.default.currentProp("username"),presentName:(0,t.or)("name","username"),targetDisplayName:(0,t.or)("target_name","target_username"),actingDisplayName:(0,t.or)("acting_name","acting_username"),targetUserUrl:e=>(0,a.userPath)(e),usernameLower:e=>e.toLowerCase(),userUrl:e=>(0,a.userPath)(e),postUrl(){return(0,l.postUrl)(this.slug,this.topic_id,this.post_number)},replyUrl(){return(0,l.postUrl)(this.slug,this.topic_id,this.reply_to_post_number)},replyType:(0,t.equal)("action_type",v.replies),postType:(0,t.equal)("action_type",v.posts),topicType:(0,t.equal)("action_type",v.topics),bookmarkType:(0,t.equal)("action_type",v.bookmarks),messageSentType:(0,t.equal)("action_type",v.messages_sent),messageReceivedType:(0,t.equal)("action_type",v.messages_received),mentionType:(0,t.equal)("action_type",v.mentions),isPM:(0,t.or)("messageSentType","messageReceivedType"),postReplyType:(0,t.or)("postType","replyType"),addChild(e){let t=this.childGroups
t||(t={likes:s.default.create({icon:"heart"}),stars:s.default.create({icon:"star"}),edits:s.default.create({icon:"pencil-alt"}),bookmarks:s.default.create({icon:"bookmark"})}),this.set("childGroups",t)
const i=t[function(){switch(e.action_type){case v.likes_given:case v.likes_received:return"likes"
case v.edits:return"edits"
case v.bookmarks:return"bookmarks"}}()]
i&&i.push(e)},children(){const e=this.childGroups
let t=[]
return e&&(t=[e.likes,e.stars,e.edits,e.bookmarks].filter((function(e){return e.get("items")&&e.get("items").length>0}))),t},switchToActing(){this.setProperties({username:this.acting_username,name:this.actingDisplayName})}},"descriptionKey",[u],Object.getOwnPropertyDescriptor(y,"descriptionKey"),y),_(y,"sameUser",[c],Object.getOwnPropertyDescriptor(y,"sameUser"),y),_(y,"targetUser",[d],Object.getOwnPropertyDescriptor(y,"targetUser"),y),_(y,"targetUserUrl",[p],Object.getOwnPropertyDescriptor(y,"targetUserUrl"),y),_(y,"usernameLower",[m],Object.getOwnPropertyDescriptor(y,"usernameLower"),y),_(y,"userUrl",[h],Object.getOwnPropertyDescriptor(y,"userUrl"),y),_(y,"postUrl",[f],Object.getOwnPropertyDescriptor(y,"postUrl"),y),_(y,"replyUrl",[g],Object.getOwnPropertyDescriptor(y,"replyUrl"),y),_(y,"children",[b],Object.getOwnPropertyDescriptor(y,"children"),y),y))
k.reopenClass({collapseStream(e){const t={},i=[]
let n=0
return e.forEach((e=>{const r=e.topic_id+"-"+e.post_number,o=t[r]
if(void 0===o){let o
k.TO_COLLAPSE.includes(e.action_type)?(o=k.create(e),e.switchToActing(),o.addChild(e)):o=e,t[r]=n,i[n]=o,n+=1}else k.TO_COLLAPSE.includes(e.action_type)?(e.switchToActing(),i[o].addChild(e)):i[o].setProperties(e.getProperties("action_type","description"))})),i},TYPES:v,TYPES_INVERTED:w,TO_COLLAPSE:[v.likes_given,v.likes_received,v.edits,v.bookmarks],TO_SHOW:[v.likes_given,v.likes_received,v.edits,v.bookmarks,v.messages_sent,v.messages_received]})
var x=k
e.default=x})),define("discourse/models/user-badge",["exports","discourse/models/badge","@ember/object","rsvp","discourse/models/topic","discourse/models/user","discourse/lib/ajax","discourse/lib/ajax-error","discourse-common/utils/decorators"],(function(e,t,i,n,r,o,s,l,a){var u
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=i.default.extend((d=u={postUrl(){if(this.topic_title)return"/t/-/"+this.topic_id+"/"+this.post_number},revoke(){return(0,s.ajax)("/user_badges/"+this.id,{type:"DELETE"})},favorite(){return this.toggleProperty("is_favorite"),(0,s.ajax)(`/user_badges/${this.id}/toggle_favorite`,{type:"PUT"}).catch((e=>{this.toggleProperty("is_favorite"),(0,l.popupAjaxError)(e)}))}},p="postUrl",m=[a.default],h=Object.getOwnPropertyDescriptor(u,"postUrl"),f=u,g={},Object.keys(h).forEach((function(e){g[e]=h[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=m.slice().reverse().reduce((function(e,t){return t(d,p,e)||e}),g),f&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(f):void 0,g.initializer=void 0),void 0===g.initializer&&(Object.defineProperty(d,p,g),g=null),u))
var d,p,m,h,f,g
c.reopenClass({createFromJson(e){void 0===e.users&&(e.users=[])
let i={}
e.users.forEach((function(e){i[e.id]=o.default.create(e)})),void 0===e.topics&&(e.topics=[])
let n={}
e.topics.forEach((function(e){n[e.id]=r.default.create(e)})),void 0===e.badges&&(e.badges=[])
let s={}
t.default.createFromJson(e).forEach((function(e){s[e.get("id")]=e}))
let l=[]
return l="user_badge"in e?[e.user_badge]:e.user_badge_info&&e.user_badge_info.user_badges||e.user_badges,l=l.map((function(e){let t=c.create(e),r=Date.parse(t.get("granted_at"))
return t.set("grantedAt",r),t.set("badge",s[t.get("badge_id")]),t.get("user_id")&&t.set("user",i[t.get("user_id")]),t.get("granted_by_id")&&t.set("granted_by",i[t.get("granted_by_id")]),t.get("topic_id")&&t.set("topic",n[t.get("topic_id")]),t})),"user_badge"in e?l[0]:(e.user_badge_info&&(l.grant_count=e.user_badge_info.grant_count,l.username=e.user_badge_info.username),l)},findByUsername(e,t){if(!e)return n.Promise.resolve([])
let i="/user-badges/"+e+".json"
return t&&t.grouped&&(i+="?grouped=true"),(0,s.ajax)(i).then((function(e){return c.createFromJson(e)}))},findByBadgeId:(e,t)=>(t||(t={}),t.badge_id=e,(0,s.ajax)("/user_badges.json",{data:t}).then((function(e){return c.createFromJson(e)}))),grant:(e,t,i)=>(0,s.ajax)("/user_badges",{type:"POST",data:{username:t,badge_id:e,reason:i}}).then((function(e){return c.createFromJson(e)}))})
var b=c
e.default=b})),define("discourse/models/user-draft",["exports","discourse/models/composer","I18n","discourse/models/rest","discourse/models/user","discourse-common/utils/decorators","discourse/lib/utilities","discourse/lib/url"],(function(e,t,i,n,r,o,s,l){var a,u,c,d,p
function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var h=n.default.extend((a=(0,o.default)("draft_username"),u=(0,o.default)("username_lower"),c=(0,o.default)("topic_id"),d=(0,o.default)("draft_key"),m(p={editableDraft:e=>e===r.default.currentProp("username"),userUrl:e=>(0,l.userPath)(e),postUrl(e){if(e)return(0,s.postUrl)(this.slug,this.topic_id,this.post_number)},draftType(e){switch(e){case t.NEW_TOPIC_KEY:return i.default.t("drafts.new_topic")
case t.NEW_PRIVATE_MESSAGE_KEY:return i.default.t("drafts.new_private_message")
default:return!1}}},"editableDraft",[a],Object.getOwnPropertyDescriptor(p,"editableDraft"),p),m(p,"userUrl",[u],Object.getOwnPropertyDescriptor(p,"userUrl"),p),m(p,"postUrl",[c],Object.getOwnPropertyDescriptor(p,"postUrl"),p),m(p,"draftType",[d],Object.getOwnPropertyDescriptor(p,"draftType"),p),p))
e.default=h})),define("discourse/models/user-drafts-stream",["exports","discourse-common/utils/decorators","discourse/lib/ajax","discourse/lib/text","discourse/lib/utilities","discourse/models/composer","discourse/models/rest","discourse/models/user-draft","rsvp"],(function(e,t,i,n,r,o,s,l,a){var u,c
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var d,p,m,h,f,g,b=s.default.extend((u=(0,t.default)("content.length","loading"),c={limit:30,loading:!1,hasMore:!1,content:null,init(){this._super(...arguments),this.reset()},reset(){this.setProperties({loading:!1,hasMore:!0,content:[]})},noContent:(e,t)=>0===e&&!t,remove(e){this.set("content",this.content.filter((t=>t.draft_key!==e.draft_key)))},findItems(e){if(e&&this.set("site",e),this.loading||!this.hasMore)return a.Promise.resolve()
this.set("loading",!0)
const t=`/drafts.json?offset=${this.content.length}&limit=${this.limit}`
return(0,i.ajax)(t).then((e=>{if(!e)return
if(!e.drafts)return
this.set("hasMore",e.drafts.size>=this.limit)
const t=e.drafts.map((e=>(e.data=JSON.parse(e.data),(0,n.cookAsync)(e.data.reply).then((t=>{e.excerpt=(0,n.excerpt)(t.string,300),e.post_number=e.data.postId||null,e.draft_key!==o.NEW_PRIVATE_MESSAGE_KEY&&e.draft_key!==o.NEW_TOPIC_KEY||(e.title=e.data.title),e.title=(0,n.emojiUnescape)((0,r.escapeExpression)(e.title)),e.data.categoryId&&(e.category=this.site.categories.findBy("id",e.data.categoryId)||null),this.content.push(l.default.create(e))})))))
return a.Promise.all(t)})).finally((()=>{this.set("loading",!1)}))}},d=c,p="noContent",m=[u],h=Object.getOwnPropertyDescriptor(c,"noContent"),f=c,g={},Object.keys(h).forEach((function(e){g[e]=h[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=m.slice().reverse().reduce((function(e,t){return t(d,p,e)||e}),g),f&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(f):void 0,g.initializer=void 0),void 0===g.initializer&&(Object.defineProperty(d,p,g),g=null),c))
e.default=b})),define("discourse/models/user-menu-reviewable",["exports","discourse/models/rest","@glimmer/tracking"],(function(e,t,i){var n,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let o=(n=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="pending",n=this,(i=r)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}},s=n.prototype,l="pending",a=[i.tracked],u={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),r=d,n)
var s,l,a,u,c,d
e.default=o})),define("discourse/models/user-posts-stream",["exports","@ember/object","rsvp","discourse/models/user-action","discourse/lib/ajax","discourse-common/utils/decorators","discourse/lib/computed"],(function(e,t,i,n,r,o,s){var l,a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u,c,d,p,m,h,f=t.default.extend((l=(0,o.on)("init"),a={loaded:!1,_initialize(){this.setProperties({itemsLoaded:0,canLoadMore:!0,content:[]})},url:(0,s.url)("user.username_lower","filter","itemsLoaded","/posts/%@/%@?offset=%@"),filterBy(e){return this.loaded&&this.filter===e.filter?i.Promise.resolve():(this.setProperties(Object.assign({itemsLoaded:0,content:[],lastLoadedUrl:null},e)),this.findItems())},findItems(){return this.loading||!this.canLoadMore?i.Promise.reject():(this.set("loading",!0),(0,r.ajax)(this.url).then((e=>{if(e){const t=e.map((e=>n.default.create(e)))
this.content.pushObjects(t),this.setProperties({loaded:!0,itemsLoaded:this.itemsLoaded+t.length,canLoadMore:t.length>0})}})).finally((()=>this.set("loading",!1))))}},u=a,c="_initialize",d=[l],p=Object.getOwnPropertyDescriptor(a,"_initialize"),m=a,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),a))
e.default=f})),define("discourse/models/user-stream",["exports","discourse-common/utils/decorators","@ember/array","rsvp","discourse/models/rest","discourse/models/user-action","discourse/lib/ajax","discourse/lib/text","discourse/lib/utilities","discourse/lib/computed"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var f=r.default.extend((c=(0,t.on)("init"),d=(0,t.default)("filter"),p=(0,t.default)("loaded","content.[]"),h(m={loaded:!1,_initialize(){this.setProperties({itemsLoaded:0,content:[]})},filterParam:e=>e===o.default.TYPES.replies?[o.default.TYPES.replies,o.default.TYPES.quotes].join(","):e||[o.default.TYPES.topics,o.default.TYPES.posts].join(","),baseUrl:(0,u.url)("itemsLoaded","user.username_lower","/user_actions.json?offset=%@&username=%@"),filterBy(e){return this.setProperties(Object.assign({itemsLoaded:0,content:[],lastLoadedUrl:null},e)),this.findItems()},noContent:(e,t)=>e&&0===t.length,remove(e){this.content.forEach((t=>{["likes","stars","edits","bookmarks"].forEach((i=>{const n=t.get(`childGroups.${i}.items`)
n&&n.removeObject(e)}))}))
const t=this.content.filter((e=>["likes","stars","edits","bookmarks"].some((t=>e.get(`childGroups.${t}.items.length`)>0))))
this.setProperties({content:t,itemsLoaded:t.length})},findItems(){let e=this.baseUrl
this.filterParam&&(e+=`&filter=${this.filterParam}`),this.actingUsername&&(e+=`&acting_username=${this.actingUsername}`)
return this.lastLoadedUrl===e||this.loading?n.Promise.resolve():(this.set("loading",!0),(0,s.ajax)(e).then((e=>{if(e&&e.user_actions){const t=(0,i.A)()
e.user_actions.forEach((e=>{e.title=(0,l.emojiUnescape)((0,a.escapeExpression)(e.title)),t.pushObject(o.default.create(e))})),this.content.pushObjects(o.default.collapseStream(t)),this.setProperties({itemsLoaded:this.itemsLoaded+e.user_actions.length})}})).finally((()=>this.setProperties({loaded:!0,loading:!1,lastLoadedUrl:e}))))}},"_initialize",[c],Object.getOwnPropertyDescriptor(m,"_initialize"),m),h(m,"filterParam",[d],Object.getOwnPropertyDescriptor(m,"filterParam"),m),h(m,"noContent",[p],Object.getOwnPropertyDescriptor(m,"noContent"),m),m))
e.default=f})),define("discourse/models/user",["exports","@ember/object","@ember/string","discourse/lib/cookie","discourse/lib/utilities","@ember/object/computed","discourse-common/lib/get-url","@ember/array","discourse/models/badge","discourse/models/bookmark","discourse/models/category","discourse/models/group","I18n","discourse/lib/notification-levels","discourse/lib/preload-store","rsvp","discourse/models/rest","discourse/mixins/singleton","discourse/models/site","discourse/models/user-action","discourse/models/user-action-stat","discourse/models/user-badge","discourse/models/user-drafts-stream","discourse/models/user-posts-stream","discourse/models/user-stream","discourse/lib/ajax","discourse-common/lib/deprecated","discourse-common/utils/decorators","discourse/lib/text","discourse-common/lib/get-owner","@ember/utils","discourse/lib/formatter","discourse/lib/computed","discourse/lib/url","@ember/template","@ember/object/evented","@ember/runloop","discourse-common/lib/later","discourse-common/config/environment","discourse/lib/user-tips","@ember/object/compat"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w,k,x,P,O,T,S,j,C,z,I,E,M,D,N,L,A,U,F,R){var B,$,q,H,W,V,G,K,Y,J,Q,X,Z,ee,te,ie,ne,re,oe,se,le,ae,ue,ce,de,pe,me,he,fe,ge,be,ye,_e,ve,we,ke,xe
function Pe(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.SECOND_FACTOR_METHODS=void 0,e.addSaveableUserField=function(e){je.push(e)},e.addSaveableUserOptionField=function(e){Ce.push(e)},e.default=void 0,e.extendTextSizeCookie=function(){const e=(0,n.default)(Oe)
e&&(0,n.default)(Oe,e,{path:"/",expires:Te})}
e.SECOND_FACTOR_METHODS={TOTP:1,BACKUP_CODE:2,SECURITY_KEY:3}
const Oe="text_size",Te=365
const Se=e=>moment().diff(e,"years")<-100
let je=["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"]
let Ce=["mailing_list_mode","mailing_list_mode_frequency","external_links_in_new_tab","email_digests","email_in_reply_to","email_messages_level","email_level","email_previous_replies","color_scheme_id","dark_scheme_id","dynamic_favicon","enable_quoting","enable_defer","automatically_unpin_topics","digest_after_minutes","new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying","like_notification_frequency","include_tl0_in_digests","theme_ids","allow_private_messages","enable_allowed_pm_users","homepage_id","hide_profile_and_presence","text_size","title_count_mode","timezone","skip_new_user_tips","seen_popups","default_calendar","bookmark_auto_delete_preference","sidebar_link_to_filtered_list","sidebar_show_count_of_new_items","watched_precedence_over_muted"]
function ze(e){return(0,t.computed)(`user_option.${e}`,{get(e){return(0,T.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,T.default)(`Setting ${e} property of user object is deprecated. Use user_option object instead`,{id:"discourse.user.userOptions",since:"2.9.0.beta12",dropFrom:"3.0.0.beta1"}),this.user_option||this.set("user_option",{}),this.set(`user_option.${e}`,t)}})}const Ie=g.default.extend((B=(0,S.default)("can_be_deleted","post_count"),$=(0,S.default)(),q=(0,S.default)(),H=(0,S.default)(),W=(0,S.default)(),V=(0,S.default)("username_lower"),G=(0,S.default)("username","name"),K=(0,S.default)("profile_background_upload_url"),Y=(0,S.default)(),J=(0,S.default)(),Q=(0,S.default)(),X=(0,S.default)(),Z=(0,S.default)(),ee=(0,S.default)("username"),te=(0,S.default)("trust_level"),ie=(0,S.default)("previous_visit_at"),ne=(0,S.default)("suspended_till"),re=(0,S.default)("suspended_till"),oe=(0,S.default)("silenced_till"),se=(0,S.default)("suspended_till"),le=(0,S.default)("silenced_till"),ae=(0,S.default)("sidebar_tags.[]"),ue=(0,S.default)("groups.[]"),ce=(0,S.default)("filteredGroups","numGroupsToDisplay"),de=(0,S.default)("statsExcludingPms.@each.count"),pe=(0,S.default)("stats.@each.isPM"),me=(0,S.default)("can_delete_account"),he=(0,S.default)("groups.@each.title","badges.[]"),fe=(0,S.default)("groups.[]"),ge=(0,S.default)("user_option.text_size_seq","user_option.text_size"),be=(0,S.default)("second_factor_enabled","staff"),ye=(0,S.default)("tracked_tags.[]","watched_tags.[]","watching_first_post_tags.[]"),Pe(_e={mailing_list_mode:ze("mailing_list_mode"),external_links_in_new_tab:ze("external_links_in_new_tab"),enable_quoting:ze("enable_quoting"),dynamic_favicon:ze("dynamic_favicon"),automatically_unpin_topics:ze("automatically_unpin_topics"),likes_notifications_disabled:ze("likes_notifications_disabled"),hide_profile_and_presence:ze("hide_profile_and_presence"),title_count_mode:ze("title_count_mode"),enable_defer:ze("enable_defer"),timezone:ze("timezone"),skip_new_user_tips:ze("skip_new_user_tips"),default_calendar:ze("default_calendar"),bookmark_auto_delete_preference:ze("bookmark_auto_delete_preference"),seen_popups:ze("seen_popups"),should_be_redirected_to_top:ze("should_be_redirected_to_top"),redirected_to_top:ze("redirected_to_top"),treat_as_new_topic_start_date:ze("treat_as_new_topic_start_date"),hasPMs:(0,o.gt)("private_messages_stats.all",0),hasStartedPMs:(0,o.gt)("private_messages_stats.mine",0),hasUnreadPMs:(0,o.gt)("private_messages_stats.unread",0),canBeDeleted(e,t){const i=this.siteSettings.delete_all_posts_max
return e&&t<=i},stream(){return P.default.create({user:this})},bookmarks(){return u.default.create({user:this})},postsStream(){return x.default.create({user:this})},userDraftsStream(){return k.default.create({user:this})},staff:(0,t.computed)("admin","moderator",{get(){return this.admin||this.moderator},set(){return this.admin||this.moderator}}),destroySession(){return(0,O.ajax)(`/session/${this.username}`,{type:"DELETE"})},searchContext(e){return{type:"user",id:e,user:this}},displayName(e,t){return this.siteSettings.enable_names&&!(0,z.isEmpty)(t)?t:e},profileBackgroundUrl(e){return(0,z.isEmpty)(e)||!this.siteSettings.allow_profile_backgrounds?(0,D.htmlSafe)(""):(0,D.htmlSafe)("background-image: url("+(0,s.getURLWithCDN)(e)+")")},path(){return(0,M.userPath)(this.username_lower)},userApiKeys(){const e=this.user_api_keys
if(e)return e.map((e=>{let i=t.default.create(e)
return i.revoke=()=>{this.revokeApiKey(i)},i.undoRevoke=()=>{this.undoRevokeApiKey(i)},i}))},revokeApiKey:e=>(0,O.ajax)("/user-api-key/revoke",{type:"POST",data:{id:e.get("id")}}).then((()=>{e.set("revoked",!0)})),undoRevokeApiKey:e=>(0,O.ajax)("/user-api-key/undo-revoke",{type:"POST",data:{id:e.get("id")}}).then((()=>{e.set("revoked",!1)})),pmPath(e){const t=this.id,i=this.username_lower,n=e&&e.get("details"),r=n&&n.get("allowed_users"),o=n&&n.get("allowed_groups")
return!o||r&&r.findBy("id",t)?(0,M.userPath)(`${i}/messages`):o&&o[0]?(0,M.userPath)(`${i}/messages/group/${o[0].name}`):void 0},adminPath:(0,E.url)("id","username_lower","/admin/users/%@1/%@2"),mutedTopicsPath:()=>"latest"===(0,r.defaultHomepage)()?(0,s.default)("/?state=muted"):(0,s.default)("/latest?state=muted"),watchingTopicsPath:()=>"latest"===(0,r.defaultHomepage)()?(0,s.default)("/?state=watching"):(0,s.default)("/latest?state=watching"),trackingTopicsPath:()=>"latest"===(0,r.defaultHomepage)()?(0,s.default)("/?state=tracking"):(0,s.default)("/latest?state=tracking"),username_lower:e=>e.toLowerCase(),trustLevel:e=>y.default.currentProp("trustLevels").findBy("id",parseInt(e,10)),isBasic:(0,o.equal)("trust_level",0),isRegular:(0,o.equal)("trust_level",3),isLeader:(0,o.equal)("trust_level",4),canManageTopic:(0,o.or)("staff","isLeader"),previousVisitAt:e=>new Date(e),suspended:e=>e&&moment(e).isAfter(),suspendedForever:Se,silencedForever:Se,suspendedTillDate:I.longDate,silencedTillDate:I.longDate,sidebarCategoryIds:(0,o.alias)("sidebar_category_ids"),sidebarTags:e=>e&&0!==e.length?e.sort(((e,t)=>e.name.localeCompare(t.name))):[],sidebarSections:(0,o.alias)("sidebar_sections"),sidebarTagNames:(0,o.mapBy)("sidebarTags","name"),changeUsername(e){return(0,O.ajax)((0,M.userPath)(`${this.username_lower}/preferences/username`),{type:"PUT",data:{new_username:e}})},addEmail(e){return(0,O.ajax)((0,M.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,O.ajax)((0,M.userPath)(`${this.username_lower}/preferences/email`),{type:"PUT",data:{email:e}}).then((()=>{this.unconfirmed_emails||this.set("unconfirmed_emails",[]),this.unconfirmed_emails.pushObject(e)}))},save(e){const n=this.getProperties(je.filter((t=>!e||e.includes(t))));(e?Ce.filter((t=>e.includes(t))):Ce).forEach((e=>{n[e]=this.get(`user_option.${e}`)}))
const r={}
return["muted","regular","watched","tracked","watched_first_post"].forEach((t=>{if(void 0===e||e.includes(`${t}_category_ids`)){const e=this.get(`${(0,i.camelize)(t)}Categories`)
if(e){const i=e.map((e=>e.get("id")))
r[`${t}_category_ids`]=i,n[`${t}_category_ids`]=0===i.length?[-1]:i}}})),["muted_tags","tracked_tags","watched_tags","watching_first_post_tags"].forEach((t=>{(void 0===e||e.includes(t))&&(n[t]=this.get(t)?this.get(t).join(","):"")})),["sidebar_category_ids","sidebar_tag_names"].forEach((e=>{0===n[e]?.length&&(n[e]=null)})),this.set("isSaving",!0),(0,O.ajax)((0,M.userPath)(`${this.username_lower}.json`),{data:n,type:"PUT"}).then((e=>(this.setProperties(r),this.setProperties((0,t.getProperties)(e.user,"bio_excerpt")),e))).finally((()=>{this.set("isSaving",!1)}))},setPrimaryEmail(e){return(0,O.ajax)((0,M.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,O.ajax)((0,M.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,O.ajax)("/session/forgot_password",{dataType:"json",data:{login:this.email||this.username},type:"POST"})},loadSecondFactorCodes:e=>(0,O.ajax)("/u/second_factors.json",{data:{password:e},type:"POST"}),requestSecurityKeyChallenge:()=>(0,O.ajax)("/u/create_second_factor_security_key.json",{type:"POST"}),registerSecurityKey:e=>(0,O.ajax)("/u/register_second_factor_security_key.json",{data:e,type:"POST"}),createSecondFactorTotp:()=>(0,O.ajax)("/u/create_second_factor_totp.json",{type:"POST"}),enableSecondFactorTotp:(e,t)=>(0,O.ajax)("/u/enable_second_factor_totp.json",{data:{second_factor_token:e,name:t},type:"POST"}),disableAllSecondFactors:()=>(0,O.ajax)("/u/disable_second_factor.json",{type:"PUT"}),updateSecondFactor:(e,t,i,n)=>(0,O.ajax)("/u/second_factor.json",{data:{second_factor_target:n,name:t,disable:i,id:e},type:"PUT"}),updateSecurityKey:(e,t,i)=>(0,O.ajax)("/u/security_key.json",{data:{name:t,disable:i,id:e},type:"PUT"}),toggleSecondFactor:(e,t,i,n)=>(0,O.ajax)("/u/second_factor.json",{data:{second_factor_token:e,second_factor_method:t,second_factor_target:i,enable:n},type:"PUT"}),generateSecondFactorCodes:()=>(0,O.ajax)("/u/second_factors_backup.json",{type:"PUT"}),revokeAssociatedAccount(e){return(0,O.ajax)((0,M.userPath)(`${this.username}/preferences/revoke-account`),{data:{provider_name:e},type:"POST"})},async loadUserAction(e){const t=await(0,O.ajax)(`/user_actions/${e}.json`)
if(!t?.user_action)return
const i=t.user_action
if((this.get("stream.filter")||i.action_type)!==i.action_type)return
if(!this.get("stream.filter")&&!this.inAllStream(i))return
i.title=(0,j.emojiUnescape)((0,r.escapeExpression)(i.title))
const n=_.default.collapseStream([_.default.create(i)])
this.stream.set("itemsLoaded",this.stream.get("itemsLoaded")+1),this.stream.get("content").insertAt(0,n[0])},inAllStream:e=>e.action_type===_.default.TYPES.posts||e.action_type===_.default.TYPES.topics,numGroupsToDisplay:2,filteredGroups(){return(this.groups||[]).filter((e=>!e.automatic||"moderators"===e.name))},groupsWithMessages:(0,o.filterBy)("groups","has_messages",!0),displayGroups(e,t){const i=e.slice(0,t)
return 0===i.length?null:i},isInAnyGroups(e){if(this.groups)return e.includes(0)||this.groups.mapBy("id").some((t=>e.includes(t)))},statsCountNonPM(){if((0,z.isEmpty)(this.statsExcludingPms))return 0
let e=0
return this.statsExcludingPms.forEach((t=>{this.inAllStream(t)&&(e+=t.count)})),e},statsExcludingPms(){return(0,z.isEmpty)(this.stats)?[]:this.stats.rejectBy("isPM")},findDetails(e){const t=this
return h.default.getAndRemove(`user_${t.get("username")}`,(()=>{if(e&&e.existingRequest)return e.existingRequest
const i=e&&e.forCard
e&&delete e.forCard
const n=i?`${t.get("username")}/card.json`:`${t.get("username")}.json`
return(0,O.ajax)((0,M.userPath)(n),{data:e})})).then((e=>{if((0,z.isEmpty)(e.user.stats)||(e.user.stats=Ie.groupStats(e.user.stats.map((e=>(e.count&&(e.count=parseInt(e.count,10)),v.default.create(e)))))),!(0,z.isEmpty)(e.user.groups)&&!(0,z.isEmpty)(e.user.group_users)){const t=[]
for(let i=0;i<e.user.groups.length;i++){const n=d.default.create(e.user.groups[i])
n.group_user=e.user.group_users[i],t.push(n)}e.user.groups=t}if(e.user.invited_by&&(e.user.invited_by=Ie.create(e.user.invited_by)),!(0,z.isEmpty)(e.user.featured_user_badge_ids)){const t={}
w.default.createFromJson(e).forEach((e=>{t[e.get("id")]=e})),e.user.featured_user_badges=e.user.featured_user_badge_ids.map((e=>t[e]))}return e.user.card_badge&&(e.user.card_badge=a.default.create(e.user.card_badge)),t.setProperties(e.user),t}))},findStaffInfo(){return Ie.currentProp("staff")?(0,O.ajax)((0,M.userPath)(`${this.username_lower}/staff-info.json`)).then((e=>{this.setProperties(e)})):f.Promise.resolve(null)},pickAvatar(e,t){return(0,O.ajax)((0,M.userPath)(`${this.username_lower}/preferences/avatar/pick`),{type:"PUT",data:{upload_id:e,type:t}})},selectAvatar(e){return(0,O.ajax)((0,M.userPath)(`${this.username_lower}/preferences/avatar/select`),{type:"PUT",data:{url:e}})},isAllowedToUploadAFile(e){const t="image"===e?"embedded_media":"attachments"
return this.staff||this.trust_level>0||this.siteSettings[`newuser_max_${t}`]>0},createInvite:(e,t,i)=>(0,O.ajax)("/invites",{type:"POST",data:{email:e,group_ids:t,custom_message:i}}),generateInviteLink:(e,t,i)=>(0,O.ajax)("/invites",{type:"POST",data:{email:e,skip_email:!0,group_ids:t,topic_id:i}}),get mutedCategories(){return c.default.findByIds(this.get("muted_category_ids"))},set mutedCategories(e){this.set("muted_category_ids",e.map((e=>e.id)))},get regularCategories(){return c.default.findByIds(this.get("regular_category_ids"))},set regularCategories(e){this.set("regular_category_ids",e.map((e=>e.id)))},get trackedCategories(){return c.default.findByIds(this.get("tracked_category_ids"))},set trackedCategories(e){this.set("tracked_category_ids",e.map((e=>e.id)))},get watchedCategories(){return c.default.findByIds(this.get("watched_category_ids"))},set watchedCategories(e){this.set("watched_category_ids",e.map((e=>e.id)))},get watchedFirstPostCategories(){return c.default.findByIds(this.get("watched_first_post_category_ids"))},set watchedFirstPostCategories(e){this.set("watched_first_post_category_ids",e.map((e=>e.id)))},canDeleteAccount(e){return!this.siteSettings.enable_discourse_connect&&e},get sidebarLinkToFilteredList(){return this.get("user_option.sidebar_link_to_filtered_list")},get sidebarShowCountOfNewItems(){return this.get("user_option.sidebar_show_count_of_new_items")},delete(){return this.can_delete_account?(0,O.ajax)((0,M.userPath)(this.username+".json"),{type:"DELETE",data:{context:window.location.pathname}}):f.Promise.reject(p.default.t("user.delete_yourself_not_allowed"))},updateNotificationLevel(e){let{level:t,expiringAt:i=null,actingUser:n=null}=e
return n||(n=Ie.current()),(0,O.ajax)(`${(0,M.userPath)(this.username)}/notification_level.json`,{type:"PUT",data:{notification_level:t,expiring_at:i,acting_user_id:n.id}}).then((()=>{n.ignored_users||(n.ignored_users=[]),"normal"===t||"mute"===t?n.ignored_users.removeObject(this.username):"ignore"===t&&n.ignored_users.addObject(this.username)}))},dismissBanner(e){this.set("dismissed_banner_key",e),(0,O.ajax)((0,M.userPath)(this.username+".json"),{type:"PUT",data:{dismissed_banner_key:e}})},checkEmail(){return(0,O.ajax)((0,M.userPath)(`${this.username_lower}/emails.json`),{data:{context:window.location.pathname}}).then((e=>{e&&this.setProperties({email:e.email,secondary_emails:e.secondary_emails,unconfirmed_emails:e.unconfirmed_emails,associated_accounts:e.associated_accounts})}))},summary(){const e=(0,C.getOwner)(this).lookup("service:store")
return(0,O.ajax)((0,M.userPath)(`${this.username_lower}/summary.json`)).then((t=>{const i=t.user_summary,n={},r={}
return t.topics.forEach((t=>n[t.id]=e.createRecord("topic",t))),a.default.createFromJson(t).forEach((e=>r[e.id]=e)),i.topics=i.topic_ids.map((e=>n[e])),i.replies.forEach((e=>{e.topic=n[e.topic_id],e.url=e.topic.urlForPostNumber(e.post_number),e.createdAt=new Date(e.created_at)})),i.links.forEach((e=>{e.topic=n[e.topic_id],e.post_url=e.topic.urlForPostNumber(e.post_number)})),i.badges&&(i.badges=i.badges.map((e=>{const t=r[e.badge_id]
return t.count=e.count,t}))),i.top_categories&&i.top_categories.forEach((e=>{e.parent_category_id&&(e.parentCategory=c.default.findById(e.parent_category_id))})),i}))},canManageGroup:e=>!e.get("automatic")&&(e.get("can_admin_group")||e.get("is_group_owner")),availableTitles(){const e=[]
return(this.groups||[]).forEach((i=>{(0,t.get)(i,"title")&&e.push((0,t.get)(i,"title"))})),(this.badges||[]).forEach((i=>{(0,t.get)(i,"allow_title")&&e.push((0,t.get)(i,"name"))})),e.uniq().sort().map((e=>({name:(0,r.escapeExpression)(e),id:e})))},availableFlairs(){const e=[]
return this.groups&&this.groups.forEach((t=>{t.flair_url&&e.push({id:t.id,name:t.name,url:t.flair_url,bgColor:t.flair_bg_color,color:t.flair_color})})),e},currentTextSize(e,t){if((0,n.default)(Oe)){const[t,i]=(0,n.default)(Oe).split("|")
if(i>=e)return t}return t},updateTextSizeCookie(e){if(e){const t=this.get("user_option.text_size_seq");(0,n.default)(Oe,`${e}|${t}`,{path:"/",expires:Te})}else(0,n.removeCookie)(Oe,{path:"/"})},enforcedSecondFactor(e,t){const i=this.siteSettings.enforce_second_factor
return!e&&("all"===i||"staff"===i&&t)},resolvedTimezone(){return(0,T.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){const n=this.get(i)
return e===m.NotificationLevels.MUTED?n.concat(t).uniq():n.filter((e=>e!==t))},setPrimaryGroup(e){return(0,O.ajax)(`/admin/users/${this.id}/primary_group`,{type:"PUT",data:{primary_group_id:e}})},enterDoNotDisturbFor(e){return(0,O.ajax)({url:"/do-not-disturb.json",type:"POST",data:{duration:e}}).then((e=>this.updateDoNotDisturbStatus(e.ends_at)))},leaveDoNotDisturb(){return(0,O.ajax)({url:"/do-not-disturb.json",type:"DELETE"}).then((()=>{this.updateDoNotDisturbStatus(null)}))},updateDoNotDisturbStatus(e){this.set("do_not_disturb_until",e),this.appEvents.trigger("do-not-disturb:changed",this.do_not_disturb_until)},updateDraftProperties(e){this.setProperties(e),this.appEvents.trigger("user-drafts:changed")},updateReviewableCount(e){this.set("reviewable_count",e),this.appEvents.trigger("user-reviewable-count:changed",e)},isInDoNotDisturb(){return this.do_not_disturb_until&&new Date(this.do_not_disturb_until)>=new Date},trackedTags:(e,t,i)=>[...e,...t,...i],canSeeUserTip(e){const t=y.default.currentProp("user_tips")
if(!t||this.user_option?.skip_new_user_tips)return!1
if(!t[e])return(0,U.isTesting)()||console.warn("Cannot show user tip with type =",e),!1
const i=this.user_option?.seen_popups||[]
return!i.includes(-1)&&!i.includes(t[e])},showUserTip(e){this.canSeeUserTip(e.id)&&(0,F.showUserTip)({...e,onDismiss:()=>{e.onDismiss?.(),this.hideUserTipForever(e.id)}})},hideUserTipForever(e){const t=y.default.currentProp("user_tips")
if(!t||this.user_option?.skip_new_user_tips)return
if(!t[e])return void console.warn("Cannot hide user tip with type =",e);(0,F.hideUserTip)(e,!0),(0,F.showNextUserTip)()
let i=this.user_option?.seen_popups||[]
return i.includes(t[e])?void 0:(i.push(t[e]),this.user_option||this.set("user_option",{}),this.set("user_option.seen_popups",i),this.save(["seen_popups"]))}},"canBeDeleted",[B],Object.getOwnPropertyDescriptor(_e,"canBeDeleted"),_e),Pe(_e,"stream",[$],Object.getOwnPropertyDescriptor(_e,"stream"),_e),Pe(_e,"bookmarks",[q],Object.getOwnPropertyDescriptor(_e,"bookmarks"),_e),Pe(_e,"postsStream",[H],Object.getOwnPropertyDescriptor(_e,"postsStream"),_e),Pe(_e,"userDraftsStream",[W],Object.getOwnPropertyDescriptor(_e,"userDraftsStream"),_e),Pe(_e,"searchContext",[V],Object.getOwnPropertyDescriptor(_e,"searchContext"),_e),Pe(_e,"displayName",[G],Object.getOwnPropertyDescriptor(_e,"displayName"),_e),Pe(_e,"profileBackgroundUrl",[K],Object.getOwnPropertyDescriptor(_e,"profileBackgroundUrl"),_e),Pe(_e,"path",[Y],Object.getOwnPropertyDescriptor(_e,"path"),_e),Pe(_e,"userApiKeys",[J],Object.getOwnPropertyDescriptor(_e,"userApiKeys"),_e),Pe(_e,"mutedTopicsPath",[Q],Object.getOwnPropertyDescriptor(_e,"mutedTopicsPath"),_e),Pe(_e,"watchingTopicsPath",[X],Object.getOwnPropertyDescriptor(_e,"watchingTopicsPath"),_e),Pe(_e,"trackingTopicsPath",[Z],Object.getOwnPropertyDescriptor(_e,"trackingTopicsPath"),_e),Pe(_e,"username_lower",[ee],Object.getOwnPropertyDescriptor(_e,"username_lower"),_e),Pe(_e,"trustLevel",[te],Object.getOwnPropertyDescriptor(_e,"trustLevel"),_e),Pe(_e,"previousVisitAt",[ie],Object.getOwnPropertyDescriptor(_e,"previousVisitAt"),_e),Pe(_e,"suspended",[ne],Object.getOwnPropertyDescriptor(_e,"suspended"),_e),Pe(_e,"suspendedForever",[re],(ve=(ve=Object.getOwnPropertyDescriptor(_e,"suspendedForever"))?ve.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return ve}}),_e),Pe(_e,"silencedForever",[oe],(we=(we=Object.getOwnPropertyDescriptor(_e,"silencedForever"))?we.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return we}}),_e),Pe(_e,"suspendedTillDate",[se],(ke=(ke=Object.getOwnPropertyDescriptor(_e,"suspendedTillDate"))?ke.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return ke}}),_e),Pe(_e,"silencedTillDate",[le],(xe=(xe=Object.getOwnPropertyDescriptor(_e,"silencedTillDate"))?xe.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return xe}}),_e),Pe(_e,"sidebarTags",[ae],Object.getOwnPropertyDescriptor(_e,"sidebarTags"),_e),Pe(_e,"filteredGroups",[ue],Object.getOwnPropertyDescriptor(_e,"filteredGroups"),_e),Pe(_e,"displayGroups",[ce],Object.getOwnPropertyDescriptor(_e,"displayGroups"),_e),Pe(_e,"statsCountNonPM",[de],Object.getOwnPropertyDescriptor(_e,"statsCountNonPM"),_e),Pe(_e,"statsExcludingPms",[pe],Object.getOwnPropertyDescriptor(_e,"statsExcludingPms"),_e),Pe(_e,"mutedCategories",[R.dependentKeyCompat],Object.getOwnPropertyDescriptor(_e,"mutedCategories"),_e),Pe(_e,"regularCategories",[R.dependentKeyCompat],Object.getOwnPropertyDescriptor(_e,"regularCategories"),_e),Pe(_e,"trackedCategories",[R.dependentKeyCompat],Object.getOwnPropertyDescriptor(_e,"trackedCategories"),_e),Pe(_e,"watchedCategories",[R.dependentKeyCompat],Object.getOwnPropertyDescriptor(_e,"watchedCategories"),_e),Pe(_e,"watchedFirstPostCategories",[R.dependentKeyCompat],Object.getOwnPropertyDescriptor(_e,"watchedFirstPostCategories"),_e),Pe(_e,"canDeleteAccount",[me],Object.getOwnPropertyDescriptor(_e,"canDeleteAccount"),_e),Pe(_e,"sidebarLinkToFilteredList",[R.dependentKeyCompat],Object.getOwnPropertyDescriptor(_e,"sidebarLinkToFilteredList"),_e),Pe(_e,"sidebarShowCountOfNewItems",[R.dependentKeyCompat],Object.getOwnPropertyDescriptor(_e,"sidebarShowCountOfNewItems"),_e),Pe(_e,"availableTitles",[he],Object.getOwnPropertyDescriptor(_e,"availableTitles"),_e),Pe(_e,"availableFlairs",[fe],Object.getOwnPropertyDescriptor(_e,"availableFlairs"),_e),Pe(_e,"currentTextSize",[ge],Object.getOwnPropertyDescriptor(_e,"currentTextSize"),_e),Pe(_e,"enforcedSecondFactor",[be],Object.getOwnPropertyDescriptor(_e,"enforcedSecondFactor"),_e),Pe(_e,"trackedTags",[ye],Object.getOwnPropertyDescriptor(_e,"trackedTags"),_e),_e))
if(Ie.reopenClass(b.default,{findByUsername:(e,t)=>Ie.create({username:e}).findDetails(t),createCurrent(){const e=h.default.get("currentUser")
if(e){if(e.isCurrent=!0,e.primary_group_id){const t=e.groups.find((t=>t.id===e.primary_group_id))
t&&(e.primary_group_name=t.name)}e.user_option.timezone||(e.user_option.timezone=moment.tz.guess(),this._saveTimezone(e))
const t=(0,C.getOwner)(this).lookup("service:store").createRecord("user",e)
return t.trackStatus(),t}return null},checkUsername:(e,t,i)=>(0,O.ajax)((0,M.userPath)("check_username"),{data:{username:e,email:t,for_user_id:i}}),checkEmail:e=>(0,O.ajax)((0,M.userPath)("check_email"),{data:{email:e}}),loadRecentSearches:()=>(0,O.ajax)("/u/recent-searches"),resetRecentSearches:()=>(0,O.ajax)("/u/recent-searches",{type:"DELETE"}),groupStats(e){const t=v.default.create({count:0,action_type:_.default.TYPES.replies})
e.filterBy("isResponse").forEach((e=>{t.set("count",t.get("count")+e.get("count"))}))
const i=(0,l.A)()
i.pushObjects(e.rejectBy("isResponse"))
let n=0
return i.forEach(((e,t)=>{e.action_type!==_.default.TYPES.topics&&e.action_type!==_.default.TYPES.posts||(n=t+1)})),t.count>0&&i.insertAt(n,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,O.ajax)((0,M.userPath)(),{data:t,type:"POST"})},_saveTimezone(e){(0,O.ajax)((0,M.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}}),Ie.reopen(N.default,{_subscribersCount:0,_clearStatusTimerId:null,trackStatus(){this.id||console.warn("It's impossible to track user status on a user model that doesn't have id. This user model won't be receiving live user status updates."),0===this._subscribersCount&&(this.addObserver("status",this,"_statusChanged"),this.appEvents.on("user-status:changed",this,this._updateStatus),this.status&&this.status.ends_at&&this._scheduleStatusClearing(this.status.ends_at)),this._subscribersCount++},stopTrackingStatus(){0!==this._subscribersCount&&(1===this._subscribersCount&&(this.removeObserver("status",this,"_statusChanged"),this.appEvents.off("user-status:changed",this,this._updateStatus),this._unscheduleStatusClearing()),this._subscribersCount--)},isTrackingStatus(){return this._subscribersCount>0},_statusChanged(e,t){this.trigger("status-changed")
const i=this.get(t)
i&&i.ends_at?this._scheduleStatusClearing(i.ends_at):this._unscheduleStatusClearing()},_scheduleStatusClearing(e){if((0,U.isTesting)())return
this._clearStatusTimerId&&this._unscheduleStatusClearing()
const t=moment.utc(),i=moment.utc(e).diff(t,"milliseconds")
this._clearStatusTimerId=(0,A.default)(this,"_autoClearStatus",i)},_unscheduleStatusClearing(){(0,L.cancel)(this._clearStatusTimerId),this._clearStatusTimerId=null},_autoClearStatus(){this.set("status",null)},_updateStatus(e){e.hasOwnProperty(this.id)&&this.set("status",e[this.id])}}),"undefined"!=typeof Discourse){let e=!1
Object.defineProperty(Discourse,"User",{get:()=>(e||((0,T.default)("Import the User class instead of using Discourse.User",{since:"2.4.0",id:"discourse.globals.user"}),e=!0),Ie)})}var Ee=Ie
e.default=Ee})),define("discourse/modifiers/did-insert",["exports","@ember/render-modifiers/modifiers/did-insert"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("discourse/modifiers/did-update",["exports","@ember/render-modifiers/modifiers/did-update"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("discourse/modifiers/draggable",["exports","ember-modifier","@ember/destroyable","discourse-common/utils/decorators"],(function(e,t,i,n){var r
function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let l=(s((r=class extends t.default{constructor(e,t){super(e,t),o(this,"hasStarted",!1),o(this,"element",void 0),(0,i.registerDestructor)(this,(e=>e.cleanup()))}modify(e,t,i){let{didStartDrag:n,didEndDrag:r,dragMove:o}=i
this.element=e,this.didStartDragCallback=n,this.didEndDragCallback=r,this.dragMoveCallback=o,this.element.addEventListener("touchstart",this.dragMove,{passive:!1}),this.element.addEventListener("mousedown",this.dragMove,{passive:!1}),this.element.addEventListener("dragenter",this.dragMove,{passive:!1})}dragMove(e){this.hasStarted||(this.hasStarted=!0,this.didStartDragCallback&&this.didStartDragCallback(e),document.addEventListener("touchmove",this.drag,{passive:!1}),document.addEventListener("mousemove",this.drag,{passive:!1}),document.addEventListener("dragover",this.drag,{passive:!1}),document.body.classList.add("dragging"),document.addEventListener("touchend",this.didEndDrag,{passive:!1}),document.addEventListener("mouseup",this.didEndDrag,{passive:!1}),document.addEventListener("drop",this.didEndDrag,{passive:!1}))}drag(e){this.hasStarted&&this.dragMoveCallback&&this.dragMoveCallback(e,this.element)}didEndDrag(e){this.hasStarted&&(this.didEndDragCallback(e,this.element),document.removeEventListener("touchmove",this.drag),document.removeEventListener("mousemove",this.drag),document.removeEventListener("dragover",this.drag),document.body.classList.remove("dragging"),this.hasStarted=!1)}cleanup(){document.removeEventListener("touchstart",this.dragMove),document.removeEventListener("mousedown",this.dragMove),document.removeEventListener("dragenter",this.dragMove),document.removeEventListener("touchend",this.didEndDrag),document.removeEventListener("mouseup",this.didEndDrag),document.removeEventListener("drop",this.didEndDrag),document.removeEventListener("mousemove",this.drag),document.removeEventListener("touchmove",this.drag),document.removeEventListener("dragover",this.drag),document.body.classList.remove("dragging")}}).prototype,"dragMove",[n.bind],Object.getOwnPropertyDescriptor(r.prototype,"dragMove"),r.prototype),s(r.prototype,"drag",[n.bind],Object.getOwnPropertyDescriptor(r.prototype,"drag"),r.prototype),s(r.prototype,"didEndDrag",[n.bind],Object.getOwnPropertyDescriptor(r.prototype,"didEndDrag"),r.prototype),r)
e.default=l})),define("discourse/modifiers/on-resize",["exports","ember-on-resize-modifier/modifiers/on-resize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("discourse/modifiers/will-destroy",["exports","@ember/render-modifiers/modifiers/will-destroy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("discourse/raw-views/list/post-count-or-badges",["exports","@ember/object/computed","@ember/object","I18n","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=i.default.extend((o={showBadges:(0,t.and)("postBadgesEnabled","topic.unread_posts"),newDotText(){return this.currentUser&&this.currentUser.trust_level>0?"":n.default.t("filters.new.lower_title")}},s=o,l="newDotText",a=[r.default],u=Object.getOwnPropertyDescriptor(o,"newDotText"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/raw-views/list/posts-count-column",["exports","@ember/object","I18n","discourse-common/utils/decorators"],(function(e,t,i,n){var r,o,s,l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c=t.default.extend((r=(0,n.default)("topic.like_count","topic.posts_count"),o=(0,n.default)("topic.replyCount","ratioText"),s=(0,n.default)("ratio"),l=(0,n.default)("ratioText"),u(a={tagName:"td",ratio(e,t){const i=parseFloat(e),n=parseFloat(t)
return n<10?0:(i||0)/n},title:(e,t)=>i.default.messageFormat("posts_likes_MF",{count:e,ratio:t}).trim(),ratioText(e){const t=this.siteSettings
return e>t.topic_post_like_heat_high?"high":e>t.topic_post_like_heat_medium?"med":e>t.topic_post_like_heat_low?"low":""},likesHeat(e){if(e&&e.length)return`heatmap-${e}`}},"ratio",[r],Object.getOwnPropertyDescriptor(a,"ratio"),a),u(a,"title",[o],Object.getOwnPropertyDescriptor(a,"title"),a),u(a,"ratioText",[s],Object.getOwnPropertyDescriptor(a,"ratioText"),a),u(a,"likesHeat",[l],Object.getOwnPropertyDescriptor(a,"likesHeat"),a),a))
e.default=c})),define("discourse/raw-views/list/visited-line",["exports","@ember/object","discourse-common/utils/decorators"],(function(e,t,i){var n
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r,o,s,l,a,u,c=t.default.extend((r=n={isLastVisited(){return this.lastVisitedTopic===this.topic}},o="isLastVisited",s=[i.default],l=Object.getOwnPropertyDescriptor(n,"isLastVisited"),a=n,u={},Object.keys(l).forEach((function(e){u[e]=l[e]})),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=s.slice().reverse().reduce((function(e,t){return t(r,o,e)||e}),u),a&&void 0!==u.initializer&&(u.value=u.initializer?u.initializer.call(a):void 0,u.initializer=void 0),void 0===u.initializer&&(Object.defineProperty(r,o,u),u=null),n))
e.default=c})),define("discourse/raw-views/topic-list-header-column",["exports","@ember/object","I18n","discourse-common/utils/decorators","@ember/object/computed"],(function(e,t,i,n,r){var o
function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l=t.default.extend((s(o={sortable:null,ariaPressed:(0,r.and)("sortable","isSorting"),localizedName(){return this.forceName?this.forceName:this.name?i.default.t(this.name):""},sortIcon(){return`chevron-${this.parent.ascending?"up":"down"}`},isSorting(){return this.sortable&&this.parent.order===this.order},className(){const e=[]
return this.order&&e.push(this.order),this.sortable&&(e.push("sortable"),this.isSorting&&e.push("sorting")),this.number&&e.push("num"),e.join(" ")},ariaSort(){return!!this.isSorting&&(this.parent.ascending?"ascending":"descending")}},"localizedName",[n.default],Object.getOwnPropertyDescriptor(o,"localizedName"),o),s(o,"sortIcon",[n.default],Object.getOwnPropertyDescriptor(o,"sortIcon"),o),s(o,"isSorting",[n.default],Object.getOwnPropertyDescriptor(o,"isSorting"),o),s(o,"className",[n.default],Object.getOwnPropertyDescriptor(o,"className"),o),s(o,"ariaSort",[n.default],Object.getOwnPropertyDescriptor(o,"ariaSort"),o),o))
e.default=l})),define("discourse/raw-views/topic-status",["exports","@ember/object","I18n","discourse-common/utils/decorators"],(function(e,t,i,n){var r
function o(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=t.default.extend((o(r={showDefault:null,renderDiv(e){return(e||this.statuses.length>0)&&!this.noDiv},statuses(){const e=this.topic,t=[]
if(e.get("is_warning")&&t.push({icon:"envelope",key:"warning"}),e.get("bookmarked")){const i=e.get("bookmarked_post_numbers")
let n=e.get("url"),r=""
i&&i[0]>1?n+="/"+i[0]:r="op-bookmark",t.push({extraClasses:r,icon:"bookmark",key:"bookmarked",href:n})}e.get("closed")&&e.get("archived")?t.push({icon:"lock",key:"locked_and_archived"}):e.get("closed")?t.push({icon:"lock",key:"locked"}):e.get("archived")&&t.push({icon:"lock",key:"archived"}),e.get("pinned")&&t.push({icon:"thumbtack",key:"pinned"}),e.get("unpinned")&&t.push({icon:"thumbtack",key:"unpinned"}),e.get("invisible")&&t.push({icon:"far-eye-slash",key:"unlisted"}),this.showPrivateMessageIcon&&e.isPrivateMessage&&!e.is_warning&&t.push({icon:"envelope",key:"personal_message"}),t.forEach((e=>{e.title=i.default.t(`topic_statuses.${e.key}.help`),!this.currentUser||"pinned"!==e.key&&"unpinned"!==e.key?(e.openTag="span",e.closeTag="span"):(e.openTag="a href",e.closeTag="a")}))
let n=this.defaultIcon
return 0===t.length&&n&&this.set("showDefault",n),t}},"renderDiv",[(0,n.default)("defaultIcon")],Object.getOwnPropertyDescriptor(r,"renderDiv"),r),o(r,"statuses",[n.default],Object.getOwnPropertyDescriptor(r,"statuses"),r),r))
e.default=s})),define("discourse/routes/about",["exports","discourse/routes/discourse","I18n","discourse/lib/ajax","@ember/object"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=t.default.extend((s=o={model(){return(0,n.ajax)("/about.json").then((e=>{let t=[],i=[]
const n=moment().locale("en").utc().subtract(1,"year")
e.about.admins.forEach((e=>{moment(e.last_seen_at)>n&&t.push(e)})),e.about.moderators.forEach((e=>{moment(e.last_seen_at)>n&&i.push(e)})),e.about.admins=t,e.about.moderators=i
const{category_moderators:r}=e.about
return r&&r.length&&r.forEach(((t,i)=>{const n=this.site.categories.findBy("id",t.category_id)
e.about.category_moderators[i].category=n})),e.about}))},titleToken:()=>i.default.t("about.simple_title"),didTransition(){return this.controllerFor("application").set("showFooter",!0),!0}},l="didTransition",a=[r.action],u=Object.getOwnPropertyDescriptor(o,"didTransition"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/routes/account-created-edit-email",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({setupController(e){const t=this.controllerFor("account-created").get("accountCreated")
e.set("accountCreated",t),e.set("newEmail",t.email)}})
e.default=i})),define("discourse/routes/account-created-index",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({setupController(e){e.set("accountCreated",this.controllerFor("account-created").get("accountCreated"))}})
e.default=i}))
define("discourse/routes/account-created-resent",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({setupController(e){e.set("email",this.controllerFor("account-created").get("accountCreated.email"))}})
e.default=i})),define("discourse/routes/account-created",["exports","discourse/lib/preload-store","@ember/routing/route"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=i.default.extend({setupController(e){e.set("accountCreated",t.default.get("accountCreated"))}})
e.default=n})),define("discourse/routes/app-route-map",["exports","discourse/models/site","@ember/string"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){this.route("exception",{path:"/exception"}),this.route("exception-unknown",{path:"/404"}),this.route("about",{path:"/about",resetNamespace:!0}),this.route("post",{path:"/p/:id"}),this.route("topic",{path:"/t/:slug/:id",resetNamespace:!0},(function(){this.route("fromParams",{path:"/"}),this.route("fromParamsNear",{path:"/:nearPost"})})),this.route("topicBySlugOrId",{path:"/t/:slugOrId",resetNamespace:!0}),this.route("newCategory",{path:"/new-category"}),this.route("editCategory",{path:"/c/*slug/edit"},(function(){this.route("tabs",{path:"/:tab"})})),this.route("discovery",{path:"/",resetNamespace:!0},(function(){t.default.currentProp("periods").forEach((e=>{const t="top"+(0,i.capitalize)(e)
this.route(t,{path:"/top/"+e}),this.route(t+"CategoryNone",{path:"/c/*category_slug_path_with_id/none/l/top/"+e}),this.route(t+"Category",{path:"/c/*category_slug_path_with_id/l/top/"+e})})),t.default.currentProp("filters").forEach((e=>{this.route(e,{path:"/"+e}),this.route(e+"CategoryNone",{path:"/c/*category_slug_path_with_id/none/l/"+e}),this.route(e+"Category",{path:"/c/*category_slug_path_with_id/l/"+e})})),this.route("filter",{path:"/filter"}),this.route("categories"),this.route("categoryNone",{path:"/c/*category_slug_path_with_id/none"}),this.route("categoryAll",{path:"/c/*category_slug_path_with_id/all"}),this.route("category",{path:"/c/*category_slug_path_with_id"})})),this.route("groups",{resetNamespace:!0,path:"/g"},(function(){this.route("new",{path:"custom/new"})})),this.route("group",{path:"/g/:name",resetNamespace:!0},(function(){this.route("members"),this.route("requests"),this.route("activity",(function(){this.route("posts"),this.route("topics"),this.route("mentions")})),this.route("manage",(function(){this.route("profile"),this.route("membership"),this.route("interaction"),this.route("email"),this.route("members"),this.route("categories"),this.route("tags"),this.route("logs")})),this.route("messages",(function(){this.route("inbox"),this.route("archive")})),this.route("permissions")})),this.route("users",{resetNamespace:!0,path:"/u"}),this.route("password-reset",{path:"/u/password-reset/:token"}),this.route("account-created",{path:"/u/account-created"},(function(){this.route("resent"),this.route("edit-email")})),this.route("user",{path:"/u/:username",resetNamespace:!0},(function(){this.route("profile-hidden"),this.route("summary"),this.route("userActivity",{path:"/activity",resetNamespace:!0},(function(){this.route("topics"),this.route("replies"),this.route("likesGiven",{path:"likes-given"}),this.route("bookmarks"),this.route("bookmarksWithReminders",{path:"bookmarks-with-reminders"}),this.route("pending"),this.route("drafts"),this.route("read")})),this.route("userNotifications",{path:"/notifications",resetNamespace:!0},(function(){this.route("responses"),this.route("likesReceived",{path:"likes-received"}),this.route("mentions"),this.route("edits")})),this.route("badges"),this.route("deletedPosts",{path:"/deleted-posts"}),this.route("userPrivateMessages",{path:"/messages",resetNamespace:!0},(function(){this.route("user",{path:"/"},(function(){this.route("new"),this.route("unread"),this.route("archive"),this.route("sent"),this.route("warnings")})),this.route("group",{path:"group/:name"},(function(){this.route("archive"),this.route("new"),this.route("unread")})),this.route("tags",{path:"/tags"},(function(){this.route("show",{path:":id"})}))})),this.route("preferences",{resetNamespace:!0},(function(){this.route("account"),this.route("security"),this.route("profile"),this.route("emails"),this.route("notifications"),this.route("tracking"),this.route("categories"),this.route("users"),this.route("tags"),this.route("interface"),this.route("apps"),this.route("navigation-menu"),this.route("email"),this.route("second-factor")})),this.route("userInvited",{path:"/invited",resetNamespace:!0},(function(){this.route("show",{path:"/:filter"})}))})),this.route("review",{path:"/review"},(function(){this.route("show",{path:"/:reviewable_id"}),this.route("index",{path:"/"}),this.route("topics",{path:"/topics"}),this.route("settings",{path:"/settings"})})),this.route("signup",{path:"/signup"}),this.route("login",{path:"/login"}),this.route("email-login",{path:"/session/email-login/:token"}),this.route("second-factor-auth",{path:"/session/2fa"}),this.route("associate-account",{path:"/associate/:token"}),this.route("login-preferences"),this.route("forgot-password",{path:"/password-reset"}),this.route("faq",{path:"/faq"}),this.route("guidelines",{path:"/guidelines"}),this.route("conduct",{path:"/conduct"}),this.route("rules",{path:"/rules"}),this.route("tos",{path:"/tos"}),this.route("privacy",{path:"/privacy"}),this.route("new-topic",{path:"/new-topic"})
this.route("new-message",{path:"/new-message"}),this.route("badges",{resetNamespace:!0},(function(){this.route("show",{path:"/:id/:slug"})})),this.route("full-page-search",{path:"/search"}),this.route("tag",{resetNamespace:!0},(function(){this.route("show",{path:"/:tag_id"}),t.default.currentProp("filters").forEach((e=>{this.route("show"+(0,i.capitalize)(e),{path:"/:tag_id/l/"+e})}))})),this.route("tags",{resetNamespace:!0},(function(){this.route("showCategory",{path:"/c/*category_slug_path_with_id/:tag_id"}),this.route("showCategoryAll",{path:"/c/*category_slug_path_with_id/all/:tag_id"}),this.route("showCategoryNone",{path:"/c/*category_slug_path_with_id/none/:tag_id"}),t.default.currentProp("filters").forEach((e=>{this.route("showCategory"+(0,i.capitalize)(e),{path:"/c/*category_slug_path_with_id/:tag_id/l/"+e}),this.route("showCategoryAll"+(0,i.capitalize)(e),{path:"/c/*category_slug_path_with_id/all/:tag_id/l/"+e}),this.route("showCategoryNone"+(0,i.capitalize)(e),{path:"/c/*category_slug_path_with_id/none/:tag_id/l/"+e})})),this.route("intersection",{path:"intersection/:tag_id/*additional_tags"}),this.route("legacyRedirect",{path:"/:tag_id"})})),this.route("tagGroups",{path:"/tag_groups",resetNamespace:!0},(function(){this.route("edit",{path:"/:id"}),this.route("new")})),this.route("invites",{path:"/invites",resetNamespace:!0},(function(){this.route("show",{path:"/:token"})}))}})),define("discourse/routes/application",["exports","discourse/lib/url","discourse/models/category","discourse/models/composer","discourse/routes/discourse","I18n","discourse/mixins/open-composer","discourse/lib/ajax","discourse/models/login-method","discourse-common/lib/get-owner","discourse-common/lib/get-url","discourse/lib/logout","discourse/lib/mobile","@ember/service","discourse/lib/computed","discourse/lib/show-modal","@ember/object","discourse/components/modal/keyboard-shortcuts-help","discourse/components/modal/not-activated"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y){var _
function v(e,t){return function(){this.site.isReadOnly&&!this.site.isStaffWritesOnly?this.dialog.alert(t):this[e]()}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const w=r.default.extend(s.default,(_={siteTitle:(0,h.setting)("title"),shortSiteDescription:(0,h.setting)("short_site_description"),documentTitle:(0,m.inject)(),dialog:(0,m.inject)(),composer:(0,m.inject)(),modal:(0,m.inject)(),loadingSlider:(0,m.inject)(),loading(e){return!this.loadingSlider.enabled||(this.loadingSlider.transitionStarted(),e.promise.finally((()=>{this.loadingSlider.transitionEnded()})),!1)},actions:{toggleAnonymous(){(0,l.ajax)((0,t.userPath)("toggle-anon"),{type:"POST"}).then((()=>{window.location.reload()}))},toggleMobileView(){p.default.toggleMobileView()},toggleSidebar(){this.controllerFor("application").send("toggleSidebar")},logout:v("_handleLogout",o.default.t("read_only_mode.logout_disabled")),_collectTitleTokens(e){e.push(this.siteTitle),window.location.pathname!==(0,c.default)("/")&&window.location.pathname!==(0,c.default)("/login")||""===this.shortSiteDescription||e.push(this.shortSiteDescription),this.documentTitle.setTitle(e.join(" - "))},composePrivateMessage(e,t){const i=e?e.get("username"):"",r=t?`${window.location.protocol}//${window.location.host}${t.url}`:null,s=t?o.default.t("composer.reference_topic_title",{title:t.topic.title}):null
return this.composer.open({action:n.default.PRIVATE_MESSAGE,recipients:i,archetypeId:"private_message",draftKey:n.default.NEW_PRIVATE_MESSAGE_KEY,draftSequence:0,reply:r,title:s})},error(e,t){const i=e.jqXHR?e.jqXHR:e,n=this.controllerFor("exception"),r=window.console
return r&&r.error&&r.error(i),i&&404===i.status?this.transitionTo("exception-unknown"):(n.setProperties({lastTransition:t,thrown:i}),this.intermediateTransitionTo("exception"),!0)},showLogin:v("handleShowLogin",o.default.t("read_only_mode.login_disabled")),showCreateAccount:(j="handleShowCreateAccount",C=o.default.t("read_only_mode.login_disabled"),function(){this.site.isReadOnly?this.dialog.alert(C):this[j]()}),showForgotPassword(){(0,u.getOwner)(this).lookup("controller:forgot-password").setProperties({offerHelp:null,helpSeen:!1}),(0,f.default)("forgot-password",{title:"forgot_password.title"})},showNotActivated(e){this.modal.show(y.default,{model:e})},showUploadSelector(){document.getElementById("file-uploader").click()},showKeyboardShortcutsHelp(){this.modal.show(b.default)},closeModal(e){return this.modal.close(e)},hideModal(){return this.modal.hide()},reopenModal(){return this.modal.reopen()},editCategory(e){t.default.routeTo(`/c/${i.default.slugFor(e)}/edit`)},checkEmail(e){e.checkEmail()},changeBulkTemplate(e){const t=e.replace("modal/",""),i=(0,u.getOwner)(this).lookup("controller:"+t)
this.render(e,{into:"modal/topic-bulk-actions",outlet:"bulkOutlet",controller:i?t:"topic-bulk-actions"})},createNewTopicViaParams(e,t,i,n){this.openComposerWithTopicParams(this.controllerFor("discovery/topics"),e,t,i,n)},createNewMessageViaParams(){let{recipients:e="",topicTitle:t="",topicBody:i="",hasGroups:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.openComposerWithMessageParams({recipients:e,topicTitle:t,topicBody:i,hasGroups:n})}},handleShowLogin(){if(this.siteSettings.enable_discourse_connect){const e=encodeURIComponent(window.location.pathname)
window.location=(0,c.default)("/session/sso?return_path="+e)}else this._autoLogin("login",{notAuto:()=>(0,u.getOwner)(this).lookup("controller:login").resetForm()})},handleShowCreateAccount(){if(this.siteSettings.enable_discourse_connect){const e=encodeURIComponent(window.location.pathname)
window.location=(0,c.default)("/session/sso?return_path="+e)}else this._autoLogin("create-account",{modalClass:"create-account",signup:!0,titleAriaElementId:"create-account-title"})},_autoLogin(e){let{modalClass:t,notAuto:i=null,signup:n=!1,titleAriaElementId:r=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const o=(0,a.findAll)()
this.siteSettings.enable_local_logins||1!==o.length?((0,f.default)(e,{modalClass:t,titleAriaElementId:r}),i?.()):(0,u.getOwner)(this).lookup("controller:login").send("externalLogin",o[0],{signup:n})},_handleLogout(){this.currentUser&&this.currentUser.destroySession().then((e=>(0,d.default)({redirect:e.redirect_url})))}},k=_,x="loading",P=[g.action],O=Object.getOwnPropertyDescriptor(_,"loading"),T=_,S={},Object.keys(O).forEach((function(e){S[e]=O[e]})),S.enumerable=!!S.enumerable,S.configurable=!!S.configurable,("value"in S||S.initializer)&&(S.writable=!0),S=P.slice().reverse().reduce((function(e,t){return t(k,x,e)||e}),S),T&&void 0!==S.initializer&&(S.value=S.initializer?S.initializer.call(T):void 0,S.initializer=void 0),void 0===S.initializer&&(Object.defineProperty(k,x,S),S=null),_))
var k,x,P,O,T,S,j,C,z=w
e.default=z})),define("discourse/routes/associate-account",["exports","discourse/routes/discourse","discourse/lib/ajax","@ember/runloop","discourse/lib/ajax-error","discourse/lib/show-modal","discourse/lib/cookie"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l=t.default.extend({beforeModel(e){if(!this.currentUser)return(0,s.default)("destination_url",e.intent.url),this.replaceWith("login")
const t=this.paramsFor("associate-account")
this.replaceWith("preferences.account",this.currentUser).then((()=>(0,n.next)((()=>(0,i.ajax)(`/associate/${encodeURIComponent(t.token)}.json`).then((e=>(0,o.default)("associate-account-confirm",{model:e}))).catch(r.popupAjaxError)))))}})
e.default=l})),define("discourse/routes/badges-index",["exports","discourse/models/badge","discourse/routes/discourse","I18n","discourse/lib/preload-store","discourse/mixins/scroll-top","@ember/object"],(function(e,t,i,n,r,o,s){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a,u,c,d,p,m,h=i.default.extend((a=l={model:()=>r.default.get("badges")?r.default.getAndRemove("badges").then((e=>t.default.createFromJson(e))):t.default.findAll({onlyListable:!0}),titleToken:()=>n.default.t("badges.title"),didTransition(){return this.controllerFor("application").set("showFooter",!0),(0,o.scrollTop)(),!0}},u="didTransition",c=[s.action],d=Object.getOwnPropertyDescriptor(l,"didTransition"),p=l,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),l))
e.default=h})),define("discourse/routes/badges-show",["exports","discourse/models/badge","discourse/routes/discourse","discourse/lib/preload-store","discourse/models/user-badge","discourse/mixins/scroll-top","rsvp","@ember/object"],(function(e,t,i,n,r,o,s,l){var a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u,c,d,p,m,h,f=i.default.extend((u=a={queryParams:{username:{refreshModel:!0}},serialize:e=>e.getProperties("id","slug"),model:e=>n.default.get("badge")?n.default.getAndRemove("badge").then((e=>t.default.createFromJson(e))):t.default.findById(e.id),afterModel(e,t){const i=t.to.queryParams&&t.to.queryParams.username,n=r.default.findByBadgeId(e.get("id"),{username:i}).then((e=>{this.userBadgesGrant=e})),o=this.currentUser&&this.currentUser.username_lower,l={userBadgesGrant:n,userBadgesAll:r.default.findByUsername(o).then((e=>{this.userBadgesAll=e}))}
return(0,s.hash)(l)},titleToken(){const e=this.modelFor("badges.show")
if(e)return e.get("name")},setupController(e,t){e.set("model",t),e.set("userBadges",this.userBadgesGrant),e.set("userBadgesAll",this.userBadgesAll)},didTransition(){return this.controllerFor("badges/show")._showFooter(),(0,o.scrollTop)(),!0}},c="didTransition",d=[l.action],p=Object.getOwnPropertyDescriptor(a,"didTransition"),m=a,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),a))
e.default=f})),define("discourse/routes/build-category-route",["exports","rsvp","discourse/controllers/discovery-sortable","discourse/routes/build-topic-route","discourse/models/category","discourse/models/category-list","discourse/routes/discourse","I18n","discourse/models/permission-type","discourse/models/topic-list","@ember/object","discourse/lib/preload-store","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){function m(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(e,h)=>{var f
return s.default.extend((f={queryParams:i.queryParams,composer:(0,p.inject)(),model(e){const t=r.default.findBySlugPathWithID(e.category_slug_path_with_id)
if(!t){const t=e.category_slug_path_with_id.split("/")
return t.length>0&&t[t.length-1].match(/^\d+$/)&&t.pop(),r.default.reloadBySlugPath(t.join("/")).then((t=>{const i=this.store.createRecord("category",t.category)
return i.setupGroupsAndPermissions(),this.site.updateCategory(i),{category:i,modelParams:e}}))}if(t)return{category:t,modelParams:e}},afterModel(i,n){if(!i)return void this.replaceWith("/404")
const{category:r,modelParams:o}=i
return h&&void 0!==h.no_subcategories||"none"!==r.default_list_filter||"default"!==e||!o?(this._setupNavigation(r),(0,t.all)([this._createSubcategoryList(r),this._retrieveTopicList(r,n,o)])):(d.default.getAndRemove("topic_list"),this.replaceWith("discovery.categoryNone",o.category_slug_path_with_id))},filter:t=>"default"===e?t.get("default_view")||"latest":e,_setupNavigation(e){const t=h&&!!h.no_subcategories,i=this.filter(e).split("/")[0]
this.controllerFor("navigation/category").setProperties({category:e,filterType:i,noSubcategories:t})},_createSubcategoryList(e){return this._categoryList=null,e.isParent&&e.show_subcategory_list?o.default.listForParent(this.store,e).then((e=>this._categoryList=e)):t.Promise.resolve()},_retrieveTopicList(e,t,i){const o=(0,n.filterQueryParams)(i,h),s={cached:this.isPoppedState(t)}
let l=`c/${r.default.slugFor(e)}/${e.id}`
return o.no_subcategories&&(l+="/none"),l+=`/l/${this.filter(e)}`,(0,n.findTopicList)(this.store,this.topicTrackingState,l,o,s).then((t=>(u.default.hideUniformCategory(t,e),this.set("topics",t),t)))},titleToken(){const e=this.currentModel.category,t=l.default.t("filters."+this.filter(e).replace("/",".")+".title")
let i=e.name
if(e.parent_category_id){i=`${r.default.list().findBy("id",e.parent_category_id).name}/${i}`}return l.default.t("filters.with_category",{filter:t,category:i})},setupController(e,t){const i=this.topics,n=t.category,r=i.get("can_create_topic")
let o,s,l=r&&n.get("permission")===a.default.FULL,u=!l
this.siteSettings.default_subcategory_on_read_only_category&&(u=!1,!l&&n.subcategories&&(o=n.subcategories.find((e=>e.get("permission")===a.default.FULL)),s=!!o)),this.controllerFor("navigation/category").setProperties({canCreateTopicOnCategory:l,cannotCreateTopicOnCategory:u,canCreateTopic:r,canCreateTopicOnSubCategory:s,defaultSubcategory:o})
let c={model:i,category:n,period:i.get("for_period")||t.modelParams&&t.modelParams.period,selected:[],noSubcategories:h&&!!h.no_subcategories,expandAllPinned:!0,canCreateTopic:r,canCreateTopicOnCategory:l,canCreateTopicOnSubCategory:s,defaultSubcategory:o}
const d=n.get("params")
d&&Object.keys(d).length&&(void 0!==d.order&&(c.order=d.order),void 0!==d.ascending&&(c.ascending=d.ascending)),this.controllerFor("discovery/topics").setProperties(c),this.searchService.searchContext=n.get("searchContext"),this.set("topics",null)},renderTemplate(){this.render("navigation/category",{outlet:"navigation-bar"}),this._categoryList?this.render("discovery/categories",{outlet:"header-list-container",model:this._categoryList}):this.disconnectOutlet({outlet:"header-list-container"}),this.render("discovery/topics",{controller:"discovery/topics",outlet:"list-container"})},deactivate(){this._super(...arguments),this.composer.set("prioritizedCategoryId",null),this.searchService.searchContext=null},setNotification(e){this.currentModel.setNotification(e)},triggerRefresh(){this.refresh()},changeSort(e){i.changeSort.call(this,e)},resetParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
i.resetParams.call(this,e)}},m(f,"setNotification",[c.action],Object.getOwnPropertyDescriptor(f,"setNotification"),f),m(f,"triggerRefresh",[c.action],Object.getOwnPropertyDescriptor(f,"triggerRefresh"),f),m(f,"changeSort",[c.action],Object.getOwnPropertyDescriptor(f,"changeSort"),f),m(f,"resetParams",[c.action],Object.getOwnPropertyDescriptor(f,"resetParams"),f),f))}})),define("discourse/routes/build-group-messages-route",["exports","I18n","discourse/routes/user-topic-list"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=e=>i.default.extend({titleToken:()=>t.default.t(`user.messages.${e}`),model(){const e=this.modelFor("group").get("name")
let t=`topics/private-messages-group/${this.currentUser.get("username_lower")}/${e}`
return this._isArchive()&&(t=`${t}/archive`),this.store.findFiltered("topicList",{filter:t}).then((e=>(e.set("emptyState",this.emptyState()),e)))},setupController(){this._super.apply(this,arguments)
let e=`/private-messages/group/${this.modelFor("group").get("name")}`
this._isArchive()&&(e=`${e}/archive`),this.controllerFor("user-topics-list").subscribe(e),this.controllerFor("user-topics-list").setProperties({hideCategory:!0,showPosters:!0}),this.searchService.searchContext={type:"private_messages",id:this.currentUser.get("username_lower"),user:this.currentUser}},emptyState:()=>({title:t.default.t("no_group_messages_title"),body:""}),_isArchive:()=>"archive"===e,deactivate(){this.searchService.searchContext=null}})})),define("discourse/routes/build-private-messages-group-route",["exports","discourse/routes/build-private-messages-route","I18n","discourse/lib/cached-topic-list","@ember/string"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(e,o)=>(0,t.default)(e,"private-messages-groups",o).extend({groupName:null,titleToken(){const e=this.groupName
if(e){let t=(0,r.capitalize)(e)
return"inbox"!==o&&(t=`${t} ${i.default.t("user.messages."+o)}`),[t,i.default.t("user.private_messages")]}},model(){let e=`topics/private-messages-group/${this.modelFor("user").get("username_lower")}/${this.modelFor("userPrivateMessages.group").name}`
"inbox"!==o&&(e=`${e}/${o}`)
const t=(0,n.findOrResetCachedTopicList)(this.session,e)
return t||this.store.findFiltered("topicList",{filter:e}).then((e=>(e.set("emptyState",this.emptyState()),e)))},afterModel(e){const t=e.get("filter").split("/")
let i
i="inbox"!==o?t[t.length-2]:t.pop()
const n=this.modelFor("userPrivateMessages.group")
this.setProperties({groupName:i,group:n})},setupController(){this._super.apply(this,arguments)
const e=this.controllerFor("user-topics-list")
e.set("group",this.group),e.set("pmTopicTrackingState.activeGroup",this.group),this.controllerFor("user-private-messages").set("group",this.group)},emptyState:()=>({title:i.default.t("user.no_messages_title"),body:""}),dismissReadOptions(){return{group_name:this.get("groupName")}}})})),define("discourse/routes/build-private-messages-route",["exports","I18n","discourse/models/user-action","discourse/routes/user-topic-list","discourse/lib/cached-topic-list","@ember/object","discourse-common/lib/icon-library","discourse-common/lib/get-url","@ember/template"],(function(e,t,i,n,r,o,s,l,a){function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.UNREAD_FILTER=e.NEW_FILTER=e.INBOX_FILTER=e.ARCHIVE_FILTER=void 0
e.NEW_FILTER="new"
e.UNREAD_FILTER="unread"
e.INBOX_FILTER="inbox"
e.ARCHIVE_FILTER="archive"
e.default=(e,c,d)=>{var p
return n.default.extend((p={userActionType:i.default.TYPES.messages_received,titleToken:()=>[t.default.t(`user.messages.${d}`),t.default.t("user.private_messages")],didTransition(){return this.controllerFor("user-topics-list")._showFooter(),!0},model(){const e="topics/"+c+"/"+this.modelFor("user").get("username_lower"),t=(0,r.findOrResetCachedTopicList)(this.session,e)
return t||this.store.findFiltered("topicList",{filter:e}).then((e=>(e.set("emptyState",this.emptyState()),e)))},setupController(){this._super.apply(this,arguments)
const t=this.controllerFor("user-private-messages"),i=this.controllerFor("user-topics-list")
i.setProperties({hideCategory:!0,showPosters:!0,tagsForUser:this.modelFor("user").get("username_lower"),selected:[],showToggleBulkSelect:!0,filter:d,group:null,inbox:e}),i.subscribe(),t.setProperties({archive:!1,group:null})
const n={...this.controllerFor("user").get("model.searchContext"),type:"private_messages"}
this.searchService.searchContext=n},emptyState:()=>({title:t.default.t("user.no_messages_title"),body:(0,a.htmlSafe)(t.default.t("user.no_messages_body",{aboutUrl:(0,l.default)("/about"),icon:(0,s.iconHTML)("envelope")}))}),deactivate(){this.controllerFor("user-topics-list").unsubscribe(),this.searchService.searchContext=this.controllerFor("user").get("model.searchContext")},dismissReadOptions:()=>({}),dismissReadTopics(t){const i=t?"topics":"posts"
this.controllerFor("user-topics-list").send("dismissRead",i,{private_message_inbox:e,...this.dismissReadOptions()})}},u(p,"didTransition",[o.action],Object.getOwnPropertyDescriptor(p,"didTransition"),p),u(p,"dismissReadTopics",[o.action],Object.getOwnPropertyDescriptor(p,"dismissReadTopics"),p),p))}})),define("discourse/routes/build-topic-route",["exports","discourse/controllers/discovery-sortable","discourse/routes/discourse","I18n","discourse/models/session","discourse/models/site","discourse-common/lib/object","discourse/lib/utilities","@ember/utils","@ember/service","@ember/object"],(function(e,t,i,n,r,o,s,l,a,u,c){function d(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function p(e,i){const n=Object.assign({},i||{})
return e&&Object.keys(t.queryParams).forEach((function(t){(0,a.isEmpty)(e[t])||(n[t]=e[t])})),n}async function m(e,t,i,n){let l,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}
const u=r.default.current()
if(a.cached){const e=u.get("topicList")
e&&e.get("filter")===i&&(e.get("topics.length")||0)>e.get("per_page")&&(0,s.deepEqual)(e.get("listParams"),n)&&(e.set("loaded",!0),t?.updateTopics(e.get("topics")),l=e),u.set("topicList",null)}else u.setProperties({topicList:null,topicListScrollPosition:null})
if(!l){n||={}
for(const[e,t]of Object.entries(n))"undefined"!==t&&"null"!==t||(n[e]=null)
l=await e.findFiltered("topicList",{filter:i,params:n})}return l.set("listParams",n),t&&(t.sync(l,l.filter,n),t.trackIncoming(l.filter)),r.default.currentProp("topicList",l),l.topic_list?.top_tags&&(l.filter.startsWith("c/")||l.filter.startsWith("tags/c/")?o.default.currentProp("category_top_tags",l.topic_list.top_tags):o.default.currentProp("top_tags",l.topic_list.top_tags)),l}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,r){var o
return r=r||{},i.default.extend((o={screenTrack:(0,u.inject)(),queryParams:t.queryParams,beforeModel(){this.controllerFor("navigation/default").set("filterType",e.split("/")[0])},model(t,i){this.screenTrack.stop()
const n=p(t),r={cached:this.isPoppedState(i)}
return m(this.store,this.topicTrackingState,e,n,r)},titleToken(){if(e===(0,l.defaultHomepage)())return
const t=n.default.t("filters."+e.replace("/",".")+".title")
return n.default.t("filters.with_topics",{filter:t})},setupController(e,t){const i={model:t,category:null,period:t.get("for_period")||t.get("params.period"),selected:[],expandAllPinned:!1,expandGloballyPinned:!0}
this.controllerFor("discovery/topics").setProperties(i),this.controllerFor("navigation/default").set("canCreateTopic",t.get("can_create_topic"))},renderTemplate(){this.render("navigation/default",{outlet:"navigation-bar"}),this.render("discovery/topics",{controller:"discovery/topics",outlet:"list-container"})},changeSort(e){t.changeSort.call(this,e)},resetParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
t.resetParams.call(this,e)}},d(o,"changeSort",[c.action],Object.getOwnPropertyDescriptor(o,"changeSort"),o),d(o,"resetParams",[c.action],Object.getOwnPropertyDescriptor(o,"resetParams"),o),o),r)},e.filterQueryParams=p,e.findTopicList=m})),define("discourse/routes/conduct",["exports","discourse/routes/faq"],(function(e,t){function i(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(){super(...arguments),i(this,"pageId","conduct")}}e.default=n})),define("discourse/routes/discourse",["exports","discourse/models/composer","discourse/models/draft","@ember/routing/route","@ember/runloop","discourse/lib/user-presence","discourse-common/lib/get-owner"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=n.default.extend({showFooter:!1,willTransition(){(0,o.seenUser)()},activate(){this._super(...arguments),this.showFooter&&this.controllerFor("application").set("showFooter",!0)},_refreshTitleOnce(){this.send("_collectTitleTokens",[])},actions:{_collectTitleTokens(e){if(this.titleToken){const t=this.titleToken()
t&&t.length&&(t instanceof Array?t.forEach((function(t){e.push(t)})):e.push(t))}return!0},refreshTitle(){(0,r.once)(this,this._refreshTitleOnce)}},redirectIfLoginRequired(){this.controllerFor("application").get("loginRequired")&&this.replaceWith("login")},openTopicDraft(){const e=(0,s.getOwner)(this).lookup("service:composer")
e.get("model.action")===t.default.CREATE_TOPIC&&e.get("model.draftKey")===t.default.NEW_TOPIC_KEY?e.set("model.composeState",t.default.OPEN):i.default.get(t.default.NEW_TOPIC_KEY).then((i=>{i.draft&&e.open({action:t.default.CREATE_TOPIC,draft:i.draft,draftKey:t.default.NEW_TOPIC_KEY,draftSequence:i.draft_sequence})}))},isCurrentUser(e){return!!this.currentUser&&e.id===this.currentUser.id},isPoppedState:e=>!(e._discourse_intercepted||!e.intent.url&&!e.queryParamsOnly)})
var a=l
e.default=a})),define("discourse/routes/discovery-categories",["exports","discourse/models/category-list","discourse/routes/discourse","@ember/object","I18n","discourse/mixins/open-composer","discourse/lib/preload-store","discourse/models/topic-list","discourse/lib/ajax","discourse/lib/utilities","rsvp","@ember/runloop","discourse/lib/show-modal","discourse/models/session"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){var h
function f(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var g=i.default.extend(o.default,(f(h={renderTemplate(){this.render("navigation/categories",{outlet:"navigation-bar"}),this.render("discovery/categories",{outlet:"list-container"})},findCategories(){let e=!this.site.mobileView&&this.siteSettings.desktop_category_page_style
return"categories_and_latest_topics"===e||"categories_and_latest_topics_created_date"===e?this._findCategoriesAndTopics("latest"):"categories_and_top_topics"===e?this._findCategoriesAndTopics("top"):(s.default.remove("topic_list"),t.default.list(this.store))},model(){return this.findCategories().then((e=>{const t=this.topicTrackingState
return t&&(t.sync(e,"categories"),t.trackIncoming("categories")),e}))},_loadBefore:e=>function(t,i){this.topics.removeObjects(this.topics.filter((e=>t.includes(e.id))))
const n=`/latest.json?topic_ids=${t.join(",")}`
return(0,a.ajax)({url:n,data:this.params}).then((t=>{const n=new Set
this.topics.forEach((e=>n.add(e.id)))
let r=0
l.default.topicsFrom(e,t).forEach((e=>{n.has(e.id)||(e.set("highlight",!0),this.topics.insertAt(r,e),r++)})),i&&m.default.currentProp("topicList",this)}))},_findCategoriesAndTopics(e){return(0,c.hash)({wrappedCategoriesList:s.default.getAndRemove("categories_list"),topicsList:s.default.getAndRemove("topic_list")}).then((i=>{let{wrappedCategoriesList:r,topicsList:o}=i,s=r&&r.category_list,u=this.store
return s&&o?(o.topic_list?.top_tags&&this.site.set("top_tags",o.topic_list.top_tags),n.default.create({categories:t.default.categoriesFrom(this.store,r),topics:l.default.topicsFrom(this.store,o),can_create_category:s.can_create_category,can_create_topic:s.can_create_topic,loadBefore:this._loadBefore(u)})):(0,a.ajax)(`/categories_and_${e}`).then((e=>(e.topic_list?.top_tags&&this.site.set("top_tags",e.topic_list.top_tags),n.default.create({categories:t.default.categoriesFrom(this.store,e),topics:l.default.topicsFrom(this.store,e),can_create_category:e.category_list.can_create_category,can_create_topic:e.category_list.can_create_topic,loadBefore:this._loadBefore(u)}))))}))},titleToken(){if("categories"!==(0,u.defaultHomepage)())return r.default.t("filters.categories.title")},setupController(e,t){e.set("model",t),this.controllerFor("navigation/categories").setProperties({showCategoryAdmin:t.get("can_create_category"),canCreateTopic:t.get("can_create_topic")})},triggerRefresh(){this.refresh()},createCategory(){this.transitionTo("newCategory")},reorderCategories(){(0,p.default)("reorder-categories")},createTopic(){this.get("currentUser.has_topic_draft")?this.openTopicDraft():this.openComposer(this.controllerFor("discovery/categories"))},didTransition(){return(0,d.next)((()=>this.controllerFor("application").set("showFooter",!0))),!0}},"triggerRefresh",[n.action],Object.getOwnPropertyDescriptor(h,"triggerRefresh"),h),f(h,"createCategory",[n.action],Object.getOwnPropertyDescriptor(h,"createCategory"),h),f(h,"reorderCategories",[n.action],Object.getOwnPropertyDescriptor(h,"reorderCategories"),h),f(h,"createTopic",[n.action],Object.getOwnPropertyDescriptor(h,"createTopic"),h),f(h,"didTransition",[n.action],Object.getOwnPropertyDescriptor(h,"didTransition"),h),h))
e.default=g})),define("discourse/routes/discovery-filter",["exports","I18n","discourse/routes/discourse","@ember/object"],(function(e,t,i,n){var r
function o(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let s=(r=class extends i.default{constructor(){super(...arguments),o(this,"queryParams",{q:{replace:!0,refreshModel:!0}})}model(e){return this.store.findFiltered("topicList",{filter:"filter",params:{q:e.q}})}titleToken(){const e=t.default.t("filters.filter.title")
return t.default.t("filters.with_topics",{filter:e})}setupController(e,t){this.controllerFor("discovery/topics").setProperties({model:t})}renderTemplate(){this.render("navigation/filter",{outlet:"navigation-bar"}),this.render("discovery/topics",{controller:"discovery/topics",outlet:"list-container"})}changeSort(){}},l=r.prototype,a="changeSort",u=[n.action],c=Object.getOwnPropertyDescriptor(r.prototype,"changeSort"),d=r.prototype,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),r)
var l,a,u,c,d,p
e.default=s})),define("discourse/routes/discovery",["exports","discourse/routes/discourse","discourse/mixins/open-composer","discourse/models/user","discourse/mixins/scroll-top","discourse/lib/topic-list-tracker","@ember/object"],(function(e,t,i,n,r,o,s){var l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u=t.default.extend(i.default,(a(l={queryParams:{filter:{refreshModel:!0}},redirect(){return this.redirectIfLoginRequired()},beforeModel(e){const t=e.intent.url
let i
if("/"!==t&&"/latest"!==t&&"/categories"!==t||e.targetName.includes("discovery.top")||!n.default.currentProp("user_option.should_be_redirected_to_top"))t&&(i=t.match(/top\/(.*)$/))&&this.site.periods.includes(i[1])&&this.replaceWith("discovery.top",{queryParams:{period:i[1]}})
else{n.default.currentProp("user_option.should_be_redirected_to_top",!1)
const e=n.default.currentProp("user_option.redirected_to_top.period")||"all"
this.replaceWith("discovery.top",{queryParams:{period:e}})}},loading(){return this.controllerFor("discovery").loadingBegan(),!0},loadingComplete(){this.controllerFor("discovery").loadingComplete(),this.session.get("topicListScrollPosition")||(0,r.scrollTop)()},didTransition(){this.send("loadingComplete")
const e=this.controllerFor("discovery/topics").get("model");(0,o.setTopicList)(e)},clearPin(e){e.clearPin()},createTopic(){this.get("currentUser.has_topic_draft")?this.openTopicDraft():this.openComposer(this.controllerFor("discovery/topics"))},dismissReadTopics(e){const t=e?"topics":"posts"
this.send("dismissRead",t)},dismissRead(e){const t=this.controllerFor("discovery/topics")
t.send("dismissRead",e,{categoryId:t.get("category.id"),includeSubcategories:!t.noSubcategories})},triggerRefresh(){this.refresh()}},"loading",[s.action],Object.getOwnPropertyDescriptor(l,"loading"),l),a(l,"loadingComplete",[s.action],Object.getOwnPropertyDescriptor(l,"loadingComplete"),l),a(l,"didTransition",[s.action],Object.getOwnPropertyDescriptor(l,"didTransition"),l),a(l,"clearPin",[s.action],Object.getOwnPropertyDescriptor(l,"clearPin"),l),a(l,"createTopic",[s.action],Object.getOwnPropertyDescriptor(l,"createTopic"),l),a(l,"dismissReadTopics",[s.action],Object.getOwnPropertyDescriptor(l,"dismissReadTopics"),l),a(l,"dismissRead",[s.action],Object.getOwnPropertyDescriptor(l,"dismissRead"),l),a(l,"triggerRefresh",[s.action],Object.getOwnPropertyDescriptor(l,"triggerRefresh"),l),l))
e.default=u})),define("discourse/routes/edit-category-index",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({afterModel(){const e=this.paramsFor("editCategory")
this.replaceWith(`/c/${e.slug}/edit/general`)}})
e.default=i})),define("discourse/routes/edit-category-tabs",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({model(){return this.modelFor("editCategory")},setupController(e,t,i){this._super(...arguments)
const n=this.paramsFor("editCategory")
e.setProperties({parentParams:n,selectedTab:i.to.params.tab,showTooltip:!1})}})
e.default=i})),define("discourse/routes/edit-category",["exports","discourse/models/category","discourse/routes/discourse","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=i.default.extend({model(e){return t.default.reloadCategoryWithPermissions(e,this.store,this.site)},afterModel(e){e.can_edit||this.replaceWith("/404")},titleToken(){return n.default.t("category.edit_dialog_title",{categoryName:this.currentModel.name})}})
e.default=r})),define("discourse/routes/email-login",["exports","discourse/routes/discourse","I18n","discourse/lib/ajax"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({titleToken:()=>i.default.t("login.title"),model:e=>(0,n.ajax)(`/session/email-login/${e.token}.json`)})
e.default=r})),define("discourse/routes/exception-unknown",["exports","discourse/routes/unknown"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({templateName:"unknown"})
e.default=i})),define("discourse/routes/exception",["exports","discourse/routes/discourse","@ember/object"],(function(e,t,i){var n
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r,o,s,l,a,u,c=t.default.extend((r=n={serialize:()=>"",didTransition(){return this.controllerFor("application").set("showFooter",!0),!0}},o="didTransition",s=[i.action],l=Object.getOwnPropertyDescriptor(n,"didTransition"),a=n,u={},Object.keys(l).forEach((function(e){u[e]=l[e]})),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=s.slice().reverse().reduce((function(e,t){return t(r,o,e)||e}),u),a&&void 0!==u.initializer&&(u.value=u.initializer?u.initializer.call(a):void 0,u.initializer=void 0),void 0===u.initializer&&(Object.defineProperty(r,o,u),u=null),n))
e.default=c})),define("discourse/routes/faq",["exports","discourse/routes/discourse","@ember/service","discourse/lib/url","discourse/models/static-page","I18n","@ember/object"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let d=(l=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="siteSettings",n=this,(i=a)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),u(this,"pageId","faq"),u(this,"templateName","faq")}activate(){super.activate(...arguments),n.default.jumpToElement(document.location.hash.slice(1))}beforeModel(e){"faq"===this.pageId&&this.siteSettings.faq_url&&(e.abort(),n.default.redirectTo(this.siteSettings.faq_url))}model(){return r.default.find(this.pageId)}titleToken(){return o.default.t(this.pageId)}didTransition(){return this.controllerFor("application").set("showFooter",!0),!0}},a=c(l.prototype,"siteSettings",[i.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c(l.prototype,"didTransition",[s.action],Object.getOwnPropertyDescriptor(l.prototype,"didTransition"),l.prototype),l)
e.default=d})),define("discourse/routes/forgot-password",["exports","discourse/routes/discourse","discourse/lib/utilities","@ember/runloop"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{async beforeModel(){const{loginRequired:e}=this.controllerFor("application"),t=await this.replaceWith(e?"login":`discovery.${(0,i.defaultHomepage)()}`);(0,n.next)((()=>t.send("showForgotPassword")))}}e.default=r})),define("discourse/routes/full-page-search",["exports","discourse/lib/search","discourse/lib/page-tracker","discourse/routes/discourse","I18n","discourse/lib/preload-store","discourse/lib/ajax","discourse/lib/utilities","@ember/object"],(function(e,t,i,n,r,o,s,l,a){var u
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c,d,p,m,h,f,g=n.default.extend((c=u={queryParams:{q:{},expanded:!1,context_id:{},context:{},skip_context:{}},category:null,titleToken(){return r.default.t("search.results_page",{term:(0,l.escapeExpression)(this.controllerFor("full-page-search").get("searchTerm"))})},model(e){const n=(0,i.getTransient)("lastSearch")
let r={q:e.q}
e.context_id&&!r.skip_context&&(r.search_context={type:e.context,id:e.context_id})
const l=(0,t.getSearchKey)(r)
return n&&n.data.searchKey===l?((0,i.setTransient)("lastSearch",{searchKey:l,model:n.data.model},5),n.data.model):o.default.getAndRemove("search",(()=>(0,t.isValidSearchTerm)(e.q,this.siteSettings)?(0,s.ajax)("/search",{data:r}):null)).then((async e=>{const n=e&&await(0,t.translateResults)(e)||{}
return(0,i.setTransient)("lastSearch",{searchKey:l,model:n},5),n}))},didTransition(){return this.controllerFor("full-page-search")._afterTransition(),!0}},d="didTransition",p=[a.action],m=Object.getOwnPropertyDescriptor(u,"didTransition"),h=u,f={},Object.keys(m).forEach((function(e){f[e]=m[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),f),h&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(h):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(c,d,f),f=null),u))
e.default=g})),define("discourse/routes/group-activity-index",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({beforeModel(){this.modelFor("group").can_see_members?this.transitionTo("group.activity.posts"):this.transitionTo("group.activity.mentions")}})
e.default=i})),define("discourse/routes/group-activity-mentions",["exports","discourse/routes/group-activity-posts"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.buildGroupPage)("mentions")
e.default=i})),define("discourse/routes/group-activity-posts",["exports","discourse/routes/discourse","I18n","@ember/object"],(function(e,t,i,n){function r(e){var r,o,s,l,a,u,c
return t.default.extend((o=r={type:e,templateName:"group-activity-posts",controllerName:"group-activity-posts",titleToken:()=>i.default.t(`groups.${e}`),model(t,i){let r=(0,n.get)(i.to,"queryParams.category_id")
return this.modelFor("group").findPosts({type:e,categoryId:r})},setupController(t,i){let n=i.length<20
t.setProperties({model:i,type:e,canLoadMore:!n}),this.controllerFor("application").set("showFooter",n)},didTransition:()=>!0},s="didTransition",l=[n.action],a=Object.getOwnPropertyDescriptor(r,"didTransition"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))}Object.defineProperty(e,"__esModule",{value:!0}),e.buildGroupPage=r,e.default=void 0
var o=r("posts")
e.default=o})),define("discourse/routes/group-activity-topics",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,titleToken:()=>i.default.t("groups.topics"),model(){return this.store.findFiltered("topicList",{filter:`topics/groups/${this.modelFor("group").get("name")}`})}})
e.default=n}))
define("discourse/routes/group-index",["exports","discourse/routes/discourse","I18n","@ember/object","discourse/lib/show-modal","@ember/service","discourse/components/modal/group-add-members"],(function(e,t,i,n,r,o,s){var l
function a(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u=t.default.extend((a(l={modal:(0,o.inject)(),titleToken:()=>i.default.t("groups.members.title"),model(e){return this._params=e,this.modelFor("group")},setupController(e,t){e.setProperties({model:t,filterInput:this._params.filter,showing:"members"}),e.reloadMembers(!0)},showAddMembersModal(){this.modal.show(s.default,{model:this.modelFor("group")})},showInviteModal(){const e=this.modelFor("group");(0,r.default)("create-invite").buffered.set("groupIds",[e.id])},didTransition(){return this.controllerFor("group-index").set("filterInput",this._params.filter),!0}},"showAddMembersModal",[n.action],Object.getOwnPropertyDescriptor(l,"showAddMembersModal"),l),a(l,"showInviteModal",[n.action],Object.getOwnPropertyDescriptor(l,"showInviteModal"),l),a(l,"didTransition",[n.action],Object.getOwnPropertyDescriptor(l,"didTransition"),l),l))
e.default=u})),define("discourse/routes/group-manage-categories",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,titleToken:()=>i.default.t("groups.manage.categories.title")})
e.default=n})),define("discourse/routes/group-manage-email",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,beforeModel(){if(!this.siteSettings.enable_smtp)return this.transitionTo("group.manage.profile")},titleToken:()=>i.default.t("groups.manage.email.title")})
e.default=n})),define("discourse/routes/group-manage-index",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0,beforeModel(){this.transitionTo("group.manage.profile")}})
e.default=i})),define("discourse/routes/group-manage-interaction",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,titleToken:()=>i.default.t("groups.manage.interaction.title")})
e.default=n})),define("discourse/routes/group-manage-logs",["exports","discourse/routes/discourse","I18n","@ember/object"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((o=r={titleToken:()=>i.default.t("groups.manage.logs.title"),model(){return this.modelFor("group").findLogs()},setupController(e,t){this.controllerFor("group-manage-logs").setProperties({model:t})},willTransition(){this.controllerFor("group-manage-logs").reset()}},s="willTransition",l=[n.action],a=Object.getOwnPropertyDescriptor(r,"willTransition"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/routes/group-manage-membership",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,titleToken:()=>i.default.t("groups.manage.membership.title"),afterModel(e){e.get("automatic")&&this.replaceWith("group.manage.interaction",e)}})
e.default=n})),define("discourse/routes/group-manage-profile",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,titleToken:()=>i.default.t("groups.manage.profile.title")})
e.default=n})),define("discourse/routes/group-manage-tags",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,titleToken:()=>i.default.t("groups.manage.tags.title")})
e.default=n})),define("discourse/routes/group-manage",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,titleToken:()=>i.default.t("groups.manage.title"),model(){return this.modelFor("group")},afterModel(e){this.currentUser&&(this.modelFor("group").can_admin_group&&e.get("automatic")||this.currentUser.canManageGroup(e))||this.transitionTo("group.members",e)},setupController(e,t){this.controllerFor("group-manage").setProperties({model:t}),this.controllerFor("group").set("showing","manage")}})
e.default=n})),define("discourse/routes/group-members",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({beforeModel(){this.transitionTo("group.index")}})
e.default=i})),define("discourse/routes/group-messages-archive",["exports","discourse/routes/build-group-messages-route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.default)("archive")
e.default=i})),define("discourse/routes/group-messages-inbox",["exports","discourse/routes/build-group-messages-route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.default)("inbox")
e.default=i})),define("discourse/routes/group-messages-index",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({beforeModel(){this.transitionTo("group.messages.inbox")}})
e.default=i})),define("discourse/routes/group-messages",["exports","discourse/routes/discourse","I18n","@ember/object"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((o=r={titleToken:()=>i.default.t("groups.messages"),model(){return this.modelFor("group")},afterModel(e){e.get("is_group_user")||this.currentUser&&this.currentUser.admin||this.transitionTo("group.members",e)},triggerRefresh(){this.refresh()}},s="triggerRefresh",l=[n.action],a=Object.getOwnPropertyDescriptor(r,"triggerRefresh"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/routes/group-permissions",["exports","discourse/routes/discourse","I18n","discourse/lib/ajax","discourse/models/permission-type"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=t.default.extend({showFooter:!0,titleToken:()=>i.default.t("groups.permissions.title"),model(){let e=this.modelFor("group")
return(0,n.ajax)(`/g/${e.name}/permissions`).then((e=>(e.forEach((e=>{e.description=(0,r.buildPermissionDescription)(e.permission_type)})),{permissions:e}))).catch((()=>{this.transitionTo("group.members",e)}))},setupController(e,t){this.controllerFor("group-permissions").setProperties({model:t}),this.controllerFor("group").set("showing","permissions")}})
e.default=o})),define("discourse/routes/group-requests",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({titleToken:()=>i.default.t("groups.requests.title"),model(e){return this._params=e,this.modelFor("group")},setupController(e,t){this.controllerFor("group").set("showing","requests"),e.setProperties({model:t,filterInput:this._params.filter}),e.findRequesters(!0)}})
e.default=n})),define("discourse/routes/group",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({titleToken(){return[this.modelFor("group").get("name")]},model(e){return this.store.find("group",e.name)},serialize:e=>({name:e.get("name").toLowerCase()}),setupController(e,t){e.set("model",t)}})
e.default=i})),define("discourse/routes/groups-index",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{constructor(){super(...arguments),n(this,"queryParams",{order:{refreshModel:!0,replace:!0},asc:{refreshModel:!0,replace:!0},filter:{refreshModel:!0},type:{refreshModel:!0,replace:!0},username:{refreshModel:!0}})}titleToken(){return i.default.t("groups.index.title")}model(e){return e}setupController(e,t){e.loadGroups(t)}}e.default=r})),define("discourse/routes/groups-new",["exports","discourse/routes/discourse","discourse/models/group","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({showFooter:!0,titleToken:()=>n.default.t("admin.groups.new.title"),model:()=>i.default.create({automatic:!1,visibility_level:0,can_admin_group:!0}),setupController(e,t){e.set("model",t)},afterModel(){this.get("currentUser.can_create_group")||this.transitionTo("groups")}})
e.default=r})),define("discourse/routes/guidelines",["exports","discourse/routes/faq"],(function(e,t){function i(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(){super(...arguments),i(this,"pageId","guidelines")}}e.default=n})),define("discourse/routes/invites-show",["exports","discourse/routes/discourse","I18n","discourse/lib/preload-store","discourse-common/lib/object","discourse/mixins/disable-sidebar"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=t.default.extend(o.default,{titleToken:()=>i.default.t("invites.accept_title"),model:e=>n.default.get("invite_info")?n.default.getAndRemove("invite_info").then((t=>(0,r.deepMerge)(e,t))):{},activate(){this._super(...arguments),this.controllerFor("application").setProperties({showSiteHeader:!1})},deactivate(){this._super(...arguments),this.controllerFor("application").setProperties({showSiteHeader:!0})},setupController(e,t){this._super(...arguments),t.user_fields&&e.userFields.forEach((e=>{t.user_fields[e.field.id]&&(e.value=t.user_fields[e.field.id])}))}})
e.default=s})),define("discourse/routes/login",["exports","discourse/routes/discourse","@ember/service","discourse/lib/utilities","@ember/runloop","discourse/models/static-page"],(function(e,t,i,n,r,o){var s,l
function a(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let u=(s=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="siteSettings",n=this,(i=l)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),a(this,"controllerName","login-page")}beforeModel(){this.siteSettings.login_required||this.replaceWith(`/${(0,n.defaultHomepage)()}`).then((e=>{(0,r.next)((()=>e.send("showLogin")))}))}model(){return o.default.find("login")}},c=s.prototype,d="siteSettings",p=[i.inject],m={configurable:!0,enumerable:!0,writable:!0,initializer:null},f={},Object.keys(m).forEach((function(e){f[e]=m[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),f),h&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(h):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(c,d,f),f=null),l=f,s)
var c,d,p,m,h,f
e.default=u})),define("discourse/routes/new-category",["exports","discourse/routes/discourse","I18n","rsvp","discourse/lib/constants"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.setNewCategoryDefaultColors=function(e,t){o=e,s=t}
let o="0088CC",s="FFFFFF"
var l=t.default.extend({controllerName:"edit-category-tabs",templateName:"edit-category-tabs",beforeModel(){this.currentUser&&(this.currentUser.admin||this.currentUser.moderator&&!1!==this.siteSettings.moderators_manage_categories_and_groups)||this.replaceWith("/404")},model(){return n.Promise.resolve(this.groupPermissions()).then((e=>this.newCategoryWithPermissions(e))).catch((()=>this.newCategoryWithPermissions(this.defaultGroupPermissions())))},newCategoryWithPermissions(e){return this.store.createRecord("category",{color:o,text_color:s,group_permissions:e,available_groups:this.site.groups.map((e=>e.name)),allow_badges:!0,topic_featured_link_allowed:!0,custom_fields:{},category_setting:{},search_priority:r.SEARCH_PRIORITIES.normal,required_tag_groups:[],form_template_ids:[]})},titleToken:()=>i.default.t("category.create"),groupPermissions(){return this.defaultGroupPermissions()},defaultGroupPermissions(){return[{group_name:this.site.groups.findBy("id",0).name,permission_type:1}]}})
e.default=l})),define("discourse/routes/new-message",["exports","discourse/routes/discourse","discourse/models/group","I18n","discourse/lib/cookie","@ember/runloop","@ember/service"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l=t.default.extend({dialog:(0,s.inject)(),beforeModel(e){const t=e.to.queryParams,s=t.groupname||t.group_name
this.currentUser?this.replaceWith("discovery.latest").then((e=>{t.username?e.send("createNewMessageViaParams",{recipients:t.username,topicTitle:t.title,topicBody:t.body}):s?i.default.messageable(s).then((i=>{i.messageable?(0,o.next)((()=>e.send("createNewMessageViaParams",{recipients:s,topicTitle:t.title,topicBody:t.body}))):this.dialog.alert(n.default.t("composer.cant_send_pm",{username:s}))})).catch((()=>this.dialog.alert(n.default.t("generic_error")))):e.send("createNewMessageViaParams",{topicTitle:t.title,topicBody:t.body})})):((0,r.default)("destination_url",window.location.href),this.replaceWith("login"))}})
e.default=l})),define("discourse/routes/new-topic",["exports","discourse/models/category","discourse/routes/discourse","discourse/lib/cookie","@ember/runloop"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=i.default.extend({beforeModel(e){if(this.currentUser){let i,n
if(e.to.queryParams.category_id)n=e.to.queryParams.category_id,i=t.default.findById(n)
else if(e.to.queryParams.category){const t=e.to.queryParams.category.split("/")
i=this._getCategory(t[0],t[1],"nameLower"),i||(i=this._getCategory(t[0],t[1],"slug")),i&&(n=i.id)}if(i){let t="discovery.category",r={category:i,id:i.id}
this.replaceWith(t,r).then((t=>{this.controllerFor("navigation/category").canCreateTopic&&this._sendTransition(t,e,n)}))}else e.from?(e.abort(),this.send("createNewTopicViaParams")):this.replaceWith("discovery.latest").then((t=>{this.controllerFor("navigation/default").canCreateTopic&&this._sendTransition(t,e)}))}else(0,n.default)("destination_url",window.location.href),this.replaceWith("login")},_sendTransition(e,t,i){(0,r.next)((()=>{e.send("createNewTopicViaParams",t.to.queryParams.title,t.to.queryParams.body,i,t.to.queryParams.tags)}))},_getCategory(e,t,i){let n
if(t){const r=this.site.categories,o=r.findBy(i,e.toLowerCase())
o&&(n=r.find((e=>e&&e[i]===t.toLowerCase()&&e.parent_category_id===o.id)))}else n=this.site.categories.findBy(i,e.toLowerCase())
return n}})
e.default=o})),define("discourse/routes/password-reset",["exports","discourse/routes/discourse","I18n","discourse/lib/preload-store","discourse/lib/ajax","discourse-common/lib/object","discourse/lib/url"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l=t.default.extend({titleToken:()=>i.default.t("login.reset_password"),model(e){if(n.default.get("password_reset"))return n.default.getAndRemove("password_reset").then((t=>(0,o.deepMerge)(e,t)))},afterModel(e){if(e)return(0,r.ajax)({url:(0,s.userPath)(`confirm-email-token/${e.token}.json`),dataType:"json"})}})
e.default=l})),define("discourse/routes/post",["exports","discourse/routes/discourse","@ember/service"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({router:(0,i.inject)(),model(e){return this.store.find("post",e.id)},afterModel(e){this.router.transitionTo(e.url)}})
e.default=n})),define("discourse/routes/preferences-account",["exports","discourse/routes/restricted-user","discourse/models/user-badge","discourse/lib/show-modal","@ember/object","I18n"],(function(e,t,i,n,r,o){var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l,a,u,c,d,p,m=t.default.extend((l=s={showFooter:!0,model(){const e=this.modelFor("user")
return this.siteSettings.enable_badges?i.default.findByUsername(e.get("username")).then((t=>(e.set("badges",t.map((e=>e.badge))),e))):e},setupController(e,t){e.reset(),e.setProperties({model:t,newNameInput:t.get("name"),newTitleInput:t.get("title"),newPrimaryGroupInput:t.get("primary_group_id"),newFlairGroupId:t.get("flair_group_id"),newStatus:t.status,subpageTitle:o.default.t("user.preferences_nav.account")})},showAvatarSelector(e){(0,n.default)("avatar-selector").setProperties({user:e})}},a="showAvatarSelector",u=[r.action],c=Object.getOwnPropertyDescriptor(s,"showAvatarSelector"),d=s,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),s))
e.default=m})),define("discourse/routes/preferences-apps",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0})
e.default=i}))
define("discourse/routes/preferences-categories",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0})
e.default=i})),define("discourse/routes/preferences-email",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0,model(){return this.modelFor("user")},setupController(e,t){e.reset(),e.setProperties({model:t,oldEmail:e.new?"":t.email,newEmail:e.new?"":t.email})},resetController(e,t){t&&e.set("new",void 0)}})
e.default=i})),define("discourse/routes/preferences-emails",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0})
e.default=i})),define("discourse/routes/preferences-index",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0,redirect(){this.transitionTo("preferences.account")}})
e.default=i})),define("discourse/routes/preferences-interface",["exports","discourse/routes/restricted-user","discourse/lib/theme-selector"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,setupController(e,t){e.setProperties({model:t,textSize:t.get("currentTextSize"),themeId:(0,i.currentThemeId)(),makeThemeDefault:!t.get("user_option.theme_ids")||(0,i.currentThemeId)()===t.get("user_option.theme_ids")[0],makeTextSizeDefault:t.get("currentTextSize")===t.get("user_option.text_size")})}})
e.default=n})),define("discourse/routes/preferences-navigation-menu",["exports","discourse/routes/restricted-user","discourse/models/category"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,setupController(e,t){const n={model:t,selectedSidebarCategories:i.default.findByIds(t.sidebarCategoryIds),newSidebarLinkToFilteredList:t.sidebarLinkToFilteredList,newSidebarShowCountOfNewItems:t.sidebarShowCountOfNewItems}
this.siteSettings.tagging_enabled&&(n.selectedSidebarTagNames=t.sidebarTagNames),e.setProperties(n)}})
e.default=n})),define("discourse/routes/preferences-notifications",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0})
e.default=i})),define("discourse/routes/preferences-profile",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0,setupController(e,t){e.set("model",t)}})
e.default=i})),define("discourse/routes/preferences-second-factor",["exports","discourse/routes/restricted-user","@ember/object","@ember/service"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((r={currentUser:(0,n.inject)(),siteSettings:(0,n.inject)(),showFooter:!0,model(){return this.modelFor("user")},setupController(e,t){e.setProperties({model:t,newUsername:t.username}),e.set("loading",!0),t.loadSecondFactorCodes("").then((t=>{t.error?e.set("errorMessage",t.error):e.setProperties({errorMessage:null,loaded:!t.password_required,dirty:!!t.password_required,totps:t.totps,security_keys:t.security_keys})})).catch(e.popupAjaxError).finally((()=>e.set("loading",!1)))},willTransition(e){return this._super(...arguments),!("preferences.second-factor"!==e.targetName&&this.currentUser&&!this.currentUser.is_anonymous&&!this.currentUser.second_factor_enabled&&("staff"!==this.siteSettings.enforce_second_factor||this.currentUser.staff)&&"no"!==this.siteSettings.enforce_second_factor)||(e.abort(),!1)}},o=r,s="willTransition",l=[i.action],a=Object.getOwnPropertyDescriptor(r,"willTransition"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/routes/preferences-security",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0})
e.default=i})),define("discourse/routes/preferences-tags",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0})
e.default=i})),define("discourse/routes/preferences-tracking",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0})
e.default=i})),define("discourse/routes/preferences-users",["exports","discourse/routes/restricted-user"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0})
e.default=i})),define("discourse/routes/preferences",["exports","discourse/routes/restricted-user","I18n","@ember/service"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({router:(0,n.inject)(),model(){return this.modelFor("user")},titleToken(){let e=this.controllerFor(this.router.currentRouteName),t=e?.subpageTitle
return t?`${t} - ${i.default.t("user.preferences")}`:i.default.t("user.preferences")}})
e.default=r})),define("discourse/routes/privacy",["exports","discourse/routes/discourse","@ember/service","discourse/lib/url","discourse/models/static-page","I18n","@ember/object"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let c=(l=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="siteSettings",n=this,(i=a)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}activate(){super.activate(...arguments),n.default.jumpToElement(document.location.hash.slice(1))}beforeModel(e){this.siteSettings.privacy_policy_url&&(e.abort(),n.default.redirectTo(this.siteSettings.privacy_policy_url))}model(){return r.default.find("privacy")}titleToken(){return o.default.t("privacy")}didTransition(){return this.controllerFor("application").set("showFooter",!0),!0}},a=u(l.prototype,"siteSettings",[i.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(l.prototype,"didTransition",[s.action],Object.getOwnPropertyDescriptor(l.prototype,"didTransition"),l.prototype),l)
e.default=c})),define("discourse/routes/restricted-user",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({afterModel(){this.modelFor("user").get("can_edit")||this.replaceWith("userActivity")}})
e.default=i})),define("discourse/routes/review-index",["exports","discourse/routes/discourse","@ember/utils","@ember/object","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o
function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l=t.default.extend((s(o={model(e){return null===e.sort_order&&("reviewed"===e.status||"all"===e.status?e.sort_order="created_at":e.sort_order="score"),this.store.findAll("reviewable",e)},setupController(e,t){let n=t.resultSetMeta
void 0!==n.reviewable_count&&this.currentUser.set("reviewable_count",n.reviewable_count),void 0!==n.unseen_reviewable_count&&this.currentUser.set("unseen_reviewable_count",n.unseen_reviewable_count),e.setProperties({reviewables:t,type:n.type,filterType:n.type,filterStatus:n.status,filterTopic:n.topic_id,filterCategoryId:n.category_id,filterPriority:n.priority,reviewableTypes:n.reviewable_types,filterUsername:n.username,filterReviewedBy:n.reviewed_by,filterFromDate:(0,i.isPresent)(n.from_date)?moment(n.from_date):null,filterToDate:(0,i.isPresent)(n.to_date)?moment(n.to_date):null,filterSortOrder:n.sort_order,sort_order:n.sort_order,additionalFilters:n.additional_filters||{}}),e.reviewables.setEach("last_performing_username",null)},activate(){this.messageBus.subscribe("/reviewable_claimed",this._updateClaimedBy),this.messageBus.subscribe(this._reviewableCountsChannel,this._updateReviewables)},deactivate(){this.messageBus.unsubscribe("/reviewable_claimed",this._updateClaimedBy),this.messageBus.unsubscribe(this._reviewableCountsChannel,this._updateReviewables)},_updateClaimedBy(e){const t=this.controller.reviewables
if(t){const i=e.user?this.store.createRecord("user",e.user):null
t.forEach((t=>{e.topic_id===t.topic.id&&t.set("claimed_by",i)}))}},_updateReviewables(e){e.updates&&this.controller.reviewables.forEach((t=>{const i=e.updates[t.id]
i&&t.setProperties(i)}))},get _reviewableCountsChannel(){return`/reviewable_counts/${this.currentUser.id}`},refreshRoute(){this.refresh()}},"_updateClaimedBy",[r.bind],Object.getOwnPropertyDescriptor(o,"_updateClaimedBy"),o),s(o,"_updateReviewables",[r.bind],Object.getOwnPropertyDescriptor(o,"_updateReviewables"),o),s(o,"refreshRoute",[n.action],Object.getOwnPropertyDescriptor(o,"refreshRoute"),o),o))
e.default=l})),define("discourse/routes/review-settings",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({model(){return this.store.find("reviewable-settings")},setupController(e,t){e.set("settings",t)}})
e.default=i})),define("discourse/routes/review-show",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({setupController(e,t){e.set("reviewable",t)}})
e.default=i})),define("discourse/routes/review-topics",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({model(){return this.store.findAll("reviewable-topic")},setupController(e,t){e.set("reviewableTopics",t)}})
e.default=i})),define("discourse/routes/review",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({titleToken:()=>i.default.t("review.title")})
e.default=n})),define("discourse/routes/rules",["exports","discourse/routes/faq"],(function(e,t){function i(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(){super(...arguments),i(this,"pageId","rules")}}e.default=n})),define("discourse/routes/second-factor-auth",["exports","discourse/routes/discourse","discourse/lib/preload-store","discourse/lib/ajax","discourse/lib/ajax-error","discourse/mixins/disable-sidebar"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=t.default.extend(o.default,{queryParams:{nonce:{refreshModel:!0}},model:e=>i.default.data.has("2fa_challenge_data")?i.default.getAndRemove("2fa_challenge_data"):(0,n.ajax)("/session/2fa.json",{type:"GET",data:{nonce:e.nonce}}).catch((e=>{const t=(0,r.extractError)(e)
if(t)return{error:t}
throw e})),setupController(e,t){this._super(...arguments),e.resetState(),t.error&&(e.displayError(t.error),e.set("loadError",!0))}})
e.default=s})),define("discourse/routes/signup",["exports","discourse/routes/discourse","@ember/runloop"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{beforeModel(){const{canSignUp:e}=this.controllerFor("application")
this.siteSettings.login_required?this.replaceWith("login").then((t=>{e&&(0,i.next)((()=>t.send("showCreateAccount")))})):this.replaceWith("discovery.latest").then((t=>{e&&(0,i.next)((()=>t.send("showCreateAccount")))}))}}e.default=n})),define("discourse/routes/tag-groups-edit",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({showFooter:!0,model(e){return this.store.find("tagGroup",e.id)},afterModel(e){e.set("savingStatus",null)}})
e.default=i})),define("discourse/routes/tag-groups-new",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,beforeModel(){this.siteSettings.tagging_enabled||this.transitionTo("tagGroups")},model(){return this.store.createRecord("tagGroup",{name:i.default.t("tagging.groups.new_name")})}})
e.default=n})),define("discourse/routes/tag-groups",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,model(){return this.store.findAll("tagGroup")},titleToken:()=>i.default.t("tagging.groups.title")})
e.default=n})),define("discourse/routes/tag-show",["exports","discourse/routes/build-topic-route","discourse/controllers/discovery-sortable","discourse/models/category","discourse/models/composer","discourse/routes/discourse","discourse/mixins/filter-mode","I18n","discourse/models/permission-type","discourse/lib/utilities","discourse-common/lib/helpers","discourse/lib/topic-list-tracker","discourse/lib/show-modal","@ember/object","discourse/lib/preload-store","@ember/service"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f){var g
function b(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y="none",_="all"
var v=o.default.extend(s.default,(g={composer:(0,f.inject)(),navMode:"latest",queryParams:i.queryParams,controllerName:"tag.show",templateName:"tag.show",beforeModel(){this.controllerFor("tag.show").setProperties({loading:!0,showInfo:!1})},async model(e,i){const r=this.store.createRecord("tag",{id:(0,u.escapeExpression)(e.tag_id)})
let o
e.additional_tags&&(o=e.additional_tags.split("/").map((e=>this.store.createRecord("tag",{id:(0,u.escapeExpression)(e)}).id)))
const s=this.navMode.split("/")[0]
let l
r&&r.id!==y&&this.currentUser&&(l=await this.store.find("tagNotification",r.id.toLowerCase()))
const c=e.category_slug_path_with_id?n.default.findBySlugPathWithID(e.category_slug_path_with_id):null,p=(0,t.filterQueryParams)(i.to.queryParams,{}),m=this.navMode,f=r?r.id.toLowerCase():y
let g
if(c?(c.setupGroupsAndPermissions(),g=`tags/c/${n.default.slugFor(c)}/${c.id}`,void 0!==this.noSubcategories&&(g+=this.noSubcategories?`/${y}`:`/${_}`),g+=`/${f}/l/${m}`):g=o?`tags/intersection/${f}/${o.join("/")}`:`tag/${f}/l/${m}`,void 0===this.noSubcategories&&"none"===c?.default_list_filter&&"latest"===m)return h.default.getAndRemove("topic_list"),this.replaceWith("tags.showCategoryNone",e.category_slug_path_with_id,f)
const b=await(0,t.findTopicList)(this.store,this.topicTrackingState,g,p,{cached:this.isPoppedState(i)})
return b.topic_list.tags&&1===b.topic_list.tags.length&&r.setProperties({id:b.topic_list.tags[0].name,staff:b.topic_list.tags[0].staff}),(0,d.setTopicList)(b),{tag:r,category:c,list:b,additionalTags:o,filterType:s,tagNotification:l,canCreateTopic:b.can_create_topic,canCreateTopicOnCategory:c?.permission===a.default.FULL,canCreateTopicOnTag:!r.staff||this.currentUser?.staff}},setupController(e,t){const i=this.noSubcategories
if(this.controllerFor("tag.show").setProperties({model:t.tag,...t,period:t.list.for_period,navMode:this.navMode,noSubcategories:i,loading:!1}),t.category||t.additionalTags){const e={type:"tagIntersection",tagId:t.tag.id,tag:t.tag,additionalTags:t.additionalTags||null,categoryId:t.category?.id||null,category:t.category||null}
this.searchService.searchContext=e}else this.searchService.searchContext=t.tag.searchContext},titleToken(){const e=l.default.t(`filters.${this.navMode.replace("/",".")}.title`),t=this.controllerFor("tag.show")
return t.tag?.id?t.category?l.default.t("tagging.filters.with_category",{filter:e,tag:t.tag.id,category:t.category.name}):l.default.t("tagging.filters.without_category",{filter:e,tag:t.tag.id}):t.category?l.default.t("tagging.filters.untagged_with_category",{filter:e,category:t.category.name}):l.default.t("tagging.filters.untagged_without_category",{filter:e})},deactivate(){this._super(...arguments),this.searchService.searchContext=null},renameTag(e){(0,p.default)("rename-tag",{model:e})},createTopic(){if(this.currentUser?.has_topic_draft)this.openTopicDraft()
else{const e=this.controllerFor("tag.show")
this.composer.open({categoryId:e.category?.id,action:r.default.CREATE_TOPIC,draftKey:r.default.NEW_TOPIC_KEY}).then((()=>{if(this.composer.canEditTags&&e.tag?.id){this.composer.model.set("tags",this._controllerTags(e))}}))}},dismissReadTopics(e){const t=e?"topics":"posts"
this.send("dismissRead",t)},dismissRead(e){const t=this.controllerFor("tag-show")
let i={tagName:t.tag?.id}
const n=t.category?.id
n&&(i=Object.assign({},i,{categoryId:n,includeSubcategories:!t.noSubcategories})),t.send("dismissRead",e,i)},resetParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
i.resetParams.call(this,e)},didTransition(){return this.controllerFor("tag.show")._showFooter(),!0},_controllerTags:e=>[e.get("model.id"),...(0,c.makeArray)(e.additionalTags)].filter(Boolean).filter((e=>![y,_].includes(e)))},b(g,"renameTag",[m.action],Object.getOwnPropertyDescriptor(g,"renameTag"),g),b(g,"createTopic",[m.action],Object.getOwnPropertyDescriptor(g,"createTopic"),g),b(g,"dismissReadTopics",[m.action],Object.getOwnPropertyDescriptor(g,"dismissReadTopics"),g),b(g,"dismissRead",[m.action],Object.getOwnPropertyDescriptor(g,"dismissRead"),g),b(g,"resetParams",[m.action],Object.getOwnPropertyDescriptor(g,"resetParams"),g),b(g,"didTransition",[m.action],Object.getOwnPropertyDescriptor(g,"didTransition"),g),g))
e.default=v})),define("discourse/routes/tags-index",["exports","discourse/routes/discourse","I18n","discourse/models/tag","@ember/object"],(function(e,t,i,n,r){var o
function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l=t.default.extend((s(o={model(){return this.store.findAll("tag").then((e=>(e.extras&&(e.extras.categories&&e.extras.categories.forEach((e=>{e.tags=e.tags.map((e=>n.default.create(e)))})),e.extras.tag_groups&&e.extras.tag_groups.forEach((e=>{e.tags=e.tags.map((e=>n.default.create(e)))}))),e)))},titleToken:()=>i.default.t("tagging.tags"),setupController(e,t){this.controllerFor("tags.index").setProperties({model:t,sortProperties:this.siteSettings.tags_sort_alphabetically?["id"]:["totalCount:desc","id"]})},didTransition(){return this.controllerFor("application").set("showFooter",!0),!0},showTagGroups(){return this.transitionTo("tagGroups"),!0},triggerRefresh(){this.refresh()}},"didTransition",[r.action],Object.getOwnPropertyDescriptor(o,"didTransition"),o),s(o,"showTagGroups",[r.action],Object.getOwnPropertyDescriptor(o,"showTagGroups"),o),s(o,"triggerRefresh",[r.action],Object.getOwnPropertyDescriptor(o,"triggerRefresh"),o),o))
e.default=l})),define("discourse/routes/tags-intersection",["exports","discourse/routes/tag-show"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({})
e.default=i}))
define("discourse/routes/tags-legacy-redirect",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({beforeModel(){this.transitionTo("tag.show",this.paramsFor("tags.legacyRedirect").tag_id)}})
e.default=i})),define("discourse/routes/topic-by-slug-or-id",["exports","discourse/models/topic","discourse/routes/discourse","@ember/service"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=i.default.extend({router:(0,n.inject)(),model:e=>e.slugOrId.match(t.ID_CONSTRAINT)?{url:`/t/topic/${e.slugOrId}`}:t.default.idForSlug(e.slugOrId).then((e=>({url:`/t/${e.slug}/${e.topic_id}`}))),afterModel(e){this.router.transitionTo(e.url)}})
e.default=r})),define("discourse/routes/topic-from-params-near",["exports","discourse/routes/topic-from-params"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default
e.default=i})),define("discourse/routes/topic-from-params",["exports","discourse/routes/discourse","discourse/lib/url","discourse/models/draft","@ember/utils","discourse-common/config/environment","@ember/runloop","@ember/object","@ember/service"],(function(e,t,i,n,r,o,s,l,a){var u
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var c,d,p,m,h,f,g=t.default.extend((u={composer:(0,a.inject)(),model(e){(e=e||{}).track_visit=!0
const t=this.modelFor("topic").postStream
return"last"===e.nearPost&&(e.nearPost=999999999),e.forceLoad=!0,t.refresh(e).then((()=>e)).catch((t=>((0,o.isTesting)()||console.log("Could not view topic",t),e._loading_error=!0,e)))},afterModel(){const e=this.modelFor("topic")
e.isPrivateMessage&&e.suggested_topics&&this.pmTopicTrackingState.startTracking()},deactivate(){this._super(...arguments),this.controllerFor("topic").unsubscribe()},setupController(e,t,o){let{_discourse_anchor:l}=o
if(t._loading_error)return
const a=this.controllerFor("topic"),u=this.modelFor("topic"),c=u.postStream
if(u.view_hidden)return
const d=c.closestPostForPostNumber(t.nearPost||1),p=d.post_number
a.setProperties({"model.currentPost":p,enteredIndex:u.postStream.progressIndexOfPost(d),enteredAt:Date.now().toString(),userLastReadPostNumber:u.last_read_post_number,highestPostNumber:u.highest_post_number}),this.appEvents.trigger("page:topic-loaded",u),a.subscribe(),(0,s.schedule)("afterRender",(()=>this.appEvents.trigger("post:highlight",p)))
const m={}
document.location.hash?m.anchor=document.location.hash.slice(1):l&&(m.anchor=l),i.default.jumpToPost(p,m),d&&!d.bookmarked&&d.clearBookmark(),(0,r.isEmpty)(u.draft)||this.composer.open({draft:n.default.getLocal(u.draft_key,u.draft),draftKey:u.draft_key,draftSequence:u.draft_sequence,ignoreIfChanged:!0,topic:u})},willTransition(){return this.controllerFor("topic").set("previousURL",document.location.pathname),!0}},c=u,d="willTransition",p=[l.action],m=Object.getOwnPropertyDescriptor(u,"willTransition"),h=u,f={},Object.keys(m).forEach((function(e){f[e]=m[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),f),h&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(h):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(c,d,f),f=null),u))
e.default=g})),define("discourse/routes/topic",["exports","@ember/runloop","discourse-common/lib/later","discourse/routes/discourse","discourse/lib/url","discourse/models/topic","@ember/object","@ember/utils","@ember/service","discourse/lib/topic-list-tracker","discourse/lib/show-modal","discourse/lib/flag-targets/topic-flag","discourse/lib/flag-targets/post-flag"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){var m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=n.default.extend((m={composer:(0,a.inject)(),screenTrack:(0,a.inject)(),scheduledReplace:null,lastScrollPos:null,isTransitioning:!1,redirect(){return this.redirectIfLoginRequired()},queryParams:{filter:{replace:!0},username_filters:{replace:!0}},titleToken(){const e=this.modelFor("topic")
if(e){if(e.get("errorHtml"))return e.get("errorTitle")
const t=e.get("unicode_title")||e.get("title"),i=e.get("category")
if(this.siteSettings.topic_page_title_includes_category&&i&&(!i.get("isUncategorizedCategory")||"uncategorized"!==i.get("name").toLowerCase())){let e=i.get("name")
const n=i.get("parentCategory")
return n&&(e=n.get("name")+" / "+e),[t,e]}return t}},showInvite(){let e
e=this.isPM?"topic.invite_private.title":this.invitingToTopic?"topic.invite_reply.title":"user.invited.create",(0,c.default)("share-and-invite",{modalClass:"share-and-invite",panels:[{id:"invite",title:e,model:{inviteModel:this.modelFor("topic")}}]})},showFlags(e){(0,c.default)("flag",{model:e}).setProperties({flagTarget:new p.default})},showFlagTopic(){const e=this.modelFor("topic");(0,c.default)("flag",{model:e}).setProperties({flagTarget:new d.default})},showPagePublish(){const e=this.modelFor("topic");(0,c.default)("publish-page",{model:e,title:"topic.publish_page.title"})},showTopicTimerModal(){const e=this.modelFor("topic")
e.get("topic_timer")||e.set("topic_timer",{}),(0,c.default)("edit-topic-timer",{model:e})},showTopicSlowModeUpdate(){const e=this.modelFor("topic");(0,c.default)("edit-slow-mode",{model:e})},showChangeTimestamp(){(0,c.default)("change-timestamp",{model:this.modelFor("topic"),title:"topic.change_timestamp.title"})},showFeatureTopic(){(0,c.default)("feature-topic",{model:this.modelFor("topic"),title:"topic.feature_topic.title"}),this.controllerFor("feature_topic").reset()},showHistory(e,t){let i=(0,c.default)("history",{model:e,modalClass:"history-modal"})
i.refresh(e.get("id"),t||"latest"),i.set("post",e),i.set("topicController",this.controllerFor("topic"))},showGrantBadgeModal(){(0,c.default)("grant-badge",{model:this.modelFor("topic"),title:"admin.badges.grant_badge"})},showRawEmail(e){(0,c.default)("raw-email",{model:e}),this.controllerFor("raw_email").loadRawEmail(e.get("id"))},moveToTopic(){(0,c.default)("move-to-topic",{model:this.modelFor("topic"),title:"topic.move_to.title"})},changeOwner(){(0,c.default)("change-owner",{model:this.modelFor("topic"),title:"topic.change_owner.title"})},postChangedRoute(e){if(this.isTransitioning||f.disableReplaceState)return
const n=this.modelFor("topic")
if(n&&e){let r
if(r=e>1?n.urlForPostNumber(e):n.url,this._router.currentRoute.queryParams){let e
Object.entries(this._router.currentRoute.queryParams).map((t=>{let[i,n]=t
e||(e=new URLSearchParams),e.append(i,n)})),e&&(r+=`?${e.toString()}`)}(0,t.cancel)(this.scheduledReplace),this.setProperties({lastScrollPos:parseInt($(document).scrollTop(),10),scheduledReplace:(0,i.default)(this,"_replaceUnlessScrolling",r,500)})}},didTransition(){const e=this.controllerFor("topic")
e._showFooter()
const t=e.get("model.id")
return(0,u.setTopicId)(t),!0},willTransition(e){return this._super(...arguments),(0,t.cancel)(this.scheduledReplace),this.set("isTransitioning",!0),e.catch((()=>this.set("isTransitioning",!1))),!0},_replaceUnlessScrolling(e){const t=parseInt($(document).scrollTop(),10)
t!==this.lastScrollPos?this.setProperties({lastScrollPos:t,scheduledReplace:(0,i.default)(this,"_replaceUnlessScrolling",e,500)}):r.default.replaceState(e)},setupParams(e,t){const i=e.get("postStream")
i.set("filter",(0,s.get)(t,"filter"))
const n=(0,s.get)(t,"username_filters"),r=i.get("userFilters")
return r.clear(),(0,l.isEmpty)(n)||"undefined"===n||r.addObjects(n.split(",")),e},model(e,t){if(e.slug.match(o.ID_CONSTRAINT))return t.abort(),void r.default.routeTo(`/t/topic/${e.slug}/${e.id}`,{replaceURL:!0})
const i=t.to.queryParams
let n=this.modelFor("topic")
if(n&&n.get("id")===parseInt(e.id,10))return this.setupParams(n,i),n
{let t=Object.assign({},e)
return delete t.username_filters,delete t.filter,n=this.store.createRecord("topic",t),this.setupParams(n,i)}},activate(){this._super(...arguments),this.set("isTransitioning",!1)
const e=this.modelFor("topic")
this.session.set("lastTopicIdViewed",parseInt(e.get("id"),10))},deactivate(){this._super(...arguments),this.searchService.searchContext=null
const e=this.controllerFor("topic")
e.get("model.postStream").cancelFilter(),e.set("multiSelect",!1),this.composer.set("topic",null),this.screenTrack.stop(),this.appEvents.trigger("header:hide-topic"),this.controllerFor("topic").set("model",null)},setupController(e,i){this.set("isTransitioning",!1),e.setProperties({model:i,editingTopic:!1,firstPostExpanded:!1}),this.searchService.searchContext=i.get("searchContext"),e.set("multiSelect",!1),e.get("quoteState").clear(),this.composer.set("topic",i),this.topicTrackingState.trackIncoming("all"),this.screenTrack.start(i.get("id"),e),(0,t.schedule)("afterRender",(()=>this.appEvents.trigger("header:update-topic",i)))}},h(m,"showInvite",[s.action],Object.getOwnPropertyDescriptor(m,"showInvite"),m),h(m,"showFlags",[s.action],Object.getOwnPropertyDescriptor(m,"showFlags"),m),h(m,"showFlagTopic",[s.action],Object.getOwnPropertyDescriptor(m,"showFlagTopic"),m),h(m,"showPagePublish",[s.action],Object.getOwnPropertyDescriptor(m,"showPagePublish"),m),h(m,"showTopicTimerModal",[s.action],Object.getOwnPropertyDescriptor(m,"showTopicTimerModal"),m),h(m,"showTopicSlowModeUpdate",[s.action],Object.getOwnPropertyDescriptor(m,"showTopicSlowModeUpdate"),m),h(m,"showChangeTimestamp",[s.action],Object.getOwnPropertyDescriptor(m,"showChangeTimestamp"),m),h(m,"showFeatureTopic",[s.action],Object.getOwnPropertyDescriptor(m,"showFeatureTopic"),m),h(m,"showHistory",[s.action],Object.getOwnPropertyDescriptor(m,"showHistory"),m),h(m,"showGrantBadgeModal",[s.action],Object.getOwnPropertyDescriptor(m,"showGrantBadgeModal"),m),h(m,"showRawEmail",[s.action],Object.getOwnPropertyDescriptor(m,"showRawEmail"),m),h(m,"moveToTopic",[s.action],Object.getOwnPropertyDescriptor(m,"moveToTopic"),m),h(m,"changeOwner",[s.action],Object.getOwnPropertyDescriptor(m,"changeOwner"),m),h(m,"postChangedRoute",[s.action],Object.getOwnPropertyDescriptor(m,"postChangedRoute"),m),h(m,"didTransition",[s.action],Object.getOwnPropertyDescriptor(m,"didTransition"),m),h(m,"willTransition",[s.action],Object.getOwnPropertyDescriptor(m,"willTransition"),m),m))
var g=f
e.default=g})),define("discourse/routes/tos",["exports","discourse/routes/discourse","@ember/service","discourse/lib/url","discourse/models/static-page","I18n","@ember/object"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let c=(l=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="siteSettings",n=this,(i=a)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}activate(){super.activate(...arguments),n.default.jumpToElement(document.location.hash.slice(1))}beforeModel(e){this.siteSettings.tos_url&&(e.abort(),n.default.redirectTo(this.siteSettings.tos_url))}model(){return r.default.find("tos")}titleToken(){return o.default.t("tos")}didTransition(){return this.controllerFor("application").set("showFooter",!0),!0}},a=u(l.prototype,"siteSettings",[i.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(l.prototype,"didTransition",[s.action],Object.getOwnPropertyDescriptor(l.prototype,"didTransition"),l.prototype),l)
e.default=c})),define("discourse/routes/unknown",["exports","discourse/routes/discourse","discourse/lib/url","discourse/lib/ajax"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({model(e,t){const r=t.intent.url
if(this.currentUser||!this.siteSettings.login_required)return(0,n.ajax)("/permalink-check.json",{data:{path:r}}).then((e=>{if(e.found){t.abort()
let n=e.target_url
return t._discourse_anchor&&(n=n.split("#")[0],n+=`#${t._discourse_anchor}`),i.default.routeTo(n),""}return e.html}))}})
e.default=r})),define("discourse/routes/user-activity-bookmarks-with-reminders",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({queryParams:{q:{replace:!0}},redirect(){this.transitionTo("userActivity.bookmarks")}})
e.default=i})),define("discourse/routes/user-activity-bookmarks",["exports","@ember/object","discourse/lib/ajax","discourse/routes/discourse","rsvp","I18n"],(function(e,t,i,n,r,o){var s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=n.default.extend((l(s={templateName:"user/bookmarks",queryParams:{acting_username:{refreshModel:!0},q:{refreshModel:!0}},model(e,t){const i=this.controllerFor("user-activity-bookmarks")
return this.isPoppedState(t)&&this.session.bookmarksModel&&this.session.bookmarksModel.searchTerm===e.q?r.Promise.resolve(this.session.bookmarksModel):(this.session.setProperties({bookmarksModel:null,bookmarkListScrollPosition:null}),i.set("loading",!0),this._loadBookmarks(e).then((e=>{if(!e.user_bookmark_list)return{bookmarks:[]}
const t={bookmarks:e.user_bookmark_list.bookmarks.map(i.transform),loadMoreUrl:e.user_bookmark_list.more_bookmarks_url}
return this.session.set("bookmarksModel",t),t})).catch((()=>i.set("permissionDenied",!0))).finally((()=>i.set("loading",!1))))},titleToken:()=>o.default.t("user_action_groups.3"),didTransition(){return this.controllerFor("user-activity")._showFooter(),!0},triggerRefresh(){this.refresh()},_loadBookmarks(e){let t=`/u/${this.modelFor("user").username}/bookmarks.json`
return e&&(t+="?"+$.param(e)),(0,i.ajax)(t)}},"didTransition",[t.action],Object.getOwnPropertyDescriptor(s,"didTransition"),s),l(s,"triggerRefresh",[t.action],Object.getOwnPropertyDescriptor(s,"triggerRefresh"),s),s))
e.default=a})),define("discourse/routes/user-activity-drafts",["exports","discourse/routes/discourse","I18n","@ember/object"],(function(e,t,i,n){var r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o,s,l,a,u,c,d=t.default.extend((o=r={templateName:"user/stream",model(){const e=this.modelFor("user").get("userDraftsStream")
return e.reset(),e.findItems(this.site).then((()=>({stream:e,emptyState:this.emptyState()})))},emptyState:()=>({title:i.default.t("user_activity.no_drafts_title"),body:i.default.t("user_activity.no_drafts_body")}),activate(){this.appEvents.on("draft:destroyed",this,this.refresh)},deactivate(){this.appEvents.off("draft:destroyed",this,this.refresh)},titleToken:()=>i.default.t("user_action_groups.15"),didTransition(){return this.controllerFor("user-activity")._showFooter(),!0}},s="didTransition",l=[n.action],a=Object.getOwnPropertyDescriptor(r,"didTransition"),u=r,c={},Object.keys(a).forEach((function(e){c[e]=a[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=l.slice().reverse().reduce((function(e,t){return t(o,s,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&(Object.defineProperty(o,s,c),c=null),r))
e.default=d})),define("discourse/routes/user-activity-index",["exports","discourse/routes/user-activity-stream","discourse-common/lib/icon-library","discourse-common/lib/get-url","I18n","@ember/template"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=t.default.extend({userActionType:null,emptyState(){const e=this.modelFor("user"),t=r.default.t("user_activity.no_activity_title")
let s=""
return this.isCurrentUser(e)&&(s=(0,o.htmlSafe)(r.default.t("user_activity.no_activity_body",{topUrl:(0,n.default)("/top"),categoriesUrl:(0,n.default)("/categories"),preferencesUrl:(0,n.default)("/my/preferences"),heartIcon:(0,i.iconHTML)("heart")}))),{title:t,body:s}},titleToken:()=>r.default.t("user.filters.all")})
e.default=s})),define("discourse/routes/user-activity-likes-given",["exports","discourse/models/user-action","discourse/routes/user-activity-stream","discourse-common/lib/icon-library","I18n","@ember/object","@ember/template"],(function(e,t,i,n,r,o,s){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a,u,c,d,p,m,h=i.default.extend((l={userActionType:t.default.TYPES.likes_given,emptyState(){const e=this.modelFor("user")
return{title:this.isCurrentUser(e)?r.default.t("user_activity.no_likes_title"):r.default.t("user_activity.no_likes_title_others",{username:e.username}),body:(0,s.htmlSafe)(r.default.t("user_activity.no_likes_body",{heartIcon:(0,n.iconHTML)("heart")}))}},titleToken:()=>r.default.t("user_action_groups.1"),didTransition(){return this.controllerFor("application").set("showFooter",!0),!0}},a=l,u="didTransition",c=[o.action],d=Object.getOwnPropertyDescriptor(l,"didTransition"),p=l,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),l))
e.default=h})),define("discourse/routes/user-activity-pending",["exports","discourse/routes/discourse","discourse/lib/text","discourse/lib/utilities"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({beforeModel(){this.username=this.modelFor("user").username_lower},model(){return this.store.findAll("pending-post",{username:this.username}).then((e=>{for(let t of e.content)t.title=(0,i.emojiUnescape)((0,n.escapeExpression)(t.title))
return e}))},activate(){this.appEvents.on(`count-updated:${this.username}:pending_posts_count`,this,"_handleCountChange")},deactivate(){this.appEvents.off(`count-updated:${this.username}:pending_posts_count`,this,"_handleCountChange")},_handleCountChange(e){this.refresh(),e<=0&&this.transitionTo("userActivity")}})
e.default=r})),define("discourse/routes/user-activity-read",["exports","discourse/models/user-action","discourse/routes/user-topic-list","@ember/object","discourse-common/lib/icon-library","discourse-common/lib/get-url","I18n","@ember/template"],(function(e,t,i,n,r,o,s,l){var a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var u,c,d,p,m,h,f=i.default.extend((a={userActionType:t.default.TYPES.topics,model(){return this.store.findFiltered("topicList",{filter:"read"}).then((e=>(e.set("emptyState",this.emptyState()),e)))},afterModel(e,t){this.isPoppedState(t)||this.session.set("topicListScrollPosition",null)},emptyState:()=>({title:s.default.t("user_activity.no_read_topics_title"),body:(0,l.htmlSafe)(s.default.t("user_activity.no_read_topics_body",{topUrl:(0,o.default)("/top"),categoriesUrl:(0,o.default)("/categories"),searchIcon:(0,r.iconHTML)("search")}))}),titleToken:()=>`${s.default.t("user.read")}`,triggerRefresh(){this.refresh()}},u=a,c="triggerRefresh",d=[n.action],p=Object.getOwnPropertyDescriptor(a,"triggerRefresh"),m=a,h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(u,c,h),h=null),a))
e.default=f})),define("discourse/routes/user-activity-replies",["exports","discourse/models/user-action","discourse/routes/user-activity-stream","I18n","@ember/object","@ember/template","discourse-common/lib/get-url"],(function(e,t,i,n,r,o,s){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a,u,c,d,p,m,h=i.default.extend((l={userActionType:t.default.TYPES.posts,emptyState(){const e=this.modelFor("user")
let t,i
return this.isCurrentUser(e)?(t=n.default.t("user_activity.no_replies_title"),i=(0,o.htmlSafe)(n.default.t("user_activity.no_replies_body",{searchUrl:(0,s.default)("/search")}))):(t=n.default.t("user_activity.no_replies_title_others",{username:e.username}),i=""),{title:t,body:i}},titleToken:()=>n.default.t("user_action_groups.5"),didTransition(){return this.controllerFor("application").set("showFooter",!0),!0}},a=l,u="didTransition",c=[r.action],d=Object.getOwnPropertyDescriptor(l,"didTransition"),p=l,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),l))
e.default=h})),define("discourse/routes/user-activity-stream",["exports","discourse/routes/discourse","discourse/mixins/viewing-action-type","@ember/object","I18n"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=t.default.extend(i.default,(o={templateName:"user/stream",queryParams:{acting_username:{refreshModel:!0}},model(){return{stream:this.modelFor("user").get("stream"),emptyState:this.emptyState()}},afterModel(e,t){return this.isPoppedState(t)||this.session.set("userStreamScrollPosition",null),e.stream.filterBy({filter:this.userActionType,actingUsername:t.to.queryParams.acting_username})},setupController(){this._super(...arguments),this.viewingActionType(this.userActionType)},emptyState:()=>({title:r.default.t("user_activity.no_activity_title"),body:""}),didTransition(){return this.controllerFor("user-activity")._showFooter(),!0}},s=o,l="didTransition",a=[n.action],u=Object.getOwnPropertyDescriptor(o,"didTransition"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/routes/user-activity-topics",["exports","discourse/models/user-action","discourse/routes/user-topic-list","@ember/object","@ember/template","discourse-common/lib/get-url","I18n"],(function(e,t,i,n,r,o,s){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a,u,c,d,p,m,h=i.default.extend((l={userActionType:t.default.TYPES.topics,model(){return this.store.findFiltered("topicList",{filter:"topics/created-by/"+this.modelFor("user").get("username_lower")}).then((e=>(e.set("emptyState",this.emptyState()),e)))},afterModel(e,t){this.isPoppedState(t)||this.session.set("topicListScrollPosition",null)},emptyState(){const e=this.modelFor("user")
let t,i
return this.isCurrentUser(e)?(t=s.default.t("user_activity.no_topics_title"),i=(0,r.htmlSafe)(s.default.t("user_activity.no_topics_body",{searchUrl:(0,o.default)("/search")}))):(t=s.default.t("user_activity.no_topics_title_others",{username:e.username}),i=""),{title:t,body:i}},titleToken:()=>s.default.t("user_action_groups.4"),triggerRefresh(){this.refresh()}},a=l,u="triggerRefresh",c=[n.action],d=Object.getOwnPropertyDescriptor(l,"triggerRefresh"),p=l,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),l))
e.default=h})),define("discourse/routes/user-activity",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({model(){let e=this.modelFor("user")
return e.get("profile_hidden")?this.replaceWith("user.profile-hidden"):e},afterModel(e,t){this.isPoppedState(t)||this.session.set("userStreamScrollPosition",null)},setupController(e,t){this.controllerFor("user-activity").set("model",t)},titleToken:()=>i.default.t("user.activity_stream")})
e.default=n})),define("discourse/routes/user-badges",["exports","discourse/routes/discourse","discourse/models/user-badge","discourse/mixins/viewing-action-type","@ember/object","I18n"],(function(e,t,i,n,r,o){var s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l,a,u,c,d,p,m=t.default.extend(n.default,(s={templateName:"user/badges",model(){return i.default.findByUsername(this.modelFor("user").get("username_lower"),{grouped:!0})},setupController(){this._super(...arguments),this.viewingActionType(-1)},titleToken:()=>o.default.t("badges.title"),didTransition(){return this.controllerFor("application").set("showFooter",!0),!0}},l=s,a="didTransition",u=[r.action],c=Object.getOwnPropertyDescriptor(s,"didTransition"),d=s,p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),s))
e.default=m})),define("discourse/routes/user-deleted-posts",["exports","discourse/routes/discourse","discourse/lib/text","discourse/lib/utilities","@ember/object"],(function(e,t,i,n,r){var o
function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let l=(o=class extends t.default{constructor(){super(...arguments),s(this,"templateName","user/posts"),s(this,"controllerName","user-posts")}model(){return this.modelFor("user").postsStream}afterModel(e){return e.filterBy({filter:"deleted"})}setupController(e,t){super.setupController(...arguments),t.set("canLoadMore",60===t.itemsLoaded),t.content.forEach((e=>{e.title&&e.set("title",(0,i.emojiUnescape)((0,n.escapeExpression)(e.title)))}))}didTransition(){return this.controller._showFooter(),!0}},a=o.prototype,u="didTransition",c=[r.action],d=Object.getOwnPropertyDescriptor(o.prototype,"didTransition"),p=o.prototype,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),o)
var a,u,c,d,p,m
e.default=l})),define("discourse/routes/user-index",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({beforeModel(){const{currentUser:e}=this,t=e&&e.get("username")===this.modelFor("user").get("username")?"userActivity":"user.summary"
this.site.mobileView?this.replaceWith(t):this.transitionTo(t)}})
e.default=i})),define("discourse/routes/user-invited-index",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({beforeModel(){this.replaceWith("userInvited.show","pending")}})
e.default=i})),define("discourse/routes/user-invited-show",["exports","discourse/routes/discourse","discourse/models/invite","@ember/object","I18n"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=t.default.extend((s=o={model(e){return this.inviteFilter=e.filter,i.default.findInvitedBy(this.modelFor("user"),e.filter)},afterModel(e){e.can_see_invite_details||this.replaceWith("userInvited.show","redeemed"),this.controllerFor("user.invited").setProperties({invitesCount:e.counts})},setupController(e,t){e.setProperties({model:t,invitesCount:t.counts,user:this.controllerFor("user").get("model"),filter:this.inviteFilter,searchTerm:""})},titleToken(){return r.default.t("user.invited."+this.inviteFilter+"_tab")},triggerRefresh(){this.refresh()}},l="triggerRefresh",a=[n.action],u=Object.getOwnPropertyDescriptor(o,"triggerRefresh"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p})),define("discourse/routes/user-invited",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({setupController(e){const t=this.currentUser.staff||this.controllerFor("user").id===this.currentUser?.id
e.setProperties({can_see_invite_details:t})},titleToken:()=>i.default.t("user.invited.title")})
e.default=n})),define("discourse/routes/user-notifications-edits",["exports","discourse/models/user-action","discourse/routes/user-activity-stream","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=i.default.extend({userActionType:t.default.TYPES.edits,titleToken:()=>n.default.t("user_action_groups.11")})
e.default=r})),define("discourse/routes/user-notifications-index",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({controllerName:"user-notifications",templateName:"user/notifications-index",titleToken:()=>i.default.t("user.filters.all"),afterModel(e){e||this.transitionTo("userNotifications.responses")}})
e.default=n})),define("discourse/routes/user-notifications-likes-received",["exports","discourse/models/user-action","discourse/routes/user-activity-stream","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=i.default.extend({userActionType:t.default.TYPES.likes_received,titleToken:()=>n.default.t("user_action_groups.1")})
e.default=r})),define("discourse/routes/user-notifications-mentions",["exports","discourse/models/user-action","discourse/routes/user-activity-stream","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=i.default.extend({userActionType:t.default.TYPES.mentions,titleToken:()=>n.default.t("user_action_groups.7")})
e.default=r})),define("discourse/routes/user-notifications-responses",["exports","discourse/models/user-action","discourse/routes/user-activity-stream","I18n"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=i.default.extend({userActionType:t.default.TYPES.replies,titleToken:()=>n.default.t("user_action_groups.6")})
e.default=r})),define("discourse/routes/user-notifications",["exports","discourse/routes/discourse","discourse/mixins/viewing-action-type","@ember/object","I18n"],(function(e,t,i,n,r){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s,l,a,u,c,d,p=t.default.extend(i.default,(o={controllerName:"user-notifications",queryParams:{filter:{refreshModel:!0}},didTransition(){return this.controllerFor("user-notifications")._showFooter(),!0},model(e){const t=this.modelFor("user").get("username")
if(this.get("currentUser.username")===t||this.get("currentUser.admin"))return this.store.find("notification",{username:t,filter:e.filter})},setupController(e){this._super(...arguments),e.set("user",this.modelFor("user")),this.viewingActionType(-1)},titleToken:()=>r.default.t("user.notifications")},s=o,l="didTransition",a=[n.action],u=Object.getOwnPropertyDescriptor(o,"didTransition"),c=o,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=a.slice().reverse().reduce((function(e,t){return t(s,l,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&(Object.defineProperty(s,l,d),d=null),o))
e.default=p}))
define("discourse/routes/user-private-messages-group-archive",["exports","discourse/routes/build-private-messages-group-route","discourse/routes/build-private-messages-route"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,t.default)("group",i.ARCHIVE_FILTER)
e.default=n})),define("discourse/routes/user-private-messages-group-index",["exports","discourse/routes/build-private-messages-group-route","discourse/routes/build-private-messages-route"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,t.default)("group",i.INBOX_FILTER)
e.default=n})),define("discourse/routes/user-private-messages-group-new",["exports","discourse/routes/build-private-messages-group-route","discourse/routes/build-private-messages-route"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,t.default)("group",i.NEW_FILTER)
e.default=n})),define("discourse/routes/user-private-messages-group-unread",["exports","discourse/routes/build-private-messages-group-route","discourse/routes/build-private-messages-route"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,t.default)("group",i.UNREAD_FILTER)
e.default=n})),define("discourse/routes/user-private-messages-group",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{model(e){return this.modelFor("user").get("groups").find((t=>t.name.toLowerCase()===e.name.toLowerCase()))}afterModel(e){e||this.transitionTo("exception-unknown")}setupController(e,t){e.set("group",t)}}e.default=i})),define("discourse/routes/user-private-messages-tags-index",["exports","discourse/routes/discourse","@ember/object","I18n","discourse/lib/ajax","discourse/lib/ajax-error"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var s=t.default.extend({model(){const e=this.modelFor("user").get("username_lower")
return(0,r.ajax)(`/tags/personal_messages/${e}`).then((e=>e.tags.map((e=>i.default.create(e))))).catch(o.popupAjaxError)},titleToken:()=>[n.default.t("tagging.tags"),n.default.t("user.private_messages")],setupController(e,t){e.setProperties({model:t,sortProperties:this.siteSettings.tags_sort_alphabetically?["id"]:["count:desc","id"],tagsForUser:this.modelFor("user").get("username_lower")}),this.controllerFor("user-topics-list").setProperties({showToggleBulkSelect:!1,selected:[]})}})
e.default=s})),define("discourse/routes/user-private-messages-tags-show",["exports","discourse/routes/build-private-messages-route","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,t.default)("tags","private-messages-tags").extend({titleToken(){return[this.get("tagId"),i.default.t("tagging.tags"),i.default.t("user.private_messages")]},model(e){this.controllerFor("user-private-messages").set("tagId",e.id),this.controllerFor("user-private-messages-tags").set("tagName",e.id)
const t=this.modelFor("user").get("username_lower")
return this.set("tagId",e.id),this.store.findFiltered("topicList",{filter:`topics/private-messages-tags/${t}/${e.id}`})}})
e.default=n})),define("discourse/routes/user-private-messages-tags",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=t.default.extend({})
e.default=i})),define("discourse/routes/user-private-messages-user-archive",["exports","discourse/routes/build-private-messages-route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.default)("user","private-messages-archive",t.ARCHIVE_FILTER)
e.default=i})),define("discourse/routes/user-private-messages-user-index",["exports","discourse/routes/build-private-messages-route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.default)("user","private-messages",t.INBOX_FILTER)
e.default=i})),define("discourse/routes/user-private-messages-user-new",["exports","discourse/routes/build-private-messages-route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.default)("user","private-messages-new",t.NEW_FILTER)
e.default=i})),define("discourse/routes/user-private-messages-user-sent",["exports","discourse/routes/build-private-messages-route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.default)("user","private-messages-sent","sent")
e.default=i})),define("discourse/routes/user-private-messages-user-unread",["exports","discourse/routes/build-private-messages-route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.default)("user","private-messages-unread",t.UNREAD_FILTER)
e.default=i})),define("discourse/routes/user-private-messages-user-warnings",["exports","discourse/routes/build-private-messages-route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.default)("warnings","private-messages-warnings",null)
e.default=i})),define("discourse/routes/user-private-messages-user",["exports","discourse/routes/discourse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{model(){return this.modelFor("user")}setupController(e,t){e.set("model",t)}}e.default=i})),define("discourse/routes/user-private-messages",["exports","discourse/models/composer","discourse/routes/discourse","discourse/models/draft","@ember/object","@ember/service"],(function(e,t,i,n,r,o){var s
function l(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=i.default.extend((s={templateName:"user/messages",composer:(0,o.inject)(),afterModel(){this.pmTopicTrackingState.startTracking()},setupController(){this._super(...arguments),this.currentUser&&n.default.get("new_private_message").then((e=>{e.draft&&this.composer.open({draft:e.draft,draftKey:t.default.NEW_PRIVATE_MESSAGE_KEY,ignoreIfChanged:!0,draftSequence:e.draft_sequence})}))},triggerRefresh(){this.refresh()},willTransition(){return this._super(...arguments),!0}},l(s,"triggerRefresh",[r.action],Object.getOwnPropertyDescriptor(s,"triggerRefresh"),s),l(s,"willTransition",[r.action],Object.getOwnPropertyDescriptor(s,"willTransition"),s),s))
e.default=a})),define("discourse/routes/user-summary",["exports","discourse/routes/discourse","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=t.default.extend({showFooter:!0,model(){const e=this.modelFor("user")
return e.get("profile_hidden")?this.replaceWith("user.profile-hidden"):e.summary()},titleToken:()=>i.default.t("user.summary.title")})
e.default=n})),define("discourse/routes/user-topic-list",["exports","discourse/routes/discourse","discourse/mixins/viewing-action-type","discourse/lib/topic-list-tracker"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend(i.default,{templateName:"user-topics-list",controllerName:"user-topics-list",setupController(e,t){(0,n.setTopicList)(t)
const i=this.userActionType
this.controllerFor("user").set("userActionType",i),this.controllerFor("user-activity").set("userActionType",i),e.setProperties({model:t,hideCategory:!1})}})
e.default=r})),define("discourse/routes/user",["exports","discourse/routes/discourse","discourse/models/user","@ember/object","discourse-common/utils/decorators"],(function(e,t,i,n,r){var o
function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l=t.default.extend((o={beforeModel(){this.siteSettings.hide_user_profiles_from_public&&!this.currentUser&&this.replaceWith("discovery")},model(e){return this.currentUser&&e.username.toLowerCase()===this.currentUser.username_lower?this.currentUser:i.default.create({username:encodeURIComponent(e.username)})},afterModel(){const e=this.modelFor("user")
return e.findDetails().then((()=>e.findStaffInfo())).then((()=>e.trackStatus())).catch((()=>this.replaceWith("/404")))},serialize:e=>e?{username:(e.username||"").toLowerCase()}:{},setupController(e,t){e.set("model",t),this.searchService.searchContext=t.searchContext},activate(){this._super(...arguments)
const e=this.modelFor("user")
this.messageBus.subscribe(`/u/${e.username_lower}`,this.onUserMessage),this.messageBus.subscribe(`/u/${e.username_lower}/counters`,this.onUserCountersMessage)},deactivate(){this._super(...arguments)
const e=this.modelFor("user")
this.messageBus.unsubscribe(`/u/${e.username_lower}`,this.onUserMessage),this.messageBus.unsubscribe(`/u/${e.username_lower}/counters`,this.onUserCountersMessage),e.stopTrackingStatus(),this.searchService.searchContext=null},onUserMessage(e){return this.modelFor("user").loadUserAction(e)},onUserCountersMessage(e){const t=this.modelFor("user")
t.setProperties(e),Object.entries(e).forEach((e=>{let[i,n]=e
return this.appEvents.trigger(`count-updated:${t.username_lower}:${i}`,n)}))},titleToken(){const e=this.modelFor("user").username
return e||null},undoRevokeApiKey(e){e.undoRevoke()},revokeApiKey(e){e.revoke()}},s(o,"onUserMessage",[r.bind],Object.getOwnPropertyDescriptor(o,"onUserMessage"),o),s(o,"onUserCountersMessage",[r.bind],Object.getOwnPropertyDescriptor(o,"onUserCountersMessage"),o),s(o,"undoRevokeApiKey",[n.action],Object.getOwnPropertyDescriptor(o,"undoRevokeApiKey"),o),s(o,"revokeApiKey",[n.action],Object.getOwnPropertyDescriptor(o,"revokeApiKey"),o),o))
e.default=l})),define("discourse/routes/users",["exports","discourse/routes/discourse","I18n","discourse/lib/ajax","discourse/lib/ajax-error","rsvp","@ember/object"],(function(e,t,i,n,r,o,s){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a,u,c,d,p,m,h=t.default.extend((a=l={queryParams:{period:{refreshModel:!0},order:{refreshModel:!0},asc:{refreshModel:!0},name:{refreshModel:!1,replace:!0},group:{refreshModel:!0},exclude_usernames:{refreshModel:!0}},titleToken:()=>i.default.t("directory.title"),resetController(e,t){t&&e.setProperties({period:"weekly",order:"likes_received",asc:null,name:"",group:null,exclude_usernames:null,lastUpdatedAt:null})},beforeModel(){this.siteSettings.hide_user_profiles_from_public&&!this.currentUser&&this.replaceWith("discovery")},model:e=>(0,n.ajax)("/directory-columns.json").then((t=>(e.order=e.order||t.directory_columns[0].name,{params:e,columns:t.directory_columns}))).catch(r.popupAjaxError),setupController:(e,t)=>(e.set("columns",t.columns),o.Promise.all([e.loadGroups(),e.loadUsers(t.params)])),didTransition(){return this.controllerFor("users")._showFooter(),!0}},u="didTransition",c=[s.action],d=Object.getOwnPropertyDescriptor(l,"didTransition"),p=l,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),l))
e.default=h})),define("discourse/services/-ensure-registered",["exports","@embroider/util/services/ensure-registered"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("discourse/services/app-events",["exports","@ember/object/evented","@ember/service"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=i.default.extend(t.default,{init(){this._super(...arguments),this.currentUser&&(this.currentUser.appEvents=this)}})
e.default=n})),define("discourse/services/capabilities",["exports","@ember/service"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=/iPhone|iPod|iPad|Macintosh|MacIntel/,n=/macOS/
class r extends t.default{constructor(){super(...arguments)
const e=navigator.userAgent
this.touch=navigator.maxTouchPoints>1||"ontouchstart"in window,this.isAndroid=e.includes("Android"),this.isWinphone=e.includes("Windows Phone"),this.isIpadOS=e.includes("Mac OS")&&!/iPhone|iPod/.test(e)&&this.touch,this.isIOS=(/iPhone|iPod/.test(navigator.userAgent)||this.isIpadOS)&&!window.MSStream,this.isApple=i.test(navigator.platform)||navigator.userAgentData&&n.test(navigator.userAgentData.platform),this.isOpera=!!window.opera||e.includes(" OPR/"),this.isFirefox=e.includes("Firefox"),this.isChrome=!!window.chrome&&!this.isOpera,this.isSafari=/Constructor/.test(window.HTMLElement)||"[object SafariRemoteNotification]"===window.safari?.pushNotification?.toString(),this.hasContactPicker="contacts"in navigator&&"ContactsManager"in window,this.canVibrate="vibrate"in navigator,this.isPwa=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone||document.referrer.includes("android-app://"),this.isiOSPWA=this.isPwa&&this.isIOS,this.wasLaunchedFromDiscourseHub=window.location.search.includes("discourse_app=1"),this.isAppWebview=void 0!==window.ReactNativeWebView}}e.default=r})),define("discourse/services/composer",["exports","discourse/models/composer","@ember/controller","@ember/object","@ember/object/computed","discourse/lib/uploads","@ember/runloop","discourse/helpers/slow-mode","discourse-common/utils/decorators","@ember-decorators/object","discourse/lib/url","discourse/models/draft","I18n","rsvp","discourse/lib/quote","discourse-common/lib/deprecated","discourse-common/lib/debounce","discourse/lib/text","discourse/lib/utilities","discourse-common/lib/get-owner","discourse-common/lib/get-url","@ember/utils","discourse-common/config/environment","@ember/service","discourse/lib/formatter","discourse/lib/show-modal","discourse/helpers/category-link","discourse/lib/render-tags","@ember/template","discourse-common/lib/icon-library","discourse/lib/form-template-validation"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w,k,x,P,O,T,S,j,C,z){var I,E,M,D,N,L,A,U,F,R,B,q,H,W,V,G,K,Y,J,Q,X,Z,ee,te,ie,ne,re,oe,se,le,ae,ue,ce,de,pe,me,he,fe,ge,be,ye,_e,ve,we,ke,xe
function Pe(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function Oe(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Te(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.addComposerSaveErrorCallback=function(e){je.push(e)},e.addPopupMenuOptionsCallback=function(e){Se.push(e)},e.clearComposerSaveErrorCallback=function(){je.length=0},e.clearPopupMenuOptionsCallback=function(){Se.length=0},e.default=void 0,e.toggleCheckDraftPopup=function(e){Ce=e}
const Se=[],je=[]
let Ce=!(0,k.isTesting)()
let ze=(I=(0,r.and)("site.mobileView","showPreview"),E=(0,r.or)("isWhispering","model.unlistTopic"),M=(0,r.alias)("site.categoriesList"),D=(0,r.alias)("topicController.model"),N=(0,r.reads)("currentUser.staff"),L=(0,r.reads)("currentUser.whisperer"),A=(0,r.and)("model.creatingTopic","isStaffUser"),U=(0,r.or)("replyingToWhisper","model.whisper"),F=(0,u.on)("init"),R=(0,n.computed)("model.loading","isUploading","isProcessingUpload","_disableSubmit"),B=(0,a.default)("showPreview"),q=(0,u.observes)("showPreview"),H=(0,a.default)("model.replyingToTopic","model.creatingPrivateMessage","model.targetRecipients","model.composeState"),W=(0,a.default)("model.canEditTitle","model.creatingPrivateMessage"),V=(0,a.default)("model.editingPost","model.topic.details.can_edit"),G=(0,a.default)("model.editingPost","model.topic.canEditTags"),K=(0,a.default)("canWhisper","replyingToWhisper"),Y=(0,a.default)("model.post"),J=(0,a.default)("model.action","isWhispering","model.privateMessage"),Q=(0,a.default)("model.action","isWhispering","model.editConflict","model.privateMessage","model.tags","model.category"),X=(0,a.default)("whisperer","model.action"),Z=(0,a.default)("model.requiredCategoryMissing","model.replyLength"),ee=(0,a.default)("model.composeState","model.creatingTopic","model.post"),te=(0,a.default)("model.creatingPrivateMessage","model.targetRecipients","model.warningsDisabled"),ie=(0,a.default)("model.topic.title"),ne=(0,a.default)(),re=(0,u.observes)("model.reply","model.title"),oe=(0,a.default)("model.categoryId","lastValidatedAt"),se=(0,a.default)("model.category","model.tags","lastValidatedAt"),le=(0,a.default)("model.viewFullscreen","model.showFullScreenExitPrompt"),ae=(0,a.default)("model.action"),ue=(0,a.default)("model.composeState"),ce=class extends i.default{constructor(){super(...arguments),Pe(this,"router",de,this),Pe(this,"dialog",pe,this),Pe(this,"site",me,this),Pe(this,"store",he,this),Pe(this,"appEvents",fe,this),Oe(this,"checkedMessages",!1),Oe(this,"messageCount",null),Oe(this,"showEditReason",!1),Oe(this,"editReason",null),Oe(this,"scopedCategoryId",null),Oe(this,"prioritizedCategoryId",null),Oe(this,"lastValidatedAt",null),Oe(this,"isUploading",!1),Oe(this,"isProcessingUpload",!1),Oe(this,"topic",null),Oe(this,"linkLookup",null),Oe(this,"showPreview",!0),Oe(this,"composerHeight",null),Pe(this,"forcePreview",ge,this),Pe(this,"whisperOrUnlistTopic",be,this),Pe(this,"categories",ye,this),Pe(this,"topicModel",_e,this),Pe(this,"isStaffUser",ve,this),Pe(this,"whisperer",we,this),Pe(this,"canUnlistTopic",ke,this),Pe(this,"isWhispering",xe,this)}get topicController(){return(0,_.getOwner)(this).lookup("controller:topic")}get capabilities(){return(0,_.getOwner)(this).lookup("capabilities:main")}_setupPreview(){const e=!this.site.mobileView&&(this.keyValueStore.get("composer.showPreview")||"true")
this.set("showPreview","true"===e)}get disableSubmit(){return this.model?.loading||this.isUploading||this.isProcessingUpload||this._disableSubmit}set disableSubmit(e){return this.set("_disableSubmit",e)}get formTemplateIds(){return this.siteSettings.experimental_form_templates?this.model.category?.get("form_template_ids"):null}toggleText(e){return e?p.default.t("composer.hide_preview"):p.default.t("composer.show_preview")}showPreviewChanged(){this.site.mobileView||this.keyValueStore.set({key:"composer.showPreview",value:this.showPreview})}focusTarget(e,i,n,r){return n=n||"",i&&0===n.length||n===this.currentUser.username?"usernames":e?"reply":r===t.default.FULLSCREEN?"editor":"title"}get showToolbar(){const e=(0,_.getOwner)(this).lookup("service:key-value-store").get("toolbar-enabled")
return void 0===this._toolbarEnabled&&void 0===e&&(this._toolbarEnabled=window.innerWidth>370&&!this.capabilities.isAndroid),this._toolbarEnabled||"true"===e}set showToolbar(e){const t=(0,_.getOwner)(this).lookup("service:key-value-store")
return this._toolbarEnabled=e,t.set({key:"toolbar-enabled",value:e?"true":"false"}),e}canEditTags(e,t){const i=t||this.get("model.topic.isPrivateMessage")
return e&&this.site.can_tag_topics&&(!i||this.site.can_tag_pms)}disableCategoryChooser(e,t){return e&&!t}disableTagsChooser(e,t){return e&&!t}showWhisperToggle(e,t){return e&&!t}replyingToWhisper(e){return e&&e.post_type===this.site.post_types.whisper}saveIcon(e,i,n){return i?"far-eye-slash":n&&e===t.default.REPLY?"envelope":t.SAVE_ICONS[e]}saveLabel(e,i,n,r){let o=this.model.customizationFor("saveLabel")
return o||(n?"composer.overwrite_edit":i?"composer.create_whisper":r&&e===t.default.REPLY?"composer.create_pm":t.SAVE_LABELS[e])}canWhisper(e,i){return e&&i===t.default.REPLY}_setupPopupMenuOption(e){let t=e(this)
return void 0===t?null:(void 0===t.condition?t.condition=!0:"boolean"==typeof t.condition||(t.condition=this.get(t.condition)),t)}disableTextarea(e,t){return e&&0===t}popupMenuOptions(e){if("open"===e||"fullscreen"===e){const e=[]
return e.push(this._setupPopupMenuOption((()=>({action:"toggleInvisible",icon:"far-eye-slash",label:"composer.toggle_unlisted",condition:"canUnlistTopic"})))),this.capabilities.touch&&(e.push(this._setupPopupMenuOption((()=>({action:"applyFormatCode",icon:"code",label:"composer.code_title"})))),e.push(this._setupPopupMenuOption((()=>({action:"applyUnorderedList",icon:"list-ul",label:"composer.ulist_title"})))),e.push(this._setupPopupMenuOption((()=>({action:"applyOrderedList",icon:"list-ol",label:"composer.olist_title"}))))),e.push(this._setupPopupMenuOption((()=>({action:"toggleWhisper",icon:"far-eye-slash",label:"composer.toggle_whisper",condition:"showWhisperToggle"})))),e.concat(Se.map((e=>this._setupPopupMenuOption(e))).filter((e=>e)))}}showWarning(e,t,i){if(!this.get("currentUser.staff")||i)return!1
const n=this.get("model.hasTargetGroups")
return!(0,w.isEmpty)(t)&&1===t.split(",").length&&!n&&e}draftTitle(e){return(0,b.emojiUnescape)((0,y.escapeExpression)(e))}allowUpload(){return(0,o.authorizesOneOrMoreExtensions)(this.currentUser.staff,this.siteSettings)}uploadIcon(){return(0,o.uploadIcon)(this.currentUser.staff,this.siteSettings)}async focusComposer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
await this._openComposerForFocus(e),this._focusAndInsertText(e.insertText)}async _openComposerForFocus(e){if(this.get("model.viewOpen"))return
return this.openIfDraft()?void 0:e.topic?await this.open({action:t.default.REPLY,draftKey:e.topic.get("draft_key"),draftSequence:e.topic.get("draft_sequence"),topic:e.topic,...e.openOpts||{}}):e.fallbackToNewTopic?await this.open({action:t.default.CREATE_TOPIC,draftKey:t.default.NEW_TOPIC_KEY,...e.openOpts||{}}):void 0}_focusAndInsertText(e){(0,s.scheduleOnce)("afterRender",(()=>{document.querySelector("textarea.d-editor-input")?.focus(),e&&this.model.appendText(e,null,{new_line:!0})}))}updateCategory(e){this.model.categoryId=e}openIfDraft(e){return!!this.get("model.viewDraft")&&(e&&(e.preventDefault(),e.stopPropagation()),this.set("model.composeState",t.default.OPEN),document.documentElement.style.setProperty("--composer-height",this.get("model.composerHeight")),!0)}removeFullScreenExitPrompt(){this.set("model.showFullScreenExitPrompt",!1)}async cancel(e){e?.preventDefault(),await this.cancelComposer()}cancelUpload(e){e?.preventDefault(),this.set("model.uploadCancelled",!0)}togglePreview(e){e?.preventDefault(),this.toggleProperty("showPreview")}viewNewReply(e){if(e&&(0,y.modKeysPressed)(e).length>0)return!1
e?.preventDefault(),c.default.routeTo(this.get("model.createdPost.url")),this.close()}closeComposer(){this.close()}async openComposer(e,t,i){await this.open(e)
let n=t?.url||i?.url
const r=i?.title
if(!n||!r)return
n=`${location.protocol}//${location.host}${n}`
const o=`[${(0,y.escapeExpression)(r)}](${n})`,s=p.default.t("post.continue_discussion",{postLink:o}),l=this.get("model.reply")
l?.includes(s)||this.model.prependText(s,{new_line:!0})}onPopupMenuAction(e){return(this.actions?.[e]?.bind(this)||this[e])()}storeToolbarState(e){this.set("toolbarEvent",e)}typed(){this.checkReplyLength(),this.model.typing()}cancelled(){this.hitEsc()}addLinkLookup(e){this.set("linkLookup",e)}afterRefresh(e){const t=this.get("model.topic"),i=this.linkLookup
if(!t||!i)return
if(1===t.posts_count)return
const n=this.get("model.post")
$("a[href]",e).each(((e,r)=>{const o=r.href
if(o&&o.length){if(void 0!==r.dataset.word)return!0
for(let t=r;t&&("DIV"!==t.tagName||!t.classList.contains("d-editor-preview"));t=t.parentElement){if("ASIDE"===t.tagName&&t.classList.contains("quote"))return!0
if("ASIDE"===t.tagName&&t.classList.contains("onebox")&&o!==t.dataset["onebox-src"])return!0}const[e,s]=i.check(n,o)
if(e&&!this.isWhispering)return s.username===this.currentUser.username?this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:p.default.t("composer.duplicate_link_same_user",{domain:s.domain,post_url:t.urlForPostNumber(s.post_number),ago:(0,P.shortDate)(s.posted_at)})}):this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body duplicate-link-message",templateName:"education",body:p.default.t("composer.duplicate_link",{domain:s.domain,username:s.username,post_url:t.urlForPostNumber(s.post_number),ago:(0,P.shortDate)(s.posted_at)})}),!1}return!0}))}toggleWhisper(){this.toggleProperty("model.whisper")}toggleInvisible(){this.toggleProperty("model.unlistTopic")}toggleToolbar(){this.toggleProperty("showToolbar")}async toggle(){this.closeAutocomplete()
const e=this.model;(0,w.isEmpty)(e?.reply)&&(0,w.isEmpty)(e?.title)?this.close():e?.viewOpenOrFullscreen?this.shrink():await this.cancelComposer()}fullscreenComposer(){return this.toggleFullscreen(),!1}async importQuote(e){const t=this.get("topic.postStream")
let i=this.get("model.post.id")
if(!i&&t&&(i=t.get("stream.firstObject")),this.get("model.editingPost")){const e=this.get("model.post.reply_to_post_number")
if(e){const n=t.posts.findBy("post_number",e)
n&&(i=n.id)}}if(!i)return
this.set("model.loading",!0)
const n=await this.store.find("post",i),r=(0,h.buildQuote)(n,n.raw,{full:!0})
e.addText(r),this.set("model.loading",!1)}saveAction(e,t){this.save(!1,{jump:!(t?.shiftKey&&this.get("model.replyingToTopic")||this.skipJumpOnSave)})}displayEditReason(){this.set("showEditReason",!0)}hitEsc(){if(1===document.querySelectorAll(".emoji-picker-modal.fadeIn").length)return void this.appEvents.trigger("emoji-picker:close")
if((this.messageCount||0)>0)return void this.appEvents.trigger("composer-messages:close")
const e=this.model
e?.viewOpen&&this.shrink(),e?.viewFullscreen&&(this.toggleFullscreen(),this.focusComposer())}groupsMentioned(e){let t,{name:i,userCount:n,maxMentions:r}=e
if(this.get("model.creatingPrivateMessage")||this.get("model.topic.isPrivateMessage"))return
r=parseInt(r,10),n=parseInt(n,10)
const o=(0,v.default)(`/g/${i}/members`)
n>r?t=p.default.t("composer.group_mentioned_limit",{group:`@${i}`,count:r,group_link:o}):n>0&&(t=p.default.t("composer.group_mentioned",{group:`@${i}`,count:n,group_link:o})),t&&this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:t})}cannotSeeMention(e){let t,{name:i,reason:n,notifiedCount:r,isGroup:o}=e
r=parseInt(r,10),t=o?p.default.t(`composer.cannot_see_group_mention.${n}`,{group:i,count:r}):p.default.t(`composer.cannot_see_mention.${n}`,{username:i}),this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:t})}hereMention(e){this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:p.default.t("composer.here_mention",{here:this.siteSettings.here_mention,count:e})})}applyFormatCode(){this.toolbarEvent.formatCode()}applyUnorderedList(){this.toolbarEvent.applyList("* ","list_item")}applyOrderedList(){this.toolbarEvent.applyList((e=>e?`${parseInt(e,10)+1}. `:"1. "),"list_item")}save(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(this.disableSubmit)return
if(this.showWarning||this.set("model.isWarning",!1),this.site.mobileView&&this.showPreview&&this.set("showPreview",!1),this.siteSettings.experimental_form_templates&&this.formTemplateIds?.length>0&&!this.get("model.replyingToTopic")){const e=(0,z.default)(document.querySelector("#form-template-form"))
if(!e)return
this.model.set("reply",e)}const n=this.model
if(n?.cantSubmitPost)return n?.viewFullscreen&&this.toggleFullscreen(),void this.set("lastValidatedAt",Date.now())
const r=n.topic,o=r&&r.slow_mode_seconds&&r.user_last_posted_at,s="edit"!==this.get("model.action")
if(o&&s){if((0,l.cannotPostAgain)(this.currentUser,r.slow_mode_seconds,r.user_last_posted_at)){const e=new moment(r.user_last_posted_at).add(r.slow_mode_seconds,"seconds"),t=moment().diff(e,"seconds"),i=p.default.t("composer.slow_mode.error",{timeLeft:(0,l.durationTextFromSeconds)(t)})
return void this.dialog.alert(i)}r.set("user_last_posted_at",(new Date).toISOString())}if(n.set("disableDrafts",!0),!e&&n.replyingToTopic){const e=this.topicModel,t=this.model.topic
if(!e)return void this.save(!0)
const i=function(e){const t=e.closed?`<span class="topic-status">${(0,C.iconHTML)("lock")}</span>`:"",i=e.pinned?`<span class="topic-status">${(0,C.iconHTML)("thumbtack")}</span>`:"",n=e.bookmarked?`<span class="topic-status">${(0,C.iconHTML)("bookmark")}</span>`:""
return`<div class='topic-title'>\n                  <div class="topic-title__top-line">\n                    <span class='topic-statuses'>\n                      ${"private_message"===e.archetype?`<span class="topic-status">${(0,C.iconHTML)("envelope")}</span>`:""}${n}${t}${i}\n                    </span>\n                    <span class='fancy-title'>\n                      ${e.fancyTitle}\n                    </span>\n                  </div>\n                  <div class="topic-title__bottom-line">\n                    ${(0,T.categoryBadgeHTML)(e.category,{link:!1})}${(0,j.htmlSafe)((0,S.default)(e))}\n                  </div>\n                </div>`}
if(e.id!==n.get("topic.id")&&(this.isStaffUser||!e.closed))return void this.dialog.alert({title:p.default.t("composer.posting_not_on_topic"),buttons:[{label:i(t),class:"btn-primary btn-reply-where btn-reply-on-original",action:()=>this.save(!0)},{label:i(e),class:"btn-reply-where btn-reply-here",action:()=>{n.setProperties({topic:e,post:null}),this.save(!0)}},{label:p.default.t("composer.cancel"),class:"btn-flat btn-text btn-reply-where__cancel"}],class:"reply-where-modal"})}let a=!1
const u={}
document.querySelectorAll("#reply-control .d-editor-preview img:not(.avatar, .emoji)").forEach((e=>{const t=e.src
t&&t.length&&(u[t]={width:e.naturalWidth,height:e.naturalHeight})}))
const d=n.save({imageSizes:u,editReason:this.editReason}).then((e=>{if(this.appEvents.trigger("composer:saved"),"enqueued"===e.responseJson.action){if(this.postWasEnqueued(e.responseJson),e.responseJson.pending_post){let t=this.get("topicController.model.pending_posts")
t&&t.pushObject(e.responseJson.pending_post)}return this.destroyDraft().then((()=>(this.close(),this.appEvents.trigger("post-stream:refresh"),e)))}if(this.get("model.editingPost")?(this.appEvents.trigger("composer:edited-post"),this.appEvents.trigger("post-stream:refresh",{id:parseInt(e.responseJson.id,10)}),1===e.responseJson.post.post_number&&this.appEvents.trigger("header:update-topic",n.topic)):this.appEvents.trigger("post-stream:refresh"),"create_post"===e.responseJson.action&&(this.appEvents.trigger("composer:created-post"),this.appEvents.trigger("post:highlight",e.payload.post_number,i)),this.get("model.draftKey")===t.default.NEW_TOPIC_KEY&&this.currentUser.set("has_topic_draft",!1),e.responseJson.route_to)return this.destroyDraft(),e.responseJson.message?this.dialog.alert({message:e.responseJson.message,didConfirm:()=>{c.default.routeTo(e.responseJson.route_to)}}):c.default.routeTo(e.responseJson.route_to)
this.close(),this.currentUser.set("any_posts",!0)
const r=e.target
r&&!a&&!1!==i.jump&&c.default.routeTo(r.url,{keepFilter:!0,skipIfOnScreen:!0})})).catch((e=>{n.set("disableDrafts",!1),e&&this.appEvents.one("composer:will-open",(()=>{0!==je.length&&je.map((t=>t.call(this,e))).some((e=>e))||this.dialog.alert(e)}))}))
return"topic"===this.router.currentRouteName.split(".")[0]&&n.get("topic.id")===this.get("topicModel.id")&&(a=n.get("stagedPost")),this.appEvents.trigger("post-stream:posted",a),this.messageBus.pause(),d.finally((()=>this.messageBus.resume())),d}postWasEnqueued(e){(0,O.default)("post-enqueued",{model:e,title:"review.approval.title"})}checkReplyLength(){(0,w.isEmpty)("model.reply")||this.appEvents.trigger("composer:typed-reply")}async open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if(!e.draftKey)throw new Error("composer opened without a proper draft key")
let i=this.model
if(!e.ignoreIfChanged||!i||i.composeState===t.default.CLOSED){if(this.setProperties({showEditReason:!1,editReason:null,scopedCategoryId:null,prioritizedCategoryId:null,skipAutoSave:!0}),this.set("skipJumpOnSave",!!e.skipJumpOnSave),e.categoryId&&!e.disableScopedCategory){this.site.categories.findBy("id",e.categoryId)&&this.set("scopedCategoryId",e.categoryId)}if(e.prioritizedCategoryId){this.site.categories.findBy("id",e.prioritizedCategoryId)&&this.set("prioritizedCategoryId",e.prioritizedCategoryId)}i&&e.draftKey!==i.draftKey&&i.composeState===t.default.DRAFT&&(this.close(),i=null)
try{if(i?.replyDirty){if(i.composeState===t.default.OPEN&&i.draftKey===e.draftKey&&!e.action)return
if(i.composeState===t.default.DRAFT&&i.draftKey===e.draftKey&&(i.set("composeState",t.default.OPEN),!e.action))return
return await this.cancelComposer(e),void await this.open(e)}if(i&&i.action!==e.action&&i.setProperties({unlistTopic:!1,whisper:!1}),void 0===e.draftSequence){let t=await d.default.get(e.draftKey)
return e.skipDraftCheck?t.draft=void 0:t=await this.confirmDraftAbandon(t),e.draft||=t.draft,e.draftSequence=t.draft_sequence,void await this._setModel(i,e)}if(!e.draft&&!e.skipDraftCheck){let t=await d.default.get(e.draftKey)
t=await this.confirmDraftAbandon(t),t.draft&&(e.draft=t.draft,e.draftSequence=t.draft_sequence,await this.open(e))}await this._setModel(i,e)}finally{this.skipAutoSave=!1}}}async _setModel(e,i){let n
if(this.set("linkLookup",null),i.draft){if(n=await async function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{draft:n,draftKey:r,draftSequence:o}=i
try{n&&"string"==typeof n&&(n=JSON.parse(n))}catch(a){n=null,d.default.clear(r,o)}if(!n?.title&&!n?.reply)return
let s={draftKey:r,draftSequence:o,draft:!0,composerState:t.default.DRAFT,topic:i.topic}
t.default.serializedFieldsForDraft().forEach((e=>{s[e]=n[e]||i[e]}))
const l=e.createRecord("composer")
return await l.open(s),l}(this.store,i),!n)throw new Error("draft was not found")}else{const t=e||this.store.createRecord("composer")
await t.open(i),n=t}if(this.set("model",n),n.setProperties({composeState:t.default.OPEN,isWarning:!1,hasTargetGroups:i.hasGroups,warningsDisabled:i.warningsDisabled}),this.model.targetRecipients||(i.usernames?((0,f.default)("`usernames` is deprecated, use `recipients` instead.",{id:"discourse.composer.usernames"}),this.model.set("targetRecipients",i.usernames)):i.recipients&&this.model.set("targetRecipients",i.recipients)),i.topicTitle&&i.topicTitle.length<=this.siteSettings.max_topic_title_length&&this.model.set("title",i.topicTitle),i.topicCategoryId&&this.model.set("categoryId",i.topicCategoryId),i.topicTags&&this.site.can_tag_topics){let e=(0,y.escapeExpression)(i.topicTags).split(",").slice(0,this.siteSettings.max_tags_per_topic)
e.forEach(((e,t,i)=>i[t]=e.substring(0,this.siteSettings.max_tag_length))),this.model.set("tags",e)}i.topicBody&&this.model.set("reply",i.topicBody)
const r=this._getDefaultComposerHeight()
this.set("model.composerHeight",r),document.documentElement.style.setProperty("--composer-height",r)}_getDefaultComposerHeight(){return this.keyValueStore.getItem("composerHeight")?this.keyValueStore.getItem("composerHeight"):"reply"===this.model.action?"var(--reply-composer-height, 300px)":"var(--new-topic-composer-height, 400px)"}async destroyDraft(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null
const i=this.get("model.draftKey")
if(!i)return
if(i===t.default.NEW_TOPIC_KEY&&this.currentUser.set("has_topic_draft",!1),this._saveDraftPromise)return await this._saveDraftPromise,await this.destroyDraft()
const n=e||this.get("model.draftSequence")
await d.default.clear(i,n),this.appEvents.trigger("draft:destroyed",i)}confirmDraftAbandon(e){if(!e.draft)return e
const t=JSON.parse(e.draft)
return t.reply===t.originalText?(e.draft=null,e):Ce?new m.Promise((t=>{this.dialog.alert({message:p.default.t("drafts.abandon.confirm"),buttons:[{label:p.default.t("drafts.abandon.yes_value"),class:"btn-danger",icon:"far-trash-alt",action:()=>{this.destroyDraft(e.draft_sequence).finally((()=>{e.draft=null,t(e)}))}},{label:p.default.t("drafts.abandon.no_value"),class:"btn-resume-editing",action:()=>t(e)}]})})):(e.draft=null,e)}cancelComposer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return this.skipAutoSave=!0,this._saveDraftDebounce&&(0,s.cancel)(this._saveDraftDebounce),new m.Promise((i=>{if(this.get("model.hasMetaData")||this.get("model.replyDirty")){const n=(0,O.default)("discard-draft",{model:this.model,modalClass:"discard-draft-modal"}),r=this.model.composeState===t.default.OPEN&&this.model.draftKey===e.draftKey&&[t.default.EDIT_SHARED_DRAFT,t.default.EDIT].includes(e.action),o=this.model.canSaveDraft&&!r
n.setProperties({showSaveDraftButton:o,onDestroyDraft:()=>this.destroyDraft().then((()=>{this.model.clearState(),this.close()})).finally((()=>{this.appEvents.trigger("composer:cancelled"),i()})),onSaveDraft:()=>(this._saveDraft(),this.model.clearState(),this.close(),this.appEvents.trigger("composer:cancelled"),i())})}else this.destroyDraft().then((()=>{this.model.clearState(),this.close()})).finally((()=>{this.appEvents.trigger("composer:cancelled"),i()}))})).finally((()=>{this.skipAutoSave=!1}))}shrink(){this.get("model.replyDirty")||this.get("model.canEditTitle")&&this.get("model.titleDirty")?this.collapse():this.close()}_saveDraft(){this.model&&(this.model.draftSaving?this._saveDraftDebounce=(0,g.default)(this,this._saveDraft,2e3):this._saveDraftPromise=this.model.saveDraft(this.currentUser).finally((()=>{this._lastDraftSaved=Date.now(),this._saveDraftPromise=null})))}_shouldSaveDraft(){!this.model||this.model.loading||this.skipAutoSave||this.model.disableDrafts||(this._lastDraftSaved||(this._lastDraftSaved=Date.now()),Date.now()-this._lastDraftSaved>15e3?this._saveDraft():this._saveDraftDebounce=(0,g.default)(this,this._saveDraft,2e3))}categoryValidation(e,t){if(!this.siteSettings.allow_uncategorized_topics&&!e)return n.default.create({failed:!0,reason:p.default.t("composer.error.category_missing"),lastShownAt:t})}tagValidation(e,t,i){const r=t||[]
if(this.site.can_tag_topics&&!this.currentUser.staff&&e&&e.minimumRequiredTags>r.length)return n.default.create({failed:!0,reason:p.default.t("composer.error.tags_missing",{count:e.minimumRequiredTags}),lastShownAt:i})}collapse(){this._saveDraft(),this.set("model.composeState",t.default.DRAFT),document.documentElement.style.setProperty("--composer-height","40px")}toggleFullscreen(){this._saveDraft()
const e=this.model
e?.viewFullscreen?e?.set("composeState",t.default.OPEN):(e?.set("composeState",t.default.FULLSCREEN),e?.set("showFullScreenExitPrompt",!0))}showFullScreenPrompt(e,t){return e&&t&&!this.capabilities.touch}close(){const e=document.querySelector("html")
e.classList.remove("fullscreen-composer"),e.classList.remove("composer-open"),document.activeElement?.blur(),document.documentElement.style.removeProperty("--composer-height"),this.setProperties({model:null,lastValidatedAt:null})}closeAutocomplete(){$(".d-editor-input").autocomplete({cancel:!0})}canEdit(e){return"edit"===e&&this.currentUser.can_edit}visible(e){return e&&"closed"!==e}clearLastValidatedAt(){this.set("lastValidatedAt",null)}},de=Te(ce.prototype,"router",[x.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=Te(ce.prototype,"dialog",[x.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=Te(ce.prototype,"site",[x.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=Te(ce.prototype,"store",[x.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=Te(ce.prototype,"appEvents",[x.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=Te(ce.prototype,"forcePreview",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=Te(ce.prototype,"whisperOrUnlistTopic",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=Te(ce.prototype,"categories",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=Te(ce.prototype,"topicModel",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=Te(ce.prototype,"isStaffUser",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=Te(ce.prototype,"whisperer",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Te(ce.prototype,"canUnlistTopic",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xe=Te(ce.prototype,"isWhispering",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Te(ce.prototype,"_setupPreview",[F],Object.getOwnPropertyDescriptor(ce.prototype,"_setupPreview"),ce.prototype),Te(ce.prototype,"disableSubmit",[R],Object.getOwnPropertyDescriptor(ce.prototype,"disableSubmit"),ce.prototype),Te(ce.prototype,"toggleText",[B],Object.getOwnPropertyDescriptor(ce.prototype,"toggleText"),ce.prototype),Te(ce.prototype,"showPreviewChanged",[q],Object.getOwnPropertyDescriptor(ce.prototype,"showPreviewChanged"),ce.prototype),Te(ce.prototype,"focusTarget",[H],Object.getOwnPropertyDescriptor(ce.prototype,"focusTarget"),ce.prototype),Te(ce.prototype,"showToolbar",[n.computed],Object.getOwnPropertyDescriptor(ce.prototype,"showToolbar"),ce.prototype),Te(ce.prototype,"canEditTags",[W],Object.getOwnPropertyDescriptor(ce.prototype,"canEditTags"),ce.prototype),Te(ce.prototype,"disableCategoryChooser",[V],Object.getOwnPropertyDescriptor(ce.prototype,"disableCategoryChooser"),ce.prototype),Te(ce.prototype,"disableTagsChooser",[G],Object.getOwnPropertyDescriptor(ce.prototype,"disableTagsChooser"),ce.prototype),Te(ce.prototype,"showWhisperToggle",[K],Object.getOwnPropertyDescriptor(ce.prototype,"showWhisperToggle"),ce.prototype),Te(ce.prototype,"replyingToWhisper",[Y],Object.getOwnPropertyDescriptor(ce.prototype,"replyingToWhisper"),ce.prototype),Te(ce.prototype,"saveIcon",[J],Object.getOwnPropertyDescriptor(ce.prototype,"saveIcon"),ce.prototype),Te(ce.prototype,"saveLabel",[Q],Object.getOwnPropertyDescriptor(ce.prototype,"saveLabel"),ce.prototype),Te(ce.prototype,"canWhisper",[X],Object.getOwnPropertyDescriptor(ce.prototype,"canWhisper"),ce.prototype),Te(ce.prototype,"disableTextarea",[Z],Object.getOwnPropertyDescriptor(ce.prototype,"disableTextarea"),ce.prototype),Te(ce.prototype,"popupMenuOptions",[ee],Object.getOwnPropertyDescriptor(ce.prototype,"popupMenuOptions"),ce.prototype),Te(ce.prototype,"showWarning",[te],Object.getOwnPropertyDescriptor(ce.prototype,"showWarning"),ce.prototype),Te(ce.prototype,"draftTitle",[ie],Object.getOwnPropertyDescriptor(ce.prototype,"draftTitle"),ce.prototype),Te(ce.prototype,"allowUpload",[a.default],Object.getOwnPropertyDescriptor(ce.prototype,"allowUpload"),ce.prototype),Te(ce.prototype,"uploadIcon",[ne],Object.getOwnPropertyDescriptor(ce.prototype,"uploadIcon"),ce.prototype),Te(ce.prototype,"focusComposer",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"focusComposer"),ce.prototype),Te(ce.prototype,"updateCategory",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"updateCategory"),ce.prototype),Te(ce.prototype,"openIfDraft",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"openIfDraft"),ce.prototype),Te(ce.prototype,"removeFullScreenExitPrompt",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"removeFullScreenExitPrompt"),ce.prototype),Te(ce.prototype,"cancel",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"cancel"),ce.prototype),Te(ce.prototype,"cancelUpload",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"cancelUpload"),ce.prototype),Te(ce.prototype,"togglePreview",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"togglePreview"),ce.prototype),Te(ce.prototype,"viewNewReply",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"viewNewReply"),ce.prototype),Te(ce.prototype,"closeComposer",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"closeComposer"),ce.prototype),Te(ce.prototype,"openComposer",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"openComposer"),ce.prototype),Te(ce.prototype,"onPopupMenuAction",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"onPopupMenuAction"),ce.prototype),Te(ce.prototype,"storeToolbarState",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"storeToolbarState"),ce.prototype),Te(ce.prototype,"typed",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"typed"),ce.prototype),Te(ce.prototype,"cancelled",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"cancelled"),ce.prototype),Te(ce.prototype,"addLinkLookup",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"addLinkLookup"),ce.prototype),Te(ce.prototype,"afterRefresh",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"afterRefresh"),ce.prototype),Te(ce.prototype,"toggleWhisper",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"toggleWhisper"),ce.prototype),Te(ce.prototype,"toggleInvisible",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"toggleInvisible"),ce.prototype),Te(ce.prototype,"toggleToolbar",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"toggleToolbar"),ce.prototype),Te(ce.prototype,"toggle",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"toggle"),ce.prototype),Te(ce.prototype,"fullscreenComposer",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"fullscreenComposer"),ce.prototype),Te(ce.prototype,"importQuote",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"importQuote"),ce.prototype),Te(ce.prototype,"saveAction",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"saveAction"),ce.prototype),Te(ce.prototype,"displayEditReason",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"displayEditReason"),ce.prototype),Te(ce.prototype,"hitEsc",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"hitEsc"),ce.prototype),Te(ce.prototype,"groupsMentioned",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"groupsMentioned"),ce.prototype),Te(ce.prototype,"cannotSeeMention",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"cannotSeeMention"),ce.prototype),Te(ce.prototype,"hereMention",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"hereMention"),ce.prototype),Te(ce.prototype,"applyFormatCode",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"applyFormatCode"),ce.prototype),Te(ce.prototype,"applyUnorderedList",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"applyUnorderedList"),ce.prototype),Te(ce.prototype,"applyOrderedList",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"applyOrderedList"),ce.prototype),Te(ce.prototype,"postWasEnqueued",[n.action],Object.getOwnPropertyDescriptor(ce.prototype,"postWasEnqueued"),ce.prototype),Te(ce.prototype,"_shouldSaveDraft",[re],Object.getOwnPropertyDescriptor(ce.prototype,"_shouldSaveDraft"),ce.prototype),Te(ce.prototype,"categoryValidation",[oe],Object.getOwnPropertyDescriptor(ce.prototype,"categoryValidation"),ce.prototype),Te(ce.prototype,"tagValidation",[se],Object.getOwnPropertyDescriptor(ce.prototype,"tagValidation"),ce.prototype),Te(ce.prototype,"showFullScreenPrompt",[le],Object.getOwnPropertyDescriptor(ce.prototype,"showFullScreenPrompt"),ce.prototype),Te(ce.prototype,"canEdit",[ae],Object.getOwnPropertyDescriptor(ce.prototype,"canEdit"),ce.prototype),Te(ce.prototype,"visible",[ue],Object.getOwnPropertyDescriptor(ce.prototype,"visible"),ce.prototype),ce)
e.default=ze})),define("discourse/services/dialog",["exports","dialog-holder/services/dialog"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("discourse/services/document-title",["exports","@ember/service","discourse-common/lib/get-url","discourse/lib/update-tab-count"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=t.default.extend({appEvents:(0,t.inject)(),currentUser:(0,t.inject)(),contextCount:null,notificationCount:null,_title:null,_backgroundNotify:null,init(){this._super(...arguments),this.reset()},reset(){this.contextCount=0,this.notificationCount=0,this._title=null,this._backgroundNotify=null},getTitle(){return this._title},setTitle(e){this._title=e,this._renderTitle()},setFocus(e){let{session:t}=this
t.hasFocus=e,t.hasFocus&&this._backgroundNotify&&this.updateContextCount(0),this._backgroundNotify=!1,t.hasFocus&&(this.notificationCount=0),this.appEvents.trigger("discourse:focus-changed",t.hasFocus),this._renderFavicon(),this._renderTitle()},updateContextCount(e){this.contextCount=e,this._renderTitle()},updateNotificationCount(e){let{forced:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
this.session.hasFocus&&!t||(this.notificationCount=e,this._renderFavicon(),this._renderTitle())},incrementBackgroundContextCount(){this.session.hasFocus||(this._backgroundNotify=!0,this.contextCount+=1,this._renderFavicon(),this._renderTitle())},_displayCount(){return this.currentUser&&"notifications"===this.currentUser.user_option.title_count_mode?this.notificationCount:this.contextCount},_renderTitle(){let e=this._title||this.siteSettings.title,t=this._displayCount(),i=this.currentUser?.user_option.dynamic_favicon
this.currentUser?.isInDoNotDisturb()||t>0&&!i&&(e=`(${t}) ${e}`),document.title=e},_renderFavicon(){if(this.currentUser?.user_option.dynamic_favicon){let e=this.siteSettings.site_favicon_url;/^http/.test(e)&&(e=(0,i.default)("/favicon/proxied?"+encodeURIComponent(e))),(0,n.default)(e,this._displayCount())}}})
e.default=r})),define("discourse/services/emoji-store",["exports","discourse/lib/key-value-store","@ember/service"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n="emojiUsage",r="emojiSelectedDiversity",o="discourse_emojis_"
var s=i.default.extend({init(){this._super(...arguments),this.store=new t.default(o),this.store.getObject(n)||(this.favorites=[])},get diversity(){return this.store.getObject(r)||1},set diversity(e){this.store.setObject({key:r,value:e||1}),this.notifyPropertyChange("diversity")},get favorites(){return this.store.getObject(n)||[]},set favorites(e){this.store.setObject({key:n,value:e||[]}),this.notifyPropertyChange("favorites")},track(e){const t=e.replace(/(^:)|(:$)/g,""),i=this.favorites.filter((e=>e!==t))
i.unshift(t),i.length=Math.min(i.length,15),this.favorites=i},reset(){const e=new t.default(o)
e.setObject({key:n,value:[]}),e.setObject({key:r,value:1})}})
e.default=s})),define("discourse/services/key-value-store",["exports","@ember/service","discourse/lib/key-value-store"],(function(e,t,i){function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=Object.getOwnPropertyNames(i.default.prototype).reject((e=>"constructor"===e))
class o extends t.default{constructor(){super(...arguments),n(this,"_keyValueStore",new i.default("discourse_"))
for(const e of r)this[e]=this._keyValueStore[e].bind(this._keyValueStore)}}e.default=o})),define("discourse/services/loading-slider",["exports","@ember/service","@ember/object/evented","@ember/runloop","@glimmer/tracking","discourse-common/utils/decorators","discourse/lib/implicit-injections"],(function(e,t,i,n,r,o,s){var l,a,u,c,d,p,m,h,f,g
function b(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function y(e,t,i){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,i)}function _(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function v(e,t){return function(e,t){if(t.get)return t.get.call(e)
return t.value}(e,k(e,t,"get"))}function w(e,t,i){return function(e,t,i){if(t.set)t.set.call(e,i)
else{if(!t.writable)throw new TypeError("attempted to set read only private field")
t.value=i}}(e,k(e,t,"set"),i),i}function k(e,t,i){if(!t.has(e))throw new TypeError("attempted to "+i+" private field on non-instance")
return t.get(e)}function x(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let P=(u=new WeakMap,c=new WeakMap,d=new WeakMap,a=x((l=class{constructor(e,t){b(this,"average",a,this),y(this,u,{writable:!0,value:[]}),y(this,c,{writable:!0,value:0}),y(this,d,{writable:!0,value:void 0}),w(this,d,e),this.average=t}record(e){v(this,u)[v(this,c)]=e,w(this,c,(v(this,c)+1)%v(this,d)),this.average=v(this,u).reduce(((e,t)=>e+t),0)/v(this,u).length}}).prototype,"average",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l)
var O=new WeakMap
class T{constructor(){y(this,O,{writable:!0,value:[]})}cancelAll(){v(this,O).forEach((e=>(0,n.cancel)(e))),w(this,O,[])}schedule(){v(this,O).push((0,n.schedule)(...arguments))}later(){v(this,O).push((0,n.later)(...arguments))}}var S=new WeakMap
class j{constructor(){y(this,S,{writable:!0,value:void 0})}start(){w(this,S,Date.now())}stop(){return(Date.now()-v(this,S))/1e3}}let C=(0,s.disableImplicitInjections)((m=class extends(t.default.extend(i.default)){constructor(){super(...arguments),b(this,"siteSettings",h,this),b(this,"loading",f,this),b(this,"stillLoading",g,this),_(this,"rollingAverage",new P(5,.3)),_(this,"scheduleManager",new T),_(this,"timer",new j)}get enabled(){return"slider"===this.siteSettings.page_loading_indicator}get averageLoadingDuration(){return this.rollingAverage.average}transitionStarted(){this.timer.start(),this.loading=!0,this.trigger("stateChanged",!0),this.scheduleManager.cancelAll(),this.scheduleManager.later(this.setStillLoading,2e3)}transitionEnded(){let e=this.timer.stop()
e<.1&&(e=.1),this.rollingAverage.record(e),this.loading=!1,this.stillLoading=!1,this.trigger("stateChanged",!1),this.scheduleManager.cancelAll(),this.scheduleManager.schedule("afterRender",this.removeClasses)}setStillLoading(){this.stillLoading=!0,this.scheduleManager.schedule("afterRender",this.addStillLoadingClass)}addStillLoadingClass(){document.body.classList.add("still-loading")}removeClasses(){document.body.classList.remove("loading","still-loading")}},h=x(m.prototype,"siteSettings",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=x(m.prototype,"loading",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=x(m.prototype,"stillLoading",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x(m.prototype,"transitionEnded",[o.bind],Object.getOwnPropertyDescriptor(m.prototype,"transitionEnded"),m.prototype),x(m.prototype,"setStillLoading",[o.bind],Object.getOwnPropertyDescriptor(m.prototype,"setStillLoading"),m.prototype),x(m.prototype,"addStillLoadingClass",[o.bind],Object.getOwnPropertyDescriptor(m.prototype,"addStillLoadingClass"),m.prototype),x(m.prototype,"removeClasses",[o.bind],Object.getOwnPropertyDescriptor(m.prototype,"removeClasses"),m.prototype),p=m))||p
e.default=C})),define("discourse/services/logs-notice",["exports","discourse-common/utils/decorators","@ember/service","I18n","discourse/lib/formatter","discourse-common/lib/get-url","@ember/template","@ember/utils","@ember/object/computed"],(function(e,t,i,n,r,o,s,l,a){var u,c,d,p,m
function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f="logs-notice-text"
var g=i.default.extend((u=(0,t.default)("text"),c=(0,t.default)("text"),d=(0,t.default)("isEmpty","isAdmin"),p=(0,t.observes)("text"),m={text:"",isAdmin:(0,a.readOnly)("currentUser.admin"),init(){if(this._super(...arguments),0===this.siteSettings.alert_admins_if_errors_per_hour&&0===this.siteSettings.alert_admins_if_errors_per_minute)return
const e=this.keyValueStore.getItem(f)
e&&this.set("text",e),this.messageBus.subscribe("/logs_error_rate_exceeded",this.onLogRateLimit)},willDestroy(){this._super(...arguments),this.messageBus.unsubscribe("/logs_error_rate_exceeded",this.onLogRateLimit)},onLogRateLimit(e){const{duration:t,rate:i}=e
let s=0
"minute"===t?s=this.siteSettings.alert_admins_if_errors_per_minute:"hour"===t&&(s=this.siteSettings.alert_admins_if_errors_per_hour)
let l=i===s?"reached":"exceeded"
l+=`_${t}_MF`,this.set("text",n.default.messageFormat(`logs_error_rate_notice.${l}`,{relativeAge:(0,r.autoUpdatingRelativeAge)(new Date(1e3*e.publish_at)),rate:i,limit:s,url:(0,o.default)("/logs")}))},isEmpty:e=>(0,l.isEmpty)(e),message:e=>(0,s.htmlSafe)(e),hidden:(e,t)=>!t||e,_updateKeyValueStore(){this.keyValueStore.setItem(f,this.text)}},h(m,"onLogRateLimit",[t.bind],Object.getOwnPropertyDescriptor(m,"onLogRateLimit"),m),h(m,"isEmpty",[u],Object.getOwnPropertyDescriptor(m,"isEmpty"),m),h(m,"message",[c],Object.getOwnPropertyDescriptor(m,"message"),m),h(m,"hidden",[d],Object.getOwnPropertyDescriptor(m,"hidden"),m),h(m,"_updateKeyValueStore",[p],Object.getOwnPropertyDescriptor(m,"_updateKeyValueStore"),m),m))
e.default=g}))
define("discourse/services/media-optimization-worker",["exports","@ember/service","@ember/application","rsvp","discourse/lib/media-optimization-utils","discourse-common/lib/get-url"],(function(e,t,i,n,r,o){function s(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(){super(...arguments),s(this,"appEvents",(0,i.getOwner)(this).lookup("service:app-events")),s(this,"worker",null),s(this,"workerUrl",(0,o.getAbsoluteURL)("/javascripts/media-optimization-worker.js")),s(this,"currentComposerUploadData",null),s(this,"promiseResolvers",null)}async optimizeImage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
this.promiseResolvers=this.promiseResolvers||{},this.stopWorkerOnError=!t.hasOwnProperty("stopWorkerOnError")||t.stopWorkerOnError
let i=e
return/(\.|\/)(jpe?g|png|webp)$/i.test(i.type)?i.size<this.siteSettings.composer_media_optimization_image_bytes_optimization_threshold?(this.logIfDebug(`The file ${i.name} was less than the image optimization bytes threshold (${this.siteSettings.composer_media_optimization_image_bytes_optimization_threshold} bytes), skipping.`,i),n.Promise.resolve()):(await this.ensureAvailableWorker(),new n.Promise((async t=>{let n
this.logIfDebug(`Transforming ${i.name}`),this.currentComposerUploadData=e,this.promiseResolvers[i.id]=t
try{n=await(0,r.fileToImageData)(i.data)}catch(o){return this.logIfDebug(o),t()}this.worker.postMessage({type:"compress",fileId:i.id,file:n.data.buffer,fileName:i.name,width:n.width,height:n.height,settings:{resize_threshold:this.siteSettings.composer_media_optimization_image_resize_dimensions_threshold,resize_target:this.siteSettings.composer_media_optimization_image_resize_width_target,resize_pre_multiply:this.siteSettings.composer_media_optimization_image_resize_pre_multiply,resize_linear_rgb:this.siteSettings.composer_media_optimization_image_resize_linear_rgb,encode_quality:this.siteSettings.composer_media_optimization_image_encode_quality,debug_mode:this.siteSettings.composer_media_optimization_debug_mode}},[n.data.buffer])}))):n.Promise.resolve()}async ensureAvailableWorker(){return this.worker&&this.workerInstalled?n.Promise.resolve():this.installPromise?this.installPromise:this.install()}async install(){return this.installPromise=new n.Promise(((e,t)=>{this.afterInstalled=e,this.failedInstall=t,this.logIfDebug("Installing worker."),this.startWorker(),this.registerMessageHandler(),this.worker.postMessage({type:"install",settings:{mozjpeg_script:(0,o.getURLWithCDN)("/javascripts/squoosh/mozjpeg_enc.js"),mozjpeg_wasm:(0,o.getURLWithCDN)("/javascripts/squoosh/mozjpeg_enc.wasm"),resize_script:(0,o.getURLWithCDN)("/javascripts/squoosh/squoosh_resize.js"),resize_wasm:(0,o.getURLWithCDN)("/javascripts/squoosh/squoosh_resize_bg.wasm")}}),this.appEvents.on("composer:closed",this,"stopWorker")})),this.installPromise}startWorker(){this.logIfDebug("Starting media-optimization-worker"),this.worker=new Worker(this.workerUrl)}stopWorker(){this.worker&&(this.logIfDebug("Stopping media-optimization-worker..."),this.workerInstalled=!1,this.worker.terminate(),this.worker=null)}registerMessageHandler(){this.worker.onmessage=e=>{switch(e.data.type){case"file":let t=new File([e.data.file],e.data.fileName,{type:"image/jpeg"})
this.logIfDebug(`Finished optimization of ${t.name} new size: ${t.size}.`),this.promiseResolvers[e.data.fileId](t)
break
case"error":this.logIfDebug(`Handling error message from image optimization for ${e.data.fileName}.`),this.stopWorkerOnError&&this.stopWorker(),this.promiseResolvers[e.data.fileId]()
break
case"installed":this.logIfDebug("Worker installed."),this.workerInstalled=!0,this.afterInstalled(),this.cleanupInstallPromises()
break
case"installFailed":this.logIfDebug("Worker failed to install."),this.failedInstall(e.data.errorMessage),this.cleanupInstallPromises()
break
default:this.logIfDebug(`Sorry, we are out of ${e}.`)}}}cleanupInstallPromises(){this.afterInstalled=null,this.failedInstall=null,this.installPromise=null}logIfDebug(){this.siteSettings.composer_media_optimization_debug_mode&&console.log(...arguments)}}e.default=l})),define("discourse/services/message-bus",["exports","message-bus-client"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i{static create(){return t.default}}var n,r,o
e.default=i,n=i,o=!0,(r=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(r="isServiceFactory"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o})),define("discourse/services/modal",["exports","@ember/service","@glimmer/tracking","@ember/application","I18n","@ember/string","@ember/object","discourse/lib/implicit-injections","discourse/components/d-modal","discourse-common/lib/deprecated"],(function(e,t,i,n,r,o,s,l,a,u){var c,d,p,m,h,f,g,b,y,_,v,w,k
function x(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function P(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const O=new Set(["admin","templateName","title","titleTranslated","modalClass","titleAriaElementId","panels"])
let T=(0,l.disableImplicitInjections)((d=class extends t.default{constructor(){super(...arguments),x(this,"activeModal",p,this),x(this,"opts",m,this),x(this,"containerElement",h,this)}setContainerElement(e){this.containerElement=e}show(e,t){let i
this.close({initiatedBy:a.CLOSE_INITIATED_BY_MODAL_SHOW})
const n=new Promise((e=>{i=e}))
this.opts=t||{},this.activeModal={component:e,opts:t,resolveShowPromise:i}
const r=Object.keys(t).filter((e=>O.has(e)))
if(r.length>0)throw new Error(`${r.join(", ")} are not supported in the component-based modal API. See https://meta.discourse.org/t/268057`)
return n}close(e){this.activeModal?.resolveShowPromise?.(e),this.activeModal=null,this.opts={}}},p=P(d.prototype,"activeModal",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=P(d.prototype,"opts",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),h=P(d.prototype,"containerElement",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P(d.prototype,"setContainerElement",[s.action],Object.getOwnPropertyDescriptor(d.prototype,"setContainerElement"),d.prototype),c=d))||c,S=(f=class extends T{constructor(){super(...arguments),x(this,"appEvents",g,this),x(this,"name",b,this),x(this,"selectedPanel",y,this),x(this,"hidden",_,this),x(this,"titleOverride",v,this),x(this,"modalClassOverride",w,this),x(this,"onSelectPanel",k,this)}get title(){return this.titleOverride?this.titleOverride:this.opts.titleTranslated?this.opts.titleTranslated:this.opts.title?r.default.t(this.opts.title):null}set title(e){this.titleOverride=e}get modalClass(){return this.isLegacy?this.modalClassOverride||this.opts.modalClass||`${(0,o.dasherize)(this.name.replace(/^modals\//,"")).toLowerCase()}-modal`:null}set modalClass(e){this.modalClassOverride=e}show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if("string"!=typeof e)return super.show(e,t);(0,u.default)("Defining modals using a controller is deprecated. Use the component-based API instead.",{id:"discourse.modal-controllers",since:"3.1",dropFrom:"3.2",url:"https://meta.discourse.org/t/268057"})
const i=e,r=(0,n.getOwner)(this),s=r.lookup("route:application")
this.opts=t
const l=t.admin?`modals/${i}`:i
this.name=l
let a=r.lookup("controller:"+l)
const c=t.templateName||(0,o.dasherize)(i),d={into:"application",outlet:"modalBody"}
a?d.controller=l:(d.controller="basic-modal-body",a=r.lookup(`controller:${d.controller}`)),t.addModalBodyView&&(d.view="modal-body")
const p=`modal/${c}`,m=t.admin?`admin/templates/${p}`:p
s.render(m,d),t.panels&&(a.actions.onSelectPanel&&(this.onSelectPanel=a.actions.onSelectPanel.bind(a)),this.selectedPanel=t.panels[0]),a.set("modal",this)
const h=t.model
return h&&a.set("model",h),a.onShow&&a.onShow(),a.set("flashMessage",null),this.activeController=a}close(e){this.isLegacy||super.close(...arguments)
const t=this.name,i=t?(0,n.getOwner)(this).lookup(`controller:${t}`):null
!1!==i?.beforeClose?.()&&((0,n.getOwner)(this).lookup("route:application").render("hide-modal",{into:"application",outlet:"modalBody"}),$(".d-modal.fixed-modal").modal("hide"),i&&(this.appEvents.trigger("modal:closed",{name:t,controller:i}),i.onClose&&i.onClose({initiatedByCloseButton:"initiatedByCloseButton"===e,initiatedByClickOut:"initiatedByClickOut"===e,initiatedByESC:"initiatedByESC"===e})),this.hidden=!0,this.name=this.selectedPanel=this.modalClassOverride=this.titleOverride=this.onSelectPanel=null,super.close())}hide(){if(!this.isLegacy)throw"hide/reopen are not supported for component-based modals"
$(".d-modal.fixed-modal").modal("hide")}reopen(){if(!this.isLegacy)throw"hide/reopen are not supported for component-based modals"
$(".d-modal.fixed-modal").modal("show")}get isLegacy(){return this.name&&!this.activeModal}},g=P(f.prototype,"appEvents",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=P(f.prototype,"name",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=P(f.prototype,"selectedPanel",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=P(f.prototype,"hidden",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),v=P(f.prototype,"titleOverride",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=P(f.prototype,"modalClassOverride",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=P(f.prototype,"onSelectPanel",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f)
e.default=S})),define("discourse/services/navigation-menu",["exports","@ember/service"],(function(e,t){var i,n,r
function o(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function s(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let l=(i=class extends t.default{constructor(){super(...arguments),o(this,"site",n,this),o(this,"siteSettings",r,this)}get isDesktopDropdownMode(){const e="header dropdown"===this.siteSettings.navigation_menu
return!this.site.mobileView&&e}},n=s(i.prototype,"site",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=s(i.prototype,"siteSettings",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)
e.default=l})),define("discourse/services/network-connectivity",["exports","@ember/service","discourse/lib/ajax","@glimmer/tracking"],(function(e,t,i,n){var r,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let s=(r=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="connected",n=this,(i=o)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),this.setConnectivity(navigator.onLine),window.addEventListener("offline",(()=>{this.setConnectivity(!1)})),window.addEventListener("online",this.pingServerAndSetConnectivity.bind(this)),window.addEventListener("visibilitychange",this.onFocus.bind(this))}onFocus(){this.connected||"visible"!==document.visibilityState||this.pingServerAndSetConnectivity()}async pingServerAndSetConnectivity(){let e=await(0,i.ajax)("/srv/status",{dataType:"text"}).catch((()=>{this.setConnectivity(!1)}))
this.setConnectivity("ok"===e)}setConnectivity(e){this.connected=e,document.documentElement.classList.toggle("network-disconnected",!e)}},l=r.prototype,a="connected",u=[n.tracked],c={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}},p={},Object.keys(c).forEach((function(e){p[e]=c[e]})),p.enumerable=!!p.enumerable,p.configurable=!!p.configurable,("value"in p||p.initializer)&&(p.writable=!0),p=u.slice().reverse().reduce((function(e,t){return t(l,a,e)||e}),p),d&&void 0!==p.initializer&&(p.value=p.initializer?p.initializer.call(d):void 0,p.initializer=void 0),void 0===p.initializer&&(Object.defineProperty(l,a,p),p=null),o=p,r)
var l,a,u,c,d,p
e.default=s})),define("discourse/services/pm-topic-tracking-state",["exports","rsvp","@ember/service","discourse/lib/ajax","discourse-common/utils/decorators","discourse/lib/ajax-error","discourse-common/lib/object","discourse/routes/build-private-messages-route","discourse/lib/notification-levels"],(function(e,t,i,n,r,o,s,l,a){var u
function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=i.default.extend((u={CHANNEL_PREFIX:"/private-message-topic-tracking-state",inbox:null,filter:null,activeGroup:null,init(){this._super(...arguments),this.states=new Map,this.statesModificationCounter=0,this.isTracking=!1,this.newIncoming=[],this.stateChangeCallbacks=new Map},willDestroy(){this._super(...arguments),this.currentUser&&this.messageBus.unsubscribe(this.userChannel(),this._processMessage),this.messageBus.unsubscribe(this.groupChannel("*"),this._processMessage)},onStateChange(e,t){this.stateChangeCallbacks.set(e,t)},offStateChange(e){this.stateChangeCallbacks.delete(e)},startTracking(){return this.isTracking?t.Promise.resolve():(this.messageBus.subscribe(this.userChannel(),this._processMessage),this.currentUser.groupsWithMessages?.forEach((e=>{this.messageBus.subscribe(this.groupChannel(e.id),this._processMessage)})),this._loadInitialState().finally((()=>{this.set("isTracking",!0)})))},lookupCount(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const i="new"===e?this._isNew:this._isUnread,n=t.inboxFilter||this.inbox
let r
return"user"===n?r=this._isPersonal:"group"===n&&(r=this._isGroup),Array.from(this.states.values()).filter((e=>i(e)&&r?.(e,t.groupName))).length},trackIncoming(e,t,i){this.setProperties({inbox:e,filter:t,activeGroup:i,isTrackingIncoming:!0})},resetIncomingTracking(){this.isTrackingIncoming&&this.set("newIncoming",[])},stopIncomingTracking(){this.isTrackingIncoming&&this.setProperties({isTrackingIncoming:!1,newIncoming:[]})},removeTopics(e){this.isTracking&&(e.forEach((e=>this.states.delete(e))),this._afterStateChange())},findState(e){return this.states.get(e)},userChannel(){return`${this.CHANNEL_PREFIX}/user/${this.currentUser.id}`},groupChannel(e){return`${this.CHANNEL_PREFIX}/group/${e}`},_isNew:e=>!e.last_read_post_number&&(0!==e.notification_level&&!e.notification_level||e.notification_level>=a.NotificationLevels.TRACKING)&&!e.is_seen,_isUnread:e=>e.last_read_post_number&&e.last_read_post_number<e.highest_post_number&&e.notification_level>=a.NotificationLevels.TRACKING,_isPersonal(e){const t=this.currentUser?.groups
return!t||0===t.length||!t.some((t=>e.group_ids?.includes(t.id)))},_isGroup(e,t){return this.currentUser.groups.some((i=>i.name===(t||this.activeGroup.name)&&e.group_ids?.includes(i.id)))},_processMessage(e){switch(e.message_type){case"new_topic":e.payload.created_by_user_id!==this.currentUser.id&&(this._modifyState(e.topic_id,e.payload),[l.NEW_FILTER,l.INBOX_FILTER].includes(this.filter)&&this._shouldDisplayMessageForInbox(e)&&this._notifyIncoming(e.topic_id))
break
case"read":this._modifyState(e.topic_id,e.payload)
break
case"unread":this._modifyState(e.topic_id,e.payload),[l.UNREAD_FILTER,l.INBOX_FILTER].includes(this.filter)&&this._shouldDisplayMessageForInbox(e)&&this._notifyIncoming(e.topic_id)
break
case"group_archive":![l.INBOX_FILTER,l.ARCHIVE_FILTER].includes(this.filter)||e.payload.acting_user_id&&e.payload.acting_user_id===this.currentUser.id||!this._displayMessageForGroupInbox(e)||this._notifyIncoming(e.topic_id)}},_displayMessageForGroupInbox(e){return"group"===this.inbox&&e.payload.group_ids.includes(this.activeGroup.id)},_shouldDisplayMessageForInbox(e){return this._displayMessageForGroupInbox(e)||"user"===this.inbox&&(0===e.payload.group_ids.length||0===this.currentUser.groups.filter((t=>e.payload.group_ids.includes(t.id))).length)},_notifyIncoming(e){this.isTrackingIncoming&&!this.newIncoming.includes(e)&&this.newIncoming.pushObject(e)},_loadInitialState(){return(0,n.ajax)(`/u/${this.currentUser.username}/private-message-topic-tracking-state`).then((e=>{e.forEach((e=>{this._modifyState(e.topic_id,e,{skipIncrement:!0})}))})).catch(o.popupAjaxError)},_modifyState(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
const n=this.findState(e)
let r=t
n&&!(0,s.deepEqual)(n,r)&&(r=(0,s.deepMerge)(n,r)),this.states.set(e,r),i.skipIncrement||this._afterStateChange()},_afterStateChange(){this.incrementProperty("statesModificationCounter"),this.stateChangeCallbacks.forEach((e=>e()))}},c(u,"_isPersonal",[r.bind],Object.getOwnPropertyDescriptor(u,"_isPersonal"),u),c(u,"_isGroup",[r.bind],Object.getOwnPropertyDescriptor(u,"_isGroup"),u),c(u,"_processMessage",[r.bind],Object.getOwnPropertyDescriptor(u,"_processMessage"),u),u))
var p=d
e.default=p})),define("discourse/services/presence",["exports","@ember/service","@ember/object","discourse/lib/ajax","@ember/runloop","discourse-common/lib/later","discourse/models/session","rsvp","discourse/models/user","discourse/lib/user-presence","discourse-common/utils/decorators","@ember/object/evented","discourse-common/config/environment","discourse-common/lib/get-url","discourse/lib/implicit-injections"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h){var f,g,b,y,_,v,w,k,x,P,O
function T(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function S(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function j(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PresenceChannelNotFound=void 0
const C=(0,p.isTesting)()?0:500,z=(0,p.isTesting)()?0:1e3,I={userUnseenTime:6e4,browserHiddenTime:1e4}
function E(){const e={}
return e.promise=new l.Promise(((t,i)=>{e.resolve=t,e.reject=i})),e}class M extends Error{}e.PresenceChannelNotFound=M
let D=(f=(0,i.computed)("_presenceState.users","subscribed"),g=(0,i.computed)("_presenceState.count","subscribed"),b=(0,i.computed)("_presenceState.count","subscribed"),y=class extends(i.default.extend(d.default)){init(e){let{name:t,presenceService:i}=e
super.init(...arguments),this.name=t,this.presenceService=i,this.set("present",!1),this.set("subscribed",!1)}async enter(){let{onlyWhileActive:e=!0,activeOptions:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
if(e&&t){for(const i in I)if(t[i]<I[i])throw`${i} cannot be less than ${I[i]} (given ${t[i]})`}else e&&!t&&(t=I)
this.setProperties({activeOptions:t}),this.present||(this.set("present",!0),await this.presenceService._enter(this))}async leave(){this.present&&(this.set("present",!1),await this.presenceService._leave(this))}async subscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null
if(this.subscribed)return
const t=await this.presenceService._subscribe(this,e)
this.set("subscribed",!0),this.set("_presenceState",t),this._publishChange(),t.on("change",this._publishChange)}async unsubscribe(){this.subscribed&&(await this.presenceService._unsubscribe(this),this.set("subscribed",!1),this._presenceState.off("change",this._publishChange),this.set("_presenceState",null),this._publishChange())}_publishChange(){this.trigger("change",this)}get users(){if(this.subscribed)return this._presenceState?.users}get count(){if(this.subscribed)return this._presenceState?.count}get countOnly(){if(this.subscribed)return this._presenceState?.countOnly}},j(y.prototype,"_publishChange",[c.bind],Object.getOwnPropertyDescriptor(y.prototype,"_publishChange"),y.prototype),j(y.prototype,"users",[f],Object.getOwnPropertyDescriptor(y.prototype,"users"),y.prototype),j(y.prototype,"count",[g],Object.getOwnPropertyDescriptor(y.prototype,"count"),y.prototype),j(y.prototype,"countOnly",[b],Object.getOwnPropertyDescriptor(y.prototype,"countOnly"),y.prototype),y),N=(_=(0,i.computed)("_subscribedCallback"),v=class extends(i.default.extend(d.default)){init(e){let{name:t,presenceService:i}=e
super.init(...arguments),this.name=t,this.set("users",null),this.set("count",null),this.set("countOnly",null),this.presenceService=i}get subscribed(){return!!this._subscribedCallback}async subscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null
this.subscribed||(e||(e=await this.presenceService._getInitialData(this.name)),this.set("count",e.count),e.users?(this.set("users",e.users),this.set("countOnly",!1)):(this.set("users",null),this.set("countOnly",!0)),this.lastSeenId=e.last_message_id,this.presenceService.messageBus.subscribe(`/presence${this.name}`,this._processMessage,this.lastSeenId),this.set("_subscribedCallback",this._processMessage),this.trigger("change"))}unsubscribe(){this.subscribed&&(this.presenceService.messageBus.unsubscribe(`/presence${this.name}`,this._subscribedCallback),this.set("_subscribedCallback",null),this.set("users",null),this.set("count",null),this.trigger("change"))}async _resubscribe(){this.unsubscribe(),await this.subscribe()}async _processMessage(e,t,i){if(i!==this.lastSeenId+1)return console.log(`PresenceChannel '${this.name}' dropped message (received ${i}, expecting ${this.lastSeenId+1}), resyncing...`),void await this._resubscribe()
if(this.lastSeenId=i,this.countOnly&&void 0!==e.count_delta)this.set("count",this.count+e.count_delta),this.trigger("change")
else{if(this.countOnly||!e.entering_users&&!e.leaving_user_ids)return void await this._resubscribe()
if(e.entering_users){const t=e.entering_users.map((e=>a.default.create(e)))
this.users.addObjects(t)}if(e.leaving_user_ids){const t=new Set(e.leaving_user_ids),i=this.users.filter((e=>t.has(e.id)))
this.users.removeObjects(i)}this.set("count",this.users.length),this.trigger("change")}}},j(v.prototype,"subscribed",[_],Object.getOwnPropertyDescriptor(v.prototype,"subscribed"),v.prototype),j(v.prototype,"_processMessage",[c.bind],Object.getOwnPropertyDescriptor(v.prototype,"_processMessage"),v.prototype),v),L=(0,h.disableImplicitInjections)((k=class extends t.default{constructor(){super(...arguments),T(this,"currentUser",x,this),T(this,"siteSettings",P,this),T(this,"messageBus",O,this),S(this,"_presenceDebounceMs",C)}init(){super.init(...arguments),this._queuedEvents=[],this._presenceChannelStates=new Map,this._presentProxies=new Map,this._subscribedProxies=new Map,this._initialDataRequests=new Map,this.currentUser&&(window.addEventListener("beforeunload",this._beaconLeaveAll),(0,u.onPresenceChange)({...I,callback:this._throttledUpdateServer}))}get _presentChannels(){return new Set(this._presentProxies.keys())}willDestroy(){super.willDestroy(...arguments),window.removeEventListener("beforeunload",this._beaconLeaveAll),(0,u.removeOnPresenceChange)(this._throttledUpdateServer),(0,r.cancel)(this._debounceTimer)}getChannel(e){return D.create({name:e,presenceService:this})}_getInitialData(e){let t=this._initialDataRequests[e]
return t||(t=this._initialDataRequests[e]=E()),(0,r.once)(this,this._makeInitialDataRequest),t.promise}async _makeInitialDataRequest(){if(this._initialDataAjax)return void(0,r.next)(this,(()=>(0,r.once)(this,this._makeInitialDataRequest)))
if(0===Object.keys(this._initialDataRequests).length)return
let e
this._initialDataAjax=(0,n.ajax)("/presence/get",{data:{channels:Object.keys(this._initialDataRequests).slice(0,50)}})
try{e=await this._initialDataAjax}catch(t){throw(0,o.default)(this,this._makeInitialDataRequest,5e3),t}finally{this._initialDataAjax=null}for(const i in e){if(!e.hasOwnProperty(i))continue
const t=e[i]
if(t)this._initialDataRequests[i].resolve(t)
else{const e=new M(`PresenceChannel '${i}' not found`)
this._initialDataRequests[i].reject(e)}delete this._initialDataRequests[i]}}_addPresent(e){let t=this._presentProxies.get(e.name)
return t||(t=new Set,this._presentProxies.set(e.name,t)),t.add(e),t.size}_removePresent(e){let t=this._presentProxies.get(e.name)
return t?.delete(e),0===t?.size&&this._presentProxies.delete(e.name),t?.size||0}_addSubscribed(e){let t=this._subscribedProxies.get(e.name)
return t||(t=new Set,this._subscribedProxies.set(e.name,t)),t.add(e),t.size}_removeSubscribed(e){let t=this._subscribedProxies.get(e.name)
return t?.delete(e),0===t?.size&&this._subscribedProxies.delete(e.name),t?.size||0}async _enter(e){if(!this.currentUser)throw"Must be logged in to enter presence channel"
if(this._addPresent(e)>1)return
const t=E()
this._queuedEvents.push({channel:e.name,type:"enter",promiseProxy:t}),this._scheduleNextUpdate(),await t.promise}async _leave(e){if(!this.currentUser)throw"Must be logged in to leave presence channel"
if(this._removePresent(e)>0)return
const t=E()
this._queuedEvents.push({channel:e.name,type:"leave",promiseProxy:t}),this._scheduleNextUpdate(),await t.promise}async _subscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null
if(this.siteSettings.login_required&&!this.currentUser)throw"Presence is only available to authenticated users on login-required sites"
this._addSubscribed(e)
const i=e.name
let n=this._presenceChannelStates.get(i)
return n||(n=N.create({name:i,presenceService:this}),this._presenceChannelStates.set(i,n),await n.subscribe(t)),n}_unsubscribe(e){if(0===this._removeSubscribed(e)){const t=e.name
this._presenceChannelStates.get(t).unsubscribe(),this._presenceChannelStates.delete(t)}}_beaconLeaveAll(){if((0,p.isTesting)())return
this._dedupQueue()
const e=this._queuedEvents.filter((e=>"leave"===e.type)).map((e=>e.channel))
if(e.push(...this._presentChannels),0===e.length)return
const t=new FormData
t.append("client_id",this.messageBus.clientId),e.forEach((e=>t.append("leave_channels[]",e))),t.append("authenticity_token",s.default.currentProp("csrfToken")),navigator.sendBeacon((0,m.default)("/presence/update"),t)}_dedupQueue(){const e={}
this._queuedEvents.forEach((t=>{e[t.channel]&&e[t.channel].promiseProxy.resolve(t.promiseProxy.promise),e[t.channel]=t})),this._queuedEvents=Object.values(e)}async _updateServer(){this._lastUpdate=new Date,this._updateRunning=!0,this._cancelTimer(),this._dedupQueue()
const e=this._queuedEvents
this._queuedEvents=[]
try{const t=[],i=e.filter((e=>"leave"===e.type)).map((e=>e.channel))
for(const[e,n]of this._presentProxies)Array.from(n).some((e=>!e.activeOptions||(0,u.default)(e.activeOptions)))?t.push(e):i.push(e)
if(0===e.length&&0===t.length)return
const r=await(0,n.ajax)("/presence/update",{data:{client_id:this.messageBus.clientId,present_channels:t,leave_channels:i},type:"POST"})
e.forEach((e=>{!1===r[e.channel]?e.promiseProxy.reject(new M(`PresenceChannel '${e.channel}' not found`)):e.promiseProxy.resolve()})),this._presenceDebounceMs=C}catch(t){if(this._queuedEvents.unshift(...e),429!==t.jqXHR?.status)throw t
{const e=t.jqXHR.responseJSON?.extras?.wait_seconds||10
this._presenceDebounceMs=1e3*e}}finally{this._updateRunning=!1,this._scheduleNextUpdate()}}_throttledUpdateServer(){!this._lastUpdate||new Date-this._lastUpdate>z?this._updateServer():(0,r.throttle)(this,this._updateServer,z,!1)}_cancelTimer(){this._nextUpdateTimer&&((0,r.cancel)(this._nextUpdateTimer),this._nextUpdateTimer=null)}_scheduleNextUpdate(){this._updateRunning||(this._queuedEvents.length>0?(this._cancelTimer(),(0,r.cancel)(this._debounceTimer),this._debounceTimer=(0,r.debounce)(this,this._throttledUpdateServer,this._presenceDebounceMs)):!this._nextUpdateTimer&&this._presentChannels.size>0&&!(0,p.isTesting)()&&(this._nextUpdateTimer=(0,o.default)(this,this._throttledUpdateServer,3e4)))}},x=j(k.prototype,"currentUser",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=j(k.prototype,"siteSettings",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=j(k.prototype,"messageBus",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j(k.prototype,"_beaconLeaveAll",[c.bind],Object.getOwnPropertyDescriptor(k.prototype,"_beaconLeaveAll"),k.prototype),j(k.prototype,"_throttledUpdateServer",[c.bind],Object.getOwnPropertyDescriptor(k.prototype,"_throttledUpdateServer"),k.prototype),w=k))||w
e.default=L})),define("discourse/services/resize-observer",["exports","ember-resize-observer-service/services/resize-observer"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("discourse/services/screen-track",["exports","@ember/service","discourse/lib/ajax","discourse-common/utils/decorators","discourse-common/config/environment","discourse/lib/topic-list-tracker","@ember/runloop"],(function(e,t,i,n,r,o,s){var l,a
function u(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function c(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=[5e3,1e4,2e4,4e4],p=[405,429,500,501,502,503,504]
let m=(l=class extends t.default{constructor(){var e,t,i,n
super(...arguments),e=this,t="appEvents",n=this,(i=a)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0}),u(this,"_consolidatedTimings",[]),u(this,"_lastTick",null),u(this,"_lastScrolled",null),u(this,"_lastFlush",0),u(this,"_timings",{}),u(this,"_totalTimings",{}),u(this,"_topicTime",0),u(this,"_onscreen",[]),u(this,"_readOnscreen",[]),u(this,"_readPosts",{}),u(this,"_inProgress",!1),this.reset()}start(e,t){const i=this._topicId
i&&i!==e&&(this.tick(),this.flush()),this.reset(),this._interval||(this._interval=setInterval((()=>{(0,s.run)((()=>this.tick()))}),1e3),window.addEventListener("scroll",this.scrolled)),this._topicId=e,this._topicController=t}stop(){this._topicId&&(window.removeEventListener("scroll",this.scrolled),this.tick(),this.flush(),this.reset(),this._topicId=null,this._topicController=null,this._interval&&(clearInterval(this._interval),this._interval=null))}setOnscreen(e,t){this._onscreen=e,this._readOnscreen=t}reset(){const e=Date.now()
this._lastTick=e,this._lastScrolled=e,this._lastFlush=0,this._timings={},this._totalTimings={},this._topicTime=0,this._onscreen=[],this._readOnscreen=[],this._readPosts={},this._inProgress=!1}scrolled(){this._lastScrolled=Date.now()}registerAnonCallback(e){this._anonCallback=e}consolidateTimings(e,t,i){let n=this._consolidatedTimings.findIndex((e=>e.topicId===i))
if(n>-1){let i=this._consolidatedTimings[n]
const r=this._consolidatedTimings.length-1
if(n!==r){const e=this._consolidatedTimings[r]
this._consolidatedTimings[r]=i,this._consolidatedTimings[r-1]=e}const o=i.timings
Object.keys(o).forEach((t=>{e[t]&&(o[t]+=e[t])})),i.topicTime+=t,i.timings=Object.assign({},e,i.timings)}else this._consolidatedTimings.push({timings:e,topicTime:t,topicId:i})
const r=parseInt(Object.keys(e).lastObject,10),s=this.highestReadFromCache(i)
return(!s||s<r)&&(0,o.setHighestReadCache)(i,r),this._consolidatedTimings}highestReadFromCache(e){return(0,o.getHighestReadCache)(e)}sendNextConsolidatedTiming(){if(0===this._consolidatedTimings.length)return
if(this._inProgress)return
if(this._blockSendingToServerTill&&this._blockSendingToServerTill>Date.now())return
this._ajaxFailures=this._ajaxFailures||0
const{timings:e,topicTime:t,topicId:n}=this._consolidatedTimings.pop(),r={timings:e,topic_time:t,topic_id:n}
return this._inProgress=!0,(0,i.ajax)("/topics/timings",{data:r,type:"POST",headers:{"X-SILENCE-LOGGER":"true","Discourse-Background":"true"}}).then((()=>{if(this.isDestroying||this.isDestroyed)return
this._ajaxFailures=0
const t=this._topicController
if(t){const i=Object.keys(e).map((e=>parseInt(e,10)))
t.readPosts(n,i)
const r=this.highestReadFromCache(n)
r&&r<=i.lastObject&&(0,o.resetHighestReadCache)(n)}this.appEvents.trigger("topic:timings-sent",r)})).catch((i=>{if(i.jqXHR&&p.includes(i.jqXHR.status)){const i=d[this._ajaxFailures]
this._ajaxFailures+=1,i&&(this._blockSendingToServerTill=Date.now()+i,this.consolidateTimings(e,t,n))}window.console&&window.console.warn&&i.jqXHR&&window.console.warn(`Failed to update topic times for topic ${n} due to ${i.jqXHR.status} error`)})).finally((()=>{this._inProgress=!1,this._lastFlush=0}))}flush(){const e={},t=this._totalTimings,i=this._timings
Object.keys(this._timings).forEach((n=>{const r=i[n]
t[n]=t[n]||0,r>0&&t[n]<36e4&&(t[n]+=r,e[n]=r),i[n]=0}))
const n=parseInt(this._topicId,10)
let o=0
const s=this._topicController,l=s?s.get("model.postStream"):null
this.currentUser&&this.currentUser.get("ignored_users.length")&&l&&l.hasNoFilters&&!l.canAppendMore&&l.posts.lastObject&&l.posts.lastObject.read&&l.gaps&&l.gaps.after[l.posts.lastObject.id]&&l.topic.last_read_post_number!==l.posts.lastObject.post_number+l.get(`gaps.after.${l.posts.lastObject.id}.length`)&&(e[l.posts.lastObject.post_number+l.get(`gaps.after.${l.posts.lastObject.id}.length`)]=1)
const a=Object.keys(e)
a.forEach((e=>{o=Math.max(o,parseInt(e,10))}))
const u=this.session.get("highestSeenByTopic")
if((u[n]||0)<o&&(u[n]=o),this.topicTrackingState.updateSeen(n,o),a.length>0){if(this.currentUser)this.consolidateTimings(e,this._topicTime,n),(0,r.isTesting)()||this.sendNextConsolidatedTiming()
else if(this._anonCallback){const e=this.keyValueStore,t=e.getInt("anon-topic-time")
e.setItem("anon-topic-time",t+this._topicTime)
let i=e.get("anon-topic-ids")
i=i?i.split(",").map((e=>parseInt(e,10))):[],!i.includes(n)&&i.length<5&&(i.push(n),e.setItem("anon-topic-ids",i.join(","))),this._anonCallback()}this._topicTime=0}this._lastFlush=0}tick(){const e=Date.now()
if(e-this._lastScrolled>18e4)return
const t=e-this._lastTick
this._lastFlush+=t,this._lastTick=e
const i=this._totalTimings,n=this._timings,r=1e3*this.siteSettings.flush_timings_secs,o=Object.keys(n).some((e=>n[e]>0&&!i[e]&&!this._readPosts[e]))
!this._inProgress&&(this._lastFlush>r||o)&&this.flush(),this._inProgress||this.sendNextConsolidatedTiming(),this.session.hasFocus&&(this._topicTime+=t,this._onscreen.forEach((e=>n[e]=(n[e]||0)+t)),this._readOnscreen.forEach((e=>{this._readPosts[e]=!0})))}},a=c(l.prototype,"appEvents",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c(l.prototype,"scrolled",[n.bind],Object.getOwnPropertyDescriptor(l.prototype,"scrolled"),l.prototype),l)
e.default=m})),define("discourse/services/search",["exports","@ember/service","discourse/lib/implicit-injections","@glimmer/tracking","@ember/object","discourse/components/search-menu"],(function(e,t,i,n,r,o){var s,l,a,u,c,d
function p(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function m(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function h(e,t,i,n,r){var o={}
return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let f=(0,i.disableImplicitInjections)((l=class extends t.default{constructor(){super(...arguments),p(this,"appEvents",a,this),p(this,"activeGlobalSearchTerm",u,this),p(this,"searchContext",c,this),p(this,"highlightTerm",d,this),m(this,"searchContextEnabled",!1)}get contextType(){return this.searchContext?.type||null}handleResultInsertion(e){if(65===e.keyCode&&document.querySelector("#reply-control.open"))return this.appEvents.trigger("composer:insert-text",document.activeElement.href,{ensureSpace:!0}),this.appEvents.trigger("header:keyboard-trigger",{type:"search"}),document.querySelector("#reply-control.open textarea").focus(),e.stopPropagation(),e.preventDefault(),!1}handleArrowUpOrDown(e){if("ArrowUp"===e.key||"ArrowDown"===e.key){let t=e.target.closest(".search-menu")?e.target:null
if(!t)return
let i,n,r=document.querySelectorAll(".search-menu .results a"),s=document.querySelectorAll(".search-menu .results .search-link")
if(!s.length)return
r.forEach((e=>{e.classList.contains("search-link")&&(i=e),e===t&&(n=i)}))
let l=-1
if(n&&(l=Array.prototype.indexOf.call(s,n)),-1===l&&"ArrowDown"===e.key){(s[0]||r[0]).focus()}else 0===l&&"ArrowUp"===e.key?(0,o.focusSearchInput)():l>-1&&(l+="ArrowDown"===e.key?1:-1,l>=0&&l<s.length&&s[l].focus())
return e.stopPropagation(),e.preventDefault(),!1}}},a=h(l.prototype,"appEvents",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=h(l.prototype,"activeGlobalSearchTerm",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),c=h(l.prototype,"searchContext",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(l.prototype,"highlightTerm",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h(l.prototype,"handleResultInsertion",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"handleResultInsertion"),l.prototype),h(l.prototype,"handleArrowUpOrDown",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"handleArrowUpOrDown"),l.prototype),s=l))||s
e.default=f})),define("discourse/services/site-settings",["exports","discourse/lib/preload-store","@ember-compat/tracked-built-ins"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n{static create(){return new i.TrackedObject(t.default.get("siteSettings"))}}var r,o,s
e.default=n,r=n,s=!0,(o=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(o="isServiceFactory"))in r?Object.defineProperty(r,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[o]=s})),define("discourse/services/store",["exports","@ember/service","@ember/object","rsvp","discourse/models/rest","discourse/models/result-set","discourse/lib/ajax","discourse-common/lib/get-owner","@ember/string"],(function(e,t,i,n,r,o,s,l,a){let u
function c(){u={}}function d(e,t,i){t&&(u[e]=u[e]||{},u[e][t]=i)}function p(e,t){const i=u[e]
i&&i.hasOwnProperty(t)&&delete i[t]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.flushMap=c,c()
var m=t.default.extend({_plurals:{category:"categories","post-reply":"post-replies","post-reply-history":"post_reply_histories",reviewable_history:"reviewable_histories"},init(){this._super(...arguments),this.register=this.register||(0,l.getRegister)(this)},pluralize(e){return this._plurals[e]||e+"s"},addPluralization(e,t){this._plurals[e]=t},findAll(e,t){const i=this.adapterFor(e)
let n=this
return i.findAll(this,e,t).then((t=>{let r=this._resultSet(e,t)
return i.afterFindAll&&(r=i.afterFindAll(r,{lookup:(i,r)=>n._lookupSubType(i,e,r,t)})),r}))},findFiltered(e,t){return this.adapterFor(e).find(this,e,t).then((t=>this._build(e,t)))},_hydrateFindResults(e,t,i){if("object"==typeof i)return this._resultSet(t,e,i)
{const i=this.adapterFor(t).apiNameFor(t)
return this._hydrate(t,e[(0,a.underscore)(i)],e)}},findStale(e,t,i){const n=this.adapterFor(e).findStale(this,e,t,i)
return{hasResults:void 0!==n,results:n,refresh:()=>this.find(e,t,i)}},find(e,t,i){let n=this.adapterFor(e)
return n.find(this,e,t,i).then((r=>{let o=this._hydrateFindResults(r,e,t,i)
if(r.extras&&o.set("extras",r.extras),n.cache){const r=n.findStale(this,e,t,i)
o=this._updateStale(r,o,n.primaryKey),n.cacheFind(this,e,t,i,o)}return o}))},_updateStale:(e,t,i)=>e?(t.set("content",t.get("content").map((t=>{let n=e.content.findBy(i,t.get(i))
if(n)for(const[e,i]of Object.entries(Object.getOwnPropertyDescriptors(n)))i.writable&&i.enumerable&&n.set(e,i.value)
else n=t
return n}))),t):t,refreshResults(e,t,i){const n=this.adapterFor(t)
return(0,s.ajax)(i).then((i=>{const r=(0,a.underscore)(this.pluralize(n.apiNameFor(t))),o=i[r].map((e=>this._hydrate(t,e,i)))
e.set("content",o)}))},appendResults(e,t,i){const n=this.adapterFor(t)
return(0,s.ajax)(i).then((i=>{const r=(0,a.underscore)(this.pluralize(n.apiNameFor(t)))
let o=i.meta||i,s=o["total_rows_"+r]||e.get("totalRows"),l=o["load_more_"+r],u=i[r].map((e=>this._hydrate(t,e,i)))
e.setProperties({totalRows:s,loadMoreUrl:l}),e.get("content").pushObjects(u),e.get("length")>=s&&e.set("loadMoreUrl",null)}))},update(e,t,i){const n=this.adapterFor(e)
return n.update(this,e,t,i,(function(i){if(i&&i[e]&&i[e][n.primaryKey]){const r=function(e,t){const i=u[e]
if(i&&i.hasOwnProperty(t)){const e=i[t]
return delete i[t],e}}(e,t)
d(e,i[e][n.primaryKey],r)}return i}))},createRecord(e,t){return(t=t||{})[this.adapterFor(e).primaryKey]?this._hydrate(e,t):this._build(e,t)},destroyRecord(e,t){const i=this.adapterFor(e)
return t.get("isNew")?(p(e,t.get(i.primaryKey)),n.Promise.resolve(!0)):i.destroyRecord(this,e,t).then((function(n){return p(e,t.get(i.primaryKey)),n}))},_resultSet(e,t,i){const n=this.adapterFor(e),r=(0,a.underscore)(this.pluralize(n.apiNameFor(e)))
if(!t[r])return void console.error(`JSON response is missing \`${r}\` key`,t)
const s=t[r].map((i=>this._hydrate(e,i,t)))
let l=t.meta||t
const u={content:s,findArgs:i,totalRows:l["total_rows_"+r]||s.length,loadMoreUrl:l["load_more_"+r],refreshUrl:l["refresh_"+r],resultSetMeta:t.meta,store:this,__type:e}
return t.extras&&(u.extras=t.extras),o.default.create(u)},_build(e,t){const i=this.adapterFor(e)
t.store=this,t.__type=e,t.__state=t[i.primaryKey]?"created":"new",t.topicTrackingState=this.register.lookup("service:topic-tracking-state"),t.keyValueStore=this.register.lookup("service:key-value-store")
const n=(this.register.lookupFactory("model:"+e)||r.default).create(t)
return d(e,t[i.primaryKey],n),n},adapterFor(e){return this.register.lookup("adapter:"+e)||this.register.lookup("adapter:rest")},_lookupSubType(e,t,i,n){n.meta&&n.meta.types&&(e=n.meta.types[e]||e)
const r=this.adapterFor(e),o=this.pluralize(e),s=n[this.pluralize(e)]
if(s){const t="__hashed_"+o
let l=n[t]
l||(l={},s.forEach((function(e){l[e[r.primaryKey]]=e})),n[t]=l)
const a=l[i]
if(a){const t=this._hydrate(e,a,n)
return l[i]=t,t}}},_hydrateEmbedded(e,t,n){const r=this.adapterFor(e)
Object.keys(t).forEach((o=>{if(o===r.primaryKey)return
const s=/(.+)\_id(s?)$/.exec(o)
if(s){const r=s[1]
if(s[2]){const i=t[o].map((t=>this._lookupSubType(r,e,t,n)))
t[this.pluralize(r)]=i||[],delete t[o]}else{const s=this._lookupSubType(r,e,t[o],n)
s?(t[r]=s,delete t[o]):(0,i.set)(t,r,null)}}}))},_hydrate(e,t,i){if(!t)throw new Error("Can't hydrate "+e+" of `null`")
const n=this.adapterFor(e),o=t[n.primaryKey]
if(!o)throw new Error(`Can't hydrate ${e} without primaryKey: \`${n.primaryKey}\``)
"1"===(i=i||t).__rest_serializer&&this._hydrateEmbedded(e,t,i)
const s=function(e,t){const i=u[e]
if(i&&i.hasOwnProperty(t))return i[t]}(e,o)
if(s===t)return s
if(s){delete t[n.primaryKey]
let i=this.register.lookupFactory("model:"+e)
return i&&i.class&&(i=i.class),i||(i=r.default),s.setProperties(i.munge(t)),t[n.primaryKey]=o,s}return this._build(e,t)}})
e.default=m})),define("discourse/services/user-status",["exports","@ember/service","discourse/lib/ajax","discourse/lib/do-not-disturb"],(function(e,t,i,n){var r,o,s,l,a
function u(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
return i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let d=(s=new WeakSet,l=new WeakSet,a=new WeakSet,r=class extends t.default{constructor(){var e,t,i,n
super(...arguments),u(this,a),u(this,l),u(this,s),e=this,t="appEvents",n=this,(i=o)&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}async set(e,t){await(0,i.ajax)({url:"/user-status.json",type:"PUT",data:e}),this.currentUser.set("status",e),t?c(this,s,y).call(this,e.ends_at):c(this,l,_).call(this)}async clear(){await(0,i.ajax)({url:"/user-status.json",type:"DELETE"}),this.currentUser.set("status",null),c(this,l,_).call(this)}},p=r.prototype,m="appEvents",h=[t.inject],f={configurable:!0,enumerable:!0,writable:!0,initializer:null},b={},Object.keys(f).forEach((function(e){b[e]=f[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=h.slice().reverse().reduce((function(e,t){return t(p,m,e)||e}),b),g&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(g):void 0,b.initializer=void 0),void 0===b.initializer&&(Object.defineProperty(p,m,b),b=null),o=b,r)
var p,m,h,f,g,b
function y(e){const t=c(this,a,v).call(this,e??n.default.forever)
this.currentUser.enterDoNotDisturbFor(t)}function _(){this.currentUser.isInDoNotDisturb()&&this.currentUser.leaveDoNotDisturb()}function v(e){return moment.utc(e).diff(moment.utc(),"minutes")}e.default=d})),define("discourse/templates/about",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"/C4WNdcC",block:'[[[8,[39,0],null,[["@pageClass"],["about"]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"container"],[12],[1,"\\n    "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n\\n      "],[10,"ul"],[14,0,"nav-pills"],[12],[1,"\\n        "],[10,"li"],[14,0,"nav-item-about"],[12],[8,[39,1],[[24,0,"active"]],[["@route"],["about"]],[["default"],[[[[1,[28,[35,2],["about.simple_title"],null]]],[]]]]],[13],[1,"\\n"],[41,[30,0,["faqOverridden"]],[[[1,"          "],[10,"li"],[14,0,"nav-item-guidelines"],[12],[8,[39,1],null,[["@route"],["guidelines"]],[["default"],[[[[1,[28,[35,2],["guidelines"],null]]],[]]]]],[13],[1,"\\n          "],[10,"li"],[14,0,"nav-item-faq"],[12],[8,[39,1],null,[["@route"],["faq"]],[["default"],[[[[1,[28,[35,2],["faq"],null]]],[]]]]],[13],[1,"\\n"]],[]],[[[1,"          "],[10,"li"],[14,0,"nav-item-faq"],[12],[8,[39,1],null,[["@route"],["faq"]],[["default"],[[[[1,[28,[35,2],["faq"],null]]],[]]]]],[13],[1,"\\n"]],[]]],[41,[30,0,["site","tos_url"]],[[[1,"          "],[10,"li"],[14,0,"nav-item-tos"],[12],[8,[39,1],null,[["@route"],["tos"]],[["default"],[[[[1,[28,[35,2],["tos"],null]]],[]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["site","privacy_policy_url"]],[[[1,"          "],[10,"li"],[14,0,"nav-item-privacy"],[12],[8,[39,1],null,[["@route"],["privacy"]],[["default"],[[[[1,[28,[35,2],["privacy"],null]]],[]]]]],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n\\n      "],[10,"section"],[14,0,"about description"],[12],[1,"\\n        "],[10,"h2"],[12],[1,[28,[35,2],["about.title"],[["title"],[[30,0,["model","title"]]]]]],[13],[1,"\\n        "],[10,2],[12],[1,[30,0,["model","description"]]],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["about-after-description","section",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["model","admins"]],[[[1,"        "],[10,"section"],[14,0,"about admins"],[12],[1,"\\n          "],[10,"h3"],[12],[1,[28,[35,6],["users"],null]],[1," "],[1,[28,[35,2],["about.our_admins"],null]],[13],[1,"\\n\\n          "],[8,[39,7],null,[["@users"],[[30,0,["model","admins"]]]],null],[1,"\\n          "],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["about-after-admins","section",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["model","moderators"]],[[[1,"        "],[10,"section"],[14,0,"about moderators"],[12],[1,"\\n          "],[10,"h3"],[12],[1,[28,[35,6],["users"],null]],[1," "],[1,[28,[35,2],["about.our_moderators"],null]],[13],[1,"\\n\\n          "],[10,0],[14,0,"users"],[12],[1,"\\n            "],[8,[39,7],null,[["@users"],[[30,0,["model","moderators"]]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["about-after-moderators","section",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["model","category_moderators","length"]],[[[42,[28,[37,9],[[28,[37,9],[[30,0,["model","category_moderators"]]],null]],null],null,[[[1,"          "],[10,"section"],[15,0,[29,["about category-moderators moderators-",[30,1,["category","slug"]]]]],[12],[1,"\\n            "],[10,"h3"],[12],[1,[28,[35,10],[[30,1,["category"]]],null]],[1,[28,[35,2],["about.moderators"],null]],[13],[1,"\\n            "],[10,0],[14,0,"users"],[12],[1,"\\n              "],[8,[39,7],null,[["@users"],[[30,1,["moderators"]]]],null],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n          "],[13],[1,"\\n"]],[1]],null]],[]],null],[41,[30,0,["model","can_see_about_stats"]],[[[1,"        "],[10,"section"],[14,0,"about stats"],[12],[1,"\\n          "],[10,"h3"],[12],[1,[28,[35,6],["far-chart-bar"],null]],[1," "],[1,[28,[35,2],["about.stats"],null]],[13],[1,"\\n\\n          "],[10,"table"],[14,0,"table"],[12],[1,"\\n            "],[10,"tbody"],[12],[1,"\\n              "],[10,"tr"],[12],[1,"\\n                "],[10,"th"],[12],[1," "],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,2],["about.stat.last_day"],null]],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,2],["about.stat.last_7_days"],null]],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,2],["about.stat.last_30_days"],null]],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,2],["about.stat.all_time"],null]],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tr"],[14,0,"about-topic-count"],[12],[1,"\\n                "],[10,"td"],[14,0,"title"],[12],[1,[28,[35,2],["about.topic_count"],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","topics_last_day"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","topics_7_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","topics_30_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","topic_count"]]],null]],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tr"],[14,0,"about-post-count"],[12],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,2],["about.post_count"],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","posts_last_day"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","posts_7_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","posts_30_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","post_count"]]],null]],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tr"],[14,0,"about-user-count"],[12],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,2],["about.user_count"],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","users_last_day"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","users_7_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","users_30_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","user_count"]]],null]],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tr"],[14,0,"about-active-user-count"],[12],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,2],["about.active_user_count"],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","active_users_last_day"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","active_users_7_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","active_users_30_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,"—"],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tr"],[14,0,"about-like-count"],[12],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,2],["about.like_count"],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","likes_last_day"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","likes_7_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","likes_30_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","like_count"]]],null]],[13],[1,"\\n              "],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["site","displayed_about_plugin_stat_groups"]]],null]],null],null,[[[1,"                "],[10,"tr"],[15,0,[28,[37,12],["about-",[30,2],"-count"],null]],[12],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,2],[[28,[37,12],["about.",[30,2],"_count"],null]],null]],[13],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,11],[[28,[37,13],[[30,0,["model","stats"]],[28,[37,12],[[30,2],"_last_day"],null]],null]],null]],[13],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,11],[[28,[37,13],[[30,0,["model","stats"]],[28,[37,12],[[30,2],"_7_days"],null]],null]],null]],[13],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,11],[[28,[37,13],[[30,0,["model","stats"]],[28,[37,12],[[30,2],"_30_days"],null]],null]],null]],[13],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,11],[[28,[37,13],[[30,0,["model","stats"]],[28,[37,12],[[30,2],"_count"],null]],null]],null]],[13],[1,"\\n                "],[13],[1,"\\n"]],[2]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["contactInfo"]],[[[1,"        "],[10,"section"],[14,0,"about contact"],[12],[1,"\\n          "],[10,"h3"],[12],[1,[28,[35,6],["envelope"],null]],[1," "],[1,[28,[35,2],["about.contact"],null]],[13],[1,"\\n          "],[10,2],[12],[1,[28,[35,14],[[30,0,["contactInfo"]]],null]],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["cm","statGroupName"],false,["d-section","link-to","i18n","if","plugin-outlet","hash","d-icon","about-page-users","each","-track-array","category-link","number","concat","get","html-safe"]]',moduleName:"discourse/templates/about.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/account-created",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"VPE1a6+E",block:'[[[10,0],[14,1,"simple-container"],[12],[1,"\\n  "],[10,0],[14,0,"account-created"],[12],[1,"\\n    "],[46,[28,[37,1],null,null],null,null,null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["component","-outlet"]]',moduleName:"discourse/templates/account-created.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/account-created/edit-email",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"5CNx4TDw",block:'[[[10,0],[14,0,"ac-message"],[12],[1,"\\n  "],[8,[39,0],null,[["@email"],[[30,0,["newEmail"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"activation-controls"],[12],[1,"\\n  "],[8,[39,1],null,[["@action","@label","@disabled","@class"],[[28,[37,2],[[30,0],"changeEmail"],null],"login.submit_new_email",[30,0,["submitDisabled"]],"btn-primary"]],null],[1,"\\n  "],[8,[39,1],null,[["@action","@label","@class"],[[28,[37,2],[[30,0],"cancel"],null],"cancel","edit-cancel"]],null],[1,"\\n"],[13]],[],false,["activation-email-form","d-button","action"]]',moduleName:"discourse/templates/account-created/edit-email.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/account-created/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"MBXTlZCB",block:'[[[10,0],[14,0,"container invites-show"],[12],[1,"\\n  "],[10,0],[14,0,"login-welcome-header"],[12],[1,"\\n    "],[10,"h1"],[14,0,"login-title"],[12],[1,[30,0,["welcomeTitle"]]],[13],[1,"\\n    "],[10,"img"],[15,"src",[30,0,["wavingHandURL"]]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"ac-page"],[12],[1,"\\n    "],[10,0],[14,0,"two-col"],[12],[1,"\\n      "],[10,0],[14,0,"col-image"],[12],[1,"\\n        "],[10,"img"],[15,"src",[30,0,["envelopeImageUrl"]]],[15,"alt",[28,[37,0],["invites.emoji"],null]],[12],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"col-form"],[12],[1,"\\n        "],[10,0],[14,0,"success-info"],[12],[1,"\\n          "],[1,[28,[35,1],[[30,0,["accountCreated","message"]]],null]],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["accountCreated","show_controls"]],[[[1,"          "],[8,[39,3],null,[["@sendActivationEmail","@editActivationEmail"],[[28,[37,4],[[30,0],"sendActivationEmail"],null],[28,[37,4],[[30,0],"editActivationEmail"],null]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe","if","activation-controls","action"]]',moduleName:"discourse/templates/account-created/index.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/account-created/resent",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"7iSEQUMF",block:'[[[10,0],[14,0,"ac-message"],[12],[1,"\\n"],[41,[30,0,["email"]],[[[1,"    "],[1,[28,[35,1],[[28,[37,2],["login.sent_activation_email_again"],[["currentEmail"],[[30,0,["email"]]]]]],null]],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,2],["login.sent_activation_email_again_generic"],null]],[1,"\\n"]],[]]],[13]],[],false,["if","html-safe","i18n"]]',moduleName:"discourse/templates/account-created/resent.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/application",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"qcZiDvR3",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[10,3],[14,6,"#main-container"],[14,1,"skip-link"],[12],[1,[28,[35,1],["skip_to_main_content"],null]],[13],[1,"\\n  "],[8,[39,2],null,null,null],[1,"\\n  "],[8,[39,3],null,null,null],[1,"\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["above-site-header","div",[28,[37,5],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["showSiteHeader"]],[[[1,"    "],[8,[39,7],null,[["@canSignUp","@showCreateAccount","@showLogin","@showKeyboard","@toggleMobileView","@toggleAnonymous","@logout","@sidebarEnabled","@navigationMenuQueryParamOverride","@showSidebar","@toggleSidebar"],[[30,0,["canSignUp"]],[28,[37,8],["showCreateAccount"],null],[28,[37,8],["showLogin"],null],[28,[37,8],["showKeyboardShortcutsHelp"],null],[28,[37,8],["toggleMobileView"],null],[28,[37,8],["toggleAnonymous"],null],[28,[37,8],["logout"],null],[30,0,["sidebarEnabled"]],[30,0,["navigationMenuQueryParamOverride"]],[30,0,["showSidebar"]],[28,[37,9],[[30,0],"toggleSidebar"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,10],null,null,null],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_offline_indicator"]],[[[1,"    "],[8,[39,11],null,null,null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["below-site-header","div",[28,[37,5],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n\\n  "],[10,0],[14,1,"main-outlet-wrapper"],[14,0,"wrap"],[14,"role","main"],[12],[1,"\\n\\n    "],[10,0],[14,0,"sidebar-wrapper"],[12],[1,"\\n"],[41,[28,[37,12],[[30,0,["sidebarEnabled"]],[30,0,["showSidebar"]]],null],[[[1,"        "],[8,[39,13],null,[["@toggleSidebar"],[[28,[37,9],[[30,0],"toggleSidebar"],null]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[8,[39,14],null,null,null],[1,"\\n\\n    "],[8,[39,4],null,[["@name"],["before-main-outlet"]],null],[1,"\\n\\n    "],[10,0],[14,1,"main-outlet"],[12],[1,"\\n      "],[8,[39,4],null,[["@name","@connectorTagName"],["above-main-container","div"]],null],[1,"\\n      "],[10,0],[14,0,"container"],[14,1,"main-container"],[12],[1,"\\n"],[41,[30,0,["showTop"]],[[[1,"          "],[8,[39,15],null,[["@name"],["top"]],null],[1,"\\n"]],[]],null],[1,"        "],[8,[39,16],null,null,null],[1,"\\n        "],[8,[39,17],null,null,null],[1,"\\n        "],[8,[39,18],null,null,null],[1,"\\n        "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["top-notices","div",[28,[37,5],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[46,[28,[37,20],null,null],null,null,null],[1,"\\n\\n      "],[8,[39,21],null,null,null],[1,"\\n      "],[8,[39,4],null,[["@name","@outletArgs"],["main-outlet-bottom",[28,[37,5],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@name"],["after-main-outlet"]],null],[1,"\\n\\n  "],[13],[1,"\\n\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["above-footer","div",[28,[37,5],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n"],[41,[30,0,["showFooter"]],[[[1,"    "],[8,[39,15],null,[["@name","@triggerAppEvent","@classNames"],["footer","true","custom-footer-content"]],null],[1,"\\n"]],[]],null],[1,"  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["below-footer","div",[28,[37,5],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n\\n  "],[8,[39,22],null,null,null],[1,"\\n  "],[8,[39,23],null,null,null],[1,"\\n  "],[8,[39,24],null,null,null],[1,"\\n  "],[8,[39,25],null,null,null],[1,"\\n\\n"],[41,[30,0,["showFooterNav"]],[[[1,"    "],[8,[39,26],null,null,null],[1,"\\n"]],[]],null]],[]]]]]],[],false,["discourse-root","i18n","d-document","page-loading-slider","plugin-outlet","hash","if","site-header","route-action","action","software-update-prompt","offline-indicator","and","sidebar","loading-slider-fallback-spinner","custom-html","notification-consent-banner","pwa-install-banner","global-notice","component","-outlet","card-container","modal-container","dialog-holder","topic-entrance","composer-container","footer-nav"]]',moduleName:"discourse/templates/application.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/badge-selector-autocomplete",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"      <li><a href>"+e.escapeExpression(o(i,"get").call(null!=t?t:e.nullContext||{},"option.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:18},end:{line:4,column:33}}}))+"</a></li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return"<div class='autocomplete ac-badge'>\n  <ul>\n"+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))?o:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("badge-selector-autocomplete",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/badges/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"P/6gpGL+",block:'[[[8,[39,0],null,[["@pageClass"],["badges"]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"container badges"],[12],[1,"\\n    "],[10,"h1"],[12],[1,[28,[35,1],["badges.title"],null]],[13],[1,"\\n\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,2],null,[["@name","@connectorTagName"],["below-badges-title","div"]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"badge-groups"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["badgeGroups"]]],null]],null],null,[[[1,"        "],[10,0],[14,0,"badge-grouping"],[12],[1,"\\n          "],[10,0],[14,0,"title"],[12],[1,"\\n            "],[10,"h2"],[12],[1,[30,1,["badgeGrouping","displayName"]]],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,1,["badges"]]],null]],null],null,[[[1,"              "],[8,[39,5],null,[["@badge","@username"],[[30,2],[30,0,["currentUser","username"]]]],null],[1,"\\n"]],[2]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["bg","b"],false,["d-section","i18n","plugin-outlet","each","-track-array","badge-card"]]',moduleName:"discourse/templates/badges/index.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/badges/show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"c/75APXe",block:'[[[10,0],[15,0,[29,["container show-badge ",[30,0,["model","slug"]]]]],[12],[1,"\\n  "],[10,"h1"],[12],[1,"\\n    "],[8,[39,0],null,[["@route"],["badges.index"]],[["default"],[[[[1,[28,[35,1],["badges.title"],null]]],[]]]]],[1,"\\n    /\\n    "],[1,[30,0,["model","name"]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"show-badge-details"],[12],[1,"\\n    "],[8,[39,2],null,[["@badge","@size","@count"],[[30,0,["model"]],"large",[30,0,["userBadges","grant_count"]]]],null],[1,"\\n    "],[10,0],[15,0,[29,["badge-grant-info ",[52,[30,0,["hiddenSetTitle"]],"","hidden"]]]],[12],[1,"\\n      "],[10,0],[12],[1,"\\n"],[41,[30,0,["canSelectTitle"]],[[[1,"          "],[10,0],[14,0,"grant-info-item"],[12],[1,"\\n            "],[1,[28,[35,1],["badges.allow_title"],null]],[1,"\\n            "],[8,[39,4],null,[["@class","@action","@icon"],["btn-default pad-left",[28,[37,5],[[30,0],"toggleSetUserTitle"],null],"pencil-alt"]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","multiple_grant"]],[[[1,"          "],[10,0],[14,0,"grant-info-item"],[12],[1,"\\n            "],[1,[28,[35,1],["badges.multiple_grant"],null]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["canSelectTitle"]],[[[1,"      "],[10,0],[15,0,[29,["badge-set-title ",[52,[30,0,["hiddenSetTitle"]],"hidden",""]]]],[12],[1,"\\n        "],[8,[39,6],null,[["@selectableUserBadges"],[[30,0,["selectableUserBadges"]]]],null],[1,"\\n        "],[8,[39,4],null,[["@class","@action","@label"],["btn-default close-btn",[28,[37,5],[[30,0],"toggleSetUserTitle"],null],"close"]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["userBadges"]],[[[1,"    "],[10,0],[15,0,[29,["user-badges ",[30,0,["model","slug"]]]]],[12],[1,"\\n      "],[8,[39,7],null,[["@selector","@action"],[".badge-info",[28,[37,5],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"badges-granted"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["userBadges"]]],null]],null],null,[[[1,"            "],[8,[39,10],null,[["@user","@size","@class","@date"],[[30,1,["user"]],"medium","badge-info",[30,1,["granted_at"]]]],[["default"],[[[[1,"\\n              "],[10,0],[14,0,"granted-on"],[12],[1,[28,[35,1],["badges.granted_on"],[["date"],[[28,[37,11],[[30,1,["granted_at"]]],null]]]]],[13],[1,"\\n"],[41,[30,1,["post_number"]],[[[1,"                "],[10,3],[14,0,"post-link"],[15,6,[29,[[30,1,["topic","url"]],"/",[30,1,["post_number"]]]]],[12],[1,[28,[35,12],[[30,1,["topic","fancyTitle"]]],null]],[13],[1,"\\n"]],[]],null],[1,"            "]],[]]]]],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n"],[41,[51,[30,0,["canLoadMore"]]],[[[41,[30,0,["canShowOthers"]],[[[1,"          "],[10,0],[12],[1,"\\n            "],[10,3],[14,1,"show-others-with-badge-link"],[15,6,[30,0,["model","url"]]],[14,0,"btn btn-default"],[12],[1,[28,[35,1],["badges.others_count"],[["count"],[[30,0,["othersCount"]]]]]],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[8,[39,14],null,[["@condition"],[[30,0,["canLoadMore"]]]],null],[1,"\\n"]],[]],null],[13]],["ub"],false,["link-to","i18n","badge-card","if","d-button","action","badge-title","load-more","each","-track-array","user-info","inline-date","html-safe","unless","conditional-loading-spinner"]]',moduleName:"discourse/templates/badges/show.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/bulk-tag",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"2R3Q9Gnl",block:'[[[10,2],[12],[1,[28,[35,0],[[28,[37,1],["topics.bulk.",[30,0,["title"]]],null]],null]],[13],[1,"\\n\\n"],[10,2],[12],[8,[39,2],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,0,["categoryId"]]]],null],[13],[1,"\\n\\n"],[8,[39,3],null,[["@action","@disabled","@label"],[[28,[37,4],[[30,0],[30,0,["action"]]],null],[30,0,["emptyTags"]],[28,[37,1],["topics.bulk.",[30,0,["label"]]],null]]],null]],[],false,["i18n","concat","tag-chooser","d-button","action"]]',moduleName:"discourse/templates/bulk-tag.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/category-selector-autocomplete",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"      <li><a href>"+e.escapeExpression((o(i,"category-link")||t&&o(t,"category-link")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"option",{name:"category-link",hash:{link:"false",allowUncategorized:"true"},hashTypes:{link:"StringLiteral",allowUncategorized:"StringLiteral"},hashContexts:{link:t,allowUncategorized:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:18},end:{line:4,column:81}}}))+"</a></li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return"<div class='autocomplete ac-category'>\n  <ul>\n"+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))?o:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("category-selector-autocomplete",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/category-tag-autocomplete",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o
return"      <li>\n"+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"option.model",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,r,0),inverse:e.program(4,r,0),types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:5,column:8},end:{line:9,column:15}}}))?o:"")+"      </li>\n"},2:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"          <a href>"+e.escapeExpression((o(i,"category-link")||t&&o(t,"category-link")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"option.model",{name:"category-link",hash:{link:"false",allowUncategorized:"true"},hashTypes:{link:"StringLiteral",allowUncategorized:"StringLiteral"},hashContexts:{link:t,allowUncategorized:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:18},end:{line:6,column:87}}}))+"</a>\n"},4:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"          <a href>"+s((l(i,"d-icon")||t&&l(t,"d-icon")||e.hooks.helperMissing).call(o,"tag",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:8,column:18},end:{line:8,column:34}}}))+s(l(i,"get").call(o,"option.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:8,column:34},end:{line:8,column:49}}}))+" x "+s(l(i,"get").call(o,"option.count",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:8,column:52},end:{line:8,column:68}}}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return"<div class='autocomplete ac-category-or-tag'>\n  <ul>\n"+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:3,column:4},end:{line:11,column:13}}}))?o:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("category-tag-autocomplete",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/composer/dominating-topic",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"oam2ZpB7",block:'[[[11,3],[24,6,""],[24,0,"close"],[16,"aria-label",[28,[37,0],["composer.esc_label"],null]],[4,[38,1],["click",[28,[37,2],[[30,0,["closeMessage"]],[30,0,["message"]]],null]],null],[12],[1,"\\n  "],[1,[28,[35,0],["composer.esc"],null]],[1,"\\n  "],[1,[28,[35,3],["times"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[1,[28,[35,4],[[30,0,["message","body"]]],null]],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1,"  "],[8,[39,6],null,[["@class","@label","@icon","@action"],["btn-primary","footer_nav.share","link",[28,[37,7],[[30,0],[30,0,["shareModal"]]],null]]],null],[1,"\\n"]],[]],null]],[],false,["i18n","on","fn","d-icon","html-safe","if","d-button","action"]]',moduleName:"discourse/templates/composer/dominating-topic.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/composer/education",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"bAqcaeAT",block:'[[[11,3],[24,6,""],[24,0,"close"],[16,"aria-label",[28,[37,0],["composer.esc_label"],null]],[4,[38,1],["click",[28,[37,2],[[30,0,["closeMessage"]],[30,0,["message"]]],null]],null],[12],[1,"\\n  "],[1,[28,[35,0],["composer.esc"],null]],[1,"\\n  "],[1,[28,[35,3],["times"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["message","title"]],[[[1,"  "],[10,"h3"],[12],[1,[30,0,["message","title"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,5],[[30,0,["message","body"]]],null]]],[],false,["i18n","on","fn","d-icon","if","html-safe"]]',moduleName:"discourse/templates/composer/education.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/composer/get-a-room",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"V7z4nxAG",block:'[[[11,3],[24,6,""],[24,0,"close"],[16,"aria-label",[28,[37,0],["composer.esc_label"],null]],[4,[38,1],["click",[28,[37,2],[[30,0,["closeMessage"]],[30,0,["message"]]],null]],null],[12],[1,"\\n  "],[1,[28,[35,0],["composer.esc"],null]],[1,"\\n  "],[1,[28,[35,3],["times"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[1,[28,[35,4],[[30,0,["message","body"]]],null]],[1,"\\n\\n"],[8,[39,5],null,[["@class","@label","@icon","@action"],["btn-primary","user.private_message","envelope",[28,[37,6],[[30,0],[30,0,["switchPM"]],[30,0,["message"]]],null]]],null]],[],false,["i18n","on","fn","d-icon","html-safe","d-button","action"]]',moduleName:"discourse/templates/composer/get-a-room.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/composer/group-mentioned",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"+lMHyp51",block:'[[[11,3],[24,6,""],[24,0,"close"],[16,"aria-label",[28,[37,0],["composer.esc_label"],null]],[4,[38,1],["click",[28,[37,2],[[30,0,["closeMessage"]],[30,0,["message"]]],null]],null],[12],[1,"\\n  "],[1,[28,[35,0],["composer.esc"],null]],[1,"\\n  "],[1,[28,[35,3],["times"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[1,[28,[35,4],[[30,0,["message","body"]]],null]]],[],false,["i18n","on","fn","d-icon","html-safe"]]',moduleName:"discourse/templates/composer/group-mentioned.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/composer/similar-topics",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"u+nrBGG8",block:'[[[11,3],[24,6,""],[24,0,"close"],[16,"aria-label",[28,[37,0],["composer.esc_label"],null]],[4,[38,1],["click",[28,[37,2],[[30,0,["closeMessage"]],[30,0,["message"]]],null]],null],[12],[1,"\\n  "],[1,[28,[35,0],["composer.esc"],null]],[1,"\\n  "],[1,[28,[35,3],["times"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"h3"],[12],[1,[28,[35,0],["composer.similar_topics"],null]],[13],[1,"\\n\\n"],[10,"ul"],[14,0,"topics"],[12],[1,"\\n  "],[8,[39,4],null,[["@widget","@args"],["search-result-topic",[28,[37,5],null,[["results"],[[30,0,["message","similarTopics"]]]]]]],null],[1,"\\n"],[13]],[],false,["i18n","on","fn","d-icon","mount-widget","hash"]]',moduleName:"discourse/templates/composer/similar-topics.hbs",isStrictMode:!1})
e.default=i}))
define("discourse/templates/d-section",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"uFxI6C4I",block:'[[[10,"section"],[12],[18,1,null],[13]],["&default"],false,["yield"]]',moduleName:"discourse/templates/d-section.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/discovery",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"uzyMnL6W",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n  "],[8,[39,0],null,[["@user","@banner"],[[30,0,["currentUser"]],[30,0,["site","banner"]]]],null],[1,"\\n"],[41,[51,[30,0,["viewingCategoriesList"]]],[[[1,"    "],[8,[39,2],null,[["@category","@readOnly"],[[30,0,["category"]],[30,0,["navigationCategory","cannotCreateTopicOnCategory"]]]],null],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,3],null,[["@name","@connectorTagName"],["discovery-list-controls-above","div"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"list-controls"],[12],[1,"\\n  "],[8,[39,3],null,[["@name","@connectorTagName"],["discovery-navigation-bar-above","div"]],null],[1,"\\n  "],[10,0],[14,0,"container"],[12],[1,"\\n    "],[46,[28,[37,5],["navigation-bar"],null],null,null,null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,6],null,[["@condition"],[[30,0,["showLoadingSpinner"]]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,3],null,[["@name","@connectorTagName"],["discovery-above","div"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[15,0,[29,["container list-container ",[52,[30,0,["showLoadingSpinner"]],"hidden"]]]],[12],[1,"\\n  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"full-width"],[12],[1,"\\n      "],[10,0],[14,1,"header-list-area"],[12],[1,"\\n        "],[46,[28,[37,5],["header-list-container"],null],null,null,null],[1,"\\n        "],[8,[39,3],null,[["@name","@outletArgs"],["header-list-container-bottom",[28,[37,8],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"full-width"],[12],[1,"\\n      "],[8,[39,3],null,[["@name"],["before-list-area"]],null],[1,"\\n      "],[10,0],[14,1,"list-area"],[12],[1,"\\n        "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["discovery-list-container-top","span",[28,[37,8],null,[["category","listLoading"],[[30,0,["category"]],[30,0,["loading"]]]]]]],null],[1,"\\n        "],[46,[28,[37,5],["list-container"],null],null,null,null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,3],null,[["@name","@connectorTagName"],["discovery-below","div"]],null],[1,"\\n"],[13]],[],false,["discourse-banner","unless","category-read-only-banner","plugin-outlet","component","-outlet","conditional-loading-spinner","if","hash"]]',moduleName:"discourse/templates/discovery.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/discovery/categories",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"gRb8kYZn",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-discovery-categories","div",[28,[37,1],null,[["categories","categoryPageStyle","topics"],[[30,0,["model","categories"]],[30,0,["categoryPageStyle"]],[30,0,["model","topics"]]]]]]],null],[1,"\\n\\n"],[8,[39,2],null,[["@refresh"],[[28,[37,3],[[30,0],"refresh"],null]]],[["default"],[[[[1,"\\n"],[41,[28,[37,5],[[30,0,["topicTrackingState","hasIncoming"]],[30,0,["isCategoriesRoute"]]],null],[[[1,"    "],[10,0],[15,0,[29,["show-more ",[52,[30,0,["hasTopics"]],"has-topics"]]]],[12],[1,"\\n      "],[11,0],[24,"role","button"],[24,0,"alert alert-info clickable"],[4,[38,6],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n        "],[8,[39,7],null,[["@key","@suffix","@count"],["topic_count_",[30,0,["topicTrackingState","filter"]],[30,0,["topicTrackingState","incomingCount"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,8],[[30,0,["categoryPageStyle"]],"categories-and-latest-topics-created-date"],null],[[[1,"    "],[8,[39,9],null,[["@categories","@topics"],[[30,0,["model","categories"]],[30,0,["model","topics"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[46,[30,0,["categoryPageStyle"]],null,[["categories","topics"],[[30,0,["model","categories"]],[30,0,["model","topics"]]]],null],[1,"\\n"]],[]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["below-discovery-categories","div",[28,[37,1],null,[["categories","categoryPageStyle","topics"],[[30,0,["model","categories"]],[30,0,["categoryPageStyle"]],[30,0,["model","topics"]]]]]]],null]],[],false,["plugin-outlet","hash","discovery-categories","action","if","and","on","count-i18n","eq","categories-and-latest-topics","component"]]',moduleName:"discourse/templates/discovery/categories.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/discovery/topics",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"yTj0ueRi",block:'[[[41,[30,0,["redirectedReason"]],[[[1,"  "],[10,0],[14,0,"alert alert-info"],[12],[1,[30,0,["redirectedReason"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,1],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew"],["top",[30,0,["selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,2],[[30,0],"resetNew"],null]]],null],[1,"\\n\\n"],[41,[30,0,["model","sharedDrafts"]],[[[1,"  "],[8,[39,3],null,[["@class","@listTitle","@top","@hideCategory","@category","@topics","@discoveryList"],["shared-drafts","shared_drafts.title",[30,0,["top"]],"true",[30,0,["category"]],[30,0,["model","sharedDrafts"]],true]],null],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,4],null,[["@model","@refresh","@loadingComplete","@incomingCount","@autoAddTopicsToBulkSelect","@bulkSelectEnabled","@addTopicsToBulkSelect"],[[30,0,["model"]],[28,[37,2],[[30,0],"refresh"],null],[28,[37,2],[[30,0],"loadingComplete"],null],[30,0,["topicTrackingState","incomingCount"]],[30,0,["autoAddTopicsToBulkSelect"]],[30,0,["bulkSelectEnabled"]],[28,[37,2],[[30,0],"addTopicsToBulkSelect"],null]]],[["default"],[[[[1,"\\n"],[41,[30,0,["top"]],[[[1,"    "],[10,0],[14,0,"top-lists"],[12],[1,"\\n      "],[8,[39,5],null,[["@period","@action","@fullDay"],[[30,0,["period"]],[28,[37,2],[[30,0],"changePeriod"],null],false]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[30,0,["topicTrackingState","hasIncoming"]],[[[1,"      "],[10,0],[15,0,[29,["show-more ",[52,[30,0,["hasTopics"]],"has-topics"]]]],[12],[1,"\\n        "],[11,3],[24,"tabindex","0"],[24,6,""],[24,0,"alert alert-info clickable"],[4,[38,6],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n          "],[8,[39,7],null,[["@key","@suffix","@count"],["topic_count_",[30,0,["topicTrackingState","filter"]],[30,0,["topicTrackingState","incomingCount"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]]],[1,"  "],[10,1],[12],[1,"\\n    "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["before-topic-list","div",[28,[37,9],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["hasTopics"]],[[[1,"    "],[8,[39,3],null,[["@highlightLastVisited","@top","@showTopicPostBadges","@showPosters","@canBulkSelect","@changeSort","@toggleBulkSelect","@updateAutoAddTopicsToBulkSelect","@hideCategory","@order","@ascending","@bulkSelectEnabled","@bulkSelectAction","@selected","@expandGloballyPinned","@expandAllPinned","@category","@topics","@discoveryList","@scrollOnLoad","@onScroll","@focusLastVisitedTopic"],[true,[30,0,["top"]],[30,0,["showTopicPostBadges"]],true,[30,0,["canBulkSelect"]],[28,[37,10],["changeSort"],null],[28,[37,2],[[30,0],"toggleBulkSelect"],null],[28,[37,2],[[30,0],"updateAutoAddTopicsToBulkSelect"],null],[30,0,["model","hideCategory"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["bulkSelectEnabled"]],[28,[37,2],[[30,0],"refresh"],null],[30,0,["selected"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,0,["category"]],[30,0,["model","topics"]],true,true,[30,1,["saveScrollPosition"]],true]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["after-topic-list","div",[28,[37,9],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[10,"footer"],[14,0,"topic-list-bottom"],[12],[1,"\\n  "],[8,[39,11],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n"],[41,[30,0,["allLoaded"]],[[[1,"    "],[8,[39,1],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew"],["bottom",[30,0,["selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,2],[[30,0],"resetNew"],null]]],null],[1,"\\n\\n    "],[8,[39,12],null,[["@education","@message"],[[30,0,["footerEducation"]],[30,0,["footerMessage"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["latest"]],[[[41,[30,0,["canCreateTopicOnCategory"]],[[[1,"          "],[8,[39,13],null,[["@action","@text"],[[28,[37,10],["createTopic"],null],"topic.suggest_create_topic"]],null],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["top"]],[[[1,"        "],[1,[28,[35,14],[[28,[37,15],["topic.browse_all_categories_latest_or_top"],[["basePath"],[[28,[37,16],null,null]]]]],null]],[1,"\\n        "],[8,[39,17],null,[["@period","@action"],[[30,0,["period"]],[28,[37,2],[[30,0],"changePeriod"],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,14],[[28,[37,15],["topic.browse_all_categories_latest"],[["basePath"],[[28,[37,16],null,null]]]]],null]],[1,"\\n      "]],[]]]],[]]],[1,"    "]],[]]]]],[1,"\\n"]],[]],null],[13]],["discoveryTopicList"],false,["if","topic-dismiss-buttons","action","topic-list","discovery-topics-list","period-chooser","on","count-i18n","plugin-outlet","hash","route-action","conditional-loading-spinner","footer-message","discourse-linked-text","html-safe","i18n","base-path","top-period-buttons"]]',moduleName:"discourse/templates/discovery/topics.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/edit-category-tabs",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"7SejGct4",block:'[[[10,0],[15,0,[29,["edit-category ",[52,[30,0,["expandedMenu"]],"expanded-menu"]]]],[12],[1,"\\n  "],[10,0],[14,0,"edit-category-title-bar"],[12],[1,"\\n    "],[10,0],[14,0,"edit-category-title"],[12],[1,"\\n      "],[10,"h2"],[12],[1,[30,0,["title"]]],[13],[1,"\\n"],[41,[30,0,["model","id"]],[[[1,"        "],[8,[39,1],null,[["@categories","@category","@noSubcategories","@editingCategory","@editingCategoryTab"],[[30,0,["site","categoriesList"]],[30,0,["model"]],[30,0,["model","noSubcategories"]],true,[30,0,["selectedTab"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"],[41,[51,[30,0,["mobileView"]]],[[[41,[30,0,["model","id"]],[[[1,"        "],[8,[39,3],null,[["@class","@action","@label","@icon"],["category-back",[28,[37,4],[[30,0],"goBack"],null],"category.back","caret-left"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"edit-category-nav"],[12],[1,"\\n    "],[10,"ul"],[14,0,"nav nav-stacked"],[12],[1,"\\n      "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"general"]],null],[1,"\\n      "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"security"]],null],[1,"\\n      "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"settings"]],null],[1,"\\n      "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"images"]],null],[1,"\\n      "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"topic-template"]],null],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1,"        "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"tags"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"edit-category-content"],[12],[1,"\\n    "],[10,"h3"],[12],[1,[30,0,["selectedTabTitle"]]],[13],[1,"\\n\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["panels"]]],null]],null],null,[[[1,"      "],[46,[30,1],null,[["selectedTab","category","registerValidator"],[[30,0,["selectedTab"]],[30,0,["model"]],[28,[37,4],[[30,0],"registerValidator"],null]]],null],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["showDeleteReason"]],[[[1,"    "],[10,0],[14,0,"edit-category-delete-warning"],[12],[1,"\\n      "],[10,2],[14,0,"warning"],[12],[1,[28,[35,9],[[30,0,["model","cannot_delete_reason"]]],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"edit-category-footer"],[12],[1,"\\n    "],[8,[39,3],null,[["@id","@class","@disabled","@action","@label"],["save-category","btn-primary",[30,0,["disabled"]],[28,[37,4],[[30,0],"saveCategory"],null],[30,0,["saveLabel"]]]],null],[1,"\\n\\n"],[41,[30,0,["model","can_delete"]],[[[1,"      "],[8,[39,3],null,[["@class","@disabled","@action","@icon","@label"],["btn-danger",[30,0,["deleteDisabled"]],[28,[37,4],[[30,0],"deleteCategory"],null],"far-trash-alt","category.delete"]],null],[1,"\\n"]],[]],[[[41,[30,0,["model","id"]],[[[1,"      "],[10,0],[14,0,"disable-info"],[12],[1,"\\n        "],[8,[39,3],null,[["@disabled","@class","@action","@icon","@label"],[[30,0,["deleteDisabled"]],"btn-default",[28,[37,4],[[30,0],"toggleDeleteTooltip"],null],"question-circle","category.delete"]],null],[1,"\\n      "],[13],[1,"\\n    "]],[]],null]],[]]],[1,"  "],[13],[1,"\\n"],[13]],["tab"],false,["if","bread-crumbs","unless","d-button","action","edit-category-tab","each","-track-array","component","html-safe"]]',moduleName:"discourse/templates/edit-category-tabs.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/email-login",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"0htze6Yj",block:'[[[10,0],[14,0,"container email-login clearfix"],[12],[1,"\\n  "],[10,0],[14,0,"content-wrapper"],[12],[1,"\\n    "],[10,0],[14,0,"image-wrapper"],[12],[1,"\\n      "],[10,"img"],[15,"src",[30,0,["lockImageUrl"]]],[14,0,"password-reset-img"],[15,"alt",[28,[37,0],["email_login.emoji"],null]],[12],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["model","error"]],[[[1,"        "],[10,0],[14,0,"error-info"],[12],[1,"\\n          "],[1,[28,[35,2],[[30,0,["model","error"]]],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_login"]],[[[1,"        "],[10,0],[14,0,"email-login-form"],[12],[1,"\\n"],[41,[30,0,["secondFactorRequired"]],[[[41,[30,0,["model","security_key_required"]],[[[1,"              "],[8,[39,3],null,[["@allowedCredentialIds","@challenge","@showSecurityKey","@showSecondFactor","@secondFactorMethod","@otherMethodAllowed","@action"],[[30,0,["model","allowed_credential_ids"]],[30,0,["model","security_key_challenge"]],[30,0,["model","security_key_required"]],false,[30,0,["secondFactorMethod"]],[30,0,["secondFactorRequired"]],[28,[37,4],[[30,0],"authenticateSecurityKey"],null]]],null],[1,"\\n"]],[]],[[[1,"              "],[8,[39,5],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@isLogin"],[[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["model","backup_codes_enabled"]],true]],[["default"],[[[[1,"\\n                "],[8,[39,6],null,[["@value","@secondFactorMethod","@backupEnabled"],[[30,0,["secondFactorToken"]],[30,0,["secondFactorMethod"]],[30,0,["backupEnabled"]]]],null],[1,"\\n              "]],[]]]]],[1,"\\n"]],[]]]],[]],[[[1,"            "],[10,"h2"],[12],[1,[28,[35,0],["email_login.confirm_title"],[["site_name"],[[30,0,["siteSettings","title"]]]]]],[13],[1,"\\n            "],[10,2],[12],[1,[28,[35,0],["email_login.logging_in_as"],[["email"],[[30,0,["model","token_email"]]]]]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[51,[30,0,["model","security_key_required"]]],[[[1,"            "],[8,[39,8],null,[["@label","@action","@type","@class"],["email_login.confirm_button",[28,[37,4],[[30,0],"finishLogin"],null],"submit","btn-primary"]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","if","html-safe","security-key-form","action","second-factor-form","second-factor-input","unless","d-button"]]',moduleName:"discourse/templates/email-login.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/emoji-selector-autocomplete",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o
return"      <li>\n        <a href>\n"+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"option.src",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,r,0),inverse:e.program(4,r,0),types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:10},end:{line:11,column:17}}}))?o:"")+"        </a>\n      </li>\n"},2:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"            <img src="+s(l(i,"get").call(o,"option.src",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:7,column:21},end:{line:7,column:35}}}))+" class='emoji'>\n            <span class='emoji-shortname'>"+s(l(i,"get").call(o,"option.code",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:8,column:42},end:{line:8,column:57}}}))+"</span>\n"},4:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"            "+e.escapeExpression(o(i,"get").call(null!=t?t:e.nullContext||{},"option.label",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:10,column:12},end:{line:10,column:28}}}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return"<div class='autocomplete ac-emoji'>\n  <ul>\n"+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:3,column:4},end:{line:14,column:13}}}))?o:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("emoji-selector-autocomplete",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/exception",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"5n3ICToH",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["errorHtml"]],[30,0,["isForbidden"]]],null],[[[1,"    "],[10,0],[14,0,"not-found"],[12],[1,[28,[35,2],[[30,0,["errorHtml"]]],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"error-page"],[12],[1,"\\n      "],[10,0],[14,0,"face"],[12],[1,":("],[13],[1,"\\n      "],[10,0],[14,0,"reason"],[12],[1,[30,0,["reason"]]],[13],[1,"\\n"],[41,[30,0,["requestUrl"]],[[[1,"        "],[10,0],[14,0,"url"],[12],[1,"\\n          "],[1,[28,[35,3],["errors.prev_page"],null]],[1,"\\n          "],[10,3],[15,6,[30,0,["requestUrl"]]],[14,"data-auto-route","true"],[12],[1,[30,0,["requestUrl"]]],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"      "],[10,0],[14,0,"desc"],[12],[1,"\\n"],[41,[30,0,["networkFixed"]],[[[1,"          "],[1,[28,[35,4],["check-circle"],null]],[1,"\\n"]],[]],null],[1,"\\n        "],[1,[30,0,["desc"]]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"buttons"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["enabledButtons"]]],null]],null],null,[[[1,"          "],[8,[39,7],null,[["@icon","@action","@label","@class"],[[30,1,["icon"]],[30,1,["action"]],[30,1,["key"]],[30,1,["classes"]]]],null],[1,"\\n"]],[1]],null],[1,"        "],[8,[39,8],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]],[13]],["buttonData"],false,["if","and","html-safe","i18n","d-icon","each","-track-array","d-button","conditional-loading-spinner"]]',moduleName:"discourse/templates/exception.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/faq",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"c19B47hL",block:'[[[8,[39,0],null,[["@bodyClass","@class"],[[29,["static-",[30,0,["model","path"]]]],"container"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n      "],[8,[39,2],null,[["@name"],["above-static"]],null],[1,"\\n      "],[1,[28,[35,3],[[30,0,["model","html"]]],null]],[1,"\\n      "],[8,[39,2],null,[["@name"],["below-static"]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]]],[],false,["d-section","watch-read","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/faq.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/flat-button",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"<button class='btn-flat "+s(a(i,"get").call(o,"class",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:24},end:{line:1,column:33}}}))+"' title='"+s((a(i,"i18n")||t&&a(t,"i18n")||l).call(o,"topics.bulk.toggle",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:1,column:42},end:{line:1,column:71}}}))+"'>\n  "+s((a(i,"d-icon")||t&&a(t,"d-icon")||l).call(o,"icon",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:2},end:{line:2,column:17}}}))+"\n</button>\n"},useData:!0});(0,i.addRawTemplate)("flat-button",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/full-page-search",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"Glzmxin7",block:'[[[8,[39,0],null,[["@pageClass","@class"],["search","search-container"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@name","@tag","@class"],["full-page-search",[30,0,["searchTerm"]],"hidden"]],null],[1,"\\n\\n  "],[10,0],[14,0,"search-header"],[14,"role","search"],[12],[1,"\\n    "],[10,"h1"],[14,0,"search-page-heading"],[12],[1,"\\n"],[41,[30,0,["hasResults"]],[[[1,"        "],[10,0],[14,0,"result-count"],[14,1,"search-result-count"],[14,"aria-live","polite"],[12],[1,"\\n          "],[1,[28,[35,3],[[30,0,["resultCountLabel"]]],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,4],["search.full_page_title"],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"search-bar"],[12],[1,"\\n      "],[8,[39,5],null,[["@value","@class","@aria-label","@enter","@hasAutofocus","@aria-controls"],[[30,0,["searchTerm"]],"full-page-search search no-blur search-query",[28,[37,4],["search.search_term_label"],null],[28,[37,6],[[30,0],"search",[28,[37,7],null,[["collapseFilters"],[true]]]],null],[30,0,["hasAutofocus"]],"search-result-count"]],null],[1,"\\n      "],[8,[39,8],null,[["@id","@value","@content","@onChange","@options"],["search-type",[30,0,["search_type"]],[30,0,["searchTypes"]],[28,[37,6],[[30,0],[28,[37,9],[[30,0,["search_type"]]],null]],null],[28,[37,7],null,[["castInteger"],[true]]]]],null],[1,"\\n      "],[8,[39,10],null,[["@action","@icon","@label","@class","@ariaLabel","@disabled"],[[28,[37,6],[[30,0],"search",[28,[37,7],null,[["collapseFilters"],[true]]]],null],"search","search.search_button","btn-primary search-cta","search.search_button",[30,0,["searchButtonDisabled"]]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["usingDefaultSearchType"]],[[[41,[30,0,["context"]],[[[1,"        "],[10,0],[14,0,"search-context"],[12],[1,"\\n          "],[10,"label"],[12],[1,"\\n            "],[8,[39,11],[[24,3,"searchContext"]],[["@type","@checked"],["checkbox",[30,0,["searchContextEnabled"]]]],null],[1,"\\n            "],[1,[30,0,["searchContextDescription"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"search-filters"],[12],[1,"\\n        "],[8,[39,12],null,[["@searchTerm","@onChangeSearchTerm","@search","@searchButtonDisabled","@expandFilters"],[[28,[37,13],[[30,0,["searchTerm"]]],null],[28,[37,6],[[30,0],[28,[37,9],[[30,0,["searchTerm"]]],null]],null],[28,[37,6],[[30,0],"search",[28,[37,7],null,[["collapseFilters"],[true]]]],null],[30,0,["searchButtonDisabled"]],[30,0,["expandFilters"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"search-notice"],[12],[1,"\\n"],[41,[30,0,["invalidSearch"]],[[[1,"        "],[10,0],[14,0,"fps-invalid"],[12],[1,"\\n          "],[1,[28,[35,4],["search.too_short"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"search-advanced"],[12],[1,"\\n"],[41,[30,0,["hasResults"]],[[[41,[30,0,["usingDefaultSearchType"]],[[[1,"        "],[10,0],[15,0,[30,0,["searchInfoClassNames"]]],[14,"role","region"],[15,"ariaLabel",[28,[37,4],["search.sort_or_bulk_actions"],null]],[12],[1,"\\n"],[41,[30,0,["canBulkSelect"]],[[[1,"            "],[8,[39,10],null,[["@icon","@class","@title","@action"],["list","btn-default bulk-select","topics.bulk.toggle",[28,[37,6],[[30,0],"toggleBulkSelect"],null]]],null],[1,"\\n"],[41,[30,0,["selected"]],[[[1,"              "],[8,[39,10],null,[["@class","@selected","@action","@icon"],["btn-default bulk-select-btn",[30,0,["selected"]],[28,[37,6],[[30,0],"showBulkActions"],null],"wrench"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[41,[30,0,["hasUnselectedResults"]],[[[1,"              "],[8,[39,10],null,[["@icon","@class","@action","@label"],["check-square","btn-default",[28,[37,6],[[30,0],"selectAll"],null],"search.select_all"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasSelection"]],[[[1,"              "],[8,[39,10],null,[["@icon","@class","@action","@label"],["far-square","btn-default",[28,[37,6],[[30,0],"clearAll"],null],"search.clear_all"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n          "],[10,0],[14,0,"sort-by inline-form"],[12],[1,"\\n            "],[10,"label"],[12],[1,"\\n              "],[1,[28,[35,4],["search.sort_by"],null]],[1,"\\n            "],[13],[1,"\\n            "],[8,[39,8],null,[["@value","@content","@onChange","@id","@options"],[[30,0,["sortOrder"]],[30,0,["sortOrders"]],[28,[37,6],[[30,0],[28,[37,9],[[30,0,["sortOrder"]]],null]],null],"search-sort-by",[28,[37,7],null,[["castInteger"],[true]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-below-search-info","div",[28,[37,7],null,[["search"],[[30,0,["searchTerm"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["searching"]],[[[1,"      "],[1,[28,[35,15],null,[["size"],["medium"]]]],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"search-results"],[14,"role","region"],[12],[1,"\\n        "],[8,[39,16],null,[["@selector","@action"],[".fps-result",[28,[37,6],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n"],[41,[28,[37,17],[[30,0,["usingDefaultSearchType"]],[30,0,["customSearchType"]]],null],[[[1,"            "],[8,[39,18],null,[["@posts","@bulkSelectEnabled","@selected","@highlightQuery","@searchLogId"],[[30,0,["model","posts"]],[30,0,["bulkSelectEnabled"]],[30,0,["selected"]],[30,0,["highlightQuery"]],[30,0,["model","grouped_search_result","search_log_id"]]]],null],[1,"\\n\\n            "],[8,[39,19],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["error"]],[[[1,"                "],[10,0],[14,0,"warning"],[12],[1,"\\n                  "],[1,[30,0,["error"]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["hasResults"]]],[[[41,[30,0,["searchActive"]],[[[1,"                  "],[10,"h3"],[12],[1,[28,[35,4],["search.no_results"],null]],[13],[1,"\\n\\n"],[41,[30,0,["showSuggestion"]],[[[1,"                    "],[10,0],[14,0,"no-results-suggestion"],[12],[1,"\\n                      "],[1,[28,[35,4],["search.cant_find"],null]],[1,"\\n"],[41,[30,0,["canCreateTopic"]],[[[1,"                        "],[11,3],[24,6,""],[4,[38,21],["click",[28,[37,22],[[30,0,["createTopic"]],[30,0,["searchTerm"]]],null]],null],[12],[1,[28,[35,4],["search.start_new_topic"],null]],[13],[1,"\\n"],[41,[51,[30,0,["siteSettings","login_required"]]],[[[1,"                          "],[1,[28,[35,4],["search.or_search_google"],null]],[1,"\\n"]],[]],null]],[]],[[[1,"                        "],[1,[28,[35,4],["search.search_google"],null]],[1,"\\n"]],[]]],[1,"                    "],[13],[1,"\\n\\n                    "],[8,[39,23],null,[["@searchTerm"],[[30,0,["searchTerm"]]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["hasResults"]],[[[1,"                "],[10,"h3"],[14,0,"search-footer"],[12],[1,"\\n"],[41,[30,0,["model","grouped_search_result","more_full_page_results"]],[[[41,[30,0,["isLastPage"]],[[[1,"                      "],[1,[28,[35,4],["search.more_results"],null]],[1,"\\n"]],[]],null]],[]],[[[1,"                    "],[1,[28,[35,4],["search.no_more_results"],null]],[1,"\\n"]],[]]],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"            "]],[]]]]],[1,"\\n"]],[]],[[[1,"            "],[8,[39,19],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["hasResults"]],[[[41,[30,0,["model","categories","length"]],[[[1,"                  "],[10,"h4"],[14,0,"category-heading"],[12],[1,"\\n                    "],[1,[28,[35,4],["search.categories"],null]],[1,"\\n                  "],[13],[1,"\\n                  "],[10,0],[14,0,"category-items"],[12],[1,"\\n"],[42,[28,[37,25],[[28,[37,25],[[30,0,["model","categories"]]],null]],null],null,[[[1,"                      "],[1,[28,[35,26],[[30,1]],[["extraClasses"],["fps-category-item"]]]],[1,"\\n"]],[1]],null],[1,"                  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","tags","length"]],[[[1,"                  "],[10,"h4"],[14,0,"tag-heading"],[12],[1,"\\n                    "],[1,[28,[35,4],["search.tags"],null]],[1,"\\n                  "],[13],[1,"\\n\\n                  "],[10,0],[14,0,"tag-items"],[12],[1,"\\n"],[42,[28,[37,25],[[28,[37,25],[[30,0,["model","tags"]]],null]],null],null,[[[1,"                      "],[10,0],[14,0,"fps-tag-item"],[12],[1,"\\n                        "],[10,3],[15,6,[30,2,["url"]]],[12],[1,"\\n                          "],[1,[30,2,["id"]]],[1,"\\n                        "],[13],[1,"\\n                      "],[13],[1,"\\n"]],[2]],null],[1,"                  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","users"]],[[[1,"                  "],[10,0],[14,0,"user-items"],[12],[1,"\\n"],[42,[28,[37,25],[[28,[37,25],[[30,0,["model","users"]]],null]],null],null,[[[1,"                      "],[8,[39,27],null,[["@user","@class"],[[30,3],"fps-user-item"]],[["default"],[[[[1,"\\n                        "],[1,[28,[35,28],[[30,3]],[["imageSize"],["large"]]]],[1,"\\n\\n                        "],[10,0],[14,0,"user-titles"],[12],[1,"\\n"],[41,[30,3,["name"]],[[[1,"                            "],[10,1],[14,0,"name"],[12],[1,"\\n                              "],[1,[30,3,["name"]]],[1,"\\n                            "],[13],[1,"\\n"]],[]],null],[1,"\\n                          "],[10,1],[14,0,"username"],[12],[1,"\\n                            "],[1,[30,3,["username"]]],[1,"\\n                          "],[13],[1,"\\n                        "],[13],[1,"\\n                      "]],[]]]]],[1,"\\n"]],[3]],null],[1,"                  "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["searchActive"]],[[[1,"                  "],[10,"h3"],[12],[1,[28,[35,4],["search.no_results"],null]],[13],[1,"\\n"]],[]],null]],[]]],[1,"            "]],[]]]]],[1,"\\n"]],[]]],[1,"        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]]]]]],["category","tag","user"],false,["d-section","scroll-tracker","if","html-safe","i18n","search-text-field","action","hash","combo-box","mut","d-button","input","search-advanced-options","readonly","plugin-outlet","loading-spinner","load-more","or","search-result-entries","conditional-loading-spinner","unless","on","fn","google-search","each","-track-array","category-link","user-link","avatar"]]',moduleName:"discourse/templates/full-page-search.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group-activity-posts",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"vkUQoyil",block:'[[[8,[39,0],null,[["@selector","@action"],[".user-stream-item",[28,[37,1],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"user-stream"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["model"]]],null]],null],null,[[[1,"      "],[8,[39,4],null,[["@post"],[[30,1]]],null],[1,"\\n"]],[1]],[[[1,"      "],[10,0],[12],[1,[28,[35,5],[[30,0,["emptyText"]]],null]],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n  "],[8,[39,6],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]]]]]],["post"],false,["load-more","action","each","-track-array","group-post","i18n","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-activity-posts.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group-activity-topics",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"ae4k79EQ",block:'[[[8,[39,0],null,[["@class","@selector","@action"],["paginated-topics-list",".paginated-topics-list .topic-list tr",[28,[37,1],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@topicList","@showPosters"],[[30,0,["model"]],true]],null],[1,"\\n  "],[8,[39,3],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n"]],[]]]]]],[],false,["load-more","action","basic-topic-list","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-activity-topics.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group-index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"dRuld5GJ",block:'[[[10,"section"],[14,0,"user-content"],[12],[1,"\\n  "],[10,0],[14,0,"group-members-actions"],[12],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1,"      "],[8,[39,1],null,[["@class","@icon","@action","@title"],["bulk-select","list",[28,[37,2],[[30,0],"toggleBulkSelect"],null],"topics.bulk.toggle"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_see_members"]],[[[1,"      "],[8,[39,3],null,[["@value","@placeholderKey","@autocomplete","@class"],[[30,0,["filterInput"]],[30,0,["filterPlaceholder"]],"off","group-username-filter no-blur"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[1,"\\n"],[41,[30,0,["isBulk"]],[[[1,"        "],[10,1],[14,0,"bulk-select-buttons-wrap"],[12],[1,"\\n"],[41,[30,0,["bulkSelection"]],[[[1,"            "],[8,[39,4],null,[["@bulkSelection","@canAdminGroup","@canEditGroup","@onChange"],[[30,0,["bulkSelection"]],[30,0,["model","can_admin_group"]],[30,0,["model","can_edit_group"]],[28,[37,2],[[30,0],"actOnSelection",[30,0,["bulkSelection"]]],null]]],null],[1,"\\n\\n            "],[8,[39,1],null,[["@action","@label","@icon","@class"],[[28,[37,2],[[30,0],"bulkClearAll"],null],"topics.bulk.clear_all","far-square","bulk-select-clear"]],null],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,1],null,[["@action","@label","@icon","@class"],[[28,[37,2],[[30,0],"bulkSelectAll"],null],"topics.bulk.select_all","check-square","bulk-select-all"]],null],[1,"\\n\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"group-members-manage"],[12],[1,"\\n        "],[8,[39,1],null,[["@icon","@action","@label","@class"],["plus",[28,[37,5],["showAddMembersModal"],null],"groups.manage.add_members","btn-default group-members-add"]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1,"          "],[8,[39,1],null,[["@icon","@action","@label","@class"],["plus",[28,[37,5],["showInviteModal"],null],"groups.manage.invite_members","btn-default group-members-add"]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["hasMembers"]],[[[1,"    "],[8,[39,6],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,2],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n\\n      "],[8,[39,7],null,[["@className"],[[29,["group-members\\n          ",[52,[30,0,["isBulk"]],"sticky-header",""],"\\n          ",[52,[30,0,["canManageGroup"]],"group-members--can-manage",""]]]]],[["header","body"],[[[[1,"\\n          "],[8,[39,8],null,[["@order","@asc","@field","@labelKey","@class","@automatic","@colspan"],[[30,0,["order"]],[30,0,["asc"]],"username_lower","username","directory-table__column-header--username username",true,"2"]],null],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1,"            "],[10,0],[14,0,"directory-table__column-header directory-table__column-header--can-manage"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,8],null,[["@class","@order","@asc","@field","@labelKey","@automatic"],["directory-table__column-header--added",[30,0,["order"]],[30,0,["asc"]],"added_at","groups.member_added",true]],null],[1,"\\n          "],[8,[39,8],null,[["@class","@order","@asc","@field","@labelKey","@automatic"],["directory-table__column-header--last-posted",[30,0,["order"]],[30,0,["asc"]],"last_posted_at","last_post",true]],null],[1,"\\n          "],[8,[39,8],null,[["@class","@order","@asc","@field","@labelKey","@automatic"],["directory-table__column-header--last-seen",[30,0,["order"]],[30,0,["asc"]],"last_seen_at","last_seen",true]],null],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1,"            "],[10,0],[14,0,"directory-table__column-header directory-table__column-header--member-settings"],[12],[13],[1,"\\n"]],[]],null],[1,"        "]],[]],[[[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["model","members"]]],null]],null],null,[[[1,"            "],[10,0],[14,0,"directory-table__row"],[12],[1,"\\n\\n              "],[10,0],[14,0,"directory-table__cell directory-table__cell--username group-member"],[14,"colspan","2"],[12],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[41,[30,0,["isBulk"]],[[[1,"                    "],[8,[39,11],[[24,0,"bulk-select"],[4,[38,12],["click",[28,[37,2],[[30,0],"selectMember",[30,1]],null]],null]],[["@type"],["checkbox"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"                "],[8,[39,13],null,[["@user","@skipName","@showStatus","@showStatusTooltip"],[[30,1],[30,0,["skipName"]],true,true]],null],[1,"\\n              "],[13],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1,"                "],[10,0],[14,0,"directory-table__cell directory-table__cell--can-manage group-owner"],[12],[1,"\\n"],[41,[28,[37,14],[[30,1,["owner"]],[30,1,["primary"]]],null],[[[1,"                    "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                      "],[10,1],[12],[1,[28,[35,15],["groups.members.status"],null]],[13],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"                  "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n"],[41,[30,1,["owner"]],[[[1,"                      "],[1,[28,[35,16],["shield-alt"],null]],[1,"\\n                      "],[1,[28,[35,15],["groups.members.owner"],null]],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[41,[30,1,["primary"]],[[[1,"                      "],[1,[28,[35,15],["groups.members.primary"],null]],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n\\n                "],[13],[1,"\\n"]],[]],null],[1,"              "],[10,0],[14,0,"directory-table__cell directory-table__cell--added"],[12],[1,"\\n                "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                  "],[10,1],[12],[1,[28,[35,15],["groups.member_added"],null]],[13],[1,"\\n                "],[13],[1,"\\n                "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n                  "],[1,[28,[35,17],[[30,1,["added_at"]]],null]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[15,0,[29,["directory-table__cell",[52,[51,[30,1,["last_posted_at"]]],"--empty"],"\\n                  directory-table__cell--last-posted"]]],[12],[1,"\\n"],[41,[30,1,["last_posted_at"]],[[[1,"                  "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                    "],[10,1],[12],[1,[28,[35,15],["last_post"],null]],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"                "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n                  "],[1,[28,[35,17],[[30,1,["last_posted_at"]]],null]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[15,0,[29,["directory-table__cell",[52,[51,[30,1,["last_seen_at"]]],"--empty"],"\\n                  directory-table__cell--last-seen"]]],[12],[1,"\\n"],[41,[30,1,["last_seen_at"]],[[[1,"                  "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                    "],[10,1],[12],[1,[28,[35,15],["last_seen"],null]],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"                "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n                  "],[1,[28,[35,17],[[30,1,["last_seen_at"]]],null]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[1,"                "],[10,0],[14,0,"directory-table__cell directory-table__cell--member-settings member-settings"],[12],[1,"\\n                  "],[8,[39,19],null,[["@member","@canAdminGroup","@canEditGroup","@onChange"],[[30,1],[30,0,["model","can_admin_group"]],[30,0,["model","can_edit_group"]],[28,[37,2],[[30,0],"actOnGroup",[30,1]],null]]],null],[1,"\\n"],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[1]],null],[1,"        "]],[]]]]],[1,"\\n\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,20],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[10,"br"],[12],[13],[1,"\\n\\n    "],[10,0],[12],[1,[28,[35,15],[[30,0,["emptyMessageKey"]]],null]],[13],[1,"\\n"]],[]]],[13]],["m"],false,["if","d-button","action","text-field","bulk-group-member-dropdown","route-action","load-more","responsive-table","table-header-toggle","each","-track-array","input","on","user-info","or","i18n","d-icon","bound-date","unless","group-member-dropdown","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-index.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group-requests",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"Rg8lGJhr",block:'[[[10,"section"],[14,0,"user-content"],[12],[1,"\\n\\n  "],[10,0],[14,0,"group-members-actions"],[12],[1,"\\n    "],[8,[39,0],null,[["@value","@placeholderKey","@class"],[[30,0,["filterInput"]],[30,0,["filterPlaceholder"]],"group-username-filter no-blur"]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["hasRequesters"]],[[[1,"    "],[8,[39,2],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,3],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n      "],[8,[39,4],null,[["@className"],["group-members group-members__requests"]],[["header","body"],[[[[1,"\\n          "],[8,[39,5],null,[["@class","@order","@asc","@field","@labelKey","@automatic"],["username",[30,0,["order"]],[30,0,["asc"]],"username_lower","username",true]],null],[1,"\\n          "],[8,[39,5],null,[["@order","@asc","@field","@labelKey","@automatic"],[[30,0,["order"]],[30,0,["asc"]],"requested_at","groups.member_requested",true]],null],[1,"\\n          "],[10,0],[14,0,"directory-table__column-header group-request-reason__column-header"],[12],[1,[28,[35,6],["groups.requests.reason"],null]],[13],[1,"\\n          "],[10,0],[14,0,"directory-table__column-header"],[12],[13],[1,"\\n        "]],[]],[[[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["model","requesters"]]],null]],null],null,[[[1,"            "],[10,0],[14,0,"directory-table__row"],[12],[1,"\\n              "],[10,0],[14,0,"directory-table__cell group-member"],[12],[1,"\\n                "],[8,[39,9],null,[["@user","@skipName"],[[30,1],[30,0,["skipName"]]]],null],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"directory-table__cell"],[12],[1,"\\n                "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                  "],[10,1],[12],[1,[28,[35,6],["groups.member_requested"],null]],[13],[1,"\\n                "],[13],[1,"\\n                "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n                  "],[10,1],[12],[1,[28,[35,10],[[30,1,["requested_at"]]],null]],[13],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"directory-table__cell group-request-reason__content"],[12],[1,"\\n                "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                  "],[10,1],[12],[1,[28,[35,6],["groups.requests.reason"],null]],[13],[1,"\\n                "],[13],[1,"\\n                "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n                  "],[1,[30,1,["reason"]]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"directory-table__cell group-accept-deny-buttons"],[12],[1,"\\n"],[41,[30,1,["request_undone"]],[[[1,"                  "],[1,[28,[35,6],["groups.requests.undone"],null]],[1,"\\n"]],[]],[[[41,[30,1,["request_accepted"]],[[[1,"                  "],[1,[28,[35,6],["groups.requests.accepted"],null]],[1,"\\n                  "],[8,[39,11],null,[["@action","@actionParam","@label"],[[28,[37,3],[[30,0],"undoAcceptRequest"],null],[30,1],"groups.requests.undo"]],null],[1,"\\n"]],[]],[[[41,[30,1,["request_denied"]],[[[1,"                  "],[1,[28,[35,6],["groups.requests.denied"],null]],[1,"\\n"]],[]],[[[1,"                  "],[8,[39,11],null,[["@action","@actionParam","@label","@class"],[[28,[37,3],[[30,0],"acceptRequest"],null],[30,1],"groups.requests.accept","btn-primary"]],null],[1,"\\n                  "],[8,[39,11],null,[["@action","@actionParam","@label","@class"],[[28,[37,3],[[30,0],"denyRequest"],null],[30,1],"groups.requests.deny","btn-danger"]],null],[1,"\\n                "]],[]]]],[]]]],[]]],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[1]],null],[1,"        "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,12],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[10,0],[12],[1,[28,[35,6],["groups.empty.requests"],null]],[13],[1,"\\n"]],[]]],[13]],["m"],false,["text-field","if","load-more","action","responsive-table","table-header-toggle","i18n","each","-track-array","user-info","bound-date","d-button","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-requests.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group-selector-autocomplete",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"      <li><a href>"+e.escapeExpression(o(i,"get").call(null!=t?t:e.nullContext||{},"option.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:18},end:{line:4,column:33}}}))+"</a></li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return"<div class='autocomplete ac-group'>\n  <ul>\n"+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))?o:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("group-selector-autocomplete",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/group",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"W5/t21Vi",block:'[[[10,1],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["before-group-container","div",[28,[37,1],null,[["group"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[15,0,[29,["container group group-",[30,0,["model","name"]]]]],[12],[1,"\\n"],[41,[30,0,["showTooltip"]],[[[1,"    "],[10,0],[14,0,"group-delete-tooltip"],[12],[1,"\\n      "],[10,2],[12],[1,[28,[35,3],["admin.groups.delete_automatic_group"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"group-details-container"],[12],[1,"\\n    "],[10,0],[14,0,"group-info"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["model","flair_icon"]],[30,0,["model","flair_url"]],[30,0,["model","flair_bg_color"]]],null],[[[1,"        "],[10,0],[14,0,"group-avatar-flair"],[12],[1,"\\n          "],[8,[39,5],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["model","name"]],[28,[37,4],[[30,0,["model","flair_icon"]],[30,0,["model","flair_url"]]],null],[30,0,["model","flair_bg_color"]],[30,0,["model","flair_color"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"group-info-names"],[12],[1,"\\n        "],[10,1],[14,0,"group-info-name"],[12],[1,[30,0,["groupName"]]],[13],[1,"\\n\\n        "],[41,[30,0,["model","full_name"]],[[[10,0],[14,0,"group-info-full-name"],[12],[1,[30,0,["model","name"]]],[13]],[]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"group-details-button"],[12],[1,"\\n        "],[8,[39,6],null,[["@tagName","@model","@showLogin"],["",[30,0,["model"]],[28,[37,7],["showLogin"],null]]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","admin"]],[[[41,[30,0,["model","automatic"]],[[[1,"            "],[8,[39,8],null,[["@action","@class","@icon","@label"],[[28,[37,9],[[30,0],"toggleDeleteTooltip"],null],"btn-default","question-circle","admin.groups.delete"]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,8],null,[["@action","@disabled","@icon","@class","@label"],[[28,[37,9],[[30,0],"destroyGroup"],null],[30,0,["destroying"]],"trash-alt","btn-danger","admin.groups.delete"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["displayGroupMessageButton"]],[[[1,"          "],[8,[39,8],null,[["@action","@class","@icon","@label"],[[28,[37,9],[[30,0],"messageGroup"],null],"btn-primary group-message-button","envelope","groups.message"]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["group-details-after","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["model","bio_cooked"]],[[[1,"      "],[10,"hr"],[12],[13],[1,"\\n\\n      "],[10,0],[14,0,"group-bio"],[12],[1,"\\n        "],[10,2],[12],[1,[28,[35,10],[[30,0,["model","bio_cooked"]]],null]],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"user-content-wrapper"],[12],[1,"\\n    "],[10,"section"],[14,0,"user-primary-navigation"],[12],[1,"\\n      "],[10,0],[14,0,"container"],[12],[1,"\\n        "],[8,[39,11],null,[["@group","@currentPath","@tabs"],[[30,0,["model"]],[30,0,["currentPath"]],[30,0,["tabs"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[46,[28,[37,13],null,null],null,null,null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["plugin-outlet","hash","if","i18n","or","avatar-flair","group-membership-button","route-action","d-button","action","html-safe","group-navigation","component","-outlet"]]',moduleName:"discourse/templates/group.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/activity",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"GUFXKI1p",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n  "],[8,[39,0],null,[["@class","@desktopClass"],["activity-nav","action-list activity-list nav-stacked"]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","can_see_members"]],[[[1,"      "],[8,[39,2],null,[["@filter","@categoryId"],["posts",[30,0,["category_id"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@filter","@categoryId"],["topics",[30,0,["category_id"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","enable_mentions"]],[[[1,"      "],[8,[39,2],null,[["@filter","@categoryId"],["mentions",[30,0,["category_id"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[8,[39,3],null,[["@name","@connectorTagName"],["group-activity-bottom","li"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[46,[28,[37,5],null,null],null,null,null],[1,"\\n"],[13]],[],false,["mobile-nav","if","group-activity-filter","plugin-outlet","component","-outlet"]]',moduleName:"discourse/templates/group/activity.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/manage",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"jinVWpN7",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n  "],[8,[39,0],null,[["@class","@desktopClass"],["activity-nav","action-list activity-list nav-stacked"]],[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["tabs"]]],null]],null],null,[[[1,"      "],[10,"li"],[12],[1,"\\n        "],[8,[39,3],null,[["@route","@model"],[[30,1,["route"]],[30,0,["model","name"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,4],[[30,1,["title"]]],null]],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[1]],null],[1,"  "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[46,[28,[37,6],null,null],null,null,null],[1,"\\n"],[13]],["tab"],false,["mobile-nav","each","-track-array","link-to","i18n","component","-outlet"]]',moduleName:"discourse/templates/group/manage.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/manage/categories",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"VkBueYjz",block:'[[[10,"form"],[14,0,"groups-form form-vertical groups-notifications-form"],[12],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["groups.manage.categories.long_title"],null]],[13],[1,"\\n    "],[10,0],[12],[1,[28,[35,0],["groups.manage.categories.description"],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-watching"],null]],[1,"\\n      "],[1,[28,[35,0],["groups.notifications.watching.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","watchingCategories"]],[30,0,["selectedCategories"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","watchingCategories"]]],null]],null]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.categories.watched_categories_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-tracking"],null]],[1,"\\n      "],[1,[28,[35,0],["groups.notifications.tracking.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","trackingCategories"]],[30,0,["selectedCategories"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","trackingCategories"]]],null]],null]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.categories.tracked_categories_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-watching-first"],null]],[1,"\\n      "],[1,[28,[35,0],["groups.notifications.watching_first_post.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","watchingFirstPostCategories"]],[30,0,["selectedCategories"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","watchingFirstPostCategories"]]],null]],null]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.categories.watching_first_post_categories_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-regular"],null]],[1,"\\n      "],[1,[28,[35,0],["groups.notifications.regular.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","regularCategories"]],[30,0,["selectedCategories"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","regularCategories"]]],null]],null]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.categories.regular_categories_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-muted"],null]],[1,"\\n      "],[1,[28,[35,0],["groups.notifications.muted.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","mutedCategories"]],[30,0,["selectedCategories"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","mutedCategories"]]],null]],null]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.categories.muted_categories_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,5],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["i18n","d-icon","category-selector","action","mut","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/categories.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/manage/email",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"RpCq8iTK",block:'[[[8,[39,0],null,[["@group"],[[30,0,["model"]]]],null]],[],false,["group-manage-email-settings"]]',moduleName:"discourse/templates/group/manage/email.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/manage/interaction",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"1DmEzFPn",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n  "],[8,[39,0],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n  "],[8,[39,1],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["groups-form-interaction-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/interaction.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/manage/logs",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"KIVqXZbF",block:'[[[41,[30,0,["model","logs"]],[[[1,"  "],[10,0],[14,0,"group-manage-logs-controls"],[12],[1,"\\n    "],[8,[39,1],null,[["@clearFilter","@value","@type"],[[28,[37,2],[[30,0],"clearFilter"],null],[30,0,["filters","action"]],"action"]],null],[1,"\\n    "],[8,[39,1],null,[["@clearFilter","@value","@type"],[[28,[37,2],[[30,0],"clearFilter"],null],[30,0,["filters","acting_user"]],"acting_user"]],null],[1,"\\n    "],[8,[39,1],null,[["@clearFilter","@value","@type"],[[28,[37,2],[[30,0],"clearFilter"],null],[30,0,["filters","target_user"]],"target_user"]],null],[1,"\\n    "],[8,[39,1],null,[["@clearFilter","@value","@type"],[[28,[37,2],[[30,0],"clearFilter"],null],[30,0,["filters","subject"]],"subject"]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,3],null,[["@selector","@action"],[".group-manage-logs .group-manage-logs-row",[28,[37,2],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n    "],[10,"table"],[14,0,"group-manage-logs"],[12],[1,"\\n      "],[10,"thead"],[12],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,4],["groups.manage.logs.action"],null]],[13],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,4],["groups.manage.logs.acting_user"],null]],[13],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,4],["groups.manage.logs.target_user"],null]],[13],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,4],["groups.manage.logs.subject"],null]],[13],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,4],["groups.manage.logs.when"],null]],[13],[1,"\\n        "],[10,"th"],[12],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["model","logs"]]],null]],null],null,[[[1,"          "],[8,[39,7],null,[["@log","@filters"],[[30,1],[30,0,["filters"]]]],null],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[8,[39,8],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[10,0],[12],[1,[28,[35,4],["groups.empty.logs"],null]],[13],[1,"\\n"]],[]]]],["logItem"],false,["if","group-manage-logs-filter","action","load-more","i18n","each","-track-array","group-manage-logs-row","conditional-loading-spinner"]]',moduleName:"discourse/templates/group/manage/logs.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/manage/membership",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"1jAIzYSl",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n  "],[8,[39,0],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n  "],[8,[39,1],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["groups-form-membership-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/membership.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/manage/profile",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"0wrlwvoi",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n  "],[8,[39,0],null,[["@model","@disableSave"],[[30,0,["model"]],[30,0,["saving"]]]],null],[1,"\\n  "],[8,[39,1],null,[["@model","@saving"],[[30,0,["model"]],[30,0,["saving"]]]],null],[1,"\\n"],[13]],[],false,["groups-form-profile-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/profile.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/manage/tags",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"UfNMkmI9",block:'[[[10,"form"],[14,0,"groups-form form-vertical groups-notifications-form"],[12],[1,"\\n\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["before-manage-group-tags","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["groups.manage.tags.long_title"],null]],[13],[1,"\\n    "],[10,0],[12],[1,[28,[35,2],["groups.manage.tags.description"],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["d-watching"],null]],[1,"\\n      "],[1,[28,[35,2],["groups.notifications.watching.title"],null]],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@tags","@blacklist","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","watching_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,1],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,2],["groups.manage.tags.watched_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["d-tracking"],null]],[1,"\\n      "],[1,[28,[35,2],["groups.notifications.tracking.title"],null]],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@tags","@blacklist","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","tracking_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,1],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,2],["groups.manage.tags.tracked_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["d-watching-first"],null]],[1,"\\n      "],[1,[28,[35,2],["groups.notifications.watching_first_post.title"],null]],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@tags","@blacklist","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","watching_first_post_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,1],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,2],["groups.manage.tags.watching_first_post_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["d-regular"],null]],[1,"\\n      "],[1,[28,[35,2],["groups.notifications.regular.title"],null]],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@tags","@blacklist","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","regular_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,1],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,2],["groups.manage.tags.regular_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["d-muted"],null]],[1,"\\n      "],[1,[28,[35,2],["groups.notifications.muted.title"],null]],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@tags","@blacklist","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","muted_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,1],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,2],["groups.manage.tags.muted_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,5],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["plugin-outlet","hash","i18n","d-icon","tag-chooser","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/tags.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/messages",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"tOzuIScs",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n  "],[8,[39,0],null,[["@class","@desktopClass"],["messages-nav","nav-stacked action-list"]],[["default"],[[[[1,"\\n    "],[10,"li"],[12],[1,"\\n      "],[8,[39,1],null,[["@route","@model"],["group.messages.inbox",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,2],["user.messages.inbox"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,"li"],[12],[1,"\\n      "],[8,[39,1],null,[["@route","@model"],["group.messages.archive",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,2],["user.messages.archive"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[46,[28,[37,4],null,null],null,null,null],[1,"\\n"],[13]],[],false,["mobile-nav","link-to","i18n","component","-outlet"]]',moduleName:"discourse/templates/group/messages.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/group/permissions",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"1L1yCrHV",block:'[[[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n"],[41,[30,0,["model","permissions"]],[[[1,"    "],[10,"label"],[14,0,"group-category-permissions-desc"],[12],[1,"\\n      "],[1,[28,[35,1],["groups.permissions.description"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,"table"],[14,0,"group-category-permissions"],[12],[1,"\\n      "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["model","permissions"]]],null]],null],null,[[[1,"          "],[10,"tr"],[12],[1,"\\n            "],[10,"td"],[12],[1,[28,[35,4],[[30,1,["category"]]],null]],[13],[1,"\\n            "],[10,"td"],[12],[1,[30,1,["description"]]],[13],[1,"\\n          "],[13],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,1],["groups.permissions.none"],null]],[1,"\\n"]],[]]],[13]],["permission"],false,["if","i18n","each","-track-array","category-link"]]',moduleName:"discourse/templates/group/permissions.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/groups/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"v+Z1h7FC",block:'[[[8,[39,0],null,[["@name","@connectorTagName"],["before-groups-index-container","div"]],null],[1,"\\n\\n"],[8,[39,1],null,[["@pageClass"],["groups"]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"groups-header"],[12],[1,"\\n"],[41,[30,0,["currentUser","can_create_group"]],[[[1,"      "],[8,[39,3],null,[["@action","@class","@icon","@label"],[[28,[37,4],[[30,0],"new"],null],"btn-default groups-header-new pull-right","plus","admin.groups.new.title"]],null],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"groups-header-filters"],[12],[1,"\\n      "],[8,[39,5],[[16,"placeholder",[28,[37,6],["groups.index.all"],null]],[24,0,"groups-header-filters-name no-blur"],[16,"aria-description",[28,[37,6],["groups.index.search_results"],null]],[4,[38,8],["input",[28,[37,4],[[30,0],"onFilterChanged"],[["value"],["target.value"]]]],null]],[["@value","@type"],[[28,[37,7],[[30,0,["filter"]]],null],"search"]],null],[1,"\\n\\n      "],[8,[39,9],null,[["@value","@content","@class","@onChange","@options"],[[30,0,["type"]],[30,0,["types"]],"groups-header-filters-type",[28,[37,4],[[30,0],[28,[37,10],[[30,0,["type"]]],null]],null],[28,[37,11],null,[["clearable","none"],[true,"groups.index.filter"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,12],null,[["@condition"],[[30,0,["isLoading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["groups"]],[[[1,"      "],[8,[39,13],null,[["@selector","@action"],[".groups-boxes .group-box",[28,[37,4],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"container"],[12],[1,"\\n          "],[10,0],[14,0,"groups-boxes"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["groups"]]],null]],null],null,[[[1,"              "],[8,[39,16],[[24,0,"group-box"],[16,"data-group-name",[30,1,["name"]]]],[["@route","@model"],["group.members",[30,1,["name"]]]],[["default"],[[[[1,"\\n                "],[10,0],[14,0,"group-box-inner"],[12],[1,"\\n                  "],[10,0],[14,0,"group-info-wrapper"],[12],[1,"\\n"],[41,[30,1,["flair_url"]],[[[1,"                      "],[10,1],[14,0,"group-avatar-flair"],[12],[1,"\\n                        "],[8,[39,17],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,1,["name"]],[30,1,["flair_url"]],[30,1,["flair_bg_color"]],[30,1,["flair_color"]]]],null],[1,"\\n                      "],[13],[1,"\\n"]],[]],null],[1,"\\n                    "],[10,1],[14,0,"group-info"],[12],[1,"\\n                      "],[8,[39,18],null,[["@group"],[[30,1]]],null],[1,"\\n                      "],[10,0],[14,0,"group-user-count"],[12],[1,[28,[35,19],["user"],null]],[1,[30,1,["user_count"]]],[13],[1,"\\n                    "],[13],[1,"\\n                  "],[13],[1,"\\n\\n                  "],[10,0],[14,0,"group-description"],[12],[1,[28,[35,20],[[30,1,["bio_excerpt"]]],null]],[13],[1,"\\n\\n                  "],[10,0],[14,0,"group-membership"],[12],[1,"\\n                    "],[8,[39,21],null,[["@tagName","@model","@showLogin"],["",[30,1],[28,[37,22],["showLogin"],null]]],[["default"],[[[[1,"\\n"],[41,[30,1,["is_group_owner"]],[[[1,"                        "],[10,1],[14,0,"is-group-owner"],[12],[1,"\\n                          "],[1,[28,[35,19],["shield-alt"],null]],[1,"\\n                          "],[1,[28,[35,6],["groups.index.is_group_owner"],null]],[1,"\\n                        "],[13],[1,"\\n"]],[]],[[[41,[30,1,["is_group_user"]],[[[1,"                        "],[10,1],[14,0,"is-group-member"],[12],[1,"\\n                          "],[1,[28,[35,19],["check"],null]],[1,"\\n                          "],[1,[28,[35,6],["groups.index.is_group_user"],null]],[1,"\\n                        "],[13],[1,"\\n"]],[]],[[[41,[30,1,["public_admission"]],[[[1,"                        "],[1,[28,[35,6],["groups.index.public"],null]],[1,"\\n"]],[]],[[[41,[30,1,["isPrivate"]],[[[1,"                        "],[1,[28,[35,19],["far-eye-slash"],null]],[1,"\\n                        "],[1,[28,[35,6],["groups.index.private"],null]],[1,"\\n"]],[]],[[[41,[30,1,["automatic"]],[[[1,"                          "],[1,[28,[35,6],["groups.index.automatic"],null]],[1,"\\n"]],[]],[[[1,"                          "],[1,[28,[35,19],["ban"],null]],[1,"\\n                          "],[1,[28,[35,6],["groups.index.closed"],null]],[1,"\\n"]],[]]],[1,"                      "]],[]]]],[]]]],[]]]],[]]],[1,"                    "]],[]]]]],[1,"\\n\\n                    "],[10,1],[12],[1,"\\n                      "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["group-index-box-after","div",[28,[37,11],null,[["model"],[[30,1]]]]]],null],[1,"\\n                    "],[13],[1,"\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n              "]],[]]]]],[1,"\\n"]],[1]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n      "],[8,[39,12],null,[["@condition"],[[30,0,["groups","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[10,2],[14,"role","status"],[12],[1,[28,[35,6],["groups.index.empty"],null]],[13],[1,"\\n"]],[]]],[1,"  "]],[]]]]],[1,"\\n\\n"]],[]]]]],[1,"\\n\\n"],[8,[39,0],null,[["@name","@connectorTagName"],["after-groups-index-container","div"]],null]],["group"],false,["plugin-outlet","d-section","if","d-button","action","input","i18n","readonly","on","combo-box","mut","hash","conditional-loading-spinner","load-more","each","-track-array","link-to","avatar-flair","groups-info","d-icon","html-safe","group-membership-button","route-action"]]',moduleName:"discourse/templates/groups/index.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/groups/new",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"bAPu0z3q",block:'[[[8,[39,0],null,[["@pageClass"],["groups-new"]],[["default"],[[[[1,"\\n  "],[10,"h1"],[12],[1,[28,[35,1],["admin.groups.new.title"],null]],[13],[1,"\\n\\n  "],[10,"hr"],[12],[13],[1,"\\n\\n  "],[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n    "],[8,[39,2],null,[["@model","@disableSave"],[[30,0,["model"]],[30,0,["saving"]]]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label"],[14,"for","owner-selector"],[12],[1,[28,[35,1],["admin.groups.add_owners"],null]],[13],[1,"\\n\\n        "],[8,[39,3],null,[["@class","@id","@value","@onChange","@options"],["input-xxlarge","owner-selector",[30,0,["splitOwnerUsernames"]],[28,[37,4],[[30,0],"updateOwnerUsernames"],null],[28,[37,5],null,[["filterPlaceholder"],["groups.selector_placeholder"]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label"],[14,"for","member-selector"],[12],[1,[28,[35,1],["groups.members.title"],null]],[13],[1,"\\n\\n        "],[8,[39,3],null,[["@class","@id","@value","@onChange","@options"],["input-xxlarge","member-selector",[30,0,["splitUsernames"]],[28,[37,4],[[30,0],"updateUsernames"],null],[28,[37,5],null,[["filterPlaceholder"],["groups.selector_placeholder"]]]]],null],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,6],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n    "],[8,[39,7],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n      "],[8,[39,8],null,[["@action","@type","@disabled","@class","@label"],[[28,[37,4],[[30,0],"save"],null],"submit",[30,0,["saving"]],"btn btn-primary group-form-save","admin.groups.new.create"]],null],[1,"\\n\\n      "],[8,[39,9],null,[["@route"],["groups"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,1],["cancel"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],[],false,["d-section","i18n","groups-form-profile-fields","email-group-user-chooser","action","hash","groups-form-membership-fields","groups-form-interaction-fields","d-button","link-to"]]',moduleName:"discourse/templates/groups/new.hbs",isStrictMode:!1})
e.default=i}))
define("discourse/templates/hashtag-autocomplete",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'        <li class="hashtag-autocomplete__option">\n          <a class="hashtag-autocomplete__link" title="'+l(a(i,"get").call(s,"option.description",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:55},end:{line:6,column:77}}}))+'" href>'+(null!=(o=a(i,"get").call(s,"option.icon",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:84},end:{line:6,column:101}}}))?o:"")+'<span class="hashtag-autocomplete__text">'+l(a(i,"get").call(s,"option.text",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:142},end:{line:6,column:157}}}))+(null!=(o=a(i,"if").call(s,"option.secondary_text",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:157},end:{line:6,column:266}}}))?o:"")+"</span></span>\n          </a>\n        </li>\n"},2:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'<span class="hashtag-autocomplete__meta-text">('+e.escapeExpression(o(i,"get").call(null!=t?t:e.nullContext||{},"option.secondary_text",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:233},end:{line:6,column:258}}}))+")"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return"<div class='autocomplete hashtag-autocomplete'>\n  <div class=\"hashtag-autocomplete__fadeout\">\n    <ul>\n"+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:4,column:6},end:{line:9,column:15}}}))?o:"")+"    </ul>\n  </div>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("hashtag-autocomplete",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/hide-modal",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"4/3+QeFR",block:"[[],[],false,[]]",moduleName:"discourse/templates/hide-modal.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/invites",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"dFjK5FDi",block:'[[[46,[28,[37,1],null,null],null,null,null]],[],false,["component","-outlet"]]',moduleName:"discourse/templates/invites.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/invites/show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"ziACTAds",block:'[[[8,[39,0],null,[["@pageClass"],["invite"]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"container invites-show clearfix"],[12],[1,"\\n    "],[10,0],[14,0,"login-welcome-header"],[12],[1,"\\n      "],[10,"h1"],[14,0,"login-title"],[12],[1,[30,0,["welcomeTitle"]]],[13],[1,"\\n      "],[10,"img"],[15,"src",[30,0,["wavingHandURL"]]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n"],[41,[51,[30,0,["successMessage"]]],[[[1,"        "],[10,2],[14,0,"login-subheader"],[12],[1,[30,0,["subheaderMessage"]]],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,0],[15,0,[52,[30,0,["successMessage"]],"invite-success","invite-form"]],[12],[1,"\\n      "],[10,0],[14,0,"two-col"],[12],[1,"\\n        "],[10,0],[14,0,"col-image"],[12],[1,"\\n          "],[10,"img"],[15,"src",[30,0,["inviteImageUrl"]]],[15,"alt",[28,[37,3],["invites.emoji"],null]],[12],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"col-form"],[12],[1,"\\n"],[41,[30,0,["successMessage"]],[[[1,"            "],[10,0],[14,0,"success-info"],[12],[1,"\\n              "],[10,2],[12],[1,[28,[35,4],[[30,0,["successMessage"]]],null]],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],[[[1,"            "],[10,2],[12],[1,[28,[35,3],["invites.invited_by"],null]],[13],[1,"\\n            "],[10,2],[12],[8,[39,5],null,[["@user"],[[30,0,["invitedBy"]]]],null],[13],[1,"\\n\\n"],[41,[30,0,["associateHtml"]],[[[1,"              "],[10,2],[14,0,"create-account-associate-link"],[12],[1,"\\n                "],[1,[28,[35,4],[[30,0,["associateHtml"]]],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["isInviteLink"]]],[[[1,"              "],[10,2],[14,0,"email-message"],[12],[1,"\\n                "],[1,[28,[35,4],[[30,0,["yourEmailMessage"]]],null]],[1,"\\n"],[41,[30,0,["showSocialLoginAvailable"]],[[[1,"                  "],[1,[28,[35,3],["invites.social_login_available"],null]],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["externalAuthsOnly"]],[[[41,[30,0,["authOptions"]],[[[41,[51,[30,0,["isInviteLink"]]],[[[1,"                  "],[8,[39,6],null,[["@validation","@id"],[[30,0,["emailValidation"]],"account-email-validation"]],null],[1,"\\n"]],[]],null]],[]],[[[1,"                "],[8,[39,7],null,[["@externalLogin"],[[28,[37,8],[[30,0],"externalLogin"],null]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["discourseConnectEnabled"]],[[[1,"              "],[10,3],[14,0,"btn btn-primary discourse-connect raw-link"],[15,6,[30,0,["ssoPath"]]],[12],[1,"\\n                "],[1,[28,[35,3],["continue"],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["shouldDisplayForm"]],[[[1,"              "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["isInviteLink"]],[[[1,"                  "],[10,0],[14,0,"input email-input input-group"],[12],[1,"\\n                    "],[8,[39,9],[[24,1,"new-account-email"],[24,3,"email"],[16,0,[28,[37,10],[[30,0,["email"]]],null]],[24,"autofocus","autofocus"],[16,"disabled",[30,0,["externalAuthsOnly"]]]],[["@type","@value"],["email",[30,0,["email"]]]],null],[1,"\\n                    "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-email"],[12],[1,"\\n                      "],[1,[28,[35,3],["user.email.title"],null]],[1,"\\n                      "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n                    "],[13],[1,"\\n                    "],[8,[39,6],null,[["@validation","@id"],[[30,0,["emailValidation"]],"account-email-validation"]],null],[1,"\\n                    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,3],["user.email.instructions"],null]],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"\\n                "],[10,0],[14,0,"input username-input input-group"],[12],[1,"\\n                  "],[8,[39,9],[[16,0,[28,[37,10],[[30,0,["accountUsername"]]],null]],[24,1,"new-account-username"],[24,3,"username"],[16,"maxlength",[30,0,["maxUsernameLength"]]],[24,"autocomplete","off"]],[["@value"],[[30,0,["accountUsername"]]]],null],[1,"\\n                  "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,"\\n                    "],[1,[28,[35,3],["user.username.title"],null]],[1,"\\n                    "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n                  "],[13],[1,"\\n                  "],[8,[39,6],null,[["@validation","@id"],[[30,0,["usernameValidation"]],"username-validation"]],null],[1,"\\n                  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,3],["user.username.instructions"],null]],[13],[1,"\\n                "],[13],[1,"\\n\\n"],[41,[30,0,["fullnameRequired"]],[[[1,"                  "],[10,0],[14,0,"input name-input input-group"],[12],[1,"\\n                    "],[8,[39,9],[[16,0,[28,[37,10],[[30,0,["accountName"]]],null]],[24,1,"new-account-name"],[24,3,"name"]],[["@value"],[[30,0,["accountName"]]]],null],[1,"\\n                    "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-name"],[12],[1,"\\n                      "],[1,[28,[35,3],["invites.name_label"],null]],[1,"\\n"],[41,[30,0,["siteSettings","full_name_required"]],[[[1,"                        "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[1,"                    "],[13],[1,"\\n                    "],[10,0],[14,0,"instructions"],[12],[1,[30,0,["nameInstructions"]]],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["externalAuthsOnly"]]],[[[1,"                  "],[10,0],[14,0,"input password-input input-group"],[12],[1,"\\n                    "],[8,[39,11],null,[["@value","@class","@type","@id","@capsLockOn"],[[30,0,["accountPassword"]],[28,[37,10],[[30,0,["accountPassword"]]],null],[52,[30,0,["maskPassword"]],"password","text"],"new-account-password",[30,0,["capsLockOn"]]]],null],[1,"\\n                    "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,"\\n                      "],[1,[28,[35,3],["invites.password_label"],null]],[1,"\\n                      "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n                    "],[13],[1,"\\n                    "],[10,0],[14,0,"create-account__password-info"],[12],[1,"\\n                      "],[10,0],[14,0,"create-account__password-tip-validation"],[12],[1,"\\n                        "],[8,[39,6],null,[["@validation","@id"],[[30,0,["passwordValidation"]],"password-validation"]],null],[1,"\\n                        "],[10,1],[14,0,"more-info"],[12],[1,[30,0,["passwordInstructions"]]],[13],[1,"\\n                        "],[10,0],[15,0,[29,["caps-lock-warning\\n                            ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n                          "],[1,[28,[35,12],["exclamation-triangle"],null]],[1,"\\n                          "],[1,[28,[35,3],["login.caps_lock_warning"],null]],[1,"\\n                        "],[13],[1,"\\n                      "],[13],[1,"\\n                      "],[8,[39,13],null,[["@maskPassword","@togglePasswordMask","@parentController"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]],"invites-show"]],null],[1,"\\n                    "],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["userFields"]],[[[1,"                  "],[10,0],[14,0,"user-fields"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["userFields"]]],null]],null],null,[[[1,"                      "],[10,0],[14,0,"input-group"],[12],[1,"\\n                        "],[8,[39,16],null,[["@field","@value","@class"],[[30,1,["field"]],[30,1,["value"]],[28,[37,10],[[30,1,["value"]]],null]]],null],[1,"\\n                      "],[13],[1,"\\n"]],[1]],null],[1,"                  "],[13],[1,"\\n"]],[]],null],[1,"\\n                "],[10,0],[14,0,"invitation-cta"],[12],[1,"\\n                  "],[8,[39,17],null,[["@class","@action","@type","@disabled","@label"],["btn-primary invitation-cta__accept",[28,[37,8],[[30,0],"submit"],null],"submit",[30,0,["submitDisabled"]],"invites.accept_invite"]],null],[1,"\\n                  "],[10,0],[14,0,"invitation-cta__info"],[12],[1,"\\n                    "],[10,1],[14,0,"invitation-cta__signed-up"],[12],[1,[28,[35,3],["login.previous_sign_up"],null]],[13],[1,"\\n                    "],[8,[39,17],null,[["@action","@class","@label"],[[28,[37,18],["showLogin"],null],"btn-flat invitation-cta__sign-in","log_in"]],null],[1,"\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n\\n                "],[10,0],[14,0,"disclaimer"],[12],[1,"\\n                  "],[1,[28,[35,4],[[30,0,["disclaimerHtml"]]],null]],[1,"\\n                "],[13],[1,"\\n\\n"],[41,[30,0,["errorMessage"]],[[[1,"                  "],[10,"br"],[12],[13],[10,"br"],[12],[13],[1,"\\n                  "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["existingUserRedeeming"]],[[[41,[30,0,["existingUserCanRedeem"]],[[[1,"                "],[8,[39,17],null,[["@class","@action","@type","@disabled","@label"],["btn-primary",[28,[37,8],[[30,0],"submit"],null],"submit",[30,0,["submitDisabled"]],"invites.accept_invite"]],null],[1,"\\n"]],[]],[[[1,"                "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["existingUserCanRedeemError"]]],[13],[1,"\\n"]],[]]]],[]],null]],[]]],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["f"],false,["d-section","unless","if","i18n","html-safe","user-info","input-tip","login-buttons","action","input","value-entered","password-field","d-icon","toggle-password-mask","each","-track-array","user-field","d-button","route-action"]]',moduleName:"discourse/templates/invites/show.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/list/action-list",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"<div class='post-actions "+l(a(i,"get").call(s,"className",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:25},end:{line:2,column:38}}}))+"'>\n  "+l((a(i,"d-icon")||t&&a(t,"d-icon")||e.hooks.helperMissing).call(s,"icon",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:3,column:2},end:{line:3,column:17}}}))+"\n"+(null!=(o=a(i,"each").call(s,"postNumber","in","postNumbers",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:4,column:2},end:{line:6,column:11}}}))?o:"")+"</div>\n"},2:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"    <a href='"+s(l(i,"get").call(o,"topic.url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:5,column:13},end:{line:5,column:26}}}))+"/"+s(l(i,"get").call(o,"postNumber",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:5,column:27},end:{line:5,column:41}}}))+"'>#"+s(l(i,"get").call(o,"postNumber",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:5,column:44},end:{line:5,column:58}}}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"postNumbers",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:0},end:{line:8,column:7}}}))?o:""},useData:!0});(0,i.addRawTemplate)("list/action-list",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/list/activity-column",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"<"+s(a(i,"get").call(o,"tagName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:1},end:{line:1,column:12}}}))+' class="'+s(a(i,"get").call(o,"class",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:20},end:{line:1,column:29}}}))+" "+s((a(i,"cold-age-class")||t&&a(t,"cold-age-class")||l).call(o,"topic.createdAt",{name:"cold-age-class",hash:{class:"",startDate:"topic.bumpedAt"},hashTypes:{class:"StringLiteral",startDate:"PathExpression"},hashContexts:{class:t,startDate:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:30},end:{line:1,column:98}}}))+' activity" title="'+s((a(i,"html-safe")||t&&a(t,"html-safe")||l).call(o,"topic.bumpedAtTitle",{name:"html-safe",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:116},end:{line:1,column:149}}}))+'">\n  <a class="post-activity" href="'+s(a(i,"get").call(o,"topic.lastPostUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:33},end:{line:2,column:54}}}))+'">'+s((a(i,"raw-plugin-outlet")||t&&a(t,"raw-plugin-outlet")||l).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-relative-date"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:3,column:4},end:{line:3,column:66}}}))+s((a(i,"format-date")||t&&a(t,"format-date")||l).call(o,"topic.bumpedAt",{name:"format-date",hash:{noTitle:"true",format:"tiny"},hashTypes:{noTitle:"StringLiteral",format:"StringLiteral"},hashContexts:{noTitle:t,format:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:4},end:{line:4,column:65}}}))+"</a>\n</"+s(a(i,"get").call(o,"tagName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:2},end:{line:6,column:13}}}))+">\n"},useData:!0});(0,i.addRawTemplate)("list/activity-column",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/list/category-column",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"<td class='category topic-list-data'>"+e.escapeExpression((o(i,"category-link")||t&&o(t,"category-link")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"category",{name:"category-link",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:37},end:{line:1,column:63}}}))+"</td>\n"},useData:!0});(0,i.addRawTemplate)("list/category-column",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/list/participant-groups",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'    <div class="participant-group">\n      <a\n        class="user-group trigger-group-card"\n        href="'+s(l(i,"get").call(o,"group.url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:10,column:14},end:{line:10,column:27}}}))+'"\n        data-group-card="'+s(l(i,"get").call(o,"group.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:11,column:25},end:{line:11,column:39}}}))+'"\n      >\n        '+s((l(i,"d-icon")||t&&l(t,"d-icon")||e.hooks.helperMissing).call(o,"users",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:13,column:8},end:{line:13,column:26}}}))+"\n        "+s(l(i,"get").call(o,"group.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:14,column:8},end:{line:14,column:22}}}))+"\n      </a>\n    </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'<div\n  class="participant-group-wrapper"\n  role="list"\n  aria-label="'+e.escapeExpression((l(i,"i18n")||t&&l(t,"i18n")||e.hooks.helperMissing).call(s,"topic.participant_groups",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:4,column:14},end:{line:4,column:49}}}))+'"\n>\n'+(null!=(o=l(i,"each").call(s,"group","in","groups",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:6,column:2},end:{line:17,column:11}}}))?o:"")+"</div>"},useData:!0});(0,i.addRawTemplate)("list/participant-groups",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/list/post-count-or-badges",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"  "+e.escapeExpression((o(i,"raw")||t&&o(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"topic-post-badges",{name:"raw",hash:{newDotText:"newDotText",url:"topic.lastUnreadUrl",unseen:"topic.unseen",unreadPosts:"topic.unread_posts"},hashTypes:{newDotText:"PathExpression",url:"PathExpression",unseen:"PathExpression",unreadPosts:"PathExpression"},hashContexts:{newDotText:t,url:t,unseen:t,unreadPosts:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:2,column:2},end:{line:2,column:126}}}))+"\n"},3:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"  "+e.escapeExpression((o(i,"raw")||t&&o(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.posts-count-column",{name:"raw",hash:{tagName:"div",topic:"topic"},hashTypes:{tagName:"StringLiteral",topic:"PathExpression"},hashContexts:{tagName:t,topic:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:4,column:2},end:{line:4,column:61}}}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"view.showBadges",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?o:""},useData:!0});(0,i.addRawTemplate)("list/post-count-or-badges",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/list/posters-column",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o
return null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"poster.moreCount",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,r,0),inverse:e.program(4,r,0),types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:3,column:2},end:{line:7,column:9}}}))?o:""},2:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'    <a class="posters-more-count">'+e.escapeExpression(o(i,"get").call(null!=t?t:e.nullContext||{},"poster.moreCount",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:34},end:{line:4,column:54}}}))+"</a>\n"},4:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'    <a href="'+s(l(i,"get").call(o,"poster.user.path",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:13},end:{line:6,column:33}}}))+'" data-user-card="'+s(l(i,"get").call(o,"poster.user.username",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:51},end:{line:6,column:75}}}))+'" class="'+s(l(i,"get").call(o,"poster.extraClasses",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:84},end:{line:6,column:107}}}))+'">'+s((l(i,"avatar")||t&&l(t,"avatar")||e.hooks.helperMissing).call(o,"poster",{name:"avatar",hash:{imageSize:"small",namePath:"user.name",usernamePath:"user.username",avatarTemplatePath:"user.avatar_template"},hashTypes:{imageSize:"StringLiteral",namePath:"StringLiteral",usernamePath:"StringLiteral",avatarTemplatePath:"StringLiteral"},hashContexts:{imageSize:t,namePath:t,usernamePath:t,avatarTemplatePath:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:109},end:{line:6,column:236}}}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return"<td class='posters topic-list-data'>\n"+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"each").call(null!=t?t:e.nullContext||{},"poster","in","posters",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:2,column:0},end:{line:8,column:9}}}))?o:"")+"</td>\n"},useData:!0});(0,i.addRawTemplate)("list/posters-column",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/list/posts-count-column",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"<"+s(a(i,"get").call(o,"view.tagName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:1},end:{line:1,column:17}}}))+" class='num posts-map posts "+s(a(i,"get").call(o,"view.likesHeat",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:45},end:{line:1,column:63}}}))+" topic-list-data' title='"+s(a(i,"get").call(o,"view.title",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:88},end:{line:1,column:102}}}))+"'>\n  <button class=\"btn-link posts-map badge-posts "+s(a(i,"get").call(o,"view.likesHeat",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:48},end:{line:2,column:66}}}))+'" aria-label="'+s(a(i,"get").call(o,"view.title",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:80},end:{line:2,column:94}}}))+'">\n    '+s((a(i,"raw-plugin-outlet")||t&&a(t,"raw-plugin-outlet")||l).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-reply-count"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:3,column:4},end:{line:3,column:62}}}))+"\n    "+s((a(i,"number")||t&&a(t,"number")||l).call(o,"topic.replyCount",{name:"number",hash:{noTitle:"true"},hashTypes:{noTitle:"StringLiteral"},hashContexts:{noTitle:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:4},end:{line:4,column:46}}}))+"\n  </button>\n</"+s(a(i,"get").call(o,"view.tagName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:2},end:{line:6,column:18}}}))+">\n"},useData:!0});(0,i.addRawTemplate)("list/posts-count-column",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/list/topic-excerpt",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'  <a href="'+l(a(i,"get").call(s,"topic.url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:11},end:{line:2,column:24}}}))+'" class="topic-excerpt">\n    '+l((a(i,"dir-span")||t&&a(t,"dir-span")||e.hooks.helperMissing).call(s,"topic.escapedExcerpt",{name:"dir-span",hash:{htmlSafe:"true"},hashTypes:{htmlSafe:"StringLiteral"},hashContexts:{htmlSafe:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:3,column:4},end:{line:3,column:53}}}))+"\n"+(null!=(o=a(i,"if").call(s,"topic.excerptTruncated",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:4},end:{line:6,column:11}}}))?o:"")+"  </a>\n"},2:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'      <span class="topic-excerpt-more">'+e.escapeExpression((o(i,"i18n")||t&&o(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"read_more",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:5,column:39},end:{line:5,column:59}}}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"topic.hasExcerpt",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:0},end:{line:8,column:7}}}))?o:""},useData:!0});(0,i.addRawTemplate)("list/topic-excerpt",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/list/topic-list-item",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'  <td class="bulk-select topic-list-data">\n    <label for="bulk-select-'+s(l(i,"get").call(o,"topic.id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:5,column:28},end:{line:5,column:40}}}))+'">\n      <input type="checkbox" class="bulk-select" id="bulk-select-'+s(l(i,"get").call(o,"topic.id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:65},end:{line:6,column:77}}}))+'">\n    </label>\n  </td>\n'},3:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return e.escapeExpression((o(i,"topic-featured-link")||t&&o(t,"topic-featured-link")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"topic",{name:"topic-featured-link",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:25,column:6},end:{line:25,column:36}}}))},5:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return e.escapeExpression((o(i,"raw")||t&&o(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"topic-post-badges",{name:"raw",hash:{newDotText:"newDotText",url:"topic.lastUnreadUrl",unseen:"topic.unseen",unreadPosts:"topic.unread_posts"},hashTypes:{newDotText:"PathExpression",url:"PathExpression",unseen:"PathExpression",unreadPosts:"PathExpression"},hashContexts:{newDotText:t,url:t,unseen:t,unreadPosts:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:32,column:6},end:{line:32,column:131}}}))},7:function(e,t,i,n,r){var o
return null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"unless").call(null!=t?t:e.nullContext||{},"topic.isPinnedUncategorized",{name:"unless",hash:{},hashTypes:{},hashContexts:{},fn:e.program(8,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:37,column:6},end:{line:40,column:17}}}))?o:""},8:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return l((a(i,"raw-plugin-outlet")||t&&a(t,"raw-plugin-outlet")||s).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-category"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:38,column:8},end:{line:38,column:64}}}))+"\n        "+l((a(i,"category-link")||t&&a(t,"category-link")||s).call(o,"topic.category",{name:"category-link",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:39,column:8},end:{line:39,column:40}}}))+"\n"},10:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"      "+e.escapeExpression((o(i,"raw")||t&&o(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.participant-groups",{name:"raw",hash:{groups:"participantGroups"},hashTypes:{groups:"PathExpression"},hashContexts:{groups:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:44,column:6},end:{line:44,column:64}}}))+"\n"},12:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"    "+e.escapeExpression((o(i,"raw")||t&&o(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.topic-excerpt",{name:"raw",hash:{topic:"topic"},hashTypes:{topic:"PathExpression"},hashContexts:{topic:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:49,column:4},end:{line:49,column:44}}}))+"\n"},14:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"  "+e.escapeExpression((o(i,"raw")||t&&o(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.posters-column",{name:"raw",hash:{posters:"topic.featuredUsers"},hashTypes:{posters:"PathExpression"},hashContexts:{posters:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:58,column:2},end:{line:58,column:59}}}))+"\n"},16:function(e,t,i,n,r){var o
return'  <td class="num likes topic-list-data">\n'+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"hasLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(17,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:65,column:4},end:{line:69,column:11}}}))?o:"")+"  </td>\n"},17:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"      <a href='"+s(a(i,"get").call(o,"topic.summaryUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:66,column:15},end:{line:66,column:35}}}))+"'>\n        "+s((a(i,"number")||t&&a(t,"number")||l).call(o,"topic.like_count",{name:"number",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:67,column:8},end:{line:67,column:35}}}))+" "+s((a(i,"d-icon")||t&&a(t,"d-icon")||l).call(o,"heart",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:67,column:36},end:{line:67,column:54}}}))+"\n      </a>\n"},19:function(e,t,i,n,r){var o
return'  <td class="num likes">\n'+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"hasOpLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(20,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:75,column:4},end:{line:79,column:11}}}))?o:"")+"  </td>\n"},20:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"      <a href='"+s(a(i,"get").call(o,"topic.summaryUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:76,column:15},end:{line:76,column:35}}}))+"'>\n        "+s((a(i,"number")||t&&a(t,"number")||l).call(o,"topic.op_like_count",{name:"number",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:77,column:8},end:{line:77,column:38}}}))+" "+s((a(i,"d-icon")||t&&a(t,"d-icon")||l).call(o,"heart",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:77,column:39},end:{line:77,column:57}}}))+"\n      </a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-columns"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:1,column:0},end:{line:1,column:55}}}))+"\n\n"+(null!=(o=u(i,"if").call(s,"bulkSelectEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:3,column:0},end:{line:9,column:7}}}))?o:"")+"\n<td class='main-link clearfix topic-list-data' colspan=\"1\">"+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-link"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:19,column:2},end:{line:19,column:54}}}))+"\n  <span class='link-top-line'>"+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-status"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:21,column:4},end:{line:21,column:58}}}))+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"topic-status",{name:"raw",hash:{topic:"topic"},hashTypes:{topic:"PathExpression"},hashContexts:{topic:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:22,column:4},end:{line:22,column:39}}}))+a((u(i,"topic-link")||t&&u(t,"topic-link")||l).call(s,"topic",{name:"topic-link",hash:{class:"raw-link raw-topic-link"},hashTypes:{class:"StringLiteral"},hashContexts:{class:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:23,column:4},end:{line:23,column:57}}}))+(null!=(o=u(i,"if").call(s,"topic.featured_link",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:24,column:4},end:{line:26,column:12}}}))?o:"")+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-after-title"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:27,column:4},end:{line:27,column:56}}}))+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"list.unread-indicator",{name:"raw",hash:{unreadClass:"unreadClass",topicId:"topic.id",includeUnreadIndicator:"includeUnreadIndicator"},hashTypes:{unreadClass:"PathExpression",topicId:"PathExpression",includeUnreadIndicator:"PathExpression"},hashContexts:{unreadClass:t,topicId:t,includeUnreadIndicator:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:28,column:4},end:{line:30,column:61}}}))+(null!=(o=u(i,"if").call(s,"showTopicPostBadges",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(5,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:31,column:4},end:{line:33,column:12}}}))?o:"")+'  </span>\n  <div class="link-bottom-line">\n'+(null!=(o=u(i,"unless").call(s,"hideCategory",{name:"unless",hash:{},hashTypes:{},hashContexts:{},fn:e.program(7,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:36,column:4},end:{line:41,column:15}}}))?o:"")+"    "+a((u(i,"discourse-tags")||t&&u(t,"discourse-tags")||l).call(s,"topic",{name:"discourse-tags",hash:{tagsForUser:"tagsForUser",mode:"list"},hashTypes:{tagsForUser:"PathExpression",mode:"StringLiteral"},hashContexts:{tagsForUser:t,mode:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:42,column:4},end:{line:42,column:64}}}))+"\n"+(null!=(o=u(i,"if").call(s,"participantGroups",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(10,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:43,column:4},end:{line:45,column:11}}}))?o:"")+"    "+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"list.action-list",{name:"raw",hash:{icon:"heart",className:"likes",postNumbers:"topic.liked_post_numbers",topic:"topic"},hashTypes:{icon:"StringLiteral",className:"StringLiteral",postNumbers:"PathExpression",topic:"PathExpression"},hashContexts:{icon:t,className:t,postNumbers:t,topic:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:46,column:4},end:{line:46,column:110}}}))+"\n  </div>\n"+(null!=(o=u(i,"if").call(s,"expandPinned",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(12,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:48,column:2},end:{line:50,column:9}}}))?o:"")+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-main-link-bottom"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:52,column:2},end:{line:52,column:59}}}))+"\n</td>"+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-after-main-link"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:55,column:0},end:{line:55,column:56}}}))+"\n\n"+(null!=(o=u(i,"if").call(s,"showPosters",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(14,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:57,column:0},end:{line:59,column:7}}}))?o:"")+"\n"+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"list.posts-count-column",{name:"raw",hash:{topic:"topic"},hashTypes:{topic:"PathExpression"},hashContexts:{topic:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:61,column:0},end:{line:61,column:45}}}))+"\n\n"+(null!=(o=u(i,"if").call(s,"showLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(16,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:63,column:0},end:{line:71,column:7}}}))?o:"")+"\n"+(null!=(o=u(i,"if").call(s,"showOpLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(19,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:73,column:0},end:{line:81,column:7}}}))?o:"")+'\n<td class="num views '+a(u(i,"get").call(s,"topic.viewsHeat",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:83,column:21},end:{line:83,column:40}}}))+' topic-list-data">\n  '+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-view-count"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:84,column:2},end:{line:84,column:59}}}))+"\n  "+a((u(i,"number")||t&&u(t,"number")||l).call(s,"topic.views",{name:"number",hash:{numberKey:"views_long"},hashTypes:{numberKey:"StringLiteral"},hashContexts:{numberKey:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:85,column:2},end:{line:85,column:47}}}))+"\n</td>\n\n"+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"list.activity-column",{name:"raw",hash:{tagName:"td",class:"num topic-list-data",topic:"topic"},hashTypes:{tagName:"StringLiteral",class:"StringLiteral",topic:"PathExpression"},hashContexts:{tagName:t,class:t,topic:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:88,column:0},end:{line:88,column:83}}}))+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-after-columns"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:90,column:0},end:{line:90,column:54}}}))+"\n"},useData:!0});(0,i.addRawTemplate)("list/topic-list-item",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/list/unread-indicator",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"&nbsp;<span class='badge badge-notification unread-indicator indicator-topic-"+s(a(i,"get").call(o,"topicId",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:79},end:{line:2,column:90}}}))+" "+s(a(i,"get").call(o,"unreadClass",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:91},end:{line:2,column:106}}}))+"' title='"+s((a(i,"i18n")||t&&a(t,"i18n")||l).call(o,"topic.unread_indicator",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:2,column:115},end:{line:2,column:148}}}))+"'>"+s((a(i,"d-icon")||t&&a(t,"d-icon")||l).call(o,"asterisk",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:3,column:4},end:{line:3,column:26}}}))+"\n  </span>"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"includeUnreadIndicator",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:0},end:{line:5,column:8}}}))?o:""},useData:!0});(0,i.addRawTemplate)("list/unread-indicator",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/list/visited-line",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'  <tr class=\'topic-list-item-separator\'>\n    <td class="topic-list-data" colspan="6">\n      <span>\n        '+e.escapeExpression((o(i,"i18n")||t&&o(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"topics.new_messages_marker",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:5,column:8},end:{line:5,column:45}}}))+"\n      </span>\n    </td>\n  </tr>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"view.isLastVisited",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:0},end:{line:9,column:7}}}))?o:""},useData:!0});(0,i.addRawTemplate)("list/visited-line",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/loading",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"Q3oIf9VU",block:'[[[1,[34,0]]],[],false,["loading-spinner"]]',moduleName:"discourse/templates/loading.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/login-preferences",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"9T8DJrka",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n  "],[10,"h2"],[12],[1,[28,[35,0],["login.to_continue"],null]],[13],[1,"\\n\\n  "],[10,2],[14,5,"margin-top: 1em"],[12],[1,[28,[35,0],["login.preferences"],null]],[13],[1,"\\n\\n  "],[8,[39,1],null,[["@class","@action","@label"],["btn-primary",[28,[37,2],["showLogin"],null],"log_in"]],null],[1,"\\n"],[13]],[],false,["i18n","d-button","route-action"]]',moduleName:"discourse/templates/login-preferences.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/login",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"m1R7M2nC",block:'[[[8,[39,0],null,[["@bodyClass","@class"],["static-login","container"]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n    "],[10,0],[14,0,"login-welcome"],[12],[1,"\\n      "],[8,[39,1],null,[["@name","@outletArgs"],["above-login",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[8,[39,1],null,[["@name"],["above-static"]],null],[1,"\\n\\n      "],[10,0],[14,0,"login-content"],[12],[1,"\\n        "],[1,[28,[35,3],[[30,0,["model","html"]]],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,1],null,[["@name"],["below-static"]],null],[1,"\\n      "],[8,[39,1],null,[["@name","@outletArgs"],["below-login",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n      "],[10,0],[14,0,"body-page-button-container"],[12],[1,"\\n"],[41,[30,0,["application","canSignUp"]],[[[1,"          "],[8,[39,5],null,[["@action","@class","@label"],[[28,[37,6],["showCreateAccount"],null],"btn-primary sign-up-button","sign_up"]],null],[1,"\\n"]],[]],null],[1,"\\n        "],[8,[39,5],null,[["@action","@class","@icon","@label"],[[28,[37,6],["showLogin"],null],"btn-primary login-button","user","log_in"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],[],false,["d-section","plugin-outlet","hash","html-safe","if","d-button","route-action"]]',moduleName:"discourse/templates/login.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/mobile/components/categories-only",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"pdomExhe",block:'[[[41,[30,0,["categories"]],[[[41,[30,0,["filteredCategories"]],[[[1,"    "],[10,0],[15,0,[29,["category-list ",[52,[30,0,["showTopics"]],"with-topics"]]]],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["filteredCategories"]]],null]],null],null,[[[1,"        "],[8,[39,3],null,[["@category","@showTopics"],[[30,1],[30,0,["showTopics"]]]],null],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["mutedCategories"]],[[[1,"    "],[10,0],[14,0,"muted-categories"],[12],[1,"\\n      "],[11,3],[24,6,""],[24,0,"muted-categories-link"],[4,[38,4],["click",[30,0,["toggleShowMuted"]]],null],[12],[1,"\\n        "],[10,"h3"],[14,0,"muted-categories-heading"],[12],[1,[28,[35,5],["categories.muted"],null]],[13],[1,"\\n"],[41,[30,0,["mutedToggleIcon"]],[[[1,"          "],[1,[28,[35,6],[[30,0,["mutedToggleIcon"]]],null]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "],[10,0],[15,0,[29,["category-list\\n          ",[52,[30,0,["showTopics"]],"with-topics"],"\\n          ",[52,[51,[30,0,["showMutedCategories"]]],"hidden"]]]],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["mutedCategories"]]],null]],null],null,[[[1,"          "],[8,[39,3],null,[["@category","@showTopics","@listType"],[[30,2],[30,0,["showTopics"]],"muted"]],null],[1,"\\n"]],[2]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],null]],["c","c"],false,["if","each","-track-array","parent-category-row","on","i18n","d-icon","unless"]]',moduleName:"discourse/templates/mobile/components/categories-only.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/mobile/components/mobile-nav",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"DftOfT9z",block:'[[[41,[30,0,["selectedHtml"]],[[[1,"  "],[10,"li"],[12],[1,"\\n    "],[11,3],[24,6,""],[24,0,"expander"],[4,[38,1],["click",[30,0,["toggleExpanded"]]],null],[12],[1,"\\n      "],[10,1],[14,0,"selection"],[12],[1,[28,[35,2],[[30,0,["selectedHtml"]]],null]],[13],[1,"\\n      "],[1,[28,[35,3],["caret-down"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[10,"ul"],[15,0,[29,["drop ",[52,[30,0,["expanded"]],"expanded"]]]],[12],[1,"\\n  "],[18,1,null],[1,"\\n"],[13]],["&default"],false,["if","on","html-safe","d-icon","yield"]]',moduleName:"discourse/templates/mobile/components/mobile-nav.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/mobile/components/navigation-bar",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"J7T9O+06",block:'[[[10,"li"],[14,0,"navigation-toggle"],[12],[1,"\\n  "],[11,3],[24,6,""],[24,0,"toggle-link"],[4,[38,0],["click",[30,0,["toggleDrop"]]],null],[12],[1,"\\n    "],[1,[30,0,["selectedNavItem","displayName"]]],[1,"\\n    "],[1,[28,[35,1],["caret-down"],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["expanded"]],[[[1,"  "],[10,"ul"],[14,0,"drop"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["navItems"]]],null]],null],null,[[[1,"      "],[8,[39,5],null,[["@content","@filterMode","@category","@class"],[[30,1],[30,0,["filterMode"]],[30,0,["category"]],[28,[37,6],["nav-item_",[30,1,["name"]]],null]]],null],[1,"\\n"]],[1]],null],[1,"    "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["extra-nav-item","li",[28,[37,8],null,[["category","filterMode"],[[30,0,["category"]],[30,0,["filterMode"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["inline-extra-nav-item","li",[28,[37,8],null,[["category","filterMode"],[[30,0,["category"]],[30,0,["filterMode"]]]]]]],null]],["navItem"],false,["on","d-icon","if","each","-track-array","navigation-item","concat","plugin-outlet","hash"]]',moduleName:"discourse/templates/mobile/components/navigation-bar.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/mobile/components/parent-category-row",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"R3z5M8j9",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1,"  "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-above-each-category",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n  "],[10,0],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,5,[28,[37,3],[[30,0,["category","color"]]],null]],[15,0,[29,["category-list-item category ",[52,[30,0,["isMuted"]],"muted"]]]],[12],[1,"\\n    "],[10,"table"],[14,0,"topic-list"],[12],[1,"\\n      "],[10,"tbody"],[12],[1,"\\n        "],[10,"tr"],[12],[1,"\\n          "],[10,"th"],[14,0,"main-link"],[12],[1,"\\n            "],[8,[39,5],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["category","description_excerpt"]],[[[1,"          "],[10,"tr"],[14,0,"category-description"],[12],[1,"\\n            "],[10,"td"],[14,"colspan","3"],[12],[1,"\\n              "],[1,[28,[35,6],[[30,0,["category","description_excerpt"]]],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["showTopics"]],[[[42,[28,[37,8],[[28,[37,8],[[30,0,["category","topics"]]],null]],null],null,[[[1,"              "],[8,[39,9],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[1]],null]],[]],null]],[]],null],[41,[30,0,["category","isGrandParent"]],[[[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"            "],[8,[39,10],null,[["@category","@listType"],[[30,2],[30,0,["listType"]]]],null],[1,"\\n"]],[2]],null]],[]],[[[41,[30,0,["category","subcategories"]],[[[1,"          "],[10,"tr"],[14,0,"subcategories-list"],[12],[1,"\\n            "],[10,"td"],[12],[1,"\\n              "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"                  "],[8,[39,11],null,[["@category","@listType"],[[30,3],[30,0,["listType"]]]],null],[1,"\\n"]],[3]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "]],[]],null]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,"footer"],[14,0,"clearfix category-topics-count"],[12],[1,"\\n      "],[10,0],[14,0,"category-stat"],[12],[1,"\\n        "],[10,3],[15,6,[30,0,["category","url"]]],[12],[1,"\\n          "],[1,[28,[35,6],[[30,0,["category","statTotal"]]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[41,[51,[30,0,["category","pickAll"]]],[[[1,"        "],[10,0],[14,0,"category-stat"],[12],[1,"\\n          "],[10,3],[15,6,[30,0,["category","url"]]],[12],[1,"\\n            "],[1,[28,[35,6],[[30,0,["category","stat"]]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["t","subcategory","subcategory"],false,["unless","plugin-outlet","hash","border-color","if","category-title-link","html-safe","each","-track-array","mobile-category-topic","sub-category-row","sub-category-item"]]',moduleName:"discourse/templates/mobile/components/parent-category-row.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/mobile/components/sub-category-item",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"Vp+8lcfr",block:'[[[41,[51,[30,0,["isMuted"]]],[[[1,"  "],[1,[28,[35,1],[[30,0,["category"]]],null]],[1,"\\n"]],[]],null]],[],false,["unless","category-link"]]',moduleName:"discourse/templates/mobile/components/sub-category-item.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/mobile/components/sub-category-row",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"Os5z+gIw",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1,"  "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,5,[28,[37,1],[[30,0,["category","color"]]],null]],[15,0,[29,["subcategory-list-item category ",[52,[30,0,["isMuted"]],"muted"]]]],[12],[1,"\\n    "],[10,"td"],[12],[1,"\\n      "],[8,[39,3],null,[["@tagName","@category"],["h4",[30,0,["category"]]]],null],[1,"\\n      "],[10,0],[14,0,"subcategories-list"],[12],[1,"\\n"],[41,[30,0,["category","subcategories"]],[[[1,"          "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"              "],[8,[39,6],null,[["@category","@listType"],[[30,1],[30,0,["listType"]]]],null],[1,"\\n"]],[1]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["subcategory"],false,["unless","border-color","if","category-title-link","each","-track-array","sub-category-item"]]',moduleName:"discourse/templates/mobile/components/sub-category-row.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/mobile/components/subcategories-with-featured-topics",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"/niEzydL",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[1,"  "],[10,0],[14,0,"category-list subcategory-list with-topics"],[12],[1,"\\n    "],[10,0],[14,0,"parent-category"],[12],[1,"\\n      "],[8,[39,2],null,[["@category"],[[30,1]]],null],[1,"\\n      "],[10,1],[14,0,"stat"],[15,"title",[30,1,["statTitle"]]],[12],[1,[28,[35,3],[[30,1,["stat"]]],null]],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["subcategories"]]],null]],null],null,[[[1,"        "],[8,[39,4],null,[["@category","@showTopics"],[[30,2],true]],null],[1,"\\n"]],[2]],[[[1,"        "],[8,[39,4],null,[["@category","@showTopics"],[[30,1],true]],null],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[1]],null]],["category","subCategory"],false,["each","-track-array","category-title-link","html-safe","parent-category-row"]]',moduleName:"discourse/templates/mobile/components/subcategories-with-featured-topics.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/mobile/discovery/topics",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"wnE0WqIU",block:'[[[8,[39,0],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew"],["top",[30,0,["selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,1],[[30,0],"resetNew"],null]]],null],[1,"\\n\\n"],[8,[39,2],null,[["@model","@refresh","@incomingCount"],[[30,0,["model"]],[28,[37,1],[[30,0],"refresh"],null],[30,0,["topicTrackingState","incomingCount"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["top"]],[[[1,"    "],[10,0],[14,0,"top-lists"],[12],[1,"\\n      "],[8,[39,4],null,[["@period","@action","@fullDay"],[[30,0,["period"]],[28,[37,1],[[30,0],"changePeriod"],null],false]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[30,0,["topicTrackingState","hasIncoming"]],[[[1,"      "],[11,3],[24,6,""],[24,0,"alert alert-info clickable"],[4,[38,5],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n        "],[8,[39,6],null,[["@key","@suffix","@count"],["topic_count_",[30,0,["topicTrackingState","filter"]],[30,0,["topicTrackingState","incomingCount"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["hasTopics"]],[[[1,"    "],[8,[39,7],null,[["@ascending","@highlightLastVisited","@showPosters","@canBulkSelect","@toggleBulkSelect","@updateAutoAddTopicsToBulkSelect","@hideCategory","@order","@bulkSelectEnabled","@bulkSelectAction","@selected","@expandGloballyPinned","@expandAllPinned","@category","@topics","@scrollOnLoad","@onScroll"],[[30,0,["ascending"]],true,true,[30,0,["canBulkSelect"]],[28,[37,1],[[30,0],"toggleBulkSelect"],null],[28,[37,1],[[30,0],"updateAutoAddTopicsToBulkSelect"],null],[30,0,["model","hideCategory"]],[30,0,["order"]],[30,0,["bulkSelectEnabled"]],[28,[37,1],[[30,0],"refresh"],null],[30,0,["selected"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,0,["category"]],[30,0,["model","topics"]],true,[30,1,["saveScrollPosition"]]]],null],[1,"\\n"]],[]],null]],[1]]]]],[1,"\\n\\n"],[10,"footer"],[14,0,"topic-list-bottom"],[12],[1,"\\n  "],[8,[39,8],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n"],[41,[30,0,["allLoaded"]],[[[1,"    "],[8,[39,0],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew"],["bottom",[30,0,["selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,1],[[30,0],"resetNew"],null]]],null],[1,"\\n\\n    "],[8,[39,9],null,[["@education","@message"],[[30,0,["footerEducation"]],[30,0,["footerMessage"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["latest"]],[[[41,[30,0,["canCreateTopicOnCategory"]],[[[1,"          "],[8,[39,10],null,[["@action","@text"],[[28,[37,11],["createTopic"],null],"topic.suggest_create_topic"]],null],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["top"]],[[[1,"        "],[1,[28,[35,12],[[28,[37,13],["topic.browse_all_categories_latest_or_top"],[["basePath"],[[28,[37,14],null,null]]]]],null]],[1,"\\n        "],[8,[39,15],null,[["@period","@action"],[[30,0,["period"]],[28,[37,1],[[30,0],"changePeriod"],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,12],[[28,[37,13],["topic.browse_all_categories_latest"],[["basePath"],[[28,[37,14],null,null]]]]],null]],[1,"\\n      "]],[]]]],[]]],[1,"    "]],[]]]]],[1,"\\n"]],[]],null],[13]],["discoveryTopicList"],false,["topic-dismiss-buttons","action","discovery-topics-list","if","period-chooser","on","count-i18n","topic-list","conditional-loading-spinner","footer-message","discourse-linked-text","route-action","html-safe","i18n","base-path","top-period-buttons"]]',moduleName:"discourse/templates/mobile/discovery/topics.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/mobile/list/topic-list-item",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'      <label for="bulk-select-'+s(l(i,"get").call(o,"topic.id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:5,column:30},end:{line:5,column:42}}}))+'">\n        <input type="checkbox" class="bulk-select" id="bulk-select-'+s(l(i,"get").call(o,"topic.id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:67},end:{line:6,column:79}}}))+'">\n      </label>\n'},3:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'      <a href="'+s(l(i,"get").call(o,"topic.lastPostUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:9,column:15},end:{line:9,column:36}}}))+'" data-user-card="'+s(l(i,"get").call(o,"topic.lastPosterUser.username",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:9,column:54},end:{line:9,column:87}}}))+'">'+s((l(i,"avatar")||t&&l(t,"avatar")||e.hooks.helperMissing).call(o,"topic.lastPosterUser",{name:"avatar",hash:{imageSize:"large"},hashTypes:{imageSize:"StringLiteral"},hashContexts:{imageSize:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:9,column:89},end:{line:9,column:138}}}))+"</a>\n"},5:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return e.escapeExpression((o(i,"topic-featured-link")||t&&o(t,"topic-featured-link")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"topic",{name:"topic-featured-link",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:26,column:6},end:{line:26,column:37}}}))},7:function(e,t,i,n,r){return'<span class="topic-post-badges">&nbsp;<span class="badge-notification new-topic"></span></span>'},9:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return e.escapeExpression((o(i,"raw")||t&&o(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.topic-excerpt",{name:"raw",hash:{topic:"topic"},hashTypes:{topic:"PathExpression"},hashContexts:{topic:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:33,column:6},end:{line:33,column:48}}}))},11:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return l((a(i,"raw-plugin-outlet")||t&&a(t,"raw-plugin-outlet")||s).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-category"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:43,column:10},end:{line:43,column:66}}}))+"\n          "+l((a(i,"category-link")||t&&a(t,"category-link")||s).call(o,"topic.category",{name:"category-link",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:44,column:10},end:{line:44,column:43}}}))},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'<td class="topic-list-data">'+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-columns"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:2,column:2},end:{line:2,column:57}}}))+"\n  <div class='pull-left'>\n"+(null!=(o=u(i,"if").call(s,"bulkSelectEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:4},end:{line:10,column:11}}}))?o:"")+"  </div>\n  <div class='right'>\n"+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-link"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:20,column:4},end:{line:20,column:56}}}))+"\n    <div class='main-link'>"+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-status"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:22,column:6},end:{line:22,column:60}}}))+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"topic-status",{name:"raw",hash:{topic:"topic"},hashTypes:{topic:"PathExpression"},hashContexts:{topic:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:23,column:6},end:{line:23,column:42}}}))+a((u(i,"topic-link")||t&&u(t,"topic-link")||l).call(s,"topic",{name:"topic-link",hash:{class:"raw-link raw-topic-link"},hashTypes:{class:"StringLiteral"},hashContexts:{class:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:24,column:6},end:{line:24,column:59}}}))+(null!=(o=u(i,"if").call(s,"topic.featured_link",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(5,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:25,column:6},end:{line:27,column:15}}}))?o:"")+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-after-title"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:28,column:6},end:{line:28,column:58}}}))+(null!=(o=u(i,"if").call(s,"topic.unseen",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(7,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:29,column:6},end:{line:31,column:15}}}))?o:"")+(null!=(o=u(i,"if").call(s,"expandPinned",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(9,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:32,column:6},end:{line:34,column:15}}}))?o:"")+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-main-link-bottom"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:35,column:7},end:{line:35,column:64}}}))+"\n    </div>\n    <div class='pull-right'>\n      "+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"list.post-count-or-badges",{name:"raw",hash:{postBadgesEnabled:"showTopicPostBadges",topic:"topic"},hashTypes:{postBadgesEnabled:"PathExpression",topic:"PathExpression"},hashContexts:{postBadgesEnabled:t,topic:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:38,column:6},end:{line:38,column:91}}}))+'\n    </div>\n    <div class="topic-item-stats clearfix">\n      <span class="topic-item-stats__category-tags">\n'+(null!=(o=u(i,"unless").call(s,"hideCategory",{name:"unless",hash:{},hashTypes:{},hashContexts:{},fn:e.program(11,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:42,column:8},end:{line:45,column:20}}}))?o:"")+a((u(i,"discourse-tags")||t&&u(t,"discourse-tags")||l).call(s,"topic",{name:"discourse-tags",hash:{mode:"list"},hashTypes:{mode:"StringLiteral"},hashContexts:{mode:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:46,column:8},end:{line:46,column:45}}}))+'\n      </span>\n      <div class=\'num activity last\'>\n        <span class="age activity" title="'+a(u(i,"get").call(s,"topic.bumpedAtTitle",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:49,column:42},end:{line:49,column:65}}}))+'"><a\n            href="'+a(u(i,"get").call(s,"topic.lastPostUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:50,column:18},end:{line:50,column:39}}}))+'">'+a((u(i,"format-date")||t&&u(t,"format-date")||l).call(s,"topic.bumpedAt",{name:"format-date",hash:{noTitle:"true",format:"tiny"},hashTypes:{noTitle:"StringLiteral",format:"StringLiteral"},hashContexts:{noTitle:t,format:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:50,column:41},end:{line:50,column:100}}}))+"</a>\n        </span>\n      </div>\n  </div>\n</td>\n"},useData:!0});(0,i.addRawTemplate)("mobile/list/topic-list-item",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/mobile/modal/login",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"/u3bi3iT",block:'[[[8,[39,0],null,[["@loginName","@loginPassword","@secondFactorToken","@action"],[[30,0,["loginName"]],[30,0,["loginPassword"]],[30,0,["secondFactorToken"]],[28,[37,1],[[30,0],"login"],null]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@name","@connectorTagName"],["login-before-modal-body","div"]],null],[1,"\\n  "],[8,[39,3],null,[["@class"],[[30,0,["modalBodyClasses"]]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"login-welcome-header"],[12],[1,"\\n      "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,4],["login.header_title"],null]],[13],[1,"\\n      "],[10,"img"],[15,"src",[30,0,["wavingHandURL"]]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n      "],[10,2],[14,0,"login-subheader"],[12],[1,[28,[35,4],["login.subheader_title"],null]],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["showLoginButtons"]],[[[1,"      "],[8,[39,6],null,[["@externalLogin"],[[28,[37,1],[[30,0],"externalLogin"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canLoginLocal"]],[[[1,"      "],[10,"form"],[14,1,"login-form"],[14,"method","post"],[12],[1,"\\n        "],[10,0],[14,1,"credentials"],[15,0,[30,0,["credentialsClass"]]],[12],[1,"\\n          "],[10,0],[14,0,"input-group"],[12],[1,"\\n            "],[8,[39,7],[[16,0,[28,[37,8],[[30,0,["loginName"]]],null]],[24,1,"login-account-name"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[16,"disabled",[30,0,["showSecondFactor"]]],[24,"autofocus","autofocus"]],[["@value","@type"],[[30,0,["loginName"]],"email"]],null],[1,"\\n            "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","login-account-name"],[12],[1,[28,[35,4],["login.email_placeholder"],null]],[13],[1,"\\n"],[41,[30,0,["showLoginWithEmailLink"]],[[[1,"              "],[11,3],[24,6,""],[24,1,"email-login-link"],[4,[38,9],["click",[30,0,["emailLogin"]]],null],[12],[1,"\\n                "],[1,[28,[35,4],["email_login.login_link"],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n          "],[10,0],[14,0,"input-group"],[12],[1,"\\n            "],[8,[39,7],[[16,0,[28,[37,8],[[30,0,["loginPassword"]]],null]],[24,1,"login-account-password"],[24,"maxlength","200"],[16,"disabled",[30,0,["showSecondFactor"]]]],[["@value","@type"],[[30,0,["loginPassword"]],[52,[30,0,["maskPassword"]],"password","text"]]],null],[1,"\\n            "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","login-account-password"],[12],[1,[28,[35,4],["login.password"],null]],[13],[1,"\\n            "],[10,0],[14,0,"login__password-links"],[12],[1,"\\n              "],[11,3],[24,6,""],[24,1,"forgot-password-link"],[4,[38,9],["click",[30,0,["handleForgotPassword"]]],null],[12],[1,[28,[35,4],["forgot_password.action"],null]],[13],[1,"\\n              "],[8,[39,10],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,11],null,[["@secondFactorMethod","@secondFactorToken","@class","@backupEnabled","@isLogin"],[[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["secondFactorClass"]],[30,0,["backupEnabled"]],true]],[["default"],[[[[1,"\\n"],[41,[30,0,["showSecurityKey"]],[[[1,"            "],[8,[39,12],null,[["@allowedCredentialIds","@challenge","@showSecurityKey","@showSecondFactor","@secondFactorMethod","@otherMethodAllowed","@action"],[[30,0,["securityKeyAllowedCredentialIds"]],[30,0,["securityKeyChallenge"]],[30,0,["showSecurityKey"]],[30,0,["showSecondFactor"]],[30,0,["secondFactorMethod"]],[30,0,["otherMethodAllowed"]],[28,[37,1],[[30,0],"authenticateSecurityKey"],null]]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,13],null,[["@value","@inputId","@secondFactorMethod","@backupEnabled"],[[30,0,["secondFactorToken"]],"login-second-factor",[30,0,["secondFactorMethod"]],[30,0,["backupEnabled"]]]],null],[1,"\\n"]],[]]],[1,"        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n"],[41,[30,0,["canLoginLocal"]],[[[41,[51,[30,0,["showSecurityKey"]]],[[[1,"        "],[8,[39,15],null,[["@action","@id","@icon","@label","@disabled","@class"],[[28,[37,1],[[30,0],"login"],null],"login-button","unlock",[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],"btn-large btn-primary"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showSignupLink"]],[[[1,"        "],[8,[39,15],null,[["@class","@id","@action","@label"],["btn-large","new-account-link",[28,[37,16],["showCreateAccount"],null],"create_account.title"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[8,[39,2],null,[["@name","@connectorTagName"],["login-after-modal-footer","div"]],null],[1,"\\n\\n  "],[10,0],[15,0,[30,0,["alertClass"]]],[14,1,"login-alert"],[12],[1,[30,0,["alert"]]],[13],[1,"\\n"]],[]]]]]],[],false,["login-modal","action","plugin-outlet","d-modal-body","i18n","if","login-buttons","input","value-entered","on","toggle-password-mask","second-factor-form","security-key-form","second-factor-input","unless","d-button","route-action"]]',moduleName:"discourse/templates/mobile/modal/login.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/associate-account-confirm",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"5vNqe8yt",block:'[[[8,[39,0],null,[["@rawTitle"],[[28,[37,1],["user.associated_accounts.confirm_modal_title"],[["provider"],[[28,[37,1],[[28,[37,2],["login.",[30,0,["model","provider_name"]],".name"],null]],null]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","error"]],[[[1,"    "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n      "],[1,[30,0,["model","error"]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","existing_account_description"]],[[[1,"    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],["user.associated_accounts.confirm_description.disconnect"],[["provider","account_description"],[[28,[37,1],[[28,[37,2],["login.",[30,0,["model","provider_name"]],".name"],null]],null],[30,0,["model","existing_account_description"]]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,2],[12],[1,"\\n"],[41,[30,0,["model","account_description"]],[[[1,"      "],[1,[28,[35,1],["user.associated_accounts.confirm_description.account_specific"],[["provider","account_description"],[[28,[37,1],[[28,[37,2],["login.",[30,0,["model","provider_name"]],".name"],null]],null],[30,0,["model","account_description"]]]]]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,1],["user.associated_accounts.confirm_description.generic"],[["provider"],[[28,[37,1],[[28,[37,2],["login.",[30,0,["model","provider_name"]],".name"],null]],null]]]]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,4],null,[["@label","@action","@class","@icon"],["user.associated_accounts.connect",[28,[37,5],[[30,0],"finishConnect"],null],"btn-primary","plug"]],null],[1,"\\n  "],[8,[39,4],null,[["@label","@action"],["user.associated_accounts.cancel",[28,[37,5],[[30,0],"closeModal"],null]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","i18n","concat","if","d-button","action"]]',moduleName:"discourse/templates/modal/associate-account-confirm.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/auth-token",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"Hja3juys",block:'[[[8,[39,0],null,[["@title"],["user.auth_tokens.was_this_you"]],[["default"],[[[[1,"\\n  "],[10,0],[12],[1,"\\n    "],[10,2],[12],[1,[28,[35,1],["user.auth_tokens.was_this_you_description"],null]],[13],[1,"\\n    "],[10,2],[12],[1,[28,[35,2],[[28,[37,1],["user.second_factor.extended_description"],null]],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[12],[1,"\\n    "],[10,"h3"],[12],[1,[28,[35,1],["user.auth_tokens.details"],null]],[13],[1,"\\n    "],[10,"ul"],[14,5,"list-style-type:none"],[12],[1,"\\n      "],[10,"li"],[12],[1,[28,[35,3],["far-clock"],null]],[1," "],[1,[28,[35,4],[[30,0,["model","seen_at"]]],null]],[13],[1,"\\n      "],[10,"li"],[12],[1,[28,[35,3],["map-marker-alt"],null]],[1," "],[1,[30,0,["model","location"]]],[13],[1,"\\n      "],[10,"li"],[12],[1,[28,[35,3],[[30,0,["model","icon"]]],null]],[1,"\\n        "],[1,[28,[35,1],["user.auth_tokens.browser_and_device"],[["browser","device"],[[30,0,["model","browser"]],[30,0,["model","device"]]]]]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["latest_post"]],[[[1,"    "],[10,0],[12],[1,"\\n      "],[10,"h3"],[12],[1,"\\n        "],[1,[28,[35,1],["user.auth_tokens.latest_post"],null]],[1,"\\n        "],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["toggleExpanded"]]],null],[12],[1,[28,[35,3],[[52,[30,0,["expanded"]],"caret-up","caret-down"]],null]],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["expanded"]],[[[1,"        "],[10,"blockquote"],[12],[1,[28,[35,2],[[30,0,["latest_post","cooked"]]],null]],[13],[1,"\\n"]],[]],[[[1,"        "],[10,"blockquote"],[12],[1,[28,[35,2],[[30,0,["latest_post","excerpt"]]],null]],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,7],null,[["@class","@action","@icon","@label"],["btn-primary",[28,[37,8],[[30,0],"highlightSecure"],null],"lock","user.auth_tokens.secure_account"]],null],[1,"\\n  "],[8,[39,9],null,[["@close"],[[28,[37,10],["closeModal"],null]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","i18n","html-safe","d-icon","format-date","if","on","d-button","action","d-modal-cancel","route-action"]]',moduleName:"discourse/templates/modal/auth-token.hbs",isStrictMode:!1})
e.default=i}))
define("discourse/templates/modal/avatar-selector",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"iCLUrTYw",block:'[[[8,[39,0],null,[["@title","@class"],["user.change_avatar.title","avatar-selector"]],[["default"],[[[[1,"\\n"],[41,[30,0,["showSelectableAvatars"]],[[[1,"    "],[10,0],[14,0,"selectable-avatars"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["selectableAvatars"]]],null]],null],null,[[[1,"        "],[11,3],[24,6,""],[24,0,"selectable-avatar"],[4,[38,4],["click",[28,[37,5],[[30,0,["selectAvatar"]],[30,1]],null]],null],[12],[1,"\\n          "],[1,[28,[35,6],[[30,1],"huge"],null]],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n"],[41,[30,0,["showAvatarUploader"]],[[[1,"      "],[10,"h4"],[12],[1,[28,[35,7],[[28,[37,8],["user.change_avatar.use_custom"],null]],null]],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["showAvatarUploader"]],[[[41,[30,0,["user","use_logo_small_as_avatar"]],[[[1,"      "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n        "],[8,[39,9],null,[["@id","@name","@value","@selection","@onChange"],["logo-small","logo","logo",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n        "],[10,"label"],[14,0,"radio"],[14,"for","logo-small"],[12],[1,[28,[35,6],[[30,0,["siteSettings","site_logo_small_url"]],"large"],null]],[1,"\\n          "],[1,[28,[35,7],[[28,[37,8],["user.change_avatar.logo_small"],null]],null]],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n      "],[8,[39,9],null,[["@id","@name","@value","@selection","@onChange"],["system-avatar","avatar","system",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n      "],[10,"label"],[14,0,"radio"],[14,"for","system-avatar"],[12],[1,[28,[35,6],[[30,0,["user","system_avatar_template"]],"large"],null]],[1,"\\n        "],[1,[28,[35,7],[[28,[37,8],["user.change_avatar.letter_based"],null]],null]],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["allowAvatarUpload"]],[[[1,"      "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n        "],[8,[39,9],null,[["@id","@name","@value","@selection","@onChange"],["gravatar","avatar","gravatar",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n        "],[10,"label"],[14,0,"radio"],[14,"for","gravatar"],[12],[1,[28,[35,6],[[30,0,["user","gravatar_avatar_template"]],"large"],null]],[1,"\\n          "],[10,1],[12],[1,[28,[35,7],[[28,[37,8],["user.change_avatar.gravatar"],[["gravatarName","gravatarBaseUrl","gravatarLoginUrl"],[[30,0,["gravatarName"]],[30,0,["gravatarBaseUrl"]],[30,0,["gravatarLoginUrl"]]]]]],null]],[1,"\\n            "],[1,[30,0,["user","email"]]],[13],[13],[1,"\\n\\n        "],[8,[39,10],null,[["@action","@translatedTitle","@disabled","@icon","@class"],[[28,[37,11],[[30,0],"refreshGravatar"],null],[28,[37,8],["user.change_avatar.refresh_gravatar_title"],[["gravatarName"],[[30,0,["gravatarName"]]]]],[30,0,["gravatarRefreshDisabled"]],"sync","btn-default avatar-selector-refresh-gravatar"]],null],[1,"\\n\\n"],[41,[30,0,["gravatarFailed"]],[[[1,"          "],[10,2],[14,0,"error"],[12],[1,[28,[35,12],["user.change_avatar.gravatar_failed"],[["gravatarName"],[[30,0,["gravatarName"]]]]]],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n        "],[8,[39,9],null,[["@id","@name","@value","@selection","@onChange"],["uploaded-avatar","avatar","custom",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n        "],[10,"label"],[14,0,"radio"],[14,"for","uploaded-avatar"],[12],[1,"\\n"],[41,[30,0,["user","custom_avatar_template"]],[[[1,"            "],[1,[28,[35,6],[[30,0,["user","custom_avatar_template"]],"large"],null]],[1,"\\n            "],[1,[28,[35,8],["user.change_avatar.uploaded_avatar"],null]],[1,"\\n"]],[]],[[[1,"            "],[1,[28,[35,8],["user.change_avatar.uploaded_avatar_empty"],null]],[1,"\\n"]],[]]],[1,"        "],[13],[1,"\\n        "],[8,[39,13],null,[["@user_id","@uploadedAvatarTemplate","@uploadedAvatarId","@uploading","@class","@id","@done"],[[30,0,["user","id"]],[30,0,["user","custom_avatar_template"]],[30,0,["user","custom_avatar_upload_id"]],[30,0,["uploading"]],"avatar-uploader","avatar-uploader",[28,[37,11],[[30,0],"uploadComplete"],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]]]],[1,"\\n\\n"],[41,[30,0,["showAvatarUploader"]],[[[1,"  "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n    "],[8,[39,10],null,[["@action","@class","@disabled","@label"],[[28,[37,11],[[30,0],"saveAvatarSelection"],null],"btn-primary",[30,0,["submitDisabled"]],"save"]],null],[1,"\\n    "],[8,[39,14],null,[["@close"],[[28,[37,15],["closeModal"],null]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["avatar"],false,["d-modal-body","if","each","-track-array","on","fn","bound-avatar-template","html-safe","i18n","radio-button","d-button","action","I18n","avatar-uploader","d-modal-cancel","route-action"]]',moduleName:"discourse/templates/modal/avatar-selector.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/bookmark",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"Yz7crFQ8",block:'[[[8,[39,0],null,[["@id"],["bookmark-reminder-modal"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@model","@afterSave","@afterDelete","@onCloseWithoutSaving","@registerOnCloseHandler","@closeModal"],[[30,0,["model"]],[30,0,["afterSave"]],[30,0,["afterDelete"]],[30,0,["onCloseWithoutSaving"]],[28,[37,2],[[30,0],"registerOnCloseHandler"],null],[28,[37,2],[[30,0],"closeModal"],null]]],null],[1,"\\n"]],[]]]]]],[],false,["d-modal-body","bookmark","action"]]',moduleName:"discourse/templates/modal/bookmark.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/bulk-actions-buttons",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"xXAa1JO1",block:'[[[10,0],[14,0,"bulk-buttons"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["buttons"]]],null]],null],null,[[[1,"    "],[8,[39,2],null,[["@action","@label","@icon","@class"],[[28,[37,3],[[30,0],[30,1,["action"]]],null],[30,1,["label"]],[30,1,["icon"]],[30,1,["class"]]]],null],[1,"\\n"]],[1]],null],[13]],["button"],false,["each","-track-array","d-button","action"]]',moduleName:"discourse/templates/modal/bulk-actions-buttons.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/bulk-change-category",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"G2jsDhlj",block:'[[[10,2],[12],[1,[28,[35,0],["topics.bulk.choose_new_category"],null]],[13],[1,"\\n\\n"],[10,2],[12],[1,"\\n  "],[8,[39,1],null,[["@value","@onChange"],[[30,0,["newCategoryId"]],[28,[37,2],[[30,0],[28,[37,3],[[30,0,["newCategoryId"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,4],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n  "],[8,[39,5],null,[["@action","@label"],[[28,[37,2],[[30,0],"changeCategory"],null],"topics.bulk.change_category"]],null],[1,"\\n"]],[]]]]]],[],false,["i18n","category-chooser","action","mut","conditional-loading-spinner","d-button"]]',moduleName:"discourse/templates/modal/bulk-change-category.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/bulk-notification-level",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"eB55Tu5A",block:'[[[10,0],[14,0,"bulk-notification-list"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["notificationLevels"]]],null]],null],null,[[[1,"    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[10,"label"],[14,0,"radio notification-level-radio"],[12],[1,"\\n        "],[8,[39,2],null,[["@value","@name","@selection"],[[30,1,["id"]],"notification_level",[30,0,["notificationLevelId"]]]],null],[1,"\\n        "],[10,"strong"],[12],[1,[30,1,["name"]]],[13],[1,"\\n        "],[10,0],[14,0,"description"],[12],[1,[28,[35,3],[[30,1,["description"]]],null]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[1]],null],[13],[1,"\\n\\n"],[8,[39,4],null,[["@disabled","@action","@label"],[[30,0,["disabled"]],[28,[37,5],[[30,0],"changeNotificationLevel"],null],"topics.bulk.change_notification_level"]],null]],["level"],false,["each","-track-array","radio-button","html-safe","d-button","action"]]',moduleName:"discourse/templates/modal/bulk-notification-level.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/bulk-progress",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"kjyDxvN1",block:'[[[10,2],[12],[1,[28,[35,0],[[28,[37,1],["topics.bulk.progress"],[["count"],[[30,0,["processedTopicCount"]]]]]],null]],[13]],[],false,["html-safe","i18n"]]',moduleName:"discourse/templates/modal/bulk-progress.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/change-owner",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"CCZGPp/E",block:'[[[8,[39,0],null,[["@class"],["change-ownership"]],[["default"],[[[[1,"\\n  "],[10,1],[12],[1,"\\n    "],[1,[28,[35,1],[[28,[37,2],[[52,[30,0,["selectedPostsUsername"]],"topic.change_owner.instructions","topic.change_owner.instructions_without_old_user"]],[["count","old_user"],[[30,0,["selectedPostsCount"]],[30,0,["selectedPostsUsername"]]]]]],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"form"],[12],[1,"\\n    "],[10,"label"],[12],[13],[1,"\\n    "],[8,[39,4],null,[["@value","@autofocus","@onChange","@options"],[[30,0,["newOwner"]],true,[28,[37,5],[[30,0],"updateNewOwner"],null],[28,[37,6],null,[["maximum","filterPlaceholder"],[1,"topic.change_owner.placeholder"]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,7],null,[["@class","@action","@disabled","@label"],["btn-primary",[28,[37,5],[[30,0],"changeOwnershipOfPosts"],null],[30,0,["buttonDisabled"]],[52,[30,0,["saving"]],"saving","topic.change_owner.action"]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","html-safe","i18n","if","email-group-user-chooser","action","hash","d-button"]]',moduleName:"discourse/templates/modal/change-owner.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/change-post-notice",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"UuGCl915",block:'[[[8,[39,0],null,[["@title"],[[52,[30,0,["model","notice"]],"post.controls.change_post_notice","post.controls.add_post_notice"]]],[["default"],[[[[1,"\\n  "],[10,"form"],[12],[8,[39,2],null,[["@value"],[[30,0,["notice"]]]],null],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,3],null,[["@class","@label","@action","@disabled"],["btn-primary",[52,[30,0,["saving"]],"saving","save"],[28,[37,4],[[30,0],"setNotice",[30,0,["notice"]]],null],[30,0,["disabled"]]]],null],[1,"\\n"],[41,[30,0,["model","notice"]],[[[1,"    "],[8,[39,3],null,[["@class","@label","@action","@disabled"],["btn-danger","post.controls.delete_post_notice",[28,[37,4],[[30,0],"setNotice"],null],[30,0,["saving"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[8,[39,5],null,[["@close"],[[28,[37,6],["closeModal"],null]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","if","textarea","d-button","action","d-modal-cancel","route-action"]]',moduleName:"discourse/templates/modal/change-post-notice.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/change-timestamp",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"bhKpO3Td",block:'[[[8,[39,0],null,[["@class"],["change-timestamp"]],[["default"],[[[[1,"\\n  "],[10,2],[12],[1,"\\n    "],[1,[28,[35,1],["topic.change_timestamp.instructions"],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,2],[15,0,[29,["alert alert-error ",[52,[51,[30,0,["validTimestamp"]]],"hidden"]]]],[12],[1,"\\n    "],[1,[28,[35,1],["topic.change_timestamp.invalid_timestamp"],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"form"],[12],[1,"\\n    "],[8,[39,3],null,[["@value","@containerId","@onSelect"],[[28,[37,4],[[30,0,["date"]]],null],"date-container",[28,[37,5],[[30,0],[28,[37,6],[[30,0,["date"]]],null]],null]]],null],[1,"\\n\\n    "],[8,[39,7],null,[["@type","@value"],["time",[30,0,["time"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,1,"date-container"],[12],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer change-timestamp-footer"],[12],[1,"\\n  "],[8,[39,8],null,[["@class","@disabled","@action","@translatedLabel"],["btn-primary",[30,0,["buttonDisabled"]],[28,[37,5],[[30,0],"changeTimestamp"],null],[30,0,["buttonTitle"]]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","i18n","unless","date-picker-past","readonly","action","mut","input","d-button"]]',moduleName:"discourse/templates/modal/change-timestamp.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/convert-to-public-topic",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"BmnvCZlo",block:'[[[8,[39,0],null,[["@title"],["topic.make_public.title"]],[["default"],[[[[1,"\\n\\n  "],[10,0],[14,0,"instructions"],[12],[1,"\\n    "],[1,[28,[35,1],["topic.make_public.choose_category"],null]],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,2],null,[["@value","@onChange"],[[30,0,["publicCategoryId"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["publicCategoryId"]]],null]],null]]],null],[1,"\\n\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,5],null,[["@class","@action","@label","@disabled"],["btn-primary",[28,[37,3],[[30,0],"makePublic"],null],"composer.modal_ok",[30,0,["saving"]]]],null],[1,"\\n  "],[8,[39,6],null,[["@close"],[[28,[37,7],["closeModal"],null]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","i18n","category-chooser","action","mut","d-button","d-modal-cancel","route-action"]]',moduleName:"discourse/templates/modal/convert-to-public-topic.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/create-account",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"V32SkW71",block:'[[[8,[39,0],null,[["@email","@disabled","@action"],[[30,0,["accountEmail"]],[30,0,["submitDisabled"]],[28,[37,1],[[30,0],"createAccount"],null]]],[["default"],[[[[1,"\\n"],[41,[51,[30,0,["complete"]]],[[[1,"    "],[10,1],[12],[1,"\\n      "],[8,[39,3],null,[["@name","@connectorTagName"],["create-account-before-modal-body","div"]],null],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,4],null,[["@class","@preventModalAlertHiding"],[[30,0,["modalBodyClasses"]],true]],[["default"],[[[[1,"\\n      "],[10,0],[15,0,[29,["create-account-form ",[30,0,["authOptions","auth_provider"]]]]],[12],[1,"\\n        "],[10,0],[14,0,"login-welcome-header"],[14,1,"create-account-title"],[12],[1,"\\n          "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,5],["create_account.header_title"],null]],[13],[1,"\\n          "],[10,"img"],[15,"src",[30,0,["wavingHandURL"]]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n          "],[10,2],[14,0,"login-subheader"],[12],[1,[28,[35,5],["create_account.subheader_title"],null]],[13],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["showCreateForm"]],[[[1,"\\n          "],[10,0],[14,0,"login-form"],[12],[1,"\\n            "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["associateHtml"]],[[[1,"                "],[10,0],[14,0,"input-group create-account-associate-link"],[12],[1,"\\n                  "],[10,1],[12],[1,[28,[35,7],[[30,0,["associateHtml"]]],null]],[13],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"              "],[10,0],[14,0,"input-group create-account-email"],[12],[1,"\\n                "],[8,[39,8],[[16,"disabled",[30,0,["emailDisabled"]]],[24,1,"new-account-email"],[24,3,"email"],[16,0,[28,[37,9],[[30,0,["accountEmail"]]],null]],[24,"autofocus","autofocus"],[24,"aria-describedby","account-email-validation"],[16,"aria-invalid",[30,0,["emailValidation","failed"]]],[4,[38,10],["focusout",[28,[37,1],[[30,0],"checkEmailAvailability"],null]],null]],[["@type","@value"],["email",[30,0,["accountEmail"]]]],null],[1,"\\n                "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-email"],[12],[1,"\\n                  "],[1,[28,[35,5],["user.email.title"],null]],[41,[30,0,["userFields"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n                "],[8,[39,11],null,[["@validation","@id"],[[30,0,["emailValidation"]],"account-email-validation"]],null],[1,"\\n                "],[10,1],[14,0,"more-info"],[12],[1,[28,[35,5],["user.email.instructions"],null]],[13],[1,"\\n              "],[13],[1,"\\n\\n              "],[10,0],[14,0,"input-group create-account__username"],[12],[1,"\\n                "],[8,[39,8],[[16,"disabled",[30,0,["usernameDisabled"]]],[16,0,[28,[37,9],[[30,0,["accountUsername"]]],null]],[24,1,"new-account-username"],[24,3,"username"],[16,"maxlength",[30,0,["maxUsernameLength"]]],[24,"aria-describedby","username-validation"],[16,"aria-invalid",[30,0,["usernameValidation","failed"]]],[24,"autocomplete","off"]],[["@value"],[[30,0,["accountUsername"]]]],null],[1,"\\n                "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,"\\n                  "],[1,[28,[35,5],["user.username.title"],null]],[41,[30,0,["userFields"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n\\n                "],[8,[39,11],null,[["@validation","@id"],[[30,0,["usernameValidation"]],"username-validation"]],null],[1,"\\n                "],[10,1],[14,0,"more-info"],[12],[1,[28,[35,5],["user.username.instructions"],null]],[13],[1,"\\n              "],[13],[1,"\\n\\n              "],[10,0],[14,0,"input-group create-account__fullname"],[12],[1,"\\n"],[41,[30,0,["fullnameRequired"]],[[[1,"                  "],[8,[39,12],[[24,"aria-describedby","fullname-validation"],[16,"aria-invalid",[30,0,["nameValidation","failed"]]]],[["@disabled","@value","@id","@class"],[[30,0,["nameDisabled"]],[30,0,["accountName"]],"new-account-name",[28,[37,9],[[30,0,["accountName"]]],null]]],null],[1,"\\n                  "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-name"],[12],[1,"\\n                    "],[1,[28,[35,5],["user.name.title"],null]],[1,"\\n"],[41,[30,0,["siteSettings","full_name_required"]],[[[41,[30,0,["userFields"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null]],[]],null],[1,"                  "],[13],[1,"\\n\\n                  "],[8,[39,11],null,[["@validation","@id"],[[30,0,["nameValidation"]],"fullname-validation"]],null],[1,"\\n                  "],[10,1],[14,0,"more-info"],[12],[1,[30,0,["nameInstructions"]]],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n\\n              "],[8,[39,3],null,[["@name","@outletArgs"],["create-account-before-password",[28,[37,13],null,[["accountName","accountUsername","accountPassword","userFields","authOptions"],[[30,0,["accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]],[30,0,["authOptions"]]]]]]],null],[1,"\\n\\n              "],[10,0],[14,0,"input-group create-account__password"],[12],[1,"\\n"],[41,[30,0,["passwordRequired"]],[[[1,"                  "],[8,[39,14],[[24,1,"new-account-password"],[24,"aria-describedby","password-validation"],[16,"aria-invalid",[30,0,["passwordValidation","failed"]]]],[["@value","@class","@type","@autocomplete","@capsLockOn"],[[30,0,["accountPassword"]],[28,[37,9],[[30,0,["accountPassword"]]],null],[52,[30,0,["maskPassword"]],"password","text"],"current-password",[30,0,["capsLockOn"]]]],null],[1,"\\n                  "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,"\\n                    "],[1,[28,[35,5],["user.password.title"],null]],[41,[30,0,["userFields"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n                  "],[10,0],[14,0,"create-account__password-info"],[12],[1,"\\n                    "],[10,0],[14,0,"create-account__password-tip-validation"],[12],[1,"\\n                      "],[8,[39,11],null,[["@validation","@id"],[[30,0,["passwordValidation"]],"password-validation"]],null],[1,"\\n                      "],[10,1],[14,0,"more-info"],[12],[1,[30,0,["passwordInstructions"]]],[13],[1,"\\n                      "],[10,0],[15,0,[29,["caps-lock-warning\\n                          ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n                        "],[1,[28,[35,15],["exclamation-triangle"],null]],[1,"\\n                        "],[1,[28,[35,5],["login.caps_lock_warning"],null]],[1,"\\n                      "],[13],[1,"\\n                    "],[13],[1,"\\n                    "],[8,[39,16],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"\\n                "],[10,0],[14,0,"password-confirmation"],[12],[1,"\\n                  "],[10,"label"],[14,"for","new-account-password-confirmation"],[12],[1,[28,[35,5],["user.password_confirmation.title"],null]],[13],[1,"\\n                  "],[8,[39,17],null,[["@id","@autocomplete","@value"],["new-account-confirmation","new-password",[30,0,["accountHoneypot"]]]],null],[1,"\\n                  "],[8,[39,8],[[24,1,"new-account-challenge"]],[["@value"],[[30,0,["accountChallenge"]]]],null],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n\\n"],[41,[30,0,["requireInviteCode"]],[[[1,"                "],[10,0],[14,0,"input-group create-account__invite-code"],[12],[1,"\\n                  "],[8,[39,8],[[16,0,[28,[37,9],[[30,0,["inviteCode"]]],null]],[24,1,"inviteCode"]],[["@value"],[[30,0,["inviteCode"]]]],null],[1,"\\n                  "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","invite-code"],[12],[1,[28,[35,5],["user.invite_code.title"],null]],[13],[1,"\\n                  "],[10,1],[14,0,"more-info"],[12],[1,[28,[35,5],["user.invite_code.instructions"],null]],[13],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n              "],[8,[39,3],null,[["@name","@outletArgs"],["create-account-after-password",[28,[37,13],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["userFields"]],[[[1,"                "],[10,0],[14,0,"user-fields"],[12],[1,"\\n"],[42,[28,[37,19],[[28,[37,19],[[30,0,["userFields"]]],null]],null],null,[[[1,"                    "],[10,0],[14,0,"input-group"],[12],[1,"\\n"],[1,"                      "],[8,[39,20],null,[["@field","@value","@class","@validation"],[[30,1,["field"]],[30,1,["value"]],[28,[37,9],[[30,1,["value"]]],null],[30,1,["validation"]]]],null],[1,"\\n                    "],[13],[1,"\\n"]],[1]],null],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n            "],[8,[39,21],null,[["@class","@action","@disabled","@label","@isLoading"],["btn-large btn-primary",[28,[37,1],[[30,0],"createAccount"],null],[30,0,["submitDisabled"]],"create_account.title",[30,0,["formSubmitted"]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["hasAuthOptions"]]],[[[1,"              "],[8,[39,21],null,[["@class","@id","@action","@disabled","@label"],["btn-large","login-link",[28,[37,22],["showLogin"],null],[30,0,["formSubmitted"]],"log_in"]],null],[1,"\\n"]],[]],null],[1,"\\n            "],[10,0],[14,0,"disclaimer"],[12],[1,"\\n              "],[1,[28,[35,7],[[30,0,["disclaimerHtml"]]],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[8,[39,3],null,[["@name","@connectorTagName"],["create-account-after-modal-footer","div"]],null],[1,"\\n\\n"]],[]],null],[41,[51,[30,0,["hasAuthOptions"]]],[[[1,"          "],[10,0],[14,0,"create-account-login-buttons"],[12],[1,"\\n            "],[8,[39,23],null,[["@externalLogin"],[[28,[37,1],[[30,0],"externalLogin"],null]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["skipConfirmation"]],[[[1,"          "],[1,[28,[35,24],null,[["size"],["large"]]]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null]],[]]]]]],["f"],false,["create-account","action","unless","plugin-outlet","d-modal-body","i18n","if","html-safe","input","value-entered","on","input-tip","text-field","hash","password-field","d-icon","toggle-password-mask","honeypot-input","each","-track-array","user-field","d-button","route-action","login-buttons","loading-spinner"]]',moduleName:"discourse/templates/modal/create-account.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/create-invite-bulk",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"ax3AIx2p",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@title"],["user.invited.bulk_invite.text"]],[["default"],[[[[1,"\\n"],[41,[30,1,["uploaded"]],[[[1,"      "],[1,[28,[35,3],["user.invited.bulk_invite.success"],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,4],[[28,[37,3],["user.invited.bulk_invite.instructions"],null]],null]],[1,"\\n\\n      "],[10,"input"],[14,1,"csv-file"],[15,"disabled",[30,1,["uploading"]]],[14,"accept",".csv"],[14,4,"file"],[12],[13],[1,"\\n"]],[]]],[1,"  "]],[]]]]],[1,"\\n\\n  "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n"],[41,[51,[30,1,["uploaded"]]],[[[1,"      "],[8,[39,6],null,[["@icon","@translatedLabel","@class","@action","@disabled"],[[52,[30,0,["isEmail"]],"envelope","link"],[52,[30,1,["uploading"]],[28,[37,3],["user.invited.bulk_invite.progress"],[["progress"],[[30,1,["uploadProgress"]]]]],[28,[37,3],["user.invited.bulk_invite.text"],null]],"btn-primary",[30,1,["startUpload"]],[30,1,["submitDisabled"]]]],null],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,6],null,[["@label","@class","@action"],["close","btn-primary",[28,[37,7],["closeModal"],null]]],null],[1,"\\n  "],[13],[1,"\\n"]],[1]]]]]],["status"],false,["create-invite-uploader","d-modal-body","if","i18n","html-safe","unless","d-button","route-action"]]',moduleName:"discourse/templates/modal/create-invite-bulk.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/create-invite",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"GPt2EOgf",block:'[[[41,[30,0,["flashText"]],[[[1,"  "],[10,0],[14,1,"modal-alert"],[14,"role","alert"],[15,0,[29,["alert alert-",[30,0,["flashClass"]]]]],[12],[1,"\\n"],[41,[30,0,["flashLink"]],[[[1,"      "],[10,0],[14,0,"input-group invite-link"],[12],[1,"\\n        "],[10,"label"],[14,"for","invite-link"],[12],[1,[28,[35,1],[[30,0,["flashText"]]],null]],[1,"\\n          "],[1,[28,[35,2],["user.invited.invite.instructions"],null]],[13],[1,"\\n        "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n          "],[8,[39,3],[[24,3,"invite-link"],[24,0,"invite-link"],[16,"readonly",true]],[["@value"],[[30,0,["invite","link"]]]],null],[1,"\\n          "],[8,[39,4],null,[["@selector","@copied"],["input.invite-link",[28,[37,5],[[30,0],"copied"],null]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,1],[[30,0,["flashText"]]],null]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,6],null,[["@title"],[[52,[30,0,["editing"]],"user.invited.invite.edit_title","user.invited.invite.new_title"]]],[["default"],[[[[1,"\\n  "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["editing"]],[[[1,"      "],[10,0],[14,0,"input-group invite-link"],[12],[1,"\\n        "],[10,"label"],[14,"for","invite-link"],[12],[1,[28,[35,2],["user.invited.invite.instructions"],null]],[13],[1,"\\n        "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n          "],[8,[39,3],[[24,3,"invite-link"],[24,0,"invite-link"],[16,"readonly",true]],[["@value"],[[30,0,["invite","link"]]]],null],[1,"\\n          "],[8,[39,4],null,[["@selector","@copied"],["input.invite-link",[28,[37,5],[[30,0],"copied"],null]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"input-group input-email"],[12],[1,"\\n      "],[10,"label"],[14,"for","invite-email"],[12],[1,"\\n        "],[1,[28,[35,7],["envelope"],null]],[1,"\\n"],[41,[30,0,["isEmail"]],[[[1,"          "],[1,[28,[35,2],["user.invited.invite.restrict_email"],null]],[1,"\\n"]],[]],[[[41,[30,0,["isDomain"]],[[[1,"          "],[1,[28,[35,2],["user.invited.invite.restrict_domain"],null]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,2],["user.invited.invite.restrict"],null]],[1,"\\n        "]],[]]]],[]]],[1,"      "],[13],[1,"\\n      "],[10,0],[14,0,"invite-email-container"],[12],[1,"\\n        "],[8,[39,3],[[24,1,"invite-email"],[16,"placeholder",[28,[37,2],["user.invited.invite.email_or_domain_placeholder"],null]]],[["@value"],[[30,0,["buffered","emailOrDomain"]]]],null],[1,"\\n"],[41,[30,0,["capabilities","hasContactPicker"]],[[[1,"          "],[8,[39,8],null,[["@icon","@action","@class"],["address-book",[28,[37,5],[[30,0],"searchContact"],null],"btn-primary open-contact-picker"]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["isLink"]],[[[1,"      "],[10,0],[14,0,"input-group invite-max-redemptions"],[12],[1,"\\n        "],[10,"label"],[14,"for","invite-max-redemptions"],[12],[1,[28,[35,7],["users"],null]],[1,[28,[35,2],["user.invited.invite.max_redemptions_allowed"],null]],[13],[1,"\\n        "],[8,[39,3],[[24,1,"invite-max-redemptions"],[24,"min","1"],[16,"max",[30,0,["maxRedemptionsAllowedLimit"]]]],[["@type","@value"],["number",[30,0,["buffered","max_redemptions_allowed"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isEmail"]],[[[1,"      "],[10,0],[14,0,"input-group invite-custom-message"],[12],[1,"\\n        "],[10,"label"],[14,"for","invite-message"],[12],[1,[28,[35,2],["user.invited.invite.custom_message"],null]],[13],[1,"\\n        "],[8,[39,9],[[24,1,"invite-message"]],[["@value"],[[30,0,["buffered","custom_message"]]]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canArriveAtTopic"]],[[[1,"      "],[10,0],[14,0,"input-group invite-to-topic"],[12],[1,"\\n        "],[10,"label"],[14,"for","invite-topic"],[12],[1,[28,[35,7],["hand-point-right"],null]],[1,[28,[35,2],["user.invited.invite.invite_to_topic"],null]],[13],[1,"\\n        "],[8,[39,10],null,[["@value","@content","@onChange","@options"],[[30,0,["buffered","topicId"]],[30,0,["topics"]],[28,[37,5],[[30,0],"onChangeTopic"],null],[28,[37,11],null,[["additionalFilters"],["status:public"]]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[41,[30,0,["buffered","topicTitle"]],[[[1,"      "],[10,0],[14,0,"input-group invite-to-topic"],[12],[1,"\\n        "],[10,"label"],[14,"for","invite-topic"],[12],[1,[28,[35,7],["hand-point-right"],null]],[1,[28,[35,2],["user.invited.invite.invite_to_topic"],null]],[13],[1,"\\n        "],[8,[39,3],[[24,3,"invite-topic"],[24,0,"invite-topic"],[16,"readonly",true]],[["@value"],[[30,0,["buffered","topicTitle"]]]],null],[1,"\\n      "],[13],[1,"\\n    "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["canInviteToGroup"]],[[[1,"      "],[10,0],[14,0,"input-group invite-to-groups"],[12],[1,"\\n        "],[10,"label"],[12],[1,[28,[35,7],["users"],null]],[1,[28,[35,2],["user.invited.invite.add_to_groups"],null]],[13],[1,"\\n        "],[8,[39,12],null,[["@content","@value","@labelProperty","@onChange"],[[30,0,["allGroups"]],[30,0,["buffered","groupIds"]],"name",[28,[37,5],[[30,0],[28,[37,13],[[30,0,["buffered","groupIds"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1,"      "],[10,0],[14,0,"input-group invite-expires-at"],[12],[1,"\\n        "],[8,[39,14],null,[["@displayLabelIcon","@displayLabel","@customShortcuts","@clearable","@input","@onChangeInput"],["far-clock",[28,[37,2],["user.invited.invite.expires_at"],null],[30,0,["timeShortcuts"]],true,[30,0,["buffered","expires_at"]],[28,[37,5],[[30,0],[28,[37,13],[[30,0,["buffered","expires_at"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"input-group input-expires-at"],[12],[1,"\\n        "],[10,"label"],[12],[1,[28,[35,7],["far-clock"],null]],[1,[30,0,["expiresAtLabel"]]],[13],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,8],null,[["@icon","@label","@class","@action"],["link","user.invited.invite.save_invite","btn-primary save-invite",[28,[37,5],[[30,0],"saveInvite"],null]]],null],[1,"\\n\\n  "],[8,[39,8],null,[["@icon","@label","@class","@action","@title","@disabled"],["envelope",[52,[30,0,["invite","emailed"]],"user.invited.reinvite","user.invited.invite.send_invite_email"],"btn-primary send-invite",[28,[37,5],[[30,0],"saveInvite",true],null],[52,[51,[30,0,["isEmail"]]],"user.invited.invite.send_invite_email_instructions"],[28,[37,16],[[30,0,["isEmail"]]],null]]],null],[1,"\\n"],[13]],[],false,["if","html-safe","i18n","input","copy-button","action","d-modal-body","d-icon","d-button","textarea","topic-chooser","hash","group-chooser","mut","future-date-input","unless","not"]]',moduleName:"discourse/templates/modal/create-invite.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/delete-topic-confirm",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"v2ejjUCL",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[10,2],[12],[1,[28,[35,1],["post.controls.delete_topic_confirm_modal"],[["count"],[[30,0,["siteSettings","min_topic_views_for_delete_confirm"]]]]]],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,2],null,[["@action","@disabled","@translatedLabel","@class"],[[28,[37,3],[[30,0],"deleteTopic"],null],[30,0,["deletingTopic"]],[30,0,["buttonTitle"]],"btn-danger"]],null],[1,"\\n  "],[8,[39,2],null,[["@action","@label","@class"],[[28,[37,4],["closeModal"],null],"post.controls.delete_topic_confirm_modal_no","btn-primary"]],null],[1,"\\n"],[13]],[],false,["d-modal-body","i18n","d-button","action","route-action"]]',moduleName:"discourse/templates/modal/delete-topic-confirm.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/delete-topic-disallowed",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"DanLyWgh",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[10,2],[12],[1,[28,[35,1],[[28,[37,2],["post.controls.delete_topic_disallowed_modal"],null]],null]],[13],[1,"\\n"]],[]]]]],[1,"\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,3],null,[["@action","@class","@label"],[[28,[37,4],["closeModal"],null],"btn-primary","close"]],null],[1,"\\n"],[13]],[],false,["d-modal-body","html-safe","i18n","d-button","route-action"]]',moduleName:"discourse/templates/modal/delete-topic-disallowed.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/discard-draft",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"wyEjdbhP",block:'[[[8,[39,0],null,[["@headerClass"],["hidden"]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,"\\n    "],[1,[28,[35,1],["post.cancel_composer.confirm"],null]],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,2],null,[["@icon","@label","@class","@action"],["far-trash-alt","post.cancel_composer.discard","btn-danger discard-draft",[28,[37,3],[[30,0],"destroyDraft"],null]]],null],[1,"\\n"],[41,[30,0,["showSaveDraftButton"]],[[[1,"    "],[8,[39,2],null,[["@label","@class","@action"],["post.cancel_composer.save_draft","save-draft",[28,[37,3],[[30,0],"saveDraftAndClose"],null]]],null],[1,"\\n"]],[]],null],[1,"  "],[8,[39,2],null,[["@label","@class","@action"],["post.cancel_composer.keep_editing","keep-editing",[28,[37,3],[[30,0],"dismissModal"],null]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","i18n","d-button","action","if"]]',moduleName:"discourse/templates/modal/discard-draft.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/download-calendar",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"C+2O27Fi",block:'[[[10,0],[12],[1,"\\n  "],[8,[39,0],null,[["@title"],["download_calendar.title"]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,0],[14,0,"ics"],[12],[1,"\\n        "],[10,"label"],[14,0,"radio"],[14,"for","ics"],[12],[1,"\\n          "],[8,[39,1],null,[["@name","@id","@value","@selection","@onChange"],["select-calendar","ics","ics",[30,0,["selectedCalendar"]],[28,[37,2],[[30,0],[28,[37,3],[[30,0,["selectedCalendar"]]],null]],null]]],null],[1,"\\n          "],[1,[28,[35,4],["download_calendar.save_ics"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"google"],[12],[1,"\\n        "],[10,"label"],[14,0,"radio"],[14,"for","google"],[12],[1,"\\n          "],[8,[39,1],null,[["@name","@id","@value","@selection","@onChange"],["select-calendar","google","google",[30,0,["selectedCalendar"]],[28,[37,2],[[30,0],[28,[37,3],[[30,0,["selectedCalendar"]]],null]],null]]],null],[1,"\\n          "],[1,[28,[35,4],["download_calendar.save_google"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group remember"],[12],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[8,[39,5],null,[["@type","@checked"],["checkbox",[30,0,["remember"]]]],null],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["download_calendar.remember"],null]],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["download_calendar.remember_explanation"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n  "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n    "],[8,[39,6],null,[["@class","@action","@label"],["btn-primary",[28,[37,2],[[30,0],"downloadCalendar"],null],"download_calendar.download"]],null],[1,"\\n    "],[8,[39,7],null,[["@close"],[[28,[37,8],["closeModal"],null]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["d-modal-body","radio-button","action","mut","i18n","input","d-button","d-modal-cancel","route-action"]]',moduleName:"discourse/templates/modal/download-calendar.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/edit-slow-mode",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"VxsaP7jS",block:'[[[8,[39,0],null,[["@title","@autoFocus"],["topic.slow_mode_update.title",false]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,[28,[35,1],["topic.slow_mode_update.description"],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,[28,[35,1],["topic.slow_mode_update.select"],null]],[13],[1,"\\n    "],[8,[39,2],null,[["@class","@content","@value","@onChange"],["slow-mode-type",[30,0,["slowModes"]],[30,0,["selectedSlowMode"]],[28,[37,3],[[30,0],"setSlowModeDuration"],null]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["showCustomSelect"]],[[[1,"    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,[28,[35,1],["topic.slow_mode_update.hours"],null]],[13],[1,"\\n      "],[8,[39,5],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["hours"]],"number"]],null],[1,"\\n\\n      "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,[28,[35,1],["topic.slow_mode_update.minutes"],null]],[13],[1,"\\n      "],[8,[39,5],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["minutes"]],"number"]],null],[1,"\\n\\n      "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,[28,[35,1],["topic.slow_mode_update.seconds"],null]],[13],[1,"\\n      "],[8,[39,5],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["seconds"]],"number"]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[8,[39,6],null,[["@class","@label","@labelClasses","@customShortcuts","@clearable","@input","@onChangeInput"],["enabled-until","topic.slow_mode_update.enabled_until","slow-mode-label",[30,0,["timeShortcuts"]],true,[30,0,["model","slow_mode_enabled_until"]],[28,[37,3],[[30,0],[28,[37,7],[[30,0,["model","slow_mode_enabled_until"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,8],null,[["@class","@disabled","@icon","@label","@action"],["btn-primary",[30,0,["submitDisabled"]],"hourglass-start",[30,0,["saveButtonLabel"]],[28,[37,3],[[30,0],"enableSlowMode"],null]]],null],[1,"\\n\\n  "],[8,[39,9],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n\\n"],[41,[30,0,["model","slow_mode_seconds"]],[[[1,"    "],[8,[39,8],null,[["@class","@action","@disabled","@label"],["btn-danger",[28,[37,3],[[30,0],"disableSlowMode"],null],[30,0,["submitDisabled"]],"topic.slow_mode_update.remove"]],null],[1,"\\n"]],[]],null],[13]],[],false,["d-modal-body","i18n","combo-box","action","if","input","future-date-input","mut","d-button","conditional-loading-spinner"]]',moduleName:"discourse/templates/modal/edit-slow-mode.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/edit-topic-timer",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"XBJ6K3LP",block:'[[[8,[39,0],null,[["@title","@autoFocus","@id"],["topic.topic_status_update.title","false","topic-timer-modal"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@topic","@topicTimer","@timerTypes","@onChangeStatusType","@onChangeInput"],[[30,0,["model"]],[30,0,["topicTimer"]],[30,0,["publicTimerTypes"]],[28,[37,2],[[30,0],"onChangeStatusType"],null],[28,[37,2],[[30,0],"onChangeInput"],null]]],null],[1,"\\n\\n  "],[10,0],[14,0,"modal-footer control-group edit-topic-timer-buttons"],[12],[1,"\\n    "],[8,[39,3],null,[["@class","@disabled","@label","@action"],["btn-primary",[30,0,["saveDisabled"]],"topic.topic_status_update.save",[28,[37,2],[[30,0],"saveTimer"],null]]],null],[1,"\\n\\n    "],[8,[39,4],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n\\n"],[41,[30,0,["topicTimer","execute_at"]],[[[1,"      "],[8,[39,3],null,[["@class","@action","@label"],["pull-right btn-danger",[28,[37,2],[[30,0],"removeTimer"],null],"topic.topic_status_update.remove"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]]]]]],[],false,["d-modal-body","edit-topic-timer-form","action","d-button","conditional-loading-spinner","if"]]',moduleName:"discourse/templates/modal/edit-topic-timer.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/edit-user-directory-columns",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"/1TWUeGa",block:'[[[8,[39,0],null,[["@title"],["directory.edit_columns.title"]],[["default"],[[[[1,"\\n"],[41,[30,0,["loading"]],[[[1,"    "],[1,[28,[35,2],null,[["size"],["large"]]]],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"edit-directory-columns-container"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["columns"]]],null]],null],null,[[[1,"        "],[10,0],[14,0,"edit-directory-column"],[12],[1,"\\n          "],[10,0],[14,0,"left-content"],[12],[1,"\\n            "],[10,"label"],[14,0,"column-name"],[12],[1,"\\n              "],[8,[39,5],null,[["@type","@checked"],["checkbox",[30,1,["enabled"]]]],null],[1,"\\n"],[41,[28,[37,6],null,[["column"],[[30,1]]]],[[[1,"                "],[1,[28,[35,7],null,[["field","labelKey","icon"],[[30,1,["name"]],[30,0,["labelKey"]],[30,1,["icon"]]]]]],[1,"\\n"]],[]],[[[41,[28,[37,8],null,[["column"],[[30,1]]]],[[[1,"                "],[1,[28,[35,7],null,[["field","translated"],[[30,1,["user_field","name"]],true]]]],[1,"\\n"]],[]],[[[1,"                "],[1,[28,[35,7],null,[["field","translated"],[[28,[37,9],[[30,1,["name"]]],null],true]]]],[1,"\\n              "]],[]]]],[]]],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"right-content"],[12],[1,"\\n            "],[8,[39,10],null,[["@icon","@class","@action"],["arrow-up","button-secondary move-column-up",[28,[37,11],[[30,0],"moveUp",[30,1]],null]]],null],[1,"\\n            "],[8,[39,10],null,[["@icon","@class","@action"],["arrow-down","button-secondary",[28,[37,11],[[30,0],"moveDown",[30,1]],null]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n"]],[]]]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,10],null,[["@class","@label","@action"],["btn-primary","directory.edit_columns.save",[28,[37,11],[[30,0],"save"],null]]],null],[1,"\\n\\n  "],[8,[39,10],null,[["@class","@label","@action"],["btn-secondary reset-to-default","directory.edit_columns.reset_to_default",[28,[37,11],[[30,0],"resetToDefault"],null]]],null],[1,"\\n"],[13]],["column"],false,["d-modal-body","if","loading-spinner","each","-track-array","input","directory-column-is-automatic","directory-table-header-title","directory-column-is-user-field","i18n","d-button","action"]]',moduleName:"discourse/templates/modal/edit-user-directory-columns.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/explain-reviewable",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"3fMbWKta",block:'[[[8,[39,0],null,[["@class"],["explain-reviewable"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n    "],[10,"table"],[12],[1,"\\n      "],[10,"tbody"],[12],[1,"\\n        "],[10,"tr"],[12],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,2],["review.explain.formula"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,2],["review.explain.subtotal"],null]],[13],[1,"\\n        "],[13],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["reviewableExplanation","scores"]]],null]],null],null,[[[1,"          "],[10,"tr"],[12],[1,"\\n            "],[10,"td"],[12],[1,"\\n              "],[8,[39,5],null,[["@value","@tagName"],["1.0",""]],null],[1,"\\n              "],[8,[39,5],null,[["@value","@label","@tagName"],[[30,1,["type_bonus"]],"type_bonus",""]],null],[1,"\\n              "],[8,[39,5],null,[["@value","@label","@tagName"],[[30,1,["take_action_bonus"]],"take_action_bonus",""]],null],[1,"\\n              "],[8,[39,5],null,[["@value","@label","@tagName"],[[30,1,["trust_level_bonus"]],"trust_level_bonus",""]],null],[1,"\\n              "],[8,[39,5],null,[["@value","@label","@tagName"],[[30,1,["user_accuracy_bonus"]],"user_accuracy_bonus",""]],null],[1,"\\n            "],[13],[1,"\\n            "],[10,"td"],[14,0,"sum"],[12],[1,[28,[35,6],[[30,1,["score"]]],null]],[13],[1,"\\n          "],[13],[1,"\\n"]],[1]],null],[1,"        "],[10,"tr"],[14,0,"total"],[12],[1,"\\n          "],[10,"td"],[12],[1,[28,[35,2],["review.explain.total"],null]],[13],[1,"\\n          "],[10,"td"],[14,0,"sum"],[12],[1,[28,[35,6],[[30,0,["reviewableExplanation","total_score"]]],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,"table"],[14,0,"thresholds"],[12],[1,"\\n      "],[10,"tbody"],[12],[1,"\\n        "],[10,"tr"],[12],[1,"\\n          "],[10,"td"],[12],[1,[28,[35,2],["review.explain.min_score_visibility"],null]],[13],[1,"\\n          "],[10,"td"],[14,0,"sum"],[12],[1,"\\n            "],[1,[28,[35,6],[[30,0,["reviewableExplanation","min_score_visibility"]]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"tr"],[12],[1,"\\n          "],[10,"td"],[12],[1,[28,[35,2],["review.explain.score_to_hide"],null]],[13],[1,"\\n          "],[10,"td"],[14,0,"sum"],[12],[1,"\\n            "],[1,[28,[35,6],[[30,0,["reviewableExplanation","hide_post_score"]]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n  "]],[]]]]],[1,"\\n\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,7],null,[["@action","@label"],[[28,[37,8],["closeModal"],null],"close"]],null],[1,"\\n"],[13]],["s"],false,["d-modal-body","conditional-loading-spinner","i18n","each","-track-array","score-value","float","d-button","route-action"]]',moduleName:"discourse/templates/modal/explain-reviewable.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/feature-topic-on-profile",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"G8WaaqqE",block:'[[[8,[39,0],null,[["@class","@id"],["feature-topic-on-profile","choosing-topic"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@currentTopicId","@selectedTopicId","@additionalFilters","@label","@topicChangedCallback","@loadOnInit"],[[30,0,["model","featured_topic","id"]],[30,0,["newFeaturedTopicId"]],"status:public","user.feature_topic_on_profile.search_label",[28,[37,2],[[30,0],"newTopicSelected"],null],true]],null],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,3],null,[["@action","@class","@disabled","@label"],[[28,[37,2],[[30,0],"save"],null],"btn-primary save-featured-topic-on-profile",[30,0,["noTopicSelected"]],"user.feature_topic_on_profile.save"]],null],[1,"\\n  "],[8,[39,3],null,[["@action","@label","@class"],[[28,[37,4],["closeModal"],null],"cancel","btn-flat"]],null],[1,"\\n"],[13]],[],false,["d-modal-body","choose-topic","action","d-button","route-action"]]',moduleName:"discourse/templates/modal/feature-topic-on-profile.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/feature-topic",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"RI8lLeDi",block:'[[[8,[39,0],null,[["@class"],["feature-topic"]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","pinned_at"]],[[[1,"    "],[10,0],[14,0,"feature-section"],[12],[1,"\\n      "],[10,0],[14,0,"desc"],[12],[1,"\\n"],[41,[30,0,["model","pinned_globally"]],[[[1,"          "],[10,2],[12],[1,"\\n            "],[8,[39,2],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["pinnedGloballyCount"]],[[[1,"                "],[1,[28,[35,3],[[28,[37,4],["topic.feature_topic.already_pinned_globally"],[["count"],[[30,0,["pinnedGloballyCount"]]]]]],null]],[1,"\\n"]],[]],[[[1,"                "],[1,[28,[35,3],[[28,[37,4],["topic.feature_topic.not_pinned_globally"],null]],null]],[1,"\\n"]],[]]],[1,"            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,2],[12],[1,[28,[35,4],["topic.feature_topic.global_pin_note"],null]],[13],[1,"\\n"]],[]],[[[1,"          "],[10,2],[12],[1,"\\n            "],[8,[39,2],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n              "],[1,[28,[35,3],[[30,0,["alreadyPinnedMessage"]]],null]],[1,"\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,2],[12],[1,[28,[35,4],["topic.feature_topic.pin_note"],null]],[13],[1,"\\n"]],[]]],[1,"        "],[10,2],[12],[1,[28,[35,3],[[30,0,["unPinMessage"]]],null]],[13],[1,"\\n        "],[10,2],[12],[8,[39,5],null,[["@action","@icon","@label","@class"],[[28,[37,6],[[30,0],"unpin"],null],"thumbtack","topic.feature.unpin","btn-primary"]],null],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"feature-section"],[12],[1,"\\n      "],[10,0],[14,0,"desc"],[12],[1,"\\n        "],[10,2],[12],[1,"\\n          "],[8,[39,2],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n            "],[1,[28,[35,3],[[30,0,["alreadyPinnedMessage"]]],null]],[1,"\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n        "],[10,2],[12],[1,"\\n          "],[1,[28,[35,4],["topic.feature_topic.pin_note"],null]],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["site","isMobileDevice"]],[[[1,"          "],[10,2],[12],[1,"\\n            "],[1,[28,[35,3],[[30,0,["pinMessage"]]],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,2],[14,0,"with-validation"],[12],[1,"\\n            "],[8,[39,7],null,[["@class","@clearable","@input","@onChangeInput"],["pin-until",true,[30,0,["model","pinnedInCategoryUntil"]],[28,[37,6],[[30,0],[28,[37,8],[[30,0,["model","pinnedInCategoryUntil"]]],null]],null]]],null],[1,"\\n            "],[8,[39,9],null,[["@validation","@shownAt"],[[30,0,["pinInCategoryValidation"]],[30,0,["pinInCategoryTipShownAt"]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[10,2],[14,0,"with-validation"],[12],[1,"\\n            "],[1,[28,[35,3],[[30,0,["pinMessage"]]],null]],[1,"\\n            "],[10,1],[12],[1,"\\n              "],[1,[28,[35,10],["far-clock"],null]],[1,"\\n              "],[8,[39,7],null,[["@class","@clearable","@input","@onChangeInput"],["pin-until",true,[30,0,["model","pinnedInCategoryUntil"]],[28,[37,6],[[30,0],[28,[37,8],[[30,0,["model","pinnedInCategoryUntil"]]],null]],null]]],null],[1,"\\n              "],[8,[39,9],null,[["@validation","@shownAt"],[[30,0,["pinInCategoryValidation"]],[30,0,["pinInCategoryTipShownAt"]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]]],[1,"        "],[10,2],[12],[1,"\\n          "],[8,[39,5],null,[["@action","@icon","@label","@class"],[[28,[37,6],[[30,0],"pin"],null],"thumbtack","topic.feature.pin","btn-primary"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["canPinGlobally"]],[[[1,"      "],[10,0],[14,0,"feature-section"],[12],[1,"\\n        "],[10,0],[14,0,"desc"],[12],[1,"\\n          "],[10,2],[12],[1,"\\n            "],[8,[39,2],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["pinnedGloballyCount"]],[[[1,"                "],[1,[28,[35,3],[[28,[37,4],["topic.feature_topic.already_pinned_globally"],[["count"],[[30,0,["pinnedGloballyCount"]]]]]],null]],[1,"\\n"]],[]],[[[1,"                "],[1,[28,[35,3],[[28,[37,4],["topic.feature_topic.not_pinned_globally"],null]],null]],[1,"\\n"]],[]]],[1,"            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,2],[12],[1,"\\n            "],[1,[28,[35,4],["topic.feature_topic.global_pin_note"],null]],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["site","isMobileDevice"]],[[[1,"            "],[10,2],[12],[1,"\\n              "],[1,[28,[35,4],["topic.feature_topic.pin_globally"],null]],[1,"\\n            "],[13],[1,"\\n            "],[10,2],[14,0,"with-validation"],[12],[1,"\\n              "],[8,[39,7],null,[["@class","@clearable","@input","@onChangeInput"],["pin-until",true,[30,0,["model","pinnedGloballyUntil"]],[28,[37,6],[[30,0],[28,[37,8],[[30,0,["model","pinnedGloballyUntil"]]],null]],null]]],null],[1,"\\n              "],[8,[39,9],null,[["@validation","@shownAt"],[[30,0,["pinGloballyValidation"]],[30,0,["pinGloballyTipShownAt"]]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],[[[1,"            "],[10,2],[14,0,"with-validation"],[12],[1,"\\n              "],[1,[28,[35,4],["topic.feature_topic.pin_globally"],null]],[1,"\\n              "],[10,1],[12],[1,"\\n                "],[1,[28,[35,10],["far-clock"],null]],[1,"\\n                "],[8,[39,7],null,[["@class","@clearable","@input","@onChangeInput"],["pin-until",true,[30,0,["model","pinnedGloballyUntil"]],[28,[37,6],[[30,0],[28,[37,8],[[30,0,["model","pinnedGloballyUntil"]]],null]],null]]],null],[1,"\\n                "],[8,[39,9],null,[["@validation","@shownAt"],[[30,0,["pinGloballyValidation"]],[30,0,["pinGloballyTipShownAt"]]]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]]],[1,"          "],[10,2],[12],[1,"\\n            "],[8,[39,5],null,[["@action","@icon","@label","@class"],[[28,[37,6],[[30,0],"pinGlobally"],null],"thumbtack","topic.feature.pin_globally","btn-primary"]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]]],[41,[30,0,["currentUser","staff"]],[[[1,"    "],[10,0],[14,0,"feature-section"],[12],[1,"\\n      "],[10,0],[14,0,"desc"],[12],[1,"\\n        "],[10,2],[12],[1,"\\n          "],[8,[39,2],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["bannerCount"]],[[[1,"              "],[1,[28,[35,3],[[28,[37,4],["topic.feature_topic.banner_exists"],null]],null]],[1,"\\n"]],[]],[[[1,"              "],[1,[28,[35,3],[[28,[37,4],["topic.feature_topic.no_banner_exists"],null]],null]],[1,"\\n"]],[]]],[1,"          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n        "],[10,2],[12],[1,"\\n          "],[1,[28,[35,4],["topic.feature_topic.banner_note"],null]],[1,"\\n        "],[13],[1,"\\n        "],[10,2],[12],[1,"\\n"],[41,[30,0,["model","isBanner"]],[[[1,"            "],[1,[28,[35,4],["topic.feature_topic.remove_banner"],null]],[1,"\\n"]],[]],[[[1,"            "],[1,[28,[35,4],["topic.feature_topic.make_banner"],null]],[1,"\\n"]],[]]],[1,"        "],[13],[1,"\\n        "],[10,2],[12],[1,"\\n"],[41,[30,0,["model","isBanner"]],[[[1,"            "],[8,[39,5],null,[["@action","@icon","@label","@class"],[[28,[37,6],[[30,0],"removeBanner"],null],"thumbtack","topic.feature.remove_banner","btn-primary"]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,5],null,[["@action","@icon","@label","@class"],[[28,[37,6],[[30,0],"makeBanner"],null],"thumbtack","topic.feature.make_banner","btn-primary make-banner"]],null],[1,"\\n"]],[]]],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,11],null,[["@close"],[[28,[37,12],["closeModal"],null]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","if","conditional-loading-spinner","html-safe","i18n","d-button","action","future-date-input","mut","popup-input-tip","d-icon","d-modal-cancel","route-action"]]',moduleName:"discourse/templates/modal/feature-topic.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/flag",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"LaHgW2T+",block:'[[[8,[39,0],null,[["@class","@title","@submitOnEnter"],["flag-modal-body",[30,0,["title"]],false]],[["default"],[[[[1,"\\n  "],[10,"form"],[12],[1,"\\n    "],[8,[39,1],null,[["@nameKey","@flags"],[[30,0,["selected","name_key"]],[30,0,["flagsAvailable"]]]],[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@flag","@message","@isWarning","@selectedFlag","@username","@staffFlagsAvailable","@changePostActionType"],[[30,1],[30,0,["message"]],[30,0,["isWarning"]],[30,0,["selected"]],[30,0,["model","username"]],[30,0,["staffFlagsAvailable"]],[28,[37,3],[[30,0],"changePostActionType"],null]]],null],[1,"\\n    "]],[1]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["flag-modal-bottom","div",[28,[37,5],null,[["post"],[[30,0,["model"]]]]]]],null],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,6],null,[["@class","@action","@disabled","@title","@icon","@label"],["btn-primary",[28,[37,3],[[30,0],"createFlag"],null],[30,0,["submitDisabled"]],"flagging.submit_tooltip",[30,0,["submitIcon"]],[30,0,["submitLabel"]]]],null],[1,"\\n\\n"],[41,[30,0,["canSendWarning"]],[[[1,"    "],[8,[39,6],null,[["@class","@action","@disabled","@icon","@label"],["btn-danger",[28,[37,3],[[30,0],"createFlagAsWarning"],null],[30,0,["submitDisabled"]],"exclamation-triangle","flagging.official_warning"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canTakeAction"]],[[[1,"    "],[8,[39,8],null,[["@bundle","@performAction","@reviewableUpdating"],[[30,0,["flagActions"]],[28,[37,3],[[30,0],"takeAction"],null],[30,0,["submitDisabled"]]]],null],[1,"\\n\\n    "],[8,[39,6],null,[["@class","@action","@disabled","@icon","@label"],["btn-danger",[28,[37,3],[[30,0],"flagForReview"],null],[28,[37,9],[[30,0,["submitDisabled"]],[30,0,["cantFlagForReview"]]],null],"exclamation-triangle","flagging.flag_for_review"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDeleteSpammer"]],[[[1,"    "],[8,[39,6],null,[["@class","@action","@disabled","@icon","@label"],["btn-danger",[28,[37,3],[[30,0],"deleteSpammer"],null],[30,0,["submitDisabled"]],"exclamation-triangle","flagging.delete_spammer"]],null],[1,"\\n"]],[]],null],[13]],["f"],false,["d-modal-body","flag-selection","flag-action-type","action","plugin-outlet","hash","d-button","if","reviewable-bundled-action","or"]]',moduleName:"discourse/templates/modal/flag.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/forgot-password",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"qXmxqc1g",block:'[[[10,"form"],[12],[1,"\\n  "],[8,[39,0],null,[["@class"],["forgot-password-modal"]],[["default"],[[[[1,"\\n"],[41,[30,0,["offerHelp"]],[[[1,"      "],[1,[28,[35,2],[[30,0,["offerHelp"]]],null]],[1,"\\n"]],[]],[[[41,[30,0,["siteSettings","hide_email_address_taken"]],[[[1,"        "],[10,"label"],[14,"for","username-or-email"],[12],[1,[28,[35,3],["forgot_password.invite_no_username"],null]],[13],[1,"\\n        "],[8,[39,4],null,[["@value","@placeholderKey","@id","@autocorrect","@autocapitalize"],[[30,0,["accountEmailOrUsername"]],"email","username-or-email","off","off"]],null],[1,"\\n"]],[]],[[[1,"        "],[10,"label"],[14,"for","username-or-email"],[12],[1,[28,[35,3],["forgot_password.invite"],null]],[13],[1,"\\n        "],[8,[39,4],null,[["@value","@placeholderKey","@id","@autocorrect","@autocapitalize"],[[30,0,["accountEmailOrUsername"]],"login.email_placeholder","username-or-email","off","off"]],null],[1,"\\n"]],[]]]],[]]],[1,"  "]],[]]]]],[1,"\\n  "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n"],[41,[30,0,["offerHelp"]],[[[1,"      "],[8,[39,5],null,[["@class","@label","@type","@action"],["btn-large btn-primary","forgot_password.button_ok","submit",[28,[37,6],[[30,0],"ok"],null]]],null],[1,"\\n"],[41,[51,[30,0,["helpSeen"]]],[[[1,"        "],[8,[39,5],null,[["@class","@label","@icon","@action"],["btn-large","forgot_password.button_help","question-circle",[28,[37,6],[[30,0],"help"],null]]],null],[1,"\\n"]],[]],null]],[]],[[[1,"      "],[8,[39,5],null,[["@action","@label","@disabled","@class","@type"],[[28,[37,6],[[30,0],"resetPassword"],null],"forgot_password.reset",[30,0,["submitDisabled"]],"btn-primary forgot-password-reset","submit"]],null],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"],[13]],[],false,["d-modal-body","if","html-safe","i18n","text-field","d-button","action","unless"]]',moduleName:"discourse/templates/modal/forgot-password.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/grant-badge",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"8PvmxMRT",block:'[[[8,[39,0],null,[["@class"],["grant-badge"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["noGrantableBadges"]],[[[1,"      "],[10,2],[12],[1,[28,[35,3],["admin.badges.no_badges"],null]],[13],[1,"\\n"]],[]],[[[1,"      "],[10,2],[12],[1,"\\n        "],[8,[39,4],null,[["@value","@content","@onChange","@options"],[[30,0,["selectedBadgeId"]],[30,0,["grantableBadges"]],[28,[37,5],[[30,0],[28,[37,6],[[30,0,["selectedBadgeId"]]],null]],null],[28,[37,7],null,[["filterable","none"],[true,"badges.none"]]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,8],null,[["@class","@disabled","@action","@label"],["btn-primary",[30,0,["buttonDisabled"]],[28,[37,5],[[30,0],"grantBadge"],null],"admin.badges.grant"]],null],[1,"\\n"],[13]],[],false,["d-modal-body","conditional-loading-spinner","if","i18n","combo-box","action","mut","hash","d-button"]]',moduleName:"discourse/templates/modal/grant-badge.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/group-default-notifications",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"3uUE/5h0",block:'[[[8,[39,0],null,[["@title"],["groups.default_notifications.modal_title"]],[["default"],[[[[1,"\\n  "],[1,[28,[35,1],["groups.default_notifications.modal_description"],[["count"],[[30,0,["model","count"]]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,2],null,[["@action","@class","@label"],[[28,[37,3],[[30,0],"updateExistingUsers"],null],"btn-primary","groups.default_notifications.modal_yes"]],null],[1,"\\n  "],[8,[39,2],null,[["@action","@label"],[[28,[37,3],[[30,0],"cancel"],null],"groups.default_notifications.modal_no"]],null],[1,"\\n"],[13]],[],false,["d-modal-body","i18n","d-button","action"]]',moduleName:"discourse/templates/modal/group-default-notifications.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/history",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"YgD8M0eF",block:'[[[8,[39,0],null,[["@title"],[[30,0,["modalTitleKey"]]]],[["default"],[[[[1,"\\n  "],[10,0],[14,1,"revision"],[12],[1,"\\n    "],[10,0],[14,1,"revision-details"],[12],[1,"\\n      "],[1,[28,[35,1],["pencil-alt"],null]],[1,"\\n      "],[8,[39,2],null,[["@route","@model"],["user",[30,0,["model","username"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],[[30,0,["model","avatar_template"]],"small"],null]],[1,"\\n        "],[1,[30,0,["model","username"]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[39,4],null,[["@name","@outletArgs"],["revision-user-details-after",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[10,1],[14,0,"date"],[12],[1,[28,[35,6],[[30,0,["model","created_at"]]],null]],[13],[1,"\\n"],[41,[30,0,["model","edit_reason"]],[[[1,"        —\\n        "],[10,1],[14,0,"edit-reason"],[12],[1,[30,0,["model","edit_reason"]]],[13],[1,"\\n"]],[]],null],[41,[51,[30,0,["site","mobileView"]]],[[[41,[30,0,["model","user_changes"]],[[[1,"          —\\n          "],[1,[28,[35,3],[[30,0,["model","user_changes","previous","avatar_template"]],"small"],null]],[1,"\\n          "],[1,[30,0,["model","user_changes","previous","username"]]],[1,"\\n          →\\n          "],[1,[28,[35,3],[[30,0,["model","user_changes","current","avatar_template"]],"small"],null]],[1,"\\n          "],[1,[30,0,["model","user_changes","current","username"]]],[1,"\\n"]],[]],null],[41,[30,0,["model","wiki_changes"]],[[[1,"          —\\n          "],[8,[39,9],null,[["@icon","@disabled"],["far-edit",[30,0,["wikiDisabled"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["model","post_type_changes"]],[[[1,"          —\\n          "],[8,[39,9],null,[["@icon","@disabled"],["shield-alt",[30,0,["postTypeDisabled"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["model","category_id_changes"]],[[[1,"          —\\n          "],[1,[28,[35,10],[[30,0,["previousCategory"]]],null]],[1,"\\n          →\\n          "],[1,[28,[35,10],[[30,0,["currentCategory"]]],null]],[1,"\\n"]],[]],null]],[]],null],[1,"    "],[13],[1,"\\n"],[41,[51,[30,0,["site","mobileView"]]],[[[1,"      "],[10,0],[14,1,"display-modes"],[12],[1,"\\n        "],[10,"ul"],[14,0,"nav nav-pills"],[12],[1,"\\n          "],[10,"li"],[12],[1,"\\n            "],[11,3],[24,6,""],[16,0,[30,0,["inlineClass"]]],[16,"title",[28,[37,11],["post.revisions.displays.inline.title"],null]],[16,"aria-label",[28,[37,11],["post.revisions.displays.inline.title"],null]],[4,[38,12],["click",[30,0,["displayInline"]]],null],[12],[1,"\\n              "],[1,[28,[35,1],["far-square"],null]],[1,"\\n              "],[1,[28,[35,11],["post.revisions.displays.inline.button"],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,"li"],[12],[1,"\\n            "],[11,3],[24,6,""],[16,0,[30,0,["sideBySideClass"]]],[16,"title",[28,[37,11],["post.revisions.displays.side_by_side.title"],null]],[16,"aria-label",[28,[37,11],["post.revisions.displays.side_by_side.title"],null]],[4,[38,12],["click",[30,0,["displaySideBySide"]]],null],[12],[1,"\\n              "],[1,[28,[35,1],["columns"],null]],[1,"\\n              "],[1,[28,[35,11],["post.revisions.displays.side_by_side.button"],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,"li"],[12],[1,"\\n            "],[11,3],[24,6,""],[16,0,[30,0,["sideBySideMarkdownClass"]]],[16,"title",[28,[37,11],["post.revisions.displays.side_by_side_markdown.title"],null]],[16,"aria-label",[28,[37,11],["post.revisions.displays.side_by_side_markdown.title"],null]],[4,[38,12],["click",[30,0,["displaySideBySideMarkdown"]]],null],[12],[1,"\\n              "],[1,[28,[35,1],["columns"],null]],[1,"\\n              "],[1,[28,[35,11],["post.revisions.displays.side_by_side_markdown.button"],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,1,"revisions"],[15,"data-post-id",[30,0,["model","post_id"]]],[15,0,[30,0,["hiddenClasses"]]],[12],[1,"\\n"],[41,[30,0,["model","title_changes"]],[[[1,"      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[10,"h2"],[12],[1,[28,[35,10],[[30,0,["titleDiff"]]],null]],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["site","mobileView"]],[[[41,[30,0,["user_changes"]],[[[1,"        "],[10,0],[14,0,"row"],[12],[1,"\\n          "],[1,[28,[35,3],[[30,0,["model","user_changes","previous","avatar_template"]],"small"],null]],[1,"\\n          "],[1,[30,0,["model","user_changes","previous","username"]]],[1,"\\n          →\\n          "],[1,[28,[35,3],[[30,0,["model","user_changes","current","avatar_template"]],"small"],null]],[1,"\\n          "],[1,[30,0,["model","user_changes","current","username"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","wiki_changes"]],[[[1,"        "],[10,0],[14,0,"row"],[12],[1,"\\n          "],[8,[39,9],null,[["@icon","@disabled"],["far-edit",[30,0,["wikiDisabled"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","post_type_changes"]],[[[1,"        "],[10,0],[14,0,"row"],[12],[1,"\\n          "],[8,[39,9],null,[["@icon","@disabled"],["shield-alt",[30,0,["postTypeDisabled"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","category_id_changes"]],[[[1,"        "],[10,0],[14,0,"row"],[12],[1,"\\n          "],[1,[28,[35,10],[[30,0,["previousCategory"]]],null]],[1,"\\n          →\\n          "],[1,[28,[35,10],[[30,0,["currentCategory"]]],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["model","tags_changes"]],[[[1,"      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[1,[28,[35,11],["tagging.changed"],null]],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["previousTagChanges"]]],null]],null],null,[[[1,"          "],[1,[28,[35,15],[[30,1,["name"]]],[["style"],[[52,[30,1,["deleted"]],"diff-del"]]]]],[1,"\\n"]],[1]],null],[1,"        → \\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["currentTagChanges"]]],null]],null],null,[[[1,"          "],[1,[28,[35,15],[[30,2,["name"]]],[["style"],[[52,[30,2,["inserted"]],"diff-ins"]]]]],[1,"\\n"]],[2]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","featured_link_changes"]],[[[1,"      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[1,[30,0,["model","featured_link_changes","previous"]]],[1,"\\n        →\\n        "],[1,[30,0,["model","featured_link_changes","current"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["post-revisions","div",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,16],null,[["@class"],["row"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,10],[[30,0,["bodyDiff"]]],null]],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n"],[41,[30,0,["topicController"]],[[[1,"  "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n    "],[10,0],[14,1,"revision-controls"],[12],[1,"\\n      "],[8,[39,17],null,[["@class","@action","@icon","@title","@disabled"],["btn-default",[28,[37,18],[[30,0],"loadFirstVersion"],null],"fast-backward","post.revisions.controls.first",[30,0,["loadFirstDisabled"]]]],null],[1,"\\n      "],[8,[39,17],null,[["@class","@action","@icon","@title","@disabled"],["btn-default",[28,[37,18],[[30,0],"loadPreviousVersion"],null],"backward","post.revisions.controls.previous",[30,0,["loadPreviousDisabled"]]]],null],[1,"\\n      "],[10,0],[14,1,"revision-numbers"],[15,0,[52,[51,[30,0,["displayRevisions"]]],"invisible"]],[12],[1,"\\n        "],[8,[39,19],null,[["@condition","@size"],[[30,0,["loading"]],"small"]],[["default"],[[[[1,"\\n          "],[1,[28,[35,10],[[30,0,["revisionsText"]]],null]],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,17],null,[["@class","@action","@icon","@title","@disabled"],["btn-default",[28,[37,18],[[30,0],"loadNextVersion"],null],"forward","post.revisions.controls.next",[30,0,["loadNextDisabled"]]]],null],[1,"\\n      "],[8,[39,17],null,[["@class","@action","@icon","@title","@disabled"],["btn-default",[28,[37,18],[[30,0],"loadLastVersion"],null],"fast-forward","post.revisions.controls.last",[30,0,["loadLastDisabled"]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,1,"revision-footer-buttons"],[12],[1,"\\n"],[41,[30,0,["displayEdit"]],[[[1,"        "],[8,[39,17],null,[["@action","@icon","@class","@label"],[[28,[37,18],[[30,0],"editPost"],null],"pencil-alt","btn-default",[30,0,["editButtonLabel"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayRevert"]],[[[1,"        "],[8,[39,17],null,[["@action","@icon","@translatedLabel","@class","@disabled"],[[28,[37,18],[[30,0],"revertToVersion"],null],"undo",[30,0,["revertToRevisionText"]],"btn-danger",[30,0,["loading"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayHide"]],[[[1,"        "],[8,[39,17],null,[["@action","@icon","@label","@class","@disabled"],[[28,[37,18],[[30,0],"hideVersion"],null],"far-eye-slash","post.revisions.controls.hide","btn-danger",[30,0,["loading"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayShow"]],[[[1,"        "],[8,[39,17],null,[["@action","@icon","@label","@class","@disabled"],[[28,[37,18],[[30,0],"showVersion"],null],"far-eye","post.revisions.controls.show","btn-default",[30,0,["loading"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayPermanentlyDeleteButton"]],[[[1,"        "],[8,[39,17],null,[["@action","@icon","@label","@class","@disabled"],[[28,[37,18],[[30,0],"permanentlyDeleteVersions"],null],"far-trash-alt","post.revisions.controls.destroy","btn-danger",[30,0,["loading"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["t","t"],false,["d-modal-body","d-icon","link-to","bound-avatar-template","plugin-outlet","hash","bound-date","if","unless","disabled-icon","html-safe","i18n","on","each","-track-array","discourse-tag","links-redirect","d-button","action","conditional-loading-spinner"]]',moduleName:"discourse/templates/modal/history.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/ignore-duration-with-username",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"ILztHlzT",block:'[[[8,[39,0],null,[["@title","@autoFocus"],["user.user_notifications.ignore_duration_title","false"]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["far-eye-slash"],[["class"],["icon"]]]],[1,"\\n      "],[1,[28,[35,2],["user.user_notifications.ignore_duration_username"],null]],[13],[1,"\\n    "],[8,[39,3],null,[["@value","@onChange","@options"],[[30,0,["ignoredUsername"]],[28,[37,4],[[30,0],"updateIgnoredUsername"],null],[28,[37,5],null,[["excludeCurrentUser","maximum"],[true,1]]]]],null],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,6],null,[["@label","@input","@customShortcuts","@includeDateTime","@onChangeInput"],["user.user_notifications.ignore_duration_when",[28,[37,7],[[30,0,["ignoredUntil"]]],null],[30,0,["timeShortcuts"]],false,[28,[37,4],[[30,0],[28,[37,8],[[30,0,["ignoredUntil"]]],null]],null]]],null],[1,"\\n  "],[10,2],[12],[1,[28,[35,2],["user.user_notifications.ignore_duration_note"],null]],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,9],null,[["@class","@disabled","@label","@action"],["btn-primary",[30,0,["saveDisabled"]],"user.user_notifications.ignore_duration_save",[28,[37,4],[[30,0],"ignore"],null]]],null],[1,"\\n  "],[8,[39,10],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","d-icon","i18n","email-group-user-chooser","action","hash","future-date-input","readonly","mut","d-button","conditional-loading-spinner"]]',moduleName:"discourse/templates/modal/ignore-duration-with-username.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/ignore-duration",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"WPTtsZga",block:'[[[8,[39,0],null,[["@title","@autoFocus"],["user.user_notifications.ignore_duration_title","false"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@label","@input","@customShortcuts","@includeDateTime","@onChangeInput"],["user.user_notifications.ignore_duration_when",[30,0,["ignoredUntil"]],[30,0,["timeShortcuts"]],false,[28,[37,2],[[30,0],[28,[37,3],[[30,0,["ignoredUntil"]]],null]],null]]],null],[1,"\\n  "],[10,2],[12],[1,[28,[35,4],["user.user_notifications.ignore_duration_note"],null]],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,5],null,[["@class","@disabled","@label","@action"],["btn-primary ignore-duration-save",[30,0,["saveDisabled"]],"user.user_notifications.ignore_duration_save",[28,[37,2],[[30,0],"ignore"],null]]],null],[1,"\\n\\n  "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","future-date-input","action","mut","i18n","d-button","conditional-loading-spinner"]]',moduleName:"discourse/templates/modal/ignore-duration.hbs",isStrictMode:!1})
e.default=i}))
define("discourse/templates/modal/insert-hyperlink",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"pzp2M5Z8",block:'[[[8,[39,0],null,[["@title","@class"],["composer.link_dialog_title","insert-link"]],[["default"],[[[[1,"\\n  "],[11,"form"],[24,1,"insert-hyperlink-form"],[4,[38,1],["submit",[28,[37,2],[[30,0],"ok"],null]],null],[12],[1,"\\n    "],[10,0],[14,0,"inputs"],[12],[1,"\\n      "],[8,[39,3],null,[["@value","@placeholderKey","@class","@key-up","@autofocus"],[[30,0,["linkUrl"]],"composer.link_url_placeholder","link-url",[28,[37,2],[[30,0],"search"],null],"autofocus"]],null],[1,"\\n"],[41,[30,0,["searchLoading"]],[[[1,"        "],[1,[34,5]],[1,"\\n"]],[]],null],[41,[30,0,["searchResults"]],[[[1,"        "],[10,0],[14,0,"internal-link-results"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["searchResults"]]],null]],null],null,[[[1,"            "],[10,3],[14,0,"search-link"],[15,6,[30,1,["url"]]],[15,"onclick",[28,[37,2],[[30,0],"linkClick"],null]],[15,"data-title",[30,1,["fancy_title"]]],[12],[1,"\\n              "],[8,[39,8],null,[["@topic","@disableActions"],[[30,1],true]],null],[1,"\\n              "],[1,[28,[35,9],[[30,1,["title"]]],null]],[1,"\\n              "],[10,0],[14,0,"search-category"],[12],[1,"\\n"],[41,[30,1,["category","parentCategory"]],[[[1,"                  "],[1,[28,[35,10],[[30,1,["category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1,"                "],[1,[28,[35,10],[[30,1,["category"]]],[["hideParent"],[true]]]],[1,"\\n                "],[1,[28,[35,11],[[30,1]],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"inputs"],[12],[1,"\\n      "],[8,[39,3],null,[["@value","@placeholderKey","@class"],[[30,0,["linkText"]],"composer.link_optional_text","link-text"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,12],null,[["@class","@label","@action","@type","@form"],["btn-primary","composer.modal_ok",[28,[37,2],[[30,0],"ok"],null],"submit","insert-hyperlink-form"]],null],[1,"\\n\\n  "],[8,[39,12],null,[["@class","@label","@action"],["btn-danger","composer.modal_cancel",[28,[37,2],[[30,0],"cancel"],null]]],null],[1,"\\n"],[13]],["result"],false,["d-modal-body","on","action","text-field","if","loading-spinner","each","-track-array","topic-status","replace-emoji","category-link","discourse-tags","d-button"]]',moduleName:"discourse/templates/modal/insert-hyperlink.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/jump-to-post",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"R1nDEXEc",block:'[[[8,[39,0],null,[["@title"],["topic.progress.jump_prompt_long"]],[["default"],[[[[1,"\\n\\n  "],[10,0],[14,0,"jump-to-post-form"],[12],[1,"\\n    "],[10,0],[14,0,"jump-to-post-control"],[12],[1,"\\n      "],[10,1],[14,0,"index"],[12],[1,"#"],[13],[1,"\\n      "],[8,[39,1],[[24,1,"post-jump"],[24,"autofocus","true"]],[["@type","@value","@insert-newline"],["number",[30,0,["postNumber"]],[28,[37,2],[[30,0],"jump"],null]]],null],[1,"\\n      "],[10,1],[14,0,"input-hint-text post-number"],[12],[1,"\\n        "],[1,[28,[35,3],["topic.progress.jump_prompt_of"],[["count"],[[30,0,["filteredPostsCount"]]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"separator"],[12],[1,"\\n      "],[10,1],[14,0,"text"],[12],[1,"\\n        "],[1,[28,[35,3],["topic.progress.jump_prompt_or"],null]],[1,"\\n      "],[13],[1,"\\n      "],[10,"hr"],[14,0,"right"],[12],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"jump-to-date-control"],[12],[1,"\\n      "],[10,1],[14,0,"input-hint-text post-date"],[12],[1,"\\n        "],[1,[28,[35,3],["topic.progress.jump_prompt_to_date"],null]],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,4],null,[["@id","@class","@value","@defaultDate"],["post-date","date-input",[30,0,["postDate"]],"YYYY-MM-DD"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,5],null,[["@class","@action","@label"],["btn-primary",[28,[37,2],[[30,0],"jump"],null],"composer.modal_ok"]],null],[1,"\\n  "],[8,[39,6],null,[["@close"],[[28,[37,7],["closeModal"],null]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","input","action","i18n","date-picker","d-button","d-modal-cancel","route-action"]]',moduleName:"discourse/templates/modal/jump-to-post.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/login",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"DoYET3Oe",block:'[[[8,[39,0],null,[["@loginName","@loginPassword","@secondFactorToken","@action"],[[30,0,["loginName"]],[30,0,["loginPassword"]],[30,0,["secondFactorToken"]],[28,[37,1],[[30,0],"login"],null]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@name","@connectorTagName"],["login-before-modal-body","div"]],null],[1,"\\n  "],[8,[39,3],null,[["@class"],[[30,0,["modalBodyClasses"]]]],[["default"],[[[[1,"\\n\\n"],[41,[30,0,["canLoginLocal"]],[[[1,"      "],[10,0],[14,0,"login-left-side"],[12],[1,"\\n        "],[10,0],[14,0,"login-welcome-header"],[12],[1,"\\n          "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,5],["login.header_title"],null]],[13],[1,"\\n          "],[10,"img"],[15,"src",[30,0,["wavingHandURL"]]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n          "],[10,2],[14,0,"login-subheader"],[12],[1,[28,[35,5],["login.subheader_title"],null]],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"form"],[14,1,"login-form"],[14,"method","post"],[12],[1,"\\n          "],[10,0],[14,1,"credentials"],[15,0,[30,0,["credentialsClass"]]],[12],[1,"\\n            "],[10,0],[14,0,"input-group"],[12],[1,"\\n              "],[8,[39,6],[[24,1,"login-account-name"],[16,0,[28,[37,7],[[30,0,["loginName"]]],null]],[24,"autocomplete","username"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[16,"disabled",[30,0,["showSecondFactor"]]],[24,"autofocus","autofocus"],[24,"tabindex","1"]],[["@value","@type"],[[30,0,["loginName"]],"email"]],null],[1,"\\n              "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","login-account-name"],[12],[1,[28,[35,5],["login.email_placeholder"],null]],[13],[1,"\\n"],[41,[30,0,["showLoginWithEmailLink"]],[[[1,"                "],[11,3],[24,6,""],[16,0,[52,[30,0,["loginName"]],"","no-login-filled"]],[24,"tabindex","3"],[24,1,"email-login-link"],[4,[38,8],["click",[30,0,["emailLogin"]]],null],[12],[1,"\\n                  "],[1,[28,[35,5],["email_login.login_link"],null]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n            "],[10,0],[14,0,"input-group"],[12],[1,"\\n              "],[8,[39,9],[[16,0,[28,[37,7],[[30,0,["loginPassword"]]],null]],[24,1,"login-account-password"],[24,"autocomplete","current-password"],[24,"maxlength","200"],[16,"disabled",[30,0,["disableLoginFields"]]],[24,"tabindex","1"]],[["@value","@type","@capsLockOn"],[[30,0,["loginPassword"]],[52,[30,0,["maskPassword"]],"password","text"],[30,0,["capsLockOn"]]]],null],[1,"\\n              "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","login-account-password"],[12],[1,[28,[35,5],["login.password"],null]],[13],[1,"\\n              "],[10,0],[14,0,"login__password-links"],[12],[1,"\\n                "],[11,3],[24,6,""],[24,1,"forgot-password-link"],[24,"tabindex","3"],[4,[38,8],["click",[30,0,["handleForgotPassword"]]],null],[12],[1,[28,[35,5],["forgot_password.action"],null]],[13],[1,"\\n                "],[8,[39,10],[[24,"tabindex","3"]],[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[15,0,[29,["caps-lock-warning ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,[28,[35,12],["exclamation-triangle"],null]],[1,"\\n                "],[1,[28,[35,5],["login.caps_lock_warning"],null]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[8,[39,13],null,[["@secondFactorMethod","@secondFactorToken","@class","@backupEnabled","@isLogin"],[[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["secondFactorClass"]],[30,0,["backupEnabled"]],true]],[["default"],[[[[1,"\\n"],[41,[30,0,["showSecurityKey"]],[[[1,"              "],[8,[39,14],null,[["@allowedCredentialIds","@challenge","@showSecurityKey","@showSecondFactor","@secondFactorMethod","@otherMethodAllowed","@action"],[[30,0,["securityKeyAllowedCredentialIds"]],[30,0,["securityKeyChallenge"]],[30,0,["showSecurityKey"]],[30,0,["showSecondFactor"]],[30,0,["secondFactorMethod"]],[30,0,["otherMethodAllowed"]],[28,[37,1],[[30,0],"authenticateSecurityKey"],null]]],null],[1,"\\n"]],[]],[[[1,"              "],[8,[39,15],null,[["@value","@inputId","@secondFactorMethod","@backupEnabled"],[[30,0,["secondFactorToken"]],"login-second-factor",[30,0,["secondFactorMethod"]],[30,0,["backupEnabled"]]]],null],[1,"\\n"]],[]]],[1,"          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n"],[41,[30,0,["canLoginLocal"]],[[[41,[51,[30,0,["showSecurityKey"]]],[[[1,"              "],[8,[39,16],null,[["@action","@id","@form","@icon","@label","@disabled","@class","@tabindex"],[[28,[37,1],[[30,0],"login"],null],"login-button","login-form","unlock",[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],"btn btn-large btn-primary","2"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showSignupLink"]],[[[1,"              "],[8,[39,16],null,[["@class","@id","@action","@label","@tabindex"],["btn-large","new-account-link",[28,[37,1],[[30,0],"createAccount"],null],"create_account.title","3"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"          "],[8,[39,17],null,[["@condition","@size"],[[30,0,["showSpinner"]],"small"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showLoginButtons"]],[[[41,[30,0,["noLoginLocal"]],[[[1,"        "],[10,0],[14,0,"login-left-side"],[12],[1,"\\n          "],[10,0],[14,0,"login-welcome-header"],[12],[1,"\\n            "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,5],["login.header_title"],null]],[13],[1,"\\n            "],[10,"img"],[15,"src",[30,0,["wavingHandURL"]]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n            "],[10,2],[14,0,"login-subheader"],[12],[1,[28,[35,5],["login.subheader_title"],null]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n        "],[8,[39,18],null,[["@externalLogin"],[[28,[37,1],[[30,0],"externalLogin"],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n\\n  "],[8,[39,2],null,[["@name","@connectorTagName"],["login-after-modal-footer","div"]],null],[1,"\\n\\n  "],[10,0],[15,0,[30,0,["alertClass"]]],[14,1,"login-alert"],[12],[1,[30,0,["alert"]]],[13],[1,"\\n"]],[]]]]]],[],false,["login-modal","action","plugin-outlet","d-modal-body","if","i18n","input","value-entered","on","password-field","toggle-password-mask","unless","d-icon","second-factor-form","security-key-form","second-factor-input","d-button","conditional-loading-spinner","login-buttons"]]',moduleName:"discourse/templates/modal/login.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/move-to-topic",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"ORyqJjdm",block:'[[[8,[39,0],null,[["@id"],["choosing-topic"]],[["default"],[[[[1,"\\n\\n"],[41,[30,0,["model","isPrivateMessage"]],[[[1,"    "],[10,0],[14,0,"radios"],[12],[1,"\\n"],[41,[30,0,["canSplitToPM"]],[[[1,"        "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-message"],[12],[1,"\\n          "],[8,[39,2],null,[["@id","@name","@value","@selection"],["move-to-new-message","move-to-entity","new_message",[30,0,["selection"]]]],null],[1,"\\n          "],[10,"b"],[12],[1,[28,[35,3],["topic.move_to_new_message.radio_label"],null]],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-existing-message"],[12],[1,"\\n        "],[8,[39,2],null,[["@id","@name","@value","@selection"],["move-to-existing-message","move-to-entity","existing_message",[30,0,["selection"]]]],null],[1,"\\n        "],[10,"b"],[12],[1,[28,[35,3],["topic.move_to_existing_message.radio_label"],null]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newMessage"]],[[[1,"        "],[10,2],[12],[1,[28,[35,4],[[28,[37,3],["topic.move_to_new_message.instructions"],[["count"],[[30,0,["selectedPostsCount"]]]]]],null]],[13],[1,"\\n        "],[10,"form"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,3],["topic.move_to_new_message.message_title"],null]],[13],[1,"\\n          "],[8,[39,5],null,[["@value","@placeholderKey","@id"],[[30,0,["topicName"]],"composer.title_placeholder","split-topic-name"]],null],[1,"\\n\\n"],[41,[30,0,["canTagMessages"]],[[[1,"            "],[10,"label"],[12],[1,[28,[35,3],["tagging.tags"],null]],[13],[1,"\\n            "],[8,[39,6],null,[["@tags"],[[30,0,["tags"]]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["existingMessage"]],[[[1,"      "],[10,2],[12],[1,[28,[35,4],[[28,[37,3],["topic.move_to_existing_message.instructions"],[["count"],[[30,0,["selectedPostsCount"]]]]]],null]],[13],[1,"\\n      "],[10,"form"],[12],[1,"\\n        "],[8,[39,7],null,[["@currentTopicId","@selectedTopicId"],[[30,0,["model","id"]],[30,0,["selectedTopicId"]]]],null],[1,"\\n\\n        "],[10,"label"],[12],[1,[28,[35,3],["topic.move_to_new_message.participants"],null]],[13],[1,"\\n        "],[8,[39,8],null,[["@class","@value","@onChange"],["participant-selector",[30,0,["participants"]],[28,[37,9],[[30,0],[28,[37,10],[[30,0,["participants"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,0,["selectedTopicId"]],[[[1,"          "],[10,"hr"],[12],[13],[1,"\\n          "],[10,"label"],[14,"for","chronological-order"],[14,0,"checkbox-label"],[12],[1,"\\n            "],[8,[39,11],[[24,1,"chronological-order"]],[["@type","@checked"],["checkbox",[30,0,["chronologicalOrder"]]]],null],[1,"\\n            "],[1,[28,[35,3],["topic.merge_topic.chronological_order"],null]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],[[[1,"\\n    "],[10,0],[14,0,"radios"],[12],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[1,"        "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-topic"],[12],[1,"\\n          "],[8,[39,2],null,[["@id","@name","@value","@selection"],["move-to-new-topic","move-to-entity","new_topic",[30,0,["selection"]]]],null],[1,"\\n          "],[10,"b"],[12],[1,[28,[35,3],["topic.split_topic.radio_label"],null]],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-existing-topic"],[12],[1,"\\n        "],[8,[39,2],null,[["@id","@name","@value","@selection"],["move-to-existing-topic","move-to-entity","existing_topic",[30,0,["selection"]]]],null],[1,"\\n        "],[10,"b"],[12],[1,[28,[35,3],["topic.merge_topic.radio_label"],null]],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["canSplitToPM"]],[[[1,"        "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-message"],[12],[1,"\\n          "],[8,[39,2],null,[["@id","@name","@value","@selection"],["move-to-new-message","move-to-entity","new_message",[30,0,["selection"]]]],null],[1,"\\n          "],[10,"b"],[12],[1,[28,[35,3],["topic.move_to_new_message.radio_label"],null]],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["existingTopic"]],[[[1,"      "],[10,2],[12],[1,[28,[35,4],[[28,[37,3],["topic.merge_topic.instructions"],[["count"],[[30,0,["selectedPostsCount"]]]]]],null]],[13],[1,"\\n      "],[10,"form"],[12],[1,"\\n        "],[8,[39,12],null,[["@currentTopicId","@selectedTopicId"],[[30,0,["model","id"]],[30,0,["selectedTopicId"]]]],null],[1,"\\n\\n"],[41,[30,0,["selectedTopicId"]],[[[1,"          "],[10,"hr"],[12],[13],[1,"\\n          "],[10,"label"],[14,"for","chronological-order"],[14,0,"checkbox-label"],[12],[1,"\\n            "],[8,[39,11],[[24,1,"chronological-order"]],[["@type","@checked"],["checkbox",[30,0,["chronologicalOrder"]]]],null],[1,"\\n            "],[1,[28,[35,3],["topic.merge_topic.chronological_order"],null]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newTopic"]],[[[1,"        "],[10,2],[12],[1,[28,[35,4],[[28,[37,3],["topic.split_topic.instructions"],[["count"],[[30,0,["selectedPostsCount"]]]]]],null]],[13],[1,"\\n        "],[10,"form"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,3],["topic.split_topic.topic_name"],null]],[13],[1,"\\n          "],[8,[39,5],null,[["@value","@placeholderKey","@id"],[[30,0,["topicName"]],"composer.title_placeholder","split-topic-name"]],null],[1,"\\n\\n          "],[10,"label"],[12],[1,[28,[35,3],["categories.category"],null]],[13],[1,"\\n          "],[8,[39,13],null,[["@value","@class","@onChange"],[[30,0,["categoryId"]],"small",[28,[37,9],[[30,0],[28,[37,10],[[30,0,["categoryId"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["canAddTags"]],[[[1,"            "],[10,"label"],[12],[1,[28,[35,3],["tagging.tags"],null]],[13],[1,"\\n            "],[8,[39,6],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,0,["categoryId"]]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newMessage"]],[[[1,"        "],[10,2],[12],[1,[28,[35,4],[[28,[37,3],["topic.move_to_new_message.instructions"],[["count"],[[30,0,["selectedPostsCount"]]]]]],null]],[13],[1,"\\n        "],[10,"form"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,3],["topic.move_to_new_message.message_title"],null]],[13],[1,"\\n          "],[8,[39,5],null,[["@value","@placeholderKey","@id"],[[30,0,["topicName"]],"composer.title_placeholder","split-topic-name"]],null],[1,"\\n\\n"],[41,[30,0,["canTagMessages"]],[[[1,"            "],[10,"label"],[12],[1,[28,[35,3],["tagging.tags"],null]],[13],[1,"\\n            "],[8,[39,6],null,[["@tags"],[[30,0,["tags"]]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,14],null,[["@class","@disabled","@action","@icon","@translatedLabel"],["btn-primary",[30,0,["buttonDisabled"]],[28,[37,9],[[30,0],"performMove"],null],"sign-out-alt",[30,0,["buttonTitle"]]]],null],[1,"\\n"],[13]],[],false,["d-modal-body","if","radio-button","i18n","html-safe","text-field","tag-chooser","choose-message","email-group-user-chooser","action","mut","input","choose-topic","category-chooser","d-button"]]',moduleName:"discourse/templates/modal/move-to-topic.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/post-enqueued",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"LAUO6IQd",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[10,2],[12],[1,[28,[35,1],["review.approval.description"],null]],[13],[1,"\\n\\n  "],[10,2],[12],[1,[28,[35,2],[[28,[37,1],["review.approval.pending_posts"],[["count"],[[30,0,["model","pending_count"]]]]]],null]],[13],[1,"\\n"]],[]]]]],[1,"\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,3],null,[["@action","@class","@label"],[[28,[37,4],["closeModal"],null],"btn-primary","review.approval.ok"]],null],[1,"\\n"],[13]],[],false,["d-modal-body","i18n","html-safe","d-button","route-action"]]',moduleName:"discourse/templates/modal/post-enqueued.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/publish-page",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"1UBW8v0Y",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["unpublished"]],[[[1,"    "],[10,2],[12],[1,[28,[35,2],["topic.publish_page.unpublished"],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,3],null,[["@condition"],[[30,0,["initializing"]]]],[["default"],[[[[1,"\\n      "],[10,2],[14,0,"publish-description"],[12],[1,[28,[35,2],["topic.publish_page.description"],null]],[13],[1,"\\n\\n      "],[10,"form"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,2],["topic.publish_page.slug"],null]],[13],[1,"\\n          "],[8,[39,4],null,[["@value","@onChange","@onChangeImmediate","@disabled","@class"],[[30,0,["publishedPage","slug"]],[28,[37,5],[[30,0],"checkSlug"],null],[28,[37,5],[[30,0],"startCheckSlug"],null],[30,0,["existing"]],"publish-slug"]],null],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,2],["topic.publish_page.public"],null]],[13],[1,"\\n\\n          "],[10,2],[14,0,"description"],[12],[1,"\\n            "],[8,[39,6],[[4,[38,8],["click",[28,[37,5],[[30,0],"onChangePublic"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[28,[37,7],[[30,0,["publishedPage","public"]]],null]]],null],[1,"\\n            "],[1,[28,[35,2],["topic.publish_page.public_description"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"publish-url"],[12],[1,"\\n        "],[8,[39,3],null,[["@condition"],[[30,0,["checking"]]]],null],[1,"\\n\\n"],[41,[30,0,["existing"]],[[[1,"          "],[10,0],[14,0,"current-url"],[12],[1,"\\n            "],[1,[28,[35,2],["topic.publish_page.publish_url"],null]],[1,"\\n            "],[10,0],[12],[1,"\\n              "],[10,3],[15,6,[30,0,["publishedPage","url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["publishedPage","url"]]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[41,[30,0,["showUrl"]],[[[1,"            "],[10,0],[14,0,"valid-slug"],[12],[1,"\\n              "],[1,[28,[35,2],["topic.publish_page.preview_url"],null]],[1,"\\n              "],[10,0],[14,0,"example-url"],[12],[1,[30,0,["publishedPage","url"]]],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["invalid"]],[[[1,"            "],[1,[28,[35,2],["topic.publish_page.invalid_slug"],null]],[1,"\\n            "],[10,1],[14,0,"invalid-slug"],[12],[1,[30,0,["reason"]]],[1,"."],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]]]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n"],[41,[30,0,["showUnpublish"]],[[[1,"    "],[8,[39,9],null,[["@label","@icon","@class","@isLoading","@action"],["topic.publish_page.unpublish","trash-alt","btn-danger",[30,0,["unpublishing"]],[28,[37,5],[[30,0],"unpublish"],null]]],null],[1,"\\n\\n    "],[8,[39,9],null,[["@class","@icon","@label","@action"],["close-publish-page","times","close",[28,[37,5],[[30,0],"closeModal"],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["unpublished"]],[[[1,"    "],[8,[39,9],null,[["@label","@action"],["topic.publish_page.publishing_settings",[28,[37,5],[[30,0],"startNew"],null]]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,9],null,[["@label","@class","@icon","@disabled","@isLoading","@action"],["topic.publish_page.publish","btn-primary publish-page","file",[30,0,["disabled"]],[30,0,["saving"]],[28,[37,5],[[30,0],"publish"],null]]],null],[1,"\\n  "]],[]]]],[]]],[13]],[],false,["d-modal-body","if","i18n","conditional-loading-spinner","text-field","action","input","readonly","on","d-button"]]',moduleName:"discourse/templates/modal/publish-page.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/raw-email",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"kIF3r0+1",block:'[[[8,[39,0],null,[["@title","@class"],["raw_email.title","incoming-email-modal"]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"incoming-email-tabs"],[12],[1,"\\n    "],[8,[39,1],null,[["@action","@label","@title","@class"],[[28,[37,2],[[30,0],"displayRaw"],null],"post.raw_email.displays.raw.button","post.raw_email.displays.raw.title",[52,[30,0,["showRawEmail"]],"active"]]],null],[1,"\\n\\n"],[41,[30,0,["textPart"]],[[[1,"      "],[8,[39,1],null,[["@action","@label","@title","@class"],[[28,[37,2],[[30,0],"displayTextPart"],null],"post.raw_email.displays.text_part.button","post.raw_email.displays.text_part.title",[52,[30,0,["showTextPart"]],"active"]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["htmlPart"]],[[[1,"      "],[8,[39,1],null,[["@action","@label","@title","@class"],[[28,[37,2],[[30,0],"displayHtmlPart"],null],"post.raw_email.displays.html_part.button","post.raw_email.displays.html_part.title",[52,[30,0,["showHtmlPart"]],"active"]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"incoming-email-content"],[12],[1,"\\n"],[41,[30,0,["showRawEmail"]],[[[41,[30,0,["rawEmail"]],[[[1,"        "],[8,[39,4],null,[["@value"],[[30,0,["rawEmail"]]]],null],[1,""]],[]],[[[1,"        "],[1,[28,[35,5],["raw_email.not_available"],null]],[1,""]],[]]]],[]],null],[41,[30,0,["showTextPart"]],[[[1,"      "],[8,[39,4],null,[["@value"],[[30,0,["textPart"]]]],null],[1,""]],[]],null],[41,[30,0,["showHtmlPart"]],[[[1,"      "],[8,[39,6],null,[["@html","@className"],[[30,0,["htmlPart"]],"incoming-email-html-part"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]]]]]],[],false,["d-modal-body","d-button","action","if","textarea","i18n","iframed-html"]]',moduleName:"discourse/templates/modal/raw-email.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/reject-reason-reviewable",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"ADcSZWvP",block:'[[[8,[39,0],null,[["@class"],["explain-reviewable"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@value"],[[30,0,["rejectReason"]]]],null],[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[8,[39,2],[[24,0,"inline"]],[["@type","@checked"],["checkbox",[30,0,["sendEmail"]]]],null],[1,"\\n      "],[1,[28,[35,3],["review.reject_reason.send_email"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,4],null,[["@icon","@class","@action","@label"],["trash-alt","btn-danger",[28,[37,5],[[30,0],"perform"],null],"admin.user.delete"]],null],[1,"\\n  "],[8,[39,4],null,[["@action","@label","@class"],[[28,[37,6],["closeModal"],null],"cancel","cancel"]],null],[1,"\\n"],[13]],[],false,["d-modal-body","textarea","input","i18n","d-button","action","route-action"]]',moduleName:"discourse/templates/modal/reject-reason-reviewable.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/reorder-categories",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"cmT7exIi",block:'[[[8,[39,0],null,[["@class","@title"],["reorder-categories full-height-modal","categories.reorder.title"]],[["default"],[[[[1,"\\n  "],[10,0],[14,1,"rc-scroll-anchor"],[12],[13],[1,"\\n  "],[10,"table"],[12],[1,"\\n    "],[10,"thead"],[12],[1,"\\n      "],[10,"th"],[14,0,"th-cat"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[1,"\\n      "],[10,"th"],[14,0,"th-pos"],[12],[1,[28,[35,1],["categories.reorder.position"],null]],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categoriesOrdered"]]],null]],null],null,[[[1,"        "],[10,"tr"],[15,"data-category-id",[30,1,["id"]]],[12],[1,"\\n          "],[10,"td"],[12],[1,"\\n            "],[10,0],[15,0,[28,[37,4],["reorder-categories-depth-",[30,1,["depth"]]],null]],[12],[1,"\\n              "],[1,[28,[35,5],[[30,1]],[["allowUncategorized"],["true"]]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,"td"],[12],[1,"\\n            "],[8,[39,6],null,[["@number","@change","@min"],[[28,[37,7],[[30,1,["position"]]],null],[28,[37,8],[[30,0],"change",[30,1]],null],"0"]],null],[1,"\\n            "],[8,[39,9],null,[["@class","@action","@actionParam","@icon"],["btn-default no-text",[28,[37,8],[[30,0],"moveUp"],null],[30,1],"arrow-up"]],null],[1,"\\n            "],[8,[39,9],null,[["@class","@action","@actionParam","@icon"],["btn-default no-text",[28,[37,8],[[30,0],"moveDown"],null],[30,1],"arrow-down"]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,1,"rc-scroll-bottom"],[12],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,9],null,[["@class","@action","@label"],["btn-primary",[28,[37,8],[[30,0],"save"],null],"categories.reorder.save"]],null],[1,"\\n"],[13]],["cat"],false,["d-modal-body","i18n","each","-track-array","concat","category-badge","number-field","readonly","action","d-button"]]',moduleName:"discourse/templates/modal/reorder-categories.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/request-group-membership-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"Fx5SEORP",block:'[[[10,"form"],[14,0,"request-group-membership-form"],[12],[1,"\\n  "],[8,[39,0],null,[["@rawTitle"],[[30,0,["title"]]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[1,[28,[35,1],["groups.membership_request.reason"],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,2],null,[["@value","@maxlength"],[[30,0,["reason"]],"5000"]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[10,0],[14,0,"modal-footer"],[12],[1,"\\n    "],[8,[39,3],null,[["@class","@disabled","@label","@action"],["btn-primary",[30,0,["disableSubmit"]],"groups.membership_request.submit",[28,[37,4],[[30,0],"requestMember"],null]]],null],[1,"\\n\\n    "],[8,[39,5],null,[["@close"],[[28,[37,6],["closeModal"],null]]],null],[1,"\\n    "],[8,[39,7],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["d-modal-body","i18n","expanding-text-area","d-button","action","d-modal-cancel","route-action","conditional-loading-spinner"]]',moduleName:"discourse/templates/modal/request-group-membership-form.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/share-and-invite",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"98AaUMqE",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@panel"],[[30,0,["modal","selectedPanel"]]]],null],[1,"\\n"]],[]]]]]],[],false,["d-modal-body","modal-panel"]]',moduleName:"discourse/templates/modal/share-and-invite.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/sidebar-tags-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"rJb5Nonw",block:'[[[8,[39,0],null,[["@closeModal"],[[28,[37,1],[[30,0],"closeModal"],null]]],null]],[],false,["sidebar/edit-navigation-modal-form/tags-form","action"]]',moduleName:"discourse/templates/modal/sidebar-tags-form.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/tag-upload",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"qGh2T+JP",block:'[[[8,[39,0],null,[["@title"],["tagging.upload"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@refresh","@closeModal","@id"],[[28,[37,2],["triggerRefresh"],null],[28,[37,2],["closeModal"],null],"tags-uploader"]],null],[1,"\\n"]],[]]]]]],[],false,["d-modal-body","tags-uploader","route-action"]]',moduleName:"discourse/templates/modal/tag-upload.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/topic-bulk-actions",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"Af4MNf+z",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[10,2],[12],[1,[28,[35,1],[[28,[37,2],["topics.bulk.selected"],[["count"],[[30,0,["model","topics","length"]]]]]],null]],[13],[1,"\\n  "],[46,[28,[37,4],["bulkOutlet"],null],null,null,null],[1,"\\n"]],[]]]]]],[],false,["d-modal-body","html-safe","i18n","component","-outlet"]]',moduleName:"discourse/templates/modal/topic-bulk-actions.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/topic-summary",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"r9Dshfuj",block:'[[[8,[39,0],null,[["@topicId","@closeModal"],[[30,0,["topicId"]],[28,[37,1],["closeModal"],null]]],null]],[],false,["topic-summary","route-action"]]',moduleName:"discourse/templates/modal/topic-summary.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/modal/user-status",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"ybUlXFBH",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,2],null,[["@status"],[[30,0,["status"]]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[51,[30,0,["hidePauseNotifications"]]],[[[1,"      "],[10,0],[14,0,"control-group pause-notifications"],[12],[1,"\\n        "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n          "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["pauseNotifications"]]]],null],[1,"\\n          "],[1,[28,[35,5],["user_status.pause_notifications"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,0],[14,0,"control-group control-group-remove-status"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n        "],[1,[28,[35,5],["user_status.remove_status"],null]],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,6],null,[["@timeShortcuts","@hiddenOptions","@customLabels","@prefilledDatetime","@onTimeSelected","@_itsatrap"],[[30,0,["timeShortcuts"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["customTimeShortcutLabels"]],[30,0,["prefilledDateTime"]],[28,[37,7],[[30,0],"onTimeSelected"],null],[30,0,["_itsatrap"]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"modal-footer control-group"],[12],[1,"\\n      "],[8,[39,8],null,[["@label","@class","@disabled","@action"],["user_status.save","btn-primary",[28,[37,9],[[30,0,["statusIsSet"]]],null],[28,[37,7],[[30,0],"saveAndClose"],null]]],null],[1,"\\n      "],[8,[39,10],null,[["@close"],[[28,[37,7],[[30,0],"closeModal"],null]]],null],[1,"\\n"],[41,[30,0,["showDeleteButton"]],[[[1,"        "],[8,[39,8],null,[["@icon","@class","@action"],["trash-alt","delete-status btn-danger",[28,[37,7],[[30,0],"delete"],null]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]]],[],false,["d-modal-body","conditional-loading-spinner","user-status-picker","unless","input","i18n","time-shortcut-picker","action","d-button","not","d-modal-cancel","if"]]',moduleName:"discourse/templates/modal/user-status.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/navigation/categories",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"QEfo0TVf",block:'[[[8,[39,0],null,[["@bodyClass","@class"],["navigation-categories","navigation-container"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@filterType","@showCategoryAdmin","@createCategory","@reorderCategories","@canCreateTopic","@hasDraft","@createTopic"],["categories",[30,0,["showCategoryAdmin"]],[28,[37,2],["createCategory"],null],[28,[37,2],["reorderCategories"],null],[30,0,["canCreateTopic"]],[30,0,["currentUser","has_topic_draft"]],[28,[37,2],["createTopic"],null]]],null],[1,"\\n"]],[]]]]]],[],false,["d-section","d-navigation","route-action"]]',moduleName:"discourse/templates/navigation/categories.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/navigation/category",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"Kwc++pUr",block:'[[[8,[39,0],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n\\n"],[10,"section"],[14,0,"category-heading"],[12],[1,"\\n"],[41,[30,0,["category","uploaded_logo","url"]],[[[1,"    "],[8,[39,2],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"],[41,[30,0,["category","description"]],[[[1,"      "],[10,2],[12],[1,[28,[35,3],[[30,0,["category","description"]]],[["htmlSafe"],["true"]]]],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["category-heading","div",[28,[37,5],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,6],null,[["@class"],["navigation-container category-navigation"]],[["default"],[[[[1,"\\n  "],[8,[39,7],null,[["@category","@filterMode","@noSubcategories","@canCreateTopic","@createTopic","@createTopicDisabled","@hasDraft","@editCategory"],[[30,0,["category"]],[30,0,["filterMode"]],[30,0,["noSubcategories"]],[30,0,["canCreateTopic"]],[28,[37,8],["createTopic"],null],[30,0,["cannotCreateTopicOnCategory"]],[30,0,["currentUser","has_topic_draft"]],[28,[37,8],["editCategory",[30,0,["category"]]],null]]],null],[1,"\\n\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["category-navigation","div",[28,[37,5],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"]],[]]]]]],[],false,["add-category-tag-classes","if","category-logo","dir-span","plugin-outlet","hash","d-section","d-navigation","route-action"]]',moduleName:"discourse/templates/navigation/category.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/navigation/default",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"+vmBs5d7",block:'[[[8,[39,0],null,[["@bodyClass","@class","@scrollTop"],["navigation-topics","navigation-container",false]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@filterMode","@canCreateTopic","@hasDraft","@createTopic","@skipCategoriesNavItem"],[[30,0,["filterMode"]],[30,0,["canCreateTopic"]],[30,0,["currentUser","has_topic_draft"]],[28,[37,2],["createTopic"],null],[30,0,["skipCategoriesNavItem"]]]],null],[1,"\\n"]],[]]]]]],[],false,["d-section","d-navigation","route-action"]]',moduleName:"discourse/templates/navigation/default.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/navigation/filter",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"jw1PGvKW",block:'[[[8,[39,0],null,[["@bodyClass","@class","@scrollTop"],["navigation-filter","navigation-container",false]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"topic-query-filter"],[12],[1,"\\n    "],[10,0],[14,0,"topic-query-filter__input"],[12],[1,"\\n      "],[1,[28,[35,1],["filter"],[["class"],["topic-query-filter__icon"]]]],[1,"\\n      "],[8,[39,2],[[24,0,"topic-query-filter__filter-term"]],[["@value","@enter","@type"],[[30,0,["queryString"]],[28,[37,3],[[30,0],[30,0,["discoveryFilter","updateTopicsListQueryParams"]],[30,0,["queryString"]]],null],"text"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],[],false,["d-section","d-icon","input","action"]]',moduleName:"discourse/templates/navigation/filter.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/password-reset",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"poHCGId2",block:'[[[10,0],[14,0,"container password-reset clearfix"],[12],[1,"\\n  "],[10,0],[14,0,"pull-left col-image"],[12],[1,"\\n    "],[10,"img"],[15,"src",[30,0,["lockImageUrl"]]],[14,0,"password-reset-img"],[15,"alt",[28,[37,0],["user.change_password.emoji"],null]],[12],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"pull-left col-form"],[12],[1,"\\n"],[41,[30,0,["successMessage"]],[[[1,"      "],[10,2],[12],[1,[30,0,["successMessage"]]],[13],[1,"\\n\\n"],[41,[30,0,["requiresApproval"]],[[[1,"        "],[10,2],[12],[1,[28,[35,0],["login.not_approved"],null]],[13],[1,"\\n"]],[]],[[[41,[51,[30,0,["redirected"]]],[[[1,"          "],[11,3],[24,0,"btn"],[16,6,[30,0,["redirectHref"]]],[4,[38,3],["click",[30,0,["done"]]],null],[12],[1,[30,0,["continueButtonText"]]],[13],[1,"\\n"]],[]],null]],[]]]],[]],[[[1,"      "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["securityKeyOrSecondFactorRequired"]],[[[41,[30,0,["errorMessage"]],[[[1,"            "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n            "],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["securityKeyRequired"]],[[[1,"            "],[8,[39,4],null,[["@allowedCredentialIds","@challenge","@showSecurityKey","@showSecondFactor","@secondFactorMethod","@otherMethodAllowed","@action"],[[30,0,["model","allowed_credential_ids"]],[30,0,["model","security_key_challenge"]],[30,0,["model","security_key_required"]],false,[30,0,["secondFactorMethod"]],[30,0,["otherMethodAllowed"]],[28,[37,5],[[30,0],"authenticateSecurityKey"],null]]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,6],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@isLogin"],[[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["backupEnabled"]],false]],[["default"],[[[[1,"\\n              "],[8,[39,7],null,[["@value","@inputId","@secondFactorMethod","@backupEnabled"],[[30,0,["secondFactorToken"]],"second-factor",[30,0,["secondFactorMethod"]],[30,0,["backupEnabled"]]]],null],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]]],[41,[51,[30,0,["securityKeyRequired"]]],[[[1,"            "],[8,[39,8],null,[["@action","@class","@label","@type"],[[28,[37,5],[[30,0],"submit"],null],"btn-primary","submit","submit"]],null],[1,"\\n"]],[]],null]],[]],[[[1,"          "],[10,"h2"],[12],[1,[28,[35,0],["user.change_password.choose"],null]],[13],[1,"\\n\\n          "],[10,0],[14,0,"input"],[12],[1,"\\n            "],[8,[39,9],null,[["@value","@type","@id","@capsLockOn","@autofocus"],[[30,0,["accountPassword"]],[52,[30,0,["maskPassword"]],"password","text"],"new-account-password",[30,0,["capsLockOn"]],"autofocus"]],null],[1,"\\n            "],[8,[39,10],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n            "],[8,[39,11],null,[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"instructions"],[12],[1,"\\n            "],[10,0],[15,0,[29,["caps-lock-warning ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n              "],[1,[28,[35,12],["exclamation-triangle"],null]],[1,"\\n              "],[1,[28,[35,0],["login.caps_lock_warning"],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[8,[39,8],null,[["@action","@class","@label","@type"],[[28,[37,5],[[30,0],"submit"],null],"btn-primary","user.change_password.set_password","submit"]],null],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"],[13]],[],false,["i18n","if","unless","on","security-key-form","action","second-factor-form","second-factor-input","d-button","password-field","toggle-password-mask","input-tip","d-icon"]]',moduleName:"discourse/templates/password-reset.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/post/poster-avatar",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'<a href="'+s(l(i,"get").call(o,"post.usernameUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:9},end:{line:1,column:29}}}))+'" classNames="trigger-user-card '+s(l(i,"get").call(o,"classNames",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:61},end:{line:1,column:75}}}))+'" data-user-card="'+s(l(i,"get").call(o,"post.username",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:93},end:{line:1,column:110}}}))+'">'+s((l(i,"avatar")||t&&l(t,"avatar")||e.hooks.helperMissing).call(o,"post",{name:"avatar",hash:{imageSize:"large"},hashTypes:{imageSize:"StringLiteral"},hashContexts:{imageSize:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:112},end:{line:1,column:145}}}))+"</a>\n"},useData:!0});(0,i.addRawTemplate)("post/poster-avatar",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/preferences-email",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"74eBiqFM",block:'[[[8,[39,0],null,[["@pageClass","@tagName"],["user-preferences",""]],[["default"],[[[[1,"\\n  "],[10,"section"],[14,0,"user-content user-preferences solo-preference"],[12],[1,"\\n    "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n"],[41,[30,0,["success"]],[[[1,"        "],[10,0],[14,0,"alert alert-success"],[12],[1,[30,0,["successMessage"]]],[13],[1,"\\n        "],[8,[39,2],[[24,0,"success-back"]],[["@route"],["preferences.account"]],[["default"],[[[[1,"\\n          "],[1,[28,[35,3],["arrow-left"],null]],[1,"\\n          "],[1,[28,[35,4],["user.change_email.back_to_preferences"],null]],[1,"\\n        "]],[]]]]],[1,"\\n\\n"]],[]],[[[41,[30,0,["error"]],[[[1,"          "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1,"        "],[10,0],[14,0,"control-group"],[12],[1,"\\n          "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n            "],[1,[28,[35,4],[[52,[30,0,["new"]],"user.add_email.title","user.change_email.title"]],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[8,[39,5],null,[["@value","@id","@classNames","@autofocus"],[[30,0,["newEmail"]],"change-email","input-xxlarge","autofocus"]],null],[1,"\\n            "],[10,0],[14,0,"instructions"],[12],[1,"\\n"],[41,[30,0,["taken"]],[[[1,"                "],[1,[28,[35,4],["user.change_email.taken"],null]],[1,"\\n"]],[]],[[[1,"                "],[1,[28,[35,4],["user.email.instructions"],null]],[1,"\\n"]],[]]],[1,"            "],[13],[1,"\\n            "],[8,[39,6],null,[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"controls save-button"],[12],[1,"\\n          "],[8,[39,7],null,[["@class","@action","@type","@disabled","@translatedLabel"],["btn-primary",[28,[37,8],[[30,0],"saveEmail"],null],"submit",[30,0,["saveDisabled"]],[30,0,["saveButtonText"]]]],null],[1,"\\n          "],[8,[39,9],null,[["@route","@args"],["preferences.account",[30,0,["model","username"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],[],false,["d-section","if","link-to","d-icon","i18n","text-field","input-tip","d-button","action","cancel-link"]]',moduleName:"discourse/templates/preferences-email.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences-second-factor",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"efPUTimH",block:'[[[8,[39,0],null,[["@pageClass","@tagName"],["user-preferences",""]],[["default"],[[[[1,"\\n  "],[10,"section"],[14,0,"user-content user-preferences solo-preference second-factor"],[12],[1,"\\n    "],[8,[39,1],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n      "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n"],[41,[30,0,["showEnforcedNotice"]],[[[1,"          "],[10,0],[14,0,"alert alert-error"],[12],[1,[28,[35,3],["user.second_factor.enforced_notice"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayOAuthWarning"]],[[[1,"          "],[10,0],[14,0,"alert alert-warning"],[12],[1,[28,[35,3],["user.second_factor.oauth_enabled_warning"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"          "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["loaded"]],[[[1,"          "],[10,0],[14,0,"control-group totp"],[12],[1,"\\n            "],[10,0],[14,0,"controls"],[12],[1,"\\n              "],[10,"h2"],[12],[1,[28,[35,3],["user.second_factor.totp.title"],null]],[13],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["totps"]]],null]],null],null,[[[1,"                "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n                  "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,1,["name"]],[[[1,"                      "],[1,[30,1,["name"]]],[1,"\\n"]],[]],[[[1,"                      "],[1,[28,[35,3],["user.second_factor.totp.default_name"],null]],[1,"\\n"]],[]]],[1,"                  "],[13],[1,"\\n"],[41,[30,0,["isCurrentUser"]],[[[1,"                    "],[10,0],[14,0,"actions"],[12],[1,"\\n                      "],[8,[39,6],null,[["@totp","@editSecondFactor","@disableSingleSecondFactor"],[[30,1],[28,[37,7],[[30,0],"editSecondFactor"],null],[28,[37,7],[[30,0],"disableSingleSecondFactor"],null]]],null],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n"]],[1]],null],[1,"              "],[8,[39,8],null,[["@action","@class","@icon","@disabled","@label"],[[28,[37,7],[[30,0],"createTotp"],null],"btn-default new-totp","plus",[30,0,["loading"]],"user.second_factor.totp.add"]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"control-group security-key"],[12],[1,"\\n            "],[10,0],[14,0,"controls"],[12],[1,"\\n              "],[10,"h2"],[12],[1,[28,[35,3],["user.second_factor.security_key.title"],null]],[13],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["security_keys"]]],null]],null],null,[[[1,"                "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n                  "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,2,["name"]],[[[1,"                      "],[1,[30,2,["name"]]],[1,"\\n"]],[]],[[[1,"                      "],[1,[28,[35,3],["user.second_factor.security_key.default_name"],null]],[1,"\\n"]],[]]],[1,"                  "],[13],[1,"\\n\\n"],[41,[30,0,["isCurrentUser"]],[[[1,"                    "],[10,0],[14,0,"actions"],[12],[1,"\\n                      "],[8,[39,9],null,[["@securityKey","@editSecurityKey","@disableSingleSecondFactor"],[[30,2],[28,[37,7],[[30,0],"editSecurityKey"],null],[28,[37,7],[[30,0],"disableSingleSecondFactor"],null]]],null],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n"]],[2]],null],[1,"              "],[8,[39,8],null,[["@action","@class","@icon","@disabled","@label"],[[28,[37,7],[[30,0],"createSecurityKey"],null],"btn-default new-security-key","plus",[30,0,["loading"]],"user.second_factor.security_key.add"]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"control-group pref-second-factor-backup"],[12],[1,"\\n            "],[10,0],[14,0,"controls pref-second-factor-backup"],[12],[1,"\\n              "],[10,"h2"],[12],[1,[28,[35,3],["user.second_factor_backup.title"],null]],[13],[1,"\\n              "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n"],[41,[30,0,["model","second_factor_enabled"]],[[[1,"                  "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,0,["model","second_factor_backup_enabled"]],[[[1,"                      "],[1,[28,[35,10],[[28,[37,3],["user.second_factor_backup.manage"],[["count"],[[30,0,["model","second_factor_remaining_backup_codes"]]]]]],null]],[1,"\\n"]],[]],[[[1,"                      "],[8,[39,8],null,[["@action","@class","@icon","@disabled","@label"],[[28,[37,7],[[30,0],"editSecondFactorBackup"],null],"btn-default new-second-factor-backup","plus",[30,0,["loading"]],"user.second_factor_backup.enable_long"]],null],[1,"\\n"]],[]]],[1,"                  "],[13],[1,"\\n\\n"],[41,[28,[37,11],[[30,0,["model","second_factor_backup_enabled"]],[30,0,["isCurrentUser"]]],null],[[[1,"                    "],[10,0],[14,0,"actions"],[12],[1,"\\n                      "],[8,[39,12],null,[["@secondFactorBackupEnabled","@editSecondFactorBackup","@disableSecondFactorBackup"],[[30,0,["model","second_factor_backup_enabled"]],[28,[37,7],[[30,0],"editSecondFactorBackup"],null],[28,[37,7],[[30,0],"disableSecondFactorBackup"],null]]],null],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,3],["user.second_factor_backup.enable_prerequisites"],null]],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n"],[41,[30,0,["model","second_factor_enabled"]],[[[41,[51,[30,0,["showEnforcedNotice"]]],[[[1,"              "],[10,0],[14,0,"control-group pref-second-factor-disable-all"],[12],[1,"\\n                "],[10,0],[14,0,"controls -actions"],[12],[1,"\\n                  "],[8,[39,8],null,[["@class","@icon","@action","@disabled","@label"],["btn-danger","ban",[28,[37,7],[[30,0],"disableAllSecondFactors"],null],[30,0,["loading"]],"user.second_factor.disable_all"]],null],[1,"\\n                  "],[8,[39,14],null,[["@route","@args"],["preferences.security",[30,0,["model","username"]]]],null],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null]],[]],null]],[]],[[[1,"          "],[10,0],[14,0,"control-group"],[12],[1,"\\n            "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.password.title"],null]],[13],[1,"\\n\\n            "],[10,0],[14,0,"controls"],[12],[1,"\\n              "],[10,0],[12],[1,"\\n                "],[8,[39,15],null,[["@value","@id","@type","@classNames","@autofocus"],[[30,0,["password"]],"password","password","input-large","autofocus"]],null],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"instructions"],[12],[1,"\\n                "],[1,[28,[35,3],["user.second_factor.confirm_password_description"],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"control-group"],[12],[1,"\\n            "],[10,0],[14,0,"controls -actions"],[12],[1,"\\n              "],[8,[39,8],null,[["@class","@type","@action","@disabled","@label"],["btn-primary","submit",[28,[37,7],[[30,0],"confirmPassword"],null],[30,0,["loading"]],"continue"]],null],[1,"\\n\\n"],[41,[51,[30,0,["showEnforcedNotice"]]],[[[1,"                "],[8,[39,14],null,[["@route","@args"],["preferences.security",[30,0,["model","username"]]]],null],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n            "],[10,0],[14,0,"controls"],[14,5,"margin-top: 5px"],[12],[1,"\\n              "],[1,[30,0,["resetPasswordProgress"]]],[1,"\\n"],[41,[51,[30,0,["resetPasswordLoading"]]],[[[1,"                "],[11,3],[24,6,""],[24,0,"instructions"],[4,[38,16],["click",[30,0,["resetPassword"]]],null],[12],[1,[28,[35,3],["user.second_factor.forgot_password"],null]],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["totp","security_key"],false,["d-section","conditional-loading-spinner","if","i18n","each","-track-array","token-based-auth-dropdown","action","d-button","security-key-dropdown","html-safe","and","two-factor-backup-dropdown","unless","cancel-link","text-field","on"]]',moduleName:"discourse/templates/preferences-second-factor.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"DRFMt1jE",block:'[[[8,[39,0],null,[["@pageClass"],["user-preferences"]],null],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n  "],[8,[39,1],null,[["@ariaLabel"],["User secondary - preferences"]],[["default"],[[[[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-account"]],[["@route","@ariaCurrentContext"],["preferences.account","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["user"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.account"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-security"]],[["@route","@ariaCurrentContext"],["preferences.security","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["lock"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.security"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-profile"]],[["@route","@ariaCurrentContext"],["preferences.profile","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["user"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.profile"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-emails"]],[["@route","@ariaCurrentContext"],["preferences.emails","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["envelope"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.emails"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-notifications"]],[["@route","@ariaCurrentContext"],["preferences.notifications","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["bell"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.notifications"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model","can_change_tracking_preferences"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__preferences-tracking"]],[["@route","@ariaCurrentContext"],["preferences.tracking","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["plus"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.tracking"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-users"]],[["@route","@ariaCurrentContext"],["preferences.users","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["users"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.users"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-interface"]],[["@route","@ariaCurrentContext"],["preferences.interface","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["desktop"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.interface"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[28,[37,6],[[28,[37,7],[[30,0,["siteSettings","navigation_menu"]],"legacy"],null]],null],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__preferences-navigation-menu"]],[["@route","@ariaCurrentContext"],["preferences.navigation-menu","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["bars"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.navigation_menu"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-nav-under-interface","div",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n    "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-nav","li",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content user-preferences"],[14,1,"user-content"],[12],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["above-user-preferences","div",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n    "],[46,[28,[37,11],null,null],null,null,null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["d-section","horizontal-overflow-nav","d-navigation-item","d-icon","i18n","if","not","eq","plugin-outlet","hash","component","-outlet"]]',moduleName:"discourse/templates/preferences.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/account",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"C7ELSyqt",block:'[[[10,0],[14,0,"control-group pref-username"],[14,"data-setting-name","user-username"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.username.title"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@user"],[[30,0,["model"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["siteSettings","discourse_connect_overrides_avatar"]]],[[[1,"  "],[10,0],[14,0,"control-group pref-avatar"],[14,"data-setting-name","user-avatar"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,1,"profile-picture"],[12],[1,[28,[35,0],["user.avatar.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[1,"      "],[1,[28,[35,3],[[30,0,["model"]],"huge"],null]],[1,"\\n      "],[8,[39,4],null,[["@action","@actionParam","@class","@icon"],[[28,[37,5],["showAvatarSelector"],null],[30,0,["model"]],"btn-default pad-left","pencil-alt"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canCheckEmails"]],[[[1,"  "],[10,0],[14,0,"control-group pref-email"],[14,"data-setting-name","user-email"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.email.title"],null]],[13],[1,"\\n"],[41,[30,0,["model","email"]],[[[41,[30,0,["siteSettings","enable_secondary_emails"]],[[[1,"        "],[10,0],[14,0,"emails"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["emails"]]],null]],null],null,[[[1,"            "],[10,0],[14,0,"row email"],[12],[1,"\\n"],[41,[30,0,["model","can_edit_email"]],[[[1,"                "],[8,[39,9],null,[["@email","@setPrimaryEmail","@destroyEmail"],[[30,1],[28,[37,10],[[30,0],"setPrimaryEmail"],null],[28,[37,10],[[30,0],"destroyEmail"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n              "],[10,0],[14,0,"email-first"],[12],[1,[30,1,["email"]]],[13],[1,"\\n\\n              "],[10,0],[14,0,"email-second"],[12],[1,"\\n"],[41,[30,1,["primary"]],[[[1,"                  "],[10,1],[14,0,"primary"],[12],[1,[28,[35,0],["user.email.primary_label"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,1,["confirmed"]]],[[[1,"                  "],[10,1],[14,0,"unconfirmed"],[12],[1,[28,[35,0],["user.email.unconfirmed_label"],null]],[13],[1,"\\n                  •\\n"],[41,[30,1,["resending"]],[[[1,"                    "],[10,1],[12],[1,[28,[35,0],["user.email.resending_label"],null]],[13],[1,"\\n"]],[]],[[[41,[30,1,["resent"]],[[[1,"                    "],[10,1],[12],[1,[28,[35,0],["user.email.resent_label"],null]],[13],[1,"\\n"]],[]],[[[1,"                    "],[11,3],[24,6,""],[4,[38,11],["click",[28,[37,12],[[30,0,["resendConfirmationEmail"]],[30,1]],null]],null],[12],[1,[28,[35,0],["user.email.resend_label"],null]],[13],[1,"\\n                  "]],[]]]],[]]]],[]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n\\n"],[41,[30,0,["canAddEmail"]],[[[1,"          "],[8,[39,13],[[24,0,"pull-right"]],[["@route","@query"],["preferences.email",[28,[37,14],null,[["new"],[1]]]]],[["default"],[[[[1,"\\n            "],[1,[28,[35,15],["plus"],null]],[1,"\\n            "],[1,[28,[35,0],["user.email.add_email"],null]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null]],[]],[[[1,"        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,1],[14,0,"static"],[12],[1,[30,0,["model","email"]]],[13],[1,"\\n"],[41,[30,0,["model","can_edit_email"]],[[[1,"            "],[8,[39,13],[[24,0,"btn btn-default btn-small btn-icon pad-left no-text"]],[["@route"],["preferences.email"]],[["default"],[[[[1,[28,[35,15],["pencil-alt"],null]]],[]]]]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]]],[1,"\\n      "],[10,0],[14,0,"instructions"],[12],[1,"\\n"],[41,[30,0,["siteSettings","auth_overrides_email"]],[[[1,"          "],[1,[28,[35,0],["user.email.auth_override_instructions"],null]],[1,"\\n"]],[]],null],[1,"        "],[1,[28,[35,0],["user.email.instructions"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,4],null,[["@action","@class","@actionParam","@title","@icon","@label"],[[28,[37,5],["checkEmail"],null],"btn-default",[30,0,["model"]],"admin.users.check_email.title","envelope","admin.users.check_email.text"]],null],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canUpdateAssociatedAccounts"]],[[[1,"  "],[10,0],[14,0,"control-group pref-associated-accounts"],[14,"data-setting-name","user-associated-accounts"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.associated_accounts.title"],null]],[13],[1,"\\n"],[41,[30,0,["associatedAccountsLoaded"]],[[[1,"      "],[10,"table"],[12],[1,"\\n        "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["authProviders"]]],null]],null],null,[[[41,[30,2,["account"]],[[[1,"              "],[10,"tr"],[15,0,[29,[[28,[37,16],[[30,2,["method","name"]]],null]," account-connected"]]],[12],[1,"\\n                "],[10,"td"],[12],[1,[30,2,["method","prettyName"]]],[13],[1,"\\n                "],[10,"td"],[12],[1,[30,2,["account","description"]]],[13],[1,"\\n                "],[10,"td"],[12],[1,"\\n"],[41,[30,2,["method","can_revoke"]],[[[1,"                    "],[8,[39,4],null,[["@action","@actionParam","@title","@class","@icon","@disabled"],[[28,[37,10],[[30,0],"revokeAccount"],null],[30,2,["account"]],"user.associated_accounts.revoke","btn-danger no-text","trash-alt",[28,[37,17],[[30,0,["revoking"]],[30,2,["method","name"]]],null]]],null],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],[[[1,"              "],[10,"tr"],[15,0,[28,[37,16],[[30,2,["method","name"]]],null]],[12],[1,"\\n                "],[10,"td"],[12],[1,[30,2,["method","prettyName"]]],[13],[1,"\\n                "],[10,"td"],[14,"colspan","2"],[12],[1,"\\n"],[41,[30,2,["method","can_connect"]],[[[1,"                    "],[8,[39,4],null,[["@action","@actionParam","@label","@class","@icon","@disabled"],[[28,[37,10],[[30,0],"connectAccount"],null],[30,2,["method"]],"user.associated_accounts.connect","btn-default","plug",[30,0,["disableConnectButtons"]]]],null],[1,"\\n"]],[]],[[[1,"                    "],[1,[28,[35,0],["user.associated_accounts.not_connected"],null]],[1,"\\n"]],[]]],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]]]],[2]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,4],null,[["@action","@actionParam","@title","@icon","@label"],[[28,[37,5],["checkEmail"],null],[30,0,["model"]],"admin.users.check_email.title","envelope","admin.users.check_email.text"]],null],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditName"]],[[[1,"  "],[10,0],[14,0,"control-group pref-name"],[14,"data-setting-name","user-name"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.name.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["model","can_edit_name"]],[[[1,"        "],[8,[39,18],null,[["@value","@classNames","@maxlength"],[[30,0,["newNameInput"]],"input-xxlarge","255"]],null],[1,"\\n"]],[]],[[[1,"        "],[10,1],[14,0,"static"],[12],[1,[30,0,["model","name"]]],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[30,0,["nameInstructions"]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectTitle"]],[[[1,"  "],[10,0],[14,0,"control-group pref-title"],[14,"data-setting-name","user-title"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.title.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,19],null,[["@value","@content","@onChange","@options"],[[30,0,["newTitleInput"]],[30,0,["model","availableTitles"]],[28,[37,10],[[30,0],[28,[37,20],[[30,0,["newTitleInput"]]],null]],null],[28,[37,14],null,[["none"],["user.title.none"]]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["user.title.instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectFlair"]],[[[1,"  "],[10,0],[14,0,"control-group pref-flair"],[14,"data-setting-name","user-flair"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.flair.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,21],null,[["@value","@content","@onChange","@options"],[[30,0,["newFlairGroupId"]],[30,0,["model","availableFlairs"]],[28,[37,10],[[30,0],[28,[37,20],[[30,0,["newFlairGroupId"]]],null]],null],[28,[37,14],null,[["none"],["user.flair.none"]]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["user.flair.instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectUserStatus"]],[[[1,"  "],[10,0],[14,0,"control-group pref-user-status"],[14,"data-setting-name","user-status"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.status.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["newStatus"]],[[[1,"        "],[8,[39,22],null,[["@status","@showDescription"],[[30,0,["newStatus"]],true]],null],[1,"\\n"]],[]],[[[1,"        "],[10,1],[14,0,"static"],[12],[1,[28,[35,0],["user.status.not_set"],null]],[13],[1,"\\n"]],[]]],[1,"      "],[8,[39,4],null,[["@action","@actionParam","@class","@icon"],[[28,[37,10],[[30,0],"showUserStatusModal"],null],[30,0,["newStatus"]],"btn-default btn-small pad-left","pencil-alt"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectPrimaryGroup"]],[[[1,"  "],[10,0],[14,0,"control-group pref-primary-group"],[14,"data-setting-name","user-primary-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.primary_group.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,19],null,[["@value","@content","@options"],[[30,0,["newPrimaryGroupInput"]],[30,0,["model","filteredGroups"]],[28,[37,14],null,[["none"],["user.primary_group.none"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDownloadPosts"]],[[[1,"  "],[10,0],[14,0,"control-group pref-data-export"],[14,"data-setting-name","user-data-export"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.download_archive.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,4],null,[["@action","@class","@label","@icon"],[[28,[37,10],[[30,0],"exportUserArchive"],null],"btn-default btn-request-archive","user.download_archive.button_text","download"]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["user.download_archive.description"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n  "],[8,[39,23],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-account","div",[28,[37,14],null,[["model","save"],[[30,0,["model"]],[28,[37,10],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,23],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,14],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canSaveUser"]],[[[1,"  "],[8,[39,24],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,10],[[30,0],"save"],null],[30,0,["saved"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","canDeleteAccount"]],[[[1,"  "],[10,0],[14,0,"control-group delete-account"],[12],[1,"\\n    "],[10,"br"],[12],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,4],null,[["@action","@disabled","@class","@icon","@label"],[[28,[37,10],[[30,0],"delete"],null],[30,0,["deleteDisabled"]],"btn-danger","far-trash-alt","user.delete_account"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["email","authProvider"],false,["i18n","username-preference","unless","bound-avatar","d-button","route-action","if","each","-track-array","email-dropdown","action","on","fn","link-to","hash","d-icon","dasherize","get","text-field","combo-box","mut","flair-chooser","user-status-message","plugin-outlet","save-controls"]]',moduleName:"discourse/templates/preferences/account.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/apps",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"d8/Gidhr",block:'[[[8,[39,0],null,[["@model"],[[30,1]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-apps","div",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],["@model"],false,["user-preferences/user-api-keys","plugin-outlet","hash"]]',moduleName:"discourse/templates/preferences/apps.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/categories",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"8FcNxUR9",block:'[[[8,[39,0],null,[["@canSee","@model","@selectedCategories","@hideMutedTags","@save","@siteSettings"],[[30,0,["canSee"]],[30,0,["model"]],[30,0,["selectedCategories"]],[30,0,["hideMutedTags"]],[28,[37,1],[[30,0],"save"],null],[30,0,["siteSettings"]]]],null],[1,"\\n\\n"],[41,[30,0,["canSave"]],[[[1,"  "],[8,[39,3],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,1],[[30,0],"save"],null],[30,0,["saved"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[1,[28,[35,4],["user.no_category_access"],null]],[1,"\\n"]],[]]]],[],false,["user-preferences/categories","action","if","save-controls","i18n"]]',moduleName:"discourse/templates/preferences/categories.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/emails",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"eDH5iNyz",block:'[[[41,[51,[30,0,["siteSettings","disable_mailing_list_mode"]]],[[[41,[30,0,["model","user_option","mailing_list_mode"]],[[[1,"    "],[10,0],[14,0,"warning-wrap"],[12],[1,"\\n      "],[10,0],[14,0,"warning"],[12],[1,[28,[35,2],["user.mailing_list_mode.warning"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],null],[10,0],[14,0,"control-group pref-email-settings"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.email_settings"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-messages-level"],[12],[1,"\\n    "],[10,"label"],[14,"for","user-email-messages-level"],[12],[1,[28,[35,2],["user.email_messages_level"],null]],[13],[1,"\\n    "],[8,[39,3],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["emailLevelOptions"]],[30,0,["model","user_option","email_messages_level"]],"user-email-messages-level",[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","email_messages_level"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["emailMessagesLevelAway"]],[[[1,"      "],[10,0],[14,0,"instructions"],[12],[1,[30,0,["emailFrequencyInstructions"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-level"],[12],[1,"\\n    "],[10,"label"],[14,"for","user-email-level"],[12],[1,[28,[35,2],["user.email_level.title"],null]],[13],[1,"\\n    "],[8,[39,3],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["emailLevelOptions"]],[30,0,["model","user_option","email_level"]],"user-email-level",[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","email_level"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["emailLevelAway"]],[[[1,"      "],[10,0],[14,0,"instructions"],[12],[1,[30,0,["emailFrequencyInstructions"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-previous-replies"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,2],["user.email_previous_replies.title"],null]],[13],[1,"\\n    "],[8,[39,3],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["previousRepliesOptions"]],[30,0,["model","user_option","email_previous_replies"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","email_previous_replies"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,6],[[24,"data-setting-name","user-email-in-reply-to"]],[["@labelKey","@checked"],["user.email_in_reply_to",[30,0,["model","user_option","email_in_reply_to"]]]],null],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-emails-pref-email-settings","div",[28,[37,8],null,[["model","save"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["siteSettings","disable_digest_emails"]]],[[[1,"  "],[10,0],[14,0,"control-group pref-activity-summary"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.email_activity_summary"],null]],[13],[1,"\\n    "],[8,[39,6],[[24,"data-setting-name","user-email-digests"]],[["@labelKey","@disabled","@checked"],["user.email_digests.title",[30,0,["model","user_option","mailing_list_mode"]],[30,0,["model","user_option","email_digests"]]]],null],[1,"\\n"],[41,[30,0,["model","user_option","email_digests"]],[[[1,"      "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-digests-frequency"],[12],[1,"\\n        "],[8,[39,3],null,[["@valueProperty","@content","@value","@onChange","@options"],["value",[30,0,["digestFrequencies"]],[30,0,["model","user_option","digest_after_minutes"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","digest_after_minutes"]]],null]],null],[28,[37,8],null,[["filterable"],[true]]]]],null],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,6],[[24,"data-setting-name","user-include-tl0-in-digests"]],[["@labelKey","@disabled","@checked"],["user.include_tl0_in_digests",[30,0,["model","user_option","mailing_list_mode"]],[30,0,["model","user_option","include_tl0_in_digests"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["siteSettings","disable_mailing_list_mode"]]],[[[1,"  "],[10,0],[14,0,"control-group pref-mailing-list-mode"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.mailing_list_mode.label"],null]],[13],[1,"\\n    "],[8,[39,6],[[24,"data-setting-name","user-mailing-list-mode-enabled"]],[["@labelKey","@checked"],["user.mailing_list_mode.enabled",[30,0,["model","user_option","mailing_list_mode"]]]],null],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,9],[[28,[37,2],["user.mailing_list_mode.instructions"],null]],null]],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["model","user_option","mailing_list_mode"]],[[[1,"      "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-mailing-list-mode-options"],[12],[1,"\\n        "],[8,[39,3],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["mailingListModeOptions"]],[30,0,["model","user_option","mailing_list_mode_frequency"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","mailing_list_mode_frequency"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n  "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-emails","div",[28,[37,8],null,[["model","save"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,8],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,10],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["unless","if","i18n","combo-box","action","mut","preference-checkbox","plugin-outlet","hash","html-safe","save-controls"]]',moduleName:"discourse/templates/preferences/emails.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/interface",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"fc/LN1hC",block:'[[[10,1],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-interface-top","div",[28,[37,1],null,[["model","save"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["showThemeSelector"]],[[[1,"  "],[10,0],[14,0,"control-group theme"],[14,"data-setting-name","user-theme"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.theme"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,5],null,[["@content","@value"],[[30,0,["userSelectableThemes"]],[30,0,["themeId"]]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["themeIdChanged"]],[[[1,"      "],[10,2],[14,0,"alert alert-success save-theme-alert"],[12],[1,[28,[35,4],["user.save_to_change_theme"],[["save_text"],[[28,[37,4],["save"],null]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["showThemeSetDefault"]],[[[1,"      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,6],null,[["@labelKey","@checked"],["user.theme_default_on_all_devices",[30,0,["makeThemeDefault"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showColorSchemeSelector"]],[[[1,"  "],[10,"fieldset"],[14,0,"control-group color-scheme"],[14,"data-setting-name","user-color-scheme"],[12],[1,"\\n    "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.color_scheme"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[10,0],[14,0,"control-subgroup light-color-scheme"],[12],[1,"\\n"],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1,"          "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,4],["user.color_schemes.regular"],null]],[13],[1,"\\n"]],[]],null],[1,"        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,5],null,[["@content","@value","@onChange","@options"],[[30,0,["userSelectableColorSchemes"]],[30,0,["selectedColorSchemeId"]],[28,[37,2],[[30,0],"loadColorScheme"],null],[28,[37,1],null,[["translatedNone","autoInsertNoneItem"],[[30,0,["selectedColorSchemeNoneLabel"]],[30,0,["showColorSchemeNoneItem"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1,"        "],[10,0],[14,0,"control-subgroup dark-color-scheme"],[12],[1,"\\n          "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,4],["user.color_schemes.dark"],null]],[13],[1,"\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[8,[39,5],null,[["@content","@value","@onChange"],[[30,0,["userSelectableDarkColorSchemes"]],[30,0,["selectedDarkColorSchemeId"]],[28,[37,2],[[30,0],"loadDarkColorScheme"],null]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"],[41,[30,0,["previewingColorScheme"]],[[[41,[30,0,["previewingColorScheme"]],[[[1,"        "],[8,[39,7],null,[["@action","@label","@icon","@class"],[[28,[37,2],[[30,0],"undoColorSchemePreview"],null],"user.color_schemes.undo","undo","btn-default btn-small undo-preview"]],null],[1,"\\n"]],[]],null],[1,"      "],[10,0],[14,0,"controls color-scheme-checkbox"],[12],[1,"\\n        "],[8,[39,6],null,[["@labelKey","@checked"],["user.color_scheme_default_on_all_devices",[30,0,["makeColorSchemeDefault"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1,"      "],[10,0],[14,0,"instructions"],[12],[1,"\\n        "],[1,[28,[35,4],["user.color_schemes.dark_instructions"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDarkModeToggle"]],[[[1,"  "],[10,0],[14,0,"control-group dark-mode"],[14,"data-setting-name","user-dark-mode"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.dark_mode"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,6],null,[["@labelKey","@checked"],["user.dark_mode_enable",[30,0,["enableDarkMode"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group text-size"],[14,"data-setting-name","user-text-size"],[12],[1,"\\n  "],[10,"label"],[14,"for","text-size-selector"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.text_size.title"],null]],[13],[1,"\\n  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[8,[39,5],null,[["@id","@valueProperty","@content","@value","@onChange"],["text-size-selector","value",[30,0,["textSizes"]],[30,0,["textSize"]],[28,[37,2],[[30,0],"selectTextSize"],null]]],null],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["showTextSetDefault"]],[[[1,"    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,6],null,[["@labelKey","@checked"],["user.text_size_default_on_all_devices",[30,0,["makeTextSizeDefault"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","allow_user_locale"]],[[[1,"  "],[10,0],[14,0,"control-group pref-locale"],[14,"data-setting-name","user-locale"],[12],[1,"\\n    "],[10,"label"],[14,"for","locale-selector"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.locale.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,5],null,[["@id","@valueProperty","@langProperty","@content","@value","@onChange","@options"],["locale-selector","value","value",[30,0,["availableLocales"]],[30,0,["model","locale"]],[28,[37,2],[[30,0],[28,[37,8],[[30,0,["model","locale"]]],null]],null],[28,[37,1],null,[["filterable","none"],[true,"user.locale.default"]]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,4],["user.locale.instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group home"],[14,"data-setting-name","user-home"],[12],[1,"\\n  "],[10,"label"],[14,"for","home-selector"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.home"],null]],[13],[1,"\\n  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[8,[39,5],null,[["@id","@content","@valueProperty","@value","@onChange"],["home-selector",[30,0,["userSelectableHome"]],"value",[30,0,["homepageId"]],[28,[37,2],[[30,0],[28,[37,8],[[30,0,["model","user_option","homepage_id"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"fieldset"],[14,0,"control-group other"],[14,"data-setting-name","user-other-settings"],[12],[1,"\\n  "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.other_settings"],null]],[13],[1,"\\n\\n  "],[8,[39,6],[[24,"data-setting-name","user-external-links"]],[["@labelKey","@checked","@class"],["user.external_links_in_new_tab",[30,0,["model","user_option","external_links_in_new_tab"]],"pref-external-links"]],null],[1,"\\n  "],[8,[39,6],[[24,"data-setting-name","user-enable-quoting"]],[["@labelKey","@checked","@class"],["user.enable_quoting",[30,0,["model","user_option","enable_quoting"]],"pref-enable-quoting"]],null],[1,"\\n  "],[8,[39,6],[[24,"data-setting-name","user-enable-defer"]],[["@labelKey","@checked","@class"],["user.enable_defer",[30,0,["model","user_option","enable_defer"]],"pref-defer-unread"]],null],[1,"\\n"],[41,[30,0,["siteSettings","automatically_unpin_topics"]],[[[1,"    "],[8,[39,6],[[24,"data-setting-name","user-auto-unpin"]],[["@labelKey","@checked","@class"],["user.automatically_unpin_topics",[30,0,["model","user_option","automatically_unpin_topics"]],"pref-auto-unpin"]],null],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","allow_users_to_hide_profile"]],[[[1,"    "],[8,[39,6],[[24,"data-setting-name","user-hide-profile"]],[["@labelKey","@checked","@class"],["user.hide_profile_and_presence",[30,0,["model","user_option","hide_profile_and_presence"]],"pref-hide-profile"]],null],[1,"\\n"]],[]],null],[1,"  "],[8,[39,6],[[24,"data-setting-name","user-dynamic-favicon"]],[["@labelKey","@checked","@class"],["user.dynamic_favicon",[30,0,["model","user_option","dynamic_favicon"]],"pref-dynamic-favicon"]],null],[1,"\\n  "],[10,0],[14,0,"controls controls-dropdown pref-page-title"],[14,"data-setting-name","user-page-title"],[12],[1,"\\n    "],[10,"label"],[14,"for","user-title-count-mode"],[12],[1,[28,[35,4],["user.title_count_mode.title"],null]],[13],[1,"\\n    "],[8,[39,5],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["titleCountModes"]],[30,0,["model","user_option","title_count_mode"]],"user-title-count-mode",[28,[37,2],[[30,0],[28,[37,8],[[30,0,["model","user_option","title_count_mode"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"controls controls-dropdown pref-bookmark-after-notification"],[14,"data-setting-name","user-bookmark-after-notification"],[12],[1,"\\n    "],[10,"label"],[14,"for","bookmark-after-notification-mode"],[12],[1,[28,[35,4],["user.bookmark_after_notification.title"],null]],[13],[1,"\\n    "],[8,[39,5],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["bookmarkAfterNotificationModes"]],[30,0,["model","user_option","bookmark_auto_delete_preference"]],"bookmark-after-notification-mode",[28,[37,2],[[30,0],[28,[37,8],[[30,0,["model","user_option","bookmark_auto_delete_preference"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,6],[[24,"data-setting-name","user-new-user-tips"]],[["@labelKey","@checked","@class"],["user.skip_new_user_tips.description",[30,0,["model","user_option","skip_new_user_tips"]],"pref-new-user-tips"]],null],[1,"\\n"],[41,[30,0,["site","user_tips"]],[[[1,"    "],[8,[39,7],[[24,"data-setting-name","user-reset-seen-user-tips"]],[["@class","@action"],["pref-reset-seen-user-tips",[28,[37,2],[[30,0],"resetSeenUserTips"],null]]],[["default"],[[[[1,[28,[35,4],["user.reset_seen_user_tips"],null]]],[]]]]],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-interface","div",[28,[37,1],null,[["model","save"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,9],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["plugin-outlet","hash","action","if","i18n","combo-box","preference-checkbox","d-button","mut","save-controls"]]',moduleName:"discourse/templates/preferences/interface.hbs",isStrictMode:!1})
e.default=i}))
define("discourse/templates/preferences/navigation-menu",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"3a4J4n/t",block:'[[[10,0],[14,0,"control-group preferences-navigation-menu-navigation"],[14,"data-setting-name","user-navigation-menu-navigation"],[12],[1,"\\n  "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.experimental_sidebar.navigation_section"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,0],["user.experimental_sidebar.navigation_section_instruction"],null]],[13],[1,"\\n\\n    "],[8,[39,1],null,[["@labelKey","@checked","@class"],["user.experimental_sidebar.link_to_filtered_list_checkbox_description",[30,0,["newSidebarLinkToFilteredList"]],"pref-link-to-filtered-list"]],null],[1,"\\n    "],[8,[39,1],null,[["@labelKey","@checked","@class"],["user.experimental_sidebar.show_count_new_items_checkbox_description",[30,0,["newSidebarShowCountOfNewItems"]],"pref-show-count-new-items"]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,2],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,3],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["i18n","preference-checkbox","save-controls","action"]]',moduleName:"discourse/templates/preferences/navigation-menu.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/notifications",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"R3njzlb+",block:'[[[10,0],[14,0,"control-group notifications"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.notifications"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-like-notification-frequency"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,0],["user.like_notification_frequency.title"],null]],[13],[1,"\\n    "],[8,[39,1],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["likeNotificationFrequencies"]],[30,0,["model","user_option","like_notification_frequency"]],[28,[37,2],[[30,0],[28,[37,3],[[30,0,["model","user_option","like_notification_frequency"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["capabilities","isAppWebview"]]],[[[1,"  "],[10,0],[14,0,"control-group desktop-notifications"],[14,"data-setting-name","user-desktop-notifications"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.desktop_notifications.label"],null]],[13],[1,"\\n    "],[8,[39,5],null,null,null],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.desktop_notifications.each_browser_note"],null]],[13],[1,"\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-desktop-notifications","div",[28,[37,7],null,[["model","save"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,8],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-notifications","div",[28,[37,7],null,[["model","save"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,9],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["i18n","combo-box","action","mut","unless","desktop-notification-config","plugin-outlet","hash","user-notification-schedule","save-controls"]]',moduleName:"discourse/templates/preferences/notifications.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/profile",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"B0PSskG+",block:'[[[41,[30,0,["canChangeBio"]],[[[1,"  "],[10,0],[14,0,"control-group pref-bio"],[14,"data-setting-name","user-bio"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.bio"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls bio-composer input-xxlarge"],[12],[1,"\\n      "],[8,[39,2],null,[["@value"],[[30,0,["model","bio_raw"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group pref-timezone"],[14,"data-setting-name","user-timezone"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.timezone"],null]],[13],[1,"\\n  "],[8,[39,3],null,[["@value","@onChange","@class"],[[30,0,["model","user_option","timezone"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","timezone"]]],null]],null],"input-xxlarge"]],null],[1,"\\n  "],[8,[39,6],null,[["@class","@icon","@label","@action"],["btn-default","globe","user.use_current_timezone",[28,[37,4],[[30,0],"useCurrentTimezone"],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["model","can_change_location"]],[[[1,"  "],[10,0],[14,0,"control-group pref-location"],[14,"data-setting-name","user-location"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,"for","edit-location"],[12],[1,[28,[35,1],["user.location"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,7],[[24,0,"input-xxlarge"],[24,1,"edit-location"]],[["@type","@value"],["text",[30,0,["model","location"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_change_website"]],[[[1,"  "],[10,0],[14,0,"control-group pref-website"],[14,"data-setting-name","user-website"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,"for","edit-website"],[12],[1,[28,[35,1],["user.website"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,7],[[24,0,"input-xxlarge"],[24,1,"edit-website"]],[["@type","@value"],["text",[30,0,["model","website"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["userFields"]]],null]],null],null,[[[1,"  "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-user-fields"],[12],[1,"\\n    "],[8,[39,10],null,[["@field","@value"],[[30,1,["field"]],[30,1,["value"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[1]],null],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","allow_profile_backgrounds"]],[[[41,[30,0,["canUploadProfileHeader"]],[[[1,"    "],[10,0],[14,0,"control-group pref-profile-bg"],[14,"data-setting-name","user-profile-bg"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.change_profile_background.title"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,11],null,[["@imageUrl","@type","@id"],[[30,0,["model","profile_background_upload_url"]],"profile_background","profile-background-uploader"]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"instructions"],[12],[1,"\\n        "],[1,[28,[35,1],["user.change_profile_background.instructions"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canUploadUserCardBackground"]],[[[1,"    "],[10,0],[14,0,"control-group pref-profile-bg"],[14,"data-setting-name","user-card-bg"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.change_card_background.title"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,11],null,[["@imageUrl","@type","@id"],[[30,0,["model","card_background_upload_url"]],"card_background","profile-card-background-uploader"]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"instructions"],[12],[1,"\\n        "],[1,[28,[35,1],["user.change_card_background.instructions"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","allow_featured_topic_on_user_profiles"]],[[[1,"  "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-featured-topic"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.featured_topic"],null]],[13],[1,"\\n"],[41,[30,0,["model","featured_topic"]],[[[1,"      "],[10,"label"],[14,0,"featured-topic-link"],[12],[1,"\\n        "],[8,[39,12],null,[["@route","@models"],["topic",[28,[37,13],[[30,0,["model","featured_topic","slug"]],[30,0,["model","featured_topic","id"]]],null]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,14],[[28,[37,15],[[30,0,["model","featured_topic","fancy_title"]]],null]],null]],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[8,[39,6],null,[["@action","@class","@label"],[[28,[37,4],[[30,0],"showFeaturedTopicModal"],null],"btn-default feature-topic-on-profile-btn","user.feature_topic_on_profile.open_search"]],null],[1,"\\n"],[41,[30,0,["model","featured_topic"]],[[[1,"        "],[8,[39,6],null,[["@action","@class","@label"],[[28,[37,4],[[30,0],"clearFeaturedTopicFromProfile"],null],"btn-danger clear-feature-topic-on-profile-btn","user.feature_topic_on_profile.clear.title"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["user.change_featured_topic.instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canChangeDefaultCalendar"]],[[[1,"  "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-default-calendar"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["download_calendar.default_calendar"],null]],[13],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[8,[39,16],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["calendarOptions"]],[30,0,["model","user_option","default_calendar"]],"user-default-calendar",[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","default_calendar"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["download_calendar.default_calendar_instruction"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n  "],[8,[39,17],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-profile","div",[28,[37,18],null,[["model","save"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,17],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-preferences","div",[28,[37,18],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,17],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,18],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,19],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null],[30,0,["saved"]]]],null]],["uf"],false,["if","i18n","d-editor","timezone-input","action","mut","d-button","input","each","-track-array","user-field","uppy-image-uploader","link-to","array","replace-emoji","html-safe","combo-box","plugin-outlet","hash","save-controls"]]',moduleName:"discourse/templates/preferences/profile.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/security",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"cW+L2LRB",block:'[[[41,[30,0,["canChangePassword"]],[[[1,"  "],[10,0],[14,0,"control-group pref-password"],[14,"data-setting-name","user-password"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.password.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[11,3],[24,6,""],[24,0,"btn btn-default"],[4,[38,2],["click",[30,0,["changePassword"]]],null],[12],[1,"\\n        "],[1,[28,[35,3],["envelope"],null]],[1,"\\n"],[41,[30,0,["model","no_password"]],[[[1,"          "],[1,[28,[35,1],["user.change_password.set_password"],null]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,1],["user.change_password.action"],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n\\n      "],[1,[30,0,["passwordProgress"]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group pref-second-factor"],[14,"data-setting-name","user-second-factor"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.second_factor.title"],null]],[13],[1,"\\n"],[41,[51,[30,0,["model","second_factor_enabled"]]],[[[1,"      "],[10,"label"],[12],[1,"\\n        "],[1,[28,[35,1],["user.second_factor.short_description"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,0],[14,0,"controls pref-second-factor"],[12],[1,"\\n"],[41,[30,0,["isCurrentUser"]],[[[1,"        "],[8,[39,5],[[24,0,"btn btn-default"]],[["@route"],["preferences.second-factor"]],[["default"],[[[[1,"\\n          "],[1,[28,[35,3],["lock"],null]],[1,"\\n          "],[10,1],[12],[1,[28,[35,1],["user.second_factor.enable"],null]],[13],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canCheckEmails"]],[[[1,"  "],[10,0],[14,0,"control-group pref-auth-tokens"],[14,"data-setting-name","user-auth-tokens"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.auth_tokens.title"],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"auth-tokens"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["authTokens"]]],null]],null],null,[[[1,"        "],[10,0],[14,0,"row auth-token"],[12],[1,"\\n          "],[10,0],[14,0,"auth-token-icon"],[12],[1,[28,[35,3],[[30,1,["icon"]]],null]],[13],[1,"\\n"],[41,[51,[30,1,["is_active"]]],[[[1,"            "],[8,[39,8],null,[["@token","@revokeAuthToken","@showToken"],[[30,1],[28,[37,9],[[30,0],"revokeAuthToken"],null],[28,[37,9],[[30,0],"showToken"],null]]],null],[1,"\\n"]],[]],null],[1,"          "],[10,0],[14,0,"auth-token-first"],[12],[1,"\\n            "],[1,[28,[35,10],[[28,[37,1],["user.auth_tokens.device_location"],[["device","ip","location"],[[30,1,["device"]],[30,1,["client_ip"]],[30,1,["location"]]]]]],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"auth-token-second"],[12],[1,"\\n"],[41,[30,1,["is_active"]],[[[1,"              "],[1,[28,[35,10],[[28,[37,1],["user.auth_tokens.browser_active"],[["browser"],[[30,1,["browser"]]]]]],null]],[1,"\\n"]],[]],[[[1,"              "],[1,[28,[35,10],[[28,[37,1],["user.auth_tokens.browser_last_seen"],[["browser","date"],[[30,1,["browser"]],[28,[37,11],[[30,1,["seen_at"]]],null]]]]],null]],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["canShowAllAuthTokens"]],[[[1,"      "],[11,3],[24,6,""],[4,[38,2],["click",[30,0,["toggleShowAllAuthTokens"]]],null],[12],[1,"\\n"],[41,[30,0,["showAllAuthTokens"]],[[[1,"          "],[1,[28,[35,3],["caret-up"],null]],[1,"\\n          "],[1,[28,[35,1],["user.auth_tokens.show_few"],null]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,3],["caret-down"],null]],[1,"\\n          "],[1,[28,[35,1],["user.auth_tokens.show_all"],[["count"],[[30,0,["model","user_auth_tokens","length"]]]]]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[11,3],[24,6,""],[24,0,"pull-right text-danger"],[4,[38,2],["click",[28,[37,12],[[30,0,["revokeAuthToken"]],null],null]],null],[12],[1,[28,[35,3],["sign-out-alt"],null]],[1," "],[1,[28,[35,1],["user.auth_tokens.log_out_all"],null]],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,13],null,[["@model"],[[30,2]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-security","div",[28,[37,15],null,[["model","save"],[[30,0,["model"]],[28,[37,9],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,15],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],["token","@model"],false,["if","i18n","on","d-icon","unless","link-to","each","-track-array","auth-token-dropdown","action","html-safe","format-date","fn","user-preferences/user-api-keys","plugin-outlet","hash"]]',moduleName:"discourse/templates/preferences/security.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/tags",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"iumgIZhk",block:'[[[8,[39,0],null,[["@model","@selectedTags","@save","@siteSettings"],[[30,0,["model"]],[30,0,["selectedTags"]],[28,[37,1],[[30,0],"save"],null],[30,0,["siteSettings"]]]],null],[1,"\\n\\n"],[8,[39,2],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,1],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["user-preferences/tags","action","save-controls"]]',moduleName:"discourse/templates/preferences/tags.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/tracking",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"QQzJfvZa",block:'[[[8,[39,0],null,[["@pageClass"],["user-preferences-tracking"]],null],[1,"\\n\\n"],[10,0],[14,0,"user-preferences__tracking-topics-wrapper"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.topics_settings"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"user-preferences_tracking-topics-controls"],[12],[1,"\\n    "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-new-topic-duration"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["user.new_topic_duration.label"],null]],[13],[1,"\\n      "],[8,[39,2],null,[["@class","@valueProperty","@content","@value","@onChange"],["duration","value",[30,0,["considerNewTopicOptions"]],[30,0,["model","user_option","new_topic_duration_minutes"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","user_option","new_topic_duration_minutes"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-auto-track-topics"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["user.auto_track_topics"],null]],[13],[1,"\\n      "],[8,[39,2],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["autoTrackDurations"]],[30,0,["model","user_option","auto_track_topics_after_msecs"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","user_option","auto_track_topics_after_msecs"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-notification-level-when-replying"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["user.notification_level_when_replying"],null]],[13],[1,"\\n      "],[8,[39,2],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["notificationLevelsForReplying"]],[30,0,["model","user_option","notification_level_when_replying"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","user_option","notification_level_when_replying"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"user-preferences__tracking-categories-tags-wrapper"],[12],[1,"\\n  "],[10,0],[12],[1,"\\n    "],[8,[39,5],null,[["@canSee","@model","@selectedCategories","@hideMutedTags","@siteSettings"],[[30,0,["canSee"]],[30,0,["model"]],[30,0,["selectedCategories"]],[30,0,["hideMutedTags"]],[30,0,["siteSettings"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[12],[1,"\\n    "],[8,[39,6],null,[["@model","@selectedTags","@save","@siteSettings"],[[30,0,["model"]],[30,0,["selectedTags"]],[30,0,["save"]],[30,0,["siteSettings"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["showMutePrecedenceSetting"]],[[[1,"  "],[10,0],[14,0,"control-group user-preferences__watched-precedence-over-muted"],[12],[1,"\\n    "],[8,[39,8],[[24,"data-setting-name","watched-precedence-over-muted"]],[["@labelKey","@checked"],["user.watched_precedence_over_muted",[30,0,["model","user_option","watched_precedence_over_muted"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSave"]],[[[1,"  "],[8,[39,9],null,[["@model","@action","@saved"],[[30,0,["model"]],[30,0,["save"]],[30,0,["saved"]]]],null],[1,"\\n"]],[]],null]],[],false,["d-section","i18n","combo-box","action","mut","user-preferences/categories","user-preferences/tags","if","preference-checkbox","save-controls"]]',moduleName:"discourse/templates/preferences/tracking.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/preferences/users",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"sKnI74Lh",block:'[[[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.users"],null]],[13],[1,"\\n"],[41,[30,0,["ignoredEnabled"]],[[[1,"  "],[10,0],[14,0,"control-group user-ignore"],[14,"data-setting-name","user-ignored-users"],[12],[1,"\\n    "],[10,0],[14,0,"controls tracking-controls user-notifications"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,2],["far-eye-slash"],[["class"],["icon"]]]],[1,"\\n        "],[1,[28,[35,0],["user.ignored_users"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@model","@items","@saving"],[[30,0,["model"]],[30,0,["model","ignored_usernames"]],[30,0,["saved"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group user-mute"],[14,"data-setting-name","user-muted-users"],[12],[1,"\\n  "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,2],["d-muted"],[["class"],["icon"]]]],[1,"\\n      "],[10,1],[12],[1,[28,[35,0],["user.muted_users"],null]],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,4],null,[["@value","@onChange","@options"],[[30,0,["mutedUsernames"]],[28,[37,5],[[30,0],"onChangeMutedUsernames"],null],[28,[37,6],null,[["excludeCurrentUser"],[true]]]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.muted_users_instructions"],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["currentUser","can_send_private_messages"]],[[[1,"  "],[10,0],[14,0,"control-group private-messages"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.private_messages"],null]],[13],[1,"\\n    "],[10,0],[14,0,"control-group user-allow-pm"],[14,"data-setting-name","user-allow-private-messages"],[12],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,7],null,[["@labelKey","@checked"],["user.allow_private_messages",[30,0,["model","user_option","allow_private_messages"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group user-allow-pm"],[14,"data-setting-name","user-allow-private-messages-from-specific-users"],[12],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,7],null,[["@labelKey","@checked","@disabled"],["user.allow_private_messages_from_specific_users",[30,0,["model","user_option","enable_allowed_pm_users"]],[30,0,["disableAllowPmUsersSetting"]]]],null],[1,"\\n      "],[13],[1,"\\n"],[41,[30,0,["allowPmUsersEnabled"]],[[[1,"        "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n          "],[8,[39,4],null,[["@value","@onChange","@options"],[[30,0,["allowedPmUsernames"]],[28,[37,5],[[30,0],"onChangeAllowedPmUsernames"],null],[28,[37,6],null,[["excludeCurrentUser"],[true]]]]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.allowed_pm_users_instructions"],null]],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n  "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,6],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,9],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,5],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["i18n","if","d-icon","ignored-user-list","user-chooser","action","hash","preference-checkbox","plugin-outlet","save-controls"]]',moduleName:"discourse/templates/preferences/users.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/privacy",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"6g2AqVnv",block:'[[[8,[39,0],null,[["@bodyClass","@class"],["static-privacy","container"]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n    "],[8,[39,1],null,[["@name"],["above-static"]],null],[1,"\\n    "],[1,[28,[35,2],[[30,0,["model","html"]]],null]],[1,"\\n    "],[8,[39,1],null,[["@name"],["below-static"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],[],false,["d-section","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/privacy.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/review-index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"PzwdV480",block:'[[[10,0],[14,0,"reviewable-container"],[12],[1,"\\n  "],[10,0],[14,0,"reviewable-list"],[12],[1,"\\n"],[41,[30,0,["reviewables"]],[[[1,"      "],[8,[39,1],null,[["@selector","@action"],[".reviewable-item",[28,[37,2],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"reviewables"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["reviewables"]]],null]],null],null,[[[1,"            "],[8,[39,5],null,[["@reviewable","@remove"],[[30,1],[28,[37,2],[[30,0],"remove"],null]]],null],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[39,6],null,[["@condition"],[[30,0,["reviewables","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"no-review"],[12],[1,"\\n        "],[1,[28,[35,7],["review.none"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"reviewable-filters"],[12],[1,"\\n    "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n      "],[10,"label"],[14,0,"filter-label"],[12],[1,[28,[35,7],["review.filters.status"],null]],[13],[1,"\\n      "],[8,[39,8],null,[["@value","@content","@onChange"],[[30,0,["filterStatus"]],[30,0,["statuses"]],[28,[37,2],[[30,0],[28,[37,9],[[30,0,["filterStatus"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["filtersExpanded"]],[[[1,"\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["above-review-filters","div",[28,[37,11],null,[["model","additionalFilters"],[[30,0,["model"]],[30,0,["additionalFilters"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n        "],[10,"label"],[14,0,"filter-label"],[12],[1,[28,[35,7],["review.filters.type.title"],null]],[13],[1,"\\n        "],[8,[39,8],null,[["@value","@content","@onChange","@options"],[[30,0,["filterType"]],[30,0,["allTypes"]],[28,[37,2],[[30,0],[28,[37,9],[[30,0,["filterType"]]],null]],null],[28,[37,11],null,[["none"],["review.filters.type.all"]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n        "],[10,"label"],[14,0,"filter-label"],[12],[1,[28,[35,7],["review.filters.priority.title"],null]],[13],[1,"\\n        "],[8,[39,8],null,[["@value","@content","@onChange"],[[30,0,["filterPriority"]],[30,0,["priorities"]],[28,[37,2],[[30,0],[28,[37,9],[[30,0,["filterPriority"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n        "],[10,"label"],[14,0,"filter-label"],[12],[1,[28,[35,7],["review.filters.category"],null]],[13],[1,"\\n        "],[8,[39,12],null,[["@value","@onChange","@options"],[[30,0,["filterCategoryId"]],[28,[37,2],[[30,0],[28,[37,9],[[30,0,["filterCategoryId"]]],null]],null],[28,[37,11],null,[["none"],["review.filters.all_categories"]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n        "],[1,[28,[35,7],["review.filtered_reviewed_by"],null]],[1,"\\n        "],[8,[39,13],null,[["@value","@onChange","@options"],[[30,0,["filterReviewedBy"]],[28,[37,2],[[30,0],"updateFilterReviewedBy"],null],[28,[37,11],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n        "],[1,[28,[35,7],["review.filtered_user"],null]],[1,"\\n        "],[8,[39,13],null,[["@value","@onChange","@class","@options"],[[30,0,["filterUsername"]],[28,[37,2],[[30,0],"updateFilterUsername"],null],"user-selector",[28,[37,11],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["filterTopic"]],[[[1,"        "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n          "],[1,[28,[35,7],["review.filtered_topic"],null]],[1,"\\n          "],[8,[39,14],null,[["@class","@label","@icon","@action"],["btn-default","review.show_all_topics","times",[28,[37,2],[[30,0],"resetTopic"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"reviewable-filter date-range"],[12],[1,"\\n        "],[1,[28,[35,7],["review.date_filter"],null]],[1,"\\n        "],[8,[39,15],null,[["@from","@to","@onChange","@showFromTime","@showToTime"],[[30,0,["filterFromDate"]],[30,0,["filterToDate"]],[30,0,["setRange"]],false,false]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter sort-order"],[12],[1,"\\n        "],[1,[28,[35,7],["review.order_by"],null]],[1,"\\n        "],[8,[39,8],null,[["@value","@content","@onChange"],[[30,0,["filterSortOrder"]],[30,0,["sortOrders"]],[28,[37,2],[[30,0],[28,[37,9],[[30,0,["filterSortOrder"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"reviewable-filters-actions"],[12],[1,"\\n      "],[8,[39,14],null,[["@icon","@label","@class","@action"],["sync","review.filters.refresh","btn-primary refresh",[28,[37,2],[[30,0],"refresh"],null]]],null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1,"        "],[8,[39,14],null,[["@label","@icon","@class","@action"],["show_help",[30,0,["toggleFiltersIcon"]],"btn-default expand-secondary-filters",[28,[37,2],[[30,0],"toggleFilters"],null]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["r"],false,["if","load-more","action","each","-track-array","reviewable-item","conditional-loading-spinner","i18n","combo-box","mut","plugin-outlet","hash","category-chooser","email-group-user-chooser","d-button","date-time-input-range"]]',moduleName:"discourse/templates/review-index.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/review-settings",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"39bJ4gSy",block:'[[[10,0],[14,0,"reviewable-settings"],[12],[1,"\\n  "],[10,"h4"],[12],[1,[28,[35,0],["review.settings.priorities.title"],null]],[13],[1,"\\n\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["scoreTypes"]]],null]],null],null,[[[1,"    "],[10,0],[14,0,"reviewable-score-type"],[12],[1,"\\n      "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[8,[39,3],null,[["@value","@content","@onChange"],[[30,1,["reviewable_priority"]],[30,0,["settings","reviewable_priorities"]],[28,[37,4],[[30,0],[28,[37,5],[[30,1,["reviewable_priority"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[1]],null],[1,"\\n  "],[10,0],[14,0,"reviewable-score-type"],[12],[1,"\\n    "],[10,0],[14,0,"title"],[12],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[8,[39,6],null,[["@icon","@label","@class","@action","@disabled"],["check","review.settings.save_changes","btn-primary save-settings",[28,[37,4],[[30,0],"save"],null],[30,0,["saving"]]]],null],[1,"\\n\\n"],[41,[30,0,["saved"]],[[[1,"        "],[10,1],[14,0,"saved"],[12],[1,[28,[35,0],["review.settings.saved"],null]],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["rst"],false,["i18n","each","-track-array","combo-box","action","mut","d-button","if"]]',moduleName:"discourse/templates/review-settings.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/review-show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"8+48Es0D",block:'[[[8,[39,0],null,[["@reviewable"],[[30,0,["reviewable"]]]],null]],[],false,["reviewable-item"]]',moduleName:"discourse/templates/review-show.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/review-topics",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"RHcd3fA+",block:'[[[41,[30,0,["reviewableTopics"]],[[[1,"  "],[10,"table"],[14,0,"reviewable-topics"],[12],[1,"\\n    "],[10,"thead"],[12],[1,"\\n      "],[10,"th"],[12],[1,[28,[35,1],["review.topics.topic"],null]],[1," "],[13],[1,"\\n      "],[10,"th"],[12],[1,[28,[35,1],["review.topics.reviewable_count"],null]],[13],[1,"\\n      "],[10,"th"],[12],[1,[28,[35,1],["review.topics.reported_by"],null]],[13],[1,"\\n      "],[10,"th"],[12],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["reviewableTopics"]]],null]],null],null,[[[1,"        "],[10,"tr"],[14,0,"reviewable-topic"],[12],[1,"\\n          "],[10,"td"],[14,0,"topic-title"],[12],[1,"\\n            "],[10,0],[14,0,"combined-title"],[12],[1,"\\n              "],[8,[39,4],null,[["@topic"],[[30,1]]],null],[1,"\\n              "],[10,3],[15,6,[30,1,["relative_url"]]],[14,"rel","noopener noreferrer"],[14,"target","_blank"],[12],[1,[28,[35,5],[[30,1,["title"]]],null]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,"td"],[14,0,"reviewable-count"],[12],[1,"\\n            "],[1,[30,1,["stats","count"]]],[1,"\\n          "],[13],[1,"\\n          "],[10,"td"],[14,0,"reported-by"],[12],[1,"\\n            "],[1,[28,[35,1],["review.topics.unique_users"],[["count"],[[30,1,["stats","unique_users"]]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,"td"],[14,0,"reviewable-details"],[12],[1,"\\n            "],[8,[39,6],null,[["@topicId","@claimedBy"],[[30,1,["id"]],[30,1,["claimed_by"]]]],null],[1,"\\n            "],[8,[39,7],[[24,0,"btn btn-primary btn-small"]],[["@route","@query"],["review.index",[28,[37,8],null,[["topic_id"],[[30,1,["id"]]]]]]],[["default"],[[[[1,"\\n              "],[1,[28,[35,9],["list"],null]],[1,"\\n              "],[10,1],[12],[1,[28,[35,1],["review.topics.details"],null]],[13],[1,"\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"no-review"],[12],[1,"\\n    "],[1,[28,[35,1],["review.none"],null]],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["rt"],false,["if","i18n","each","-track-array","topic-status","replace-emoji","reviewable-claimed-topic","link-to","hash","d-icon"]]',moduleName:"discourse/templates/review-topics.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/review",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"CQmO7udB",block:'[[[10,0],[14,0,"reviewable"],[12],[1,"\\n  "],[10,"ul"],[14,0,"nav nav-pills reviewable-title"],[12],[1,"\\n    "],[8,[39,0],null,[["@route","@label"],["review.index","review.view_all"]],null],[1,"\\n    "],[8,[39,0],null,[["@route","@label"],["review.topics","review.grouped_by_topic"]],null],[1,"\\n"],[41,[30,0,["currentUser","admin"]],[[[1,"      "],[8,[39,0],null,[["@route","@label","@icon"],["review.settings","review.settings.title","wrench"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[46,[28,[37,3],null,null],null,null,null],[1,"\\n"],[13]],[],false,["nav-item","if","component","-outlet"]]',moduleName:"discourse/templates/review.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/second-factor-auth",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"ttKRmp+p",block:'[[[41,[30,0,["message"]],[[[1,"  "],[10,0],[15,0,[29,["alert ",[30,0,["alertClass"]]]]],[12],[1,[30,0,["message"]]],[13],[1,"\\n"]],[]],null],[41,[51,[30,0,["loadError"]]],[[[1,"  "],[10,"h3"],[12],[1,[30,0,["secondFactorTitle"]]],[13],[1,"\\n"],[41,[30,0,["customDescription"]],[[[1,"    "],[10,2],[14,0,"action-description"],[12],[1,[30,0,["customDescription"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[10,2],[12],[1,[30,0,["secondFactorDescription"]]],[13],[1,"\\n"],[41,[30,0,["showSecurityKeyForm"]],[[[1,"    "],[10,0],[14,1,"security-key"],[12],[1,"\\n      "],[8,[39,2],null,[["@action","@icon","@id","@label","@type","@class"],[[28,[37,3],[[30,0],"authenticateSecurityKey"],null],"key","security-key-authenticate-button","login.security_key_authenticate","button","btn btn-large btn-primary"]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,0,["showTotpForm"]],[30,0,["showBackupCodesForm"]]],null],[[[1,"    "],[10,"form"],[15,0,[30,0,["inputFormClass"]]],[12],[1,"\\n      "],[8,[39,5],null,[["@value","@secondFactorMethod","@onTokenInput"],[[30,0,["secondFactorToken"]],[30,0,["shownSecondFactorMethod"]],[28,[37,3],[[30,0],"onTokenInput"],null]]],null],[1,"\\n      "],[8,[39,2],null,[["@action","@class","@label","@type"],[[28,[37,3],[[30,0],"authenticateToken"],null],"btn-primary","submit","submit"]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["alternativeMethods","length"]],[[[1,"    "],[10,2],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["alternativeMethods"]]],null]],null],null,[[[41,[28,[37,8],[[30,2],0],null],[[[1,"          "],[10,1],[12],[1,"·"],[13],[1,"\\n"]],[]],null],[1,"        "],[10,1],[12],[1,"\\n          "],[11,3],[24,6,""],[16,0,[29,["toggle-second-factor-method ",[30,1,["class"]]]]],[4,[38,9],["click",[28,[37,10],[[30,0,["useAnotherMethod"]],[30,1,["id"]]],null]],null],[12],[1,"\\n            "],[1,[28,[35,11],[[30,1,["translationKey"]]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1,2]],null],[1,"    "],[13],[1,"\\n"]],[]],null]],[]],null]],["method","index"],false,["if","unless","d-button","action","or","second-factor-input","each","-track-array","gt","on","fn","i18n"]]',moduleName:"discourse/templates/second-factor-auth.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/selected-posts",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"bJwEhhN1",block:'[[[8,[39,0],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,1],[[30,0],"toggleMultiSelect"],null],[28,[37,1],[[30,0],"mergePosts"],null],[28,[37,1],[[30,0],"deleteSelected"],null],[28,[37,1],[[30,0],"deselectAll"],null],[28,[37,1],[[30,0],"selectAll"],null]]],null]],[],false,["selected-posts","action"]]',moduleName:"discourse/templates/selected-posts.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/tag-groups-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"4bVtO7Wg",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,0],["tagging.groups.edit_title"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@model","@onDestroy"],[[30,0,["model"]],[28,[37,2],[[30,0],"onDestroy"],null]]],null],[1,"\\n"],[13]],[],false,["i18n","tag-groups-form","action"]]',moduleName:"discourse/templates/tag-groups-edit.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/tag-groups-index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"TssKvbvr",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n  "],[10,"h3"],[12],[1,"\\n"],[41,[30,0,["model"]],[[[1,"      "],[1,[28,[35,1],["tagging.groups.about_heading"],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,1],["tagging.groups.about_heading_empty"],null]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n  "],[10,"section"],[14,0,"tag-groups-about"],[12],[1,"\\n    "],[10,2],[12],[1,[28,[35,1],["tagging.groups.about_description"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,"section"],[12],[1,"\\n"],[41,[51,[30,0,["model"]]],[[[1,"      "],[8,[39,3],[[24,0,"btn btn-primary"]],[["@route"],["tagGroups.new"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,4],["plus"],null]],[1,"\\n        "],[1,[28,[35,1],["tagging.groups.new"],null]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],[],false,["if","i18n","unless","link-to","d-icon"]]',moduleName:"discourse/templates/tag-groups-index.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/tag-groups-new",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"wgmASMO6",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,0],["tagging.groups.new_title"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@model","@onSave"],[[30,0,["model"]],[28,[37,2],[[30,0],"onSave"],null]]],null],[1,"\\n"],[13]],[],false,["i18n","tag-groups-form","action"]]',moduleName:"discourse/templates/tag-groups-new.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/tag-groups",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"oPtWdMWC",block:'[[[10,3],[14,6,"/tags"],[12],[1,"\\n  "],[1,[28,[35,0],["chevron-left"],null]],[1,"\\n  "],[10,1],[12],[1,[28,[35,1],["tagging.groups.back_btn"],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"container tag-groups-container"],[12],[1,"\\n  "],[10,"h2"],[12],[1,[28,[35,1],["tagging.groups.title"],null]],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[41,[30,0,["model"]],[[[1,"      "],[10,0],[14,0,"tag-groups-sidebar content-list"],[12],[1,"\\n        "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["model"]]],null]],null],null,[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,5],null,[["@route","@model"],["tagGroups.edit",[30,1]]],[["default"],[[[[1,"\\n                "],[1,[30,1,["name"]]],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n\\n        "],[8,[39,6],null,[["@class","@action","@icon","@label"],["btn-default",[28,[37,7],[[30,0],"newTagGroup"],null],"plus","tagging.groups.new"]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[46,[28,[37,9],null,null],null,null,null],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"tag-group-content"],[12],[1,"\\n      "],[10,0],[14,0,"alert info"],[12],[1,[28,[35,1],["tagging.groups.disabled"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"\\n"],[13]],["tagGroup"],false,["d-icon","i18n","if","each","-track-array","link-to","d-button","action","component","-outlet"]]',moduleName:"discourse/templates/tag-groups.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/tag/show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"a/Bt8GiC",block:'[[[8,[39,0],null,[["@tagName","@pageClass","@bodyClass"],["","tags",[28,[37,1],["tag-",[30,0,["tag","id"]],[52,[30,0,["category","slug"]],[28,[37,1],[" category-",[30,0,["category","slug"]]],null]],"",[52,[30,0,["additionalTags"]]," tags-intersection"]],null]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"container"],[12],[1,"\\n    "],[8,[39,3],null,[["@user","@banner"],[[30,0,["currentUser"]],[30,0,["site","banner"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,4],null,[["@name","@connectorTagName"],["discovery-list-controls-above","div"]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"list-controls"],[12],[1,"\\n    "],[8,[39,4],null,[["@name","@connectorTagName"],["discovery-navigation-bar-above","div"]],null],[1,"\\n    "],[10,0],[14,0,"container"],[12],[1,"\\n      "],[10,"section"],[14,0,"navigation-container tag-navigation"],[12],[1,"\\n        "],[8,[39,5],null,[["@filterMode","@canCreateTopic","@hasDraft","@createTopic","@category","@editCategory","@tag","@noSubcategories","@tagNotification","@additionalTags","@showInfo","@canCreateTopicOnTag","@createTopicDisabled","@changeTagNotificationLevel","@toggleInfo"],[[30,0,["filterMode"]],[30,0,["canCreateTopic"]],[30,0,["currentUser","has_topic_draft"]],[28,[37,6],["createTopic"],null],[30,0,["category"]],[28,[37,6],["editCategory",[30,0,["category"]]],null],[30,0,["tag"]],[30,0,["noSubcategories"]],[30,0,["tagNotification"]],[30,0,["additionalTags"]],[30,0,["showInfo"]],[30,0,["canCreateTopicOnTag"]],[30,0,["createTopicDisabled"]],[28,[37,7],[[30,0],"changeTagNotificationLevel"],null],[28,[37,7],[[30,0],"toggleInfo"],null]]],null],[1,"\\n\\n        "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["tag-navigation","div",[28,[37,8],null,[["category","tag"],[[30,0,["category"]],[30,0,["tag"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["showInfo"]],[[[1,"    "],[8,[39,9],null,[["@tag","@list","@deleteAction"],[[30,0,["tag"]],[30,0,["list"]],[28,[37,7],[[30,0],"deleteTag"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["discovery-list-container-top","div",[28,[37,8],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,10],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew"],["top",[30,0,["selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,7],[[30,0],"resetNew"],null]]],null],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,4],null,[["@name","@connectorTagName"],["discovery-above","div"]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"container list-container"],[12],[1,"\\n    "],[10,0],[14,0,"row"],[12],[1,"\\n      "],[10,0],[14,0,"full-width"],[12],[1,"\\n        "],[8,[39,4],null,[["@name"],["before-list-area"]],null],[1,"\\n        "],[10,0],[14,1,"list-area"],[12],[1,"\\n"],[41,[51,[30,0,["loading"]]],[[[1,"            "],[8,[39,12],null,[["@model","@refresh","@autoAddTopicsToBulkSelect","@bulkSelectEnabled","@addTopicsToBulkSelect"],[[30,0,["list"]],[28,[37,7],[[30,0],"refresh"],null],[30,0,["autoAddTopicsToBulkSelect"]],[30,0,["bulkSelectEnabled"]],[28,[37,7],[[30,0],"addTopicsToBulkSelect"],null]]],[["default"],[[[[1,"\\n"],[41,[30,0,["top"]],[[[1,"                "],[10,0],[14,0,"top-lists"],[12],[1,"\\n                  "],[8,[39,13],null,[["@period","@action","@fullDay"],[[30,0,["period"]],[28,[37,7],[[30,0],"changePeriod"],null],false]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],[[[41,[30,0,["topicTrackingState","hasIncoming"]],[[[1,"                  "],[10,0],[15,0,[29,["show-more ",[52,[30,0,["hasTopics"]],"has-topics"]]]],[12],[1,"\\n                    "],[11,3],[24,"tabindex","0"],[24,6,""],[24,0,"alert alert-info clickable"],[4,[38,14],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n                      "],[8,[39,15],null,[["@key","@suffix","@count"],["topic_count_",[30,0,["topicTrackingState","filter"]],[30,0,["topicTrackingState","incomingCount"]]]],null],[1,"\\n                    "],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["list","topics"]],[[[1,"                "],[8,[39,16],null,[["@topics","@canBulkSelect","@toggleBulkSelect","@bulkSelectEnabled","@bulkSelectAction","@updateAutoAddTopicsToBulkSelect","@selected","@category","@showPosters","@order","@ascending","@changeSort","@onScroll","@scrollOnLoad","@focusLastVisitedTopic"],[[30,0,["list","topics"]],[30,0,["canBulkSelect"]],[28,[37,7],[[30,0],"toggleBulkSelect"],null],[30,0,["bulkSelectEnabled"]],[28,[37,7],[[30,0],"refresh"],null],[28,[37,7],[[30,0],"updateAutoAddTopicsToBulkSelect"],null],[30,0,["selected"]],[30,0,["category"]],true,[30,0,["order"]],[30,0,["ascending"]],[28,[37,7],[[30,0],"changeSort"],null],[30,1,["saveScrollPosition"]],true,true]],null],[1,"\\n"]],[]],null],[1,"            "]],[1]]]]],[1,"\\n\\n            "],[10,"footer"],[14,0,"topic-list-bottom"],[12],[1,"\\n              "],[8,[39,10],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew"],["bottom",[30,0,["selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,7],[[30,0],"resetNew"],null]]],null],[1,"\\n\\n"],[41,[51,[30,0,["list","canLoadMore"]]],[[[1,"                "],[8,[39,17],null,[["@education","@message"],[[30,0,["footerEducation"]],[30,0,["footerMessage"]]]],[["default"],[[[[1,"\\n                  "],[1,[28,[35,18],[[28,[37,19],["topic.browse_all_tags_or_latest"],[["basePath"],[[28,[37,20],null,null]]]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,21],null,[["@condition"],[[30,0,["list","loadingMore"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,4],null,[["@name","@connectorTagName"],["discovery-below","div"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["discoveryTopicList"],false,["d-section","concat","if","discourse-banner","plugin-outlet","d-navigation","route-action","action","hash","tag-info","topic-dismiss-buttons","unless","discovery-topics-list","period-chooser","on","count-i18n","topic-list","footer-message","html-safe","i18n","base-path","conditional-loading-spinner"]]',moduleName:"discourse/templates/tag/show.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/tags",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"bmaMWJY9",block:'[[[8,[39,0],null,[["@pageClass","@tagName"],["tags",""]],[["default"],[[[[1,"\\n  "],[46,[28,[37,2],null,null],null,null,null],[1,"\\n"]],[]]]]]],[],false,["d-section","component","-outlet"]]',moduleName:"discourse/templates/tags.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/tags/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"wSg7Tmwt",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n  "],[8,[39,0],null,[["@user","@banner"],[[30,0,["currentUser"]],[30,0,["site","banner"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"list-controls"],[12],[1,"\\n  "],[10,0],[14,0,"container tags-controls"],[12],[1,"\\n"],[41,[30,0,["canAdminTags"]],[[[1,"      "],[8,[39,2],null,[["@actionsMapping"],[[30,0,["actionsMapping"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[10,"h2"],[12],[1,[28,[35,3],["tagging.tags"],null]],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[12],[1,"\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["tags-below-title","div",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"tag-sort-options"],[12],[1,"\\n  "],[1,[28,[35,3],["tagging.sort_by"],null]],[1,"\\n  "],[10,1],[15,0,[29,["tag-sort-count ",[52,[30,0,["sortedByCount"]],"active"]]]],[12],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["sortByCount"]]],null],[12],[1,[28,[35,3],["tagging.sort_by_count"],null]],[13],[13],[1,"\\n  "],[10,1],[15,0,[29,["tag-sort-name ",[52,[30,0,["sortedByName"]],"active"]]]],[12],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["sortById"]]],null],[12],[1,[28,[35,3],["tagging.sort_by_name"],null]],[13],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"hr"],[12],[13],[1,"\\n\\n"],[10,0],[14,0,"all-tag-lists"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["model","extras","categories"]]],null]],null],null,[[[1,"    "],[8,[39,9],null,[["@tags","@sortProperties","@categoryId"],[[30,1,["tags"]],[30,0,["sortProperties"]],[30,1,["id"]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["model","extras","tag_groups"]]],null]],null],null,[[[1,"    "],[8,[39,9],null,[["@tags","@sortProperties","@tagGroupName"],[[30,2,["tags"]],[30,0,["sortProperties"]],[30,2,["name"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["model"]],[[[1,"    "],[8,[39,9],null,[["@tags","@sortProperties","@titleKey"],[[30,0,["model"]],[30,0,["sortProperties"]],[30,0,["otherTagsTitleKey"]]]],null],[1,"\\n"]],[]],null],[13]],["category","tagGroup"],false,["discourse-banner","if","tags-admin-dropdown","i18n","plugin-outlet","hash","on","each","-track-array","tag-list"]]',moduleName:"discourse/templates/tags/index.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/topic-list-header-column",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"aria-label='"+e.escapeExpression(o(i,"get").call(null!=t?t:e.nullContext||{},"ariaLabel",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:116},end:{line:1,column:129}}}))+"'"},3:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'tabindex="0" role="button" aria-pressed=\''+e.escapeExpression(l(i,"get").call(s,"view.ariaPressed",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:195},end:{line:1,column:215}}}))+"' "+(null!=(o=l(i,"if").call(s,"view.ariaSort",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(4,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:217},end:{line:1,column:274}}}))?o:"")+" "},4:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"aria-sort='"+e.escapeExpression(o(i,"get").call(null!=t?t:e.nullContext||{},"view.ariaSort",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:249},end:{line:1,column:266}}}))+"'"},6:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return(null!=(o=l(i,"if").call(s,"showBulkToggle",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(7,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))?o:"")+(null!=(o=l(i,"if").call(s,"bulkSelectEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(9,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:4},end:{line:14,column:13}}}))?o:"")},7:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"      "+e.escapeExpression((o(i,"raw")||t&&o(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"flat-button",{name:"raw",hash:{title:"topics.bulk.toggle",icon:"list",class:"bulk-select"},hashTypes:{title:"StringLiteral",icon:"StringLiteral",class:"StringLiteral"},hashContexts:{title:t,icon:t,class:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:4,column:6},end:{line:4,column:86}}}))+"\n"},9:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"      <span class='bulk-select-topics'>"+(null!=(o=u(i,"if").call(s,"canDoBulkActions",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(10,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:8,column:8},end:{line:10,column:17}}}))?o:"")+"<button class='btn btn-default bulk-select-all'>"+a((u(i,"i18n")||t&&u(t,"i18n")||l).call(s,"topics.bulk.select_all",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:11,column:56},end:{line:11,column:89}}}))+"</button>\n        <button class='btn btn-default bulk-clear-all'>"+a((u(i,"i18n")||t&&u(t,"i18n")||l).call(s,"topics.bulk.clear_all",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:12,column:55},end:{line:12,column:87}}}))+"</button>\n      </span>\n"},10:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"          <button class='btn btn-icon no-text bulk-select-actions'>"+e.escapeExpression((o(i,"d-icon")||t&&o(t,"d-icon")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"cog",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:9,column:67},end:{line:9,column:83}}}))+"&#8203;</button>\n"},12:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"    "+e.escapeExpression((o(i,"d-icon")||t&&o(t,"d-icon")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"view.sortIcon",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:18,column:4},end:{line:18,column:28}}}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"<th data-sort-order='"+l(a(i,"get").call(s,"order",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:21},end:{line:1,column:30}}}))+"' class='"+l(a(i,"get").call(s,"view.className",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:39},end:{line:1,column:57}}}))+' topic-list-data\' scope="col" '+(null!=(o=a(i,"if").call(s,"ariaLabel",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:87},end:{line:1,column:137}}}))?o:"")+" "+(null!=(o=a(i,"if").call(s,"sortable",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:138},end:{line:1,column:282}}}))?o:"")+">"+(null!=(o=a(i,"if").call(s,"canBulkSelect",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(6,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:2},end:{line:15,column:11}}}))?o:"")+"<span>"+l(a(i,"get").call(s,"view.localizedName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:16,column:8},end:{line:16,column:30}}}))+"</span>"+(null!=(o=a(i,"if").call(s,"view.isSorting",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(12,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:17,column:2},end:{line:19,column:11}}}))?o:"")+"</th>\n"},useData:!0});(0,i.addRawTemplate)("topic-list-header-column",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/topic-list-header",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o
return'  <th class="bulk-select topic-list-data">\n'+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"canBulkSelect",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:4},end:{line:6,column:11}}}))?o:"")+"  </th>\n"},2:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"      "+e.escapeExpression((o(i,"raw")||t&&o(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"flat-button",{name:"raw",hash:{title:"topics.bulk.toggle",icon:"list",class:"bulk-select"},hashTypes:{title:"StringLiteral",icon:"StringLiteral",class:"StringLiteral"},hashContexts:{title:t,icon:t,class:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:5,column:6},end:{line:5,column:86}}}))+"\n"},4:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"  "+e.escapeExpression((l(i,"raw")||t&&l(t,"raw")||s).call(o,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(l(i,"i18n")||t&&l(t,"i18n")||s).call(o,"category.sort_options.posters",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:12,column:61},end:{line:12,column:99}}}),order:"posters"},hashTypes:{ariaLabel:"SubExpression",order:"StringLiteral"},hashContexts:{ariaLabel:t,order:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:12,column:2},end:{line:12,column:101}}}))+"\n"},6:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"  "+e.escapeExpression((l(i,"raw")||t&&l(t,"raw")||s).call(o,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(l(i,"i18n")||t&&l(t,"i18n")||s).call(o,"sr_likes",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:16,column:104},end:{line:16,column:121}}}),name:"likes",order:"likes",number:"true",sortable:"sortable"},hashTypes:{ariaLabel:"SubExpression",name:"StringLiteral",order:"StringLiteral",number:"StringLiteral",sortable:"PathExpression"},hashContexts:{ariaLabel:t,name:t,order:t,number:t,sortable:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:16,column:2},end:{line:16,column:123}}}))+"\n"},8:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"  "+e.escapeExpression((l(i,"raw")||t&&l(t,"raw")||s).call(o,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(l(i,"i18n")||t&&l(t,"i18n")||s).call(o,"sr_op_likes",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:19,column:107},end:{line:19,column:127}}}),name:"likes",order:"op_likes",number:"true",sortable:"sortable"},hashTypes:{ariaLabel:"SubExpression",name:"StringLiteral",order:"StringLiteral",number:"StringLiteral",sortable:"PathExpression"},hashContexts:{ariaLabel:t,name:t,order:t,number:t,sortable:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:19,column:2},end:{line:19,column:129}}}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-header-before"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:1,column:0},end:{line:1,column:55}}}))+(null!=(o=u(i,"if").call(s,"bulkSelectEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:0},end:{line:8,column:7}}}))?o:"")+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"topic-list-header-column",{name:"raw",hash:{canDoBulkActions:"canDoBulkActions",canBulkSelect:"canBulkSelect",showBulkToggle:"toggleInTitle",bulkSelectEnabled:"bulkSelectEnabled",name:"listTitle",order:"default"},hashTypes:{canDoBulkActions:"PathExpression",canBulkSelect:"PathExpression",showBulkToggle:"PathExpression",bulkSelectEnabled:"PathExpression",name:"PathExpression",order:"StringLiteral"},hashContexts:{canDoBulkActions:t,canBulkSelect:t,showBulkToggle:t,bulkSelectEnabled:t,name:t,order:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:9,column:0},end:{line:9,column:192}}}))+"\n"+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-header-after-main-link"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:10,column:0},end:{line:10,column:62}}}))+"\n"+(null!=(o=u(i,"if").call(s,"showPosters",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(4,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:11,column:0},end:{line:13,column:7}}}))?o:"")+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(u(i,"i18n")||t&&u(t,"i18n")||l).call(s,"sr_replies",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:14,column:104},end:{line:14,column:123}}}),name:"replies",order:"posts",number:"true",sortable:"sortable"},hashTypes:{ariaLabel:"SubExpression",name:"StringLiteral",order:"StringLiteral",number:"StringLiteral",sortable:"PathExpression"},hashContexts:{ariaLabel:t,name:t,order:t,number:t,sortable:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:14,column:0},end:{line:14,column:125}}}))+"\n"+(null!=(o=u(i,"if").call(s,"showLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(6,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:15,column:0},end:{line:17,column:7}}}))?o:"")+(null!=(o=u(i,"if").call(s,"showOpLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(8,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:18,column:0},end:{line:20,column:7}}}))?o:"")+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(u(i,"i18n")||t&&u(t,"i18n")||l).call(s,"sr_views",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:21,column:102},end:{line:21,column:119}}}),name:"views",order:"views",number:"true",sortable:"sortable"},hashTypes:{ariaLabel:"SubExpression",name:"StringLiteral",order:"StringLiteral",number:"StringLiteral",sortable:"PathExpression"},hashContexts:{ariaLabel:t,name:t,order:t,number:t,sortable:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:21,column:0},end:{line:21,column:121}}}))+"\n"+a((u(i,"raw")||t&&u(t,"raw")||l).call(s,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(u(i,"i18n")||t&&u(t,"i18n")||l).call(s,"sr_activity",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:22,column:108},end:{line:22,column:128}}}),name:"activity",order:"activity",number:"true",sortable:"sortable"},hashTypes:{ariaLabel:"SubExpression",name:"StringLiteral",order:"StringLiteral",number:"StringLiteral",sortable:"PathExpression"},hashContexts:{ariaLabel:t,name:t,order:t,number:t,sortable:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:22,column:0},end:{line:22,column:130}}}))+a((u(i,"raw-plugin-outlet")||t&&u(t,"raw-plugin-outlet")||l).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-header-after"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:r,loc:{start:{line:23,column:0},end:{line:23,column:54}}}))},useData:!0});(0,i.addRawTemplate)("topic-list-header",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/topic-post-badges",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'&nbsp;<a\n      href="'+s(a(i,"get").call(o,"url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:12},end:{line:4,column:19}}}))+'"\n      class="badge badge-notification unread-posts"\n      title="'+s((a(i,"i18n")||t&&a(t,"i18n")||l).call(o,"topic.unread_posts",{name:"i18n",hash:{count:"newPosts"},hashTypes:{count:"PathExpression"},hashContexts:{count:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:6,column:13},end:{line:6,column:57}}}))+'"\n      aria-label="'+s((a(i,"i18n")||t&&a(t,"i18n")||l).call(o,"topic.unread_posts",{name:"i18n",hash:{count:"newPosts"},hashTypes:{count:"PathExpression"},hashContexts:{count:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:7,column:18},end:{line:7,column:62}}}))+'"\n    >'+s(a(i,"get").call(o,"newPosts",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:8,column:5},end:{line:8,column:17}}}))+"</a>"},3:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'&nbsp;<a\n      href="'+s(a(i,"get").call(o,"url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:12,column:12},end:{line:12,column:19}}}))+'"\n      class="badge badge-notification unread-posts"\n      title="'+s((a(i,"i18n")||t&&a(t,"i18n")||l).call(o,"topic.unread_posts",{name:"i18n",hash:{count:"unreadPosts"},hashTypes:{count:"PathExpression"},hashContexts:{count:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:14,column:13},end:{line:14,column:60}}}))+'"\n      aria-label="'+s((a(i,"i18n")||t&&a(t,"i18n")||l).call(o,"topic.unread_posts",{name:"i18n",hash:{count:"unreadPosts"},hashTypes:{count:"PathExpression"},hashContexts:{count:t},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:15,column:18},end:{line:15,column:65}}}))+'"\n    >'+s(a(i,"get").call(o,"unreadPosts",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:16,column:5},end:{line:16,column:20}}}))+"</a>"},5:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'&nbsp;<a\n      href="'+s(a(i,"get").call(o,"url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:20,column:12},end:{line:20,column:19}}}))+'"\n      class="badge badge-notification new-topic"\n      title="'+s((a(i,"i18n")||t&&a(t,"i18n")||l).call(o,"topic.new",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:22,column:13},end:{line:22,column:33}}}))+'"\n      aria-label="'+s((a(i,"i18n")||t&&a(t,"i18n")||l).call(o,"topic.new",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:23,column:18},end:{line:23,column:38}}}))+'"\n    >'+s(a(i,"get").call(o,"newDotText",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:24,column:5},end:{line:24,column:19}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'<span class="topic-post-badges">'+(null!=(o=l(i,"if").call(s,"newPosts",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:2,column:2},end:{line:9,column:10}}}))?o:"")+(null!=(o=l(i,"if").call(s,"unreadPosts",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:10,column:2},end:{line:17,column:10}}}))?o:"")+(null!=(o=l(i,"if").call(s,"unseen",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(5,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:18,column:2},end:{line:25,column:10}}}))?o:"")+"</span>\n"},useData:!0});(0,i.addRawTemplate)("topic-post-badges",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/topic-status",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){return"<div class='topic-statuses'>\n"},3:function(e,t,i,n,r){var o
return null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"if").call(null!=t?t:e.nullContext||{},"status.href",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(4,r,0),inverse:e.program(6,r,0),types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:5,column:0},end:{line:9,column:10}}}))?o:""},4:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"<a href='"+s(l(i,"get").call(o,"status.href",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:9},end:{line:6,column:24}}}))+"' title='"+s(l(i,"get").call(o,"status.title",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:33},end:{line:6,column:49}}}))+"' class='topic-status "+s(l(i,"get").call(o,"status.extraClasses",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:71},end:{line:6,column:94}}}))+"'>"+s((l(i,"d-icon")||t&&l(t,"d-icon")||e.hooks.helperMissing).call(o,"status.icon",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:96},end:{line:6,column:118}}}))+"</a>"},6:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"<"+s(l(i,"get").call(o,"status.openTag",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:8,column:1},end:{line:8,column:19}}}))+" title='"+s(l(i,"get").call(o,"status.title",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:8,column:27},end:{line:8,column:43}}}))+"' class='topic-status'>"+s((l(i,"d-icon")||t&&l(t,"d-icon")||e.hooks.helperMissing).call(o,"status.icon",{name:"d-icon",hash:{class:"status.key"},hashTypes:{class:"PathExpression"},hashContexts:{class:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:8,column:66},end:{line:8,column:105}}}))+"</"+s(l(i,"get").call(o,"status.closeTag",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:8,column:107},end:{line:8,column:126}}}))+">"},8:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return e.escapeExpression((o(i,"d-icon")||t&&o(t,"d-icon")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"view.showDefault",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:11,column:26},end:{line:11,column:53}}}))},10:function(e,t,i,n,r){return"</div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return(null!=(o=l(i,"if").call(s,"view.renderDiv",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:1,column:0},end:{line:3,column:9}}}))?o:"")+(null!=(o=l(i,"each").call(s,"status","in","view.statuses",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:4,column:0},end:{line:10,column:10}}}))?o:"")+(null!=(o=l(i,"if").call(s,"view.showDefault",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(8,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:11,column:0},end:{line:11,column:63}}}))?o:"")+(null!=(o=l(i,"if").call(s,"view.renderDiv",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(10,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:12,column:0},end:{line:14,column:9}}}))?o:"")},useData:!0});(0,i.addRawTemplate)("topic-status",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/topic",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"KLy46F53",block:'[[[8,[39,0],null,[["@multiSelect","@enteredAt","@topic","@hasScrolled"],[[30,0,["multiSelect"]],[30,0,["enteredAt"]],[30,0,["model"]],[30,0,["hasScrolled"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model"]],[[[1,"    "],[8,[39,2],null,[["@category","@tags"],[[30,0,["model","category"]],[30,0,["model","tags"]]]],null],[1,"\\n    "],[8,[39,3],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n    "],[10,0],[14,0,"container"],[12],[1,"\\n      "],[8,[39,4],null,[["@user","@banner","@overlay","@hide"],[[30,0,["currentUser"]],[30,0,["site","banner"]],[30,0,["hasScrolled"]],[30,0,["model","errorLoading"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showSharedDraftControls"]],[[[1,"    "],[8,[39,5],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-post-stream","div",[28,[37,7],null,[["model","editFirstPost"],[[30,0,["model"]],[28,[37,8],[[30,0],"editFirstPost"],null]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["model","postStream","loaded"]],[[[41,[30,0,["model","postStream","firstPostPresent"]],[[[1,"      "],[8,[39,9],null,[["@cancelled","@save","@model"],[[28,[37,8],[[30,0],"cancelEditingTopic"],null],[28,[37,8],[[30,0],"finishedEditingTopic"],null],[30,0,["model"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["editingTopic"]],[[[1,"          "],[10,0],[14,0,"edit-topic-title"],[12],[1,"\\n            "],[8,[39,10],null,[["@shouldShow","@tagName"],[[30,0,["model","isPrivateMessage"]],""]],null],[1,"\\n\\n            "],[8,[39,11],null,[["@id","@value","@maxlength","@autofocus"],["edit-title",[30,0,["buffered","title"]],[30,0,["siteSettings","max_topic_title_length"]],"true"]],null],[1,"\\n\\n"],[41,[30,0,["showCategoryChooser"]],[[[1,"              "],[8,[39,12],null,[["@class","@value","@onChange"],["small",[30,0,["buffered","category_id"]],[28,[37,8],[[30,0],"topicCategoryChanged"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditTags"]],[[[1,"              "],[8,[39,13],null,[["@value","@onChange","@options"],[[30,0,["buffered","tags"]],[28,[37,8],[[30,0],"topicTagsChanged"],null],[28,[37,7],null,[["filterable","categoryId","minimum"],[true,[30,0,["buffered","category_id"]],[30,0,["minimumRequiredTags"]]]]]]],null],[1,"\\n"]],[]],null],[1,"\\n            "],[10,1],[12],[1,"\\n              "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["edit-topic","div",[28,[37,7],null,[["model","buffered"],[[30,0,["model"]],[30,0,["buffered"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"edit-controls"],[12],[1,"\\n              "],[8,[39,14],null,[["@action","@class","@icon","@ariaLabel"],[[28,[37,8],[[30,0],"finishedEditingTopic"],null],"btn-primary submit-edit","check","composer.save_edit"]],null],[1,"\\n              "],[8,[39,14],null,[["@action","@class","@icon","@ariaLabel"],[[28,[37,8],[[30,0],"cancelEditingTopic"],null],"btn-default cancel-edit","times","composer.cancel"]],null],[1,"\\n\\n"],[41,[30,0,["canRemoveTopicFeaturedLink"]],[[[1,"                "],[11,3],[24,6,""],[24,0,"remove-featured-link"],[16,"title",[28,[37,15],["composer.remove_featured_link"],null]],[4,[38,16],["click",[30,0,["removeFeaturedLink"]]],null],[12],[1,"\\n                  "],[1,[28,[35,17],["times-circle"],null]],[1,"\\n                  "],[1,[30,0,["featuredLinkDomain"]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n\\n"]],[]],[[[1,"          "],[10,"h1"],[15,"data-topic-id",[30,0,["model","id"]]],[12],[1,"\\n"],[41,[51,[30,0,["model","is_warning"]]],[[[41,[30,0,["canSendPms"]],[[[1,"                "],[8,[39,10],null,[["@shouldShow","@href","@title","@ariaLabel","@tagName"],[[30,0,["model","isPrivateMessage"]],[30,0,["pmPath"]],"topic_statuses.personal_message.title","user.messages.inbox",""]],null],[1,"\\n"]],[]],[[[1,"                "],[8,[39,10],null,[["@shouldShow","@tagName"],[[30,0,["model","isPrivateMessage"]],""]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["model","details","loaded"]],[[[1,"              "],[8,[39,19],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n              "],[11,3],[16,6,[30,0,["model","url"]]],[24,0,"fancy-title"],[4,[38,16],["click",[30,0,["jumpTop"]]],null],[12],[1,"\\n                "],[1,[28,[35,20],[[30,0,["model","fancyTitle"]]],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","details","can_edit"]],[[[1,"              "],[11,3],[24,6,""],[24,0,"edit-topic"],[16,"title",[28,[37,15],["edit"],null]],[4,[38,16],["click",[30,0,["editTopic"]]],null],[12],[1,[28,[35,17],["pencil-alt"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n            "],[8,[39,6],null,[["@name","@outletArgs"],["topic-title-suffix",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n\\n          "],[8,[39,21],null,[["@topic","@class"],[[30,0,["model"]],"topic-category"]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model","publishedPage"]],[[[1,"        "],[10,0],[14,0,"published-page-notice"],[12],[1,"\\n          "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,0,["model","publishedPage","public"]],[[[1,"              "],[10,1],[14,0,"is-public"],[12],[1,[28,[35,15],["topic.publish_page.public"],null]],[13],[1,"\\n"]],[]],null],[1,"            "],[1,[28,[35,15],["topic.publish_page.topic_published"],null]],[1,"\\n            "],[10,0],[12],[1,"\\n              "],[10,3],[15,6,[30,0,["model","publishedPage","url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["model","publishedPage","url"]]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[8,[39,14],null,[["@icon","@label","@action"],["file","topic.publish_page.publishing_settings",[28,[37,22],["showPagePublish"],null]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"container posts"],[12],[1,"\\n      "],[10,0],[15,0,[29,["selected-posts ",[52,[51,[30,0,["multiSelect"]]],"hidden"]]]],[12],[1,"\\n        "],[8,[39,23],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,8],[[30,0],"toggleMultiSelect"],null],[28,[37,8],[[30,0],"mergePosts"],null],[28,[37,8],[[30,0],"deleteSelected"],null],[28,[37,8],[[30,0],"deselectAll"],null],[28,[37,8],[[30,0],"selectAll"],null]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,6],null,[["@name","@connectorTagName"],["above-timeline","div"]],null],[1,"\\n\\n      "],[8,[39,24],null,[["@class","@topic","@jumpToDate","@jumpToIndex"],["topic-navigation",[30,0,["model"]],[28,[37,8],[[30,0],"jumpToDate"],null],[28,[37,8],[[30,0],"jumpToIndex"],null]]],[["default"],[[[[1,"\\n        "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["topic-navigation","div",[28,[37,7],null,[["topic"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[41,[30,1,["renderTimeline"]],[[[1,"          "],[8,[39,25],null,[["@info","@model","@replyToPost","@showTopReplies","@jumpToPostPrompt","@enteredIndex","@prevEvent","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@fullscreen","@mobileView"],[[30,1],[30,0,["model"]],[28,[37,8],[[30,0],"replyToPost"],null],[28,[37,8],[[30,0],"showTopReplies"],null],[28,[37,8],[[30,0],"jumpToPostPrompt"],null],[30,0,["enteredIndex"]],[30,1,["prevEvent"]],[28,[37,8],[[30,0],"jumpTop"],null],[28,[37,8],[[30,0],"jumpBottom"],null],[28,[37,8],[[30,0],"jumpEnd"],null],[28,[37,8],[[30,0],"jumpToIndex"],null],[28,[37,8],[[30,0],"toggleMultiSelect"],null],[28,[37,22],["showTopicSlowModeUpdate"],null],[28,[37,8],[[30,0],"deleteTopic"],null],[28,[37,8],[[30,0],"recoverTopic"],null],[28,[37,8],[[30,0],"toggleClosed"],null],[28,[37,8],[[30,0],"toggleArchived"],null],[28,[37,8],[[30,0],"toggleVisibility"],null],[28,[37,22],["showTopicTimerModal"],null],[28,[37,22],["showFeatureTopic"],null],[28,[37,22],["showChangeTimestamp"],null],[28,[37,8],[[30,0],"resetBumpDate"],null],[28,[37,8],[[30,0],"convertToPublicTopic"],null],[28,[37,8],[[30,0],"convertToPrivateMessage"],null],[30,1,["topicProgressExpanded"]],[30,0,["site","mobileView"]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,26],null,[["@prevEvent","@topic","@expanded","@jumpToPost"],[[30,1,["prevEvent"]],[30,0,["model"]],[30,1,["topicProgressExpanded"]],[28,[37,8],[[30,0],"jumpToPost"],null]]],[["default"],[[[[1,"\\n            "],[10,1],[12],[1,"\\n              "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["before-topic-progress","div",[28,[37,7],null,[["model","jumpToPost"],[[30,0,["model"]],[28,[37,8],[[30,0],"jumpToPost"],null]]]]]],null],[1,"\\n            "],[13],[1,"\\n            "],[8,[39,27],null,[["@topic","@openUpwards","@rightSide","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,0,["model"]],"true","true",[28,[37,8],[[30,0],"toggleMultiSelect"],null],[28,[37,22],["showTopicSlowModeUpdate"],null],[28,[37,8],[[30,0],"deleteTopic"],null],[28,[37,8],[[30,0],"recoverTopic"],null],[28,[37,8],[[30,0],"toggleClosed"],null],[28,[37,8],[[30,0],"toggleArchived"],null],[28,[37,8],[[30,0],"toggleVisibility"],null],[28,[37,22],["showTopicTimerModal"],null],[28,[37,22],["showFeatureTopic"],null],[28,[37,22],["showChangeTimestamp"],null],[28,[37,8],[[30,0],"resetBumpDate"],null],[28,[37,8],[[30,0],"convertToPublicTopic"],null],[28,[37,8],[[30,0],"convertToPrivateMessage"],null]]],null],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]]],[1,"      "]],[1]]]]],[1,"\\n\\n      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[10,"section"],[14,0,"topic-area"],[14,1,"topic"],[15,"data-topic-id",[30,0,["model","id"]]],[12],[1,"\\n\\n          "],[10,0],[14,0,"posts-wrapper"],[12],[1,"\\n            "],[8,[39,28],null,[["@condition"],[[30,0,["model","postStream","loadingAbove"]]]],null],[1,"\\n\\n            "],[10,1],[12],[1,"\\n              "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-posts","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n\\n"],[41,[51,[30,0,["model","postStream","loadingFilter"]]],[[[1,"              "],[8,[39,29],null,[["@posts","@canCreatePost","@multiSelect","@selectedPostsCount","@filteredPostsCount","@selectedQuery","@gaps","@showReadIndicator","@streamFilters","@lastReadPostNumber","@highestPostNumber","@showFlags","@editPost","@showHistory","@showLogin","@showRawEmail","@deletePost","@permanentlyDeletePost","@recoverPost","@expandHidden","@toggleBookmark","@togglePostType","@rebakePost","@changePostOwner","@grantBadge","@changeNotice","@lockPost","@unlockPost","@unhidePost","@replyToPost","@toggleWiki","@showTopReplies","@cancelFilter","@removeAllowedUser","@removeAllowedGroup","@topVisibleChanged","@currentPostChanged","@currentPostScrolled","@bottomVisibleChanged","@togglePostSelection","@selectReplies","@selectBelow","@fillGapBefore","@fillGapAfter","@showInvite","@showPagePublish"],[[30,0,["postsToRender"]],[30,0,["model","details","can_create_post"]],[30,0,["multiSelect"]],[30,0,["selectedPostsCount"]],[30,0,["model","postStream","filteredPostsCount"]],[30,0,["selectedQuery"]],[30,0,["model","postStream","gaps"]],[30,0,["model","show_read_indicator"]],[30,0,["model","postStream","streamFilters"]],[30,0,["userLastReadPostNumber"]],[30,0,["highestPostNumber"]],[28,[37,8],[[30,0],"showPostFlags"],null],[28,[37,8],[[30,0],"editPost"],null],[28,[37,22],["showHistory"],null],[28,[37,22],["showLogin"],null],[28,[37,22],["showRawEmail"],null],[28,[37,8],[[30,0],"deletePost"],null],[28,[37,8],[[30,0],"permanentlyDeletePost"],null],[28,[37,8],[[30,0],"recoverPost"],null],[28,[37,8],[[30,0],"expandHidden"],null],[28,[37,8],[[30,0],"toggleBookmark"],null],[28,[37,8],[[30,0],"togglePostType"],null],[28,[37,8],[[30,0],"rebakePost"],null],[28,[37,8],[[30,0],"changePostOwner"],null],[28,[37,8],[[30,0],"grantBadge"],null],[28,[37,8],[[30,0],"changeNotice"],null],[28,[37,8],[[30,0],"lockPost"],null],[28,[37,8],[[30,0],"unlockPost"],null],[28,[37,8],[[30,0],"unhidePost"],null],[28,[37,8],[[30,0],"replyToPost"],null],[28,[37,8],[[30,0],"toggleWiki"],null],[28,[37,8],[[30,0],"showTopReplies"],null],[28,[37,8],[[30,0],"cancelFilter"],null],[28,[37,8],[[30,0],"removeAllowedUser"],null],[28,[37,8],[[30,0],"removeAllowedGroup"],null],[28,[37,8],[[30,0],"topVisibleChanged"],null],[28,[37,8],[[30,0],"currentPostChanged"],null],[28,[37,8],[[30,0],"currentPostScrolled"],null],[28,[37,8],[[30,0],"bottomVisibleChanged"],null],[28,[37,8],[[30,0],"togglePostSelection"],null],[28,[37,8],[[30,0],"selectReplies"],null],[28,[37,8],[[30,0],"selectBelow"],null],[28,[37,8],[[30,0],"fillGapBefore"],null],[28,[37,8],[[30,0],"fillGapAfter"],null],[28,[37,22],["showInvite"],null],[28,[37,22],["showPagePublish"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n            "],[8,[39,28],null,[["@condition"],[[30,0,["model","postStream","loadingBelow"]]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,1,"topic-bottom"],[12],[13],[1,"\\n\\n          "],[8,[39,28],null,[["@condition"],[[30,0,["model","postStream","loadingFilter"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["loadedAllPosts"]],[[[1,"\\n"],[41,[30,0,["model","pending_posts"]],[[[1,"                "],[10,0],[14,0,"pending-posts"],[12],[1,"\\n"],[42,[28,[37,31],[[28,[37,31],[[30,0,["model","pending_posts"]]],null]],null],null,[[[1,"                    "],[10,0],[14,0,"reviewable-item"],[12],[1,"\\n                      "],[10,0],[14,0,"reviewable-meta-data"],[12],[1,"\\n                        "],[10,1],[14,0,"reviewable-type"],[12],[1,"\\n                          "],[1,[28,[35,15],["review.awaiting_approval"],null]],[1,"\\n                        "],[13],[1,"\\n                        "],[10,1],[14,0,"created-at"],[12],[1,"\\n                          "],[1,[28,[35,32],[[30,2,["created_at"]]],null]],[1,"\\n                        "],[13],[1,"\\n                      "],[13],[1,"\\n                      "],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n                        "],[8,[39,33],null,[["@user","@tagName"],[[30,0,["currentUser"]],""]],null],[1,"\\n                        "],[10,0],[14,0,"post-contents"],[12],[1,"\\n                          "],[8,[39,34],null,[["@user","@tagName"],[[30,0,["currentUser"]],""]],null],[1,"\\n                          "],[10,0],[14,0,"post-body"],[12],[8,[39,35],null,[["@rawText"],[[30,2,["raw"]]]],null],[13],[1,"\\n                        "],[13],[1,"\\n                      "],[13],[1,"\\n                      "],[10,0],[14,0,"reviewable-actions"],[12],[1,"\\n                        "],[8,[39,14],null,[["@class","@label","@icon","@action"],["btn-danger","review.delete","trash-alt",[28,[37,8],[[30,0],"deletePending",[30,2]],null]]],null],[1,"\\n                      "],[13],[1,"\\n                    "],[13],[1,"\\n"]],[2]],null],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","queued_posts_count"]],[[[1,"                "],[10,0],[14,0,"has-pending-posts"],[12],[1,"\\n                  "],[10,0],[12],[1,"\\n                    "],[1,[28,[35,20],[[28,[37,15],["review.topic_has_pending"],[["count"],[[30,0,["model","queued_posts_count"]]]]]],null]],[1,"\\n                  "],[13],[1,"\\n\\n                  "],[8,[39,36],null,[["@route","@query"],["review",[28,[37,7],null,[["topic_id","type","status"],[[30,0,["model","id"]],"ReviewableQueuedPost","pending"]]]]],[["default"],[[[[1,"\\n                    "],[1,[28,[35,15],["review.view_pending"],null]],[1,"\\n                  "]],[]]]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n              "],[8,[39,37],null,[["@topic","@user","@tagName"],[[30,0,["model"]],[30,0,["currentUser"]],""]],null],[1,"\\n\\n              "],[8,[39,38],null,[["@topicClosed","@statusType","@executeAt","@basedOnLastPost","@durationMinutes","@categoryId","@showTopicTimerModal","@removeTopicTimer"],[[30,0,["model","closed"]],[30,0,["model","topic_timer","status_type"]],[30,0,["model","topic_timer","execute_at"]],[30,0,["model","topic_timer","based_on_last_post"]],[30,0,["model","topic_timer","duration_minutes"]],[30,0,["model","topic_timer","category_id"]],[28,[37,22],["showTopicTimerModal"],null],[28,[37,8],[[30,0],"removeTopicTimer",[30,0,["model","topic_timer","status_type"]],"topic_timer"],null]]],null],[1,"\\n\\n"],[41,[30,0,["showSelectedPostsAtBottom"]],[[[1,"                "],[10,0],[15,0,[29,["selected-posts\\n                    ",[52,[51,[30,0,["multiSelect"]]],"hidden"],"\\n                    ",[52,[30,0,["showSelectedPostsAtBottom"]],"hidden"]]]],[12],[1,"\\n                  "],[8,[39,23],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,8],[[30,0],"toggleMultiSelect"],null],[28,[37,8],[[30,0],"mergePosts"],null],[28,[37,8],[[30,0],"deleteSelected"],null],[28,[37,8],[[30,0],"deselectAll"],null],[28,[37,8],[[30,0],"selectAll"],null]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],null],[1,"          "]],[]]]]],[1,"\\n\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n    "],[13],[1,"\\n"],[41,[30,0,["loadedAllPosts"]],[[[41,[30,0,["session","showSignupCta"]],[[[1,"        "],[8,[39,39],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["currentUser"]],[[[1,"          "],[10,1],[12],[1,"\\n            "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-footer-buttons","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n\\n          "],[8,[39,40],null,[["@topic","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@toggleBookmark","@showFlagTopic","@toggleArchiveMessage","@editFirstPost","@deferTopic","@replyToPost"],[[30,0,["model"]],[28,[37,8],[[30,0],"toggleMultiSelect"],null],[28,[37,22],["showTopicSlowModeUpdate"],null],[28,[37,8],[[30,0],"deleteTopic"],null],[28,[37,8],[[30,0],"recoverTopic"],null],[28,[37,8],[[30,0],"toggleClosed"],null],[28,[37,8],[[30,0],"toggleArchived"],null],[28,[37,8],[[30,0],"toggleVisibility"],null],[28,[37,22],["showTopicTimerModal"],null],[28,[37,22],["showFeatureTopic"],null],[28,[37,22],["showChangeTimestamp"],null],[28,[37,8],[[30,0],"resetBumpDate"],null],[28,[37,8],[[30,0],"convertToPublicTopic"],null],[28,[37,8],[[30,0],"convertToPrivateMessage"],null],[28,[37,8],[[30,0],"toggleBookmark"],null],[28,[37,22],["showFlagTopic"],null],[28,[37,8],[[30,0],"toggleArchiveMessage"],null],[28,[37,8],[[30,0],"editFirstPost"],null],[28,[37,8],[[30,0],"deferTopic"],null],[28,[37,8],[[30,0],"replyToPost"],null]]],null],[1,"\\n"]],[]],[[[1,"          "],[10,0],[14,1,"topic-footer-buttons"],[12],[1,"\\n            "],[8,[39,14],null,[["@icon","@class","@action","@label"],["reply","btn-primary pull-right",[28,[37,22],["showLogin"],null],"topic.reply.title"]],null],[1,"\\n          "],[13],[1,"\\n"]],[]]]],[]]],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-suggested","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[15,0,[29,[[52,[30,0,["model","relatedMessages","length"]],"related-messages-wrapper"],"\\n          ",[52,[30,0,["model","suggestedTopics","length"]],"suggested-topics-wrapper"]]]],[12],[1,"\\n"],[41,[30,0,["model","relatedMessages","length"]],[[[1,"          "],[8,[39,41],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["model","suggestedTopics","length"]],[[[1,"          "],[8,[39,42],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null]],[]],[[[1,"    "],[10,0],[14,0,"container"],[12],[1,"\\n      "],[8,[39,28],null,[["@condition"],[[30,0,["noErrorYet"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","errorHtml"]],[[[1,"          "],[10,0],[14,0,"not-found"],[12],[1,[28,[35,20],[[30,0,["model","errorHtml"]]],null]],[13],[1,"\\n"]],[]],[[[1,"          "],[10,0],[14,0,"topic-error"],[12],[1,"\\n            "],[10,0],[12],[1,[30,0,["model","errorMessage"]]],[13],[1,"\\n"],[41,[30,0,["model","noRetry"]],[[[41,[51,[30,0,["currentUser"]]],[[[1,"                "],[8,[39,14],null,[["@action","@class","@icon","@label"],[[28,[37,22],["showLogin"],null],"btn-primary topic-retry","user","log_in"]],null],[1,"\\n"]],[]],null]],[]],[[[1,"              "],[8,[39,14],null,[["@action","@class","@icon","@label"],[[28,[37,8],[[30,0],"retryLoading"],null],"btn-primary topic-retry","sync","errors.buttons.again"]],null],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n          "],[8,[39,28],null,[["@condition"],[[30,0,["retrying"]]]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"\\n  "],[8,[39,43],null,[["@quoteState","@selectText","@editPost","@topic","@composerVisible"],[[30,0,["quoteState"]],[28,[37,8],[[30,0],"selectText"],null],[28,[37,8],[[30,0],"editPost"],null],[30,0,["model"]],[30,0,["composer","visible"]]]],null],[1,"\\n"]],[]]]]]],["info","pending"],false,["discourse-topic","if","add-category-tag-classes","add-topic-status-classes","discourse-banner","shared-draft-controls","plugin-outlet","hash","action","topic-title","private-message-glyph","text-field","category-chooser","mini-tag-chooser","d-button","i18n","on","d-icon","unless","topic-status","html-safe","topic-category","route-action","selected-posts","topic-navigation","topic-timeline","topic-progress","topic-admin-menu-button","conditional-loading-spinner","scrolling-post-stream","each","-track-array","age-with-tooltip","reviewable-created-by","reviewable-created-by-name","cook-text","link-to","slow-mode-info","topic-timer-info","signup-cta","topic-footer-buttons","related-messages","suggested-topics","quote-button"]]',moduleName:"discourse/templates/topic.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/tos",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"k2UYXVzh",block:'[[[8,[39,0],null,[["@bodyClass","@class"],["static-tos","container"]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n    "],[8,[39,1],null,[["@name"],["above-static"]],null],[1,"\\n    "],[1,[28,[35,2],[[30,0,["model","html"]]],null]],[1,"\\n    "],[8,[39,1],null,[["@name"],["below-static"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],[],false,["d-section","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/tos.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/unknown",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"uBV4FEwu",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n  "],[1,[28,[35,0],[[30,0,["model"]]],null]],[1,"\\n"],[13]],[],false,["html-safe"]]',moduleName:"discourse/templates/unknown.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user-activity-pending",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"J0zkRWfr",block:'[[[10,"ul"],[14,0,"user-stream"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["model"]]],null]],null],null,[[[1,"    "],[8,[39,2],null,[["@post"],[[30,1]]],null],[1,"\\n"]],[1]],null],[13]],["pending_post"],false,["each","-track-array","pending-post"]]',moduleName:"discourse/templates/user-activity-pending.hbs",isStrictMode:!1})
e.default=i}))
define("discourse/templates/user-invited-show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"yuzLbYb/",block:'[[[8,[39,0],null,[["@pageClass","@tagName"],["user-invites",""]],[["default"],[[[[1,"\\n"],[41,[30,0,["canInviteToForum"]],[[[1,"    "],[8,[39,2],null,[["@class","@id","@selector","@action"],["user-content","user-content",".user-invite-list tr",[28,[37,3],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n      "],[8,[39,0],null,[["@class"],["user-additional-controls"]],[["default"],[[[[1,"\\n"],[41,[30,0,["showSearch"]],[[[1,"          "],[10,0],[14,0,"user-invite-search"],[12],[1,"\\n            "],[10,"form"],[12],[8,[39,4],null,[["@value","@placeholderKey"],[[30,0,["searchTerm"]],"user.invited.search"]],null],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"        "],[8,[39,0],null,[["@class"],["user-invite-buttons"]],[["default"],[[[[1,"\\n          "],[8,[39,5],null,[["@class","@icon","@action","@label"],["btn-default","plus",[28,[37,3],[[30,0],"createInvite"],null],"user.invited.create"]],null],[1,"\\n"],[41,[30,0,["canBulkInvite"]],[[[41,[30,0,["siteSettings","allow_bulk_invite"]],[[[41,[51,[30,0,["site","mobileView"]]],[[[1,"                "],[8,[39,5],null,[["@class","@icon","@action","@label"],["btn-flat","upload",[28,[37,3],[[30,0],"createInviteCsv"],null],"user.invited.bulk_invite.text"]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[41,[30,0,["showBulkActionButtons"]],[[[41,[30,0,["inviteExpired"]],[[[41,[30,0,["removedAll"]],[[[1,"                "],[10,1],[14,0,"removed-all"],[12],[1,"\\n                  "],[1,[28,[35,7],["user.invited.removed_all"],null]],[1,"\\n                "],[13],[1,"\\n"]],[]],[[[1,"                "],[8,[39,5],null,[["@icon","@action","@label"],["times",[28,[37,3],[[30,0],"destroyAllExpired"],null],"user.invited.remove_all"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["invitePending"]],[[[41,[30,0,["reinvitedAll"]],[[[1,"                "],[10,1],[14,0,"reinvited-all"],[12],[1,"\\n                  "],[8,[39,5],null,[["@icon","@disabled","@label"],["check",true,"user.invited.reinvited_all"]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],[[[41,[30,0,["hasEmailInvites"]],[[[1,"                "],[8,[39,5],null,[["@class","@icon","@action","@label"],["btn-default","sync",[28,[37,3],[[30,0],"reinviteAll"],null],"user.invited.reinvite_all"]],null],[1,"\\n              "]],[]],null]],[]]]],[]],null]],[]],null],[1,"        "]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[10,"section"],[12],[1,"\\n"],[41,[30,0,["model","invites"]],[[[41,[30,0,["inviteRedeemed"]],[[[1,"            "],[10,"table"],[14,0,"table user-invite-list"],[12],[1,"\\n              "],[10,"thead"],[12],[1,"\\n                "],[10,"tr"],[12],[1,"\\n                  "],[10,"th"],[12],[1,[28,[35,7],["user.invited.user"],null]],[13],[1,"\\n                  "],[10,"th"],[12],[1,[28,[35,7],["user.invited.redeemed_at"],null]],[13],[1,"\\n"],[41,[30,0,["model","can_see_invite_details"]],[[[1,"                    "],[10,"th"],[12],[1,[28,[35,7],["user.last_seen"],null]],[13],[1,"\\n                    "],[10,"th"],[12],[1,[28,[35,7],["user.invited.topics_entered"],null]],[13],[1,"\\n                    "],[10,"th"],[12],[1,[28,[35,7],["user.invited.posts_read_count"],null]],[13],[1,"\\n                    "],[10,"th"],[12],[1,[28,[35,7],["user.invited.time_read"],null]],[13],[1,"\\n                    "],[10,"th"],[12],[1,[28,[35,7],["user.invited.days_visited"],null]],[13],[1,"\\n                    "],[10,"th"],[12],[1,[28,[35,7],["user.invited.invited_via"],null]],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["model","invites"]]],null]],null],null,[[[1,"                  "],[10,"tr"],[12],[1,"\\n                    "],[10,"td"],[12],[1,"\\n                      "],[8,[39,10],null,[["@route","@model"],["user",[30,1,["user"]]]],[["default"],[[[[1,[28,[35,11],[[30,1,["user"]]],[["imageSize"],["tiny"]]]]],[]]]]],[1,"\\n                      "],[8,[39,10],null,[["@route","@model"],["user",[30,1,["user"]]]],[["default"],[[[[1,[30,1,["user","username"]]]],[]]]]],[1,"\\n                    "],[13],[1,"\\n                    "],[10,"td"],[12],[1,[28,[35,12],[[30,1,["redeemed_at"]]],null]],[13],[1,"\\n"],[41,[30,0,["model","can_see_invite_details"]],[[[1,"                      "],[10,"td"],[12],[1,[28,[35,12],[[30,1,["user","last_seen_at"]]],null]],[13],[1,"\\n                      "],[10,"td"],[12],[1,[28,[35,13],[[30,1,["user","topics_entered"]]],null]],[13],[1,"\\n                      "],[10,"td"],[12],[1,[28,[35,13],[[30,1,["user","posts_read_count"]]],null]],[13],[1,"\\n                      "],[10,"td"],[12],[1,[28,[35,14],[[30,1,["user","time_read"]]],null]],[13],[1,"\\n                      "],[10,"td"],[12],[1,"\\n                        "],[10,1],[15,"title",[28,[37,7],["user.invited.days_visited"],null]],[12],[1,[28,[35,15],[[30,1,["user","days_visited"]]],null]],[13],[1,"\\n                        /\\n                        "],[10,1],[15,"title",[28,[37,7],["user.invited.account_age_days"],null]],[12],[1,[28,[35,15],[[30,1,["user","days_since_created"]]],null]],[13],[1,"\\n                      "],[13],[1,"\\n                      "],[10,"td"],[12],[1,[28,[35,15],[[30,1,["invite_source"]]],null]],[13],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n"]],[1]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],[[[1,"            "],[10,"table"],[14,0,"table user-invite-list"],[12],[1,"\\n              "],[10,"thead"],[12],[1,"\\n                "],[10,"tr"],[12],[1,"\\n                  "],[10,"th"],[12],[1,[28,[35,7],["user.invited.invited_via"],null]],[13],[1,"\\n                  "],[10,"th"],[12],[1,[28,[35,7],["user.invited.sent"],null]],[13],[1,"\\n                  "],[10,"th"],[12],[1,[28,[35,7],["user.invited.expires_at"],null]],[13],[1,"\\n                  "],[10,"th"],[12],[13],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["model","invites"]]],null]],null],null,[[[1,"                  "],[10,"tr"],[12],[1,"\\n                    "],[10,"td"],[14,0,"invite-type"],[12],[1,"\\n                      "],[10,0],[14,0,"label"],[12],[1,[28,[35,7],["user.invited.invited_via"],null]],[13],[1,"\\n"],[41,[30,2,["email"]],[[[1,"                        "],[1,[28,[35,16],["envelope"],null]],[1,"\\n                        "],[1,[30,2,["email"]]],[1,"\\n"]],[]],[[[1,"                        "],[1,[28,[35,16],["link"],null]],[1,"\\n                        "],[1,[28,[35,7],["user.invited.invited_via_link"],[["key","count","max"],[[30,2,["shortKey"]],[30,2,["redemption_count"]],[30,2,["max_redemptions_allowed"]]]]]],[1,"\\n"]],[]]],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,2,["groups"]]],null]],null],null,[[[1,"                        "],[10,2],[14,0,"invite-extra"],[12],[10,3],[15,6,[29,["/g/",[30,3,["name"]]]]],[12],[1,[28,[35,16],["users"],null]],[1,"\\n                            "],[1,[30,3,["name"]]],[13],[13],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,2,["topic"]],[[[1,"                        "],[10,2],[14,0,"invite-extra"],[12],[10,3],[15,6,[30,2,["topic","url"]]],[12],[1,[28,[35,16],["file"],null]],[1," "],[1,[30,2,["topic","title"]]],[13],[13],[1,"\\n"]],[]],null],[1,"                    "],[13],[1,"\\n\\n                    "],[10,"td"],[14,0,"invite-updated-at"],[12],[1,"\\n                      "],[10,0],[14,0,"label"],[12],[1,[28,[35,7],["user.invited.sent"],null]],[13],[1,"\\n                      "],[1,[28,[35,12],[[30,2,["updated_at"]]],null]],[1,"\\n                    "],[13],[1,"\\n\\n                    "],[10,"td"],[14,0,"invite-expires-at"],[12],[1,"\\n                      "],[10,0],[14,0,"label"],[12],[1,[28,[35,7],["user.invited.expires_at"],null]],[13],[1,"\\n"],[41,[30,0,["inviteExpired"]],[[[1,"                        "],[1,[28,[35,17],[[30,2,["expires_at"]]],null]],[1,"\\n"]],[]],[[[41,[30,2,["expired"]],[[[1,"                        "],[1,[28,[35,7],["user.invited.expired"],null]],[1,"\\n"]],[]],[[[1,"                        "],[1,[28,[35,17],[[30,2,["expires_at"]]],null]],[1,"\\n                      "]],[]]]],[]]],[1,"                    "],[13],[1,"\\n\\n"],[41,[30,2,["can_delete_invite"]],[[[1,"                      "],[10,"td"],[14,0,"invite-actions"],[12],[1,"\\n                        "],[8,[39,5],null,[["@class","@icon","@action","@title"],["btn-default","pencil-alt",[28,[37,3],[[30,0],"editInvite",[30,2]],null],"user.invited.edit"]],null],[1,"\\n                        "],[8,[39,5],null,[["@icon","@class","@action","@title"],["trash-alt","cancel",[28,[37,3],[[30,0],"destroyInvite",[30,2]],null],[52,[30,2,["destroyed"]],"user.invited.removed","user.invited.remove"]]],null],[1,"\\n                      "],[13],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n"]],[2]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]]],[1,"\\n          "],[8,[39,18],null,[["@condition"],[[30,0,["invitesLoading"]]]],null],[1,"\\n"]],[]],[[[1,"          "],[10,0],[14,0,"user-invite-none"],[12],[1,"\\n"],[41,[30,0,["canBulkInvite"]],[[[1,"              "],[1,[28,[35,15],[[28,[37,7],["user.invited.bulk_invite.none"],null]],null]],[1,"\\n"]],[]],[[[1,"              "],[1,[28,[35,7],["user.invited.none"],null]],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"alert alert-error invite-error"],[12],[1,"\\n      "],[1,[30,0,["model","error"]]],[1,"\\n    "],[13],[1,"\\n"]],[]]]],[]]]]]],["invite","invite","g"],false,["d-section","if","load-more","action","text-field","d-button","unless","i18n","each","-track-array","link-to","avatar","format-date","number","format-duration","html-safe","d-icon","raw-date","conditional-loading-spinner"]]',moduleName:"discourse/templates/user-invited-show.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user-invited",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"bGKWjETy",block:'[[[41,[30,0,["can_see_invite_details"]],[[[1,"  "],[8,[39,1],null,[["@pageClass"],["user-invites"]],null],[1,"\\n\\n  "],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n    "],[8,[39,2],null,[["@ariaLabel"],["User secondary - invites"]],[["default"],[[[[1,"\\n      "],[8,[39,3],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","pending",[30,0,["pendingLabel"]]]],null],[1,"\\n      "],[8,[39,3],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","expired",[30,0,["expiredLabel"]]]],null],[1,"\\n      "],[8,[39,3],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","redeemed",[30,0,["redeemedLabel"]]]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[46,[28,[37,5],null,null],null,null,null]],[],false,["if","d-section","horizontal-overflow-nav","nav-item","component","-outlet"]]',moduleName:"discourse/templates/user-invited.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user-private-messages-group",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"djOfzXTR",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n\\n  "],[8,[39,1],[[24,0,"user-nav__messages-group-latest"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.index","subNav"]],[["default"],[[[[1,"\\n    "],[1,[28,[35,2],["envelope"],null]],[1,"\\n    "],[10,1],[12],[1,[28,[35,3],["categories.latest"],null]],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["viewingSelf"]],[[[1,"    "],[8,[39,1],[[24,0,"user-nav__messages-group-new"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.new","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,2],["exclamation-circle"],null]],[1,"\\n      "],[10,1],[12],[1,[30,0,["newLinkText"]]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,1],[[24,0,"user-nav__messages-group-unread"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.unread","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,2],["plus-circle"],null]],[1,"\\n      "],[10,1],[12],[1,[30,0,["unreadLinkText"]]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,1],[[24,0,"user-nav__messages-group-archive"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.archive","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,2],["archive"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,3],["user.messages.archive"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[40,[[[1,"  "],[8,[39,7],null,[["@value","@onChange"],[[30,0,["group","group_user","notification_level"]],[30,0,["changeGroupNotificationLevel"]]]],null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,6],[[30,0,["navigationControlsButton"]]],null]],[1,"\\n"],[10,0],[15,0,[29,["group-messages group-",[30,0,["group","name"]]]]],[12],[1,"\\n  "],[46,[28,[37,9],null,null],null,null,null],[1,"\\n"],[13]],[],false,["user-nav/messages-secondary-nav","d-navigation-item","d-icon","i18n","if","in-element","-in-el-null","group-notifications-button","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-group.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user-private-messages-tags-index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"lOLQ5JFP",block:'[[[10,0],[14,0,"list-controls"],[12],[1,"\\n  "],[10,0],[14,0,"container"],[12],[1,"\\n    "],[10,"h2"],[12],[1,[28,[35,0],["tagging.tags"],null]],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"tag-sort-options"],[12],[1,"\\n  "],[1,[28,[35,0],["tagging.sort_by"],null]],[1,"\\n  "],[10,1],[15,0,[29,["tag-sort-count ",[52,[30,0,["sortedByCount"]],"active"]]]],[12],[1,"\\n    "],[11,3],[24,6,""],[4,[38,2],["click",[30,0,["sortByCount"]]],null],[12],[1,"\\n      "],[1,[28,[35,0],["tagging.sort_by_count"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[15,0,[29,["tag-sort-name ",[52,[30,0,["sortedByName"]],"active"]]]],[12],[1,"\\n    "],[11,3],[24,6,""],[4,[38,2],["click",[30,0,["sortById"]]],null],[12],[1,"\\n      "],[1,[28,[35,0],["tagging.sort_by_name"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"hr"],[12],[13],[1,"\\n\\n"],[41,[30,0,["model"]],[[[1,"  "],[8,[39,3],null,[["@tags","@sortProperties","@titleKey","@isPrivateMessage","@tagsForUser"],[[30,0,["model"]],[30,0,["sortProperties"]],"tagging.all_tags",true,[30,0,["tagsForUser"]]]],null],[1,"\\n"]],[]],null]],[],false,["i18n","if","on","tag-list"]]',moduleName:"discourse/templates/user-private-messages-tags-index.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user-private-messages-tags",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"d1SiqzZ0",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[10,"li"],[14,0,"tags"],[12],[1,"\\n    "],[8,[39,1],null,[["@route"],["userPrivateMessages.tags.index"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,2],["tag"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,3],["user.messages.all_tags"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["tagName"]],[[[1,"    "],[10,"li"],[14,0,"archive"],[12],[1,"\\n      "],[8,[39,1],null,[["@route","@model"],["userPrivateMessages.tags.show",[30,0,["tagName"]]]],[["default"],[[[[1,"\\n        "],[1,[30,0,["tagName"]]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[46,[28,[37,6],null,null],null,null,null]],[],false,["user-nav/messages-secondary-nav","link-to","d-icon","i18n","if","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-tags.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user-private-messages-user",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"4e3/aUqC",block:'[[[41,[30,0,["showWarningsWarning"]],[[[1,"  "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,1],[[28,[37,2],["admin.user.warnings_list_warning"],null]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,3],null,null,[["default"],[[[[1,"\\n  "],[8,[39,4],[[24,0,"user-nav__messages-latest"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.index","subNav"]],[["default"],[[[[1,"\\n    "],[1,[28,[35,5],["envelope"],null]],[1,"\\n    "],[10,1],[12],[1,[28,[35,2],["categories.latest"],null]],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[8,[39,4],[[24,0,"user-nav__messages-sent"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.sent","subNav"]],[["default"],[[[[1,"\\n    "],[1,[28,[35,5],["reply"],null]],[1,"\\n    "],[10,1],[12],[1,[28,[35,2],["user.messages.sent"],null]],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["viewingSelf"]],[[[1,"    "],[8,[39,4],[[24,0,"user-nav__messages-new"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.new","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,5],["exclamation-circle"],null]],[1,"\\n      "],[10,1],[12],[1,[30,0,["newLinkText"]]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,4],[[24,0,"user-nav__messages-unread"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.unread","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,5],["plus-circle"],null]],[1,"\\n      "],[10,1],[12],[1,[30,0,["unreadLinkText"]]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"]],[]],null],[1,"\\n  "],[8,[39,4],[[24,0,"user-nav__messages-archive"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.archive","subNav"]],[["default"],[[[[1,"\\n    "],[1,[28,[35,5],["archive"],null]],[1,"\\n    "],[10,1],[12],[1,[28,[35,2],["user.messages.archive"],null]],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n"]],[]]]]],[1,"\\n\\n"],[46,[28,[37,7],null,null],null,null,null]],[],false,["if","html-safe","i18n","user-nav/messages-secondary-nav","d-navigation-item","d-icon","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-user.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user-selector-autocomplete",["exports","discourse-common/lib/raw-handlebars","discourse-common/lib/raw-templates"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let n=(0,t.template)({1:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return(null!=(o=l(i,"if").call(s,"item.isUser",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:4,column:6},end:{line:17,column:13}}}))?o:"")+"\n"+(null!=(o=l(i,"if").call(s,"item.isEmail",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(7,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:19,column:6},end:{line:26,column:13}}}))?o:"")+"\n"+(null!=(o=l(i,"if").call(s,"item.isGroup",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(9,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:28,column:6},end:{line:36,column:13}}}))?o:"")},2:function(e,t,i,n,r){var o,s=null!=t?t:e.nullContext||{},l=e.escapeExpression,a=e.hooks.helperMissing,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"        <li data-index="+l(u(i,"get").call(s,"item.index",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:5,column:23},end:{line:5,column:37}}}))+'>\n          <a href title="'+l(u(i,"get").call(s,"item.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:25},end:{line:6,column:38}}}))+'" class="'+l(u(i,"get").call(s,"item.cssClasses",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:6,column:47},end:{line:6,column:66}}}))+'">\n            '+l((u(i,"avatar")||t&&u(t,"avatar")||a).call(s,"item",{name:"avatar",hash:{imageSize:"tiny"},hashTypes:{imageSize:"StringLiteral"},hashContexts:{imageSize:t},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:7,column:12},end:{line:7,column:44}}}))+"\n            <span class='username'>"+l((u(i,"format-username")||t&&u(t,"format-username")||a).call(s,"item.username",{name:"format-username",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:8,column:35},end:{line:8,column:68}}}))+"</span>\n"+(null!=(o=u(i,"if").call(s,"item.name",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:9,column:12},end:{line:11,column:19}}}))?o:"")+(null!=(o=u(i,"if").call(s,"item.status",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(5,r,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:12,column:12},end:{line:14,column:19}}}))?o:"")+"          </a>\n        </li>\n"},3:function(e,t,i,n,r){var o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return"              <span class='name'>"+e.escapeExpression(o(i,"get").call(null!=t?t:e.nullContext||{},"item.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:10,column:33},end:{line:10,column:46}}}))+"</span>\n"},5:function(e,t,i,n,r){return"              <span class='user-status'></span>\n"},7:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'        <li>\n          <a href title="'+s(a(i,"get").call(o,"item.username",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:21,column:25},end:{line:21,column:42}}}))+'">\n            '+s((a(i,"d-icon")||t&&a(t,"d-icon")||l).call(o,"envelope",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:22,column:12},end:{line:22,column:33}}}))+"\n            <span class='username'>"+s((a(i,"format-username")||t&&a(t,"format-username")||l).call(o,"item.username",{name:"format-username",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:23,column:35},end:{line:23,column:68}}}))+"</span>\n          </a>\n        </li>\n"},9:function(e,t,i,n,r){var o=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}
return'        <li>\n          <a href title="'+s(l(i,"get").call(o,"item.full_name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:30,column:25},end:{line:30,column:43}}}))+'">\n            '+s((l(i,"d-icon")||t&&l(t,"d-icon")||e.hooks.helperMissing).call(o,"users",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:r,loc:{start:{line:31,column:12},end:{line:31,column:30}}}))+"\n            <span class='username'>"+s(l(i,"get").call(o,"item.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:32,column:35},end:{line:32,column:48}}}))+"</span>\n            <span class='name'>"+s(l(i,"get").call(o,"item.full_name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:r,loc:{start:{line:33,column:31},end:{line:33,column:49}}}))+"</span>\n          </a>\n        </li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o
return"<div class='autocomplete ac-user'>\n  <ul>\n"+(null!=(o=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(i,"each").call(null!=t?t:e.nullContext||{},"item","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,r,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:r,loc:{start:{line:3,column:4},end:{line:37,column:13}}}))?o:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("user-selector-autocomplete",n,{core:!0})
var r=n
e.default=r})),define("discourse/templates/user-topics-list",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"55U39srY",block:'[[[41,[30,0,["noContent"]],[[[1,"  "],[8,[39,1],null,[["@title","@body"],[[30,0,["model","emptyState","title"]],[30,0,["model","emptyState","body"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,2],null,[["@class","@selector","@action"],["paginated-topics-list",".paginated-topics-list .topic-list .topic-list-item",[28,[37,3],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n    "],[8,[39,4],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew"],["top",[30,0,["selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,3],[[30,0],"resetNew"],null]]],null],[1,"\\n\\n"],[41,[28,[37,5],[[30,0,["incomingCount"]],0],null],[[[1,"      "],[10,0],[14,0,"show-mores"],[12],[1,"\\n        "],[11,3],[24,"tabindex","0"],[24,6,""],[24,0,"alert alert-info clickable"],[4,[38,6],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n          "],[8,[39,7],null,[["@key","@suffix","@count"],["topic_count_","latest",[30,0,["incomingCount"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,8],null,[["@topicList","@hideCategory","@showPosters","@bulkSelectEnabled","@bulkSelectAction","@selected","@tagsForUser","@onScroll","@canBulkSelect","@scrollOnLoad","@toggleBulkSelect","@updateAutoAddTopicsToBulkSelect"],[[30,0,["model"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["bulkSelectEnabled"]],[28,[37,3],[[30,0],"refresh"],null],[30,0,["selected"]],[30,0,["tagsForUser"]],[30,0,["saveScrollPosition"]],[30,0,["canBulkSelect"]],true,[28,[37,3],[[30,0],"toggleBulkSelect"],null],[28,[37,3],[[30,0],"updateAutoAddTopicsToBulkSelect"],null]]],null],[1,"\\n\\n    "],[8,[39,4],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew"],["bottom",[30,0,["selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,3],[[30,0],"resetNew"],null]]],null],[1,"\\n\\n    "],[8,[39,9],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],[],false,["if","empty-state","load-more","action","topic-dismiss-buttons","gt","on","count-i18n","basic-topic-list","conditional-loading-spinner"]]',moduleName:"discourse/templates/user-topics-list.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"v6dYA+g6",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-user-profile","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[10,0],[15,0,[29,["container\\n    ",[52,[30,0,["viewingSelf"]],"viewing-self"],"\\n    ",[52,[30,0,["model","profile_hidden"]],"profile-hidden"],"\\n    ",[30,0,["primaryGroup"]]]]],[12],[1,"\\n  "],[8,[39,3],null,[["@class"],["user-main"]],[["default"],[[[[1,"\\n    "],[10,3],[14,6,"#user-content"],[14,1,"skip-link"],[14,0,"skip-link__user-nav"],[12],[1,"\\n      "],[1,[28,[35,4],["skip_user_nav"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,"section"],[15,0,[29,[[52,[30,0,["collapsedInfo"]],"collapsed-info"],"\\n        about\\n        ",[52,[30,0,["hasProfileBackgroundUrl"]],"has-background","no-background"]]]],[12],[1,"\\n"],[41,[51,[30,0,["collapsedInfo"]]],[[[41,[30,0,["showStaffCounters"]],[[[1,"          "],[10,0],[14,0,"staff-counters"],[12],[1,"\\n"],[41,[30,0,["model","number_of_flags_given"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[1,[28,[35,6],[[28,[37,4],["user.staff_counters.flags_given"],[["className","count"],["helpful-flags",[30,0,["model","number_of_flags_given"]]]]]],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_flagged_posts"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[8,[39,7],null,[["@route","@query"],["review",[28,[37,1],null,[["username","status","type"],[[30,0,["model","username"]],"all","ReviewableFlaggedPost"]]]]],[["default"],[[[[1,"\\n                  "],[1,[28,[35,6],[[28,[37,4],["user.staff_counters.flagged_posts"],[["className","count"],["flagged-posts",[30,0,["model","number_of_flagged_posts"]]]]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_rejected_posts"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[8,[39,7],null,[["@route","@query"],["review",[28,[37,1],null,[["username","status","type"],[[30,0,["model","username"]],"rejected","ReviewableQueuedPost"]]]]],[["default"],[[[[1,"\\n                  "],[1,[28,[35,6],[[28,[37,4],["user.staff_counters.rejected_posts"],[["className","count"],["flagged-posts",[30,0,["model","number_of_rejected_posts"]]]]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","number_of_deleted_posts"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[8,[39,7],null,[["@route","@model"],["user.deletedPosts",[30,0,["model"]]]],[["default"],[[[[1,"\\n                  "],[1,[28,[35,6],[[28,[37,4],["user.staff_counters.deleted_posts"],[["className","count"],["deleted-posts",[30,0,["model","number_of_deleted_posts"]]]]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_suspensions"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[11,3],[24,6,""],[4,[38,8],["click",[30,0,["showSuspensions"]]],null],[12],[1,"\\n                  "],[1,[28,[35,6],[[28,[37,4],["user.staff_counters.suspensions"],[["className","count"],["suspensions",[30,0,["model","number_of_suspensions"]]]]]],null]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","warnings_received_count"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[8,[39,7],null,[["@route","@model"],["userPrivateMessages.user.warnings",[30,0,["model"]]]],[["default"],[[[[1,"\\n                  "],[1,[28,[35,6],[[28,[37,4],["user.staff_counters.warnings_received"],[["className","count"],["warnings-received",[30,0,["model","warnings_received_count"]]]]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[1,"        "],[10,0],[14,0,"user-profile-image"],[15,5,[30,0,["model","profileBackgroundUrl"]]],[12],[13],[1,"\\n"]],[]],null],[1,"      "],[10,0],[14,0,"details"],[12],[1,"\\n        "],[10,0],[14,0,"primary"],[12],[1,"\\n          "],[8,[39,0],null,[["@name","@outletArgs"],["before-user-profile-avatar",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n          "],[8,[39,9],null,[["@user","@tagName"],[[30,0,["model"]],""]],null],[1,"\\n          "],[10,0],[14,0,"primary-textual"],[12],[1,"\\n            "],[10,0],[14,0,"user-profile-names"],[12],[1,"\\n              "],[10,0],[15,0,[29,[[52,[30,0,["nameFirst"]],"full-name","username"],"\\n                  user-profile-names__primary"]]],[12],[1,"\\n                "],[1,[52,[30,0,["nameFirst"]],[30,0,["model","name"]],[28,[37,10],[[30,0,["model","username"]]],null]]],[1,"\\n                "],[1,[28,[35,11],[[30,0,["model"]]],[["currentUser"],[[30,0,["currentUser"]]]]]],[1,"\\n"],[41,[30,0,["model","status"]],[[[1,"                  "],[8,[39,12],null,[["@status"],[[30,0,["model","status"]]]],null],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n              "],[10,0],[15,0,[29,[[52,[30,0,["nameFirst"]],"username","full-name"],"\\n                  user-profile-names__secondary"]]],[12],[41,[30,0,["nameFirst"]],[[[1,[30,0,["model","username"]]]],[]],[[[1,[30,0,["model","name"]]]],[]]],[13],[1,"\\n"],[41,[30,0,["model","staged"]],[[[1,"                "],[10,0],[14,0,"staged user-profile-names__secondary"],[12],[1,[28,[35,4],["user.staged"],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","title"]],[[[1,"                "],[10,0],[14,0,"user-profile-names__title"],[12],[1,[30,0,["model","title"]]],[13],[1,"\\n"]],[]],null],[1,"              "],[10,1],[12],[1,"\\n                "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-post-names","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n\\n"],[41,[30,0,["showFeaturedTopic"]],[[[1,"              "],[10,0],[14,0,"featured-topic user-profile__featured-topic"],[12],[1,"\\n                "],[10,1],[15,"title",[28,[37,4],["user.featured_topic"],null]],[12],[1,"\\n                  "],[1,[28,[35,13],["book"],null]],[13],[8,[39,7],null,[["@route","@models"],["topic",[28,[37,14],[[30,0,["model","featured_topic","slug"]],[30,0,["model","featured_topic","id"]]],null]]],[["default"],[[[[1,[28,[35,15],[[28,[37,6],[[30,0,["model","featured_topic","fancy_title"]]],null]],null]]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n            "],[10,0],[14,0,"location-and-website user-profile__location-and-website"],[12],[1,"\\n              "],[41,[30,0,["model","location"]],[[[10,0],[14,0,"user-profile-location"],[12],[1,[28,[35,13],["map-marker-alt"],null]],[1,[30,0,["model","location"]]],[13]],[]],null],[1,"\\n"],[41,[30,0,["model","website_name"]],[[[1,"                "],[10,0],[14,0,"user-profile-website"],[12],[1,"\\n"],[1,"                  "],[1,[28,[35,13],["globe"],null]],[41,[30,0,["linkWebsite"]],[[[10,3],[15,6,[30,0,["model","website"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,[30,0,["model","website_name"]]],[13],[1,"\\n"]],[]],[[[1,"                    "],[10,1],[15,"title",[30,0,["model","website"]]],[12],[1,[30,0,["model","website_name"]]],[13],[1,"\\n"]],[]]],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"              "],[10,1],[12],[1,"\\n                "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-location-and-website","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"bio"],[12],[1,"\\n"],[41,[30,0,["model","suspended"]],[[[1,"                "],[10,0],[14,0,"suspended"],[12],[1,"\\n                  "],[1,[28,[35,13],["ban"],null]],[1,"\\n                  "],[10,"b"],[12],[1,"\\n"],[41,[30,0,["model","suspendedForever"]],[[[1,"                      "],[1,[28,[35,4],["user.suspended_permanently"],null]],[1,"\\n"]],[]],[[[1,"                      "],[1,[28,[35,4],["user.suspended_notice"],[["date"],[[30,0,["model","suspendedTillDate"]]]]]],[1,"\\n"]],[]]],[1,"                  "],[13],[1,"\\n                  "],[10,"br"],[12],[13],[1,"\\n"],[41,[30,0,["model","suspend_reason"]],[[[1,"                    "],[10,"b"],[12],[1,[28,[35,4],["user.suspended_reason"],null]],[13],[1,"\\n                    "],[1,[30,0,["model","suspend_reason"]]],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n"]],[]],null],[41,[30,0,["isNotSuspendedOrIsStaff"]],[[[1,"                "],[8,[39,16],null,null,[["default"],[[[[1,"\\n                  "],[1,[28,[35,6],[[30,0,["model","bio_cooked"]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n\\n"],[41,[30,0,["publicUserFields"]],[[[1,"              "],[10,0],[14,0,"public-user-fields"],[12],[1,"\\n"],[42,[28,[37,18],[[28,[37,18],[[30,0,["publicUserFields"]]],null]],null],null,[[[41,[30,1,["value"]],[[[1,"                    "],[10,0],[15,0,[29,["public-user-field ",[30,1,["field","dasherized_name"]]]]],[12],[1,"\\n                      "],[10,1],[14,0,"user-field-name"],[12],[1,[30,1,["field","name"]]],[13],[1,":\\n                      "],[10,1],[14,0,"user-field-value"],[12],[1,"\\n"],[42,[28,[37,18],[[28,[37,18],[[30,1,["value"]]],null]],null],null,[[[1,"                          "],[10,1],[14,0,"user-field-value-list-item"],[12],[1,[30,2]],[13],[1,"\\n"]],[2]],[[[1,"                          "],[1,[30,1,["value"]]],[1,"\\n"]],[]]],[1,"                      "],[13],[1,"\\n                    "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"\\n                "],[10,1],[12],[1,"\\n                  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-public-fields","div",[28,[37,1],null,[["publicUserFields","model"],[[30,0,["publicUserFields"]],[30,0,["model"]]]]]]],null],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n            "],[10,1],[12],[1,"\\n              "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-primary","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,"section"],[14,0,"controls"],[12],[1,"\\n            "],[10,"ul"],[12],[1,"\\n"],[41,[30,0,["model","can_send_private_message_to_user"]],[[[1,"                "],[10,"li"],[12],[1,"\\n                  "],[8,[39,19],null,[["@class","@action","@icon","@label"],["btn-primary compose-pm",[28,[37,20],["composePrivateMessage",[30,0,["model"]]],null],"envelope","user.private_message"]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMuteOrIgnoreUser"]],[[[1,"                "],[10,"li"],[12],[1,"\\n                  "],[8,[39,21],null,[["@user","@value","@updateNotificationLevel"],[[30,0,["model"]],[30,0,["userNotificationLevel"]],[28,[37,22],[[30,0],"updateNotificationLevel"],null]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayTopLevelAdminButton"]],[[[1,"                "],[10,"li"],[12],[10,3],[15,6,[30,0,["model","adminPath"]]],[14,0,"btn btn-default user-admin"],[12],[1,[28,[35,13],["wrench"],null]],[10,1],[14,0,"d-button-label"],[12],[1,[28,[35,4],["admin.user.show_admin_profile"],null]],[13],[13],[13],[1,"\\n"]],[]],null],[1,"\\n              "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-controls","li",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["canExpandProfile"]],[[[1,"                "],[10,"li"],[12],[1,"\\n                  "],[8,[39,19],null,[["@ariaExpanded","@ariaLabel","@ariaControls","@class","@label","@icon","@action"],[[30,0,["collapsedInfoState","isExpanded"]],[30,0,["collapsedInfoState","ariaLabel"]],"collapsed-info-panel","btn-default",[28,[37,23],["user.",[30,0,["collapsedInfoState","label"]]],null],[30,0,["collapsedInfoState","icon"]],[28,[37,22],[[30,0],[30,0,["collapsedInfoState","action"]]],null]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,0],null,[["@name","@outletArgs"],["user-profile-above-collapsed-info",[28,[37,1],null,[["model","collapsedInfo"],[[30,0,["model"]],[30,0,["collapsedInfo"]]]]]]],null],[1,"\\n"],[41,[51,[30,0,["collapsedInfo"]]],[[[1,"          "],[10,0],[14,0,"secondary"],[14,1,"collapsed-info-panel"],[12],[1,"\\n            "],[10,"dl"],[12],[1,"\\n"],[41,[30,0,["model","created_at"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"created-at"],[12],[1,[28,[35,4],["user.created"],null]],[13],[10,"dd"],[14,0,"created-at"],[12],[1,[28,[35,24],[[30,0,["model","created_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","last_posted_at"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"last-posted-at"],[12],[1,[28,[35,4],["user.last_posted"],null]],[13],[10,"dd"],[14,0,"last-posted-at"],[12],[1,[28,[35,24],[[30,0,["model","last_posted_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","last_seen_at"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"last-seen-at"],[12],[1,[28,[35,4],["user.last_seen"],null]],[13],[10,"dd"],[14,0,"last-seen-at"],[12],[1,[28,[35,24],[[30,0,["model","last_seen_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","profile_view_count"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"profile-view-count"],[12],[1,[28,[35,4],["views"],null]],[13],[10,"dd"],[14,0,"profile-view-count"],[12],[1,[30,0,["model","profile_view_count"]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","invited_by"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"invited-by"],[12],[1,[28,[35,4],["user.invited_by"],null]],[13],[10,"dd"],[14,0,"invited-by"],[12],[8,[39,7],null,[["@route","@model"],["user",[30,0,["model","invited_by"]]]],[["default"],[[[[1,[30,0,["model","invited_by","username"]]]],[]]]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","trust_level"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"trust-level"],[12],[1,[28,[35,4],["user.trust_level"],null]],[13],[10,"dd"],[14,0,"trust-level"],[12],[1,[30,0,["model","trustLevel","name"]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["canCheckEmails"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"email"],[12],[1,[28,[35,4],["user.email.title"],null]],[13],[1,"\\n                  "],[10,"dd"],[14,0,"email"],[15,"title",[30,0,["model","email"]]],[12],[1,"\\n"],[41,[30,0,["model","email"]],[[[1,"                      "],[1,[30,0,["model","email"]]],[1,"\\n"]],[]],[[[1,"                      "],[8,[39,19],null,[["@action","@actionParam","@icon","@label","@class"],[[28,[37,20],["checkEmail"],null],[30,0,["model"]],"envelope","admin.users.check_email.text","btn-primary"]],null],[1,"\\n"]],[]]],[1,"                  "],[13],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","displayGroups"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"groups"],[12],[1,[28,[35,4],["groups.title"],[["count"],[[30,0,["model","displayGroups","length"]]]]]],[13],[1,"\\n                  "],[10,"dd"],[14,0,"groups"],[12],[1,"\\n"],[42,[28,[37,18],[[28,[37,18],[[30,0,["model","displayGroups"]]],null]],null],null,[[[1,"                      "],[10,1],[12],[8,[39,7],[[24,0,"group-link"]],[["@route","@model"],["group",[30,3,["name"]]]],[["default"],[[[[1,[30,3,["name"]]]],[]]]]],[13],[1,"\\n"]],[3]],null],[1,"\\n                    "],[8,[39,7],null,[["@route","@query"],["groups",[28,[37,1],null,[["username"],[[30,0,["model","username"]]]]]]],[["default"],[[[[1,"\\n                      ...\\n                    "]],[]]]]],[1,"\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeleteUser"]],[[[1,"                "],[10,0],[14,0,"pull-right"],[12],[8,[39,19],null,[["@action","@icon","@label","@class"],[[28,[37,22],[[30,0],"adminDelete"],null],"exclamation-triangle","user.admin_delete","btn-danger btn-delete-user"]],null],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n            "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-secondary","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"new-user-wrapper"],[12],[1,"\\n      "],[8,[39,25],null,[["@user","@isStaff","@isMobileView","@showNotificationsTab","@showPrivateMessages","@canInviteToForum","@showBadges","@currentParentRoute","@showRead","@showDrafts","@showBookmarks"],[[30,0,["model"]],[30,0,["currentUser","staff"]],[30,0,["site","mobileView"]],[30,0,["showNotificationsTab"]],[30,0,["showPrivateMessages"]],[30,0,["canInviteToForum"]],[30,0,["showBadges"]],[30,0,["currentParentRoute"]],[30,0,["showRead"]],[30,0,["showDrafts"]],[30,0,["showBookmarks"]]]],null],[1,"\\n\\n      "],[10,0],[14,0,"new-user-content-wrapper"],[12],[1,"\\n        "],[46,[28,[37,27],null,null],null,null,null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"],[13]],["uf","v","group"],false,["plugin-outlet","hash","if","d-section","i18n","unless","html-safe","link-to","on","user-profile-avatar","format-username","user-status","user-status-message","d-icon","array","replace-emoji","html-with-links","each","-track-array","d-button","route-action","user-notifications-dropdown","action","concat","bound-date","user-nav","component","-outlet"]]',moduleName:"discourse/templates/user.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user/activity",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"NfnhLUWH",block:'[[[8,[39,0],null,[["@pageClass"],["user-activity"]],null],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n  "],[8,[39,1],null,[["@ariaLabel"],["User secondary - activity"]],[["default"],[[[[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__activity-all"]],[["@route","@ariaCurrentContext"],["userActivity.index","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["stream"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.filters.all"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__activity-topics"]],[["@route","@ariaCurrentContext"],["userActivity.topics","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["list-ul"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user_action_groups.4"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__activity-replies"]],[["@route","@ariaCurrentContext"],["userActivity.replies","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["reply"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user_action_groups.5"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["user","showRead"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__activity-read"],[16,"title",[28,[37,4],["user.read_help"],null]]],[["@route","@ariaCurrentContext"],["userActivity.read","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["history"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.read"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["user","showDrafts"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__activity-drafts"]],[["@route","@ariaCurrentContext"],["userActivity.drafts","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["pencil-alt"],null]],[1,"\\n        "],[10,1],[12],[1,[30,0,["draftLabel"]]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,6],[[30,0,["model","pending_posts_count"]],0],null],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__activity-pending"]],[["@route","@ariaCurrentContext"],["userActivity.pending","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["clock"],null]],[1,"\\n        "],[10,1],[12],[1,[30,0,["pendingLabel"]]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__activity-likes"]],[["@route","@ariaCurrentContext"],["userActivity.likesGiven","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["heart"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user_action_groups.1"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["user","showBookmarks"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__activity-bookmarks"]],[["@route","@ariaCurrentContext"],["userActivity.bookmarks","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["bookmark"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user_action_groups.3"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-activity-bottom","li",[28,[37,8],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[46,[28,[37,10],null,null],null,null,null],[1,"\\n"],[13]],[],false,["d-section","horizontal-overflow-nav","d-navigation-item","d-icon","i18n","if","gt","plugin-outlet","hash","component","-outlet"]]',moduleName:"discourse/templates/user/activity.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user/badges",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"aOIrPbPh",block:'[[[8,[39,0],[[24,1,"user-content"]],[["@pageClass","@class"],["user-badges","user-content"]],[["default"],[[[[1,"\\n  "],[10,2],[14,0,"favorite-count"],[12],[1,"\\n    "],[1,[28,[35,1],["badges.favorite_count"],[["count","max"],[[30,0,["favoriteBadges","length"]],[30,0,["siteSettings","max_favorite_badges"]]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["sortedBadges"]]],null]],null],null,[[[1,"      "],[8,[39,4],null,[["@badge","@count","@canFavorite","@isFavorite","@username","@canFavoriteMoreBadges","@onFavoriteClick","@filterUser"],[[30,1,["badge"]],[30,1,["count"]],[30,1,["can_favorite"]],[30,1,["is_favorite"]],[30,0,["username"]],[30,0,["canFavoriteMoreBadges"]],[28,[37,5],[[30,0],"favorite",[30,1]],null],"true"]],null],[1,"\\n"]],[1]],null],[1,"    "],[8,[39,6],null,[["@name","@outletArgs"],["after-user-profile-badges",[28,[37,7],null,[["user"],[[30,0,["user","model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["ub"],false,["d-section","i18n","each","-track-array","badge-card","action","plugin-outlet","hash"]]',moduleName:"discourse/templates/user/badges.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user/bookmarks",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"w54p9h7w",block:'[[[8,[39,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["permissionDenied"]],[[[1,"    "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,2],["bookmarks.list_permission_denied"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["userDoesNotHaveBookmarks"]],[[[1,"    "],[8,[39,3],null,[["@title","@body"],[[28,[37,2],["user.no_bookmarks_title"],null],[30,0,["emptyStateBody"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"inline-form full-width bookmark-search-form"],[12],[1,"\\n      "],[8,[39,4],[[16,"placeholder",[28,[37,2],["bookmarks.search_placeholder"],null]],[24,1,"bookmark-search"],[24,"autocomplete","off"]],[["@type","@value","@enter"],["text",[30,0,["searchTerm"]],[28,[37,5],[[30,0],"search"],null]]],null],[1,"\\n      "],[8,[39,6],null,[["@class","@action","@type","@icon"],["btn-primary",[28,[37,5],[[30,0],"search"],null],"button","search"]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["nothingFound"]],[[[1,"      "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,2],["user.no_bookmarks_search"],null]],[13],[1,"\\n"]],[]],[[[1,"      "],[8,[39,7],null,[["@loadMore","@reload","@loadingMore","@content"],[[28,[37,5],[[30,0],"loadMore"],null],[28,[37,5],[[30,0],"reload"],null],[30,0,["loadingMore"]],[30,0,["model","bookmarks"]]]],null],[1,"\\n"]],[]]],[1,"  "]],[]]]],[]]]],[]]]]]],[],false,["conditional-loading-spinner","if","i18n","empty-state","input","action","d-button","bookmark-list"]]',moduleName:"discourse/templates/user/bookmarks.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user/messages",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"64QA9ZfE",block:'[[[8,[39,0],null,[["@pageClass"],["user-messages"]],null],[1,"\\n\\n"],[8,[39,1],null,[["@name","@outletArgs"],["user-messages-above-navigation",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n  "],[10,"ol"],[14,0,"category-breadcrumb"],[12],[1,"\\n    "],[10,"li"],[12],[1,"\\n      "],[8,[39,3],null,[["@content","@value","@onChange"],[[30,0,["messagesDropdownContent"]],[30,0,["messagesDropdownValue"]],[30,0,["onMessagesDropdownChange"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,4],[[24,1,"user-navigation-secondary__horizontal-nav"]],[["@className","@ariaLabel"],["messages-nav","User secondary - messages"]],null],[1,"\\n\\n  "],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[30,0,["currentUser","admin"]],[[[1,"        "],[8,[39,6],null,[["@parentController","@tagName"],["user-topics-list",""]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n    "],[10,1],[14,1,"navigation-controls__button"],[12],[13],[1,"\\n\\n"],[41,[30,0,["showNewPM"]],[[[1,"      "],[8,[39,7],null,[["@class","@action","@icon","@label"],["btn-primary new-private-message",[28,[37,8],["composePrivateMessage"],null],"envelope","user.new_private_message"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[46,[28,[37,10],null,null],null,null,null],[1,"\\n"],[13]],[],false,["d-section","plugin-outlet","hash","user-nav/messages-dropdown","horizontal-overflow-nav","if","bulk-select-toggle","d-button","route-action","component","-outlet"]]',moduleName:"discourse/templates/user/messages.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user/notifications-index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"cJmB2Pne",block:'[[[41,[30,0,["model","error"]],[[[1,"  "],[10,0],[14,0,"item error"],[12],[1,"\\n"],[41,[30,0,["model","forbidden"]],[[[1,"      "],[1,[28,[35,1],["errors.reasons.forbidden"],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,1],["errors.desc.unknown"],null]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],[[[41,[30,0,["doesNotHaveNotifications"]],[[[1,"  "],[8,[39,2],null,[["@title","@body"],[[28,[37,1],["user.no_notifications_page_title"],null],[30,0,["emptyStateBody"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"user-notifications-filter"],[12],[1,"\\n    "],[8,[39,3],null,[["@value","@onChange"],[[30,0,["filter"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["filter"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["nothingFound"]],[[[1,"    "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,1],["notifications.empty"],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,6],null,[["@notifications"],[[30,0,["model"]]]],null],[1,"\\n    "],[8,[39,7],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]]]],[]]]],[]]]],[],false,["if","i18n","empty-state","notifications-filter","action","mut","user-notifications-large","conditional-loading-spinner"]]',moduleName:"discourse/templates/user/notifications-index.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user/notifications",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"vTQI2paV",block:'[[[8,[39,0],null,[["@pageClass"],["user-notifications"]],null],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n  "],[8,[39,1],null,[["@ariaLabel"],["User secondary - notifications"]],[["default"],[[[[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__notifications-all"]],[["@route","@ariaCurrentContext"],["userNotifications.index","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["bell"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.filters.all"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__notifications-responses"]],[["@route","@ariaCurrentContext"],["userNotifications.responses","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["reply"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user_action_groups.6"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__notifications-likes"]],[["@route","@ariaCurrentContext"],["userNotifications.likesReceived","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["heart"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user_action_groups.2"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_mentions"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__notifications-mentions"]],[["@route","@ariaCurrentContext"],["userNotifications.mentions","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["at"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user_action_groups.7"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__notifications-edits"]],[["@route","@ariaCurrentContext"],["userNotifications.edits","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["pencil-alt"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user_action_groups.11"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-notifications-bottom","li",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n  "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model"]],[[[1,"    "],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n      "],[8,[39,8],null,[["@title","@class","@action","@label","@icon","@disabled"],["user.dismiss_notifications_tooltip","btn btn-default dismiss-notifications",[28,[37,9],[[30,0],"resetNew"],null],"user.dismiss_notifications","check",[30,0,["allNotificationsRead"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[8,[39,10],null,[["@class","@selector","@action"],["notification-history user-stream",".user-stream .notification",[28,[37,9],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n    "],[46,[28,[37,12],null,null],null,null,null],[1,"\\n    "],[8,[39,13],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"],[13]],[],false,["d-section","horizontal-overflow-nav","d-navigation-item","d-icon","i18n","if","plugin-outlet","hash","d-button","action","load-more","component","-outlet","conditional-loading-spinner"]]',moduleName:"discourse/templates/user/notifications.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user/posts",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"s45hbRI7",block:'[[[8,[39,0],null,[["@stream"],[[30,0,["model"]]]],null]],[],false,["user-stream"]]',moduleName:"discourse/templates/user/posts.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user/profile-hidden",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"CQw46vVM",block:'[[[10,2],[14,0,"user-profile-hidden"],[12],[1,[28,[35,0],["user.profile_hidden"],null]],[13]],[],false,["i18n"]]',moduleName:"discourse/templates/user/profile-hidden.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user/stream",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"5inH9esI",block:'[[[41,[30,0,["model","stream","noContent"]],[[[1,"  "],[8,[39,1],null,[["@title","@body"],[[30,0,["model","emptyState","title"]],[30,0,["model","emptyState","body"]]]],null],[1,"\\n"]],[]],null],[8,[39,2],null,[["@stream"],[[30,0,["model","stream"]]]],null]],[],false,["if","empty-state","user-stream"]]',moduleName:"discourse/templates/user/stream.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/user/summary",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"g/hL7cix",block:'[[[8,[39,0],null,[["@pageClass","@tagName"],["user-summary",""]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n    "],[8,[39,1],null,[["@name","@outletArgs"],["above-user-summary-stats",[28,[37,2],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n"],[41,[30,0,["model","can_see_summary_stats"]],[[[1,"      "],[10,0],[14,0,"top-section stats-section"],[12],[1,"\\n        "],[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[35,4],["user.summary.stats"],null]],[13],[1,"\\n        "],[10,"ul"],[12],[1,"\\n          "],[10,"li"],[14,0,"stats-days-visited"],[12],[1,"\\n            "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","days_visited"]],"user.summary.days_visited"]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,"li"],[14,0,"stats-time-read"],[12],[1,"\\n            "],[8,[39,5],null,[["@value","@label","@rawTitle","@type"],[[30,0,["timeRead"]],"user.summary.time_read",[28,[37,4],["user.summary.time_read_title"],[["duration"],[[30,0,["timeReadMedium"]]]]],"string"]],null],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["showRecentTimeRead"]],[[[1,"            "],[10,"li"],[14,0,"stats-recent-read"],[12],[1,"\\n              "],[8,[39,5],null,[["@value","@label","@rawTitle","@type"],[[30,0,["recentTimeRead"]],"user.summary.recent_time_read",[28,[37,4],["user.summary.recent_time_read_title"],[["duration"],[[30,0,["recentTimeReadMedium"]]]]],"string"]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[10,"li"],[14,0,"stats-topics-entered"],[12],[1,"\\n            "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","topics_entered"]],"user.summary.topics_entered"]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,"li"],[14,0,"stats-posts-read"],[12],[1,"\\n            "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","posts_read_count"]],"user.summary.posts_read"]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,"li"],[14,0,"stats-likes-given linked-stat"],[12],[1,"\\n            "],[8,[39,6],null,[["@route"],["userActivity.likesGiven"]],[["default"],[[[[1,"\\n              "],[8,[39,5],null,[["@value","@icon","@label"],[[30,0,["model","likes_given"]],"heart","user.summary.likes_given"]],null],[1,"\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,"li"],[14,0,"stats-likes-received"],[12],[1,"\\n            "],[8,[39,5],null,[["@value","@icon","@label"],[[30,0,["model","likes_received"]],"heart","user.summary.likes_received"]],null],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["model","bookmark_count"]],[[[1,"            "],[10,"li"],[14,0,"stats-bookmark-count linked-stat"],[12],[1,"\\n              "],[8,[39,6],null,[["@route"],["userActivity.bookmarks"]],[["default"],[[[[1,"\\n                "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","bookmark_count"]],"user.summary.bookmark_count"]],null],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[10,"li"],[14,0,"stats-topic-count linked-stat"],[12],[1,"\\n            "],[8,[39,6],null,[["@route"],["userActivity.topics"]],[["default"],[[[[1,"\\n              "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","topic_count"]],"user.summary.topic_count"]],null],[1,"\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,"li"],[14,0,"stats-post-count linked-stat"],[12],[1,"\\n            "],[8,[39,6],null,[["@route"],["userActivity.replies"]],[["default"],[[[[1,"\\n              "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","post_count"]],"user.summary.post_count"]],null],[1,"\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n          "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-summary-stat","li",[28,[37,2],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,1],null,[["@name","@outletArgs"],["below-user-summary-stats",[28,[37,2],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"top-section"],[12],[1,"\\n      "],[8,[39,7],null,[["@title","@class"],["top_replies","replies-section pull-left"]],[["default"],[[[[1,"\\n        "],[8,[39,8],null,[["@type","@items","@user"],["replies",[30,0,["model","replies"]],[30,0,["user"]]]],[["default"],[[[[1,"\\n          "],[8,[39,9],null,[["@createdAt","@topic","@likes","@url"],[[30,1,["createdAt"]],[30,1,["topic"]],[30,1,["like_count"]],[30,1,["url"]]]],null],[1,"\\n        "]],[1]]]]],[1,"\\n      "]],[]]]]],[1,"\\n\\n      "],[8,[39,7],null,[["@title","@class"],["top_topics","topics-section pull-right"]],[["default"],[[[[1,"\\n        "],[8,[39,8],null,[["@type","@items","@user"],["topics",[30,0,["model","topics"]],[30,0,["user"]]]],[["default"],[[[[1,"\\n          "],[8,[39,9],null,[["@createdAt","@topic","@likes","@url"],[[30,2,["created_at"]],[30,2],[30,2,["like_count"]],[30,2,["url"]]]],null],[1,"\\n        "]],[2]]]]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"top-section"],[12],[1,"\\n      "],[8,[39,7],null,[["@title","@class"],["top_links","links-section pull-left"]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","links","length"]],[[[1,"          "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["model","links"]]],null]],null],null,[[[1,"              "],[10,"li"],[12],[1,"\\n"],[1,"                "],[10,3],[14,0,"domain"],[15,6,[30,3,["url"]]],[15,"title",[30,3,["title"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["user","removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,"\\n                  "],[1,[28,[35,13],[[30,3,["url"]]],null]],[1,"\\n                "],[13],[1,"\\n"],[1,"\\n                "],[10,1],[14,0,"badge badge-notification clicks"],[15,"title",[28,[37,4],["topic_map.clicks"],[["count"],[[30,3,["clicks"]]]]]],[12],[1,"\\n                  "],[1,[28,[35,14],[[30,3,["clicks"]]],null]],[1,"\\n                "],[13],[1,"\\n\\n                "],[10,"br"],[12],[13],[1,"\\n\\n                "],[10,3],[15,6,[30,3,["post_url"]]],[12],[1,"\\n                  "],[1,[28,[35,15],[[30,3,["topic","fancyTitle"]]],null]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[3]],null],[1,"          "],[13],[1,"\\n"]],[]],[[[1,"          "],[10,2],[12],[1,[28,[35,4],["user.summary.no_links"],null]],[13],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n\\n      "],[8,[39,7],null,[["@title","@class"],["most_replied_to_users","summary-user-list replied-section pull-right"]],[["default"],[[[[1,"\\n        "],[8,[39,16],null,[["@none","@users"],["no_replies",[30,0,["model","most_replied_to_users"]]]],[["default"],[[[[1,"\\n          "],[8,[39,17],null,[["@user","@icon","@countClass"],[[30,4],"reply","replies"]],null],[1,"\\n        "]],[4]]]]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"top-section most-liked-section"],[12],[1,"\\n      "],[8,[39,7],null,[["@title","@class"],["most_liked_by","summary-user-list liked-by-section pull-left"]],[["default"],[[[[1,"\\n        "],[8,[39,16],null,[["@none","@users"],["no_likes",[30,0,["model","most_liked_by_users"]]]],[["default"],[[[[1,"\\n          "],[8,[39,17],null,[["@user","@icon","@countClass"],[[30,5],"heart","likes"]],null],[1,"\\n        "]],[5]]]]],[1,"\\n      "]],[]]]]],[1,"\\n\\n      "],[8,[39,7],null,[["@title","@class"],["most_liked_users","summary-user-list liked-section pull-right"]],[["default"],[[[[1,"\\n        "],[8,[39,16],null,[["@none","@users"],["no_likes",[30,0,["model","most_liked_users"]]]],[["default"],[[[[1,"\\n          "],[8,[39,17],null,[["@user","@icon","@countClass"],[[30,6],"heart","likes"]],null],[1,"\\n        "]],[6]]]]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["model","top_categories","length"]],[[[1,"      "],[10,0],[14,0,"top-section top-categories-section"],[12],[1,"\\n        "],[8,[39,7],null,[["@title","@class"],["top_categories","summary-category-list pull-left"]],[["default"],[[[[1,"\\n          "],[10,"table"],[12],[1,"\\n            "],[10,"thead"],[12],[1,"\\n              "],[10,"th"],[14,0,"category-link"],[12],[13],[1,"\\n              "],[10,"th"],[14,0,"topic-count"],[12],[1,[28,[35,4],["user.summary.topics"],null]],[13],[1,"\\n              "],[10,"th"],[14,0,"reply-count"],[12],[1,[28,[35,4],["user.summary.replies"],null]],[13],[1,"\\n            "],[13],[1,"\\n            "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["model","top_categories"]]],null]],null],null,[[[1,"                "],[10,"tr"],[12],[1,"\\n                  "],[10,"td"],[14,0,"category-link"],[12],[1,"\\n                    "],[1,[28,[35,18],[[30,7]],[["allowUncategorized","hideParent"],["true",false]]]],[1,"\\n                  "],[13],[1,"\\n                  "],[10,"td"],[14,0,"topic-count"],[12],[1,"\\n                    "],[8,[39,19],null,[["@user","@category","@count"],[[30,0,["user"]],[30,7],[30,7,["topic_count"]]]],null],[1,"\\n                  "],[13],[1,"\\n                  "],[10,"td"],[14,0,"reply-count"],[12],[1,"\\n                    "],[8,[39,19],null,[["@user","@category","@count"],[[30,0,["user"]],[30,7],[30,7,["post_count"]]]],null],[1,"\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n"]],[7]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","enable_badges"]],[[[1,"      "],[10,0],[14,0,"top-section badges-section"],[12],[1,"\\n        "],[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[35,4],["user.summary.top_badges"],null]],[13],[1,"\\n\\n"],[41,[30,0,["model","badges"]],[[[1,"          "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["model","badges"]]],null]],null],null,[[[1,"              "],[8,[39,20],null,[["@badge","@count","@username"],[[30,8],[30,8,["count"]],[30,0,["user","username_lower"]]]],null],[1,"\\n"]],[8]],null],[1,"            "],[8,[39,1],null,[["@name","@outletArgs"],["after-user-summary-badges",[28,[37,2],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[10,2],[12],[1,[28,[35,4],["user.summary.no_badges"],null]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["moreBadges"]],[[[1,"          "],[8,[39,6],[[24,0,"more"]],[["@route","@model"],["user.badges",[30,0,["user"]]]],[["default"],[[[[1,"\\n            "],[1,[28,[35,4],["user.summary.more_badges"],null]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]]]]]],["reply","topic","link","user","user","user","category","badge"],false,["d-section","plugin-outlet","hash","if","i18n","user-stat","link-to","user-summary-section","user-summary-topics-list","user-summary-topic","each","-track-array","unless","shorten-url","number","html-safe","user-summary-users-list","user-summary-user","category-link","user-summary-category-search","badge-card"]]',moduleName:"discourse/templates/user/summary.hbs",isStrictMode:!1})
e.default=i})),define("discourse/templates/users",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createTemplateFactory)({id:"8aFjtA+j",block:'[[[8,[39,0],null,[["@pageClass"],["users"]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,2],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"container"],[12],[1,"\\n      "],[10,0],[14,0,"users-directory directory"],[12],[1,"\\n        "],[10,1],[12],[1,"\\n          "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["users-top","div",[28,[37,4],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"directory-controls"],[12],[1,"\\n          "],[10,0],[14,0,"period-controls"],[12],[1,"\\n            "],[8,[39,5],null,[["@period","@onChange","@fullDay"],[[30,0,["period"]],[28,[37,2],[[30,0],[28,[37,6],[[30,0,["period"]]],null]],null],false]],null],[1,"\\n"],[41,[30,0,["lastUpdatedAt"]],[[[1,"              "],[10,0],[14,0,"directory-last-updated"],[12],[1,"\\n                "],[1,[28,[35,8],["directory.last_updated"],null]],[1,"\\n                "],[1,[30,0,["lastUpdatedAt"]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n          "],[10,0],[14,0,"inline-form"],[12],[1,"\\n            "],[10,"label"],[14,0,"total-rows"],[12],[1,"\\n"],[41,[30,0,["model","totalRows"]],[[[1,"                "],[1,[28,[35,8],["directory.total_rows"],[["count"],[[30,0,["model","totalRows"]]]]]],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n            "],[8,[39,9],[[16,"placeholder",[28,[37,8],["directory.filter_name"],null]],[24,0,"filter-name no-blur"],[4,[38,11],["input",[28,[37,2],[[30,0],"onUsernameFilterChanged"],[["value"],["target.value"]]]],null]],[["@value"],[[28,[37,10],[[30,0,["nameInput"]]],null]]],null],[1,"\\n"],[41,[30,0,["showGroupFilter"]],[[[1,"              "],[8,[39,12],null,[["@class","@value","@content","@onChange","@options"],["directory-group-selector",[30,0,["group"]],[30,0,["groupOptions"]],[28,[37,2],[[30,0],[30,0,["groupChanged"]]],null],[28,[37,4],null,[["none"],["directory.group.all"]]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["currentUser","staff"]],[[[1,"              "],[8,[39,13],null,[["@icon","@action","@class"],["wrench",[28,[37,2],[[30,0],"showEditColumnsModal"],null],"btn-default open-edit-columns-btn"]],null],[1,"\\n"]],[]],null],[1,"            "],[8,[39,3],null,[["@name","@outletArgs"],["users-directory-controls",[28,[37,4],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[8,[39,14],null,[["@condition"],[[30,0,["isLoading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","length"]],[[[1,"            "],[8,[39,15],null,[["@items","@columns","@showTimeRead","@order","@asc"],[[30,0,["model"]],[30,0,["columns"]],[30,0,["showTimeRead"]],[30,0,["order"]],[30,0,["asc"]]]],null],[1,"\\n            "],[8,[39,14],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1,"            "],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n            "],[10,2],[12],[1,[28,[35,8],["directory.no_results"],null]],[13],[1,"\\n"]],[]]],[1,"        "]],[]]]]],[1,"\\n\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]]],[],false,["d-section","load-more","action","plugin-outlet","hash","period-chooser","mut","if","i18n","input","readonly","on","combo-box","d-button","conditional-loading-spinner","directory-table"]]',moduleName:"discourse/templates/users.hbs",isStrictMode:!1})
e.default=i})),define("discourse/widgets/actions-summary",["exports","I18n","discourse/widgets/post","discourse/widgets/widget","discourse-common/lib/get-url","virtual-dom","discourse/lib/url"],(function(e,t,i,n,r,o,s){function l(e){return{template:e.avatar_template,username:e.username,post_url:e.post_url,url:(0,s.userPath)(e.username_lower),unknown:e.unknown}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.smallUserAtts=l,(0,n.createWidget)("small-user-list",{tagName:"div.clearfix.small-user-list",buildClasses:e=>e.listClassName,buildAttributes(e){const t={role:"list"}
return e.ariaLabel&&(t["aria-label"]=e.ariaLabel),t},html(e){let n=e.users
if(n){const s=this.currentUser
e.addSelf&&!n.some((e=>e.username===s.username))&&(n=n.concat(l(s)))
let a,u=null
e.description&&(u=(0,o.h)("span.list-description",{attributes:{"aria-hidden":!0}},t.default.t(e.description,{count:e.count})))
const c=n.map((e=>(a=a||e.post_url,e.unknown?(0,o.h)("div.unknown",{attributes:{title:t.default.t("post.unknown_user"),role:"listitem"}}):i.avatarFor.call(this,"small",e,{role:"listitem","aria-hidden":!1}))))
a&&(u=(0,o.h)("a",{attributes:{href:(0,r.default)(a)}},u))
let d=[c]
return u&&d.push(u),d}}}),(0,n.createWidget)("action-link",{tagName:"span.action-link",template:function(e,t){var i=[],n=[]
return n.push(e.text),n.push(". "),i.push(virtualDom.h("a",n)),i},buildClasses:e=>e.className,click(){this.sendWidgetAction(this.attrs.action)}})
var a=(0,n.createWidget)("actions-summary",{tagName:"section.post-actions",template:function(e,t){var i=__widget_helpers.iconNode,n=__widget_helpers.avatar,r=__widget_helpers.dateNode,o=[]
if(o.push("\n"),e.actionsSummary&&e.actionsSummary.length&&e.actionsSummary.forEach((e=>{o.push("      ")
var t=[]
t.push(e.description),o.push(virtualDom.h("div",{className:"post-action",attributes:{}},t)),o.push("\n      ")
o.push(virtualDom.h("div",{className:"clearfix",attributes:{}},[])),o.push("\n")})),e.deleted_at){o.push("      ")
var s=[]
s.push("\n        "),s.push(i("far-trash-alt")),s.push("\n        "),s.push(n("small",{template:e.deletedByAvatarTemplate,username:e.deletedByUsername})),s.push("\n        "),s.push(r(e.deleted_at)),s.push("\n      "),o.push(virtualDom.h("div",{className:"post-action deleted-post",attributes:{}},s)),o.push("\n")}return o.push("  "),o}})
e.default=a})),define("discourse/widgets/avatar-flair",["discourse-common/lib/icon-library","discourse/widgets/widget","discourse/lib/utilities"],(function(e,t,i){(0,t.createWidget)("avatar-flair",{tagName:"div.avatar-flair",isIcon:e=>e.flair_url&&!e.flair_url.includes("/"),title:e=>e.flair_name,buildClasses(e){let t=`avatar-flair-${e.flair_name} ${e.flair_bg_color?"rounded":""}`
return this.isIcon(e)||(t+=" avatar-flair-image"),t},buildAttributes(e){let t=""
return this.isIcon(e)||(t+="background-image: url("+(0,i.escapeExpression)(e.flair_url)+"); "),e.flair_bg_color&&(t+="background-color: #"+(0,i.escapeExpression)(e.flair_bg_color)+"; "),e.flair_color&&(t+="color: #"+(0,i.escapeExpression)(e.flair_color)+"; "),{style:t}},html(t){if(this.isIcon(t)){const i=(0,e.convertIconClass)(t.flair_url)
return[(0,e.iconNode)(i)]}return[]}})})),define("discourse/widgets/before-header-panel-outlet",["@ember/template-factory","discourse/widgets/render-glimmer"],(function(e,t){(0,t.registerWidgetShim)("before-header-panel-outlet","div.before-header-panel-outlet",(0,e.createTemplateFactory)({id:"tLCB16gs",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["before-header-panel",[28,[37,1],null,[["attrs"],[[30,1]]]]]],null],[1," "]],["@data"],false,["plugin-outlet","hash"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/discourse/widgets/before-header-panel-outlet.js",isStrictMode:!1}))})),define("discourse/widgets/bookmark-reminder-notification-item",["discourse/widgets/default-notification-item","I18n","discourse/widgets/widget","discourse/lib/utilities"],(function(e,t,i,n){(0,i.createWidgetFrom)(e.DefaultNotificationItem,"bookmark-reminder-notification-item",{text(e,i){const r=(0,n.formatUsername)(i.display_username),o=this.description(i)
return t.default.t("notifications.bookmark_reminder",{description:o,username:r})},notificationTitle:(e,i)=>e?i.bookmark_name?t.default.t(`notifications.titles.${e}_with_name`,{name:i.bookmark_name}):t.default.t(`notifications.titles.${e}`):""})})),define("discourse/widgets/button",["exports","discourse/lib/url","I18n","discourse/widgets/widget","virtual-dom","discourse-common/lib/icon-library"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ButtonClass=void 0
const s={tagName:"button.widget-button.btn",buildClasses(e){let t=this.attrs.className||"",i=e.translatedLabel||e.label||e.contents
return i||(t+=" no-text"),e.icon?(t+=" btn-icon",i&&(t+="-text")):i&&(t+=" btn-text"),t},buildAttributes(){const e=this.attrs,t={}
let n=e.translatedTitle
if(!n&&e.title&&(n=i.default.t(e.title,e.titleOptions)),n&&(t.title=n),e.role&&(t.role=e.role),e.translatedAriaLabel&&(t["aria-label"]=e.translatedAriaLabel),e.ariaExpanded&&(t["aria-expanded"]=e.ariaExpanded),e.ariaControls&&(t["aria-controls"]=e.ariaControls),e.ariaPressed&&(t["aria-pressed"]=e.ariaPressed),e.tabAttrs){const i=e.tabAttrs
t["aria-selected"]=i["aria-selected"],t.tabindex=i.tabindex,t["aria-controls"]=i["aria-controls"],t.id=e.id}return e.disabled&&(t.disabled="true"),e.data&&Object.keys(e.data).forEach((i=>t[`data-${i}`]=e.data[i])),t},_buildIcon(e){const t=(0,o.iconNode)(e.icon,{class:e.iconClass})
return e["aria-label"]&&(t.properties.attributes.role="img",t.properties.attributes["aria-hidden"]=!1),t},html(e){const t=[],n=!e.iconRight
return e.icon&&n&&t.push(this._buildIcon(e)),e.emoji&&n&&t.push(this.attach("emoji",{name:e.emoji})),e.label&&t.push((0,r.h)("span.d-button-label",i.default.t(e.label,e.labelOptions))),e.translatedLabel&&t.push((0,r.h)("span.d-button-label",e.translatedLabel.toString(),e.translatedLabelOptions)),e.contents&&t.push(e.contents),e.emoji&&!n&&t.push(this.attach("emoji",{name:e.emoji})),e.icon&&!n&&t.push(this._buildIcon(e)),t},click(e){const i=this.attrs
if(!i.disabled)return $("button.widget-button").removeClass("d-hover").blur(),i.secondaryAction&&this.sendWidgetAction(i.secondaryAction),i.url?t.default.routeTo(i.url):i.sendActionEvent?this.sendWidgetAction(i.action,e):this.sendWidgetAction(i.action,i.actionParam)}}
e.ButtonClass=s
var l=(0,n.createWidget)("button",s)
e.default=l,(0,n.createWidget)("flat-button",Object.assign(s,{tagName:"button.widget-button.btn-flat"}))})),define("discourse/widgets/category-link",["exports","discourse/widgets/raw-html","discourse/helpers/category-link"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(e){e.html=`<span>${(0,i.categoryBadgeHTML)(e.category,e)}</span>`,super(e)}}e.default=n})),define("discourse/widgets/component-connector",["exports","@ember/application","@ember/runloop"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n{constructor(e,t,i,n){let{applyStyle:r=!0}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}
this.widget=e,this.opts=i,this.componentName=t,this.trackedProperties=n||[],this.applyStyle=r,this._component=null}init(){const e=document.createElement("div")
return this.applyStyle&&(e.style.display="inline-flex"),e.className="widget-component-connector",this.elem=e,(0,i.scheduleOnce)("afterRender",this,this.connectComponent),this.elem}destroy(){this._component?.destroy()}update(e){let t=!1
return this.trackedProperties.forEach((i=>{e.opts[i]!==this.opts[i]&&(t=!0)})),t?this.init():null}connectComponent(){const{elem:e,opts:i,widget:n,componentName:r}=this,o=n._findView(),s=(0,t.getOwner)(o).factoryFor(`component:${r}`).create(i)
s.selectKit&&s.didReceiveAttrs(),o._connected.push(s),s.renderer.appendTo(s,e),this._component=s}}e.default=n,n.prototype.type="Widget"})),define("discourse/widgets/connector",["exports","@ember/application","@ember/runloop"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n{constructor(e,t){this.widget=e,this.opts=t}init(){const e=document.createElement("div")
e.classList.add("widget-connector")
const{opts:n,widget:r}=this
return(0,i.next)((()=>{const i=r._findView()
if(n.component){const o=(0,t.getOwner)(i).factoryFor("component:connector-container").create({layoutName:`components/${n.component}`,model:r.findAncestorModel()})
i._connected.push(o),o.renderer.appendTo(o,e)}})),e}update(){}}e.default=n,n.prototype.type="Widget"})),define("discourse/widgets/custom-notification-item",["discourse/widgets/default-notification-item","I18n","discourse/widgets/widget","discourse/lib/utilities","discourse-common/lib/icon-library"],(function(e,t,i,n,r){(0,i.createWidgetFrom)(e.DefaultNotificationItem,"custom-notification-item",{notificationTitle:(e,i)=>i.title?t.default.t(i.title):"",text(e,i){const r=(0,n.formatUsername)(i.display_username),o=this.description(i)
return t.default.t(i.message,{description:o,username:r})},icon:(e,t)=>(0,r.iconNode)(`notification.${t.message}`)})})),define("discourse/widgets/decorator-helper",["exports","discourse/widgets/connector","discourse/widgets/post-cooked","discourse/widgets/raw-html","virtual-dom","discourse/widgets/render-glimmer"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class s{constructor(e,t,i){this.widget=e,this.attrs=t,this.canConnectComponent=!0,this.state=i,this.register=e.register,this.register.deprecateContainer(this)}attach(e,t,i){return t=t||this.widget.attrs,i=i||this.widget.state,this.widget.attach(e,t,i)}getModel(){return this.widget.findAncestorModel()}rawHtml(e){return new n.default({html:e})}cooked(e){return new i.default({cooked:e},this)}connect(e){return new t.default(this.widget,e)}renderGlimmer(e,t,i){if(!this.widget.postContentsDestroyCallbacks)throw"renderGlimmer can only be used in the context of a post"
const n=new o.default(this.widget,e,t,i)
return n.init(),this.widget.postContentsDestroyCallbacks.push(n.destroy.bind(n)),n.element}}s.prototype.h=r.h
var l=s
e.default=l}))
define("discourse/widgets/default-notification-item",["exports","discourse/lib/url","discourse/lib/ajax","discourse/lib/utilities","I18n","discourse/widgets/raw-html","discourse/widgets/widget","discourse/lib/text","discourse-common/lib/get-url","virtual-dom","discourse-common/lib/icon-library","@ember/utils","discourse/lib/intercept-click","discourse/lib/cookie"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m){Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultNotificationItem=void 0
const h=(0,s.createWidget)("default-notification-item",{tagName:"li",buildClasses(e){const t=[]
e.get("read")&&t.push("read"),e.is_warning&&t.push("is-warning")
const i=this.lookupNotificationName(e.notification_type)
return i&&t.push(i.replace(/_/g,"-")),t},url(e){const i=this.attrs,r=e.badge_id
if(r){let t=e.badge_slug
if(!t){t=e.badge_name.replace(/[^A-Za-z0-9_]+/g,"-").toLowerCase()}let i=e.username
return i=i?"?username="+i.toLowerCase():"",(0,a.default)("/badges/"+r+"/"+t+i)}const o=i.topic_id
return o?(0,n.postUrl)(i.slug,o,i.post_number):e.group_id?(0,t.userPath)(e.username+"/messages/group/"+e.group_name):e.bookmarkable_url?(0,a.default)(e.bookmarkable_url):void 0},description(e){const t=e.badge_name
if(t)return(0,n.escapeExpression)(t)
const i=e.group_name
if(i&&this.attrs.fancy_title)return this.attrs.topic_id?`<span class="mention-group notify">@${i}</span><span data-topic-id="${this.attrs.topic_id}"> ${this.attrs.fancy_title}</span>`:`<span class="mention-group notify">@${i}</span> ${this.attrs.fancy_title}`
if(this.attrs.fancy_title)return this.attrs.topic_id?`<span data-topic-id="${this.attrs.topic_id}">${this.attrs.fancy_title}</span>`:this.attrs.fancy_title
const r=e.topic_title||e.title
return(0,d.isEmpty)(r)?"":(0,n.escapeExpression)(r)},text(e,t){const i=(0,n.formatUsername)(t.display_username),o=this.description(t,e)
return r.default.t(`notifications.${e}`,{description:o,username:i})},icon:e=>(0,c.iconNode)(`notification.${e}`),_addA11yAttrsTo:(e,t)=>(e.properties.attributes["aria-label"]=r.default.t(`notifications.titles.${t}`),e.properties.attributes["aria-hidden"]=!1,e.properties.attributes.role="img",e),notificationTitle:e=>e?r.default.t(`notifications.titles.${e}`):"",lookupNotificationName(e){return this.site.get("notificationLookup")[e]},html(e){const t=this.lookupNotificationName(e.notification_type)
let{data:i}=e,n=(0,l.emojiUnescape)(this.text(t,i)),r=this.icon(t,i)
this._addA11yAttrsTo(r,t)
const s=this.notificationTitle(t,i)
let a=[r,new o.default({html:`<div>${n}</div>`})]
const c=this.url(i)
return c?(0,u.h)("a",{attributes:{href:c,title:s,"data-auto-route":!0}},a):a},click(e){this.attrs.set("read",!0)
const n=this.attrs.id;(0,i.setTransientHeader)("Discourse-Clear-Notifications",n),(0,m.default)("cn",n,{path:(0,a.default)("/")}),(0,p.wantsNewWindow)(e)||(e.preventDefault(),this.sendWidgetEvent("linkClicked"),this.attrs.data.revision_number&&this.appEvents.trigger("edit-notification:clicked",{topicId:this.attrs.topic_id,postNumber:this.attrs.post_number,revisionNumber:this.attrs.data.revision_number}),t.default.routeTo(this.url(this.attrs.data)))},mouseUp(e){2!==e.which||this.attrs.read||(this.attrs.set("read",!0),(0,i.ajax)("/notifications/mark-read",{method:"PUT",data:{id:this.attrs.id}}),this.scheduleRerender())}})
e.DefaultNotificationItem=h})),define("discourse/widgets/discourse-tags",["exports","discourse/widgets/raw-html","discourse/lib/render-tags"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(e){e.html=(0,i.default)(e.topic,e),super(e)}}e.default=n})),define("discourse/widgets/do-not-disturb",["exports","I18n","discourse/widgets/widget","discourse/helpers/node","virtual-dom","discourse-common/lib/icon-library","discourse/lib/do-not-disturb","discourse/components/modal/do-not-disturb"],(function(e,t,i,n,r,o,s,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=(0,i.createWidget)("do-not-disturb",{tagName:"li.do-not-disturb",services:["modal"],saving:!1,html(){const e=this.currentUser.isInDoNotDisturb()
return[this._menuButton(e)]},click(){if(!this.saving)return this.saving=!0,this.currentUser.do_not_disturb_until?this.currentUser.leaveDoNotDisturb().then((()=>{this.saving=!1})):(this.saving=!1,this.modal.show(l.default))},_menuButton(e){const t=(0,o.iconNode)(e?"toggle-on":"toggle-off")
return(0,r.h)("button.btn-flat.do-not-disturb-inner-container",[t,this._label()])},_label(){const e=[(0,r.h)("span",t.default.t("pause_notifications.label"))],i=this.currentUser.do_not_disturb_until
return s.default.isEternal(i)||e.push((0,n.dateNode)(i)),(0,r.h)("span.do-not-disturb-label",e)}})
e.default=a})),define("discourse/widgets/embedded-post",["exports","discourse/widgets/decorator-helper","discourse/widgets/post-cooked","discourse/widgets/widget","virtual-dom"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,n.createWidget)("post-link-arrow",{tagName:"div.post-link-arrow",template:function(e,t){var i=__widget_helpers.iconNode,n=[]
n.push("\n      ")
var r=[]
return r.push("\n"),e.above?(r.push("        "),r.push(i("arrow-up")),r.push("\n")):(r.push("        "),r.push(i("arrow-down")),r.push("\n")),r.push("      "),n.push(virtualDom.h("a",{className:"post-info arrow",attributes:{href:e.shareUrl,title:I18n.t("topic.jump_reply"),"aria-label":I18n.t("topic.jump_reply_aria",{username:e.name})}},r)),n.push("\n  "),n}})
var o=(0,n.createWidget)("embedded-post",{tagName:"div.reply",buildKey:e=>`embedded-post-${e.id}`,buildAttributes(e){const t={"data-post-id":e.id}
return this.state.role&&(t.role=this.state.role),this.state["aria-label"]&&(t["aria-label"]=this.state["aria-label"]),t},html(e,n){return e.embeddedPost=!0,[(0,r.h)("div.row",[this.attach("post-avatar",e),(0,r.h)("div.topic-body",[(0,r.h)("div.topic-meta-data.embedded-reply",[this.attach("poster-name",e),this.attach("post-link-arrow",{name:e.username,above:n.above,shareUrl:e.customShare})]),new i.default(e,new t.default(this),this.currentUser)])])]},init(){this.postContentsDestroyCallbacks=[]},destroy(){this.postContentsDestroyCallbacks.forEach((e=>e()))}})
e.default=o})),define("discourse/widgets/emoji",["exports","discourse/lib/text","discourse/widgets/raw-html","discourse/widgets/widget","discourse/lib/utilities"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.replaceEmoji=function(e){const n=(0,t.emojiUnescape)((0,r.escapeExpression)(e))
return[new i.default({html:`<span>${n}</span>`})]}
var o=(0,n.createWidget)("emoji",{tagName:"img.emoji",buildAttributes(e){let i={src:(0,t.emojiUrlFor)(e.name),alt:`:${e.alt||e.name}:`}
return e.title&&(i.title="string"==typeof e.title?e.title:e.name),i}})
e.default=o})),define("discourse/widgets/footer-nav",["discourse/lib/utilities","discourse/widgets/widget"],(function(e,t){(0,t.createWidget)("footer-nav",{tagName:"div.footer-nav-widget",html(e){const t=[]
return t.push(this.attach("flat-button",{action:"goBack",icon:"chevron-left",className:"btn-large",disabled:!e.canGoBack,title:"footer_nav.back"})),t.push(this.attach("flat-button",{action:"goForward",icon:"chevron-right",className:"btn-large",disabled:!e.canGoForward,title:"footer_nav.forward"})),this.capabilities.isAppWebview&&(t.push(this.attach("flat-button",{action:"share",icon:"link",className:"btn-large",title:"footer_nav.share"})),t.push(this.attach("flat-button",{action:"dismiss",icon:"chevron-down",className:"btn-large",title:"footer_nav.dismiss"}))),t},dismiss(){(0,e.postRNWebviewMessage)("dismiss",!0)},share(){(0,e.postRNWebviewMessage)("shareUrl",window.location.href)}})})),define("discourse/widgets/glue",["exports","@ember/runloop","virtual-dom","discourse/widgets/widget","discourse/lib/dirty-keys","discourse-common/config/environment"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(e,t,i){this._tree=null,this._rootNode=null,this.register=t,this.attrs=i,this._timeout=null,this.dirtyKeys=new r.default(e),this._widgetClass=(0,n.queryRegistry)(e)||this.register.lookupFactory(`widget:${e}`),this._widgetClass||console.error(`Error: Could not find widget: ${e}`)}appendTo(e){this._rootNode=e,this.queueRerender()}queueRerender(){this._timeout=(0,t.scheduleOnce)("render",this,this.rerenderWidget)}rerenderWidget(){if((0,t.cancel)(this._timeout),(0,o.isTesting)())try{this.register.lookup("service:store")}catch(s){return}const e=new this._widgetClass(this.attrs,this.register,{dirtyKeys:this.dirtyKeys}),r=(0,i.diff)(this._tree||this._rootNode,e);(0,n.traverseCustomWidgets)(this._tree,(e=>e.willRerenderWidget())),e._rerenderable=this,this._rootNode=(0,i.patch)(this._rootNode,r),this._tree=e,(0,n.traverseCustomWidgets)(e,(e=>e.didRenderWidget()))}cleanUp(){(0,n.traverseCustomWidgets)(this._tree,(e=>e.destroy())),(0,t.cancel)(this._timeout),this._rootNode=(0,i.patch)(this._rootNode,(0,i.diff)(this._tree,null)),this._tree=null}}})),define("discourse/widgets/group-message-summary-notification-item",["discourse/widgets/default-notification-item","I18n","discourse/widgets/widget"],(function(e,t,i){(0,i.createWidgetFrom)(e.DefaultNotificationItem,"group-message-summary-notification-item",{text(e,i){const n=i.inbox_count,r=i.group_name
return t.default.t("notifications.group_message_summary",{count:n,group_name:r})}})})),define("discourse/widgets/hamburger-categories",["exports","discourse/models/category","I18n","discourse/widgets/widget","discourse-common/lib/get-url","virtual-dom","discourse/lib/formatter"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,n.createWidget)("hamburger-category",{tagName:"li.category-link",html(e){e.parent_category_id&&(this.tagName+=".subcategory"),this.tagName+=".category-"+t.default.slugFor(e,"-")
const i=[this.attach("category-link",{category:e,allowUncategorized:!0})],n=e.unreadTopicsCount+e.newTopicsCount
if(n&&i.push((0,o.h)("a.badge.badge-notification",{attributes:{href:e.get("url")}},(0,s.number)(n))),!this.currentUser){let t
t=e.get("show_subcategory_list")?e.get("totalTopicCount"):e.get("topic_count"),i.push((0,o.h)("b.topics-count",(0,s.number)(t)))}return i}})
var l=(0,n.createWidget)("hamburger-categories",{tagName:"ul.category-links.clearfix",html(e){const t=(0,r.default)("/categories")
let n=i.default.t("filters.categories.title")
e.moreCount>0&&(n=i.default.t("categories.n_more",{count:e.moreCount}))
let s=[(0,o.h)("li.heading",(0,o.h)("a.d-link.categories-link",{attributes:{href:t}},n))]
const l=e.categories
if(0!==l.length)return s=s.concat(l.map((e=>this.attach("hamburger-category",e)))),s}})
e.default=l})),define("discourse/widgets/hamburger-menu",["exports","discourse/lib/url","discourse/widgets/widget","I18n","discourse/lib/notification-levels","discourse/lib/ajax","discourse-common/lib/get-url","virtual-dom","discourse-common/lib/later","discourse/lib/intercept-click"],(function(e,t,i,n,r,o,s,l,a,u){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=e=>[].concat.apply([],e);(0,i.createWidget)("priority-faq-link",{tagName:"a.faq-priority.widget-link",buildAttributes:e=>({href:e.href}),html:()=>[n.default.t("faq")," ",(0,l.h)("span.badge.badge-notification",n.default.t("new_item"))],click(e){const{attrs:{href:i},currentUser:n,siteSettings:r}=this
if(r.faq_url===i)(0,o.ajax)((0,t.userPath)("read-faq"),{type:"POST"}).then((()=>{n.set("read_faq",!0),(0,u.wantsNewWindow)(e)||(e.preventDefault(),t.default.routeTo(i))}))
else{if((0,u.wantsNewWindow)(e))return
e.preventDefault(),t.default.routeTo(i)}}})
var d=(0,i.createWidget)("hamburger-menu",{buildKey:()=>"hamburger-menu",tagName:"div.hamburger-panel",settings:{showCategories:!0,maxWidth:320,showFAQ:!0,showAbout:!0},defaultState:()=>({loaded:!1,loading:!1}),adminLinks(){const{currentUser:e}=this,t=[{route:"admin",className:"admin-link",icon:"wrench",label:"admin_title"}]
return e.admin&&t.push({href:"/admin/site_settings",icon:"cog",label:"admin.site_settings.title",className:"settings-link"}),t.map((e=>this.attach("link",e)))},lookupCount(e){const t=this.register.lookup("service:topic-tracking-state")
return t?t.lookupCount({type:e}):0},generalLinks(){const{attrs:e,currentUser:t,siteSettings:n,state:r}=this,o=[]
o.push({route:"discovery.latest",className:"latest-topics-link",label:"filters.latest.title",title:"filters.latest.help"}),t&&(o.push({route:"discovery.new",className:"new-topics-link",labelCount:"filters.new.title_with_count",label:"filters.new.title",title:"filters.new.help",count:this.lookupCount("new")}),o.push({route:"discovery.unread",className:"unread-topics-link",labelCount:"filters.unread.title_with_count",label:"filters.unread.title",title:"filters.unread.help",count:this.lookupCount("unread")}),t.can_review&&o.push({route:n.reviewable_default_topics?"review.topics":"review",className:"review",label:"review.title",badgeCount:"reviewable_count",badgeClass:"reviewables"})),o.push({route:"discovery.top",className:"top-topics-link",label:"filters.top.title",title:"filters.top.help"}),n.enable_badges&&o.push({route:"badges",className:"badge-link",label:"badges.title"})
const s=t||!n.hide_user_profiles_from_public
n.enable_user_directory&&s&&o.push({route:"users",className:"user-directory-link",label:"directory.title"}),n.enable_group_directory&&o.push({route:"groups",className:"groups-link",label:"groups.index.title"}),n.tagging_enabled&&o.push({route:"tags",label:"tagging.tags"})
const l=c((0,i.applyDecorators)(this,"generalLinks",e,r))
return o.concat(l).map((e=>this.attach("link",e)))},listCategories(){const{currentUser:e,site:t,siteSettings:i}=this,n=i.header_dropdown_category_count
let o=[]
if(e){const i=t.get("categories").filter((e=>e.notification_level!==r.NotificationLevels.MUTED))
o=i.filter((e=>e.newTopicsCount>0||e.unreadTopicsCount>0)).sort(((e,t)=>t.newTopicsCount+t.unreadTopicsCount-(e.unreadTopicsCount+e.newTopicsCount)));(e.get("top_category_ids")||[]).forEach((e=>{const t=i.find((t=>t.id===e))
t&&!o.includes(t)&&o.push(t)})),o=o.concat(i.filter((e=>!o.includes(e))).sort(((e,t)=>t.topic_count-e.topic_count)))}else o=t.get("categoriesByCount").filter((e=>e.notification_level!==r.NotificationLevels.MUTED))
i.allow_uncategorized_topics||(o=o.filter((e=>e.id!==t.uncategorized_category_id)))
const s=o.length-n
return o=o.slice(0,n),this.attach("hamburger-categories",{categories:o,moreCount:s})},footerLinks(e,t){const{attrs:n,capabilities:r,settings:o,site:s,siteSettings:l,state:a}=this,u=[]
o.showAbout&&u.push({route:"about",className:"about-link",label:"about.simple_title"}),o.showFAQ&&!e&&u.push({href:t,className:"faq-link",label:"faq"}),s.mobileView||r.touch||u.push({href:"",action:"showKeyboard",className:"keyboard-shortcuts-link",label:"keyboard_shortcuts_help.title"})
const d=l.enable_mobile_theme&&r.touch;(s.mobileView||d)&&u.push({action:"toggleMobileView",className:"mobile-toggle-link",label:s.mobileView?"desktop_view":"mobile_view"})
const p=c((0,i.applyDecorators)(this,"footerLinks",n,a))
return u.concat(p).map((e=>this.attach("link",e)))},panelContents(){const{attrs:e,currentUser:t,settings:n,siteSettings:r,state:o}=this,a=[],u=r.faq_url||(0,s.default)("/faq"),d=n.showFAQ&&t&&!t.read_faq
return d&&a.push(this.attach("menu-links",{name:"faq-link",heading:!0,contents:()=>this.attach("priority-faq-link",{href:u})})),t&&t.staff&&a.push(this.attach("menu-links",{name:"admin-links",contents:()=>{const t=c((0,i.applyDecorators)(this,"admin-links",e,o))
return this.adminLinks().concat(t)}})),a.push(this.attach("menu-links",{name:"general-links",contents:()=>this.generalLinks()})),n.showCategories&&(a.push(this.listCategories()),a.push((0,l.h)("hr.categories-separator"))),a.push(this.attach("menu-links",{name:"footer-links",omitRule:!0,contents:()=>this.footerLinks(d,u)})),a},refreshReviewableCount(e){const{currentUser:t}=this
if(!e.loading&&t&&t.can_review)return e.loading=!0,(0,o.ajax)("/review/count.json").then((e=>{let{count:i}=e
return t.set("reviewable_count",i)})).finally((()=>{e.loaded=!0,e.loading=!1,this.scheduleRerender()}))},html(){return this.attach("menu-panel",{contents:()=>this.panelContents(),maxWidth:this.settings.maxWidth})},clickOutsideMobile(e){const t=document.elementFromPoint(e.clientX,e.clientY),i=document.elementsFromPoint(e.clientX,e.clientY).some((e=>e.classList.contains("panel")))
if(!t.classList.contains("header-cloak")&&i)this.sendWidgetAction("toggleHamburger")
else{const e=document.body.offsetWidth,t=document.querySelector(".menu-panel")
t.classList.add("animate")
let i=this.site.mobileView?-1:1
i="rtl"===document.querySelector("html").classList.direction?-i:i,t.style.setProperty("--offset",i*e+"px")
const n=document.querySelector(".header-cloak")
n.classList.add("animate"),n.style.setProperty("--opacity",0),(0,a.default)((()=>this.sendWidgetAction("toggleHamburger")),200)}},clickOutside(e){this.site.mobileView?this.clickOutsideMobile(e):this.sendWidgetAction("toggleHamburger")},keyDown(e){if("Escape"===e.key)return this.sendWidgetAction("toggleHamburger"),e.preventDefault(),!1}})
e.default=d})),define("discourse/widgets/hbs-compiler",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){console.log("Templates should be precompiled server side")}})),define("discourse/widgets/header-bootstrap-mode",["@ember/template-factory","discourse/widgets/render-glimmer"],(function(e,t){(0,t.registerWidgetShim)("header-bootstrap-mode","div.d-header-mode",(0,e.createTemplateFactory)({id:"XpdWAHvX",block:'[[[8,[39,0],null,null,null]],[],false,["bootstrap-mode-notice"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/discourse/widgets/header-bootstrap-mode.js",isStrictMode:!1}))})),define("discourse/widgets/header-contents",["discourse/widgets/widget"],(function(e){(0,e.createWidget)("header-contents",{tagName:"div.contents",transform(){return{showBootstrapMode:this.currentUser?.staff&&this.site.desktopView}},template:function(e,t){var i=[]
i.push("\n"),this.site.desktopView&&e.sidebarEnabled&&(i.push("        "),i.push(this.attach("sidebar-toggle",e)),i.push("\n")),i.push("\n    "),i.push(this.attach("home-logo",e)),i.push("\n\n"),e.topic?(i.push("      "),i.push(this.attach("header-topic-info",e)),i.push("\n")):this.siteSettings.bootstrap_mode_enabled&&(this.transformed.showBootstrapMode&&(i.push("        "),i.push(this.attach("header-bootstrap-mode",e)),i.push("\n")),i.push("    ")),i.push("\n    "),i.push(this.attach("before-header-panel-outlet",e)),i.push("\n\n    ")
var n=[]
return n.push(this.attrs.contents()),i.push(virtualDom.h("div",{className:"panel",attributes:{role:"navigation"}},n)),i.push("\n  "),i}})})),define("discourse/widgets/header-topic-info",["exports","discourse/widgets/widget","discourse/lib/url","I18n","discourse/widgets/raw-html","discourse/widgets/post","discourse-common/lib/get-url","virtual-dom","discourse-common/lib/icon-library","discourse/lib/render-tags","discourse/lib/render-topic-featured-link"],(function(e,t,i,n,r,o,s,l,a,u,c){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,t.createWidget)("topic-header-participant",{tagName:"span",buildClasses:e=>`trigger-${e.type}-card`,html(e){const{user:t,group:i}=e
let n,r
return"user"===e.type?(n=(0,o.avatarImg)("tiny",{template:t.avatar_template,username:t.username}),r=t.get("path")):(n=[(0,a.iconNode)("users")],r=(0,s.default)(`/g/${i.name}`),n.push((0,l.h)("span",i.name))),(0,l.h)("a.icon",{attributes:{href:r,"data-auto-route":!0,title:e.username}},n)},click(e){this.appEvents.trigger(`topic-header:trigger-${this.attrs.type}-card`,this.attrs.username,e.target),e.preventDefault()}})
var d=(0,t.createWidget)("header-topic-info",{tagName:"div.extra-info-wrapper",contents:null,title:null,buildClasses(e,t){return this.buildAttributes(e,t),this.containerClassName()},buildFancyTitleClass(){const e=(i=(0,t.applyDecorators)(this,"fancyTitleClass",this.attrs,this.state),[].concat.apply([],i))
var i
return["topic-link"].concat(e).filter(Boolean).join(" ")},buildAttributes(e,i){const o=e.topic,s=[],d=!o.get("is_warning")&&o.get("isPrivateMessage")
if(d){const e=this.currentUser&&this.currentUser.pmPath(o)
e&&s.push((0,l.h)("a.private-message-glyph-wrapper",{attributes:{href:e,"aria-label":n.default.t("user.messages.inbox")}},(0,a.iconNode)("envelope",{class:"private-message-glyph"})))}const p=o.get("details.loaded"),m=o.get("fancyTitle"),h=o.get("url")
if(m&&h){s.push(this.attach("topic-status",e))
const t=new r.default({html:`<span>${m}</span>`})
s.push(this.attach("link",{className:this.buildFancyTitleClass(),action:"jumpToTopPost",href:h,attributes:{"data-topic-id":o.get("id")},contents:()=>t}))}this.headerElements=[(0,l.h)("h1.header-title",s)]
const f=o.get("category")
if(p||f){if(f&&(!f.isUncategorizedCategory||!this.siteSettings.suppress_uncategorized_badge)){const e=f.get("parentCategory"),t=[]
if(e){if(this.siteSettings.max_category_nesting>2&&!this.site.mobileView){const i=e.get("parentCategory")
i&&t.push(this.attach("category-link",{category:i}))}t.push(this.attach("category-link",{category:e}))}t.push(this.attach("category-link",{category:f})),this.headerElements.push((0,l.h)("div.categories-wrapper",t))}let n=[]
const s=(0,u.default)(o)
if(s&&s.length>0&&n.push(new r.default({html:s})),d){const e=n.length>0?5:10,t=[],i=o.get("details"),r=i.allowed_users.length+i.allowed_groups.length
if(i.allowed_users.some((i=>{if(t.length>=e)return!0
t.push(this.attach("topic-header-participant",{type:"user",user:i,username:i.username}))})),i.allowed_groups.some((i=>{if(t.length>=e)return!0
t.push(this.attach("topic-header-participant",{type:"group",group:i,username:i.name}))})),r>e){const i=r-e
t.push(this.attach("link",{className:"more-participants",action:"jumpToTopPost",href:h,attributes:{"data-topic-id":o.get("id")},contents:()=>`+${i}`}))}n.push((0,l.h)("div.topic-header-participants",t))}if(n=n.concat((0,t.applyDecorators)(this,"after-tags",e,i)),this.siteSettings.topic_featured_link_enabled){const t=(0,c.topicFeaturedLinkNode)(e.topic)
t&&n.push(t)}n.length&&this.headerElements.push((0,l.h)("div.topic-header-extra",n))}this.contents=(0,l.h)("div.title-wrapper",this.headerElements)},html(){return(0,l.h)("div.extra-info",{className:this.containerClassName()},this.contents)},containerClassName(){return this.headerElements.length>1?"two-rows":""},jumpToTopPost(){const e=this.attrs.topic
e&&i.default.routeTo(e.get("firstPostUrl"),{keepFilter:!0})}})
e.default=d})),define("discourse/widgets/header",["exports","@ember/template-factory","discourse/lib/url","I18n","discourse/helpers/user-avatar","discourse/widgets/post","discourse/widgets/widget","discourse-common/lib/get-url","virtual-dom","discourse-common/lib/icon-library","@ember/runloop","discourse/mixins/scroll-top","discourse/lib/intercept-click","discourse/lib/search","discourse/widgets/render-glimmer","discourse/lib/user-tips","discourse/components/search-menu"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g){Object.defineProperty(e,"__esModule",{value:!0}),e.addToHeaderIcons=function(e){b.push(e)},e.attachAdditionalPanel=function(e,t,i){_.push({name:e,toggle:t,transformAttrs:i})},e.clearExtraHeaderIcons=function(){b=[]},e.dropdown=e.default=void 0
let b=[]
const y={buildClasses(e){let t=e.classNames||[]
return e.active&&t.push("active"),t},click(e){(0,p.wantsNewWindow)(e)||(e.preventDefault(),this.attrs.active||this.sendWidgetAction(this.attrs.action))}}
e.dropdown=y,(0,s.createWidget)("header-notifications",{settings:{avatarSize:"medium"},html(e){const{user:t}=e
let i={template:t.get("avatar_template"),username:t.get("username")}
this.siteSettings.enable_names&&(i.name=t.get("name"))
const s=[(0,o.avatarImg)(this.settings.avatarSize,Object.assign({alt:"user.avatar.header_title"},(0,r.addExtraUserClasses)(t,i)))]
if(this.currentUser.status&&s.push(this.attach("user-status-bubble",this.currentUser.status)),t.isInDoNotDisturb())s.push((0,a.h)("div.do-not-disturb-background",(0,u.iconNode)("moon")))
else{let i=null
t.new_personal_messages_notifications_count?(i="personal-messages",s.push(this.attach("link",{action:e.action,className:"badge-notification with-icon new-pms",icon:"envelope",omitSpan:!0,title:"notifications.tooltip.new_message_notification",titleOptions:{count:t.new_personal_messages_notifications_count},attributes:{"aria-label":n.default.t("notifications.tooltip.new_message_notification",{count:t.new_personal_messages_notifications_count})}}))):t.unseen_reviewable_count?s.push(this.attach("link",{action:e.action,className:"badge-notification with-icon new-reviewables",icon:"flag",omitSpan:!0,title:"notifications.tooltip.new_reviewable",titleOptions:{count:t.unseen_reviewable_count},attributes:{"aria-label":n.default.t("notifications.tooltip.new_reviewable",{count:t.unseen_reviewable_count})}})):t.all_unread_notifications_count&&(i="regular-notifications",s.push(this.attach("link",{action:e.action,className:"badge-notification unread-notifications",rawLabel:t.all_unread_notifications_count,omitSpan:!0,title:"notifications.tooltip.regular",titleOptions:{count:t.all_unread_notifications_count},attributes:{"aria-label":n.default.t("user.notifications")}}))),i&&this._shouldHighlightAvatar()&&s.push((0,a.h)(`span.ring.revamped.${i}`))}return s},_shouldHighlightAvatar(){const e=this.attrs,{user:t}=e
return!t.read_first_notification&&!t.enforcedSecondFactor&&!e.active},didRenderWidget(){this.currentUser&&this._shouldHighlightAvatar()&&this.currentUser.showUserTip({id:"first_notification",titleText:n.default.t("user_tips.first_notification.title"),contentText:n.default.t("user_tips.first_notification.content"),reference:document.querySelector(".d-header .badge-notification")?.parentElement?.querySelector(".avatar"),appendTo:document.querySelector(".d-header .panel"),placement:"bottom-end"})},destroy(){(0,f.hideUserTip)("first_notification")},willRerenderWidget(){(0,f.hideUserTip)("first_notification")}}),(0,s.createWidget)("user-dropdown",Object.assign({tagName:"li.header-dropdown-toggle.current-user",buildId:()=>"current-user",html(e){return(0,a.h)("button.icon.btn-flat",{attributes:{"aria-haspopup":!0,"aria-expanded":e.active,href:e.user.path,title:e.user.name||e.user.username,"data-auto-route":!0}},this.attach("header-notifications",e))}},y)),(0,s.createWidget)("header-dropdown",Object.assign({tagName:"li.header-dropdown-toggle",html(e){const t=n.default.t(e.title),i=[(0,u.iconNode)(e.icon)]
return e.contents&&i.push(e.contents.call(this)),(0,a.h)("button.icon.btn-flat",{attributes:{"aria-expanded":e.active,"aria-haspopup":!0,href:e.href,"data-auto-route":!0,title:t,"aria-label":t,id:e.iconId}},i)}},y)),(0,s.createWidget)("header-icons",{tagName:"ul.icons.d-header-icons",html(e){if(this.siteSettings.login_required&&!this.currentUser)return[]
const t=[]
b&&b.forEach((e=>{t.push(this.attach(e))}))
const i=this.attach("header-dropdown",{title:"search.title",icon:"search",iconId:g.SEARCH_BUTTON_ID,action:"toggleSearchMenu",active:e.searchVisible,href:(0,l.default)("/search"),classNames:["search-dropdown"]})
t.push(i)
const r=this.attach("header-dropdown",{title:"hamburger_menu",icon:"bars",iconId:"toggle-hamburger-menu",active:e.hamburgerVisible,action:"toggleHamburger",href:"",classNames:["hamburger-dropdown"],contents(){let{currentUser:e}=this
if(e?.reviewable_count&&"legacy"===this.siteSettings.navigation_menu)return(0,a.h)("div.badge-notification.reviewables",{attributes:{title:n.default.t("notifications.reviewable_items")}},this.currentUser.reviewable_count)}})
return e.sidebarEnabled&&!this.site.mobileView||t.push(r),e.user&&t.push(this.attach("user-dropdown",{active:e.userVisible,action:"toggleUserMenu",user:e.user})),t}}),(0,s.createWidget)("header-buttons",{tagName:"span.header-buttons",html(e){if(this.currentUser)return
const t=[]
return e.canSignUp&&!e.topic&&t.push(this.attach("button",{label:"sign_up",className:"btn-primary btn-small sign-up-button",action:"showCreateAccount"})),t.push(this.attach("button",{label:"log_in",className:"btn-primary btn-small login-button",action:"showLogin",icon:"user"})),t}}),(0,s.createWidget)("header-cloak",{tagName:"div.header-cloak",html:()=>"",click(){},scheduleRerender(){}})
let _=[];(0,s.createWidget)("revamped-hamburger-menu-wrapper",{buildAttributes:()=>({"data-click-outside":!0}),html(){return[new h.default(this,"div.widget-component-connector",(0,t.createTemplateFactory)({id:"9LsCSALK",block:'[[[8,[39,0],null,null,null]],[],false,["sidebar/hamburger-dropdown"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/discourse/widgets/header.js",isStrictMode:!1}))]},click(e){(e.target.closest(".sidebar-section-header-button")||e.target.closest(".sidebar-section-link-button")||e.target.closest(".sidebar-section-link"))&&this.sendWidgetAction("toggleHamburger")},clickOutside(){this.sendWidgetAction("toggleHamburger")}}),(0,s.createWidget)("revamped-user-menu-wrapper",{buildAttributes:()=>({"data-click-outside":!0}),html(){return[new h.default(this,"div.widget-component-connector",(0,t.createTemplateFactory)({id:"EiNDEokP",block:'[[[8,[39,0],null,[["@closeUserMenu"],[[30,1,["closeUserMenu"]]]],null]],["@data"],false,["user-menu/menu"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/discourse/widgets/header.js",isStrictMode:!1}),{closeUserMenu:this.closeUserMenu.bind(this)})]},closeUserMenu(){this.sendWidgetAction("toggleUserMenu")},clickOutside(){this.closeUserMenu()}}),(0,s.createWidget)("glimmer-search-menu-wrapper",{buildAttributes:()=>({"data-click-outside":!0,"aria-live":"polite"}),buildClasses:()=>["search-menu"],html(){return[new h.default(this,"div.widget-component-connector",(0,t.createTemplateFactory)({id:"ItYTHYNp",block:'[[[8,[39,0],null,[["@inTopicContext","@searchVisible","@animationClass","@closeSearchMenu"],[[30,1,["inTopicContext"]],[30,1,["searchVisible"]],[30,1,["animationClass"]],[30,1,["closeSearchMenu"]]]],null]],["@data"],false,["search-menu"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/discourse/widgets/header.js",isStrictMode:!1}),{closeSearchMenu:this.closeSearchMenu.bind(this),inTopicContext:this.attrs.inTopicContext,searchVisible:this.attrs.searchVisible,animationClass:this.attrs.animationClass})]},closeSearchMenu(){this.sendWidgetAction("toggleSearchMenu")},clickOutside(){this.closeSearchMenu()}})
var v=(0,s.createWidget)("header",{tagName:"header.d-header",buildKey:()=>"header",services:["router","search"],defaultState(){let e={searchVisible:!1,hamburgerVisible:!1,userVisible:!1,inTopicContext:!1}
return this.site.mobileView&&(e.skipSearchContext=!0),e},html(e,t){let i=!1
this.state.inTopicContext&&(i=this.router.currentRouteName.startsWith("topic."))
const n={contents:()=>{const n=this.attach("header-icons",{hamburgerVisible:t.hamburgerVisible,userVisible:t.userVisible,searchVisible:t.searchVisible,flagCount:e.flagCount,user:this.currentUser,sidebarEnabled:e.sidebarEnabled})
if(e.onlyIcons)return n
const r=[this.attach("header-buttons",e),n]
return t.searchVisible?this.currentUser?.experimental_search_menu_groups_enabled?r.push(this.attach("glimmer-search-menu-wrapper",{inTopicContext:t.inTopicContext&&i,searchVisible:t.searchVisible,animationClass:this.animationClass()})):r.push(this.attach("search-menu",{inTopicContext:t.inTopicContext&&i})):t.hamburgerVisible?"header_dropdown"===e.navigationMenuQueryParamOverride||"legacy"!==e.navigationMenuQueryParamOverride&&"legacy"!==this.siteSettings.navigation_menu&&(!e.sidebarEnabled||this.site.narrowDesktopView)?r.push(this.attach("revamped-hamburger-menu-wrapper",{})):r.push(this.attach("hamburger-menu")):t.userVisible&&r.push(this.attach("revamped-user-menu-wrapper",{})),_.map((i=>{this.state[i.toggle]&&r.push(this.attach(i.name,i.transformAttrs.call(this,e,t)))})),(this.site.mobileView||this.site.narrowDesktopView)&&r.push(this.attach("header-cloak")),r},minimized:!!e.topic}
return(0,a.h)("div.wrap",this.attach("header-contents",Object.assign({},e,n)))},updateHighlight(){this.state.searchVisible||this.search.set("highlightTerm","")},animationClass(){return this.site.mobileView||this.site.narrowDesktopView?"slide-in":"drop-down"},closeAll(){this.state.userVisible=!1,this.state.hamburgerVisible=!1,this.state.searchVisible=!1,this.toggleBodyScrolling(!1)},linkClickedEvent(e){let t=!1
if(e){t=e.searchContextEnabled
const{searchLogId:i,searchResultId:n,searchResultType:r}=e
i&&n&&r&&(0,m.logSearchLinkClick)({searchLogId:i,searchResultId:n,searchResultType:r})}t||this.closeAll(),this.updateHighlight()},toggleSearchMenu(){if(this.site.mobileView){const e=this.search.searchContext
let t=""
return e&&(t=`?context=${e.type}&context_id=${e.id}&skip_context=${this.state.skipSearchContext}`),"full-page-search"===this.router.currentRouteName?((0,d.scrollTop)(),$(".full-page-search").focus(),!1):i.default.routeTo("/search"+t)}this.state.searchVisible=!this.state.searchVisible,this.updateHighlight(),this.state.searchVisible?this.focusSearchInput():this.state.inTopicContext=!1},toggleUserMenu(){this.state.userVisible=!this.state.userVisible,this.toggleBodyScrolling(this.state.userVisible),(0,c.schedule)("afterRender",(()=>document.querySelector(".user-menu button")?.focus()))},toggleHamburger(){"legacy"!==this.siteSettings.navigation_menu&&this.attrs.sidebarEnabled&&!this.site.narrowDesktopView?this.sendWidgetAction("toggleSidebar"):(this.state.hamburgerVisible=!this.state.hamburgerVisible,this.toggleBodyScrolling(this.state.hamburgerVisible),(0,c.schedule)("afterRender",(()=>{"legacy"!==this.siteSettings.navigation_menu?document.querySelector("#toggle-hamburger-menu")?.blur():document.querySelector(".hamburger-panel .menu-links a")?.focus()})))},toggleBodyScrolling(e){this.site.mobileView&&(e?document.body.addEventListener("touchmove",this.preventDefault,{passive:!1}):document.body.removeEventListener("touchmove",this.preventDefault,{passive:!1}))},preventDefault(e){const t=window.innerHeight
if(e.target.closest(".menu-panel .menu-tabs-container")){const e=document.querySelector(".menu-panel .top-tabs"),i=document.querySelector(".menu-panel .bottom-tabs")
if((e?.offsetHeight+i?.offsetHeight||0)>t)return}if(e.target.closest(".menu-panel")){if((document.querySelector(".menu-panel .panel-body-contents").offsetHeight||0)>t)return}e.preventDefault()},togglePageSearch(){const{state:e}=this
e.inTopicContext=!1
let t=this.router.currentRouteName.startsWith("topic.")
if(t){const e=this.register.lookup("controller:topic"),i=e.get("model.postStream.stream.length")||0
t=i>(e.get("model.chunk_size")||0)&&$(".topic-post .cooked, .small-action:not(.time-gap)").length<i}return e.searchVisible?(this.toggleSearchMenu(),t):!t||(e.inTopicContext=!0,this.toggleSearchMenu(),!1)},domClean(){const{state:e}=this;(e.searchVisible||e.hamburgerVisible||e.userVisible)&&this.closeAll()},headerKeyboardTrigger(e){switch(e.type){case"search":this.toggleSearchMenu()
break
case"user":this.toggleUserMenu()
break
case"hamburger":this.toggleHamburger()
break
case"page-search":this.togglePageSearch()||(e.event.preventDefault(),e.event.stopPropagation())}},focusSearchInput(){this.state.searchVisible&&!this.currentUser?.experimental_search_menu_groups_enabled&&(0,c.schedule)("afterRender",(()=>{const e=document.querySelector("#search-term")
e.focus(),e.select()}))},setTopicContext(){this.state.inTopicContext=!0,this.focusSearchInput()},clearContext(){this.state.inTopicContext=!1,this.focusSearchInput()}})
e.default=v})),define("discourse/widgets/home-logo",["exports","discourse/lib/url","discourse/models/session","discourse/widgets/widget","discourse-common/lib/get-url","virtual-dom","discourse-common/lib/icon-library","discourse/lib/intercept-click"],(function(e,t,i,n,r,o,s,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=(0,n.createWidget)("home-logo",{tagName:"div.title",settings:{href:(0,r.default)("/")},buildClasses(){if(this.attrs.minimized)return"title--minimized"},href(){const e=this.settings.href
return"function"==typeof e?e():e},logoUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return this.logoResolver("logo",e)},mobileLogoUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return this.logoResolver("mobile_logo",e)},smallLogoUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return this.logoResolver("logo_small",e)},logo(){const{siteSettings:e}=this,t=this.site.mobileView,n=i.default.currentProp("darkModeAvailable")?{dark:!0}:{},r=this.mobileLogoUrl(),l=this.mobileLogoUrl(n),a=t&&r.length>0,u=this.logoUrl(),c=this.logoUrl(n),d=e.title
if(this.attrs.minimized){const e=this.smallLogoUrl(),t=this.smallLogoUrl(n)
return e.length?this.logoElement("logo-small",e,d,t):(0,s.iconNode)("home")}return a?this.logoElement("logo-mobile",r,d,l):u.length?this.logoElement("logo-big",u,d,c):(0,o.h)("h1#site-text-logo.text-logo",{key:"logo-text"},d)},logoResolver(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const{siteSettings:n}=this
return t.dark?n[`site_${e}_dark_url`]:i.default.currentProp("defaultColorSchemeIsDark")?n[`site_${e}_dark_url`]||n[`site_${e}_url`]||"":n[`site_${e}_url`]||""},logoElement(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
const s="logo-small"===e?{src:(0,r.default)(t),width:36,alt:i}:{src:(0,r.default)(t),alt:i},l=(0,o.h)(`img#site-logo.${e}`,{key:e,attributes:s})
return n&&t!==n?(0,o.h)("picture",[(0,o.h)("source",{attributes:{srcset:(0,r.default)(n),media:"(prefers-color-scheme: dark)"}}),l]):l},html(){return(0,o.h)("a",{attributes:{href:this.href(),"data-auto-route":!0}},this.logo())},click:e=>((0,l.wantsNewWindow)(e)||(e.preventDefault(),t.default.routeToTag(e.target.closest("a"))),!1)})
e.default=a})),define("discourse/widgets/hooks",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetTouchStartHook=e.WidgetTouchEndHook=e.WidgetMouseUpHook=e.WidgetMouseOverHook=e.WidgetMouseOutHook=e.WidgetMouseMoveHook=e.WidgetMouseDownOutsideHook=e.WidgetMouseDownHook=e.WidgetKeyUpHook=e.WidgetKeyDownHook=e.WidgetInputHook=e.WidgetDragHook=e.WidgetDoubleClickHook=e.WidgetClickOutsideHook=e.WidgetClickHook=e.WidgetChangeHook=void 0
const t="_discourse_click_widget",i="_discourse_double_click_widget",n="_discourse_click_outside_widget",r="_discourse_mouse_down_outside_widget",o="_discourse_key_up_widget",s="_discourse_key_down_widget",l="_discourse_drag_widget",a="_discourse_input_widget",u="_discourse_change_widget",c="_discourse_mouse_down_widget",d="_discourse_mouse_up_widget",p="_discourse_mouse_move_widget",m="_discourse_mouse_over_widget",h="_discourse_mouse_out_widget",f="_discourse_touch_start_widget",g="_discourse_touch_end_widget"
class b{constructor(e){this.widget=e}}function y(e,t){return class extends b{hook(i){t&&i.setAttribute(t,!0),i[e]=this.widget}unhook(i){t&&i.removeAttribute(t,!0),i[e]=null}}}const _=y(t)
e.WidgetClickHook=_
const v=y(i)
e.WidgetDoubleClickHook=v
const w=y(n,"data-click-outside")
e.WidgetClickOutsideHook=w
const k=y(r,"data-mouse-down-outside")
e.WidgetMouseDownOutsideHook=k
const x=y(o)
e.WidgetKeyUpHook=x
const P=y(s)
e.WidgetKeyDownHook=P
const O=y(a)
e.WidgetInputHook=O
const T=y(u)
e.WidgetChangeHook=T
const S=y(d)
e.WidgetMouseUpHook=S
const j=y(c)
e.WidgetMouseDownHook=j
const C=y(p)
e.WidgetMouseMoveHook=C
const z=y(m)
e.WidgetMouseOverHook=z
const I=y(h)
e.WidgetMouseOutHook=I
const E=y(g)
function M(e){return e.currentTarget[f].touchStart(e)}e.WidgetTouchEndHook=E
let D
function N(e){e.preventDefault(),e.stopPropagation(),D&&A(),D=e.currentTarget,document.body.classList.add("widget-dragging"),document.addEventListener("touchmove",L,{passive:!1}),document.addEventListener("mousemove",L,{passive:!1}),document.addEventListener("touchend",A),document.addEventListener("mouseup",A)}function L(e){const t=D[l]
if("mousemove"===event.type)t.drag(e)
else{const i=e.targetTouches[0]
e.preventDefault(),e.stopPropagation(),t.drag(i)}}function A(e){document.body.classList.remove("widget-dragging"),document.removeEventListener("touchmove",L),document.removeEventListener("mousemove",L),document.removeEventListener("touchend",A),document.removeEventListener("mouseup",A)
D[l].dragEnd(e),D=null}e.WidgetTouchStartHook=class extends b{hook(e,t,i){e[f]=this.widget,i||e.addEventListener("touchstart",M,{passive:!1})}unhook(e,t,i){i||e.removeEventListener("touchstart",M)}}
function U(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{rerender:!0}
const{rerender:r}=n,o=function(e,t){for(;e;){const i=e[t]
if(i)return i
e=e.parentNode}}(e,t)
o&&(r?o.rerenderResult((()=>i(o))):i(o))}e.WidgetDragHook=class extends b{hook(e,t,i){e[l]=this.widget,i||(e.addEventListener("touchstart",N,{passive:!1}),e.addEventListener("mousedown",N,{passive:!1}))}unhook(e,t,i){i||(D===e&&A(),e.removeEventListener("touchstart",N),e.removeEventListener("mousedown",N))}}
let F=!1
_.setupDocumentCallback=function(){F||($(document).on("mouseover.discourse-widget",(e=>{U(e.target,m,(t=>t.mouseOver(e)),{rerender:!1})})),$(document).on("mouseout.discourse-widget",(e=>{U(e.target,h,(t=>t.mouseOut(e)),{rerender:!1})})),$(document).on("dblclick.discourse-widget",(e=>{U(e.target,i,(t=>t.doubleClick(e)))})),$(document).on("click.discourse-widget",(e=>{U(e.target,t,(t=>t.click(e)))
let i=e.target
$("[data-click-outside]").each(((t,r)=>{if(r.contains(i)||r===i&&"absolute"===r.style.position)return
const o=r[n]
o&&o.clickOutside(e)}))})),$(document).on("mousedown.discourse-widget",(e=>{let t=e.target
$("[data-mouse-down-outside]").each(((i,n)=>{if(n.contains(t))return
const o=n[r]
o&&o.mouseDownOutside(e)}))})),$(document).on("keyup.discourse-widget",(e=>{U(e.target,o,(t=>t.keyUp(e)))})),$(document).on("keydown.discourse-widget",(e=>{U(e.target,s,(t=>t.keyDown(e)))})),$(document).on("input.discourse-widget",(e=>{U(e.target,a,(t=>t.input(e)),{rerender:!1})})),$(document).on("change.discourse-widget",(e=>{U(e.target,u,(t=>t.change(e)),{rerender:!1})})),$(document).on("touchend.discourse-widget",(e=>{U(e.target,g,(t=>t.touchEnd(e)),{rerender:!1})})),$(document).on("mousedown.discourse-widget",(e=>{U(e.target,c,(t=>{t.mouseDown(e)}),{rerender:!1})})),$(document).on("mouseup.discourse-widget",(e=>{U(e.target,d,(t=>t.mouseUp(e)),{rerender:!1})})),$(document).on("mousemove.discourse-widget",(e=>{U(e.target,p,(t=>t.mouseMove(e)))})),F=!0)}})),define("discourse/widgets/invitee-accepted-notification-item",["discourse/widgets/default-notification-item","discourse/widgets/widget","discourse/lib/url"],(function(e,t,i){(0,t.createWidgetFrom)(e.DefaultNotificationItem,"invitee-accepted-notification-item",{url:e=>(0,i.userPath)(e.display_username)})})),define("discourse/widgets/liked-consolidated-notification-item",["discourse/widgets/default-notification-item","I18n","discourse/widgets/widget","discourse/lib/utilities","@ember/utils","discourse/lib/url"],(function(e,t,i,n,r,o){(0,i.createWidgetFrom)(e.DefaultNotificationItem,"liked-consolidated-notification-item",{url(e){return(0,o.userPath)(`${this.attrs.username||this.currentUser.username}/notifications/likes-received?acting_username=${e.display_username}`)},description(e){const i=t.default.t("notifications.liked_consolidated_description",{count:parseInt(e.count,10)})
return(0,r.isEmpty)(i)?"":(0,n.escapeExpression)(i)}})})),define("discourse/widgets/liked-notification-item",["discourse/widgets/default-notification-item","I18n","discourse/widgets/widget","discourse/lib/utilities"],(function(e,t,i,n){(0,i.createWidgetFrom)(e.DefaultNotificationItem,"liked-notification-item",{text(e,i){const r=(0,n.formatUsername)(i.display_username),o=this.description(i)
if(i.count>1){const e=i.count-2,s=(0,n.formatUsername)(i.username2)
return 0===e?t.default.t("notifications.liked_2",{description:o,username:`<span class="multi-username">${r}</span>`,username2:`<span class="multi-username">${s}</span>`}):t.default.t("notifications.liked_many",{description:o,username:`<span class="multi-username">${r}</span>`,username2:`<span class="multi-username">${s}</span>`,count:e})}return t.default.t("notifications.liked",{description:o,username:r})}})})),define("discourse/widgets/link",["exports","discourse/lib/url","I18n","discourse/widgets/widget","discourse-common/lib/get-url","virtual-dom","discourse-common/lib/icon-library","discourse/lib/intercept-click"],(function(e,t,i,n,r,o,s,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var a=(0,n.createWidget)("link",{tagName:"a",href(e){const t=e.route
if(!t)return(0,r.default)(e.href)
{const i=this.register.lookup("router:main")
if(i&&i._routerMicrolib){const n=[t]
return e.model&&n.push(e.model),(0,r.default)(i._routerMicrolib.generate.apply(i._routerMicrolib,n))}}},buildClasses(e){const t=[]
return t.push("widget-link"),e.className&&t.push(e.className),t},buildAttributes(e){const t={href:this.href(e),title:e.title?i.default.t(e.title,e.titleOptions):this.label(e)}
return e.attributes&&Object.keys(e.attributes).forEach((i=>t[i]=e.attributes[i])),t},label:e=>e.labelCount&&e.count?i.default.t(e.labelCount,{count:e.count}):e.rawLabel||(e.label?i.default.t(e.label):""),html(e){if(e.contents)return e.contents()
const t=[]
if(e.icon){if(e["aria-label"]){let n=(0,s.iconNode)(e.icon)
n.properties.attributes["aria-label"]=i.default.t(e["aria-label"],e.ariaLabelOptions),n.properties.attributes.role="img",n.properties.attributes["aria-hidden"]=!1,t.push(n)}else t.push((0,s.iconNode)(e.icon))
t.push(" ")}if(!e.hideLabel){let i=this.label(e)
e.omitSpan?t.push(i):t.push((0,o.h)("span.d-label",i))}const n=this.currentUser
if(n&&e.badgeCount){const r=parseInt(n.get(e.badgeCount),10)
if(r>0){const n=e.badgeTitle?i.default.t(e.badgeTitle):""
t.push(" "),t.push((0,o.h)("span.badge-notification",{className:e.badgeClass,attributes:{title:n}},r))}}return t},click(e){if(!(this.attrs.attributes&&"_blank"===this.attrs.attributes.target||(0,l.wantsNewWindow)(e)))return e.preventDefault(),this.attrs.action?(e.preventDefault(),this.sendWidgetAction(this.attrs.action,this.attrs.actionParam)):(this.sendWidgetEvent("linkClicked",this.attrs),t.default.routeToTag(e.target.closest("a")))}})
e.default=a})),define("discourse/widgets/membership-request-accepted-notification-item",["discourse/widgets/default-notification-item","I18n","discourse/widgets/widget","discourse/lib/url"],(function(e,t,i,n){(0,i.createWidgetFrom)(e.DefaultNotificationItem,"membership-request-accepted-notification-item",{url:e=>(0,n.groupPath)(e.group_name),text:(e,i)=>t.default.t(`notifications.${e}`,{group_name:i.group_name})})})),define("discourse/widgets/membership-request-consolidated-notification-item",["discourse/widgets/default-notification-item","I18n","discourse/widgets/widget","discourse/lib/url"],(function(e,t,i,n){(0,i.createWidgetFrom)(e.DefaultNotificationItem,"membership-request-consolidated-notification-item",{url(){return(0,n.userPath)(`${this.attrs.username||this.currentUser.username}/messages`)},text:(e,i)=>t.default.t("notifications.membership_request_consolidated",{group_name:i.group_name,count:parseInt(i.count,10)})})})),define("discourse/widgets/menu-panel",["discourse/widgets/widget","virtual-dom"],(function(e,t){(0,e.createWidget)("menu-links",{buildClasses(e){if(e.name&&e.name.length)return`menu-container-${e.name}`},html(e){const i=[].concat(e.contents()),n={}
e.heading&&(n.className="header")
const r=[]
return r.push((0,t.h)("ul.menu-links.columned",i.map((e=>(0,t.h)("li",n,e))))),r.push((0,t.h)("div.clearfix")),e.omitRule||r.push((0,t.h)("hr")),r}}),(0,e.createWidget)("menu-panel",{tagName:"div.menu-panel",template:function(e,t){var i=[]
i.push("\n    ")
var n=[]
n.push("\n      ")
var r=[]
return r.push("\n        "),r.push(this.attrs.contents()),r.push("\n      "),n.push(virtualDom.h("div",{className:"panel-body-contents",attributes:{}},r)),n.push("\n    "),i.push(virtualDom.h("div",{className:"panel-body",attributes:{}},n)),i.push("\n  "),i},buildAttributes(e){if(e.maxWidth)return{"data-max-width":e.maxWidth}}})})),define("discourse/widgets/new-features-notification-item",["discourse/widgets/default-notification-item","I18n","discourse/widgets/widget","discourse-common/lib/get-url","discourse-common/lib/icon-library"],(function(e,t,i,n,r){(0,i.createWidgetFrom)(e.DefaultNotificationItem,"new-features-notification-item",{text:()=>t.default.t("notifications.new_features"),url:()=>(0,n.default)("/admin"),icon:()=>(0,r.iconNode)("gift")})})),define("discourse/widgets/post-admin-menu",["exports","discourse/widgets/button","discourse/widgets/widget","virtual-dom"],(function(e,t,i,n){function r(e,t,i){if(!t)return[]
let n=[]
if(t.staff&&n.push({icon:"list",className:"popup-menu-button moderation-history",label:"review.moderation_history",url:`/review?topic_id=${e.topicId}&status=all`}),e.canPermanentlyDelete&&n.push({icon:"trash-alt",className:"popup-menu-button permanently-delete",label:"post.controls.permanently_delete",action:"permanentlyDeletePost"}),!e.isWhisper&&t.staff){const t={action:"togglePostType",icon:"shield-alt",className:"popup-menu-button toggle-post-type"}
e.isModeratorAction?t.label="post.controls.revert_to_regular":t.label="post.controls.convert_to_moderator",n.push(t)}return e.canEditStaffNotes&&n.push({icon:"user-shield",label:e.notice?"post.controls.change_post_notice":"post.controls.add_post_notice",action:"changeNotice",className:e.notice?"popup-menu-button change-notice":"popup-menu-button add-notice"}),t.staff&&e.hidden&&n.push({icon:"far-eye",label:"post.controls.unhide",action:"unhidePost",className:"popup-menu-button unhide-post"}),(t.admin||i.moderators_change_post_ownership&&t.staff)&&n.push({icon:"user",label:"post.controls.change_owner",action:"changePostOwner",className:"popup-menu-button change-owner"}),e.user_id&&t.staff&&(i.enable_badges&&n.push({icon:"certificate",label:"post.controls.grant_badge",action:"grantBadge",className:"popup-menu-button grant-badge"}),e.locked?n.push({icon:"unlock",label:"post.controls.unlock_post",action:"unlockPost",title:"post.controls.unlock_post_description",className:"popup-menu-button unlock-post"}):n.push({icon:"lock",label:"post.controls.lock_post",action:"lockPost",title:"post.controls.lock_post_description",className:"popup-menu-button lock-post"})),(e.canManage||e.canWiki)&&(e.wiki?n.push({action:"toggleWiki",label:"post.controls.unwiki",icon:"far-edit",className:"popup-menu-button wiki wikied"}):n.push({action:"toggleWiki",label:"post.controls.wiki",icon:"far-edit",className:"popup-menu-button wiki"})),e.canPublishPage&&n.push({icon:"file",label:"post.controls.publish_page",action:"showPagePublish",className:"popup-menu-button publish-page"}),e.canManage&&n.push({icon:"sync-alt",label:"post.controls.rebake",action:"rebakePost",className:"popup-menu-button rebuild-html"}),n}Object.defineProperty(e,"__esModule",{value:!0}),e.buildManageButtons=r,e.default=void 0,(0,i.createWidget)("post-admin-menu-button",Object.assign(t.ButtonClass,{tagName:"li.btn"})),(0,i.createWidget)("post-admin-menu-button",{tagName:"li",html(e){return this.attach("button",{className:e.className,action:e.action,url:e.url,icon:e.icon,label:e.label,secondaryAction:e.secondaryAction})}})
var o=(0,i.createWidget)("post-admin-menu",{tagName:"div.post-admin-menu.popup-menu",html(){const e=[]
return r(this.attrs,this.currentUser,this.siteSettings).forEach((t=>{t.secondaryAction="closeAdminMenu",e.push(this.attach("post-admin-menu-button",t))})),(0,n.h)("ul",e)},clickOutside(){this.sendWidgetAction("closeAdminMenu")}})
e.default=o})),define("discourse/widgets/post-cooked",["exports","discourse/lib/highlight-html","I18n","discourse/lib/ajax","discourse/lib/highlight-search","discourse-common/lib/icon-library","discourse/lib/click-track","discourse/lib/formatter","discourse/helpers/loading-spinner","pretty-text/sanitizer","discourse-common/lib/dom-from-string","discourse-common/lib/get-url","discourse/lib/update-user-status-on-mention"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p){function m(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(e,"__esModule",{value:!0}),e.addDecorator=function(e){let{afterAdopt:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
t?f.push(e):h.push(e)},e.default=void 0,e.resetDecorators=function(){h=[],f=[]}
let h=[],f=[]
let g=document.implementation.createHTMLDocument("detached")
function b(e){return g.createElement(e)}class y{constructor(e,t,i){m(this,"originalQuoteContents",null),m(this,"tippyInstances",[]),this.attrs=e,this.expanding=!1,this._highlighted=!1,this.decoratorHelper=t,this.currentUser=i,this.ignoredUsers=this.currentUser?this.currentUser.ignored_users:null}update(e){if(e.attrs.cooked!==this.attrs.cooked||e.attrs.highlightTerm!==this.attrs.highlightTerm)return this.init()}init(){this.originalQuoteContents=null,this._isInComposerPreview=!this.decoratorHelper
const e=this._computeCooked()
return this.cookedDiv=e,this._insertQuoteControls(e),this._showLinkCounts(e),this._applySearchHighlight(e),this._initUserStatusOnMentions(),this._decorateAndAdopt(e),e}destroy(){this._stopTrackingMentionedUsersStatus(),this._destroyTippyInstances()}_decorateAndAdopt(e){h.forEach((t=>t(e,this.decoratorHelper))),document.adoptNode(e),f.forEach((t=>t(e,this.decoratorHelper)))}_applySearchHighlight(e){const i=this.attrs.highlightTerm
i&&i.length>2?(this._highlighted&&(0,t.unhighlightHTML)(e),(0,r.default)(e,i,{defaultClassName:!0}),this._highlighted=!0):this._highlighted&&((0,t.unhighlightHTML)(e),this._highlighted=!1)}_showLinkCounts(e){const t=this.attrs.linkCounts
if(!t)return
const n=new Map
e.querySelectorAll("aside.onebox").forEach((e=>{for(let i=1;i<=6;++i){const t=e.querySelectorAll(`h${i} a[href]`)
if(t.length>0)return void n.set(e,t[0])}const t=e.querySelectorAll("header a[href]")
t.length>0&&n.set(e,t[0])})),t.forEach((t=>{!t.clicks||t.clicks<1||e.querySelectorAll("a[href]").forEach((e=>{const r=e.getAttribute("href")
let o=r===t.url
if(t.internal&&/^\/uploads\//.test(t.url)&&(o=r.includes(t.url)),t.internal&&/\?/.test(r)&&(o=r.split("?")[0]===t.url),o&&(0,s.isValidLink)(e)){const r=e.closest(".onebox")
if(!r||!n.has(r)||n.get(r)===e){const n=i.default.t("topic_map.clicks",{count:t.clicks})
e.appendChild(document.createTextNode(" ")),e.appendChild((0,c.default)(`<span class='badge badge-notification clicks' title='${n}'>${(0,l.number)(t.clicks)}</span>`)[0])}}}))}))}async _toggleQuote(e){if(this.expanding)return
this.expanding=!0
const i=e.querySelector("blockquote")
if(!i)return
e.dataset.expanded?delete e.dataset.expanded:e.dataset.expanded=!0
const r=i.id
if(e.dataset.expanded){this._updateQuoteElements(e,"chevron-up"),this.originalQuoteContents.set(r,i.innerHTML)
const l=i.textContent.trim()||this.attrs.cooked.querySelector("blockquote").textContent.trim()
i.innerHTML=a.spinnerHTML
const u=parseInt(e.dataset.topic||this.attrs.topicId,10),c=parseInt(e.dataset.post,10)
try{const e=await(0,n.ajax)(`/posts/by_number/${u}/${c}`),r=this._post(),o=r.quoted||{}
o[e.id]=e,r.set("quoted",o)
const s=b("div")
s.classList.add("expanded-quote"),s.dataset.postId=e.id,s.innerHTML=e.cooked,this._decorateAndAdopt(s),(0,t.default)(s,l,{matchCase:!0}),i.innerHTML="",i.appendChild(s)}catch(s){if([403,404].includes(s.jqXHR.status)){const e=403===s.jqXHR.status?"lock":"far-trash-alt"
i.innerHTML=`<div class='expanded-quote icon-only'>${(0,o.iconHTML)(e)}</div>`}}}else this._updateQuoteElements(e,"chevron-down"),i.innerHTML=this.originalQuoteContents.get(i.id)
this.expanding=!1}_urlForPostNumber(e){return e>0?`${this.attrs.topicUrl}/${e}`:this.attrs.topicUrl}_updateQuoteElements(e,t){const n=i.default.t("post.follow_quote"),r=e.dataset.post,s=e.dataset.topic
let l=""
if(s&&r&&s===this.attrs.topicId?.toString()){const e=(0,o.iconHTML)("arrow-up")
l=`<a href='${this._urlForPostNumber(r)}' title='${n}' class='btn-flat back'>${e}</a>`}const a=e.querySelector(".title")
let u=""
if(!e.dataset.full){const i=(0,o.iconHTML)(t,{title:"post.expand_collapse"}),n=e.querySelector("blockquote")?.id
if(n){u=`<button aria-controls="${n}" aria-expanded="${"true"===e.dataset.expanded}" class="quote-toggle btn-flat">${i}</button>`,a&&(a.style.cursor="pointer")}}if(this.ignoredUsers?.length&&a){const t=a.innerText.trim().slice(0,-1)
t.length>0&&this.ignoredUsers.includes(t)&&(e.querySelectorAll("p").forEach((e=>e.remove())),e.classList.add("ignored-user"))}const c=e.querySelector(".quote-controls")
c&&(c.innerHTML=u+l)}_insertQuoteControls(e){const t=e.querySelectorAll("aside.quote")
0!==t.length&&(this.originalQuoteContents=new Map,t.forEach(((e,t)=>{if(e.dataset.post){const i=`quote-id-${e.dataset.topic}-${e.dataset.post}-${t}`,n=e.querySelector("blockquote")
n&&(n.id=i),this._updateQuoteElements(e,"chevron-down")
const r=e.querySelector(".title")
if(!r)return
if(e.classList.contains("quote-post-not-found"))return void(e.dataset.username?r.innerHTML=(0,u.escape)(e.dataset.username):r.remove())
e.dataset.full||r.dataset.hasQuoteControls||(r.addEventListener("click",(t=>{if(t.target.closest("a"))return!0
this._toggleQuote(e)})),r.dataset.hasQuoteControls=!0)}})))}_computeCooked(){const e=b("div")
return e.classList.add("cooked"),(this.attrs.firstPost||this.attrs.embeddedPost)&&this.ignoredUsers&&this.ignoredUsers.length>0&&this.ignoredUsers.includes(this.attrs.username)?(e.classList.add("post-ignored"),e.innerHTML=i.default.t("post.ignored")):e.innerHTML=this.attrs.cooked,e}_initUserStatusOnMentions(){this._isInComposerPreview||(this._trackMentionedUsersStatus(),this._rerenderUserStatusOnMentions())}_destroyTippyInstances(){this.tippyInstances.forEach((e=>{e.destroy()}))}_rerenderUserStatusOnMentions(){this._destroyTippyInstances(),this._post()?.mentioned_users?.forEach((e=>this._rerenderUserStatusOnMention(this.cookedDiv,e)))}_rerenderUserStatusOnMention(e,t){const i=(0,d.default)(`/u/${t.username.toLowerCase()}`)
e.querySelectorAll(`a.mention[href="${i}"]`).forEach((e=>{(0,p.updateUserStatusOnMention)(e,t.status,this.tippyInstances)}))}_trackMentionedUsersStatus(){this._post()?.mentioned_users?.forEach((e=>{e.trackStatus?.(),e.on?.("status-changed",this,"_rerenderUserStatusOnMentions")}))}_stopTrackingMentionedUsersStatus(){this._post()?.mentioned_users?.forEach((e=>{e.stopTrackingStatus?.(),e.off?.("status-changed",this,"_rerenderUserStatusOnMentions")}))}_post(){return this.decoratorHelper?.getModel?.()}}e.default=y,y.prototype.type="Widget"})),define("discourse/widgets/post-edits-indicator",["exports","I18n","discourse/widgets/widget","discourse/lib/formatter"],(function(e,t,i,n){function r(e){return 3e6*e}function o(e,t){if(!t)return
const i=Date.now(),n=t.getTime()
return n>i-r(e.history_hours_low)?"heatmap-high":n>i-r(e.history_hours_medium)?"heatmap-med":n>i-r(e.history_hours_high)?"heatmap-low":void 0}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.historyHeat=o
var s=(0,i.createWidget)("post-edits-indicator",{tagName:"div.post-info.edits",html(e){let i="pencil-alt"
const r=new Date(e.updated_at)
let s=o(this.siteSettings,r)
const l=(0,n.longDate)(r)
let a
return e.wiki?(i="far-edit",s=`${s||""} wiki`.trim(),a=e.version>1?t.default.t("post.wiki_last_edited_on",{dateTime:l}):t.default.t("post.wiki.about")):a=t.default.t("post.last_edited_on",{dateTime:l}),this.attach("flat-button",{icon:i,translatedTitle:a,className:s,action:"onPostEditsIndicatorClick",translatedAriaLabel:t.default.t("post.edit_history"),translatedLabel:e.version>1?e.version-1:""})},onPostEditsIndicatorClick(){this.attrs.wiki&&1===this.attrs.version?this.sendWidgetAction("editPost"):this.attrs.canViewEditHistory&&this.sendWidgetAction("showHistory")}})
e.default=s})),define("discourse/widgets/post-gap",["exports","I18n","discourse/widgets/widget"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,i.createWidget)("post-gap",{tagName:"div.gap",buildKey:e=>`post-gap-${e.pos}-${e.postId}`,defaultState:()=>({loading:!1}),html:(e,i)=>i.loading?t.default.t("loading"):t.default.t("post.gap",{count:e.gap.length}),click(){const{attrs:e,state:t}=this
if(t.loading)return
t.loading=!0
const i={gap:e.gap,post:this.model}
return this.sendWidgetAction("before"===e.pos?"fillGapBefore":"fillGapAfter",i).then((()=>{t.loading=!1,this.appEvents.trigger("post-stream:gap-expanded",{post_id:this.model.id})}))}})
e.default=n})),define("discourse/widgets/post-links",["exports","discourse/widgets/widget","virtual-dom","discourse-common/lib/icon-library","discourse/widgets/emoji"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=(0,t.createWidget)("post-links",{tagName:"div.post-links-container",buildKey:e=>`post-links-${e.id}`,defaultState:()=>({collapsed:!0}),linkHtml(e){const t=(0,r.replaceEmoji)(e.title)
return e.clicks&&t.push((0,i.h)("span.badge.badge-notification.clicks",e.clicks.toString())),(0,i.h)("li",(0,i.h)("a.track-link",{className:"inbound",attributes:{href:e.url}},[(0,n.iconNode)("link"),t]))},html(e,t){if(!this.attrs.links||0===this.attrs.links.length)return
const n=this.attrs.links.filter((e=>e.reflection)).uniqBy("title")
if(0===n.length)return
const r=[]
if(n.length<=5||!t.collapsed)n.forEach((e=>r.push(this.linkHtml(e))))
else{const e=Math.min(5,n.length)
for(let t=0;t<e;t++)r.push(this.linkHtml(n[t]))
n.length>e&&r.push((0,i.h)("li",this.attach("link",{labelCount:"post_links.title",title:"post_links.about",count:n.length-e,action:"expandLinks",className:"expand-links"})))}return r.length?(0,i.h)("ul.post-links",r):void 0},expandLinks(){this.state.collapsed=!1}})
e.default=o}))
define("discourse/widgets/post-menu",["exports","discourse/widgets/widget","@ember/runloop","discourse-common/lib/later","rsvp","discourse/lib/bookmark","virtual-dom","discourse/lib/show-modal","discourse/widgets/actions-summary","I18n","discourse/models/bookmark","discourse-common/config/environment"],(function(e,t,i,n,r,o,s,l,a,u,c,d){Object.defineProperty(e,"__esModule",{value:!0}),e.addButton=function(e,t){h[e]=t},e.apiExtraButtons=void 0,e.buildButton=b,e.default=void 0,e.removeButton=function(e,t){f[e]??=[],f[e].push(t||(()=>!0))},e.resetPostMenuExtraButtons=function(){for(const e of Object.keys(m))delete m[e]
h={},f={}}
const p={}
let m={}
e.apiExtraButtons=m
let h={},f={}
function g(e,t){p[e]=t}function b(e,t){let{attrs:i,state:n,siteSettings:r,settings:o,currentUser:s}=t,l=!0
f[e]&&(l=!f[e].some((e=>e(i,n,r,o,s))))
let a=p[e]
if(l&&a){let t=a(i,n,r,o,s)
return t&&!t.id&&(t.id=e),t}}function y(e,t){const i=e.likeCount
if(i>0){const n=e.liked?1===i?"post.has_likes_title_only_you":"post.has_likes_title_you":"post.has_likes_title"
let r=e.yours?"d-liked":"",o=e.yours
const s=e.yours?"my-likes":"regular-likes"
e.showLike||(r=e.yours?"d-liked":"d-unliked",o=!0)
let l="false"
return t?.likedUsers&&t.likedUsers.length>0&&(l="true"),{action:"toggleWhoLiked",title:n,className:`button-count like-count highlight-action ${s}`,contents:i,icon:r,iconRight:!0,addContainer:o,titleOptions:{count:e.liked?i-1:i},translatedAriaLabel:u.default.t("post.sr_post_like_count_button",{count:i}),ariaPressed:l}}}function _(e,t,i){const n=e.indexOf(t);-1!==n&&(e[n]=i)}g("read-count",((e,t)=>{if(e.showReadIndicator){const i=e.readCount
if(i>0){let e="false"
return t?.readers&&t.readers.length>0&&(e="true"),{action:"toggleWhoRead",title:"post.controls.read_indicator",className:"button-count read-indicator",contents:i,iconRight:!0,addContainer:!1,translatedAriaLabel:u.default.t("post.sr_post_read_count_button",{count:i}),ariaPressed:e}}}})),g("read",(e=>{const t=e.readCount>0
if(e.showReadIndicator&&t)return{action:"toggleWhoRead",title:"post.controls.read_indicator",icon:"book-reader",before:"read-count",addContainer:!1}})),g("like-count",y),g("like",((e,t,i,n,r)=>{if(!e.showLike)return y(e)
const o=e.liked?"toggle-like has-like fade-out":"toggle-like like",s={action:"like",icon:e.liked?"d-liked":"d-unliked",className:o,before:"like-count",data:{"post-id":e.id}}
return e.liked&&!e.canToggleLike?s.title="post.controls.has_liked":s.title=e.liked?"post.controls.undo_like":"post.controls.like",r&&!e.canToggleLike&&(s.disabled=!0),s})),g("flag-count",(e=>{let t="button-count"
return e.reviewableScorePendingCount>0&&(t+=" has-pending"),{className:t,contents:(0,s.h)("span",e.reviewableScoreCount.toString()),url:`/review/${e.reviewableId}`}})),g("flag",(e=>{if(e.reviewableId||e.canFlag&&!e.hidden){let t={action:"showFlags",title:"post.controls.flag",icon:"flag",className:"create-flag"}
return e.reviewableId&&(t.before="flag-count"),t}})),g("edit",(e=>{if(e.canEdit)return{action:"editPost",className:"edit",title:"post.controls.edit",icon:"pencil-alt",alwaysShowYours:!0}})),g("reply-small",(e=>{if(!e.canCreatePost)return
return{action:"replyToPost",title:"post.controls.reply",icon:"reply",className:"reply",translatedAriaLabel:u.default.t("post.sr_reply_to",{post_number:e.post_number,username:e.username})}})),g("wiki-edit",(e=>{if(e.canEdit){const t={action:"editPost",className:"edit create",title:"post.controls.edit",icon:"far-edit",alwaysShowYours:!0}
return e.mobileView||(t.label="post.controls.edit_action"),t}})),g("replies",((e,t,i)=>{const n=e.replyCount
if(!n)return
let r,o="toggleRepliesBelow",s=t.repliesShown?"chevron-up":"chevron-down"
return i.enable_filtered_replies_view&&(o="toggleFilteredRepliesView",s=t.filteredRepliesShown?"chevron-up":"chevron-down"),1===n&&e.replyDirectlyBelow&&i.suppress_reply_directly_below?void 0:(i.enable_filtered_replies_view||(r=t.repliesShown?"true":"false"),{action:o,icon:s,className:"show-replies",titleOptions:{count:n},title:i.enable_filtered_replies_view?t.filteredRepliesShown?"post.view_all_posts":"post.filtered_replies_hint":"",labelOptions:{count:n},label:e.mobileView?"post.has_replies_count":"post.has_replies",iconRight:!i.enable_filtered_replies_view||e.mobileView,disabled:!!e.deleted,translatedAriaLabel:u.default.t("post.sr_expand_replies",{count:n}),ariaExpanded:!i.enable_filtered_replies_view&&t.repliesShown?"true":"false",ariaPressed:r,ariaControls:`embedded-posts__bottom--${e.post_number}`})})),g("share",(()=>({action:"share",className:"share",title:"post.controls.share",icon:"d-post-share"}))),g("reply",((e,t,i,n)=>{const r={action:"replyToPost",title:"post.controls.reply",icon:"reply",className:"reply create fade-out",translatedAriaLabel:u.default.t("post.sr_reply_to",{post_number:e.post_number,username:e.username})}
if(e.canCreatePost)return!n.showReplyTitleOnMobile&&e.mobileView||(r.label="topic.reply.title"),r})),g("bookmark",((e,t,i,n,r)=>{if(!e.canBookmark)return
let s=["bookmark","with-reminder"],l="bookmarks.not_bookmarked",a={name:""}
if(e.bookmarked){if(s.push("bookmarked"),e.bookmarkReminderAt){let t=(0,o.formattedReminderTime)(e.bookmarkReminderAt,r.user_option.timezone)
l="bookmarks.created_with_reminder",a.date=t}else l="bookmarks.created"
e.bookmarkName&&(a.name=e.bookmarkName)}return{id:e.bookmarked?"unbookmark":"bookmark",action:"toggleBookmark",title:l,titleOptions:a,className:s.join(" "),icon:e.bookmarkReminderAt?c.WITH_REMINDER_ICON:c.NO_REMINDER_ICON}})),g("admin",(e=>{if(e.canManage||e.canWiki||e.canEditStaffNotes)return{action:"openAdminMenu",title:"post.controls.admin",className:"show-post-admin-menu",icon:"wrench"}})),g("delete",(e=>e.canRecoverTopic?{id:"recover_topic",action:"recoverPost",title:"topic.actions.recover",icon:"undo",className:"recover"}:e.canDeleteTopic?{id:"delete_topic",action:"deletePost",title:"post.controls.delete_topic",icon:"far-trash-alt",className:"delete"}:e.canRecover?{id:"recover",action:"recoverPost",title:"post.controls.undelete",icon:"undo",className:"recover"}:e.canDelete?{id:"delete",action:"deletePost",title:"post.controls.delete",icon:"far-trash-alt",className:"delete"}:e.showFlagDelete?{id:"delete_topic",action:"showDeleteTopicModal",title:"post.controls.delete_topic_disallowed",icon:"far-trash-alt",className:"delete"}:void 0))
var v=(0,t.createWidget)("post-menu",{tagName:"section.post-menu-area.clearfix",settings:{collapseButtons:!0,buttonType:"flat-button",showReplyTitleOnMobile:!1},defaultState:()=>({collapsed:!0,likedUsers:[],readers:[],adminVisible:!1}),buildKey:e=>`post-menu-${e.id}`,attachButton(e){let t=b(e,this)
if(t){let e=this.attach(this.settings.buttonType,t)
if(t.before){let i=this.attachButton(t.before)
return(0,s.h)("div.double-button",[i,e])}return t.addContainer?(0,s.h)("div.double-button",[e]):e}},menuItems(){return this.siteSettings.post_menu.split("|").filter(Boolean)},html(e,n){const{currentUser:r,keyValueStore:o,siteSettings:l}=this,a=(l.post_menu_hidden_items||"").split("|").filter((t=>!e.bookmarked||"bookmark"!==t))
if(r&&o){o.getInt("likedPostId")===e.id&&(o.remove("likedPostId"),(0,i.next)((()=>this.sendWidgetAction("toggleLike"))))}const c=[]
let d=[]
const p=this.menuItems()
if(e.wiki&&e.canEdit&&(_(p,"edit","reply-small"),_(p,"reply","wiki-edit")),p.forEach((t=>{const i=this.attachButton(t,e)
i&&(c.push(i),(e.yours&&i.attrs&&i.attrs.alwaysShowYours||e.reviewableId&&"flag"===t||!a.includes(t))&&d.push(i))})),this.settings.collapseButtons||(d=c),!n.collapsed||c.length<=d.length+1)d=c,n.collapsed&&(n.collapsed=!1)
else{const e=this.attach("flat-button",{action:"showMoreActions",title:"show_more",className:"show-more-actions",icon:"ellipsis-h"})
d.splice(d.length-1,0,e)}Object.values(h).forEach((t=>{let i=!0
if(f[name]&&(i=!f[name].some((t=>t(e,this.state,this.siteSettings,this.settings,this.currentUser)))),i&&t){const i=t(e,this.state,this.siteSettings,this.settings,this.currentUser)
if(i){const{position:e,beforeButton:t,afterButton:r}=i
delete i.position
let o=this.attach(this.settings.buttonType,i)
const l=[]
if(t&&l.push(t(s.h)),l.push(o),r&&l.push(r(s.h)),o=(0,s.h)("span.extra-buttons",l),o)switch(e){case"first":d.unshift(o)
break
case"second":d.splice(1,0,o)
break
case"second-last-hidden":n.collapsed||d.splice(d.length-2,0,o)
break
default:d.push(o)}}}}))
const m=[],g=this.attachButton("replies",e)
g&&m.push(g)
const b=(0,t.applyDecorators)(this,"extra-post-controls",e,n)
m.push(b)
const y=(0,t.applyDecorators)(this,"extra-controls",e,n),v=[...(0,t.applyDecorators)(this,"before-extra-controls",e,n),...d,...y]
m.push((0,s.h)("div.actions",v)),n.adminVisible&&m.push(this.attach("post-admin-menu",e))
const w=[(0,s.h)("nav.post-controls"+(this.state.collapsed?".collapsed":".expanded")+(l.enable_filtered_replies_view?".replies-button-visible":""),m)]
if(n.readers.length){const e=n.totalReaders-n.readers.length,t=e>0?"post.actions.people.read_capped":"post.actions.people.read",i=e>0?e:n.totalReaders
w.push(this.attach("small-user-list",{users:n.readers,addSelf:!1,listClassName:"who-read",description:t,count:i,ariaLabel:u.default.t("post.actions.people.sr_post_readers_list_description")}))}if(n.likedUsers.length){const t=n.total-n.likedUsers.length,i=t>0?"post.actions.people.like_capped":"post.actions.people.like",r=t>0?t:n.total
w.push(this.attach("small-user-list",{users:n.likedUsers,addSelf:e.liked&&0===t,listClassName:"who-liked",description:i,count:r,ariaLabel:u.default.t("post.actions.people.sr_post_likers_list_description")}))}return w},openAdminMenu(){this.state.adminVisible=!0},closeAdminMenu(){this.state.adminVisible=!1},showDeleteTopicModal(){(0,l.default)("delete-topic-disallowed")},showMoreActions(){this.currentUser&&this.siteSettings.enable_user_tips&&this.currentUser.hideUserTipForever("post_menu"),this.state.collapsed=!1
return(this.state.likedUsers.length?r.Promise.resolve():this.getWhoLiked()).then((()=>{if(!this.state.readers.length&&this.attrs.showReadIndicator)return this.getWhoRead()}))},like(){const{attrs:e,currentUser:t,keyValueStore:i}=this
if(!t)return i&&i.set({key:"likedPostId",value:e.id}),this.sendWidgetAction("showLogin")
if(this.currentUser&&this.siteSettings.enable_user_tips&&this.currentUser.hideUserTipForever("post_menu"),this.capabilities.canVibrate&&!(0,d.isTesting)()&&navigator.vibrate(5),e.liked)return this.sendWidgetAction("toggleLike")
const o=document.querySelector(`.toggle-like[data-post-id="${e.id}"] .d-icon`)
return o.closest(".toggle-like").classList.add("has-like"),o.classList.add("heart-animation"),new r.Promise((e=>{(0,n.default)((()=>{this.sendWidgetAction("toggleLike").then((()=>e()))}),400)}))},refreshLikes(){if(this.state.likedUsers.length)return this.getWhoLiked()},refreshReaders(){if(this.state.readers.length)return this.getWhoRead()},getWhoLiked(){const{attrs:e,state:t}=this
return this.store.find("post-action-user",{id:e.id,post_action_type_id:2}).then((e=>{t.likedUsers=e.map(a.smallUserAtts),t.total=e.totalRows}))},getWhoRead(){const{attrs:e,state:t}=this
return this.store.find("post-reader",{id:e.id}).then((e=>{t.readers=e.map(a.smallUserAtts),t.totalReaders=e.totalRows}))},toggleWhoLiked(){const e=this.state
if(!e.likedUsers.length)return this.getWhoLiked()
e.likedUsers=[]},toggleWhoRead(){const e=this.state
if(!this.state.readers.length)return this.getWhoRead()
e.readers=[]}})
e.default=v})),define("discourse/widgets/post-placeholder",["exports","discourse/widgets/widget"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createWidget)("post-placeholder",{tagName:"article.placeholder",template:function(e,t){var i=[]
i.push("\n    ")
var n=[]
n.push("\n      ")
var r=[]
r.push("\n        ")
r.push(virtualDom.h("div",{className:"placeholder-avatar placeholder-animation",attributes:{}},[])),r.push("\n      "),n.push(virtualDom.h("div",{className:"topic-avatar",attributes:{}},r)),n.push("\n      ")
var o=[]
o.push("\n        ")
o.push(virtualDom.h("div",{className:"placeholder-text placeholder-animation",attributes:{}},[])),o.push("\n        ")
o.push(virtualDom.h("div",{className:"placeholder-text placeholder-animation",attributes:{}},[])),o.push("\n        ")
return o.push(virtualDom.h("div",{className:"placeholder-text placeholder-animation",attributes:{}},[])),o.push("\n      "),n.push(virtualDom.h("div",{className:"topic-body",attributes:{}},o)),n.push("\n    "),i.push(virtualDom.h("div",{className:"row",attributes:{}},n)),i.push("\n  "),i}})
e.default=i})),define("discourse/widgets/post-small-action",["exports","I18n","discourse/widgets/raw-html","discourse/lib/formatter","discourse/widgets/post","@ember/object","discourse/widgets/widget","virtual-dom","discourse-common/lib/icon-library","discourse/lib/url","@ember/template"],(function(e,t,i,n,r,o,s,l,a,u,c){function d(e,i,r,o){const s=new Date(i),l=(0,n.autoUpdatingRelativeAge)(s,{format:"medium-with-ago-and-on"})
let a=""
return r&&(a=m.includes(e)?`<a class="mention-group" href="/g/${r}">@${r}</a>`:`<a class="mention" href="${(0,u.userPath)(r)}">@${r}</a>`),(0,c.htmlSafe)(t.default.t(`action_codes.${e}`,{who:a,when:l,path:o}))}Object.defineProperty(e,"__esModule",{value:!0}),e.actionDescription=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
return(0,o.computed)(e,t,(function(){const r=this.get(e)
if(r)return d(r,this.get(t),this.get(i),n?this.get(n):null)}))},e.actionDescriptionHtml=d,e.addGroupPostSmallActionCode=function(e){m.push(e)},e.addPostSmallActionClassesCallback=function(e){p.push(e)},e.addPostSmallActionIcon=function(e,t){h[e]=t},e.default=void 0,e.resetPostSmallActionClassesCallbacks=function(){p.length=0}
const p=[],m=["invited_group","removed_group"],h={"closed.enabled":"lock","closed.disabled":"unlock-alt","autoclosed.enabled":"lock","autoclosed.disabled":"unlock-alt","archived.enabled":"folder","archived.disabled":"folder-open","pinned.enabled":"thumbtack","pinned.disabled":"thumbtack unpinned","pinned_globally.enabled":"thumbtack","pinned_globally.disabled":"thumbtack unpinned","banner.enabled":"thumbtack","banner.disabled":"thumbtack unpinned","visible.enabled":"far-eye","visible.disabled":"far-eye-slash",split_topic:"sign-out-alt",invited_user:"plus-circle",invited_group:"plus-circle",user_left:"minus-circle",removed_user:"minus-circle",removed_group:"minus-circle",public_topic:"comment",private_topic:"envelope",autobumped:"hand-point-right"}
var f=(0,s.createWidget)("post-small-action",{buildKey:e=>`post-small-act-${e.id}`,tagName:"div.small-action.onscreen-post",buildId:e=>`post_${e.post_number}`,buildClasses(e){let t=[]
return e.deleted&&t.push("deleted"),p.length>0&&p.forEach((i=>{const n=i.call(this,e)
n&&t.push(...n)})),t},html(e){const t=[],n=[],o=[]
if(t.push(r.avatarFor.call(this,"small",{template:e.avatar_template,username:e.username,url:e.usernameUrl})),e.actionDescriptionWidget)t.push(this.attach(e.actionDescriptionWidget,e))
else{const n=d(e.actionCode,new Date(e.created_at),e.actionCodeWho,e.actionCodePath)
t.push(new i.default({html:`<p>${n}</p>`}))}return e.canRecover&&n.push(this.attach("button",{className:"btn-flat small-action-recover",icon:"undo",action:"recoverPost",title:"post.controls.undelete"})),e.canEdit&&!e.canRecover&&n.push(this.attach("button",{className:"btn-flat small-action-edit",icon:"pencil-alt",action:"editPost",title:"post.controls.edit"})),e.canDelete&&n.push(this.attach("button",{className:"btn-flat btn-danger small-action-delete",icon:"trash-alt",action:"deletePost",title:"post.controls.delete"})),!e.actionDescriptionWidget&&e.cooked&&o.push(new i.default({html:`<div class='small-action-custom-message'>${e.cooked}</div>`})),[(0,l.h)("div.topic-avatar",(0,a.iconNode)(h[e.actionCode]||"exclamation")),(0,l.h)("div.small-action-desc",[(0,l.h)("div.small-action-contents",t),(0,l.h)("div.small-action-buttons",n),o])]}})
e.default=f})),define("discourse/widgets/post-stream",["exports","discourse/lib/url","I18n","discourse/lib/posts-with-placeholders","discourse/components/mount-widget","discourse/widgets/post","discourse/widgets/widget","discourse-common/lib/debounce","virtual-dom","discourse-common/lib/icon-library","discourse/lib/transform-post"],(function(e,t,i,n,r,o,s,l,a,u,c){Object.defineProperty(e,"__esModule",{value:!0}),e.addPostTransformCallback=function(e){d=d||[],d.push(e)},e.cloak=function(e,t){if(!m||f[e.id]||h[e.id])return
const i=$(`#post_${e.post_number}`).parent()
f[e.id]=!0,g[e.id]=i.outerHeight(),t.dirtyKeys.keyDirty(`post-${e.id}`),(0,l.default)(t,"queueRerender",1e3)},e.default=void 0,e.disableCloaking=function(){m=!1},e.postTransformCallbacks=p,e.preventCloak=function(e){h[e]=!0},e.uncloak=function(e,t){if(!m||!f[e.id])return
f[e.id]=null,t.dirtyKeys.keyDirty(`post-${e.id}`),t.queueRerender()}
let d=null
function p(e){if(null!==d)for(let t=0;t<d.length;t++)d[t].call(this,e)}let m=!0
const h={}
let f={},g={};(0,r.addWidgetCleanCallback)("post-stream",(()=>{f={},g={}})),(0,s.createWidget)("posts-filtered-notice",{buildKey:e=>`posts-filtered-notice-${e.id}`,buildClasses:()=>["posts-filtered-notice"],html(e){const t=e.streamFilters
if(t.filter_upwards_post_id||t.mixedHiddenPosts)return[(0,a.h)("span.filtered-replies-viewing",i.default.t("post.filtered_replies.viewing_subset")),this.attach("filter-show-all",e)]
if(t.replies_to_post_number){const n=e.posts.findBy("post_number",t.replies_to_post_number)
return[(0,a.h)("span.filtered-replies-viewing",i.default.t("post.filtered_replies_viewing",{count:n.reply_count})),(0,a.h)("span.filtered-user-row",[(0,a.h)("span.filtered-avatar",o.avatarFor.call(this,"small",{template:n.avatar_template,username:n.username,url:n.usernameUrl})),this.attach("filter-jump-to-post",{username:n.username,postNumber:t.replies_to_post_number})]),this.attach("filter-show-all",e)]}if(t.filter&&"summary"===t.filter)return[(0,a.h)("span.filtered-replies-viewing",i.default.t("post.filtered_replies.viewing_summary")),this.attach("filter-show-all",e)]
if(t.username_filters){const t=e.posts[1],n=parseInt(e.filteredPostsCount,10)-1
return[(0,a.h)("span.filtered-replies-viewing",i.default.t("post.filtered_replies.viewing_posts_by",{post_count:n})),(0,a.h)("span.filtered-avatar",o.avatarFor.call(this,"small",{template:t.avatar_template,username:t.username,url:t.usernameUrl})),this.attach("poster-name",t),this.attach("filter-show-all",e)]}return[]}}),(0,s.createWidget)("filter-jump-to-post",{tagName:"a.filtered-jump-to-post",buildKey:e=>`jump-to-post-${e.id}`,html:e=>i.default.t("post.filtered_replies.post_number",{username:e.username,post_number:e.postNumber}),click(){t.default.jumpToPost(this.attrs.postNumber)}}),(0,s.createWidget)("filter-show-all",{tagName:"button.filtered-replies-show-all",buildKey:e=>`filtered-show-all-${e.id}`,buildClasses:()=>["btn","btn-primary"],html:()=>[(0,u.iconNode)("arrows-alt-v"),i.default.t("post.filtered_replies.show_all")],click(){this.sendWidgetAction("cancelFilter"),this.appEvents.trigger("post-stream:filter-show-all",this.attrs.streamFilters)}})
var b=(0,s.createWidget)("post-stream",{tagName:"div.post-stream",html(e){const t=(e.posts||[]).toArray(),i=t.length,r=i>0?t[i-1].post_number:0,o=[],s=e.gaps&&e.gaps.before?e.gaps.before:{},l=e.gaps&&e.gaps.after?e.gaps.after:{},a=this.site.mobileView
let u,d
for(let m=0;m<i;m++){const h=t[m]
if(h instanceof n.Placeholder){o.push(this.attach("post-placeholder"))
continue}const b=m<t.length-1?t[m+1]:null,y=(0,c.default)(this.currentUser,this.site,h,u,b)
y.canCreatePost=e.canCreatePost,y.mobileView=a,(y.canManage||y.canSplitMergeTopic)&&(y.multiSelect=e.multiSelect,e.multiSelect&&(y.selected=e.selectedQuery(h))),e.searchService&&(y.highlightTerm=e.searchService.highlightTerm)
const _=s[h.id]
_&&o.push(this.attach("post-gap",{pos:"before",postId:h.id,gap:_},{model:h}))
const v=new Date(y.created_at).getTime()
if(d){const e=Math.floor((v-d)/864e5)
e>this.siteSettings.show_time_gap_days&&o.push(this.attach("time-gap",{daysSince:e}))}d=v,y.height=g[h.id],y.cloaked=f[h.id],p(y),y.isSmallAction?o.push(this.attach("post-small-action",y,{model:h})):(y.showReadIndicator=e.showReadIndicator,o.push(this.attach("post",y,{model:h})))
const w=l[h.id]
w&&o.push(this.attach("post-gap",{pos:"after",postId:h.id,gap:w},{model:h})),m!==i-1&&r<=e.highestPostNumber&&e.lastReadPostNumber===h.post_number&&o.push(this.attach("topic-post-visited-line",{post_number:h.post_number})),u=h}return e.streamFilters&&Object.keys(e.streamFilters).length&&(Object.keys(s).length>0||Object.keys(l).length>0)&&o.push(this.attach("posts-filtered-notice",{posts:t,streamFilters:e.streamFilters,filteredPostsCount:e.filteredPostsCount})),o}})
e.default=b})),define("discourse/widgets/post-user-status",["@ember/template-factory","discourse/widgets/widget","discourse/widgets/render-glimmer"],(function(e,t,i){(0,t.createWidget)("post-user-status",{tagName:"span.user-status-message-wrap",html(t){return[new i.default(this,"div",(0,e.createTemplateFactory)({id:"+3SEKifK",block:'[[[8,[39,0],null,[["@status"],[[30,1,["attrs"]]]],null]],["@data"],false,["user-status-message"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/discourse/widgets/post-user-status.js",isStrictMode:!1}),{attrs:t})]}})})),define("discourse/widgets/post",["exports","discourse/widgets/widget","discourse/lib/utilities","discourse-common/lib/get-url","discourse/widgets/decorator-helper","discourse/lib/url","I18n","discourse/widgets/post-cooked","rsvp","discourse/widgets/raw-html","discourse/helpers/node","virtual-dom","discourse-common/lib/icon-library","discourse/widgets/post-stream","discourse/lib/settings","discourse/lib/formatter","discourse/lib/transform-post","discourse/lib/avatar-flair","discourse/lib/pwa-utils","discourse/lib/user-tips","discourse/components/modal/share-topic","@ember/application"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b,y,_,v,w){function k(e){let t=(0,g.transformBasicPost)(e)
return(0,m.postTransformCallbacks)(t),t}function x(e,t){const r=(0,i.translateSize)(e),o=(0,i.avatarUrl)(t.template,r)
if(!o||0===o.length)return
let l
t.hideTitle||(l=t.name||(0,i.formatUsername)(t.username))
let a=""
t.alt&&(a=s.default.t(t.alt))
let u="avatar"+(t.extraClasses?" "+t.extraClasses:"")
const c={attributes:{alt:a,width:r,height:r,src:(0,n.getURLWithCDN)(o),title:l,"aria-label":l,loading:"lazy",tabindex:"-1"},className:u}
return(0,d.h)("img",c)}function P(e,t,i){const n={href:t.url,"data-user-card":t.username,"aria-hidden":!0}
return i&&Object.assign(n,i),(0,d.h)("a",{className:`trigger-user-card ${t.className||""}`,attributes:n},x(e,t))}function O(e,t){return e.replyToUsername&&(!e.replyDirectlyAbove||!t.suppress_reply_directly_above)}Object.defineProperty(e,"__esModule",{value:!0}),e.addPostClassesCallback=function(e){T=T||[],T.push(e)},e.avatarFor=P,e.avatarImg=x,e.default=void 0,(0,t.createWidget)("select-post",{tagName:"div.select-posts",html(e){const t=[]
!e.selected&&e.post_number>1&&(e.replyCount>0&&t.push(this.attach("button",{label:"topic.multi_select.select_replies.label",title:"topic.multi_select.select_replies.title",action:"selectReplies",className:"select-replies"})),t.push(this.attach("button",{label:"topic.multi_select.select_below.label",title:"topic.multi_select.select_below.title",action:"selectBelow",className:"select-below"})))
const i=`topic.multi_select.${e.selected?"selected":"select"}_post`
return t.push(this.attach("button",{label:i+".label",title:i+".title",action:"togglePostSelection",className:"select-post"})),t}}),(0,t.createWidget)("reply-to-tab",{tagName:"a.reply-to-tab",buildKey:e=>`reply-to-tab-${e.id}`,title:"post.in_reply_to",defaultState:()=>({loading:!1}),buildAttributes(e){let t={tabindex:"0"}
return this.attrs.mobileView||(t["aria-controls"]=`embedded-posts__top--${e.post_number}`,t["aria-expanded"]=this.attrs.repliesAbove.length?"true":"false"),t},html(e,t){const n=t.loading?(0,d.h)("div.spinner.small"):(0,p.iconNode)("share"),r=(0,h.prioritizeNameFallback)(e.replyToName,e.replyToUsername)
return[n," ",x("small",{template:e.replyToAvatarTemplate,username:r})," ",(0,d.h)("span",(0,i.formatUsername)(r))]},click(){this.state.loading=!0,this.sendWidgetAction("toggleReplyAbove").then((()=>this.state.loading=!1))}}),(0,t.createWidget)("post-avatar-user-info",{tagName:"div.post-avatar-user-info",html(e){return this.attach("poster-name",e)}}),(0,t.createWidget)("post-avatar",{tagName:"div.topic-avatar",settings:{size:"large",displayPosterName:!1},html(e){let t,i=this.siteSettings.hide_user_profiles_from_public&&!this.currentUser
t=e.user_id?P.call(this,this.settings.size,{template:e.avatar_template,username:e.username,name:e.name,url:e.usernameUrl,className:"main-avatar "+(i?"non-clickable":""),hideTitle:!0},{tabindex:"-1"}):(0,p.iconNode)("far-trash-alt",{class:"deleted-user-avatar"})
const n=[t]
if(e.flair_group_id)if(e.flair_url||e.flair_bg_color)n.push(this.attach("avatar-flair",e))
else{const t=(0,b.default)(this.site,e)
t&&n.push(this.attach("avatar-flair",t))}const r=[(0,d.h)("div.post-avatar",n)]
return this.settings.displayPosterName&&r.push(this.attach("post-avatar-user-info",e)),r}}),(0,t.createWidget)("post-locked-indicator",{tagName:"div.post-info.post-locked",template:function(e,t){var i=__widget_helpers.iconNode,n=[]
return n.push(i("lock")),n},title:()=>s.default.t("post.locked")}),(0,t.createWidget)("post-email-indicator",{tagName:"div.post-info.via-email",title:e=>e.isAutoGenerated?s.default.t("post.via_auto_generated_email"):s.default.t("post.via_email"),buildClasses:e=>e.canViewRawEmail?"raw-email":null,html:e=>e.isAutoGenerated?(0,p.iconNode)("envelope"):(0,p.iconNode)("far-envelope"),click(){this.attrs.canViewRawEmail&&this.sendWidgetAction("showRawEmail")}}),(0,t.createWidget)("post-meta-data",{tagName:"div.topic-meta-data",buildAttributes:()=>({role:"heading","aria-level":"2"}),settings:{displayPosterName:!0},html(e){let t=[]
if(e.isWhisper){const e=this.site.get("whispers_allowed_groups_names")
let i=""
i=e?.length>0?s.default.t("post.whisper_groups",{groupNames:e.join(", ")}):s.default.t("post.whisper"),t.push((0,d.h)("div.post-info.whisper",{attributes:{title:i}},(0,p.iconNode)("far-eye-slash")))}e.via_email&&t.push(this.attach("post-email-indicator",e)),e.locked&&t.push(this.attach("post-locked-indicator",e)),(e.version>1||e.wiki)&&t.push(this.attach("post-edits-indicator",e)),e.multiSelect&&t.push(this.attach("select-post",e)),O(e,this.siteSettings)&&t.push(this.attach("reply-to-tab",e)),t.push(this.attach("post-date",e)),t.push((0,d.h)("div.read-state",{className:e.read?"read":null,attributes:{title:s.default.t("post.unread")}},(0,p.iconNode)("circle")))
let i=[]
return this.settings.displayPosterName&&i.push(this.attach("poster-name",e)),i.push((0,d.h)("div.post-infos",t)),i}}),(0,t.createWidget)("expand-hidden",{tagName:"a.expand-hidden",html:()=>s.default.t("post.show_hidden"),click(){this.sendWidgetAction("expandHidden")}}),(0,t.createWidget)("post-date",{tagName:"div.post-info.post-date",html(e){let t,i="post-date"
return e.wiki&&e.lastWikiEdit?(i+=" last-wiki-edit",t=new Date(e.lastWikiEdit)):t=new Date(e.created_at),this.attach("link",{rawLabel:(0,c.dateNode)(t),className:i,omitSpan:!0,title:"post.sr_date",href:e.shareUrl,action:"showShareModal"})},showShareModal(){const e=this.findAncestorModel(),t=e.topic;(0,w.getOwner)(this).lookup("service:modal").show(v.default,{model:{category:t.category,topic:t,post:e}})}}),(0,t.createWidget)("expand-post-button",{tagName:"button.btn.expand-post",buildKey:e=>`expand-post-button-${e.id}`,defaultState:()=>({loadingExpanded:!1}),html:(e,t)=>t.loadingExpanded?s.default.t("loading"):[s.default.t("post.show_full"),"..."],click(){this.state.loadingExpanded=!0,this.sendWidgetAction("expandFirstPost")}}),(0,t.createWidget)("post-group-request",{buildKey:e=>`post-group-request-${e.id}`,buildClasses:()=>["group-request"],html(e){const t=(0,n.default)("/g/"+e.requestedGroupName+"/requests?filter="+e.username)
return(0,d.h)("a",{attributes:{href:t}},s.default.t("groups.requests.handle"))}}),(0,t.createWidget)("post-contents",{buildKey:e=>`post-contents-${e.id}`,defaultState(e){const t={expandedFirstPost:!1,repliesBelow:[]}
if(this.siteSettings.enable_filtered_replies_view){const i=this.register.lookup("controller:topic")
e.post_number&&(t.filteredRepliesShown=i.replies_to_post_number===e.post_number.toString())}return t},buildClasses(e){const t=["regular"]
return this.state.repliesShown||t.push("contents"),O(e,this.siteSettings)&&t.push("avoid-tab"),t},html(e,i){let n=[new l.default(e,new r.default(this),this.currentUser)]
e.requestedGroupName&&n.push(this.attach("post-group-request",e)),n=n.concat((0,t.applyDecorators)(this,"after-cooked",e,i)),e.cooked_hidden&&e.canSeeHiddenPost&&n.push(this.attach("expand-hidden",e)),!i.expandedFirstPost&&e.expandablePost&&n.push(this.attach("expand-post-button",e))
const o={state:{repliesShown:!!i.repliesBelow.length,filteredRepliesShown:i.filteredRepliesShown}}
n.push(this.attach("post-menu",e,o))
const a=i.repliesBelow
return a.length&&n.push((0,d.h)(`section.embedded-posts.bottom#embedded-posts__bottom--${this.attrs.post_number}`,[a.map((t=>this.attach("embedded-post",t,{model:t.asPost,state:{role:"region","aria-label":s.default.t("post.sr_embedded_reply_description",{post_number:e.post_number,username:t.username})}}))),this.attach("button",{title:"post.collapse",icon:"chevron-up",action:"toggleRepliesBelow",actionParam:"true",className:"btn collapse-up",translatedAriaLabel:s.default.t("post.sr_collapse_replies")})])),n},_date(e){const t=e.wiki&&e.lastWikiEdit&&new Date(e.lastWikiEdit),i=new Date(e.created_at)
return t||i},toggleFilteredRepliesView(){const e=this.findAncestorModel(),t=this.register.lookup("controller:topic"),i=e.get("topic.postStream.filterRepliesToPostNumber")
return i&&i===e.post_number?(t.send("cancelFilter",i),this.state.filteredRepliesShown=!1,a.Promise.resolve()):(this.state.filteredRepliesShown=!0,e.get("topic.postStream").filterReplies(e.post_number,e.id).then((()=>{t.updateQueryParams()})))},toggleRepliesBelow(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"false"
if(this.state.repliesBelow.length)return this.state.repliesBelow=[],void("true"===e&&o.default.routeTo(`${this.attrs.topicUrl}/${this.attrs.post_number}`))
const t=this.findAncestorModel(),i=t?t.get("topic.url"):null
return this.store.find("post-reply",{postId:this.attrs.id}).then((e=>{this.state.repliesBelow=e.map((e=>{let t=k(e)
return delete t.new_user,delete t.deleted,delete t.shareUrl,delete t.firstPost,delete t.usernameUrl,t.customShare=`${i}/${e.post_number}`,t.asPost=this.store.createRecord("post",t),t}))}))},expandFirstPost(){return this.findAncestorModel().expand().then((()=>this.state.expandedFirstPost=!0))},share(){this.currentUser&&this.siteSettings.enable_user_tips&&this.currentUser.hideUserTipForever("post_menu")
const e=this.findAncestorModel();(0,y.nativeShare)(this.capabilities,{url:e.shareUrl}).catch((()=>{const t=e.topic;(0,w.getOwner)(this).lookup("service:modal").show(v.default,{model:{category:t.category,topic:t,post:e}})}))},init(){this.postContentsDestroyCallbacks=[]},destroy(){this.postContentsDestroyCallbacks.forEach((e=>e()))}}),(0,t.createWidget)("post-notice",{tagName:"div.post-notice",buildClasses(e){const t=[e.notice.type.replace(/_/g,"-")]
return new Date-new Date(e.created_at)>864e5*this.siteSettings.old_post_notice_days&&t.push("old"),t},html(e){if("custom"===e.notice.type)return[(0,p.iconNode)("user-shield"),new u.default({html:`<div>${e.notice.cooked}</div>`})]
const t=this.siteSettings.display_name_on_posts&&(0,h.prioritizeNameInUx)(e.name)?e.name:e.username
if("new_user"===e.notice.type)return[(0,p.iconNode)("hands-helping"),(0,d.h)("p",s.default.t("post.notice.new_user",{user:t}))]
if("returning_user"===e.notice.type){const i=(new Date-new Date(e.notice.lastPostedAt))/1e3,n=(0,f.relativeAgeMediumSpan)(i,!0)
return[(0,p.iconNode)("far-smile"),(0,d.h)("p",s.default.t("post.notice.returning_user",{user:t,time:n}))]}}}),(0,t.createWidget)("post-body",{tagName:"div.topic-body.clearfix",html(e,i){const n=this.attach("post-contents",e)
let r=[this.attach("post-meta-data",e)]
return r=r.concat((0,t.applyDecorators)(this,"after-meta-data",e,i)),r.push(n),r.push(this.attach("actions-summary",e)),r.push(this.attach("post-links",e)),e.showTopicMap&&r.push(this.attach("topic-map",e)),r}}),(0,t.createWidget)("post-article",{tagName:"article.boxed.onscreen-post",buildKey:e=>`post-article-${e.id}`,defaultState:()=>({repliesAbove:[]}),buildId:e=>`post_${e.post_number}`,buildClasses(e){let t=[]
return e.via_email&&t.push("via-email"),e.isAutoGenerated&&t.push("is-auto-generated"),t},buildAttributes:e=>({"aria-label":s.default.t("share.post",{postNumber:e.post_number,username:e.username}),role:"region","data-post-id":e.id,"data-topic-id":e.topicId,"data-user-id":e.user_id}),html(e,t){const i=[(0,d.h)("span.tabLoc",{attributes:{"aria-hidden":!0,tabindex:-1}})]
if(t.repliesAbove.length){const n=t.repliesAbove.map((e=>this.attach("embedded-post",e,{model:e.asPost,state:{above:!0}})))
i.push((0,d.h)("div.row",(0,d.h)(`section.embedded-posts.top.topic-body#embedded-posts__top--${e.post_number}`,[this.attach("button",{title:"post.collapse",icon:"chevron-down",action:"toggleReplyAbove",actionParam:"true",className:"btn collapse-down"}),n])))}return!e.deleted_at&&e.notice&&i.push((0,d.h)("div.row",[this.attach("post-notice",e)])),i.push((0,d.h)("div.row",[this.attach("post-avatar",e),this.attach("post-body",{...e,repliesAbove:t.repliesAbove})])),i},_getTopicUrl(){const e=this.findAncestorModel()
return e?e.get("topic.url"):null},toggleReplyAbove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"false"
const t=this.attrs.reply_to_post_number
if(this.siteSettings.enable_filtered_replies_view){const e=this.findAncestorModel(),t=this.register.lookup("controller:topic")
return e.get("topic.postStream").filterUpwards(this.attrs.id).then((()=>{t.updateQueryParams()}))}if(this.attrs.mobileView){const e=this._getTopicUrl()
return e&&o.default.routeTo(`${e}/${t}`),a.Promise.resolve()}if(this.state.repliesAbove.length)return this.state.repliesAbove=[],"true"===e&&o.default.routeTo(`${this.attrs.topicUrl}/${this.attrs.post_number}`),a.Promise.resolve()
{const e=this._getTopicUrl()
return this.store.find("post-reply-history",{postId:this.attrs.id}).then((t=>{this.state.repliesAbove=t.map((t=>{let i=k(t)
return delete i.new_user,delete i.deleted,delete i.shareUrl,delete i.firstPost,delete i.usernameUrl,i.customShare=`${e}/${t.post_number}`,i.asPost=this.store.createRecord("post",i),i}))}))}}})
let T=null
var S=(0,t.createWidget)("post",{buildKey:e=>`post-${e.id}`,services:["dialog"],shadowTree:!0,buildAttributes:e=>e.height?{style:`min-height: ${e.height}px`}:void 0,buildId:e=>e.cloaked?`post_${e.post_number}`:void 0,buildClasses(e){if(e.cloaked)return"cloaked-post"
const t=["topic-post","clearfix"]
if((-1===e.id||e.isSaving||e.staged)&&t.push("staged"),e.selected&&t.push("selected"),e.topicOwner&&t.push("topic-owner"),this.currentUser&&e.user_id===this.currentUser.id&&t.push("current-user-post"),e.groupModerator&&t.push("category-moderator"),e.hidden&&t.push("post-hidden"),e.deleted&&t.push("deleted"),e.primary_group_name&&t.push(`group-${e.primary_group_name}`),e.wiki&&t.push("wiki"),e.isWhisper&&t.push("whisper"),e.isModeratorAction||e.isWarning&&e.firstPost?t.push("moderator"):t.push("regular"),e.userSuspended&&t.push("user-suspended"),T)for(let i=0;i<T.length;i++){let n=T[i].call(this,e)
n&&t.push.apply(t,n)}return t},html(e){return e.cloaked?"":this.attach("post-article",e)},toggleLike(){const e=this.model,t=e.get("likeAction")
if(t&&t.get("canToggle"))return t.togglePromise(e).then((i=>(this.appEvents.trigger("page:like-toggled",e,t),this._warnIfClose(i))))},_warnIfClose(e){if(!e||!e.acted)return
const t=this.keyValueStore,i=t.get("lastWarnedLikes"),n=Date.now()-864e5
if(i&&parseInt(i,10)>n)return
const{remaining:r,max:o}=e
r===Math.ceil(.1*o)&&(this.dialog.alert(s.default.t("post.few_likes_left")),t.set({key:"lastWarnedLikes",value:Date.now()}))},didRenderWidget(){if(!this.currentUser||!this.siteSettings.enable_user_tips)return
const e=document.querySelector(".post-controls .actions .show-more-actions")
this.currentUser.showUserTip({id:"post_menu",titleText:s.default.t("user_tips.post_menu.title"),contentText:s.default.t("user_tips.post_menu.content"),reference:e,appendTo:e?.closest(".post-controls"),placement:"top"})},destroy(){(0,_.hideUserTip)("post_menu")},willRerenderWidget(){(0,_.hideUserTip)("post_menu")}})
e.default=S})),define("discourse/widgets/poster-name",["exports","discourse/widgets/widget","I18n","discourse/lib/utilities","discourse-common/lib/get-url","virtual-dom","discourse-common/lib/icon-library","discourse/lib/settings"],(function(e,t,i,n,r,o,s,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.disableNameSuppression=function(){a=e=>e}
let a=function(e){return e.toLowerCase().replace(/[\s\._-]/g,"")};(0,t.createWidget)("poster-name-title",{tagName:"span.user-title",buildClasses(e){let t=[]
return t.push(e.title),e.titleIsGroup&&t.push(e.primaryGroupName),t=t.map((e=>`user-title--${e.replace(/\s+/g,"-").toLowerCase()}`)),t},html(e){let t=e.title
if(e.primaryGroupName&&e.titleIsGroup){const i=(0,r.default)(`/g/${e.primaryGroupName}`)
t=(0,o.h)("a.user-group",{className:e.extraClasses,attributes:{href:i,"data-group-card":e.primaryGroupName}},e.title)}return t}})
var u=(0,t.createWidget)("poster-name",{tagName:"div.names.trigger-user-card",settings:{showNameAndGroup:!0,showGlyph:!0},didRenderWidget(){this.attrs.user&&(this.attrs.user.trackStatus(),this.attrs.user.on("status-changed",this,"scheduleRerender"))},willRerenderWidget(){this.attrs.user&&(this.attrs.user.off("status-changed",this,"scheduleRerender"),this.attrs.user.stopTrackingStatus())},posterGlyph(e){if(e.moderator||e.groupModerator)return(0,s.iconNode)("shield-alt",{title:i.default.t("user.moderator_tooltip")})},userLink(e,t){return(0,o.h)("a",{attributes:{href:e.usernameUrl,"data-user-card":e.username,class:""+(this.siteSettings.hide_user_profiles_from_public&&!this.currentUser?"non-clickable":"")}},(0,n.formatUsername)(t))},html(e){const i=e.username,n=e.name,r=this.siteSettings.display_name_on_posts&&(0,l.prioritizeNameInUx)(n),s=r?["first","full-name"]:["first","username"]
e.staff&&s.push("staff"),e.admin&&s.push("admin"),e.moderator&&s.push("moderator"),e.groupModerator&&s.push("category-moderator"),e.new_user&&s.push("new-user")
const u=e.primary_group_name
u&&u.length&&s.push(`group--${u}`)
let c=[this.userLink(e,r?n:i)]
if(this.settings.showGlyph){const t=this.posterGlyph(e)
t&&c.push(t)}const d=(0,t.applyDecorators)(this,"after-name",e,this.state)||[]
c=c.concat(d)
const p=[(0,o.h)("span",{className:s.join(" ")},c)]
if(!this.settings.showNameAndGroup)return p
n&&this.siteSettings.display_name_on_posts&&a(n)!==a(i)&&p.push((0,o.h)("span.second."+(r?"username":"full-name"),[this.userLink(e,r?i:n)].concat(d)))
const m=e.user_title,h=e.title_is_group
return m&&m.length&&p.push(this.attach("poster-name-title",{title:m,primaryGroupName:u,titleIsGroup:h})),this.siteSettings.enable_user_status&&this.addUserStatus(p,e),p},addUserStatus(e,t){t.user&&t.user.status&&e.push(this.attach("post-user-status",t.user.status))}})
e.default=u})),define("discourse/widgets/private-message-map",["exports","discourse/widgets/post","I18n","discourse/widgets/widget","discourse-common/lib/get-url","virtual-dom","discourse-common/lib/helpers"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,n.createWidget)("pm-remove-group-link",{tagName:"a.remove-invited.no-text.btn-icon.btn",template:function(e,t){var i=__widget_helpers.iconNode,n=[]
return n.push(i("times")),n},services:["dialog"],click(){this.dialog.deleteConfirm({message:i.default.t("private_message_info.remove_allowed_group",{name:this.attrs.name}),confirmButtonLabel:"private_message_info.remove_group",didConfirm:()=>this.sendWidgetAction("removeAllowedGroup",this.attrs)})}}),(0,n.createWidget)("pm-map-user-group",{tagName:"div.user.group",transform:e=>({href:(0,r.default)(`/g/${e.group.name}`)}),template:function(e,t){var i=__widget_helpers.iconNode,n=[]
n.push("\n    ")
var r=[]
r.push("\n      "),r.push(i("users")),r.push("\n      ")
var o=[]
return o.push(e.group.name),r.push(virtualDom.h("span",{className:"group-name",attributes:{}},o)),r.push("\n    "),n.push(virtualDom.h("a",{className:"group-link",attributes:{href:this.transformed.href}},r)),n.push("\n"),e.isEditing&&e.canRemoveAllowedUsers&&(n.push("        "),n.push(this.attach("pm-remove-group-link",e.group)),n.push("\n")),n.push("  "),n}}),(0,n.createWidget)("pm-remove-link",{tagName:"a.remove-invited.no-text.btn-icon.btn",template:function(e,t){var i=__widget_helpers.iconNode,n=[]
return n.push(i("times")),n},services:["dialog"],click(){const e=this.attrs.isCurrentUser?"leave_message":"remove_allowed_user"
this.dialog.deleteConfirm({message:i.default.t(`private_message_info.${e}`,{name:this.attrs.user.username}),confirmButtonLabel:this.attrs.isCurrentUser?"private_message_info.leave":"private_message_info.remove_user",didConfirm:()=>this.sendWidgetAction("removeAllowedUser",this.attrs.user)})}}),(0,n.createWidget)("pm-map-user",{tagName:"div.user",html(e){const i=e.user,n=(0,o.h)("span.username",i.username)
let r
if(this.site&&this.site.mobileView){const e=(0,t.avatarImg)("tiny",{template:i.avatar_template,username:i.username})
r=(0,o.h)("a",{attributes:{href:i.get("path")}},[e,n])}else{const e=(0,t.avatarFor)("tiny",{template:i.avatar_template,username:i.username})
r=(0,o.h)("a",{attributes:{class:"user-link",href:i.get("path")}},[e,n])}const s=[r],l=e.canRemoveSelfId===i.get("id")
return e.isEditing&&(e.canRemoveAllowedUsers||l)&&s.push(this.attach("pm-remove-link",{user:i,isCurrentUser:l})),s}})
var l=(0,n.createWidget)("private-message-map",{tagName:"section.information.private-message-map",buildKey:e=>`private-message-map-${e.id}`,defaultState:()=>({isEditing:!1}),html(e){const t=[]
e.allowedGroups.length&&t.push(e.allowedGroups.map((t=>this.attach("pm-map-user-group",{group:t,canRemoveAllowedUsers:e.canRemoveAllowedUsers,isEditing:this.state.isEditing})))),e.allowedUsers.length&&t.push(e.allowedUsers.map((t=>this.attach("pm-map-user",{user:t,canRemoveAllowedUsers:e.canRemoveAllowedUsers,canRemoveSelfId:e.canRemoveSelfId,isEditing:this.state.isEditing}))))
let i=""
!this.state.isEditing&&this.site.mobileView&&(0,s.makeArray)(t[0]).length>4&&(i=".hide-names")
const n=[(0,o.h)(`div.participants${i}`,t)],r=[],l=e.canRemoveAllowedUsers||e.canRemoveSelfId
if(e.canInvite||l){let t,i="toggleEditing"
e.canInvite&&l?t="edit":!e.canInvite&&l?t="remove":(t="add",i="showInvite"),r.push(this.attach("button",{action:i,label:`private_message_info.${t}`,className:"btn btn-default add-remove-participant-btn"}))}return e.canInvite&&this.state.isEditing&&r.push(this.attach("button",{action:"showInvite",icon:"plus",className:"btn btn-default no-text btn-icon add-participant-btn"})),r.length&&n.push((0,o.h)("div.controls",r)),n},toggleEditing(){this.state.isEditing=!this.state.isEditing}})
e.default=l})),define("discourse/widgets/raw-html",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class t{constructor(e){this.html=e.html}init(){const e=$(this.html)
return this.decorate(e),e[0]}decorate(){}update(e){if(e.html!==this.html)return this.init()}destroy(){}}e.default=t,t.prototype.type="Widget"})),define("discourse/widgets/render-glimmer",["exports","@ember/component/template-only","@ember/component","@glimmer/tracking","@ember/debug","discourse/widgets/widget"],(function(e,t,i,n,r,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.registerWidgetShim=function(e,t,i){(0,o.createWidgetFrom)(class extends s{constructor(e){return super(null,t,i,e),this}get widget(){return this.parentWidget}didRenderWidget(){}willRerenderWidget(){}},e,{})}
class s{constructor(e,t,i,n){this.renderInto=t,e&&(this.widget=e),this.template=i,this.data=n}init(){if(this.renderInto instanceof Element)this.element=this.renderInto
else{const[e,...t]=this.renderInto.split(".")
this.element=document.createElement(e),this.element.classList.add(...t)}return this.connectComponent(),this.element}destroy(){this._componentInfo&&this.parentMountWidgetComponent.unmountChildComponent(this._componentInfo)}update(e){return e.template.__id!==this.template.__id||e.renderInto!==this.renderInto?(e.destroy(),this.init()):(this._componentInfo=e._componentInfo,e.data!==this.data&&(this._componentInfo.data=this.data),null)}connectComponent(){var e,r
const{element:o,template:s}=this,l=(0,t.default)()
var a,u,c,d,p,m
l.name="Widgets/RenderGlimmer",(0,i.setComponentTemplate)(s,l),this._componentInfo=(e={element:o,component:l,data:this.data},a=e,u="data",c=[n.tracked],r=(r=Object.getOwnPropertyDescriptor(e,"data"))?r.value:void 0,d={enumerable:!0,configurable:!0,writable:!0,initializer:function(){return r}},p=e,m={},Object.keys(d).forEach((function(e){m[e]=d[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=c.slice().reverse().reduce((function(e,t){return t(a,u,e)||e}),m),p&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(p):void 0,m.initializer=void 0),void 0===m.initializer&&(Object.defineProperty(a,u,m),m=null),e),this.parentMountWidgetComponent.mountChildComponent(this._componentInfo)}get parentMountWidgetComponent(){return this.widget?._findView()||this._emberView}}e.default=s,s.prototype.type="Widget"})),define("discourse/widgets/search-menu-controls",["I18n","discourse/widgets/widget"],(function(e,t){(0,t.createWidget)("search-term",{tagName:"input",buildId:()=>"search-term",buildKey:()=>"search-term",buildAttributes:t=>({type:"text",value:t.value||"",autocomplete:"off",placeholder:e.default.t("search.title"),"aria-label":e.default.t("search.title")}),input(e){const t=this.attrs.value,i=e.target.value.replace(/[\u200B-\u200D\uFEFF]/,"")
i!==t&&this.sendWidgetAction("searchTermChanged",i)}}),(0,t.createWidget)("search-context",{html:()=>!1})})),define("discourse/widgets/search-menu-results",["exports","@ember/template-factory","discourse/lib/utilities","discourse-common/lib/object","I18n","discourse/widgets/raw-html","discourse/widgets/post","discourse/widgets/widget","discourse/helpers/node","discourse/lib/text","discourse-common/lib/get-url","virtual-dom","discourse/lib/highlight-search","discourse-common/lib/icon-library","discourse/lib/render-tag","discourse/widgets/search-menu","discourse/models/user","discourse/widgets/render-glimmer"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f,g,b){Object.defineProperty(e,"__esModule",{value:!0}),e.addQuickSearchRandomTip=function(e){v.includes(e)||v.push(e)},e.addSearchSuggestion=w,e.removeDefaultQuickSearchRandomTips=function(){v=v.filter((e=>!_.includes(e)))},e.resetQuickSearchRandomTips=k
const y=["in:title","in:pinned","status:open","status:closed","status:public","status:noreplies","order:latest","order:views","order:likes","order:latest_topic"],_=[{label:"#",description:r.default.t("search.tips.category_tag"),clickable:!0},{label:"@",description:r.default.t("search.tips.author"),clickable:!0},{label:"in:",description:r.default.t("search.tips.in"),clickable:!0},{label:"status:",description:r.default.t("search.tips.status"),clickable:!0},{label:r.default.t("search.tips.full_search_key",{modifier:"Ctrl"}),description:r.default.t("search.tips.full_search")},{label:"@me",description:r.default.t("search.tips.me")}]
let v=[]
function w(e){y.includes(e)||y.push(e)}function k(){v=[].concat(_)}k()
class x extends o.default{constructor(e,t){super({html:`<span>${e}</span>`}),this.term=t}decorate(e){(0,p.default)(e[0],this.term)}}function P(e){let{type:t,linkField:i,builder:n}=e
return(0,l.createWidget)(`search-result-${t}`,{tagName:"ul.list",buildAttributes:()=>({"aria-label":`${t} ${r.default.t("search.results")}`}),html(e){return e.results.map((r=>{let o
return o="topic"===t?r.topic_id:r.id,(0,d.h)("li.item",this.attach("link",{href:r[i],contents:()=>n.call(this,r,e.term),className:"search-link",searchResultId:o,searchResultType:t,searchLogId:e.searchLogId}))}))}})}function O(e,t,i){const n=[t]
return this.site.mobileView||n.push((0,d.h)("span.blurb",[(0,a.dateNode)(e.created_at),(0,d.h)("span"," - "),this.siteSettings.use_pg_headlines_for_excerpt?new o.default({html:`<span>${e.blurb}</span>`}):new x(e.blurb,i)])),n}P({type:"tag",linkField:"url",builder(e){const t=(0,i.escapeExpression)(e.id)
return[(0,m.iconNode)("tag"),new o.default({html:(0,h.default)(t,{tagName:"span"})})]}}),P({type:"category",linkField:"url",builder(e){return this.attach("category-link",{category:e,link:!1})}}),P({type:"group",linkField:"url",builder(e){const t=(0,i.escapeExpression)(e.fullName),n=(0,i.escapeExpression)(e.name),r=[(0,d.h)("span.name",t||n)]
let o
t&&r.push((0,d.h)("span.slug",n)),o=e.flairUrl?this.attach("avatar-flair",{flair_name:n,flair_url:e.flairUrl,flair_bg_color:e.flairBgColor,flair_color:e.flairColor}):(0,m.iconNode)("users")
const s=[o,(0,d.h)("div.group-names",r)]
return(0,d.h)("div.group-result",s)}}),P({type:"user",linkField:"path",builder(e){const t=[]
e.name&&t.push((0,d.h)("span.name",e.name)),t.push((0,d.h)("span.username",(0,i.formatUsername)(e.username))),e.custom_data&&e.custom_data.forEach((e=>t.push((0,d.h)("span.custom-field",`${e.name}: ${e.value}`))))
const n=[(0,s.avatarImg)("small",{template:e.avatar_template,username:e.username}),(0,d.h)("div.user-titles",t)]
return(0,d.h)("div.user-result",n)}}),P({type:"topic",linkField:"url",builder(e,t){const i=e.topic,n=[this.attach("topic-status",{topic:i,disableActions:!0}),(0,d.h)("span.topic-title",{attributes:{"data-topic-id":i.id}},this.siteSettings.use_pg_headlines_for_excerpt&&e.topic_title_headline?new o.default({html:`<span>${(0,u.emojiUnescape)(e.topic_title_headline)}</span>`}):new x(i.fancyTitle,t))],r=[this.attach("category-link",{category:i.category,link:!1})]
this.siteSettings.tagging_enabled&&r.push(this.attach("discourse-tags",{topic:i,tagName:"span"}))
const s=(0,d.h)("span.topic",[(0,d.h)("span.first-line",n),(0,d.h)("span.second-line",r)])
return O.call(this,e,s,t)}}),P({type:"post",linkField:"url",builder(e,t){return O.call(this,e,r.default.t("search.post_format",e),t)}}),(0,l.createWidget)("search-menu-results",{tagName:"div.results",html(e){const{term:i,suggestionKeyword:o,inTopicContext:s,results:l,searchTopics:a,onLinkClicked:u}=e
if(o)return this.attach("search-menu-assistant",{term:i,suggestionKeyword:o,results:e.suggestionResults||[]})
if(a&&e.invalidTerm)return(0,d.h)("div.no-results",r.default.t("search.too_short"))
if(a&&e.noResults)return(0,d.h)("div.no-results",r.default.t("search.no_results"))
if(!i&&!e.inPMInboxContext)return this.attach("search-menu-initial-options",{term:i})
const c=l.resultTypes||[],p=[],m=[],h=[],f=e=>{const t={className:"filter search-link",contents:()=>[r.default.t("more"),"..."]}
return e.moreUrl?this.attach("link",(0,n.deepMerge)(t,{href:e.moreUrl})):e.more?this.attach("link",(0,n.deepMerge)(t,{action:"moreOfType",actionParam:e.type})):void 0}
c.forEach((t=>{const n=[this.attach(t.componentName,{searchLogId:e.results.grouped_search_result.search_log_id,results:t.results,term:i})]
if(["topic"].includes(t.type)){const e=f(t)
e&&n.push((0,d.h)("div.search-menu__show-more",e))}var r,o
r=t,o=(0,d.h)(`div.${t.componentName}`,n),a?["topic"].includes(r.type)&&p.push(o):(["user","group"].includes(r.type)&&m.push(o),["category","tag"].includes(r.type)&&h.push(o))}))
const g=[]
if(a){if(!p.length)return(0,d.h)("div.no-results",r.default.t("search.no_results"))
g.push(p)}else e.inPMInboxContext||g.push(this.attach("search-menu-initial-options",{term:i}))
return g.push(new b.default(this,"div",(0,t.createTemplateFactory)({id:"cwSyIIZA",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["search-menu-results-top",[30,1,["outletArgs"]]]],null]],["@data"],false,["plugin-outlet"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/discourse/widgets/search-menu-results.js",isStrictMode:!1}),{outletArgs:{searchTerm:i,inTopicContext:s,onLinkClicked:u,searchTopics:a}})),g.push(h),g.push(m),g.push(new b.default(this,"div",(0,t.createTemplateFactory)({id:"ETd+/Ban",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["search-menu-results-bottom",[30,1,["outletArgs"]]]],null]],["@data"],false,["plugin-outlet"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/discourse/widgets/search-menu-results.js",isStrictMode:!1}),{outletArgs:{searchTerm:i,inTopicContext:s,onLinkClicked:u,searchTopics:a}})),g}}),(0,l.createWidget)("search-menu-assistant",{tagName:"ul.search-menu-assistant",buildKey:()=>"search-menu-assistant",services:["router"],html(e){this.currentUser&&(w("in:likes"),w("in:bookmarks"),w("in:mine"),w("in:messages"),w("in:seen"),w("in:tracking"),w("in:unseen"),w("in:watching")),this.siteSettings.tagging_enabled&&(w("in:tagged"),w("in:untagged"))
const t=[],{suggestionKeyword:i,term:n}=e
let o
switch("+"!==i&&(o=n?.split(i)[0].trim()||"",o.length&&(o=`${o} `)),i){case"+":e.results.forEach((i=>{o=i.additionalTags?n?.split(" ").slice(0,-1).join(" ").trim()||"":n?.split("#")[0].trim()||"",o.length&&(o=`${o} `),t.push(this.attach("search-menu-assistant-item",{prefix:o,tag:i.tagName,additionalTags:i.additionalTags,category:i.category,slug:n,withInLabel:e.withInLabel,isIntersection:!0}))}))
break
case"#":e.results.forEach((i=>{if(i.model){const n=i.model.parentCategory?`#${i.model.parentCategory.slug}:${i.model.slug}`:`#${i.model.slug}`
t.push(this.attach("search-menu-assistant-item",{prefix:o,category:i.model,slug:`${o}${n}`,withInLabel:e.withInLabel}))}else t.push(this.attach("search-menu-assistant-item",{prefix:o,tag:i.name,slug:`${o}#${i.name}`,withInLabel:e.withInLabel}))}))
break
case"@":if(1===e.results.length&&this.router.currentRouteName.startsWith("topic.")){const i=e.results[0]
t.push(this.attach("search-menu-assistant-item",{extraHint:r.default.t("search.enter_hint"),prefix:o,user:i,slug:`${o}@${i.username}`,suffix:(0,d.h)("span.label-suffix",` ${r.default.t("search.in_topics_posts")}`)})),t.push(this.attach("search-menu-assistant-item",{prefix:o,user:i,setTopicContext:!0,slug:`${o}@${i.username}`,suffix:(0,d.h)("span.label-suffix",` ${r.default.t("search.in_this_topic")}`)}))}else e.results.forEach((e=>{t.push(this.attach("search-menu-assistant-item",{prefix:o,user:e,slug:`${o}@${e.username}`}))}))
break
default:y.forEach((e=>{!e.includes(i)&&i||t.push(this.attach("search-menu-assistant-item",{slug:`${o}${e}`}))}))}return t.filter(((e,t)=>t<=8))}}),(0,l.createWidget)("search-menu-initial-options",{tagName:"ul.search-menu-initial-options",services:["search"],html(e){if(e.term?.match(f.MODIFIER_REGEXP))return this.defaultRow(e.term)
const t=this.search.searchContext,i=[]
if(e.term||t){if(e.term&&i.push(this.defaultRow(e.term,{withLabel:!0})),t){const n=e.term||""
switch(t.type){case"topic":i.push(this.attach("search-menu-assistant-item",{slug:n,setTopicContext:!0,label:[(0,d.h)("span",`${n} `),(0,d.h)("span.label-suffix",r.default.t("search.in_this_topic"))]}))
break
case"private_messages":i.push(this.attach("search-menu-assistant-item",{slug:`${n} in:messages`}))
break
case"category":const e=t.category.parentCategory?`#${t.category.parentCategory.slug}:${t.category.slug}`:`#${t.category.slug}`
i.push(this.attach("search-menu-assistant",{term:`${n} ${e}`,suggestionKeyword:"#",results:[{model:t.category}],withInLabel:!0}))
break
case"tag":i.push(this.attach("search-menu-assistant",{term:`${n} #${t.name}`,suggestionKeyword:"#",results:[{name:t.name}],withInLabel:!0}))
break
case"tagIntersection":let o
if(t.additionalTags){o=`${n} tags:${[t.tagId,...t.additionalTags].join("+")}`}else o=`${n} #${t.tagId}`
let s={tagName:t.tagId,additionalTags:t.additionalTags}
if(t.category){const e=t.category.parentCategory?`#${t.category.parentCategory.slug}:${t.category.slug}`:`#${t.category.slug}`
s.categoryName=e,s.category=t.category,o+=` ${e}`}i.push(this.attach("search-menu-assistant",{term:o,suggestionKeyword:"+",results:[s],withInLabel:!0}))
break
case"user":i.push(this.attach("search-menu-assistant-item",{slug:`${n} @${t.user.username}`,label:[(0,d.h)("span",`${n} `),(0,d.h)("span.label-suffix",r.default.t("search.in_posts_by",{username:t.user.username}))]}))}}return i}return 0===i.length&&(i.push(this.attach("random-quick-tip")),this.currentUser&&this.siteSettings.log_search_queries&&(this.currentUser.recent_searches?.length?i.push(this.attach("search-menu-recent-searches")):this.loadRecentSearches())),i},defaultRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withLabel:!1}
return this.attach("search-menu-assistant-item",{slug:e,extraHint:r.default.t("search.enter_hint"),label:[(0,d.h)("span.keyword",`${e}`),t.withLabel?(0,d.h)("span.label-suffix",r.default.t("search.in_topics_posts")):null]})},refreshSearchMenuResults(){this.scheduleRerender()},loadRecentSearches(){g.default.loadRecentSearches().then((e=>{e.success&&e.recent_searches?.length&&(this.currentUser.set("recent_searches",Object.assign(e.recent_searches)),this.scheduleRerender())}))}}),(0,l.createWidget)("search-menu-assistant-item",{tagName:"li.search-menu-assistant-item",html(e){const t=e.prefix?.trim(),n={href:"#"}
let o=[(0,d.h)("span",{attributes:{"aria-label":r.default.t("search.title")}},(0,m.iconNode)(e.icon||"search"))]
if(t&&o.push((0,d.h)("span.search-item-prefix",`${t} `)),e.withInLabel&&o.push((0,d.h)("span.label-suffix",`${r.default.t("search.in")} `)),e.category)n.href=e.category.url,o.push(this.attach("category-link",{category:e.category,allowUncategorized:!0,recursive:!0,link:!1})),e.tag&&e.isIntersection&&(n.href=(0,c.default)(`/tag/${e.tag}`),o.push((0,d.h)("span.search-item-tag",[(0,m.iconNode)("tag"),e.tag])))
else if(e.tag)if(e.isIntersection&&e.additionalTags?.length){const t=[e.tag,...e.additionalTags]
o.push((0,d.h)("span.search-item-tag",`tags:${t.join("+")}`))}else n.href=(0,c.default)(`/tag/${e.tag}`),o.push((0,d.h)("span.search-item-tag",[(0,m.iconNode)("tag"),e.tag]))
else if(e.user){const t=[(0,s.avatarImg)("small",{template:e.user.avatar_template,username:e.user.username}),(0,d.h)("span.username",(0,i.formatUsername)(e.user.username)),e.suffix]
o.push((0,d.h)("span.search-item-user",t))}else o.push((0,d.h)("span.search-item-slug",e.label||e.slug))
return e.extraHint&&o.push((0,d.h)("span.extra-hint",e.extraHint)),(0,d.h)("a.widget-link.search-link",{attributes:n},o)},click(e){const t=document.querySelector("#search-term")
return t.value=this.attrs.slug,t.focus(),this.sendWidgetAction("triggerAutocomplete",{value:this.attrs.slug,searchTopics:!0,setTopicContext:this.attrs.setTopicContext,origin:this.attrs.origin}),e.preventDefault(),!1}}),(0,l.createWidget)("random-quick-tip",{tagName:"li.search-random-quick-tip",buildKey:()=>"random-quick-tip",defaultState:()=>v.length?v[Math.floor(Math.random()*v.length)]:{},html(e,t){if(Object.keys(t).length)return[(0,d.h)("span.tip-label"+(t.clickable?".tip-clickable":""),t.label),(0,d.h)("span.tip-description",t.description)]},click(e){if(e.target.classList.contains("tip-clickable")){const e=document.querySelector("#search-term")
e.value=this.state.label,e.focus(),this.sendWidgetAction("triggerAutocomplete",{value:this.state.label,searchTopics:this.state.searchTopics})}}}),(0,l.createWidget)("search-menu-recent-searches",{tagName:"div.search-menu-recent",template:function(e,t){var i=[]
i.push("\n    ")
var n=[]
n.push("\n      ")
var o=[]
return o.push(r.default.t("search.recent")),n.push(virtualDom.h("h4",o)),n.push("\n      "),n.push(this.attach("flat-button",{className:"clear-recent-searches",title:"search.clear_recent",icon:"times",action:"clearRecent"})),n.push("\n    "),i.push(virtualDom.h("div",{className:"heading",attributes:{}},n)),i.push("\n\n"),this.currentUser.recent_searches&&this.currentUser.recent_searches.length&&this.currentUser.recent_searches.forEach((e=>{i.push("      "),i.push(this.attach("search-menu-assistant-item",{slug:e,icon:"history",origin:"recent-search"},void 0,void 0)),i.push("\n")})),i.push("  "),i},clearRecent(){return g.default.resetRecentSearches().then((e=>{e.success&&(this.currentUser.recent_searches.clear(),this.sendWidgetAction("refreshSearchMenuResults"))}))}})})),define("discourse/widgets/search-menu",["exports","discourse/lib/search","discourse/lib/url","discourse/widgets/widget","discourse-common/lib/debounce","discourse-common/lib/get-url","virtual-dom","discourse-common/lib/icon-library","discourse/lib/utilities","discourse/lib/ajax-error","rsvp","discourse/lib/category-tag-search","discourse/lib/user-search","discourse/lib/autocomplete","@ember/runloop","I18n"],(function(e,t,i,n,r,o,s,l,a,u,c,d,p,m,h,f){Object.defineProperty(e,"__esModule",{value:!0}),e.MODIFIER_REGEXP=e.DEFAULT_TYPE_FILTER=void 0,e.addOnKeyDownCallback=function(e){w.push(e)},e.default=void 0,e.initSearchData=k,e.resetOnKeyDownCallbacks=function(){w.clear()}
const g=/(\#[a-zA-Z0-9\-:]*)$/gi,b=/(\@[a-zA-Z0-9\-\_]*)$/gi,y=/(in:|status:|order:|:)([a-zA-Z]*)$/gi
e.MODIFIER_REGEXP=/.*(\#|\@|:).*$/gi
const _="exclude_topics"
e.DEFAULT_TYPE_FILTER=_
const v={},w=[]
function k(){v.loading=!1,v.results={},v.noResults=!1,v.term=void 0,v.typeFilter=_,v.invalidTerm=!1,v.suggestionResults=[],v.suggestionKeyword=!1}k()
const x={_activeSearch:null,cancel(){this._activeSearch&&(this._activeSearch.abort(),this._activeSearch=null)},perform(e){this.cancel()
const{term:i,typeFilter:n}=v,r=e.searchContext(),o=e.fullSearchUrl(),s=this.matchesSuggestions()
if(s)if(v.noResults=!0,v.results={},v.loading=!1,v.suggestionResults=[],"category"===s.type){const t=s.categoriesMatch[0].replace("#",""),i=(0,d.search)(t,e.siteSettings)
c.Promise.resolve(i).then((t=>{t!==m.CANCELLED_STATUS&&(v.suggestionResults=t,v.suggestionKeyword="#"),e.scheduleRerender()}))}else if("username"===s.type){const t=s.usernamesMatch[0].replace("@",""),i={includeGroups:!0,limit:6}
t.length>0?i.term=t:i.lastSeenUsers=!0,(0,p.default)(i).then((t=>{t?.users?.length>0?(v.suggestionResults=t.users,v.suggestionKeyword="@"):(v.noResults=!0,v.suggestionKeyword=!1),e.scheduleRerender()}))}else v.suggestionKeyword=s[0],e.scheduleRerender()
else v.suggestionKeyword=!1,i?(0,t.isValidSearchTerm)(i,e.siteSettings)?(v.invalidTerm=!1,this._activeSearch=(0,t.searchForTerm)(i,{typeFilter:n,fullSearchUrl:o,searchContext:r}),this._activeSearch.then((t=>{t&&i===v.term&&(r&&e.appEvents.trigger("post-stream:refresh",{force:!0}),v.noResults=0===t.resultTypes.length,v.results=t)})).catch(u.popupAjaxError).finally((()=>{v.loading=!1,e.scheduleRerender()}))):(v.noResults=!0,v.results={},v.loading=!1,v.invalidTerm=!0,e.scheduleRerender()):(v.noResults=!1,v.results={},v.loading=!1,v.invalidTerm=!1,e.scheduleRerender())},matchesSuggestions(){if(void 0===v.term||this.includesTopics())return!1
const e=v.term.trim(),t=e.match(g)
if(t)return{type:"category",categoriesMatch:t}
const i=e.match(b)
if(i)return{type:"username",usernamesMatch:i}
const n=e.match(y)
return n||!1},includesTopics:()=>v.typeFilter!==_}
var P=(0,n.createWidget)("search-menu",{tagName:"div.search-menu",services:["search"],searchData:v,buildAttributes:()=>({"aria-live":"polite"}),buildKey:()=>"search-menu",defaultState(e){return{inTopicContext:e.inTopicContext,inPMInboxContext:"private_messages"===this.search?.searchContext?.type,_lastEnterTimestamp:null,_debouncer:null}},fullSearchUrl(e){let t="/search"
const i=[]
if(v.term){let e=""
e+=`q=${encodeURIComponent(v.term)}`
const t=this.searchContext()
"topic"===t?.type?e+=encodeURIComponent(` topic:${t.id}`):"private_messages"===t?.type&&(e+=encodeURIComponent(" in:messages")),e&&i.push(e)}return e&&e.expanded&&i.push("expanded=true"),i.length>0&&(t=`${t}?${i.join("&")}`),(0,o.default)(t)},panelContents(){let e=[]
if(this.state.inTopicContext?e.push(this.attach("button",{icon:"times",label:"search.in_this_topic",title:"search.in_this_topic_tooltip",className:"btn btn-small search-context",action:"clearTopicContext",iconRight:!0})):this.state.inPMInboxContext&&e.push(this.attach("button",{icon:"times",label:"search.in_messages",title:"search.in_messages_tooltip",className:"btn btn-small search-context",action:"clearPMInboxContext",iconRight:!0})),e.push(this.attach("search-term",{value:v.term})),v.loading)e.push((0,s.h)("div.searching",(0,s.h)("div.spinner")))
else{const t=this.attach("link",{title:"search.clear_search",action:"clearSearch",className:"clear-search",contents:()=>(0,l.iconNode)("times")}),i=this.attach("link",{href:this.fullSearchUrl({expanded:!0}),contents:()=>(0,l.iconNode)("sliders-h"),className:"show-advanced-search",title:"search.open_advanced"})
v.term?e.push((0,s.h)("div.searching",[t,i])):e.push((0,s.h)("div.searching",i))}const t=[(0,s.h)("div.search-input",e)]
if(this.state.inTopicContext&&(!x.includesTopics()||!v.term)){return this.site.isMobileDevice||t.push(this.attach("browser-search-tip")),t}return v.loading||t.push(this.attach("search-menu-results",{term:v.term,noResults:v.noResults,results:v.results,invalidTerm:v.invalidTerm,suggestionKeyword:v.suggestionKeyword,suggestionResults:v.suggestionResults,searchTopics:x.includesTopics(),inPMInboxContext:this.state.inPMInboxContext,inTopicContext:this.state.inTopicContext,onLinkClicked:this.onLinkClicked.bind(this)})),t},clearSearch(){v.term=""
const e=document.getElementById("search-term")
e.value="",e.focus(),this.triggerSearch()},html(e,t){return!1===e.inTopicContext&&(t.inTopicContext=!1),this.attach("menu-panel",{maxWidth:500,contents:()=>this.panelContents()})},onLinkClicked(){return this.sendWidgetAction("linkClickedEvent")},mouseDown(e){e.target===document.querySelector("input#search-term")&&(this.state.inputSelectionEvent=!0)},clickOutside(){"search-menu"!==this.key||this.state.inputSelectionEvent||this.sendWidgetAction("toggleSearchMenu"),this.state.inputSelectionEvent=!1},clearTopicContext(){this.sendWidgetAction("clearContext")},clearPMInboxContext(){this.state.inPMInboxContext=!1,this.sendWidgetAction("focusSearchInput")},keyDown(e){w.length&&!w.some((t=>t(this,e)))||this.handleKeyDown(e)},handleKeyDown(e){if("Escape"===e.key)return this.sendWidgetAction("toggleSearchMenu"),document.querySelector("#search-button").focus(),e.preventDefault(),!1
if(v.loading)return
if(65===e.which&&document.activeElement?.classList.contains("search-link")&&document.querySelector("#reply-control.open"))return this.appEvents.trigger("composer:insert-text",document.activeElement.href,{ensureSpace:!0}),this.appEvents.trigger("header:keyboard-trigger",{type:"search"}),e.preventDefault(),document.querySelector("#reply-control.open textarea").focus(),!1
const t="ArrowUp"===e.key,i="ArrowDown"===e.key
if(t||i){let n=document.activeElement.closest(".search-menu")?document.activeElement:null
if(!n)return
let r,o,s=document.querySelectorAll(".search-menu .results a"),l=document.querySelectorAll(".search-menu .results .search-link")
if(!l.length)return
s.forEach((e=>{e.classList.contains("search-link")&&(r=e),e===n&&(o=r)}))
let a=-1
return o&&(a=Array.prototype.indexOf.call(l,o)),-1===a&&i?document.querySelector(".search-menu .results .search-link").focus():0===a&&t?document.querySelector(".search-menu input#search-term").focus():a>-1&&(a+=i?1:-1,a>=0&&a<l.length&&l[a].focus()),e.preventDefault(),!1}const n=document.querySelector("#search-term")
if("Enter"===e.key&&e.target===n){const t=this.state._lastEnterTimestamp&&Date.now()-this.state._lastEnterTimestamp<15e3
e.ctrlKey||e.metaKey||(0,a.isiPad)()&&e.altKey||v.typeFilter!==_&&t?this.fullSearch():(v.typeFilter=null,this.triggerSearch()),this.state._lastEnterTimestamp=Date.now()}e.target===n&&"Backspace"===e.key&&(n.value||(this.clearTopicContext(),this.clearPMInboxContext()))},triggerSearch(){v.noResults=!1,x.includesTopics()?(this.state.inTopicContext&&this.search.set("highlightTerm",v.term),v.loading=!0,(0,h.cancel)(this.state._debouncer),x.perform(this),this.currentUser&&(0,t.updateRecentSearches)(this.currentUser,v.term)):(v.loading=!1,this.state.inTopicContext||(this.state._debouncer=(0,r.default)(x,x.perform,this,400)))},moreOfType(e){v.typeFilter=e,this.triggerSearch()},searchTermChanged(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
v.typeFilter=t.searchTopics?null:_,v.term=e,this.triggerSearch()},triggerAutocomplete(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
e.setTopicContext&&(this.sendWidgetAction("setTopicContext"),this.state.inTopicContext=!0),this.searchTermChanged(e.value,{searchTopics:e.searchTopics})},fullSearch(){v.loading=!1,x.cancel()
const e=this.fullSearchUrl()
e&&(this.sendWidgetEvent("linkClicked"),i.default.routeTo(e))},searchContext(){return!(!this.state.inTopicContext&&!this.state.inPMInboxContext)&&this.search.searchContext}})
e.default=P,(0,n.createWidget)("browser-search-tip",{buildKey:()=>"browser-search-tip",tagName:"div.browser-search-tip",html:()=>[(0,s.h)("span.tip-label",f.default.t("search.browser_tip",{modifier:(0,a.translateModKey)("Meta")})),(0,s.h)("span.tip-description",f.default.t("search.browser_tip_description"))]})})),define("discourse/widgets/sidebar-toggle",["exports","discourse/widgets/widget"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var i=(0,t.createWidget)("sidebar-toggle",{tagName:"span.header-sidebar-toggle",html(){const e=this.attrs
return[this.attach("button",{title:e.showSidebar?"sidebar.hide_sidebar":"sidebar.show_sidebar",icon:"bars",action:this.site.narrowDesktopView?"toggleHamburger":"toggleSidebar",className:"btn btn-flat btn-sidebar-toggle "+(this.site.narrowDesktopView?"narrow-desktop":""),ariaExpanded:e.showSidebar?"true":"false",ariaControls:"d-sidebar"})]}})
e.default=i})),define("discourse/widgets/time-gap",["exports","I18n","discourse/widgets/widget","virtual-dom"],(function(e,t,i,n){function r(e){const i=e.daysSince
if(i<30)return t.default.t("dates.later.x_days",{count:i})
if(i<365){const e=Math.round(i/30)
return t.default.t("dates.later.x_months",{count:e})}{const e=Math.round(i/365)
return t.default.t("dates.later.x_years",{count:e})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var o=(0,i.createWidget)("time-gap",{tagName:"div.time-gap.small-action",html:e=>[(0,n.h)("div.topic-avatar",""),(0,n.h)("div.small-action-desc.timegap",r(e))]})
e.default=o})),define("discourse/widgets/toggle-topic-summary",["exports","I18n","discourse/widgets/raw-html","discourse/widgets/widget","virtual-dom"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(0,n.createWidget)("toggle-summary-description",{description(e){if(e.topicSummaryEnabled)return t.default.t("summary.enabled_description")
if(e.topicWordCount&&this.siteSettings.read_time_word_count>0){const i=Math.ceil(Math.max(e.topicWordCount/this.siteSettings.read_time_word_count,4*e.topicPostsCount/60))
return t.default.messageFormat("summary.description_time_MF",{replyCount:e.topicReplyCount,readingTime:i})}return t.default.t("summary.description",{count:e.topicReplyCount})},html(e){return new i.default({html:`<p>${this.description(e)}</p>`})}})
var o=(0,n.createWidget)("toggle-topic-summary",{tagName:"section.information.toggle-summary",html(e){const i=[],n=[]
if(e.hasTopRepliesSummary&&(i.push(this.attach("toggle-summary-description",e)),n.push(this.attach("button",{className:"btn btn-primary",icon:e.topicSummaryEnabled?null:"layer-group",title:e.topicSummaryEnabled?null:"summary.short_title",label:e.topicSummaryEnabled?"summary.disable":"summary.enable",action:e.topicSummaryEnabled?"cancelFilter":"showTopReplies"}))),e.includeSummary){const e=t.default.t("summary.strategy.button_title")
n.push(this.attach("button",{className:"btn btn-primary topic-strategy-summarization",icon:"magic",translatedTitle:e,translatedLabel:e,action:"showSummary"}))}return i.push((0,r.h)("div.summarization-buttons",n)),i}})
e.default=o})),define("discourse/widgets/topic-admin-menu",["exports","discourse/widgets/widget","virtual-dom"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,t.createWidget)("admin-menu-button",{tagName:"li",buildClasses:e=>e.className,html(e){let t
return e.buttonClass&&(t=e.buttonClass),this.attach("button",{className:t,action:e.action,url:e.url,icon:e.icon,label:e.fullLabel||`topic.${e.label}`,secondaryAction:"hideAdminMenu"})}}),(0,t.createWidget)("topic-admin-menu-button",{tagName:"span.topic-admin-menu-button",buildKey:()=>"topic-admin-menu-button",defaultState:()=>({expanded:!1,position:null}),html(e,t){const i=[],n=this.attach("topic-admin-menu",{position:t.position,topic:e.topic,openUpwards:e.openUpwards,rightSide:!this.site.mobileView&&e.rightSide,actionButtons:[]})
return!n.attrs.actionButtons.length||e.rightSide&&t.expanded&&!this.site.mobileView||i.push(this.attach("button",{className:"btn-default popup-menu-button toggle-admin-menu"+(e.addKeyboardTargetClass?" keyboard-target-admin-menu":""),title:"topic_admin_menu",icon:"wrench",action:"showAdminMenu",sendActionEvent:!0})),t.expanded&&i.push(n),i},hideAdminMenu(){this.state.expanded=!1,this.state.position=null},showAdminMenu(e){let t
this.state.expanded=!0,t=void 0===e?document.querySelector(".keyboard-target-admin-menu"):e.target.closest("button")
const i={top:t.offsetTop,left:t.offsetLeft},n=212,r=document.documentElement.classList.contains("html.rtl"),o=t.getBoundingClientRect()
if(i.outerHeight=o.height,this.attrs.openUpwards)r?i.left-=o.width+3:i.left+=o.width+3
else{if(r)o.left<n?i.left+=0:i.left-=n-o.width
else{window.innerWidth-o.right<n&&(i.left-=n-o.width)}i.top+=o.height+3}this.state.position=i},didRenderWidget(){let e=document.querySelectorAll(".topic-admin-popup-menu button")
e&&e[0]&&e[0].focus()},topicToggleActions(){this.state.expanded?this.hideAdminMenu():this.showAdminMenu()}})
var n=(0,t.createWidget)("topic-admin-menu",{tagName:"div.popup-menu.topic-admin-popup-menu",buildClasses(e){if(e.rightSide)return"right-side"},init(e){const t=e.topic,i=t.get("details"),n=t.get("isPrivateMessage"),r=t.get("pinned_at")||t.get("isBanner"),o=t.get("visible");(this.get("currentUser.canManageTopic")||i.can_split_merge_topic)&&this.addActionButton({className:"topic-admin-multi-select",buttonClass:"popup-menu-btn",action:"toggleMultiSelect",icon:"tasks",label:"actions.multi_select",button_group:"topic"}),(this.get("currentUser.canManageTopic")||i.get("can_moderate_category"))&&(i.get("can_delete")&&this.addActionButton({className:"topic-admin-delete",buttonClass:"popup-menu-btn-danger",action:"deleteTopic",icon:"far-trash-alt",label:"actions.delete",button_group:"topic"}),t.get("deleted")&&i.get("can_recover")&&this.addActionButton({className:"topic-admin-recover",buttonClass:"popup-menu-btn",action:"recoverTopic",icon:"undo",label:"actions.recover",button_group:"topic"})),this.currentUser&&i.get("can_close_topic")&&(t.get("closed")?this.addActionButton({className:"topic-admin-open",buttonClass:"popup-menu-btn",action:"toggleClosed",icon:"unlock",label:"actions.open",button_group:"topic"}):this.addActionButton({className:"topic-admin-close",buttonClass:"popup-menu-btn",action:"toggleClosed",icon:"lock",label:"actions.close",button_group:"topic"})),this.get("currentUser.canManageTopic")&&this.addActionButton({className:"admin-topic-timer-update",buttonClass:"popup-menu-btn",action:"showTopicTimerModal",icon:"far-clock",label:"actions.timed_update",button_group:"time"}),i.get("can_pin_unpin_topic")&&!n&&(t.get("visible")||r)&&this.addActionButton({className:"topic-admin-pin",buttonClass:"popup-menu-btn",action:"showFeatureTopic",icon:"thumbtack",label:r?"actions.unpin":"actions.pin",button_group:"topic"}),this.get("currentUser.canManageTopic")&&(this.currentUser.get("staff")&&this.addActionButton({className:"topic-admin-change-timestamp",buttonClass:"popup-menu-btn",action:"showChangeTimestamp",icon:"calendar-alt",label:"change_timestamp.title",button_group:"time"}),this.addActionButton({className:"topic-admin-reset-bump-date",buttonClass:"popup-menu-btn",action:"resetBumpDate",icon:"anchor",label:"actions.reset_bump_date",button_group:"time"})),this.currentUser&&i.get("can_archive_topic")&&(n||this.addActionButton({className:"topic-admin-archive",buttonClass:"popup-menu-btn",action:"toggleArchived",icon:"folder",label:t.get("archived")?"actions.unarchive":"actions.archive",button_group:"topic"})),i.get("can_toggle_topic_visibility")&&this.addActionButton({className:"topic-admin-visible",buttonClass:"popup-menu-btn",action:"toggleVisibility",icon:o?"far-eye-slash":"far-eye",label:o?"actions.invisible":"actions.visible",button_group:"topic"}),this.get("currentUser.canManageTopic")&&(i.get("can_convert_topic")&&this.addActionButton({className:"topic-admin-convert",buttonClass:"popup-menu-btn",action:n?"convertToPublicTopic":"convertToPrivateMessage",icon:n?"comment":"envelope",label:n?"actions.make_public":"actions.make_private",button_group:"topic"}),this.addActionButton({className:"topic-admin-slow-mode",buttonClass:"popup-menu-btn",action:"showTopicSlowModeUpdate",icon:"hourglass-start",label:"actions.slow_mode",button_group:"time"}),this.currentUser.get("staff")&&this.addActionButton({icon:"list",buttonClass:"popup-menu-btn",fullLabel:"review.moderation_history",url:`/review?topic_id=${t.id}&status=all`}))},buildAttributes(e){let{top:t,left:i,outerHeight:n}=e.position
const r=this.site.mobileView?"fixed":"absolute"
if(!e.rightSide){if(e.openUpwards){const e=$(document).height(),o=$(".ember-application").height()
let s=e-t-70-$(".ember-application").offset().top
return e>o&&(s=s-(e-o)-n),this.site.mobileView&&(s=50,i=0),{style:`position: ${r}; bottom: ${s}px; left: ${i}px;`}}return{style:`position: ${r}; top: ${t}px; left: ${i}px;`}}},addActionButton(e){this.attrs.actionButtons.push(e)},html(e){const n=(0,t.applyDecorators)(this,"adminMenuButtons",this.attrs,this.state),r=e.actionButtons.concat(n).filter(Boolean).reduce(((e,t)=>e.set(t.button_group,[...e.get(t.button_group)||[],t])),new Map)
let o=[]
for(const[t,s]of r.entries()){let e=[]
s.forEach((t=>{e.push(this.attach("admin-menu-button",t))})),o.push((0,i.h)(`ul.topic-admin-menu-${t}`,e))}return(0,i.h)("ul",o)},clickOutside(){this.sendWidgetAction("hideAdminMenu")}})
e.default=n})),define("discourse/widgets/topic-map",["exports","discourse/widgets/post","discourse/helpers/node","I18n","discourse/widgets/widget","virtual-dom","discourse/widgets/emoji","discourse/lib/avatar-flair","discourse/lib/url"],(function(e,t,i,n,r,o,s,l,a){Object.defineProperty(e,"__esModule",{value:!0}),e.addTopicParticipantClassesCallback=function(e){c=c||[],c.push(e)},e.default=void 0
function u(e,t){if(t)return e=e||[],t.map((t=>this.attach("topic-participant",t,{state:{toggled:e.includes(t.username)}})))}(0,r.createWidget)("topic-map-show-links",{tagName:"div.link-summary",html(){return(0,o.h)("span",this.attach("button",{title:"topic_map.links_shown",icon:"chevron-down",action:"showLinks",className:"btn"}))},showLinks(){this.sendWidgetAction("showAllLinks")}})
let c=null;(0,r.createWidget)("topic-participant",{buildClasses(e){const t=[]
if(e.primary_group_name&&t.push(`group-${e.primary_group_name}`),c)for(let i=0;i<c.length;i++){let n=c[i].call(this,e)
n&&t.push.apply(t,n)}return t},html(e,i){const n=[(0,t.avatarImg)("medium",{username:e.username,template:e.avatar_template,name:e.name})]
if(e.post_count>1&&n.push((0,o.h)("span.post-count",e.post_count.toString())),e.flair_group_id)if(e.flair_url||e.flair_bg_color)n.push(this.attach("avatar-flair",e))
else{const t=(0,l.default)(this.site,e)
t&&n.push(this.attach("avatar-flair",t))}return(0,o.h)("a.poster.trigger-user-card",{className:i.toggled?"toggled":null,attributes:{title:e.username,"data-user-card":e.username,href:(0,a.userPath)(e.username)}},n)}}),(0,r.createWidget)("topic-map-summary",{tagName:"section.map",buildClasses(e,t){if(t.collapsed)return"map-collapsed"},html(e,r){const s=[]
if(s.push((0,o.h)("li.created-at",[(0,o.h)("h4",{attributes:{role:"presentation"}},n.default.t("created_lowercase")),(0,o.h)("div.topic-map-post.created-at",[(0,t.avatarFor)("tiny",{username:e.createdByUsername,template:e.createdByAvatarTemplate,name:e.createdByName}),(0,i.dateNode)(e.topicCreatedAt)])])),s.push((0,o.h)("li.last-reply",(0,o.h)("a",{attributes:{href:e.lastPostUrl}},[(0,o.h)("h4",{attributes:{role:"presentation"}},n.default.t("last_reply_lowercase")),(0,o.h)("div.topic-map-post.last-reply",[(0,t.avatarFor)("tiny",{username:e.lastPostUsername,template:e.lastPostAvatarTemplate,name:e.lastPostName}),(0,i.dateNode)(e.lastPostAt)])]))),s.push((0,o.h)("li.replies",[(0,i.numberNode)(e.topicReplyCount),(0,o.h)("h4",{attributes:{role:"presentation"}},n.default.t("replies_lowercase",{count:e.topicReplyCount}).toString())])),s.push((0,o.h)("li.secondary.views",[(0,i.numberNode)(e.topicViews,{className:e.topicViewsHeat}),(0,o.h)("h4",{attributes:{role:"presentation"}},n.default.t("views_lowercase",{count:e.topicViews}).toString())])),e.participantCount>0&&s.push((0,o.h)("li.secondary.users",[(0,i.numberNode)(e.participantCount),(0,o.h)("h4",{attributes:{role:"presentation"}},n.default.t("users_lowercase",{count:e.participantCount}).toString())])),e.topicLikeCount&&s.push((0,o.h)("li.secondary.likes",[(0,i.numberNode)(e.topicLikeCount),(0,o.h)("h4",{attributes:{role:"presentation"}},n.default.t("likes_lowercase",{count:e.topicLikeCount}).toString())])),e.topicLinkLength>0&&s.push((0,o.h)("li.secondary.links",[(0,i.numberNode)(e.topicLinkLength),(0,o.h)("h4",{attributes:{role:"presentation"}},n.default.t("links_lowercase",{count:e.topicLinkLength}).toString())])),r.collapsed&&e.topicPostsCount>2&&e.participants&&e.participants.length>0){const t=u.call(this,e.userFilters,e.participants.slice(0,3))
s.push((0,o.h)("li.avatars",t))}return[(0,o.h)("nav.buttons",this.attach("button",{title:r.collapsed?"topic.expand_details":"topic.collapse_details",icon:r.collapsed?"chevron-down":"chevron-up",ariaExpanded:r.collapsed?"false":"true",ariaControls:"topic-map-expanded",action:"toggleMap",className:"btn"})),(0,o.h)("ul",s)]}}),(0,r.createWidget)("topic-map-link",{tagName:"a.topic-link.track-link",buildClasses(e){if(e.attachment)return"attachment"},buildAttributes:e=>({href:e.url,target:"_blank","data-user-id":e.user_id,"data-ignore-post-id":"true",title:e.url,rel:"nofollow ugc noopener"}),html(e){let t=e.title||e.url
return t.length>85&&(t=`${t.slice(0,85).trim()}...`),e.title?(0,s.replaceEmoji)(t):t}}),(0,r.createWidget)("topic-map-expanded",{tagName:"section.topic-map-expanded#topic-map-expanded",buildKey:e=>`topic-map-expanded-${e.id}`,defaultState:()=>({allLinksShown:!1}),html(e,t){let i
e.participants&&e.participants.length>0&&(i=(0,o.h)("section.avatars",[(0,o.h)("h3",n.default.t("topic_map.participants_title")),u.call(this,e.userFilters,e.participants)]))
const r=[i]
if(e.topicLinks){const i=(t.allLinksShown?e.topicLinks:e.topicLinks.slice(0,5)).map((e=>{let t=""
if(e.title&&e.title.length){const i=e.root_domain
i&&i.length&&(t=(0,o.h)("span.domain",i))}return(0,o.h)("tr",[(0,o.h)("td",(0,o.h)("span.badge.badge-notification.clicks",{attributes:{title:n.default.t("topic_map.clicks",{count:e.clicks})}},e.clicks.toString())),(0,o.h)("td",[this.attach("topic-map-link",e)," ",t])])})),s=[(0,o.h)("h3",n.default.t("topic_map.links_title")),(0,o.h)("table.topic-links",i)]
!t.allLinksShown&&i.length<e.topicLinks.length&&s.push(this.attach("topic-map-show-links"))
const l=(0,o.h)("section.links",s)
r.push(l)}return r},showAllLinks(){this.state.allLinksShown=!0}})
var d=(0,r.createWidget)("topic-map",{tagName:"div.topic-map",buildKey:e=>`topic-map-${e.id}`,defaultState:e=>({collapsed:!e.hasTopRepliesSummary}),html(e,t){const i=[this.attach("topic-map-summary",e,{state:t})]
return t.collapsed||i.push(this.attach("topic-map-expanded",e)),(e.hasTopRepliesSummary||this._includesSummary())&&(e.includeSummary=this._includesSummary(),i.push(this.attach("toggle-topic-summary",e))),e.showPMMap&&i.push(this.attach("private-message-map",e)),i},toggleMap(){this.state.collapsed=!this.state.collapsed},_includesSummary(){const e=this.siteSettings.custom_summarization_allowed_groups.split("|").map(parseInt)
return this.siteSettings.summarization_strategy&&this.currentUser&&this.currentUser.groups.some((t=>e.includes(t.id)))}})
e.default=d})),define("discourse/widgets/topic-post-visited-line",["exports","I18n","discourse/widgets/widget","virtual-dom"],(function(e,t,i,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var r=(0,i.createWidget)("topic-post-visited-line",{tagName:"div.small-action.topic-post-visited",html:e=>(0,n.h)(`div.topic-post-visited-line.post-${e.post_number}}`,(0,n.h)("span.topic-post-visited-message",t.default.t("topics.new_messages_marker")))})
e.default=r})),define("discourse/widgets/topic-status",["exports","I18n","discourse/helpers/topic-status-icons","discourse/widgets/widget","discourse/lib/utilities","virtual-dom","discourse-common/lib/icon-library"],(function(e,t,i,n,r,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var l=(0,n.createWidget)("topic-status",{tagName:"span.topic-statuses",html(e){const n=e.topic,l=this.currentUser&&!e.disableActions,a=[]
return i.default.render(n,(function(e,i){const n={class:"unpinned"===i?"unpinned":null},u=(0,s.iconNode)(e,n),c={title:(0,r.escapeExpression)(t.default.t(`topic_statuses.${i}.help`))}
let d="topic-status"
"unpinned"!==i&&"pinned"!==i||(d+=`.pin-toggle-button.${i}`),a.push((0,o.h)(`${l?"a":"span"}.${d}`,c,u))})),a},click(e){const t=e.target.closest(".topic-statuses")
t?.querySelector(".pin-toggle-button")?.contains(e.target)&&this.attrs.topic.togglePinnedForUser()}})
e.default=l})),define("discourse/widgets/user-notifications-large",["exports","discourse/widgets/widget","discourse/helpers/node","virtual-dom","@ember/string"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,t.createWidget)("large-notification-item",{tagName:"li",buildClasses(e){const t=["item","notification","large-notification"]
return e.get("read")||t.push("unread"),t},html(e){const t=this.site.notificationLookup[e.notification_type]
return[this.attach(`${(0,r.dasherize)(t)}-notification-item`,e,{},{fallbackWidgetName:"default-notification-item",tagName:"div"}),(0,n.h)("span.time",(0,i.dateNode)(e.created_at))]}})
var o=(0,t.createWidget)("user-notifications-large",{tagName:"ul.notifications.large-notifications",html(e){const t=e.notifications,i=t.findArgs.username
return t.map((e=>(e.username=i,this.attach("large-notification-item",e))))}})
e.default=o})),define("discourse/widgets/user-status-bubble",["exports","discourse/widgets/widget","I18n"],(function(e,t,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
var n=(0,t.createWidget)("user-status-bubble",{tagName:"div.user-status-background",html(e){let t=e.description
if(e.ends_at){const n=moment.tz(e.ends_at,this.currentUser.user_option.timezone).format(i.default.t("dates.long_date_without_year"))
t+=`\n${i.default.t("until")} ${n}`}return this.attach("emoji",{name:e.emoji,title:t})}})
e.default=n})),define("discourse/widgets/widget-dropdown",["exports","I18n","@popperjs/core","discourse/widgets/widget","@ember/runloop"],(function(e,t,i,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.WidgetDropdownItemClass=e.WidgetDropdownHeaderClass=e.WidgetDropdownClass=e.WidgetDropdownBodyClass=void 0
const o={tagName:"button",transform(e){return{label:this._buildLabel(e)}},buildAttributes(e){return{title:this._buildLabel(e)}},buildClasses(e){let t=["widget-dropdown-header","btn","btn-default"]
return e.class&&(t=t.concat(e.class.split(" "))),t.filter(Boolean).join(" ")},click(e){e.preventDefault(),this.sendWidgetAction("_onTrigger")},template:function(e,t){var i=__widget_helpers.iconNode,n=[]
n.push("\n"),e.icon&&(n.push("      "),n.push(i(e.icon)),n.push("\n")),n.push("    ")
var r=[]
return r.push("\n      "),r.push(this.transformed.label),r.push("\n    "),n.push(virtualDom.h("span",{className:"label",attributes:{}},r)),n.push("\n"),e.caret&&(n.push("      "),n.push(i("caret-down")),n.push("\n")),n.push("  "),n},_buildLabel:e=>e.translatedLabel?e.translatedLabel:t.default.t(e.label)}
e.WidgetDropdownHeaderClass=o,(0,n.createWidget)("widget-dropdown-header",o)
const s={tagName:"div",transform:e=>({content:"separator"===e.item?"<hr>":e.item.html?e.item.html:e.item.translatedLabel?e.item.translatedLabel:t.default.t(e.item.label)}),buildAttributes:e=>({"data-id":e.item.id,tabindex:"separator"===e.item?-1:0}),buildClasses(e){const t=["widget-dropdown-item","separator"===e.item?"separator":`item-${e.item.id}`]
return t.push(e.item.disabled?"disabled":""),t.join(" ")},keyDown(e){"Enter"===e.key&&(e.preventDefault(),this.sendWidgetAction("_onChange",this.attrs.item))},click(e){e.preventDefault(),this.sendWidgetAction("_onChange",this.attrs.item)},template:function(e,t){var i=__widget_helpers.iconNode,n=__widget_helpers.rawHtml,r=[]
return r.push("\n"),e.item.icon&&(r.push("      "),r.push(i(e.item.icon)),r.push("\n")),r.push("    "),r.push(new n({html:"<span>"+this.transformed.content+"</span>"})),r.push("\n  "),r}}
e.WidgetDropdownItemClass=s,(0,n.createWidget)("widget-dropdown-item",s)
const l={tagName:"div",buildClasses:e=>`widget-dropdown-body ${e.class||""}`,clickOutside(){this.sendWidgetAction("hideBody")},template:function(e,t){var i=[]
return i.push("\n"),e.content&&e.content.length&&e.content.forEach((e=>{i.push("      "),i.push(this.attach("widget-dropdown-item",{item:e},void 0,void 0)),i.push("\n")})),i.push("  "),i}}
e.WidgetDropdownBodyClass=l,(0,n.createWidget)("widget-dropdown-body",l)
const a={tagName:"div",init(e){if(!e)throw"A widget-dropdown expects attributes."
if(!e.id)throw"A widget-dropdown expects a unique `id` attribute."
if(!e.label&&!e.translatedLabel)throw"A widget-dropdown expects at least a `label` or `translatedLabel`"},buildKey:e=>e.id,buildAttributes:e=>({id:e.id}),defaultState:e=>({opened:!1,disabled:e.options&&e.options.disabled||!1}),buildClasses(e){const t=["widget-dropdown"]
return t.push(this.state.opened?"opened":"closed"),t.push(this.state.disabled?"disabled":""),t.join(" ")+" "+(e.class||"")},transform(e){return{options:e.options||{},isDropdownVisible:!this.state.disabled&&this.state.opened}},hideBody(){this.state.opened=!1},_onChange(e){e.disabled||(this.state.opened=!1,this.attrs.onChange&&("string"==typeof this.attrs.onChange?this.sendWidgetAction(this.attrs.onChange,e):this.attrs.onChange(e)))},destroy(){this._popper&&(this._popper.destroy(),this._popper=null)},willRerenderWidget(){this._popper&&this._popper.destroy()},didRenderWidget(){this.state.opened&&(0,r.schedule)("afterRender",(()=>{const e=document.querySelector(`#${this.attrs.id} .widget-dropdown-header`)
if(!e)return
const t=document.querySelector(`#${this.attrs.id} .widget-dropdown-body`)
t&&(this._popper=(0,i.createPopper)(e,t,{strategy:"absolute",placement:"bottom-start",modifiers:[{name:"preventOverflow"},{name:"offset",options:{offset:[0,5]}}]}))}))},_onTrigger(){this.state.opened=!this.state.opened},template:function(e,t){var i=[]
return i.push("\n"),e.content&&(i.push("      "),i.push(this.attach("widget-dropdown-header",{icon:e.icon,label:e.label,translatedLabel:e.translatedLabel,class:this.transformed.options.headerClass,caret:this.transformed.options.caret},void 0,void 0)),i.push("\n\n"),this.transformed.isDropdownVisible&&(i.push("        "),i.push(this.attach("widget-dropdown-body",{id:e.id,class:this.transformed.options.bodyClass,content:e.content},void 0,void 0)),i.push("\n"))),i.push("  "),i}}
e.WidgetDropdownClass=a
var u=(0,n.createWidget)("widget-dropdown",a)
e.default=u})),define("discourse/widgets/widget",["exports","discourse/widgets/hooks","discourse/widgets/decorator-helper","I18n","rsvp","discourse-common/lib/object","@ember/object","virtual-dom","discourse-common/config/environment","discourse/lib/source-identifier","@ember/application"],(function(e,t,i,n,r,o,s,l,a,u,c){Object.defineProperty(e,"__esModule",{value:!0}),e.applyDecorators=m,e.changeSetting=function(e,t,i){h[e]=h[e]||{},h[e][t]=i},e.createWidget=function(e,t){return f(g,e,t)},e.createWidgetFrom=f,e.decorateWidget=function(e,t){p[e]=p[e]||[],p[e].push(t)},e.default=void 0,e.deleteFromRegistry=function(e){return delete d[e]},e.queryRegistry=function(e){return d[e]},e.reopenWidget=function(e,t){let i=d[e]
if(!i)return void console.error((0,u.consolePrefix)(),`reopenWidget: Could not find widget ${e} in registry`)
t.template&&(t.html=t.template)
return Object.keys(t).forEach((e=>{let n=i.prototype[e]
i.prototype[e]=n instanceof Function?function(){var i=this
let r=Object.create(this)
r._super=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]
return n.apply(i,t)}
for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l]
return t[e].apply(r,s)}:t[e]})),i},e.resetDecorators=function(){Object.keys(p).forEach((e=>delete p[e]))},e.traverseCustomWidgets=function e(t,i){if(!t)return
"CustomWidget"===t.__type&&i(t);(t.children||(t.vnode?t.vnode.children:[])).forEach((t=>{e(t,i)}))}
const d={}
const p={}
function m(e,t,n,r){const o=p[`${e.name}:${t}`]||[]
if(o.length){const t=new i.default(e,n,r)
return o.map((e=>e(t)))}return[]}const h={}
function f(e,t,i){const n=class extends e{}
return n.prototype.__type="CustomWidget",t&&(d[t]=n),i.name=t,i.template&&(i.html=i.template),Object.keys(i).forEach((e=>n.prototype[e]=i[e])),n}class g{constructor(e,t,i){if(i=i||{},this.attrs=e||{},this.mergeState=i.state,this.model=i.model,this.register=t,this.dirtyKeys=i.dirtyKeys,t.deprecateContainer(this),(0,c.setOwner)(this,(0,c.getOwner)(t)),this.key=this.buildKey?this.buildKey(e):null,this.site=t.lookup("service:site"),this.siteSettings=t.lookup("service:site-settings"),this.currentUser=t.lookup("service:current-user"),this.capabilities=t.lookup("service:capabilities"),this.store=t.lookup("service:store"),this.appEvents=t.lookup("service:app-events"),this.keyValueStore=t.lookup("service:key-value-store"),(this.services||[]).forEach((e=>{this[e]=t.lookup(`service:${e}`)})),this.init(this.attrs),this.name){const e=h[this.name]
e&&Object.keys(e).forEach((t=>this.settings[t]=e[t]))}}transform(){return{}}defaultState(){return{}}init(){}destroy(){}get(e){return(0,s.get)(this,e)}render(e){const{dirtyKeys:t}=this
if(e&&e.key&&e.key===this.key)this.state=e.state
else if(this.state=this.defaultState(this.attrs,this.state),!(0,a.isProduction)()){if("object"!=typeof this.state)throw new Error("defaultState must return an object")
if(Object.keys(this.state).length>0&&!this.key)throw new Error(`you need a key when using state in ${this.name}`)}if(this.mergeState&&(this.state=(0,o.deepMerge)(this.state,this.mergeState)),e){const i=t.optionsFor(e.key)
if(e.shadowTree&&(this.shadowTree=!0,!i.dirty&&!t.allDirty()))return e.vnode
e.key&&t.renderedKey(e.key)
const n=i.onRefresh
n&&this.sendWidgetAction(n,i.refreshArg)}return this.draw(l.h,this.attrs,this.state)}_findAncestorWithProperty(e){let t=this
for(;t;){if(t[e])return t
t=t.parentWidget}}_findView(){const e=this._findAncestorWithProperty("_emberView")
if(e)return e._emberView}lookupWidgetClass(e){let t=d[e]
return t||(this.register?(t=this.register.lookupFactory(`widget:${e}`),t&&t.class?t.class:null):(console.error("couldn't find register"),null))}attach(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=this.lookupWidgetClass(e)
if(!r&&n.fallbackWidgetName&&(r=this.lookupWidgetClass(n.fallbackWidgetName)),r){const e=new r(t,this.register,i)
return e.parentWidget=this,e.dirtyKeys=this.dirtyKeys,n.tagName&&(e.tagName=n.tagName),e}throw new Error(`Couldn't find ${e} or fallback ${n.fallbackWidgetName}`)}didRenderWidget(){}willRerenderWidget(){}scheduleRerender(){let e=this
for(;e;){e.shadowTree&&this.dirtyKeys.keyDirty(e.key)
const t=e._rerenderable
if(t)return t.queueRerender()
e=e.parentWidget}}_sendComponentAction(e,t){let i
const n=this._findView()
if(n){const o=n.get(e)
if(!o)return void console.warn(`${e} not found`)
if("string"==typeof o)n[o](t),i=r.Promise.resolve()
else{const e=n.get("target")||n
i=o.call(e,t),i&&i.then||(i=r.Promise.resolve(i))}}return this.rerenderResult((()=>i))}findAncestorModel(){const e=this._findAncestorWithProperty("model")
if(e)return e.model}rerenderResult(e){this.scheduleRerender()
const t=e()
return t&&t.then?t.then((()=>this.scheduleRerender())):t}sendWidgetEvent(e,t){const i=`${e}Event`
return this.rerenderResult((()=>{const e=this._findAncestorWithProperty(i)
if(e)return e[i](t)}))}callWidgetFunction(e,t){const i=this._findAncestorWithProperty(e)
if(i)return i[e].call(i,t)}sendWidgetAction(e,t){return this.rerenderResult((()=>{const i=this._findAncestorWithProperty(e)
return i?i[e].call(i,t):this._sendComponentAction(e,t||this.findAncestorModel())}))}html(){}draw(e,i,r){const o={}
if(this.buildClasses){let e=this.buildClasses(i,r)||[]
Array.isArray(e)||(e=[e])
const t=m(this,"classNames",i,r)
t&&t.length&&(e=e.concat(t)),e.length&&(o.className=e.join(" "))}this.buildId&&(o.id=this.buildId(i)),this.buildAttributes&&(o.attributes=this.buildAttributes(i)),this.keyUp&&(o["widget-key-up"]=new t.WidgetKeyUpHook(this)),this.keyDown&&(o["widget-key-down"]=new t.WidgetKeyDownHook(this)),this.clickOutside&&(o["widget-click-outside"]=new t.WidgetClickOutsideHook(this)),this.click&&(o["widget-click"]=new t.WidgetClickHook(this)),this.doubleClick&&(o["widget-double-click"]=new t.WidgetDoubleClickHook(this)),this.mouseDownOutside&&(o["widget-mouse-down-outside"]=new t.WidgetMouseDownOutsideHook(this)),this.drag&&(o["widget-drag"]=new t.WidgetDragHook(this)),this.input&&(o["widget-input"]=new t.WidgetInputHook(this)),this.change&&(o["widget-change"]=new t.WidgetChangeHook(this)),this.mouseDown&&(o["widget-mouse-down"]=new t.WidgetMouseDownHook(this)),this.mouseUp&&(o["widget-mouse-up"]=new t.WidgetMouseUpHook(this)),this.mouseMove&&(o["widget-mouse-move"]=new t.WidgetMouseMoveHook(this)),this.mouseOver&&(o["widget-mouse-over"]=new t.WidgetMouseOverHook(this)),this.mouseOut&&(o["widget-mouse-out"]=new t.WidgetMouseOutHook(this)),this.touchStart&&(o["widget-touch-start"]=new t.WidgetTouchStartHook(this)),this.touchEnd&&(o["widget-touch-end"]=new t.WidgetTouchEndHook(this))
const s=o.attributes||{}
o.attributes=s,this.title&&("function"==typeof this.title?s.title=this.title(i,r):s.title=n.default.t(this.title)),this.transformed=this.transform(this.attrs,this.state)
let a=this.html(i,r)
if(this.name){const e=m(this,"before",i,r)||[],t=m(this,"after",i,r)||[]
a=e.concat(a).concat(t)}return(0,l.h)(this.tagName||"div",o,a)}}e.default=g,g.prototype.type="Thunk"})),define("discourse/config/environment",[],(function(){try{var e="discourse/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),i={default:JSON.parse(decodeURIComponent(t))}
return Object.defineProperty(i,"__esModule",{value:!0}),i}catch(n){throw new Error('Could not read config from meta tag with name "'+e+'".')}}))

//# sourceMappingURL=discourse-d4c2963c5e581e3c7d6f28009b01ce6754b7dbcfec3d58a328767aaea5d85331.map
//!
;
�A
�Eo��