1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[25285,27810,91722,98088],{22148(X,H,o){var D,y;D=[o(22410),o(60984),o(8454),o(57642),o(47536),o(96352),o(43349),o(95692),o(52473),o(68636),o(91749),o(49897),o(29930),o(65303),o(81335),o(57576),o(91722)],y=(function(N,A,U,B,g,m,F,Y,v,C,M,K,E,z,Z,q,_){const I={};let S="0",O="";$(window).on("action:ajaxify.start",function(n,a){B.removeListeners(),String(a.url).startsWith("topic/")||(m.disable(),v.get("navbar/title").find("span").text("").hide(),E.remove("bookmark"))}),I.init=async function(){const n=S==="0"||String(S)!==String(ajaxify.data.tid);S=String(ajaxify.data.tid),O=ajaxify.currentPage,M.fire("action:topic.loading"),app.enterRoom("topic_"+S),n&&(g.signaturesShown={}),await g.onTopicPageLoad(v.get("post")),m.init('[component="topic"]>[component="post"]',ajaxify.data.postcount,I.toTop,I.toBottom,I.navigatorCallback),U.init(S),A.init(S,$(".topic")),B.init(),F.handleSort("topicPostSort","topic/"+ajaxify.data.slug),config.usePagination||N.init($('[component="topic"]'),g.loadMorePosts),s(),l(),k(),p(),d(),J(),i(S),r(),f(),$(window).on("scroll",utils.debounce(Q,250)),t(),_.addHandlers(),M.fire("action:topic.loaded",ajaxify.data)};function t(){Promise.resolve().then(function(){var n=[o(6411)];(a=>{config.topicSearchEnabled&&o.e(69749).then(function(){var e=[o(69749)];(function(c){a.bind(["command+f","ctrl+f"],function(x){x.preventDefault();let T=$('[component="navbar"] [component="search/form"]');T.length||(T=$('[component="sidebar/right"] [component="search/form"]')),T.find('[component="search/fields"] input[name="query"]').val("in:topic-"+ajaxify.data.tid+" "),c.showAndFocusInput(T)}),M.onPage("action:ajaxify.cleanup",()=>{a.unbind(["command+f","ctrl+f"])})}).apply(null,e)}).catch(o.oe),a.bind("j",e=>{if(e.target.classList.contains("mousetrap"))return;const c=m.getIndex(),x=m.getCount();c!==x&&m.scrollToIndex(c,!0,0)}),a.bind("k",e=>{if(e.target.classList.contains("mousetrap"))return;const c=m.getIndex();c!==1&&m.scrollToIndex(c-2,!0,0)})}).apply(null,n)}).catch(o.oe)}I.toTop=function(){m.scrollTop(0)},I.toBottom=function(){socket.emit("topics.postcount",ajaxify.data.tid,function(n,a){if(n)return E.error(n);m.scrollBottom(a-1)})};function i(n){if(window.location.hash){const c=$(utils.escapeHTML(window.location.hash));if(c.length){const x=c.parents("[data-pid]");return m.scrollToElement(x,!0,0)}}const a=ajaxify.data.bookmark||C.getItem("topic:"+n+":bookmark"),e=ajaxify.data.postIndex;if(w(e),m.shouldScrollToPost(e))return m.scrollToPostIndex(e-1,!0,0);a&&parseInt(a,10)>e&&(!config.usePagination||config.usePagination&&ajaxify.data.pagination.currentPage===1)&&ajaxify.data.postcount>ajaxify.data.bookmarkThreshold&&E.alert({alert_id:"bookmark",message:"[[topic:bookmark-instructions]]",timeout:15e3,type:"info",clickfn:function(){m.scrollToIndex(Math.max(0,parseInt(a,10)-1),!0)},closefn:function(){C.removeItem("topic:"+n+":bookmark")}})}function r(){const n=document.querySelector('[component="topic/thumb/list"]');n&&(n.addEventListener("click",async a=>{const e=a.target.closest("a");if(e){let h=function(P){const j=b.find('[component="topic/thumb/select"]');if(j.length){const G=(P%j.length+j.length)%j.length,R=j.eq(G);j.removeClass("border-primary"),R.addClass("border-primary");const L=R.find("img").attr("src");b.find('[component="topic/thumb/current"]').attr("src",L).parent().attr("href",L)}};const c=Array.from(e.parentNode.children).indexOf(e);a.stopPropagation(),a.preventDefault();const x=ajaxify.data.thumbs.map(P=>({...P}));x.forEach((P,j)=>{P.selected=j===c});const T=await Z.render("modals/topic-thumbs-view",{src:e.href,thumbs:x}),b=await z.dialog({size:"lg",onEscape:!0,backdrop:!0,message:T});b.on("click",'[component="topic/thumb/select"]',function(){const P=b.find('[component="topic/thumb/select"]');h(P.index(this))});const W=`keydown.topic-thumbs-${Date.now()}`,V=function(P){if(P.key!=="ArrowLeft"&&P.key!=="ArrowRight")return;P.preventDefault();const j=b.find('[component="topic/thumb/select"]'),G=j.index(j.filter(".border-primary").first()),R=G>=0?G:0,L=P.key==="ArrowRight"?1:-1;h(R+L)};$(document).on(W,V),b.on("hidden.bs.modal",function(){$(document).off(W,V)})}}),$('[component="topic/thumb/list/expand"]').on("click",function(){const a=$(this);a.parents('[component="topic/thumb/list"]').removeClass("thumbs-collapsed"),a.remove()}))}function s(){v.get("topic").on("click","blockquote .toggle",function(){const n=$(this).parent("blockquote"),a=$(this);n.toggleClass("uncollapsed");const e=!n.hasClass("uncollapsed");a.find("i").toggleClass("fa-angle-down",e).toggleClass("fa-angle-up",!e)})}function l(){new q('[component="copy/code/btn"]',{text:function(a){const e=$(a);e.find("i").removeClass("fa-copy").addClass("fa-check"),setTimeout(()=>e.find("i").removeClass("fa-check").addClass("fa-copy"),2e3);const c=e.parent().find("code");return c.attr("data-lines")&&c.find(".hljs-ln-code[data-line-number]").length?c.find(".hljs-ln-code[data-line-number]").map((x,T)=>T.textContent).get().join(` 2`):c.text()}});function n(){function a(h){return h.scrollHeight>h.clientHeight}function e(h){if(h.length){if(!h[0].scrollHeight)return setTimeout(e,100,h);a(h.get(0))&&h.parent().parent().find('[component="copy/code/btn"]').css({margin:"0.5rem 1.5rem 0 0"})}}let c=$('[component="topic"] [component="post/content"] code:not([data-button-added])');c=c.filter((h,W)=>$(W).text().includes(` 3`));const x=$('<div class="hover-parent position-relative"></div>'),T=$('<button component="copy/code/btn" class="hover-visible position-absolute top-0 btn btn-sm btn-outline-secondary" style="right: 0px; margin: 0.5rem 0.5rem 0 0;"><i class="fa fa-fw fa-copy"></i></button>'),b=c.parent();b.wrap(x).parent().append(T),b.parent().find('[component="copy/code/btn"]').translateAttr("title","[[topic:copy-code]]"),b.each((h,W)=>{e($(W).find("code"))}),c.attr("data-button-added",1)}
3M.registerPage("action:posts.loaded",n),M.registerPage("action:topic.loaded",n),M.registerPage("action:posts.edited",n)}function u(n,a){const e=$(`[component="topic"]>[component="post"][data-pid="${a}"]`);if(e.length)return n.preventDefault(),m.scrollToIndex(e.attr("data-index"),!0),!1}function k(){v.get("topic").on("click",'[component="post/parent"]',function(n){const a=$(this),e=a.find('[component="post/parent/content"]');if(e.length){const c=a.attr("data-collapsed")==="true";if(a.attr("data-collapsed",c?"false":"true"),e.toggleClass("line-clamp-1"),a.find(".timeago").toggleClass("hidden"),a.toggleClass("flex-column").toggleClass("flex-row"),c)return!1}else return u(n,a.attr("data-topid"))}),v.get("topic").on("click",'[component="post/parent"] .timeago',function(n){return u(n,$(this).parents("[data-parent-pid]").attr("data-parent-pid"))})}function p(){$('[component="topic"]').on("click",'[component="post/reply-count"]',function(){const n=$(this);o.e(18631).then(function(){var a=[o(18631)];(function(e){e.init(n)}).apply(null,a)}).catch(o.oe)}),$('[component="topic"]').on("click",'[component="post/replies"] .post-header a.timeago',function(n){return u(n,$(this).parents("[data-pid]").attr("data-pid"))})}function d(){if(!ajaxify.data.showPostPreviewsOnHover||utils.isMobile())return;let n=0,a=!1,e=null;const c={};function x(){clearTimeout(n),n=0,$("#post-tooltip").remove(),a=!0}function T(b){$(b.target).closest("#post-tooltip").length||x()}$(window).one("action:ajaxify.start",x),$('[component="topic"]').on("mouseenter",'a[component="post/parent"], [component="post/parent/content"] a,[component="post/content"] a, [component="topic/event"] a',async function(){e=$(this),e.removeAttr("over-tooltip"),e.one("mouseleave",function(){clearTimeout(n),n=0,setTimeout(()=>{!e.attr("over-tooltip")&&!n&&x()},100)}),clearTimeout(n),a=!1,n=setTimeout(async()=>{async function b(R){const L=c[R]||await K.get(`/posts/${encodeURIComponent(R)}/summary`);if($("#post-tooltip").remove(),L&&ajaxify.data.template.topic){c[R]=L;const tt=await app.parseAndTranslate("partials/topic/post-preview",{post:L});if(a)return;tt.hide().find(".timeago").timeago(),tt.appendTo($("body")).fadeIn(300);const et=e.parents('[component="topic"]').find('[component="post/content"]').first(),it=et.offset(),at=et.width(),{top:nt}=e.get(0).getBoundingClientRect(),st=nt>window.innerHeight/2;tt.on("mouseenter",function(){e.attr("over-tooltip",1)}),tt.one("mouseleave",x),$(window).off("click",T).one("click",T);const ot={left:it.left,width:at};st?ot.bottom=window.innerHeight-nt-window.scrollY+5:ot.top=nt+window.scrollY+30,tt.css(ot)}}const h=e.attr("href"),W=utils.urlToLocation(h),V=W.pathname,P=h&&h!=="#"&&window.location.hostname===W.hostname;$("#post-tooltip").remove();const j=P&&V&&V.match(/\/post\/([\d]+|(?:[\w_.~!$&'()*+,;=:@-]|%[\dA-F]{2})+)/),G=P&&V&&V.match(/\/topic\/([\da-z-]+)/);if(j){const R=j[1];if(encodeURIComponent(e.parents('[component="post"]').attr("data-pid"))===encodeURIComponent(R))return;b(R)}else if(G){const R=G[1],L=await K.get("/topics/"+R,{});b(L.mainPid)}},300)})}function f(){const n=document.getElementById("show-crossposts");n&&n.addEventListener("click",async()=>{const{crossposts:a}=ajaxify.data,e=await app.parseAndTranslate("modals/crossposts",{crossposts:a});z.dialog({onEscape:!0,backdrop:!0,title:"[[global:crossposts]]",message:e})})}function J(){(config.enableQuickReply||config.theme&&config.theme.enableQuickReply)&&Y.init({route:`/topics/${ajaxify.data.tid}`,body:{tid:ajaxify.data.tid}})}function Q(){const n=v.get("navbar/title").find("span"),a=$(window).scrollTop();a>50&&n.hasClass("hidden")?n.text(ajaxify.data.title).removeClass("hidden"):a<=50&&!n.hasClass("hidden")&&n.text("").addClass("hidden"),a>300&&E.remove("bookmark")}I.navigatorCallback=function(n,a){if(!ajaxify.data.template.topic||m.scrollActive)return;const e="topic/"+ajaxify.data.slug+(n>1?"/"+n:"");if(e!==O&&(O=e,n>=a&&app.user.uid&&K.put(`/topics/${ajaxify.data.tid}/read`),w(n),ajaxify.data.updateUrlWithPostIndex&&history.replaceState)){let c=window.location.search||"";config.usePagination||(c=c&&!/^\?page=\d+$/.test(c)?c:""),history.replaceState({url:e+c},null,window.location.protocol+"//"+window.location.host+config.relative_path+"/"+e+c)}};function w(n){const a="topic:"+ajaxify.data.tid+":bookmark",e=ajaxify.data.bookmark||C.getItem(a);config.topicPostSort==="newest_to_oldest"&&(n=Math.max(1,ajaxify.data.postcount-n+2)),ajaxify.data.postcount>ajaxify.data.bookmarkThreshold&&n>ajaxify.data.bookmarkThreshold&&(!e||parseInt(n,10)>parseInt(e,10)||ajaxify.data.postcount<parseInt(e,10))&&(app.user.uid?(ajaxify.data.bookmark=Math.min(n,ajaxify.data.postcount),socket.emit("topics.bookmark",{tid:ajaxify.data.tid,index:ajaxify.data.bookmark},function(c){if(c)return ajaxify.data.bookmark=e,E.error(c)})):C.setItem(a,n)),(!e||parseInt(n,10)>=parseInt(e,10))&&E.remove("bookmark")}return I}).apply(H,D),y!==void 0&&(X.exports=y)},57642(X,H,o){var D,y;D=[o(8454),o(60984),o(47536),o(2269),o(52473),o(17459),o(91749),o(30076)],y=(function(N,A,U,B,g,m,F,Y){const v={},C={"event:user_status_change":M,"event:voted":K,"event:bookmarked":E,"event:topic_deleted":A.setDeleteState,"event:topic_restored":A.setDeleteState,"event:topic_purged":z,"event:topic_locked":A.setLockedState,"event:topic_unlocked":A.setLockedState,"event:topic_pinned":A.setPinnedState,"event:topic_unpinned":A.setPinnedState,"event:topic_moved":Z,"event:post_edited":q,"event:post_purged":_,"event:post_deleted":I,"event:post_restored":I,"posts.bookmark":S,"posts.unbookmark":S,"posts.upvote":O,"posts.downvote":O,"posts.unvote":O,"event:new_post":U.onNewPost};v.init=function(){v.removeListeners();for(const[t,i]of Object.entries(C))socket.on(t,i)},v.removeListeners=function(){for(const[t,i]of Object.entries(C))socket.removeListener(t,i)};function M(t){app.updateUserStatus($('[data-uid="'+t.uid+'"] [component="user/status"]'),t.status)}function K(t){const i=$('[data-pid="'+t.post.pid+'"] [component="post/vote-count"]').filter(function(s,l){return $(l).closest("[data-pid]").attr("data-pid")===String(t.post.pid)}),r=$('.reputation[data-uid="'+t.post.uid+'"]');i.text(t.post.votes).attr("data-votes",t.post.votes),r.text(t.user.reputation).attr("data-reputation",t.user.reputation)}function E(t){$('[data-pid="'+t.post.pid+'"] .bookmarkCount').filter(function(i,r){return $(r).closest("[data-pid]").attr("data-pid")===String(t.post.pid)}).text(t.post.bookmarks).attr("data-bookmarks",t.post.bookmarks)}
3function z(t){ajaxify.data.category&&ajaxify.data.category.slug&&String(t.tid)===String(ajaxify.data.tid)&&ajaxify.go("category/"+ajaxify.data.category.slug,null,!0)}function Z(t){t&&t.slug&&String(t.tid)===String(ajaxify.data.tid)&&ajaxify.go("topic/"+t.slug,null,!0)}function q(t){if(!t||!t.post||String(t.post.tid)!==String(ajaxify.data.tid))return;const i=g.get("post/content",t.post.pid).filter(function(p,d){return String($(d).closest("[data-pid]").attr("data-pid"))===String(t.post.pid)}),r=$(`[data-pid="${t.post.pid}"]`),s=r.find('[component="post/editor"]').filter(function(p,d){return String($(d).closest("[data-pid]").attr("data-pid"))===String(t.post.pid)}),l=g.get("topic/title"),u=g.get("navbar/title").find("span"),k=g.get("breadcrumb/current");if(t.topic.rescheduled)return ajaxify.go("topic/"+t.topic.slug,null,!0);if(l.length&&t.topic.title&&t.topic.renamed){ajaxify.data.title=t.topic.title;const p="topic/"+t.topic.slug+(window.location.search?window.location.search:"");history.replaceState({url:p},null,window.location.protocol+"//"+window.location.host+config.relative_path+"/"+p),l.fadeOut(250,function(){l.text(t.topic.title).fadeIn(250)}),k.is(":visible")&&k.fadeOut(250,function(){k.find("span").text(t.topic.title),k.fadeIn(250)}),u.fadeOut(250,function(){u.text(t.topic.title).fadeIn(250)})}if(t.post.changed){i.fadeOut(250,function(){if(i.html(t.post.content),i.find("img:not(.not-responsive)").addClass("img-fluid"),B.wrapImagesInLinks(i.parent()),U.addBlockquoteEllipses(i.parent()),i.fadeIn(250),t.post.edited){const d={editor:t.editor,editedISO:utils.toISOString(t.post.edited)};app.parseAndTranslate("partials/topic/post-editor",d,function(f){s.replaceWith(f),r.find('[component="post/edit-indicator"]').removeClass("hidden").translateAttr("title",`[[global:edited-timestamp, ${Y.isoTimeToLocaleString(d.editedISO,config.userLang)}]]`),r.find('[component="post/editor"] .timeago').timeago(),F.fire("action:posts.edited",t)})}});const p=$(`[component="post/parent"][data-parent-pid="${t.post.pid}"]`);p.length&&(p.find('[component="post/parent/content"]').html(t.post.content),p.find("img:not(.not-responsive)").addClass("img-fluid"),p.find('[component="post/parent/content"] img:not(.emoji)').each(function(){B.wrapImageInLink($(this))}))}else F.fire("action:posts.edited",t);t.topic.tags&&t.topic.tagsupdated&&Promise.all([o.e(20056),o.e(63)]).then(function(){var p=[o(63)];(function(d){d.updateTopicTags([t.topic])}).apply(null,p)}).catch(o.oe),t.topic.thumbsupdated&&Promise.all([o.e(23662),o.e(65285),o.e(36159)]).then(function(){var p=[o(36159)];(function(d){d.updateTopicThumbs(t.topic.tid)}).apply(null,p)}).catch(o.oe),N.removeMenu(g.get("post","pid",t.post.pid))}function _(t){!t||String(t.tid)!==String(ajaxify.data.tid)||(g.get("post","pid",t.pid).fadeOut(500,function(){$(this).remove(),U.showBottomPostBar()}),ajaxify.data.postcount-=1,N.updatePostCount(ajaxify.data.postcount),o.e(18631).then(function(){var i=[o(18631)];(function(r){r.onPostPurged(t)}).apply(null,i)}).catch(o.oe),$(`[component="post/parent"][data-parent-pid="${t.pid}"]`).remove())}function I(t){const i=g.get("post","pid",t.pid),{isAdminOrMod:r}=ajaxify.data.privileges,s=String(t.uid)===String(app.user.uid),l=r||s,u=!!t.deleted;i.length&&(i.toggleClass("deleted"),N.toggle(t.pid,u),l||(i.find('[component="post/tools"]').toggleClass("hidden",u),u?i.find('[component="post/content"]').translateText("[[topic:post-is-deleted]]"):i.find('[component="post/content"]').html(t.content)));const k=$(`[component="post/parent"][data-parent-pid="${t.pid}"]`);k.length&&!l&&k.each((p,d)=>{const f=$(d);u?f.find('[component="post/parent/content"]').translateText("[[topic:post-is-deleted]]"):f.find('[component="post/parent/content"]').html(t.content)})}function S(t){const i=$('[data-pid="'+t.post.pid+'"] [component="post/bookmark"]').filter(function(r,s){return $(s).closest("[data-pid]").attr("data-pid")===String(t.post.pid)});i.length&&(i.attr("data-bookmarked",t.isBookmarked),i.find('[component="post/bookmark/on"]').toggleClass("hidden",!t.isBookmarked),i.find('[component="post/bookmark/off"]').toggleClass("hidden",t.isBookmarked))}function O(t){const i=$('[data-pid="'+t.post.pid+'"]');i.find('[component="post/upvote"]').filter(function(r,s){return $(s).closest("[data-pid]").attr("data-pid")===String(t.post.pid)}).toggleClass("upvoted",t.upvote),i.find('[component="post/downvote"]').filter(function(r,s){return $(s).closest("[data-pid]").attr("data-pid")===String(t.post.pid)}).toggleClass("downvoted",t.downvote)}return v}).apply(H,D),y!==void 0&&(X.exports=y)},91722(X,H,o){o.r(H),o.d(H,{addHandlers:()=>I,list:()=>E,refresh:()=>Z,register:()=>q,save:()=>z,trigger:()=>O});var D=o(65303),y=o(81335),N=o.n(y),A=o(49897),U=o(68636),B=o.n(U),g=
3o(17459),m=o.n(g),F=o(29930);const Y="ap:intents:handles";function v(){try{return B().getItem(Y)}catch{return null}}function C(t){try{B().setItem(Y,t)}catch{}}const M={create:"[[intents:display.create]]",like:"[[intents:display.like]]",dislike:"[[intents:display.dislike]]",follow:"[[intents:display.follow]]",object:"[[intents:display.object]]"};async function K(t){return await(0,g.translateKeys)(Object.keys(t).map(i=>`${M[i.toLowerCase()]}`))}function E(){const t=v();if(!t)return new Map;let i;try{i=JSON.parse(t)}catch{return new Map}const r=new Map;return Array.isArray(i)&&i.forEach(s=>{s&&s.handle&&typeof s.intents=="object"&&!Array.isArray(s.intents)&&r.set(s.handle,s.intents)}),r}function z(t,i){if(typeof t!="string"||!t.trim()||(t=t.trim(),!i||typeof i!="object"||Array.isArray(i)))return;const r=E();r.set(t,i);const s=Array.from(r.entries()).map(([l,u])=>({handle:l,intents:u}));C(JSON.stringify(s))}async function Z(t){if(typeof t!="string"||!t.trim())return null;t=t.trim().replace(/^@/,"");const i=await(0,A.get)(`/api/v3/intents/query/${t}`);return i&&i.intents&&typeof i.intents=="object"?(z(t,i.intents),{intents:Object.keys(i.intents)}):null}async function q(){if(!config.activitypub.enabled)return;let t=E(),i=await Promise.all(Array.from(t.entries()).map(async([r,s])=>({handle:r,intents:(await K(s)).join(", ")})));y.render("modals/intents/register",{description:"[[intents:description]]",handles:i}).then(async r=>{const s=await(0,D.dialog)({title:"[[intents:title]]",message:r}),l=s.find("#intents-handle-input"),u=s.find("#intents-register-btn"),k=()=>{const p=l.val().trim(),d=/^@?[\w.-]+@[\w.-]+\.[\w]{2,}$/.test(p);u.prop("disabled",!d)};l.on("input",k),k(),s.find("#intents-register-form").on("submit",async p=>{p.preventDefault();const d=l.val().trim();u.prop("disabled",!0);try{await Z(d),t=E(),i=await Promise.all(Array.from(t.entries()).map(async([J,Q])=>({handle:J,intents:(await K(Q)).join(", ")})));const f=await y.render("modals/intents/register",{handles:i});s.find("#intents-registered-list").html(f)}catch(f){F.error(f.message)}finally{l.val(""),u.prop("disabled",!1)}}),s.on("click",'[data-action="remove"]',function(){const p=$(this).attr("data-handle"),d=E();d.delete(p);const f=Array.from(d.entries()).map(([J,Q])=>({handle:J,intents:Q}));C(JSON.stringify(f)),$(this).closest("li").remove(),d.size||(s.find("#intents-registered-list").closest("hr").next("h6, p").remove(),s.find("#intents-registered-list").closest("hr").prev("p").after('<p class="text-muted mt-3">[[intents:no-handles]]</p>'))})})}const _='[component="topic/reply/guest"], [component="category/post/guest"]';function I(){config.activitypub.enabled&&(document.removeEventListener("click",S),document.addEventListener("click",S,!0))}function S(t){if(t.target.closest(_)){t.preventDefault(),t.stopPropagation();const r=ajaxify.data.tid,s=ajaxify.data.cid,l={};r?(l.inReplyTo=utils.isNumber(ajaxify.data.mainPid)?`${config.url}/post/${ajaxify.data.mainPid}`:ajaxify.data.mainPid,l.content=`@${ajaxify.data.author.userslug}`):s&&(l.content=`@${ajaxify.data.handleFull}`),O("create",l)}}async function O(t,i){if(!config.activitypub.enabled)return;const r=E(),s=t.toLowerCase(),l=M[s],u=await(0,g.translate)(`${l||t}`),k=Array.from(r.entries()).filter(([,d])=>d&&typeof d=="object"&&s in d).map(([d,f])=>({handle:d,intents:f})),p=await Promise.all(k.map(async({handle:d,intents:f})=>({handle:d,intents:(await K(f)).join(", ")})));y.render("modals/intents/trigger",{displayIntent:u,matchingHandles:p,hasAnyHandles:r.size>0}).then(async d=>{const f=await(0,D.dialog)({title:`[[intents:trigger-title, ${u}]]`,message:d});f.on("click",'[data-action="execute-intent"]',function(){const J=$(this).attr("data-handle"),Q=r.get(J);let w=Q&&Q[s];
3if(w&&i&&typeof i=="object"&&Object.keys(i).forEach(n=>{const a=i[n],e=`{${n}}`;w.includes(e)&&(w=w.replaceAll(e,encodeURIComponent(a)))}),w=w?.replaceAll(/\{[^}]+\}/g,""),w)try{const n=new URL(w);(n.protocol==="http:"||n.protocol==="https:")&&(window.location.href=w)}catch{}}),f.on("click",'[data-action="open-register"]',function(){f.modal("hide"),setTimeout(()=>q(),300)}),f.on("click",'[data-action="go-login"]',function(){f.modal("hide"),ajaxify.go("login")})})}},43349(X,H,o){var D,y;D=[o(52473)],y=(function(N){const A={};return A.handleSort=function(U,B){const g=N.get("thread/sort");g.find("i").removeClass("fa-check");const m=ajaxify.data.sortOption||config[U];g.find('a[data-sort="'+m+'"]').find("i").addClass("fa-check"),$("body").off("click",'[component="thread/sort"] a[data-sort]').on("click",'[component="thread/sort"] a[data-sort]',function(){const Y=$(this).attr("data-sort"),v=utils.params();v.sort=Y;const C=$.param(v);ajaxify.go(B+(C?"?"+C:""))})},A}).apply(H,D),y!==void 0&&(X.exports=y)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.