1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8f68df4e-7d8b-46fe-aa95-c6fcc6598d9f",e._sentryDebugIdIdentifier="sentry-dbid-8f68df4e-7d8b-46fe-aa95-c6fcc6598d9f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9483],{1900:e=>{e.exports={"image-placeholer":"image-preview-tile_image-placeholer__Wwhsj",imagePlaceholer:"image-preview-tile_image-placeholer__Wwhsj","sm-width":"image-preview-tile_sm-width__AN18h",smWidth:"image-preview-tile_sm-width__AN18h","image-placeholer-svc":"image-preview-tile_image-placeholer-svc__Opuvd",imagePlaceholerSvc:"image-preview-tile_image-placeholer-svc__Opuvd"}},2011:(e,t,a)=>{"use strict";a.d(t,{d:()=>l});var i=a(73754),s=a(14343);let l=()=>{let e=(0,s.useContext)(i.I);return(0,s.useMemo)(()=>new Map((e?.availableModelInfoList??[]).map(e=>[e.clientModelName,e])),[e?.availableModelInfoList])}},2148:(e,t,a)=>{"use strict";a.d(t,{o1:()=>c,y$:()=>r});var i=a(15383),s=a(72940),l=a(9974),n=a(70794),o=a.n(n);let r=({size:e})=>(0,i.jsx)(s.iuy,{className:o()["loading-icon"],size:e}),c=({size:e})=>(0,i.jsx)(l.deV,{className:o()["loading-icon"],size:e})},3877:()=>{},3900:(e,t,a)=>{"use strict";a.d(t,{h:()=>V});var i=a(15383),s=a(73754),l=a(33058),n=a(24837),o=a(2011),r=a(75910),c=a(71732),p=a(91237),d=a(7792),u=a(60796),m=a(76324),_=a(89356),h=a(90265),g=a(98096),b=a(98147),x=a(2326),v=a(96588),f=a(80063),j=a(14343),w=a(24080),C=a(29423),y=a(12909),N=a(22645),E=a.n(N),M=a(46624),S=a(18343),I=a.n(S);let P=({selectedFeatures:e,onToggleFeature:t})=>(0,i.jsx)("div",{className:I()["feature-filter-container"],children:(0,i.jsx)("div",{className:I()["chips-wrapper"],children:n.an.map(a=>(0,i.jsx)("button",{className:`${I().chip} ${e.includes(a)?I().selected:""}`,onClick:()=>t(a),type:"button",children:a},a))})});var A=a(35391),T=a(60268),k=a(70577),L=a(33475),D=a(32726),F=a.n(D),O=a(80383),R=a.n(O);let Y=({className:e})=>(0,i.jsxs)("span",{className:`${R()["pro-label"]} ${e??""}`.trim(),children:[(0,i.jsx)(y.Hu1,{className:R()["pro-icon"]}),"ãã"]}),B=new Set([k.Y.MIME_TYPES.PNG,k.Y.MIME_TYPES.JPEG,k.Y.MIME_TYPES.WEBP,k.Y.MIME_TYPES.GIF]),U=({preset:e,usageStatus:t,showProLabel:a=!1,style:s})=>{var r,c;let{canAttachExtendedDocument:p}=(0,T.O)(),d=(0,o.d)().get(e.model),u=(0,n.b0)(e),m=(r=t,c=e.model,r?r.isProOnlyModel(c)?r.isLimitExceeded?{label:(0,i.jsxs)(i.Fragment,{children:["ããã¢ãã«ã®å©ç¨ä¸éã«éãã¦ããããã",(0,i.jsx)("br",{}),"仿ã¯å©ç¨ã§ãã¾ããã"]}),className:"status-blocked"}:null!=r.usagePercentage&&r.usagePercentage>=70?{label:"ã¾ããªãä¸é",className:"status-warning"}:{label:"é常å©ç¨ã§ãã¾ã",className:"status-normal"}:{label:"é常å©ç¨ã§ãã¾ã",className:"status-normal"}:null),_=(0,A.XB)({canAttachExtendedDocument:p,canAttachFile:!1,canAttachImage:!!e.isMultimodal,isOpenAiModel:(0,l.Wi)(e.model),isVertexAiModel:(0,l.Cj)(e.model),isSakuraAiModel:(0,l.Vd)(e.model),isAutoModelSelection:!1}),h=[...Object.entries(_).filter(([e])=>!B.has(e)).flatMap(([,e])=>e),...Object.entries(_).filter(([e])=>B.has(e)).flatMap(([,e])=>e)];return(0,i.jsxs)("div",{className:F()["popup-card"],style:s,children:[(0,i.jsxs)("div",{className:F()["popup-header"],children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:F()["popup-provider"],children:e.llmProviderForDisplay}),(0,i.jsx)("div",{className:F()["popup-model-name"],children:e.displayName}),d?.publishedAt&&(0,i.jsxs)("div",{className:F()["popup-published"],children:["å
¬é: ",(0,l.pl)(d.publishedAt)]})]}),a&&(0,i.jsx)(Y,{className:F()["popup-pro-label"]})]}),u.length>0&&(0,i.jsxs)("div",{className:F()["popup-section"],children:[(0,i.jsx)("div",{className:F()["popup-label"],children:"æ©è½"}),(0,i.jsx)("div",{className:F()["popup-tags"],children:u.map(e=>(0,i.jsx)("span",{className:F()["popup-tag"],children:e},e))})]}),h.length>0&&(0,i.jsxs)("div",{className:F()["popup-section"],children:[(0,i.jsx)("div",{className:F()["popup-label"],children:"ã¢ãããã¼ãå¯è½å½¢å¼"}),(0,i.jsx)("div",{className:F()["popup-file-type-value"],children:h.join(", ")})]}),m&&(0,i.jsx)("div",{className:`${F()["popup-status"]} ${"status-normal"===m.className?F()["status-normal"]:"status-warning"===m.className?F()["status-warning"]:F()["status-blocked"]}`,children:m.label}),(0,l.i)(d?.shutdownAt)&&(0,i.jsxs)("div",{className:F()["popup-s
1hutdown"],children:["æä¾çµäºäºå®: ",d?.shutdownAt]}),(0,i.jsxs)("div",{className:F()["popup-specs"],children:[d?.responseSpeed&&(0,i.jsxs)("div",{className:F()["popup-spec-row"],children:[(0,i.jsx)("span",{className:F()["popup-spec-label"],children:"å¿çã¹ãã¼ã"}),(0,i.jsx)("span",{className:F()["popup-spec-value"],children:d.responseSpeed})]}),d?.informationCapacity&&(0,i.jsxs)("div",{className:F()["popup-spec-row"],children:[(0,i.jsx)("span",{className:F()["popup-spec-label"],children:"æ±ããæ å ±é"}),(0,i.jsx)("span",{className:F()["popup-spec-value"],children:d.informationCapacity})]})]})]})},G=({preset:e,usageStatus:t,anchorRect:a,showProLabel:s=!1})=>{let{left:l,top:n}=function(e,t={width:window.innerWidth,height:window.innerHeight}){let a=e.left-290-8,i=e.right+8,s=a>=8?a:i+290<=t.width-8?i:Math.min(e.left+460,t.width-290-8),l=t.height-400-16;return{left:Math.max(8,s),top:Math.max(16,Math.min(e.top-60,l))}}(a);return(0,L.createPortal)((0,i.jsx)(U,{preset:e,usageStatus:t,showProLabel:s,style:{position:"fixed",left:l,top:n,zIndex:9999}}),document.body)};var $=a(32433);let z=Object.values(n.RE).filter(e=>void 0!==e);(0,g.J1)` 2 mutation ShareCustomLLMPreset( 3 $customLlmPresetId: ID! 4 $input: ShareCustomLLMPresetInput! 5 ) { 6 shareCustomLLMPreset(id: $customLlmPresetId, input: $input) { 7 success 8 } 9 } 10`,(0,g.J1)` 11 mutation UnShareCustomLLMPreset($customLlmPresetId: ID!, $revokeIds: [ID!]!) { 12 unShareCustomLLMPreset(id: $customLlmPresetId, revokeIds: $revokeIds) { 13 success 14 } 15 } 16`,(0,g.J1)` 17 mutation ArchiveCustomLLMPreset($customLlmPresetId: ID!) { 18 archiveCustomLLMPreset(id: $customLlmPresetId) { 19 success 20 } 21 } 22`;let V=({selectedLLMPreset:e,availableDefaultLLMPresets:t,onChange:a,displayMode:r,disabled:p=!1,disabledPresetIds:d=[],activeTools:u=[],onFeatureToggle:h,hideV2Filter:g=!1,onClear:f,allowUnselected:w=!1,unselectedLabel:C="è¨å®ããªã"})=>{let N=r??"default",M="workspace"===N||"top-index"===N,S=(0,j.useContext)(s.I),I=(0,o.d)(),A=S?.subscriptionPlan?.plan??m.dh$.Standard,T=!g&&!!A&&A!==m.dh$.Light,k=!g&&!!A&&A===m.dh$.Pro,[L,D]=(0,j.useState)([]),[F,O]=(0,j.useState)(!1);(0,j.useEffect)(()=>{if(!T)return;let e=u.map(e=>n.RE[e]).filter(e=>void 0!==e);D(t=>{let a=[...new Set([...t.filter(e=>!z.includes(e)),...e])];return a.length===t.length&&a.every(e=>t.includes(e))?t:a})},[u,T]);let R=(0,j.useCallback)(e=>{let t=!L.includes(e);D(t?[...L,e]:L.filter(t=>t!==e)),h?.(e,t)},[L,h]),{usagePercentage:Y,isLimitExceeded:B,isProOnlyModel:U}=(0,$.G)(),G=(0,j.useMemo)(()=>{let e=t;return T&&L.length>0&&(e=e.filter(e=>{let t=(0,n.b0)(e);return L.every(e=>t.includes(e))})),k&&F&&(e=(0,_.np)(e.filter(e=>I.get(e.model)?.isRecommended===!0),S?.availableDefaultLLMPresets??[])),e},[t,T,L,k,F,S?.availableDefaultLLMPresets,I]),[V,W]=(0,j.useState)(!1),[X,{loading:H}]=(0,b.n)(m.GCY),[J,{loading:K}]=(0,b.n)(m.jyv),[,{loading:Z}
22]=(0,b.n)(m.j6J),[Q,ee]=(0,j.useState)(!1),[,{data:et,refetch:ea}]=(0,x._)(m.bJA,{}),[ei,es]=(0,j.useState)(),el=e?I.get(e.model):null,en=el?.publishedAt,eo=el?.characteristics,er=(0,j.useRef)(null),ec=(0,j.useRef)(null),ep=(0,j.useCallback)(e=>{a(e),W(!1)},[a,W]),ed=(0,j.useCallback)(()=>{f&&(f(),W(!1))},[f]);(0,j.useEffect)(()=>{et&&"CustomLLMPreset"===et.customLLMPreset.__typename&&es(et.customLLMPreset)},[et]);let eu=(0,j.useCallback)(()=>{p||W(!V)},[p,V]),em=(0,j.useCallback)(e=>{e.repeat||("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eu())},[eu]);(0,j.useEffect)(()=>{if(!M)return;let e=e=>{let t=e.target,a=(e,t)=>e.current&&e.current.contains(t);M&&V&&!a(er,t)&&!a(ec,t)&&W(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[M,V]);let e_=d.includes(e?.id??""),eh=[E()["select-card-wrapper"],"top-index"===N?E()["popup-mode"]:"","workspace"===N?E()["workspace-mode"]:"","top-index"===N?"with-minimal-model-info":""].filter(Boolean).join(" ");return(0,i.jsxs)("div",{className:eh,children:[(0,i.jsx)(v.Spinner,{loading:H||K||Z}),(0,i.jsxs)("div",{className:`${E().container} ${E()["auto-overflow-parent"]}`,children:[(0,i.jsx)("div",{className:E().header,"aria-disabled":p,children:(0,i.jsxs)("div",{className:E()["header-left"],role:"button",tabIndex:p?-1:0,"aria-expanded":V,onKeyDown:em,"data-testid":"llm-preset-select-trigger",onClick:eu,"aria-disabled":p,ref:er,children:["top-index"!==N&&(0,i.jsxs)("div",{className:E()["header-icon"],children:[(0,i.jsx)(y.Vr3,{style:{display:V?"block":"none"}}),(0,i.jsx)(y.X6T,{style:{display:V?"none":"block"}})]}),(0,i.jsxs)("div",{className:`${E()["model-label"]} ${e_?E().disabled:""}`,children:[(0,i.jsx)("span",{className:E()["model-label-label"],children:"ã¢ãã«ï¼"}),(0,i.jsx)("div",{className:E()["model-label-selected"],children:e?.displayName??C}),e&&!e.isCustom&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:E()["model-label-date"],children:`${e.llmProviderForDisplay} | ${en?(0,l.pl)(en):""}`}),eo&&(0,i.jsx)("div",{className:E()["model-characteristics"],children:eo})]})]}),"top-index"===N&&(0,i.jsx)("div",{className:E()["header-icon"],children:(0,i.jsx)(y.Vr3,{})})]})}),(0,i.jsxs)("div",{children:[V&&(0,i.jsxs)("div",{className:`${E().content} ${E()["auto-overflow-parent"]}`,ref:ec,children:[T&&(0,i.jsx)(P,{selectedFeatures:L,onToggleFeature:R}),k&&(0,i.jsxs)("div",{className:E()["v2-toolbar"],children:[(0,i.jsx)("span",{className:E()["v2-toolbar-label"],children:"ã¢ãã«ä¸è¦§"}),(0,i.jsxs)("label",{className:E()["v2-checkbox-label"],children:[(0,i.jsx)("input",{type:"checkbox",className:E()["v2-checkbox"],checked:F,onChange:e=>O(e.target.checked)}),"æ¨å¥¨ã¢ãã«ã®ã¿"]})]}),(0,i.jsx)("div",{className:E()["auto-overflow-parent"],children:(0,i.jsx)(q,{label:"æ¨æºã¢ãã«",llmPresets:G,modelInfoMap:I,selectedLLMPreset:e,onSelectPreset:ep,onClear:ed,allowUnselected:w,unselectedLabel:C,disabledPresetIds:d,showPopup:!0,usageStatus:{usagePercentage:Y,isLimitExceeded:B,isProOnlyModel:U},emptyMessage:T&&L.length>0?"該å½ããã¢ãã«ãããã¾ãã":void 0})})]}),S&&Q&&ei&&(0,i.jsx)(c.i,{targetResourceId:ei.id,targetResourceName:ei.displayName,onRefetch:async()=>{ea()},sharedPermissions:ei.sharedPermissions,onShare:async(e,t)=>{await X({variables:{customLlmPresetId:e,input:{shareWithUserIds:t.shareWithUserIds,shareWithGroupIds:t.shareWithGroupIds,shareWithTenant:t.shareWithTenant}}})},onRevoke:async(e,t)=>{await J({variables:{customLlmPresetId:e,revokeIds:t}})},onClose:()=>{ee(!1)},isGroupEnabled:!0,isUserEnabled:!0,isServiceAccountEnabled:!1,hideTenantScope:!S.isTenantSharedCustomLlmPresetAllowed})]})]})]})},q=({llmPresets:e,modelInfoMap:t,selectedLLMPreset:a,onSelectPreset:s,operations:l,label:n,showCreateItemCard:o=!1,banner:r,disabledPresetIds:c=[],onClear:p,allowUnselected:d=!1,unselectedLabel:u="è¨å®ããªã",showPopup:m=!1,usageStatus:_,emptyMessage:h})=>(0,i.jsxs)(i.Fragment,{children:[r&&(0,i.jsx)("div",{className:E()["warning-banner-wrapper"],children:r}),o&&(0,i.jsx)(X,{}),d&&p&&(0,i.jsx)("div",{className:`${E()["item-container"]} ${!a?E().selected:""}`,onClick:p,children:(0,i.jsxs)("div",{className:E()["item-content"],
22children:[(0,i.jsx)("div",{className:E()["item-label"],children:(0,i.jsx)("div",{className:E()["item-title"],children:u})}),(0,i.jsx)("div",{className:E()["item-description"],children:"ã¯ã¼ã¯ã¹ãã¼ã¹ã®ããã©ã«ãã¢ãã«ãè¨å®ãã¾ããã"})]})}),e.length>0?(0,i.jsx)("div",{style:{width:"100%"},role:"listbox","aria-label":n,children:e.map(e=>(0,i.jsx)(W,{llmPreset:e,modelInfo:t.get(e.model),isSelected:a?.id===e.id,onClick:s,isMenuEnabled:!!l,onShare:l?.onShare,onArchive:l?.onArchive,isDisabled:c.includes(e.id),showPopup:m,usageStatus:_},e.id))}):(0,i.jsx)("div",{className:E()["empty-list"],children:(0,i.jsx)("p",{children:h??`${n}ã¯ããã¾ãã`})})]}),W=({llmPreset:e,modelInfo:t,onClick:a,onShare:s,onArchive:n,isMenuEnabled:o,isSelected:c,isDisabled:m=!1,showPopup:_=!1,usageStatus:g})=>{let b=(0,f.useRouter)(),x=(0,r.l)(),y=t?.publishedAt,N=t?.shutdownAt,M=t?.characteristics,S=t?.isRecommended,[I,P]=(0,j.useState)(!1),[A,T]=(0,j.useState)(!1),[k,L]=(0,j.useState)(null),D=(0,j.useRef)(null),F=(0,l.fF)(y??void 0),O=g?.isProOnlyModel(e.model)??!1,R=(0,j.useCallback)(()=>{n&&(n(e),P(!1))},[e,n,P]),B=(0,j.useCallback)(()=>{m||a(e)},[m,a,e]),U=(0,j.useCallback)(e=>{e.repeat||("Enter"===e.key||" "===e.key)&&(e.preventDefault(),B())},[B]);return(0,i.jsxs)("div",{className:`${E()["item-container"]} ${c?E().selected:""} ${m?E().disabled:""}`,role:"option",tabIndex:m?-1:0,"aria-selected":c,"aria-disabled":m,onKeyDown:U,onClick:B,onMouseEnter:()=>{T(!0),D.current&&L(D.current.getBoundingClientRect())},onMouseLeave:()=>T(!1),ref:D,children:[(0,i.jsxs)("div",{className:E()["item-content"],children:[(0,i.jsxs)("div",{className:_?E()["item-label-v2"]:E()["item-label"],children:[(0,i.jsxs)("div",{className:E()["item-title-group"],children:[(0,i.jsx)("div",{className:E()["item-title"],children:e.displayName}),O&&(0,i.jsx)(Y,{})]}),!e.isCustom&&_&&(0,i.jsxs)("div",{className:E()["v2-badges"],children:[S&&(0,i.jsx)("span",{className:E()["v2-badge-recommended"],children:"æ¨å¥¨"}),F&&(0,i.jsx)(d.Q,{}),O&&g?g.isLimitExceeded?(0,i.jsx)("span",{className:E()["v2-badge-blocked"],children:"仿ä¸é"}):null!=g.usagePercentage&&g.usagePercentage>=70?(0,i.jsx)("span",{className:E()["v2-badge-warning"],children:"ã¾ããªãä¸é"}):null:null,(0,l.i)(N)&&(0,i.jsx)("span",{className:E()["v2-badge-shutdown"],children:"è¿æ¥çµäº"})]}),!e.isCustom&&!_&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:E()["model-label-date"],children:`${e.llmProviderForDisplay} | ${y?(0,l.pl)(y):""}`}),M&&(0,i.jsx)("div",{className:E()["model-characteristics"],children:M}),(0,i.jsx)("div",{className:E()["deprecation-tag"],children:(0,l.i)(N)&&(0,i.jsx)(p.B,{children:`${N} ã§ãµãã¼ãçµäºäºå®`})})]})]}),e.description&&e.description.length>0&&(0,i.jsx)(u.m,{title:e.description,children:(0,i.jsx)("div",{className:E()["item-description"],children:e.description})})]}),o&&(0,i.jsx)("div",{className:E()["item-actions"],children:(0,i.jsxs)("div",{className:E()["item-actions-wrapper"],children:[(0,i.jsx)(u.m,{title:"ç·¨é",children:(0,i.jsx)("button",{className:"button",onClick:t=>{t.stopPropagation(),b.push(h.B.CustomLlmPreset.Detail.link(x,e.id))},children:(0,i.jsx)(w.dtF,{size:16})})}),(0,i.jsx)(u.m,{title:"å
±æ",children:(0,i.jsx)("button",{className:"button",onClick:t=>{t.stopPropagation(),s?.(e)},children:(0,i.jsx)(C.MX,{size:16})})}),(0,i.jsx)(u.m,{title:"åé¤",children:(0,i.jsx)("button",{className:"button",onClick:e=>{e.stopPropagation(),P(!0)},children:(0,i.jsx)(C.lam,{size:16})})})]})}),I&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(v.ErrorDialog,{title:`${e.displayName}ã®åé¤`,cancelText:"ãã£ã³ã»ã«",proceedText:"åé¤",onCancel:()=>P(!1),onProceed:R,contents:`${e.displayName}ãåé¤ãã¾ããããããã§ããï¼`})}),_&&A&&!e.isCustom&&k&&(0,i.jsx)(G,{preset:e,usageStatus:g,anchorRect:k,showProLabel:O})]},e.id)},X=()=>{let e=(0,r.l)(),t=(0,f.useRouter)();return(0,i.jsxs)("div",{className:E()["create-item-container"],onClick:()=>{t.push(h.B.CustomLlmPreset.New.link(e))},children:[(0,i.jsxs)("div",{className:E()["create-item-title-wrapper"],children:[(0,i.jsx)("p",{className:E()["create-item-title"],children:"æ°ããã«ã¹ã¿ã ã¢ãã«ã®ä½æ"}),(0,i.jsx)(M.O,{url:"https://help.graffer-aistudio.jp/function/custommodel_howto",size:14})]}),(0,i.jsx)("p",{className:E()["create-item-description"],children:"åå¥è¨å®ã«ãããããªãã ãã®ãªãªã¸ãã«ã¢ãã«ãæ§ç¯å¯è½ãªã¨ãã¹ãã¼ãåãã®æ©è½ã§ãã"})]})}},5788:e=>{e.exports={"active-badges-row":"feature-popup-button_active-badges-row__U2atm",activeBadgesRow:"feature-popup-button_active-badges-row__U2atm","active-badge":"feature-popup-button_active-badge__Q5pZO",activeBadge:"feature-popup-button_active-badge__Q5pZO","popup-anchor":"feature-popup-button_popup-anchor__XjxlE",popupAnchor:"feature-popup-button_popup-anchor__XjxlE",button:"feature-popup-button_button__1_vx7",popup:"feature-popup-button_popup__tGAdO",item:"feature-popup-button_item__H8Xbt","item--toggle-left":"feature-popup-button_item--toggle-left__6KRcO",itemToggleLeft:"feature-popup-button_item--toggle-left__6KRcO","item--without-divider":"feature-popup-button_item--without-divider__NoSBI",itemWithoutDivider:"feature-popup-button_item--without-divider__NoSBI","item-text":"feature-popup-button_item-text__jKzt3",itemText:"feature-popup-button_item-text__jKzt3","item-name-row":"feature-popup-button_item-name-row__5Vj7h",itemNameRow:"feature-popup-button_item-name-row__5Vj7h","item-name":"feature-popup-button_item-name__Qj7yv",itemName:"feature-popup-button_item-name__Qj7yv","item-ne
22w-badge":"feature-popup-button_item-new-badge__HLKgl",itemNewBadge:"feature-popup-button_item-new-badge__HLKgl","item-description":"feature-popup-button_item-description__KZwDq",itemDescription:"feature-popup-button_item-description__KZwDq","active-badge-close":"feature-popup-button_active-badge-close__xn_wq",activeBadgeClose:"feature-popup-button_active-badge-close__xn_wq","active-badge--disabled":"feature-popup-button_active-badge--disabled__e9y6J",activeBadgeDisabled:"feature-popup-button_active-badge--disabled__e9y6J","active-badge--warning":"feature-popup-button_active-badge--warning__18r3o",activeBadgeWarning:"feature-popup-button_active-badge--warning__18r3o","active-badge-lock":"feature-popup-button_active-badge-lock__IAZ2S",activeBadgeLock:"feature-popup-button_active-badge-lock__IAZ2S","active-badge-warning-icon":"feature-popup-button_active-badge-warning-icon__Csr6r",activeBadgeWarningIcon:"feature-popup-button_active-badge-warning-icon__Csr6r",toggle:"feature-popup-button_toggle__quedv","toggle--on":"feature-popup-button_toggle--on__5LDp9",toggleOn:"feature-popup-button_toggle--on__5LDp9","toggle-tooltip-target":"feature-popup-button_toggle-tooltip-target__TRWkq",toggleTooltipTarget:"feature-popup-button_toggle-tooltip-target__TRWkq"}},7792:(e,t,a)=>{"use strict";a.d(t,{Q:()=>n});var i=a(15383),s=a(78710),l=a.n(s);let n=()=>(0,i.jsx)("span",{className:l()["new-badge"],children:"NEW"})},10161:()=>{},11693:e=>{e.exports={"speech-text-input-container":"speech-recognition-button_speech-text-input-container__qzCqC",speechTextInputContainer:"speech-recognition-button_speech-text-input-container__qzCqC","speech-text-input-area":"speech-recognition-button_speech-text-input-area__fSUC_",speechTextInputArea:"speech-recognition-button_speech-text-input-area__fSUC_","speech-text-input-area-disabled":"speech-recognition-button_speech-text-input-area-disabled__cl38O",speechTextInputAreaDisabled:"speech-recognition-button_speech-text-input-area-disabled__cl38O","speech-text-input-area-spinner":"speech-recognition-button_speech-text-input-area-spinner__JJbuY",speechTextInputAreaSpinner:"speech-recognition-button_speech-text-input-area-spinner__JJbuY","external-button-style":"speech-recognition-button_external-button-style__nGm7f",externalButtonStyle:"speech-recognition-button_external-button-style__nGm7f"}},17949:(e,t,a)=>{"use strict";a.d(t,{j:()=>p});var i=a(15383),s=a(26157),l=a(36658),n=a(35655),o=a(1569),r=a(21678),c=a.n(r);let p=({beforeText:e,afterText:t,description:a,isLoading:r=!1,onClose:p,onUsePrompt:d})=>{let u=async()=>{await navigator.clipboard.writeText(t),o.oR.success("ã³ãã¼ãã¾ãã")};return(0,i.jsxs)("dialog",{ref:e=>{e&&!e.open&&e.showModal()},className:c().dialog,onClick:e=>{e.target===e.currentTarget&&p()},onCancel:e=>{e.preventDefault(),p()},children:[(0,i.jsxs)("div",{className:c()["dialog-header"],children:[(0,i.jsx)("h2",{className:c()["dialog-title"],children:"⨠ããªãã®æå³ããã¨ã«ãAIãããåãããããçè§£ã§ããå½¢ã«æ´ãã¾ããã"}),(0,i.jsx)("button",{type:"button",className:c()["close-button"],onClick:p,"aria-label":"éãã",children:(0,i.jsx)(s.A,{size:20})})]}),(0,i.jsx)("div",{className:c()["dialog-content"],children:(0,i.jsxs)("div",{className:c().content,children:[(0,i.jsxs)("div",{className:c().comparison,children:[(0,i.jsxs)("div",{className:c().section,children:[(0,i.jsx)("div",{className:c()["section-header"],children:(0,i.jsx)("span",{children:"BEFORE"})}),(0,i.jsx)("div",{className:c()["section-body"],children:e})]}),(0,i.jsxs)("div",{className:c().section,children:[(0,i.jsxs)("div",{className:c()["section-header"],children:[(0,i.jsx)("span",{children:"AFTER"}),!r&&(0,i.jsx)("button",{type:"button",className:c()["copy-button"],onClick:u,"aria-label":"ã³ãã¼",children:(0,i.jsx)(l.A,{size:16})})]}),(0,i.jsx)("div",{className:c()["section-body"],children:r?(0,i.jsxs)("div",{className:c().loading,children:[(0,i.jsx)(n.A,{size:24,className:c().spinner}),(0,i.jsx)("span",{children:"夿ä¸..."})]}):t})]})]}),!r&&(0,i.jsx)("div",{className:c().description,children:a})]})}),(0,i.jsxs)("div",{className:c()["dialog-footer"],children:[(0,i.jsx)("button",{type:"button",className:c()["cancel-button"],onClick:p,children:"éãã"}),(0,i.jsx)("button",{type:"button",className:c()["proceed-button"],onClick:()=>{d()},disabled:r,children:"ãã®ããã³ããã使ã"})]})]})}},18343:e=>{e.exports={"feature-filter-container":"feature-filter_feature-filter-container__z5pru",featureFilterContainer:"feature-filter_feature-filter-container__z5pru","chips-wrapper":"feature-filter_chips-wrapper__ApxQO",chipsWrapper:"feature-filter_chips-wrapper__ApxQO",chip:"feature-filter_chip__1TVHe",selected:"feature-filter_selected__QuIeA"}},21678:e=>{e.exports={dialog:"prompt-assist-modal_dialog__jYZ7E","dialog-header":"prompt-assist-modal_dialog-header__eT_zS",dialogHeader:"prompt-assist-modal_dialog-header__eT_zS","dialog-title":"prompt-assist-modal_dialog-title__TRJSh",dialogTitle:"prompt-assist-modal_dialog-title__TRJSh","close-button":"prompt-assist-modal_close-button__UfG5r",closeButton:"prompt-assist-modal_close-button__UfG5r","dialog-content":"prompt-assist-modal_dialog-content__g3vO2",dialogContent:"prompt-assist-modal_dialog-content__g3vO2","dialog-footer":"prompt-assist-modal_dialog-footer__jaCun",dialogFooter:"prompt-assist-modal_dialog-footer__jaCun","cancel-button":"prompt-assist-modal_cancel-button__f02vj",cancelButton:"prompt-assist-modal_cancel-button__f02vj","proceed-button":"prompt-assist-modal_proceed-button__Q6JnR",proceedButton:"prompt-assist-modal_proceed-button__Q6JnR",content:"prompt-assist-modal_content__jESix",comparison:"prompt-assist-modal_comparison__biDwD",section:"prompt-assist-modal_section__XEdut","section-header":"prompt-assist-modal_section-header__GHZ9Z",sectionHeader:"prompt-assist-modal_section-header__GHZ9Z","section-body":"prompt-assist-modal_section-body__MA_78",sectionBody:"prompt-assist-modal_section-body__MA_78","copy-button":"prompt-assist-modal_copy-button__tJFnJ",copyButton:"prompt-assist-modal_copy-button__tJFnJ",description:"prompt-assist-modal_description__ox
22Bsl",loading:"prompt-assist-modal_loading__3w13w",spinner:"prompt-assist-modal_spinner__GZkvF",spin:"prompt-assist-modal_spin__6B0AN"}},22645:e=>{e.exports={"auto-overflow-parent":"llm-preset-select-card_auto-overflow-parent__z_46U",autoOverflowParent:"llm-preset-select-card_auto-overflow-parent__z_46U","select-card-wrapper":"llm-preset-select-card_select-card-wrapper__dF9bQ",selectCardWrapper:"llm-preset-select-card_select-card-wrapper__dF9bQ",container:"llm-preset-select-card_container__kcpPH",header:"llm-preset-select-card_header__gjijM","header-left":"llm-preset-select-card_header-left__Zoqrp",headerLeft:"llm-preset-select-card_header-left__Zoqrp","header-icon":"llm-preset-select-card_header-icon__HPcA7",headerIcon:"llm-preset-select-card_header-icon__HPcA7","model-label":"llm-preset-select-card_model-label__hSQyl",modelLabel:"llm-preset-select-card_model-label__hSQyl",disabled:"llm-preset-select-card_disabled__jqs2_","model-label-selected":"llm-preset-select-card_model-label-selected__jhFyG",modelLabelSelected:"llm-preset-select-card_model-label-selected__jhFyG","model-label-date":"llm-preset-select-card_model-label-date__5Qe_r",modelLabelDate:"llm-preset-select-card_model-label-date__5Qe_r","model-characteristics":"llm-preset-select-card_model-characteristics__XiV9C",modelCharacteristics:"llm-preset-select-card_model-characteristics__XiV9C","model-label-label":"llm-preset-select-card_model-label-label__8LL6y",modelLabelLabel:"llm-preset-select-card_model-label-label__8LL6y","model-label-icon":"llm-preset-select-card_model-label-icon__wonDf",modelLabelIcon:"llm-preset-select-card_model-label-icon__wonDf","deprecation-tag":"llm-preset-select-card_deprecation-tag__M23VP",deprecationTag:"llm-preset-select-card_deprecation-tag__M23VP","model-label-is-preview":"llm-preset-select-card_model-label-is-preview__3Vcyz",modelLabelIsPreview:"llm-preset-select-card_model-label-is-preview__3Vcyz","model-label-shutdown":"llm-preset-select-card_model-label-shutdown__X7xak",modelLabelShutdown:"llm-preset-select-card_model-label-shutdown__X7xak","model-label-is-vision":"llm-preset-select-card_model-label-is-vision__bdhS7",modelLabelIsVision:"llm-preset-select-card_model-label-is-vision__bdhS7","model-label-is-assistant":"llm-preset-select-card_model-label-is-assistant__LyJ1F",modelLabelIsAssistant:"llm-preset-select-card_model-label-is-assistant__LyJ1F","header-button":"llm-preset-select-card_header-button__lixdq",headerButton:"llm-preset-select-card_header-button__lixdq",content:"llm-preset-select-card_content__L__Gh","warning-banner-wrapper":"llm-preset-select-card_warning-banner-wrapper__zLalL",warningBannerWrapper:"llm-preset-select-card_warning-banner-wrapper__zLalL","tabs-wrapper":"llm-preset-select-card_tabs-wrapper___auwS",tabsWrapper:"llm-preset-select-card_tabs-wrapper___auwS","item-container":"llm-preset-select-card_item-container__eop1z",itemContainer:"llm-preset-select-card_item-container__eop1z",selected:"llm-preset-select-card_selected__hchxF","item-content":"llm-preset-select-card_item-content__jqePN",itemContent:"llm-preset-select-card_item-content__jqePN","item-label":"llm-preset-select-card_item-label__okcME",itemLabel:"llm-preset-select-card_item-label__okcME","item-title-group":"llm-preset-select-card_item-title-group__ob0H9",itemTitleGroup:"llm-preset-select-card_item-title-group__ob0H9","item-title":"llm-preset-select-card_item-title__y3EL4",itemTitle:"llm-preset-select-card_item-title__y3EL4","item-description":"llm-preset-select-card_item-description__wcpDP",itemDescription:"llm-preset-select-card_item-description__wcpDP","item-publish-date":"llm-preset-select-card_item-publish-date__hjoc8",itemPublishDate:"llm-preset-select-card_item-publish-date__hjoc8","item-actions":"llm-preset-select-card_item-actions__ZI_mP",itemActions:"llm-preset-select-card_item-actions__ZI_mP","item-actions-wrapper":"llm-preset-select-card_item-actions-wrapper__GHmT1",itemActionsWrapper:"llm-preset-select-card_item-actions-wrapper__GHmT1","empty-list":"llm-preset-select-card_empty-list__8uc9q",emptyList:"llm-preset-select-card_empty-list__8uc9q","create-item-container":"llm-preset-select-card_create-item-container__n_Ol5",createItemContainer:"llm-preset-select-card_create-item-container__n_Ol5","create-item-title-wrapper":"llm-preset-select-card_create-item-title-wrapper__ADx9H",createItemTitleWrapper:"llm-preset-select-card_create-item-title-wrapper__ADx9H","create-item-title":"llm-preset-select-card_create-item-title__WVl3B",createItemTitle:"llm-preset-select-card_create-item-title__WVl3B","create-item-description":"llm-preset-select-card_create-item-description__yIzvg",createItemDescription:"llm-preset-select-card_create-item-description__yIzvg","popup-mode":"llm-preset-select-card_popup-mode__IUUn7",popupMode:"llm-preset-select-card_popup-mode__IUUn7","workspace-mode":"llm-preset-select-card_workspace-mode__u0Dc_",workspaceMode:"llm-preset-select-card_workspace-mode__u0Dc_","v2-toolbar":"llm-preset-select-card_v2-toolbar__aQHSO",v2Toolbar:"llm-preset-select-card_v2-toolbar__aQHSO","v2-toolbar-label":"llm-preset-select-card_v2-toolbar-label__0uGVq",v2ToolbarLabel:"llm-preset-select-card_v2-toolbar-label__0uGVq","v2-checkbox-label":"llm-preset-select-card_v2-checkbox-label__QfwO_",v2CheckboxLabel:"llm-preset-select-card_v2-checkbox-label__QfwO_","v2-checkbox":"llm-preset-select-card_v2-checkbox__vycaE",v2Checkbox:"llm-preset-select-card_v2-checkbox__vycaE","item-label-v2":"llm-preset-select-card_item-label-v2__bM3F2",itemLabelV2:"llm-preset-select-card_item-label-v2__bM3F2","v2-badges":"llm-preset-select-card_v2-badges__3HVuY",v2Badges:"llm-preset-select-card_v2-badges__3HVuY","v2-badge-recommended":"llm-preset-select-card_v2-badge-recommended__4oF3V",v2BadgeRecommended:"llm-preset-select-card_v2-badge-recommended__4oF3V","v2-badge-warning":"llm-preset-select-card_v2-badge-warning__90zj8",v2BadgeWarning:"llm-preset-select-card_v2-badge-warning__90zj8","v2-badge-blocked":"llm-preset-select-card_v2-badge-blocked__Tt7ZA",v2BadgeBlocked:"llm-preset-select-card_v2-badge-blocked__Tt7ZA","v2-badge-shutdown":"llm-preset-select-card_v2-badge-shutdown__mMZEg",v2BadgeShutdown:"llm-preset-select-card_v2-badge-shutdown__mMZEg"}},23408:(e,t,a)=>{"use strict";a.d(t,{G:()=>r,m:()=>o});var i=a(15383),s=a(65734),l=a.n(s),n=a(2148);let o=e=>0===e.files.length||e.isDeleted?null:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:l()["chat-files-layout"],children:e.files.map((e,t)=>"isUploading"in e?(0,i.jsx)("figure",{className:"tag",children:(0,i.jsx)(n.y$,{size:16})}
22,t.toString()):(0,i.jsxs)("span",{className:"tag is-clickable is-medium",onClick:()=>{window.open(e.url,"_blank")},children:[e.name,e.onDelete&&(0,i.jsx)("a",{className:"tag is-delete is-clickable",onClick:t=>{t.stopPropagation(),e.onDelete()}})]},t))})}),r=({filename:e,uri:t})=>(0,i.jsx)("cite",{className:l()["inline-chat-file"],children:(0,i.jsx)("a",{href:t,target:"_blank",rel:"noreferrer",children:e})})},24837:(e,t,a)=>{"use strict";a.d(t,{RE:()=>l,ZD:()=>n,an:()=>s,b0:()=>o});var i=a(76324);let s=["ç»åèªè","ãã¼ã¿å¦çã»åæ","ãã¡ã¤ã«æ¤ç´¢"],l={[i.eUg.CodeInterpreter]:"ãã¼ã¿å¦çã»åæ",[i.eUg.FileSearch]:"ãã¡ã¤ã«æ¤ç´¢"},n={"ãã¼ã¿å¦çã»åæ":i.eUg.CodeInterpreter,ãã¡ã¤ã«æ¤ç´¢:i.eUg.FileSearch},o=e=>[...e.isMultimodal?["ç»åèªè"]:[],...e.supportsCodeInterpreterAndFileSearch?["ãã¼ã¿å¦çã»åæ","ãã¡ã¤ã«æ¤ç´¢"]:[]]},26640:e=>{e.exports={"chat-images-layout":"chat-images_chat-images-layout__sfEbf",chatImagesLayout:"chat-images_chat-images-layout__sfEbf","chat-image-loading-container":"chat-images_chat-image-loading-container__er3R6",chatImageLoadingContainer:"chat-images_chat-image-loading-container__er3R6","chat-generated-image-title":"chat-images_chat-generated-image-title__lmKWv",chatGeneratedImageTitle:"chat-images_chat-generated-image-title__lmKWv","chat-generated-image-container":"chat-images_chat-generated-image-container__wtTcL",chatGeneratedImageContainer:"chat-images_chat-generated-image-container__wtTcL","chat-generated-image":"chat-images_chat-generated-image__qwqfx",chatGeneratedImage:"chat-images_chat-generated-image__qwqfx","chat-generated-image-download-button":"chat-images_chat-generated-image-download-button__n5ebB",chatGeneratedImageDownloadButton:"chat-images_chat-generated-image-download-button__n5ebB"}},32726:e=>{e.exports={"popup-card":"model-overview-popup_popup-card__UrTJ_",popupCard:"model-overview-popup_popup-card__UrTJ_","popup-header":"model-overview-popup_popup-header__3Sqnw",popupHeader:"model-overview-popup_popup-header__3Sqnw","popup-pro-label":"model-overview-popup_popup-pro-label__gceXa",popupProLabel:"model-overview-popup_popup-pro-label__gceXa","popup-provider":"model-overview-popup_popup-provider__MLsHg",popupProvider:"model-overview-popup_popup-provider__MLsHg","popup-model-name":"model-overview-popup_popup-model-name__LMizm",popupModelName:"model-overview-popup_popup-model-name__LMizm","popup-published":"model-overview-popup_popup-published__n68mZ",popupPublished:"model-overview-popup_popup-published__n68mZ","popup-section":"model-overview-popup_popup-section__S95IB",popupSection:"model-overview-popup_popup-section__S95IB","popup-label":"model-overview-popup_popup-label__8_pHc",popupLabel:"model-overview-popup_popup-label__8_pHc","popup-tags":"model-overview-popup_popup-tags__vIDxV",popupTags:"model-overview-popup_popup-tags__vIDxV","popup-tag":"model-overview-popup_popup-tag__3YgaJ",popupTag:"model-overview-popup_popup-tag__3YgaJ","popup-status":"model-overview-popup_popup-status__6JEsm",popupStatus:"model-overview-popup_popup-status__6JEsm","status-normal":"model-overview-popup_status-normal__2BXj9",statusNormal:"model-overview-popup_status-normal__2BXj9","status-warning":"model-overview-popup_status-warning__pm8BO",statusWarning:"model-overview-popup_status-warning__pm8BO","status-blocked":"model-overview-popup_status-blocked__8w2Cv",statusBlocked:"model-overview-popup_status-blocked__8w2Cv","popup-shutdown":"model-overview-popup_popup-shutdown__sSbCA",popupShutdown:"model-overview-popup_popup-shutdown__sSbCA","popup-file-type-row":"model-overview-popup_popup-file-type-row__ubLSU",popupFileTypeRow:"model-overview-popup_popup-file-type-row__ubLSU","popup-file-type-category":"model-overview-popup_popup-file-type-category__YDoVy",popupFileTypeCategory:"model-overview-popup_popup-file-type-category__YDoVy","popup-file-type-value":"model-overview-popup_popup-file-type-value__rA4IE",popupFileTypeValue:"model-overview-popup_popup-file-type-value__rA4IE","popup-specs":"model-overview-popup_popup-specs__KFLf0",popupSpecs:"model-overview-popup_popup-specs__KFLf0","popup-spec-row":"model-overview-popup_popup-spec-row__KV0mR",popupSpecRow:"model-overview-popup_popup-spec-row__KV0mR","popup-spec-label":"model-overview-popup_popup-spec-label__k_K5v",popupSpecLabel:"model-overview-popup_popup-spec-label__k_K5v","popup-spec-value":"model-overview-popup_popup-spec-value__3Ot_W",popupSpecValue:"model-overview-popup_popup-spec-value__3Ot_W"}},33058:(e,t,a)=>{"use strict";a.d(t,{Cj:()=>c,GX:()=>u,KD:()=>_,NJ:()=>m,Vd:()=>d,Wi:()=>r,fF:()=>n,i:()=>o,nZ:()=>h,pl:()=>s,wx:()=>p});var i=a(76324);function s(e){return e.slice(0,7)}function l(e){let t=new Date(e.getTime()+324e5);return new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()))}function n(e,t=new Date){if(!e)return!1;let a=/^(\d{4})\/(\d{2})\/(\d{2})$/.exec(e);if(!a)return!1;let i=Number(a[1]),s=Number(a[2]),o=Number(a[3]),r=new Date(Date.UTC(i,s-1,o)),c=new Date(Date.UTC(i,s-1,o+14)),p=l(t);return p>=r&&p<c}function o(e,t=new Date){if(!e)return!1;let a=/^(\d{4})\/(\d{2})\/(\d{2})$/.exec(e);if(!a)return!1;let i=new Date(Date.UTC(Number(a[1]),Number(a[2])-1,Number(a[3]))),s=l(t);return i<=new Date(Date.UTC(s.getUTCFullYear(),s.getUTCMonth()+1,s.getUTCDate()))}let r=e=>e.startsWith("OpenAI_"),c=e=>e.startsWith("VertexAI_"),p=e=>e.startsWith("Anthropic")||e.startsWith("BedrockAnthropic"),d=e=>e.startsWith("Sakura_");function u(e){let t=e.filter(e=>e.publishScope===i.iYX.Tenant);return e.map(e=>({model:e.model,configuration:e,isLastPublishedModel:e.publishScope===i.iYX.Tenant&&1===t.length}))}function m(e){return"endingSoon"===h(e)}function _(e,t=new Date){return 0===e.length?"noModels":e.every(e=>o(e.shutdownAt,t))?"endingSoon":"none"}function h(e,t=new Date){let a=e.filter(e=>e.publishScope===i.iYX.Tenant);return 0===a.length?"noModels":a.every(e=>o(e.shutdownAt,t))?"endingSoon":"none"}},35391:(e,t,a)=>{"use strict";a.d(t,{br:()=>X,tE:()=>J,VA:()=>ee,uf:()=>V,YI:()=>K,Pj:()=>et,XB:()=>Z});var i=a(15383),s=a(73754),l=a(56731),n=a(33058),o=a(14343),r=a(55101),c=a(53321),p=a(1569),d=a(98096),u=a(98147),m=a(76324);(0,d.J1)` 23 mutation SpeechLogCreate($req: SpeechLogInput!) { 24 speechLogCreate(req: $req) { 25 success 26 } 27 } 28`;var _=a(60268),h=a(22474),g=a(96588),b=a(89600),x=a(70577),v=a(4691);let f=["image/jpeg","image/png","image/webp"];function j(e){return f.includes(e.type)}async function w(e,t=8e3){if(!j(e))return e;let a=await createImageBitmap(e,{imageOrientation:"from-image"});try{let i=function(e,t,a){let i=Math.max(e,t);if(i<=a)return null;let s=a/i;return{width:Math.max(1,Math.round(e*s)),height:Math.max(1,Math.round(t*s))}}(a.width,a.height,t);if(null===i)return e;let s=document.createElement("canvas");s.width=i.width,s.height=i.height;let l=s.getContext("2d");if(!l)throw Error("Failed to get 2d context");l.drawImage(a,0,0,i.width,i.height);let n=await new Promise(t=>{s.toBlob(t,e.type,.92)}
28);if(null===n)throw Error("Failed to create blob from canvas");return new File([n],e.name,{type:e.type,lastModified:e.lastModified})}finally{a.close()}}var C=a(57007),y=a(13237),N=a(75477),E=a(35595),M=a(2148),S=a(23408),I=a(41702),P=a(87585),A=a(90864),T=a.n(A),k=a(43189),L=a(17949),D=a(60796),F=a(7694),O=a(99945),R=a(11693),Y=a.n(R);let B=({isListening:e,startListening:t,stopListening:a,useExternalButtonStyle:s=!1})=>(0,i.jsx)("div",{className:`${Y()["speech-text-input-container"]} ${s?Y()["external-button-style"]:""}`,children:(0,i.jsx)(D.m,{title:e?"é³å£°å
¥åã®åæ¢":"é³å£°å
¥åã®éå§(3åéã¾ã§)",children:(0,i.jsxs)("button",{type:"button",onClick:e?a:t,className:Y()["speech-text-input-area"],style:e?{position:"relative"}:{},children:[e&&(0,i.jsx)("span",{className:Y()["speech-text-input-area-spinner"],children:(0,i.jsx)(M.o1,{size:32})}),s?(0,i.jsx)(F.A,{size:16}):(0,i.jsx)(O.klO,{size:20})]})})});var U=a(9276),G=a(71299),$=a(64901);let z=[x.Y.MIME_TYPES.CSV,x.Y.MIME_TYPES.EXCEL],V=[x.Y.MIME_TYPES.DOCX,x.Y.MIME_TYPES.HTML,x.Y.MIME_TYPES.JSON,x.Y.MIME_TYPES.MARKDOWN,x.Y.MIME_TYPES.PDF,x.Y.MIME_TYPES.PPTX,x.Y.MIME_TYPES.TXT],q={[x.Y.MIME_TYPES.PDF]:[".pdf"],[x.Y.MIME_TYPES.JSON]:[".json"],[x.Y.MIME_TYPES.DOCX]:[".docx"],[x.Y.MIME_TYPES.EXCEL]:[".xlsx"],[x.Y.MIME_TYPES.PPTX]:[".pptx"],[x.Y.MIME_TYPES.TXT]:[".txt"],[x.Y.MIME_TYPES.HTML]:[".html"],[x.Y.MIME_TYPES.CSV]:[".csv"],[x.Y.MIME_TYPES.MARKDOWN]:[".md"]},W={[x.Y.MIME_TYPES.PDF]:[".pdf"],"application/x-pdf":[".pdf"],[x.Y.MIME_TYPES.TXT]:[".txt"],[x.Y.MIME_TYPES.HTML]:[".html"],[x.Y.MIME_TYPES.JSON]:[".json"],[x.Y.MIME_TYPES.CSV]:[".csv"],[x.Y.MIME_TYPES.MARKDOWN]:[".md"],[x.Y.MIME_TYPES.PPTX]:[".pptx"],[x.Y.MIME_TYPES.DOCX]:[".docx"]},X=Object.keys(q),H=e=>e.flatMap(e=>q[e]??[]).join(", "),J=H(X),K=H(V);function Z(e){let{canAttachExtendedDocument:t,canAttachFile:a,canAttachImage:i,isOpenAiModel:s,isVertexAiModel:l,isSakuraAiModel:n,isAutoModelSelection:o}=e;if(n)return{};let r={...t&&W,...t&&s&&{[x.Y.MIME_TYPES.EXCEL]:[".xlsx"]},...a&&{...q},...i&&{[x.Y.MIME_TYPES.PNG]:[".png"],[x.Y.MIME_TYPES.JPEG]:[".jpeg",".jpg"],[x.Y.MIME_TYPES.WEBP]:[".webp"],...!l&&{[x.Y.MIME_TYPES.GIF]:[".gif"]}}};return o&&delete r[x.Y.MIME_TYPES.EXCEL],r}let Q=()=>{let{successMessage:e,clearSuccessMessage:t}=(0,o.useContext)(l.w);return e?(0,i.jsx)(g.SuccessBanner,{message:e,onClose:t}):null},ee=({input:e,setInput:t,addInputFile:a,removeFile:l,onSubmit:d,abortStreaming:f,isLoading:A,hasReceivedFirstChunk:D,errorElement:F,chatInputErrorElement:O,chatRoomParams:R,chatId:Y,className:q,placeholder:W,minRows:X,enableAutoModelSelection:H=!1,isDetailView:J=!1,isSubmitDisabled:K=!1,useExternalButtonStyle:ee=!1,featureButtonElement:et,actionLeadingElement:ea})=>{let ei=(0,o.useContext)(s.I),es=ei?.tenant.id??"",el=(0,n.Cj)(R.model),en=(0,n.wx)(R.model),eo=(0,n.Wi)(R.model),er=(0,n.Vd)(R.model),ec=R.tools.length>0&&!H&&!er,ep=(R.isMultimodal||H)&&!er,ed=ec||ep,eu=v.g.ENABLE_SPEECH_RECOGNITION(es),{canAttachExtendedDocument:em}=(0,_.O)(),e_=(0,h.I)(),[eh,eg]=(0,o.useState)(null),{isModalOpen:eb,isLoading:ex,result:ev,handleClick:ef,handleClose:ej,handleUsePrompt:ew}=(0,$.P)({inputText:e.text,chatId:Y,onApplyPrompt:e=>t(t=>({...t,text:e})),analyticsOrigin:"chat"}),{interimTranscript:eC,finalTranscript:ey,isListening:eN,startListening:eE,stopListening:eM}=(()=>{let[e,t]=(0,o.useState)(""),[a,i]=(0,o.useState)({text:"",updatedAt:Date.now()}),[s,l]=(0,o.useState)(!1),n=(0,o.useRef)(null),d=(0,o.useRef)(null),_=(0,o.useRef)(null),[h]=(0,u.n)(m.M8N),g=(0,o.useCallback)(()=>{l(!1),t(""),d.current&&(clearTimeout(d.current),d.current=null)},[]),b=(0,o.useCallback)(e=>{g(),p.oR.error(e)},[g]),x=async()=>{if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return!1;try{return(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(e=>e.stop()),!0}catch(e){return!1}},v=async()=>{try{let e;if(!await x())throw Error("ãã¤ã¯ã使ç¨ã§ãã¾ããã");let{token:a,region:s}=await c.A.getAzureSpeechToken(),l=((e=r.SpeechConfig.fromAuthorizationToken(a,s)).speechRecognitionLanguage="ja-JP",new r.SpeechRecognizer(e));n.current=l,l.recognizing=(e,a)=>{t(a.result.text)},l.recognized=(e,a)=>{a.result.reason===r.ResultReason.RecognizedSpeech&&(t(""),i({text:a.result.text,updatedAt:Date.now()}))},l.startContinuousRecognitionAsync(()=>
28{_.current=new Date,d.current=setTimeout(()=>{p.oR.success("3åã§èªåçµäºãã¾ããã"),j()},18e4)},e=>{b(`é³å£°å
¥åéå§ã¨ã©ã¼: ${e}`)}),l.canceled=(e,t)=>{if(t.reason!==r.CancellationReason.EndOfStream&&t.reason===r.CancellationReason.Error){let e="æ¥ç¶ã¨ã©ã¼ã«ãªãã¾ãã";switch(t.errorCode){case r.CancellationErrorCode.NoError:return;case r.CancellationErrorCode.AuthenticationFailure:case r.CancellationErrorCode.BadRequestParameters:case r.CancellationErrorCode.TooManyRequests:case r.CancellationErrorCode.ConnectionFailure:case r.CancellationErrorCode.ServiceTimeout:case r.CancellationErrorCode.ServiceError:case r.CancellationErrorCode.RuntimeError:case r.CancellationErrorCode.Forbidden:e="æ¥ç¶ã¨ã©ã¼ã«ãªãã¾ãã"}b(e);return}}}catch(e){b(e instanceof Error?e.message:"é³å£°å
¥åã§ã¨ã©ã¼ãçºçãã¾ãã")}},f=async()=>{l(!0),t(""),i({text:"",updatedAt:Date.now()});try{await v()}catch(e){}},j=(0,o.useCallback)(()=>{g(),n.current?.stopContinuousRecognitionAsync(()=>{_.current&&h&&h({variables:{req:{startedAt:_.current.toISOString(),stoppedAt:new Date().toISOString()}}}).catch(()=>{})})},[g,h]);return(0,o.useEffect)(()=>{let e=()=>{s&&j()};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[s,j]),{interimTranscript:e,finalTranscript:a,isListening:s,startListening:f,stopListening:j}})();(0,o.useEffect)(()=>{ey.text&&t(e=>({...e,text:e.text+ey.text}))},[ey,t]);let eS=en&&e.chatFiles.some(e=>"ChatFile"===e.__typename&&"VisionImage"===e.fileType&&e.size>5242880),eI=R.tools.includes(m.eUg.CodeInterpreter),eP=e.chatFiles.some(e=>"ChatFile"===e.__typename&&!eI&&z.includes(e.mime_type)&&e.size>102400),eA=(0,o.useCallback)(async(e,t)=>{let i=e;if(en&&j(e))try{i=await w(e)}catch(e){console.warn("Failed to resize image for Anthropic",e)}return a(i,t)},[a,en]),eT=(0,o.useMemo)(()=>Z({canAttachExtendedDocument:em,canAttachFile:ec,canAttachImage:ep,isOpenAiModel:eo,isVertexAiModel:el,isSakuraAiModel:er,isAutoModelSelection:H}),[em,ec,ep,eo,el,er,H]),ek=(0,o.useCallback)(async t=>{let a=Math.max(0,G.Ae-e.chatFiles.length);t.length>a&&p.oR.warn(G.I,{toastId:G.mc});let i=t.slice(0,a),s={isVertexAiModel:el,isSakuraAiModel:er,isAutoModelSelection:H,tools:R.tools,canAttachFile:ec,acceptedFileTypes:eT},l=i.map(e=>{var t,a;return{file:e,message:s.isSakuraAiModel?"ãããã®AIã®ã¢ãã«ã§ã¯ãã¡ã¤ã«ãæ·»ä»ã§ãã¾ããã\nã¢ãã«ã夿´ãã¦ãã ããã":"application/msword"===e.type?".docå½¢å¼ã®ãã¡ã¤ã«ã¯ã¢ãããã¼ãã§ãã¾ããã.docxå½¢å¼ã®ãã¡ã¤ã«ããå©ç¨ãã ããã":"application/vnd.ms-powerpoint"===e.type?".pptå½¢å¼ã®ãã¡ã¤ã«ã¯ã¢ãããã¼ãã§ãã¾ããã.pptxå½¢å¼ã®ãã¡ã¤ã«ããå©ç¨ãã ããã":"application/vnd.ms-excel"===e.type?".xlså½¢å¼ã®ãã¡ã¤ã«ã¯ã¢ãããã¼ãã§ãã¾ããã.xlsxå½¢å¼ã®ãã¡ã¤ã«ããå©ç¨ãã ããã":s.isVertexAiModel&&e.type===x.Y.MIME_TYPES.GIF?"Geminiã¢ãã«ã§ã¯.gifå½¢å¼ã®ãã¡ã¤ã«ã¯ã¢ãããã¼ãã§ãã¾ããã":s.isAutoModelSelection&&e.type===x.Y.MIME_TYPES.EXCEL?"ã¢ãã«èªå鏿ãæå¹ãªå ´åã.xlsxå½¢å¼ã®ãã¡ã¤ã«ã¯ã¢ãããã¼ãã§ãã¾ããã":!s.tools.includes(m.eUg.FileSearch)||s.tools.includes(m.eUg.CodeInterpreter)||V.includes(e.type)?!function(e,t){var a;let i,s=Object.entries(t);if(0===s.length)return!1;let l=e.type.toLowerCase(),n=(i=(a=e.name.toLowerCase()).lastIndexOf("."))<=0?"":a.slice(i).toLowerCase();return""!==n?s.some(([,e])=>e.some(e=>e.toLowerCase()===n)):s.some(([e])=>""!==l&&l===e.toLowerCase())}(e,s.acceptedFileTypes)?"ãµãã¼ãããã¦ããªããã¡ã¤ã«å½¢å¼ã§ãã":(t=e,a=s,[x.Y.MIME_TYPES.PNG,x.Y.MIME_TYPES.JPEG,x.Y.MIME_TYPES.WEBP,x.Y.MIME_TYPES.GIF].includes(t.type)?t.size>0x1400000?"ç»åãã¡ã¤ã«ãµã¤ãºã®ä¸éãè¶
éãã¦ãã¾ããæ·»ä»å¯è½ãªç»åãã¡ã¤ã«ãµã¤ãºã¯20MBã¾ã§ã§ãã":null:a.canAttachFile?t.size>0x20000000?"ããã¥ã¡ã³ããã¡ã¤ã«ãµã¤ãºã®ä¸éãè¶
éãã¦ãã¾ããæ·»ä»å¯è½ãªããã¥ã¡ã³ããã¡ã¤ã«ãµã¤ãºã¯512MBã¾ã§ã
28§ãã":null:t.size>0x1400000?"ããã¥ã¡ã³ããã¡ã¤ã«ãµã¤ãºã®ä¸éãè¶
éãã¦ãã¾ããæ·»ä»å¯è½ãªããã¥ã¡ã³ããã¡ã¤ã«ãµã¤ãºã¯20MBã¾ã§ã§ãã20MBãè¶
ããããã¥ã¡ã³ããã¡ã¤ã«ãæ·»ä»ããå ´åã¯ããã¡ã¤ã«æ¤ç´¢ããã¼ã¿å¦çã»åæã®æ©è½ãã使ããã ããã":null):"ãã¡ã¤ã«æ¤ç´¢ã使ç¨ããå ´åã.docx, .html, .json, .md, .pdf, .pptx, .txtå½¢å¼ã®ãã¡ã¤ã«ãã¢ãããã¼ããã¦ãã ããã"}});for(let e of function(e){let t=new Set,a=[];for(let i of e)t.has(i)||(t.add(i),a.push(i));return a}(l.map(e=>e.message).filter(e=>null!==e)))p.oR.error(e);let n=l.filter(e=>null===e.message).map(e=>e.file);await Promise.all(n.map(e=>eA(e,R.tools.length>0&&!H)))},[eA,R.tools,el,er,ec,H,e.chatFiles.length,eT]),{getRootProps:eL,getInputProps:eD,open:eF,isDragActive:eO}=(0,C.VB)({accept:eT,onDrop:ek,onDropRejected:e=>{e.some(e=>e.errors.some(e=>"file-invalid-type"===e.code))||e.some(e=>e.errors.some(e=>"file-too-large"===e.code))?p.oR.error("ãµãã¼ãããã¦ããªããã¡ã¤ã«å½¢å¼ã§ãã"):p.oR.error("ãã¡ã¤ã«ãµã¤ãºã®ä¸éã¯100MBã§ãã")},noClick:!0,noKeyboard:!0,noPaste:!0,disabled:!ed});return(0,i.jsxs)("div",{...eL({className:`${T()["input-container"]} ${O?T()["input-container--error"]:""} ${q??""}`}),children:[eO&&(0,i.jsx)("div",{className:T()["dragging-overlay"],children:(0,i.jsx)("p",{children:"ããã«ãã¡ã¤ã«ããããããã¦ãã ãã"})}),(0,i.jsx)("input",{...eD()}),(0,i.jsx)("div",{className:T()["input-error-feedback-container"],children:F}),eS&&(0,i.jsx)("div",{className:T()["input-error-feedback-container"],children:(0,i.jsx)(g.WarningBanner,{message:"5MBãè¶
ããç»åã¯Anthropicã¢ãã«ã®å¶éã«ã
28ãèªåçã«å§ç¸®ããã¾ããç»è³ªãä½ä¸ããå ´åãããã¾ãã"})}),eP&&(0,i.jsx)("div",{className:T()["input-error-feedback-container"],children:(0,i.jsx)(g.WarningBanner,{message:J?"100KBãè¶
ããCSV / Excelãã¡ã¤ã«ã¯ãã¼ã¯ã³æ¶è²»ã大ãããæ£ããå¦çã§ããªãå ´åãããã¾ããæ°ãããã£ããã§ããã¼ã¿å¦çã»åæãæ©è½ãONã«ãããã¨ãæ¨å¥¨ãã¾ãã":"100KBãè¶
ããCSV / Excelãã¡ã¤ã«ã¯ãã¼ã¯ã³æ¶è²»ã大ãããæ£ããå¦çã§ããªãå ´åãããã¾ããããã¼ã¿å¦çã»åæãæ©è½ãONã«ãããã¨ãæ¨å¥¨ãã¾ãã"})}),(0,i.jsx)("div",{className:T()["input-error-feedback-container"],children:(0,i.jsx)(Q,{})}),(0,i.jsx)("div",{className:`${O?T()["input-area-error"]:T()["input-area"]} ${ee?T()["external-button-style"]:""}`,children:O?(0,i.jsxs)("div",{className:T()["input-error-banner"],children:[(0,i.jsx)(y.y3G,{size:20,color:"#920400"}),O]}):(0,i.jsxs)(i.Fragment,{children:[ee&&e.chatFiles.length>0&&(0,i.jsx)("div",{className:T()["files-section"],children:e.chatFiles.map(e=>"ChatFile"===e.__typename?(0,i.jsxs)("div",{className:`${T()["file-item"]}${"VisionImage"===e.fileType?` ${T()["file-item--vision-clickable"]}`:""}`,..."VisionImage"===e.fileType?{role:"button",tabIndex:0,"aria-label":`${e.name}ãæ¡å¤§è¡¨ç¤º`,onClick:()=>eg(b.sR.CHATS.FORMAT_CHAT_FILE_URL(e.id)),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),eg(b.sR.CHATS.FORMAT_CHAT_FILE_URL(e.id)))}}:{},children:["VisionImage"===e.fileType?(0,i.jsx)("img",{src:b.sR.CHATS.FORMAT_CHAT_FILE_URL(e.id),alt:"",className:T()["file-thumbnail"]}):(0,i.jsx)(N.n$u,{size:16,className:T()["file-icon"]}),(0,i.jsx)("span",{className:T()["file-name"],children:e.name}),(0,i.jsx)("button",{type:"button",className:T()["file-delete-button"],onClick:t=>{t.stopPropagation(),l(e.id)},children:(0,i.jsx)(N.m6K,{size:12})})]},e.id):(0,i.jsx)("div",{className:T()["file-item"],children:(0,i.jsx)(M.y$,{size:16})},e.tmpId))}),e_?(0,i.jsx)(U.h,{input:e,interimTranscript:eC,setInput:t,chatRoomParams:R,onSubmit:d,addInputFile:ep?eA:void 0,isLoading:A,hasReceivedFirstChunk:D,isListening:eN,stopListening:eM,abortStreaming:f,isAutoModelSelection:H,attachFileButtonElement:ed&&(0,i.jsx)(P._,{open:eF,useExternalButtonStyle:ee}),featureButtonElement:et,speechRecognitionButtonElement:eu&&(0,i.jsx)(B,{isListening:eN,startListening:eE,stopListening:eM,useExternalButtonStyle:ee}),actionLeadingElement:ea,placeholder:W,minRows:X,isDetailView:J,isSubmitDisabled:K,useExternalButtonStyle:ee}):(0,i.jsx)(U.h,{input:e,interimTranscript:eC,setInput:t,chatRoomParams:R,onSubmit:d,addInputFile:ep?eA:void 0,isLoading:A,hasReceivedFirstChunk:D,isListening:eN,stopListening:eM,abortStreaming:f,isAutoModelSelection:H,attachFileButtonElement:ed&&(0,i.jsx)(P._,{open:eF,useExternalButtonStyle:ee}),speechRecognitionButtonElement:eu&&(0,i.jsx)(B,{isListening:eN,startListening:eE,stopListening:eM,useExternalButtonStyle:ee}),promptAssistButtonElement:(0,i.jsx)(k.W,{onClick:ef,disabled:0===e.text.trim().length,isLoading:ex,useExternalButtonStyle:ee}),featureButtonElement:et,actionLeadingElement:ea,placeholder:W,minRows:X,isDetailView:J,isSubmitDisabled:K,useExternalButtonStyle:ee}),!ee&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:T()["input-images-container"],children:(0,i.jsx)(I.D,{imageUrls:e.chatFiles.filter(e=>"VisionImage"===e.fileType).map(e=>"ChatFile"===e.__typename?{id:e.id,url:b.sR.CHATS.FORMAT_CHAT_FILE_URL(e.id),onDelete:()=>l(e.id)}:{isUploading:!0}),isDeleted:!1})}),(0,i.jsx)("div",{className:T()["input-files-container"],children:(0,i.jsx)(S.m,{files:e.chatFiles.filter(e=>"AssistantFile"===e.fileType).map(e=>"ChatFile"===e.__typename?{id:e.id,name:e.name,url:b.sR.CHATS.FORMAT_CHAT_FILE_URL(e.id),onDelete:()=>l(e.id)}:{isUploading:!0}),isDeleted:!1})})]})]})}),eb&&(0,i.jsx)(L.j,{beforeText:ev.beforeText,afterText:ev.afterText,description:ev.description,isLoading:ex,onClose:ej,onUsePrompt:ew}),eh&&(0,i.jsx)(E.B,{imageUrl:eh,onClose:()=>eg(null)})]})},et=o.forwardRef(({header:e,footer:t,...a},s)=>(0,i.jsxs)("div",{ref:s,className:T()["input-layout"],children:[e,(0,i.jsx)(ee,{...a}),t]}));et.displayName="FixedChatInput"},35595:(e,t,a)=>{"use strict";a.d(t,{B:()=>o});var i=a(15383),s=a(12074),l=a.n(s),n=a(14343);let o=e=>{let t=(0,n.useCallback)(t=>{"Escape"===t.key&&e.onClose()},[e]);return(0,n.useEffect)(()=>(document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}),[t]),(0,i.jsxs)("div",{className:"modal is-active",style:{zIndex:200},children:[(0,i.jsx)("div",{className:"modal-background"}),(0,i.jsx)("div",{className:"modal-content",children:(0,i.jsx)("figure",{className:"image",children:(0,i.jsx)(l(),{onOutsideClick:e.onClose,children:(0,i.jsx)("img",{src:e.imageUrl,alt:""})})})}),(0,i.jsx)("button",{className:"modal-close is-large","aria-label":"close",onClick:e.onClose})]})}},41702:(e,t,a)=>{"use strict";a.d(t,{m:()=>_,D:()=>m});var i=a(15383),s=a(35595),l=a(26640),n=a.n(l),o=a(14343),r=a(1900),c=a.n(r);let p=e=>
28{let[t,a]=(0,o.useState)(!1);return(0,i.jsxs)("div",{style:{position:"relative"},children:[e.onDelete&&!t&&(0,i.jsx)("button",{className:"delete",style:{position:"absolute",top:"2px",right:"2px",zIndex:1},onClick:e.onDelete,children:"åé¤"}),(0,i.jsxs)("figure",{className:"image is-64x64",onClick:e.onClick,style:{cursor:e.onClick?"pointer":"default",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:[t&&(0,i.jsx)("div",{className:c()["image-placeholer"],children:(0,i.jsx)("svg",{className:c()["image-placeholer-svc"],"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 18",children:(0,i.jsx)("path",{d:"M18 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm-5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm4.376 10.481A1 1 0 0 1 16 15H4a1 1 0 0 1-.895-1.447l3.5-7A1 1 0 0 1 7.468 6a.965.965 0 0 1 .9.5l2.775 4.757 1.546-1.887a1 1 0 0 1 1.618.1l2.541 4a1 1 0 0 1 .028 1.011Z"})})}),(0,i.jsx)("img",{src:e.imageUrl,alt:"",style:{borderRadius:"3px"},onLoad:()=>a(!1)})]})]})};var d=a(2148),u=a(12909);let m=e=>
28{let[t,a]=(0,o.useState)(null);return 0===e.imageUrls.length||e.isDeleted?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:n()["chat-images-layout"],children:e.imageUrls.map((e,t)=>"isUploading"in e?(0,i.jsx)("figure",{className:n()["chat-image-loading-container"],children:(0,i.jsx)(d.y$,{size:16})},t.toString()):(0,i.jsx)(p,{imageUrl:e.url,onClick:()=>a(e.url),onDelete:e.onDelete},e.id))}),t&&(0,i.jsx)(s.B,{imageUrl:t,onClose:()=>a(null)})]})},_=({id:e,url:t,prompt:a,showTitle:l=!0,imageClassName:r})=>{let[c,p]=(0,o.useState)(null);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{children:[l&&(0,i.jsx)("div",{className:n()["chat-generated-image-title"],children:"ç»åãçæãã¾ããã"}),(0,i.jsxs)("div",{className:n()["chat-generated-image-container"],children:[(0,i.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",onClick:e=>{e.preventDefault(),p(t)},children:(0,i.jsx)("img",{src:t,alt:a,className:`${n()["chat-generated-image"]}${r?` ${r}`:""}`})}),(0,i.jsx)("button",{onClick:()=>{let a;(a=document.createElement("a")).href=t,a.download=`generated-image-${e}.png`,document.body.appendChild(a),a.click(),document.body.removeChild(a)},className:n()["chat-generated-image-download-button"],title:"ç»åããã¦ã³ãã¼ã",children:(0,i.jsx)(u.WCW,{size:16})})]})]}),c&&(0,i.jsx)(s.B,{imageUrl:c,onClose:()=>p(null)})]})}},43189:(e,t,a)=>{"use strict";a.d(t,{W:()=>p});var i=a(15383),s=a(60796),l=a(35655),n=a(77448),o=a(11503),r=a(97951),c=a.n(r);let p=({onClick:e,disabled:t=!0,isLoading:a=!1,useExternalButtonStyle:r=!1})=>{let p=t||a;return(0,i.jsx)("div",{className:`${c()["prompt-assist-button-container"]} ${r?c()["external-button-style"]:""}`,children:(0,i.jsx)(s.m,{title:"ããã³ããã¢ã·ã¹ã",disabled:p,children:(0,i.jsx)("button",{className:c()["prompt-assist-button"],onClick:e,disabled:p,"aria-label":"ããã³ããã¢ã·ã¹ã",children:a?(0,i.jsx)(l.A,{size:r?16:18,className:c().spinner}):r?(0,i.jsx)(n.A,{size:16}):(0,i.jsx)(o.A,{size:18,color:p?"#C4C4C4":"#353ebd"})})})})}},44528:()=>{},47651:()=>{},54319:(e,t,a)=>{"use strict";a.d(t,{$B:()=>y,HJ:()=>N,d8:()=>b});var i=a(15383),s=a(26157),l=a(62648),n=a(46620),o=a(69547),r=a(14343),c=a(22474),p=a(60796),d=a(62816),u=a.n(d);let m=r.forwardRef(({name:e,description:t,top:a,left:s,onMouseDown:l},n)=>(0,i.jsxs)("div",{ref:n,className:u().flyout,style:{position:"fixed",top:a,left:s,zIndex:1e4},onMouseDown:l,children:[(0,i.jsx)("span",{className:u().name,children:e}),(0,i.jsx)("p",{className:u().description,children:t})]}));m.displayName="DescriptionFlyout";var _=a(5788),h=a.n(_);let g=({item:e})=>{let t=(0,i.jsx)("button",{type:"button",role:"switch","aria-checked":e.enabled,"aria-label":e.name,disabled:e.disabled,className:`${h().toggle} ${e.enabled?h()["toggle--on"]:""}`,onClick:()=>e.onChange(e=>!e)});return e.disabledReason?(0,i.jsx)(p.m,{title:e.disabledReason,placement:"right-start",disableInteractive:!0,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,8]}}]}},children:(0,i.jsx)("span",{className:h()["toggle-tooltip-target"],children:t})}):t},b=({items:e,showDescription:t=!1,onItemMouseEnter:a,onItemMouseLeave:s,togglePosition:l="right",withDivider:n=!0})=>e.map(e=>(0,i.jsxs)("div",{className:`${h().item} ${"left"===l?h()["item--toggle-left"]:""} ${!n?h()["item--without-divider"]:""}`,onMouseEnter:t=>a?.(e,t),onMouseLeave:()=>s?.(),children:["left"===l&&(0,i.jsx)(g,{item:e}),(0,i.jsxs)("div",{className:h()["item-text"],children:[(0,i.jsxs)("div",{className:h()["item-name-row"],children:[(0,i.jsx)("span",{className:h()["item-name"],children:e.name}),e.isNew&&(0,i.jsx)("span",{className:h()["item-new-badge"],children:"NEW"})]}),t&&(0,i.jsx)("p",{className:h()["item-description"],children:e.disabled&&e.disabledReason?e.disabledReason:e.description})]}),"right"===l&&(0,i.jsx)(g,{item:e})]},e.name)),x=({item:e,compact:t})=>(0,i.jsxs)(i.Fragment,{children:[t&&e.badgeIcon,(0,i.jsx)("span",{children:t?e.badgeLabel??e.name:e.name})]}),v=({onClick:e})=>(0,i.jsx)("span",{className:h()["active-badge-close"],onClick:t=>{t.stopPropagation(),e()},children:(0,i.jsx)(s.A,{size:10})}),f=({item:e,compact:t})=>(0,i.jsxs)("span",{className:`${h()["active-badge"]} ${h()["active-badge--disabled"]}`,children:[(0,i.jsx)(l.A,{size:12,className:h()["active-badge-lock"]}),(0,i.jsx)(x,{item:e,compact:t})]}),j=({item:e,compact:t})=>(0,i.jsxs)("button",{type:"button",className:`${h()["active-badge"]} ${h()["active-badge--warning"]}`,onClick:()=>e.onBadgeClick?.(),children:[(0,i.jsx)(v,{onClick:()=>e.onChange(!1)}),(0,i.jsx)(n.A,{size:12,className:h()["active-badge-warning-icon"]}),(0,i.jsx)(x,{item:e,compact:t})]}),w=({item:e,compact:t})=>(0,i.jsxs)("span",{className:h()["active-badge"],children:[(0,i.jsx)(v,{onClick:()=>e.onChange(!1)}),(0,i.jsx)(x,{item:e,compact:t})]}),C=({items:e,compact:t=!1})=>(0,i.jsx)(i.Fragment,{children:e.filter(e=>e.enabled).map(e=>e.disabled?(0,i.jsx)(f,{item:e,compact:t},e.name):"warning"===e.badgeVariant?(0,i.jsx)(j,{item:e,compact:t},e.name):(0,i.jsx)(w,{item:e,compact:t},e.name))}),y=({items:e})=>e.some(e=>e.enabled)?(0,i.jsx)("div",{className:h()["active-badges-row"],role:"status","aria-live":"polite",children:(0,i.jsx)(C,{items:e,compact:!0})}):null,N=({items:e,hideBadges:t=!1})=>{let[a,s]=(0,r.useState)(!1),[l,n]=(0,r.useState)(null),p=(0,r.useRef)(null),d=(0,r.useRef)(null),u=(0,r.useRef)(null),_=(0,c.I)();return(0,r.useEffect)(()=>{let e=e=>{let t=e.target,a=d.current?.contains(t)??!1,i=p.current?.contains(t)??!1,l=u.current?.contains(t)??!1;a||i||l||(s(!1),n(null))};return a&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[a]),(0,i.jsxs)(i.Fragment,{children:[l&&(0,i.jsx)(m,{ref:u,name:l.item.name,description:l.item.disabled&&l.item.disabledReason?l.item.disabledReason:l.item.description,top:l.top,left
28:l.left,onMouseDown:e=>e.stopPropagation()}),(0,i.jsxs)("div",{className:h()["popup-anchor"],children:[a&&(0,i.jsx)("div",{ref:d,className:h().popup,children:(0,i.jsx)(b,{items:e,showDescription:_,onItemMouseEnter:_?void 0:(e,t)=>{if(e.disabled&&e.disabledReason)return void n(null);let a=t.currentTarget.getBoundingClientRect();n({item:e,top:a.top,left:a.right+8})},onItemMouseLeave:_?void 0:()=>n(null)})}),(0,i.jsxs)("button",{ref:p,type:"button",className:h().button,onClick:()=>s(e=>!e),children:[(0,i.jsx)(o.A,{size:14}),(0,i.jsx)("span",{children:"æ©è½"})]})]}),!t&&(0,i.jsx)(C,{items:e})]})}},60150:()=>{},60268:(e,t,a)=>{"use strict";a.d(t,{O:()=>l});var i=a(73754),s=a(14343);function l(){let e=(0,s.useContext)(i.I);return{canAttachExtendedDocument:!!e?.subscriptionPlan?.plan}}},62816:e=>{e.exports={flyout:"description-flyout_flyout__tbipR",name:"description-flyout_name__OuxHN",description:"description-flyout_description__DSeu8"}},63095:e=>{e.exports={"deprecation-tag":"deprecation-tag_deprecation-tag__tcDxO",deprecationTag:"deprecation-tag_deprecation-tag__tcDxO"}},64901:(e,t,a)=>{"use strict";a.d(t,{P:()=>c});var i=a(76324),s=a(61174),l=a(98096),n=a(98147),o=a(14343),r=a(1569);(0,l.J1)` 29 mutation ExecutePromptAssist($input: PromptAssistInput!) { 30 executePromptAssist(input: $input) { 31 improvedPrompt 32 reason 33 } 34 } 35`;let c=({inputText:e,chatId:t,onApplyPrompt:a,analyticsOrigin:l})=>{let[c,p]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),[m,_]=(0,o.useState)({beforeText:"",afterText:"",description:""}),[h]=(0,n.n)(i.uE1),g=(0,o.useCallback)(async()=>{u(!0),s.A.executePromptAssist(l);try{let a=await h({variables:{input:{originalPrompt:e,chatId:t}}});a.data?.executePromptAssist?(_({beforeText:e,afterText:a.data.executePromptAssist.improvedPrompt,description:a.data.executePromptAssist.reason}),p(!0)):r.oR.error("ããã³ããã®æ¹åçµæãåå¾ã§ãã¾ããã§ãã")}catch{r.oR.error("ããã³ããã®å¤æã«å¤±æãã¾ãã")}finally{u(!1)}},[e,t,h,l]),b=(0,o.useCallback)(()=>{p(!1)},[]),x=(0,o.useCallback)(()=>{s.A.applyPromptAssist(l),a(m.afterText),p(!1)},[m.afterText,a,l]);return{isModalOpen:c,isLoading:d,result:m,handleClick:g,handleClose:b,handleUsePrompt:x}}},65734:e=>{e.exports={"chat-files-layout":"chat-files_chat-files-layout__o_cI_",chatFilesLayout:"chat-files_chat-files-layout__o_cI_","inline-chat-file":"chat-files_inline-chat-file__grBER",inlineChatFile:"chat-files_inline-chat-file__grBER"}},68679:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var i=a(15383),s=a(73754),l=a(90265),n=a(96588),o=a(80063),r=a(14343);let c=({target:e,children:t})=>{let a=(0,r.useContext)(s.I),c=(0,o.useRouter)();return a?.availableFeatures.includes(e)?(0,i.jsx)(i.Fragment,{children:t}):(c.replace(l.B.Root.link()),(0,i.jsx)(n.Spinner,{loading:!0}))}},69417:()=>{}
35,70577:(e,t,a)=>{"use strict";a.d(t,{Y:()=>i});let i={CONTEXT_INDEX:{CONTEXT_INDEX_DISPLAY_NAME_MAX_LENGTH:50,CONTEXT_SOURCE_DISPLAY_NAME_MAX_LENGTH:255},MIME_TYPES:{PDF:"application/pdf",JSON:"application/json",DOCX:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PPTX:"application/vnd.openxmlformats-officedocument.presentationml.presentation",TXT:"text/plain",HTML:"text/html",CSV:"text/csv",MARKDOWN:"text/markdown",PNG:"image/png",JPEG:"image/jpeg",WEBP:"image/webp",GIF:"image/gif"},AUTO_MODEL_SELECTION:{INITIAL_PRESET_ID:"model_selecting-default"}}},70794:e=>{e.exports={"loading-icon":"spinner_loading-icon__tS2d7",loadingIcon:"spinner_loading-icon__tS2d7",spin:"spinner_spin__cnY6o","spinner-with-text":"spinner_spinner-with-text__I2UmB",spinnerWithText:"spinner_spinner-with-text__I2UmB","loading-text":"spinner_loading-text__3t4Tp",loadingText:"spinner_loading-text__3t4Tp"}},72665:(e,t,a)=>{"use strict";a.d(t,{JP:()=>l,Qd:()=>x,Rd:()=>_,_1:()=>n,_m:()=>b,ar:()=>r,ev:()=>o,h7:()=>d,oU:()=>m,oV:()=>g,rI:()=>h,w:()=>u,zI:()=>s});var i=a(76324);let s="gmail_search",l="gmail_draft_create",n="google_calendar",o="google_calendar_create_event",r="outlook_search",c=["OpenAI_","Anthropic_","VertexAI_"],p=(e,t)=>{if(!c.some(t=>e.startsWith(t)))return`${t}ã¯é¸æä¸ã®ã¢ãã«ã§ã¯å©ç¨ã§ãã¾ããã 36OpenAI / Anthropic / Gemini ã¢ãã«ã鏿ãã¦ãã ããã`},d=e=>p(e,"Gmail飿º"),u=e=>p(e,"Googleã«ã¬ã³ãã¼"),m=e=>{if(!c.some(t=>e.startsWith(t)))return"Outlook飿ºã¯é¸æä¸ã®ã¢ãã«ã§ã¯å©ç¨ã§ãã¾ããã\nOpenAI / Anthropic / Gemini ã¢ãã«ã鏿ãã¦ãã ããã"},_="ãããã®AIã®ã¢ãã«ã§ã¯æ©è½ãå©ç¨ã§ãã¾ããã\nã¢ãã«ã夿´ãã¦ãã ããã",h=(e,t)=>void 0===t?e:e.map(e=>({...e,disabled:e.disabled||!e.enabled,disabledReason:e.disabledReason??t})),g=(e,t)=>0===t.length?[]:e.filter(e=>!e.supportsCodeInterpreterAndFileSearch).map(e=>e.id),b=(e,t,a="workspace")=>{if(0!==t.length){if(t.includes(i.eUg.CodeInterpreter))return x(e,i.eUg.CodeInterpreter,a);if(t.includes(i.eUg.FileSearch))return x(e,i.eUg.FileSearch,a)}},x=(e,t,a="workspace")=>{if(!e.supportsCodeInterpreterAndFileSearch){if(t===i.eUg.CodeInterpreter)return`鏿ä¸ã®ã¢ãã«ã¯ãã¼ã¿å¦çã»åæãæå¹ãª${"chat"===a?"ãã£ãã":"ã¯ã¼ã¯ã¹ãã¼ã¹"}ã§å©ç¨ã§ãã¾ããã 37ã¢ãã«ã夿´ãã¦ãã ããã`;if(t===i.eUg.FileSearch)return`鏿ä¸ã®ã¢ãã«ã¯ãã¡ã¤ã«æ¤ç´¢ãæå¹ãª${"chat"===a?"ãã£ãã":"ã¯ã¼ã¯ã¹ãã¼ã¹"}ã§å©ç¨ã§ãã¾ããã 38ã¢ãã«ã夿´ãã¦ãã ããã`}}},77035:e=>{e.exports={"attach-file-input-container":"attach-file-button_attach-file-input-container__IetIm",attachFileInputContainer:"attach-file-button_attach-file-input-container__IetIm","attach-file-input":"attach-file-button_attach-file-input__BSSdQ",attachFileInput:"attach-file-button_attach-file-input__BSSdQ","external-button-style":"attach-file-button_external-button-style__TxVGu",externalButtonStyle:"attach-file-button_external-button-style__TxVGu"}},78710:e=>{e.exports={"new-badge":"new-badge_new-badge__Bg0xi",newBadge:"new-badge_new-badge__Bg0xi"}},80383:e=>{e.exports={"pro-label":"pro-label_pro-label__E3urj",proLabel:"pro-label_pro-label__E3urj","pro-icon":"pro-label_pro-icon__khV40",proIcon:"pro-label_pro-icon__khV40"}},87585:(e,t,a)=>{"use strict";a.d(t,{_:()=>c});var i=a(15383),s=a(60796),l=a(63296),n=a(75477),o=a(77035),r=a.n(o);let c=({open:e,useExternalButtonStyle:t=!1,disabled:a=!1,label:o="æ·»ä»"})=>(0,i.jsx)("div",{className:`${r()["attach-file-input-container"]} ${t?r()["external-button-style"]:""}`,children:t?(0,i.jsxs)("button",{type:"button",className:r()["attach-file-input"],onClick:e,disabled:a,children:[(0,i.jsx)(l.A,{size:16}),(0,i.jsx)("span",{children:o})]}):(0,i.jsx)(s.m,{title:"ãã¡ã¤ã«ã®æ·»ä»",children:(0,i.jsx)("button",{className:r()["attach-file-input"],onClick:e,disabled:a,children:(0,i.jsx)(n.v1D,{size:20,color:"#353ebd"})})})})},89121:(e,t,a)=>{"use strict";a.d(t,{J:()=>s,P:()=>i});let i=(e,t)=>{let a=l(e,t.availableModels);if(a)return a;let i=n(e,t.availableLLMPresets,t.availableDefaultLLMPresets,t.myCustomLLMPresets,t.sharedCustomLLMPresets);return i||null},s=(e,t)=>t.includes(e)?null:{__typename:"error",code:"INVALID_MODEL",message:"ãã®ã¢ãã«ã¯ãµãã¼ããçµäºãã¾ãããå¥ã®ã¢ãã«ããå©ç¨ãã ããã"},l=(e,t)=>
38e.isFinetuned?null:s(e.model,t),n=(e,t,a,i,s)=>t.some(t=>t.id===e.id)||a.some(t=>t.id===e.id)||i.some(t=>t.id===e.id)||s.some(t=>t.id===e.id)?null:{__typename:"error",code:"INVALID_MODEL",message:"ãã®ã¢ãã«ã¯ãµãã¼ããçµäºãã¾ãããå¥ã®ã¢ãã«ããå©ç¨ãã ããã"}},89356:(e,t,a)=>{"use strict";a.d(t,{P:()=>l,U4:()=>s,np:()=>n,zX:()=>o});var i=a(76324);let s={"4599959688340259741":{modelSortOrder:[i.qPU.OpenAiGpt5Nano_20250807,i.qPU.OpenAiGpt5Mini_20250807,i.qPU.OpenAiGpt5_20250807,i.qPU.OpenAiGpt5Thinking_20250807,i.qPU.VertexAiGemini25Flash,i.qPU.VertexAiGemini25Pro,i.qPU.OpenAiGpt4oMini20240718],defaultModelId:i.qPU.OpenAiGpt5Nano_20250807},"4223094235469137813":{modelSortOrder:[i.qPU.OpenAiGpt5Nano_20250807,i.qPU.OpenAiGpt5Mini_20250807,i.qPU.OpenAiGpt5_20250807,i.qPU.OpenAiGpt5Thinking_20250807,i.qPU.VertexAiGemini25Flash,i.qPU.VertexAiGemini25Pro,i.qPU.OpenAiGpt4oMini20240718],defaultModelId:i.qPU.OpenAiGpt5Nano_20250807},"8760171043965650705":{modelSortOrder:[i.qPU.OpenAiGpt5Nano_20250807,i.qPU.OpenAiGpt5Mini_20250807,i.qPU.OpenAiGpt5_20250807,i.qPU.OpenAiGpt5Thinking_20250807,i.qPU.VertexAiGemini25Flash,i.qPU.VertexAiGemini25Pro,i.qPU.OpenAiGpt4oMini20240718],defaultModelId:i.qPU.OpenAiGpt5Nano_20250807},"0709811305814836139":{modelSortOrder:[i.qPU.OpenAiGpt5Nano_20250807,i.qPU.OpenAiGpt5Mini_20250807,i.qPU.OpenAiGpt5_20250807,i.qPU.OpenAiGpt5Thinking_20250807,i.qPU.VertexAiGemini25Flash,i.qPU.VertexAiGemini25Pro,i.qPU.OpenAiGpt4oMini20240718],defaultModelId:i.qPU.OpenAiGpt5Nano_20250807}};function l(e,t){let{modelSortOrder:a}=t;return[...e].sort((t,i)=>{let s=a.indexOf(t.model),l=a.indexOf(i.model);return -1!==s&&-1!==l?s-l:-1!==s?-1:-1!==l?1:e.indexOf(t)-e.indexOf(i)})}function n(e,t){let a=new Map(t.map((e,t)=>[e.id,t])),i=new Map(e.map((e,t)=>[e.id,t]));return[...e].sort((e,t)=>{let s=a.get(e.id),l=a.get(t.id);return void 0!==s&&void 0!==l?s-l:void 0!==s?-1:void 0!==l?1:(i.get(e.id)??0)-(i.get(t.id)??0)})}function o(e,t){return e.find(e=>e.model===t.defaultModelId)}},89499:()=>{},90864:e=>{e.exports={"input-layout":"chat-input_input-layout__dyFvS",inputLayout:"chat-input_input-layout__dyFvS","input-container":"chat-input_input-container__k7coV",inputContainer:"chat-input_input-container__k7coV","input-container--error":"chat-input_input-container--error__FXFh1",inputContainerError:"chat-input_input-container--error__FXFh1","dragging-overlay":"chat-input_dragging-overlay__oDXqF",draggingOverlay:"chat-input_dragging-overlay__oDXqF","border-rotate":"chat-input_border-rotate__Qf48e",borderRotate:"chat-input_border-rotate__Qf48e","input-error-feedback-container":"chat-input_input-error-feedback-container__nwK1z",inputErrorFeedbackContainer:"chat-input_input-error-feedback-container__nwK1z","input-area":"chat-input_input-area__Fj90m",inputArea:"chat-input_input-area__Fj90m","input-area-error":"chat-input_input-area-error__BlvCh",inputAreaError:"chat-input_input-area-error__BlvCh","input-error-banner":"chat-input_input-error-banner__OVDmM",inputErrorBanner:"chat-input_input-error-banner__OVDmM","input-images-container":"chat-input_input-images-container__NKJbY",inputImagesContainer:"chat-input_input-images-container__NKJbY","input-files-container":"chat-input_input-files-container__w9RXA",inputFilesContainer:"chat-input_input-files-container__w9RXA","action-area-right":"chat-input_action-area-right__cOX1J",actionAreaRight:"chat-input_action-area-right__cOX1J","external-button-style":"chat-input_external-button-style__2z5A9",externalButtonStyle:"chat-input_external-button-style__2z5A9","files-section":"chat-input_files-section__rSJ4z",filesSection:"chat-input_files-section__rSJ4z","file-item":"chat-input_file-item__EqSZx",fileItem:"chat-input_file-item__EqSZx","file-delete-button":"chat-input_file-delete-button__sXJ_b",fileDeleteButton:"chat-input_file-delete-button__sXJ_b","file-item--vision-clickable":"chat-input_file-item--vision-clickable__PujoS",fileItemVisionClickable:"chat-input_file-item--vision-clickable__PujoS","file-thumbnail":"chat-input_file-thumbnail__yMHBF",fileThumbnail:"chat-input_file-thumbnail__yMHBF","file-icon":"chat-input_file-icon__v4FSQ",fileIcon:"chat-input_file-icon__v4FSQ","file-name":"chat-input_file-name__YACog",fileName:"chat-input_file-name__YACog"}},91237:(e,t,a)=>{"use strict";a.d(t,{B:()=>n});var i=a(15383),s=a(63095),l=a.n(s);let n=({children:e})=>(0,i.jsx)("span",{className:l()["deprecation-tag"],children:e})},97951:e=>{e.exports={"prompt-assist-button-container":"prompt-assist-button_prompt-assist-button-container__k3moi",promptAssistButtonContainer:"prompt-assist-button_prompt-assist-button-container__k3moi","prompt-assist-button":"prompt-assist-button_prompt-assist-button__xHP5A",promptAssistButton:"prompt-assist-button_prompt-assist-button__xHP5A","external-button-style":"prompt-assist-button_external-button-style__y4YkM",externalButtonStyle:"prompt-assist-button_external-button-style__y4YkM",spinner:"prompt-assist-button_
38spinner__03he0",spin:"prompt-assist-button_spin__J7Y9P"}}}]);
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.