define("superman-san/app/chat-input/result_f700e80",["san","tslib","@searchfe/inject-js"],function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__1__,__WEBPACK_EXTERNAL_MODULE__5__){return a=[function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__1__},function(t,e,n){e=function(){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function o(t){return typeof t}:function o(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(0).defineComponent;function s(t){if(null===t||t===undefined)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;nthis.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var o,r,s,l=!1;;)switch(i){case"hex":return function(t,e,n,i){n=Number(n)||0;var a=t.length-n;if((!i||a<(i=Number(i)))&&(i=a),(a=e.length)%2!=0)throw new TypeError("Invalid hex string");a/2t.length)throw new RangeError("Index out of range")}function S(t,e,n,i){e<0&&(e=65535+e+1);for(var a=0,o=Math.min(t.length-n,2);a>1,c=-7,p=n?a-1:0,d=n?-1:1,n=t[e+p];for(p+=d,o=n&(1<<-c)-1,n>>=-c,c+=s;0
搜索
{{data.desc}}
{{item.text}}
{{ item.text }}
{{ panel.text }}
{{ panel.text }}
{{ panel.text }}
{{ panel.text }}
{{title}}
{{ title }}
{{ item.text }}
更多
\n \n \n ',this.bindPrefixEvent(n),(0,_.createAiInputEditorContent)(this.inputEl),this.inputEl.insertBefore(n,this.inputEl.firstChild),this.prefixEl=n)},i.prototype.addAiInputAgent=function(t){var e,n=this;(this.inputEl&&!this.hasAgent||"orion"!==(null==t?void 0:t.agentType))&&(this.setMode(y.ChatInputMode.AI),(e=document.createElement("span")).className="cs-pc-input-agent",e.contentEditable="false",e.innerText="@"+t.agentName,this.inputEl.append(e),this.agentEl=e,this.hasAgent||this.removeUserInputSugText(),this.nextTick(function(){(0,_.focusInputLast)(n.inputEl)}),this.hasAgent=!0,this.emitAiToolChange("agent-add","manual",{agentInfo:t}))},i.prototype.removeUserInputSugText=function(){var e=this,t=null!==(n=this.inputEl.childNodes)&&void 0!==n?n:[],n=Array.from(t).findIndex(function(t){return t===e.agentEl});if(!(n<=0))for(var i=n-1;0<=i;i--)if(t[i]&&t[i].nodeType===Node.TEXT_NODE){var a=t[i].textContent.lastIndexOf("@");if(-1!==a){t[i].textContent=t[i].textContent.substring(0,a);break}t[i].textContent=""}},i.prototype.bindPrefixEvent=function(t){var e,n,i=this;t&&(e=t.querySelector(".close-icon"),t.addEventListener("mousedown",n=function(t){t.stopPropagation(),i.eventEmitter.emit("prefix-click"),i.emitAiToolChange("prefix-close","prefix-click"),i.closePanel(),null!=e&&e.removeEventListener("mousedown",n),i.stopVoiceRecording()}))},i.prototype.renderAiInputFilePrefix=function(g,f,m){var v;return void 0===f&&(f=1),void 0===m&&(m=!1),(0,w.__awaiter)(this,void 0,void 0,function(){var s,l,u,c,e,n,i,a,o,r,p,d,h=this;return(0,w.__generator)(this,function(t){switch(t.label){case 0:return[4,Promise.resolve().then(function(){return(0,w.__importStar)(b(453))})];case 1:if(p=t.sent(),s=p.getFileIcon,l=p.getImageUrl,u=p.IconMaps,c=!!g.isMixed,this.fileEl&&this.fileEl.classList.contains("ai-input-image")===("image"===g.uploadType)){switch(e=this.fileEl.querySelector(".ai-input-file-name"),n=this.fileEl.querySelector(".ai-input-file-num"),i=this.fileEl.querySelector(".ai-input-file-icon-img"),a=this.fileEl.querySelector(".ai-input-image-bg"),o=this.fileEl.querySelector(".ai-input-image-num"),r=this.fileEl.querySelector(".ai-input-file-icon-loading"),g.uploadType){case"file":e&&(e.innerText=g.fileName),n&&(c?(n.innerText=" 等"+f+"个文件和图片",m&&(i.src="https://psstatic.cdn.bcebos.com/basics/aichat/folder-%20color_1756432409000.png",null!=r&&r.remove())):1===f?(n.innerText=" "+f+"个文件",m&&(i.src=s(g),null!=r&&r.remove())):(n.innerText=" 等"+f+"个文件",m&&(i.src="https://psstatic.cdn.bcebos.com/basics/aichat/folder-%20color_1756432409000.png",null!=r&&r.remove())));break;case"image":a&&g.url&&(a.src=g.url),o&&(o.innerText=f.toString())}return[2]}return(this.fileEl&&(null!==(v=this.fileElMutationObserver)&&void 0!==v&&v.disconnect(),this.fileEl.remove(),this.fileEl=null,this.fileElMutationObserver=null),this.inputEl&&this.mode===y.ChatInputMode.AI&&g)?(d=document.createDocumentFragment(),p=function(t,e){var n,i,a,o,r=document.createElement("span");return(h.fileEl=r).contentEditable="false",r.id="ai-input-file-tag",r.style.display=null!==(n=h.inputMainDom)&&void 0!==n&&n.classList.contains("one-line-input")?"inline-block":"none",r.className=["file"===t?"ai-input-file":"ai-input-image",0===e.status||1===e.status?"file"===t?"ai-input-file-uploading":"ai-input-image-uploading":"",3===e.status?"ai-input-file-failed":""].filter(Boolean).join(" "),"file"===t?((o=document.createElement("span")).className="ai-input-file-inner",(a=document.createElement("span")).className="ai-input-file-icon",(n=document.createElement("img")).className="ai-input-file-icon-img",n.src=c?"https://psstatic.cdn.bcebos.com/basics/aichat/folder-%20color_1756432409000.png":s(e),a.appendChild(n),0!==e.status&&1!==e.status||((i=document.createElement("img")).className="ai-input-file-icon-loading",i.src=u.loadingIcon,a.appendChild(i)),o.appendChild(a),n=document.createElement("span"),i=document.createElement("span"),a=document.createElement("span"),n.className="ai-input-file-name-container",i.className="ai-input-file-name",a.className="ai-input-file-num",i.textContent=e.fileName,a.textContent=c?" 等"+f+"个文件和图片":" "+f+"个文件",n.appendChild(i),n.appendChild(a),o.appendChild(n),r.appendChild(o)):"image"===t&&(o=document.createElement("img"),t=document.createElement("div"),o.className="ai-input-image-bg",t.className="ai-input-image-num",o.src=l(e),t.innerText=f.toString(),r.classList.add("multi-image-mask"),r.appendChild(o),r.appendChild(t)),r},"file"!==g.uploadType&&"image"!==g.uploadType||(p=p(g.uploadType,g),d.appendChild(p)),null!==(v=this.inputEl.querySelector("#ai-input-file-tag"))&&void 0!==v&&v.remove(),this.getCurrentPanelName()?this.inputEl.appendChild(d):this.inputEl.insertBefore(d,this.inputEl.firstChild),this.fileElMutationObserver||(this.fileElMutationObserver=new MutationObserver(function(t){var e,n,i,a;if(h.mode!==y.ChatInputMode.NORMAL){var o=[];try{for(var r=(0,w.__values)(t),s=r.next();!s.done;s=r.next())s.value.removedNodes.forEach(function(t){return o.push(t)})}catch(p){e={error:p}}finally{try{s&&!s.done&&(n=r["return"])&&n.call(r)}finally{if(e)throw e.error}}try{for(var l=(0,w.__values)(o),u=l.next();!u.done;u=l.next())!function(e){"ai-input-file-tag"===e.id&&Promise.resolve().then(function(){var t;null!==(t=h.inputEl)&&void 0!==t&&t.contains(e)||null!==(t=h.inputEl)&&void 0!==t&&t.insertBefore(e,h.inputEl.firstChild)})}(u.value)}catch(d){c={error:d}}finally{try{u&&!u.done&&(i=l["return"])&&i.call(l)}finally{if(c)throw c.error}}var c=null===(i=h.inputEl)||void 0===i?void 0:i.querySelector("#ai-input-file-tag");c&&c!==(null===(i=h.inputEl)||void 0===i?void 0:i.firstChild)&&null!==(a=h.inputEl)&&void 0!==a&&a.insertBefore(c,h.inputEl.firstChild)}}),this.fileElMutationObserver.observe(this.inputEl,{childList:!0,subtree:!0})),(d=this.inputEl.lastChild)&&d.nodeType===Node.TEXT_NODE&&" "===d.data||this.inputEl.appendChild(document.createTextNode(" ")),this.temporaryContent&&g.status===x.UploadStatus.BOS_SUCCESS&&(this.temporaryContent=this.getValue(),this.setValue(""),this.getValue()||this.setValue(this.temporaryContent),this.temporaryContent=""),this.temporaryContent&&(this.getValue()||this.setValue(this.temporaryContent)),this.emitAiToolChange("file-add","upload",{fileItem:g}),this.resetPlaceholder("描述想要了解的内容"),this.nextTick(function(){(0,_.setCursorToNode)(h.inputEl.lastChild)}),[2]):[2]}})})},i.prototype.bindFilePrefixEvent=function(e){var n,i,a=this;e&&(n=e.querySelector(".ai-input-file-delete"),this.eventBinder.add(e,"mouseenter",function(){var t=e.getBoundingClientRect();n.style.cssText="\n top: "+(t.top-4.5)+"px;\n left: "+(t.right-11)+"px;\n ",a.eventEmitter.emit("prefix-file-hover")},y.ListenerEventType.OTHER),i=function(t){t.stopPropagation(),a.deletePrefixFile(),a.eventEmitter.emit("prefix-file-click-delete"),a.emitAiToolChange("file-remove","delete-button"),null!=n&&n.removeEventListener("mousedown",i),a.fileElMutationObserver&&(a.fileElMutationObserver.disconnect(),a.fileElMutationObserver=null)},n.addEventListener("mousedown",i),e.appendChild(n))},i.prototype.setValue=function(t){var e,n=this;this.inputEl&&(this.mode===y.ChatInputMode.NORMAL?this.inputEl.value=t:(Array.from(this.inputEl.childNodes).forEach(function(t){t.nodeType===Node.TEXT_NODE&&n.inputEl.removeChild(t)}),this.isChatSearch?(0,_.appendChildToAiInputWithBr)(this.inputEl,t):(e=document.createTextNode(t),this.inputEl.appendChild(e))),this.checkClearIcon(),this.resetPlaceholder(),this.recalculateInputHeight(),this.overflowToMultiline&&1===this.initialRow&&this.throttledCheckOverflow(""===t))},i.prototype.setFocus=function(){var t;null!==(t=this.inputEl)&&void 0!==t&&t.focus()},i.prototype.getValue=function(){var e=this;if(!this.inputEl)return"";if(this.mode===y.ChatInputMode.NORMAL)return this.isChatSearch?this.inputEl.value:this.inputEl.value.replace(/\n/g," ").trim();var t=Array.from(this.inputEl.childNodes);return 0===t.length?"":t.filter(function(t){return!(t instanceof HTMLElement&&(t.classList.contains("ai-input-prefix-wrapper")||t.classList.contains("ai-input-file")||t.classList.contains("cs-pc-input-agent")||t.classList.contains("ai-input-image")))}).map(function(t){return t.nodeType===Node.TEXT_NODE?t.textContent||"":t instanceof HTMLElement?e.isChatSearch&&t instanceof HTMLBRElement?"\n":t.innerText:""}).join("").trim()},i.prototype.getHasAgent=function(){return this.hasAgent},i.prototype.closeSugUpdate=function(){var t;null!==(t=null===(t=this.sugPanelInstance)||void 0===t?void 0:t.sug)&&void 0!==t&&t.closeSugUpdate()},i.prototype.deletePrefixFile=function(){var t;null!==(t=this.fileEl)&&void 0!==t&&t.remove(),null!==(t=this.fileElMutationObserver)&&void 0!==t&&t.disconnect(),this.fileEl=null,this.fileElMutationObserver=null,this.eventEmitter.emit("prefix-file-click-delete"),this.emitAiToolChange("file-remove","delete-button")},i.prototype.openAiPanel=function(n,i,a){var o;return void 0===i&&(i=n),void 0===a&&(a={}),(0,w.__awaiter)(this,void 0,void 0,function(){var e;return(0,w.__generator)(this,function(t){return e=null===(o=n.type)||void 0===o?void 0:o.replace(/^new_/,""),this.sugPanelInstance&&(null!==(o=null===(o=this.panelEl)||void 0===o?void 0:o.querySelector(".ai-bdsug"))&&void 0!==o&&o.remove(),null!==(o=null===(o=this.panelEl)||void 0===o?void 0:o.querySelector(".ai-sug-panel-list"))&&void 0!==o&&o.remove(),this.sugPanelInstance.destroy(),this.sugPanelInstance=null),n&&this.currentPanelName===e?(0,_.focusInputLast)(this.inputEl):(this.defaultModel=null,this.mode===y.ChatInputMode.AI&&this.closePanel({needFocus:!1}),this.currentPanelName=e,this.currentPanelChineseName=n.text,this.setMode(y.ChatInputMode.AI),this.addAiInputPrefix(n.text,e),this.checkClearIcon(),"ai_ppt"===e?this.setPlaceHolder("输入想要生成的PPT主题和具体要求,快速生成PPT"):this.setPlaceHolder((null==i?void 0:i.place_holder)||"问我任何问题"),this.renderPanelFromSanComponent(e,i,a),this.eventEmitter.emit("panel-render",(0,w.__assign)((0,w.__assign)({},n),{type:e})),this.emitAiToolChange("panel-open","panel-render",i),this.addDefaultContent(i),this.stopVoiceRecording()),[2]})})},i.prototype.addDefaultContent=function(t){var e=this,n=null==t?void 0:t["function"],i=null==t?void 0:t.default_content;(n||i)&&(n?this.nextTick(function(){var t;e.addAiInputContent({inputCustom:(null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.input.input_custom)||{}})}):(this.addPrefixHolder(),this.aiPrefixContent=i,this.nextTick(function(){e.setValue(i)})))},i.prototype.resetAiInputStatus=function(){this.aiInputStatus={isComposing:!1,isBreakRow:!1,isCustomInput:!1,isUserInput:!1}},i.prototype.getAiInputStatus=function(){return this.aiInputStatus},i.prototype.closePanel=function(t){var e,n=this,i=(t||{}).needFocus,t=void 0===i||i,a=this.panelEl;if(a){if(this.aiPrefixContent="",this.currentPanelName="",this.currentPanelInstance&&(null!==(e=(i=this.currentPanelInstance).dispose)&&void 0!==e&&e.call(i),this.currentPanelInstance=null),this.resetAiInputStatus(),this.setMode(y.ChatInputMode.NORMAL),a.querySelector(".ai-bdsug"))a.querySelectorAll(".chat-input-panel-container").forEach(function(t){return t.remove()});else for(;a.firstChild;)a.removeChild(a.firstChild);this.eventEmitter.emit("panel-close"),this.emitAiToolChange("panel-close","panel-close"),null!==(e=this.prefixEmptyDom)&&void 0!==e&&e.remove(),this.prefixEmptyDom=null,this.checkClearIcon(),t&&setTimeout(function(){var t;n.mode===y.ChatInputMode.NORMAL&&document.activeElement!==n.inputEl&&((0,_.focusInputLast)(n.inputEl),t=n.getValue().length,n.inputEl.setSelectionRange(t,t))},80)}},i.prototype.showPlaceHolder=function(){var t;null!==(t=this.inputEl)&&void 0!==t&&t.classList.contains("ai-input-placeholder")||null!==(t=this.inputEl)&&void 0!==t&&t.classList.add("ai-input-placeholder")},i.prototype.hidePlaceHolder=function(){var t,e;null!==(t=this.inputEl)&&void 0!==t&&t.classList.contains("ai-input-placeholder")&&null!==(e=this.inputEl)&&void 0!==e&&e.classList.remove("ai-input-placeholder")},i.prototype.checkClearIcon=function(){var t;this.getValue()?null!==(t=this.clearEl)&&void 0!==t&&t.classList.add("show-clear-icon"):null!==(t=this.clearEl)&&void 0!==t&&t.classList.remove("show-clear-icon")},i.prototype.renderPanelFromSanComponent=function(t,i,a){var e,o=this;void 0===a&&(a={});var r=this.panelEl;if(r){var s=document.createElement("div");s.className="chat-input-panel-container";var n=((n={})[y.ChatPanel.CREATE]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(454))})},n[y.ChatPanel.PHOTO]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(461))})},n[y.ChatPanel.MUSIC]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(468))})},n[y.ChatPanel.NUMERO]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(475))})},n[y.ChatPanel.READ]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(40))})},n[y.ChatPanel.DEEP_RESEARCH]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(40))})},n[y.ChatPanel.CODE]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(40))})},n[y.ChatPanel.PPT]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(40))})},n[y.ChatPanel.TRANSLATE]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(40))})},n);try{n[t],null!==(e=n[t])&&void 0!==e&&e.call(n).then(function(t){var e=t["default"]||t;o.currentPanelInstance&&(null!==(n=(t=o.currentPanelInstance).dispose)&&void 0!==n&&n.call(t),o.currentPanelInstance=null);var n=(0,w.__assign)((0,w.__assign)({},i),{hoverText:i.hover_text||"做同款"}),e=new e({data:(0,w.__assign)((0,w.__assign)({},n),a)});e.on("click",function(t,e){null!=t&&t.usedModel?o.defaultModel=t.usedModel:o.defaultModel=null,o.eventEmitter.emit("panel-item-click",t,e),o.stopVoiceRecording()}),e.on("input-upload",o.handleInputUpload.bind(o)),e.attach(s),o.renderPanelDivider(),r.appendChild(s),o.currentPanelInstance=e})}catch(err){console.error("面板加载失败",err)}}},i.prototype.handleVoiceRecognized=function(t){var e,n=this;this.voiceRecognizedText=t;var i=""+this.voiceInputInitialValue+t;this.mode===y.ChatInputMode.AI?(this.voiceRecognitionNode&&this.voiceRecognitionNode.parentNode?this.voiceRecognitionNode.textContent=t:(t=document.createTextNode(t),this.voiceRecognitionNode=t,null!==(e=this.inputEl)&&void 0!==e&&e.appendChild(t)),this.nextTick(function(){(0,_.focusInputLast)(n.inputEl)})):(this.setValue(i),this.nextTick(function(){n.setFocus()})),this.inputEl.scrollTop=null===(e=this.inputEl)||void 0===e?void 0:e.scrollHeight,this.recalculateInputHeight(),this.eventEmitter.emit("input",i)},i.prototype.renderVoiceInputBtn=function(){var n=this;Promise.resolve().then(function(){return(0,w.__importStar)(b(484))}).then(function(t){var e;n.voiceInputInstance||null!==(e=n.voiceInputWrapperEl)&&void 0!==e&&e.hasChildNodes()||((t=new(t["default"]||t)).data.set("scene",n.scene||"result"),t.data.set("spaceVoice",n.spaceVoiceEnabled),t.on("recording-start",function(t){n.voiceRecognitionNode=null,n.voiceInputInitialValue=n.getValue(),n.isVoiceRecording=!0,n.voiceRecordingStartTime=Date.now(),n.voiceRecognizedText="",n.eventEmitter.emit("voice-input-start",t)}),t.on("recognized",function(t){n.handleVoiceRecognized(t),n.eventEmitter.emit("voice-input-recognized",t)}),t.on("recording-stop",function(){n.finishVoiceInput()}),t.on("recording-error",function(t){n.finishVoiceInput(),n.eventEmitter.emit("voice-input-error",t)}),t.on("tip-show",function(){n.eventEmitter.emit("voice-input-tip-show")}),t.attach(n.voiceInputWrapperEl),n.voiceInputInstance=t)})},i.prototype.bindSpaceVoice=function(i){var t,a=this,o=!1,r=null,s=null,l=!1,u=!1,c=!0;null!==(t=this.spaceVoiceVisibilityObserver)&&void 0!==t&&t.disconnect(),this.spaceVoiceVisibilityObserver=null,"undefined"!=typeof IntersectionObserver&&this.inputMainDom&&(this.spaceVoiceVisibilityObserver=new IntersectionObserver(function(t){t=t[t.length-1];c=!(null==t||!t.isIntersecting)}),this.spaceVoiceVisibilityObserver.observe(this.inputMainDom)),this.eventBinder.add(document,"compositionstart",function(){u=!0},y.ListenerEventType.OTHER,!0),this.eventBinder.add(document,"compositionend",function(){u=!1},y.ListenerEventType.OTHER,!0),this.eventBinder.add(document,"keydown",function(t){var e,n;return!l||t.isComposing||u||"Process"!==t.key&&(" "===t.key||"Space"===t.code)?void("Process"===t.key||" "!==t.key&&"Space"!==t.code||t.isComposing||u||a.isSpaceVoiceModalOpen(i)||!c&&!l||(!(n=document.activeElement)||n===document.body||null!==(e=a.inputEl)&&void 0!==e&&e.contains(n)||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)&&(t.preventDefault(),t.repeat||(l=!0,s&&window.clearTimeout(s),s=window.setTimeout(function(){(s=null,p.prewarmRecorder)()["catch"](function(){})},300),r&&window.clearTimeout(r),r=window.setTimeout(function(){var t,e;r=null,l&&(o=!0,null!==(t=a.inputEl)&&void 0!==t&&t.focus(),a.mode===y.ChatInputMode.NORMAL&&(e=a.inputEl.value.length,a.inputEl.setSelectionRange(e,e)),null!==(t=a.inputEl)&&void 0!==t&&t.click(),null!==(t=null===(e=a.voiceInputInstance)||void 0===e?void 0:e.startRecording)&&void 0!==t&&t.call(e,"space"))},500)))):(l=!1,r&&(window.clearTimeout(r),r=null),s&&(window.clearTimeout(s),s=null),void(o?(o=!1,null!==(t=null===(n=a.voiceInputInstance)||void 0===n?void 0:n.resetRecording)&&void 0!==t&&t.call(n)):(0,p.discardPrewarmRecorder)()))},y.ListenerEventType.OTHER,!0),this.eventBinder.add(document,"keyup",function(t){var e;"Process"===t.key||" "!==t.key&&"Space"!==t.code||l&&(l=!1,t.isComposing||u||(s&&(window.clearTimeout(s),s=null),r&&(window.clearTimeout(r),r=null),o?(o=!1,null!==(t=null===(e=a.voiceInputInstance)||void 0===e?void 0:e.resetRecording)&&void 0!==t&&t.call(e)):((0,p.discardPrewarmRecorder)(),a.compensateSpaceShortPress())))},y.ListenerEventType.OTHER,!0);this.eventBinder.add(window,"blur",function(){var t,e;l&&(l=!1,s&&(window.clearTimeout(s),s=null),r&&(window.clearTimeout(r),r=null),o?(o=!1,null!==(e=null===(t=a.voiceInputInstance)||void 0===t?void 0:t.resetRecording)&&void 0!==e&&e.call(t)):((0,p.discardPrewarmRecorder)(),a.compensateSpaceShortPress()))},y.ListenerEventType.OTHER)},i.prototype.compensateSpaceShortPress=function(){document.activeElement===this.inputEl?(this.mode!==y.ChatInputMode.AI||this.getValue())&&document.execCommand&&document.execCommand("insertText",!1," "):this.getScroller(this.spaceVoiceScrollContainer).scrollBy({top:.8*window.innerHeight,behavior:"smooth"})},i.prototype.getScroller=function(t){var e;if("function"==typeof t){if(e=t())return e}else if(t)if(e=document.querySelector(t))return e;return window},i.prototype.isSpaceVoiceModalOpen=function(t){return!(!t||!t.length)&&t.some(function(t){t=document.querySelector(t);if(!t)return!1;t=getComputedStyle(t);return"none"!==t.display&&"hidden"!==t.visibility})},i.prototype.finishVoiceInput=function(){var t;this.isVoiceRecording&&(t=0
\n
\n \n
'+n.site+""+n.showurl+"
"+n.word+"
",s.type="ala",s.alaid=n.id;break;case"store":2===n["new"]&&(u+=' [企业]'),s.html=''+u+"",S.isSugSample&&c&&(s.html=''+u),!S.bds.comm.username&&"|"===n||(s.html+='删除'),s.type="store",s.pinyin=n,s.s=a;break;case"direct_new":!function(t){!t.flag||(i=t.value&&t.value.tag)&&(u+=''+i+"");{var e,n,i,a,o,r;"1020"===t.type&&t.value&&(a=t.value.img,o=t.value.brief||"",r=t.value.info||"",e=t.value.name[0]&&t.value.name[0].text||"",n=t.value.link,i="",(a||o)&&(s.isDouble=!0),o=o?''+o+"":"",r=r?''+r+"":"",u=s.isDouble?(t.value&&t.value.img&&(i='