1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:note-front-custom-domain":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2ef5ac65-0372-48f4-8cd8-0fcd08c40597",e._sentryDebugIdIdentifier="sentry-dbid-2ef5ac65-0372-48f4-8cd8-0fcd08c40597")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[119,1949,3109,3213,5490,5594,7141,9561],{2280:(e,t,r)=>{r.d(t,{b:()=>o});var a=r(19324);function o(e,t){let{id:r,"aria-label":o,"aria-labelledby":i}=e;return r??=(0,a.useId)(),i&&o?i=[...new Set([...i.trim().split(/\s+/),r])].join(" "):i&&=i.trim().split(/\s+/).join(" "),o||i||!t||(o=t),{id:r,"aria-label":o,"aria-labelledby":i}}},4168:(e,t,r)=>{r.d(t,{g:()=>n});var a=r(14157),o=r(54544),i=r(19324);let n=e=>{let t=(0,a.D6)();return(0,i.useMemo)(()=>(0,o.rt)(e,t),[t,e])}},8951:(e,t,r)=>{r.d(t,{v:()=>s});var a=r(90660),o=r(42018),i=r(21889),n=r(80603);function s(e,t){let{inputElementType:r="input",isDisabled:s=!1,isRequired:l=!1,isReadOnly:d=!1,validationState:u,type:c="text",onChange:m=()=>{}}=e,{focusableProps:p}=(0,i.W)(e,t),{labelProps:f,fieldProps:b,descriptionProps:h,errorMessageProps:g}=(0,n.M)(e),v=(0,a.$)(e,{labelable:!0}),x={type:c,pattern:e.pattern};return{labelProps:f,inputProps:(0,o.v)(v,"input"===r?x:{},{disabled:s,readOnly:d,"aria-required":l||void 0,"aria-invalid":"invalid"===u||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:e=>m(e.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...p,...b}),descriptionProps:h,errorMessageProps:g}}},9972:(e,t,r)=>{var a=r(96356);r.o(a,"ServerInsertedHTMLContext")&&r.d(t,{ServerInsertedHTMLContext:function(){return a.ServerInsertedHTMLContext}}),r.o(a,"notFound")&&r.d(t,{notFound:function(){return a.notFound}}),r.o(a,"redirect")&&r.d(t,{redirect:function(){return a.redirect}}),r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}}),r.o(a,"useSelectedLayoutSegment")&&r.d(t,{useSelectedLayoutSegment:function(){return a.useSelectedLayoutSegment}}),r.o(a,"useSelectedLayoutSegments")&&r.d(t,{useSelectedLayoutSegments:function(){return a.useSelectedLayoutSegments}})},15796:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97050),o=r(24123),i=r(54514),n=r(67646),s=r(42018),l=r(19324),d=r(16239),u=r(97360),c=(0,l.memo)((0,l.forwardRef)(function(e,t){let{label:r,validationState:c,isDisabled:m,multiLine:p,autoFocus:f,wrapperChildren:b,labelProps:h,inputProps:g,inputRef:v,inputClassName:x="",descriptionProps:y,errorMessageProps:P,isLoading:C,dynamicHeight:$,loadingIndicator:j,slotIcon:w,slotIconPosition:I="start",borderless:M,allowResize:N,minimizeHeight:A,rows:S,maxHeight:E}=e,{hoverProps:R,isHovered:T}=(0,i.M)({isDisabled:m}),z=(0,l.useRef)(null),D=(0,l.useRef)(null),L=v??D;(0,l.useImperativeHandle)(t,()=>({...(0,a.Ml)(z,L),select(){L.current&&L.current.select()},getInputElement:()=>L.current}));let k=(0,u.jsxs)("div",{className:"relative","data-name":"TextFieldBase",children:[(0,u.jsx)(n.v,{focusClass:M?"":"focus:border-border-strong",isTextInput:!0,autoFocus:f,children:(0,u.jsx)(p?"textarea":"input",{...(0,s.v)(g,R),ref:L,rows:p?A?1:S??4:void 0,className:(0,d.QP)(`inline-block w-full resize-y a
1ppearance-none rounded-lg border border-border-default border-solid bg-surface-normal p-2 align-top text-text-primary leading-normal md:text-sm ${$&&p?"[field-sizing:content]":""} ${w&&"start"===I?"pl-8":""} ${w&&"end"===I?"pr-8":""} ${T?"is-hovered":""} ${"invalid"===c?"border-border-danger":""} ${m?"cursor-not-allowed bg-surface-disabled text-text-disabled":""} ${M?"border-transparent":""} ${N?"resize-y":"resize-none"} ${x??""}`),style:$&&p&&E?{maxHeight:`${E}lh`}:void 0})}),(0,l.isValidElement)(w)&&(0,u.jsx)("div",{className:`absolute top-1/2 flex -translate-y-1/2 text-text-secondary ${"start"===I?"left-2":"right-2"}`,children:w}),C&&j,b]});return r&&(k=l.cloneElement(k,(0,s.v)(k.props,{className:p?"multiline":""}))),(0,u.jsx)(o.A,{...e,labelProps:h,descriptionProps:y,errorMessageProps:P,ref:z,children:k})}))},21797:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(97050),o=r(3455),i=r(90660),n=r(19324),s=r(16239),l=r(32508),d=r(97360),u=(0,n.memo)((0,n.forwardRef)(function(e,t){let{className:r="",children:u,isRequired:c,hasNecessityIndicator:m=!1,htmlFor:p,for:f,elementType:b="label",onClick:h,...g}=e=(0,o.zT)(e),v=(0,a.zD)(t),x=c?"å¿ é ":"ä»»æ",y=(0,n.useMemo)(()=>(0,s.QP)(l(` 2 ml-2 3 inline-block 4 font-base 5 text-xs 6 font-medium 7 ${c?"text-text-danger":""} 8 `)),[c]);return(0,d.jsxs)(b,{"data-name":"Label",...(0,i.$)(g),onClick:h,ref:v,className:l(`inline-flex items-center font-base font-bold text-sm ${r??""}`),htmlFor:"label"===b?f||p:void 0,children:[u,m&&(0,d.jsx)("span",{className:y,children:x})]})}))},24123:(e,t,r)=>{r.d(t,{A:()=>d});var a=r(25655),o=r(33953),i=r(21797),n=r(19324),s=r(32508),l=r(97360),d=(0,n.memo)((0,n.forwardRef)(function(e,t){let{label:r,isRequired:n,hasNecessityIndicator:d,validationState:u,description:c,errorMessage:m,isDisabled:p,labelProps:f,children:b,descriptionProps:h={},errorMessageProps:g={},sideContent:v,sideContentPosition:x="after",wrapperClassName:y="",wrapperProps:P={},elementType:C}=e=(0,a.S)(e),$=!!c||m&&"invalid"===u;return(0,l.jsxs)("div",{...P,"data-name":"Field",className:s(`relative ${y}`),ref:t,children:[r&&(0,l.jsx)(i.A,{className:"mb-2",...f,isRequired:n,hasNecessityIndicator:d,elementType:C,children:r}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:`${v?"flex justify-center gap-2":""}`,children:[(0,l.jsx)("div",{className:`flex-1 overflow-hidden ${"before"===x?"order-1":""}`,children:b}),v&&(0,l.jsx)("div",{className:"flex",children:v})]}),$&&(0,l.jsx)(o.A,{descriptionProps:h,errorMessageProps:g,description:c,errorMessage:m,validationState:u,isDisabled:p})]})]})}))},25655:(e,t,r)=>{r.d(t,{S:()=>i});var a=r(19324);r(97360);var o=(0,a.createContext)({});function i(e){return{...(0,a.useContext)(o),...e}}},26957:(e,t,r)=>{r.d(t,{A:()=>d});var a=r(53773),o=r(52761),i=r(81509),n=r(19324),s=r(32508),l=r(97360),d=(0,n.forwardRef)(function(e,t){let r=(0,n.useContext)(o.M)||{},{children:d,hasHeroImage:u,...c}=e,m=(0,a.zD)(t),p=(0,n.useMemo)(()=>s(` 9 peer 10 shrink-0 overflow-hidden bg-surface-normal text-center 11 ${u?"":"border-border-default border-b p-4"} 12 ${"fullscreenTakeover"===r.type?"":"rounded-t-lg"} 13 `),[u,r.type]);return(0,l.jsx)("header",{...(0,i.$)(c),ref:m,className:p,children:d})})},33953:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(97050),o=r(19324),i=r(32508),n=r(97360),s=(0,o.memo)((0,o.forwardRef)(function(e,t){let{description:r,errorMessage:s,validationState:l,isDisabled:d,descriptionProps:u,errorMessageProps:c}=e,m=(0,a.zD)(t),p=s&&"invalid"===l;return(0,n.jsxs)("div",{"data-name":"HelpText",ref:m,className:(0,o.useMemo)(()=>i(` 14 mt-2 15 text-sm 16 ${d?"is-disabled":""} 17 `),[d]),children:[s&&(0,n.jsx)("div",{className:i(`text-text-danger ${p?"":"hidden"}`),role:"alert","aria-live":"assertive","aria-hidden":!p,...c,children:s}),r&&(0,n.jsx)("div",{className:"text-text-secondary",...u,children:r})]})}))},36886:(e,t,r)=>{r.d(t,{E:()=>l,T:()=>s});var a=r(97360),o=r(61246),i=r(65887),n=r(19324);let s=({modalPurpose:e,extraActionLogs:t})=>{let r=(0,n.useRef)(!1),{trackActionLogs:a}=(0,o.sr)();(0,n.useEffect)(()=>{!0!==r.current&&(a([{kind:"",event:"imp",target:"other",contents:{modalName:e}},...t??[]]),r.current=!0)},[a,e,t])},l=({modalPurpose:e,extraActionLogs:t,...r})=>(s({modalPurpose:e,extraActionLogs:t}),(0,a.jsx)(i.A,{...r}))},37141:(e,t,r)=>{r.d(t,{r:()=>d});
17var a=r(65154),o=r(9972),i=r(19324),n=r(14157),s=r(4168);let l={login:a.iD,signup:a.$5},d=()=>{let{customDomain:e,customDomainOrigin:t}=(0,n.D6)(),r=(0,o.usePathname)(),a=(0,s.g)(l),d=e?.isOauthRequired??!1,u=`${t??""}${r??""}`,c=(0,i.useCallback)((e={})=>a.getLinkUrl("login",{message:e.message,urlnameToFollow:e.urlnameToFollow,redirectTo:e.redirectTo??u,isOauthRequired:d}),[a,u,d]),m=(0,i.useCallback)((e={})=>a.getLinkUrl("signup",{redirectPath:e.redirectPath??u}),[a,u]);return{currentUrl:u,isOauthRequired:d,getLoginUrl:c,getSignupUrl:m}}},43747:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(53773),o=r(52761),i=r(81509),n=r(19324),s=r(16239),l=r(32508),d=r(97360),u=(0,n.forwardRef)(function(e,t){let r=(0,n.useContext)(o.M)||{},{children:u,placement:c="right",direction:m="row",unsafeClassName:p,...f}=e,b=(0,a.zD)(t),h=(0,n.useMemo)(()=>(0,s.QP)(l(` 18 flex shrink-0 19 ${"row"===m?"flex-row items-center gap-4 bg-background-secondary p-4":"flex-col items-stretch gap-2 bg-background-primary px-6 pt-4 pb-6"} 20 ${"center"===c?"justify-center":""} 21 ${"left"===c?"justify-start":""} 22 ${"right"===c?"justify-end":""} 23 ${"between"===c?"justify-between":""} 24 ${"fullscreenTakeover"===r.type?"":"rounded-b-lg"} 25 ${p??""} 26 `)),[c,m,r.type,p]);return(0,d.jsx)("footer",{...(0,i.$)(f),ref:b,className:h,children:u})})},51949:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(3455),o=r(15796),i=r(8951),n=r(19324),s=r(97360),l=(0,n.forwardRef)(function(e,t){let{allowPlaceholder:r}=e=(0,a.zT)(e),l=(0,n.useRef)(null),{labelProps:d,inputProps:u,descriptionProps:c,errorMessageProps:m}=(0,i.v)(e,l);return!r&&e.placeholder&&console.warn("Placeholders are deprecated due to accessibility issues. Please use help text instead."),(0,s.jsx)(o.A,{...e,labelProps:d,inputProps:u,descriptionProps:c,errorMessageProps:m,ref:t,inputRef:l})})},52761:(e,t,r)=>{r.d(t,{M:()=>o,t:()=>i});var a=r(19324),o=a.createContext(null),i=a.createContext({hasFooter:!1})},60213:(e,t,r)=>{r.d(t,{_:()=>s});var a=r(16239),o=r(97360),i=r(19324),n=r(32508);function s(e){let{unSafeClassName:t,imageAlt:r,imageSrc:s,imageSrcSet:l,imageSizes:d,imageWidth:u,imageHeight:c,imageElementType:m="img",loading:p="lazy",fetchPriority:f,priority:b,fit:h="cover",disableAspectRatio:g=!1,onError:v}=e;return(0,o.jsx)("div",{className:(0,i.useMemo)(()=>(0,a.QP)(n(` 27 w-full overflow-hidden 28 ${t??""} 29 `)),[t]),style:{aspectRatio:(0,i.useMemo)(()=>{if(!g)return u&&c?`${u}/${c}`:void 0},[c,u,g])},children:(0,o.jsx)(m,{className:`block size-full ${"cover"===h?"object-cover":"object-contain"}`,src:s,srcSet:l,sizes:d,width:u,height:c,alt:r,loading:p,...void 0!==f&&{fetchPriority:f},...!0===b&&"img"!==m&&{priority:b},...void 0!==v&&{onError:v}})})}},62566:(e,t,r)=>{r.d(t,{A:()=>C});var a=r(53773),o=r(81092),i=r(783),n=r(43258),s=r(37246),l=r(52217),d=r(62549),u=r(23320),c=r(33477),m=r(13875),p=r(50343),f=r(8448),b=r(50018),h=r(58763),g=r(59999),v=r(19324),x=r(16239),y=r(32508),P=r(97360),C=(0,v.memo)((0,v.forwardRef)(function(e,t){let{elementType:r="button",children:C,autoFocus:$,isDisabled:j,variant:w,size:I="m",isFull:M=!1,isPending:N,onPress:A,onPressStart:S,onPressEnd:E,onPressChange:R,onPressUp:T,onKeyDown:z,onKeyUp:D,prefetch:L}=e=(0,d.zT)(e),k=(0,a.t0)(t),Z=()=>{},{buttonProps:H,isPressed:F}=(0,u.s)({...e,onPress:N?Z:A,onPressStart:N?Z:S,onPressEnd:N?Z:E,onPressChange:N?Z:R,onPressUp:N?Z:T,onKeyDown:N?Z:z,onKeyUp:N?Z:D},k),{hoverProps:_,isHovered:B}=(0,c.M)({isDisabled:j}),[O,K]=(0,v.useState)(!1),{focusProps:Q}=(0,m.i)({onFocusChange:K,isDisabled:j}),U=!!H["aria-label"]||!!H["aria-labelledby"],[q,J]=(0,v.useState)(()=>!!N),V=(0,p.dz)((0,p.a1)(I,"m"),l.t),W=(0,v.useId)(),X=H.id||W,G=(0,v.useId)(),Y=(0,v.useId)(),ee=(0,f.o)(s.D);(0,v.useEffect)(()=>{let e;return N?e=setTimeout(()=>{J(!0)},1e3):J(!1),()=>{clearTimeout(e)}},[N]);let et=`${U?H["aria-label"]:""} ${ee.format("pending")}`.trim(),er=U?H["aria-labelledby"]?.replace(X,Y)??Y:`${G} ${Y}`.trim(),ea="polite";(0,b.lg)()&&(!U||(0,b.gm)())&&(ea="off");let eo=(0,v.useMemo)(()=>(0,x.QP)(y(` 30 ${n.R.base} 31 ${n.R[w]} 32 ${V} 33 ${M?n.R.full:""} 34 ${j||q?n.R.disabled:""} 35 `)),[w,V,M,j,q]),ei=(0,v.useMemo)(()=>y(` 36 relative flex items-center justify-center font-bold 37 ${q?"opacity-0":""} 38 `),[q]);return(0,P.jsx)(h.v,{autoFocus:$,children:(0,P.jsxs)(r,{"data-name":"Button",...(0,g.v)(H,_,Q),id:X,disabled:j,"aria-disabled":N?"true":void 0,"aria-label":N?et:H["aria-label"],"aria-labelledby":N?er:H["aria-labelledby"],className:eo,ref:k,prefetch:L,children:[(0,P.jsx)(o.P,{isInverted:"primary"===w||"invert"===w,isPressed:F,isHovered:B}),(0,P.jsx)("span",{id:G,className:ei,children:C}),N&&(0,P.jsx)("div",{"aria-hidden":"true",style:{visibility:q?"visible":"hidden"},className:"absolute top-1/2 left-1/2 flex -translate-x-1/2 -translate-y-1/2",children:(0,P.jsx)(i.A,{size:"m",ariaLabel:et})}),N&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{"aria-live":O?ea:"off",children:q&&(0,P.jsx)("div",{"data-testid":"live-element",role:"img","aria-labelledby":er})}),(0,P.jsx)("div",{id:Y,role:"img","aria-label":et})]})]})})}))},71576:(e,t,r)=>{r.d(t,{A:()=>R});var a=r(53773),o=r(69480),i=r(52761),n=r(98548),s=r(43747),l=r(26957),d={"ja-JP":{dismiss:"éãã",zoomIn:"å寸ã§è¡¨ç¤º",zoomOut:"å ¨ä½è¡¨ç¤ºã«æ»ã",prevImage:"åã®ç»å",nextImage:"次ã®ç»å",imagePosition:"å ¨{total}æä¸{current}æç®"}},u=null;function c(e,t="assertive",r=7e3){(u||=new m).announce(e,t,r)}var m=class{node;assertiveLog;politeLog;
38constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t="assertive",r=7e3){if(!this.node)return;let a=document.createElement("div");a.textContent=e,"assertive"===t?this.assertiveLog.appendChild(a):this.politeLog.appendChild(a),""!==e&&setTimeout(()=>{a.remove()},r)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}},p=r(8448),f=r(75544),b=r(47279),h=r(64630),g=r(12274),v={"ja-JP":{imageChangedAnnouncement:"å
¨{total}æä¸{current}æç®ã{alt}",zoomedInAnnouncement:"å寸ã§è¡¨ç¤ºãã¦ãã¾ããã¹ã¯ãã¼ã«ã§ç§»åã§ãã¾ã",zoomedOutAnnouncement:"å
¨ä½è¡¨ç¤ºã«æ»ãã¾ãã",imageScrollArea:"ç»åã®è¡¨ç¤ºé å"}},x=r(19324),y=r(81509),P=r(99976),C=r(92778),$=r(16239),j=r(32508),w=r(97360),I=r(1130),M=(0,x.forwardRef)(function(e,t){let{images:r,index:n,defaultIndex:s,onIndexChange:l,isZoomed:u,defaultZoomed:m,onZoomChange:M,isZoomDisabled:N,imageElementType:A,unsafeClassName:S,...E}=e,R=(0,a.zD)(t),T=(0,x.useContext)(i.M),z=function(e){let{totalCount:t}=e,[r,a]=(0,I.P)(e.index,e.defaultIndex??0,t=>{void 0!==t&&e.onIndexChange?.(t)}),[o,i]=(0,I.P)(e.isZoomed,e.defaultZoomed??!1,t=>{void 0!==t&&e.onZoomChange?.(t)});return{index:r,totalCount:t,isZoomed:o,setIndex:function(e){a(Math.min(Math.max(e,0),Math.max(t-1,0)))},next:function(){t<=1||(a((r+1)%t),i(!1))},previous:function(){t<=1||(a((r-1+t)%t),i(!1))},setZoomed:i,toggleZoom:function(){i(!o)}}}({totalCount:r.length,index:n,defaultIndex:s,onIndexChange:l,isZoomed:u,defaultZoomed:m,onZoomChange:M}),D=r[z.index]??r[0],{scrollContainerRef:L,imageRef:k,scrollContainerProps:Z,zoomButtonProps:H,imageProps:F,isZoomable:_}=function(e,t){let r=(0,x.useRef)(null),a=(0,x.useRef)(null),[o,i]=(0,x.useState)(!1),n=(0,p.o)(v),s=(0,b.J)(()=>{let e=r.current,t=a.current;e&&t&&i(t.naturalWidth>e.clientWidth||t.naturalHeight>e.clientHeight)}),l=(0,b.J)(()=>{let e=r.current;e&&(t.isZoomed?(e.scrollLeft=(e.scrollWidth-e.clientWidth)/2,e.scrollTop=(e.scrollHeight-e.clientHeight)/2):(e.scrollLeft=0,e.scrollTop=0))}),d=(0,b.J)(()=>{s(),l()});(0,h.w)({ref:r,onResize:d}),(0,x.useEffect)(()=>{s()},[t.index,s]);let u=(0,x.useRef)(!1);(0,g.$)({ref:a,isDisabled:!e.isDismissable,onInteractOutsideStart:e=>{u.current=e.target===r.current},onInteractOutside:t=>{let a=u.current&&t.target===r.current;u.current=!1,a&&e.onClose?.()}});let m=(0,b.J)(e=>{"ArrowLeft"===e.key&&t.previous(),"ArrowRight"===e.key&&t.next()});(0,x.useEffect)(()=>{if(!e.isKeyboardNavigationEnabled||t.isZoomed)return;let a=(0,f.TW)(r.current);return a.addEventListener("keydown",m,!0),()=>a.removeEventListener("keydown",m,!0)},[m,e.isKeyboardNavigationEnabled,t.isZoomed]),(0,x.useLayoutEffect)(()=>
38{l()},[t.index,t.isZoomed,l]);let y=(0,x.useRef)(t.index);(0,x.useEffect)(()=>{y.current!==t.index&&c(n.format("imageChangedAnnouncement",{current:`${t.index+1}`,total:`${t.totalCount}`,alt:e.currentAlt??""}),"polite"),y.current=t.index},[e.currentAlt,t.index,t.totalCount,n]);let P=(0,x.useRef)(t.isZoomed);return(0,x.useEffect)(()=>{P.current!==t.isZoomed&&c(n.format(t.isZoomed?"zoomedInAnnouncement":"zoomedOutAnnouncement"),"polite"),P.current=t.isZoomed},[t.isZoomed,n]),{scrollContainerRef:r,imageRef:a,scrollContainerProps:t.isZoomed?{tabIndex:0,role:"region","aria-label":n.format("imageScrollArea")}:{},zoomButtonProps:{isDisabled:e.isZoomDisabled||!o,onPress:t.toggleZoom},imageProps:{onLoad:d},isZoomable:o}}({isZoomDisabled:N,isKeyboardNavigationEnabled:r.length>1,currentAlt:D?.alt,isDismissable:T?.isDismissable,onClose:T?.onClose},z),B=(0,p.o)(d),O=(0,x.useMemo)(()=>(0,$.QP)(j(` 39 relative min-h-0 flex-1 bg-surface-image-overlay 40 ${"string"==typeof S?S:""} 41 `)),[S]);return(0,w.jsxs)("div",{...(0,y.$)(E),ref:R,"data-name":"DialogImageBody",className:O,children:[(0,w.jsx)("div",{ref:L,...Z,className:"absolute inset-0 flex overflow-auto overscroll-contain",children:D&&(0,w.jsx)(A??"img",{ref:k,...F,src:D.src,alt:D.alt,width:D.width,height:D.height,className:z.isZoomed?"m-auto block max-w-none":"m-auto h-auto max-h-full w-auto max-w-full object-contain"})}),_&&(0,w.jsx)("div",{className:"absolute right-4 bottom-4",children:(0,w.jsx)(o.A,{...H,variant:"onImage",size:"m",isCircle:!0,"aria-label":B.format(z.isZoomed?"zoomOut":"zoomIn"),children:z.isZoomed?(0,w.jsx)(C.enP,{"aria-label":B.format("zoomOut"),"aria-hidden":!0}):(0,w.jsx)(C.$Zd,{"aria-label":B.format("zoomIn"),"aria-hidden":!0})})}),r.length>1&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"absolute top-1/2 left-4 -translate-y-1/2",children:(0,w.jsx)(o.A,{variant:"onImage",size:"m",isCircle:!0,onPress:()=>z.previous(),"aria-label":B.format("prevImage"),children:(0,w.jsx)(C.JGc,{"aria-label":B.format("prevImage"),"aria-hidden":!0})})}),(0,w.jsx)("div",{className:"absolute top-1/2 right-4 -translate-y-1/2",children:(0,w.jsx)(o.A,{variant:"onImage",size:"m",isCircle:!0,onPress:()=>z.next(),"aria-label":B.format("nextImage"),children:(0,w.jsx)(C.c_$,{"aria-label":B.format("nextImage"),"aria-hidden":!0})})}),(0,w.jsxs)("p",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-surface-image-overlay px-3 py-1 text-sm text-text-invert",children:[(0,w.jsx)("span",{"aria-hidden":!0,children:`${z.index+1} / ${z.totalCount}`}),(0,w.jsx)(P.s,{elementType:"span",children:B.format("imagePosition",{current:`${z.index+1}`,total:`${z.totalCount}`})})]})]})]})}),N=r(79192),A=r(2877),S=r(54375),E=r(59999),R=(0,x.forwardRef)(function(e,t){let r=(0,x.useContext)(i.M)||{},{children:u,hasCloseButton:c=r.hasCloseButton,onDismiss:m=r.onClose,size:f="s",type:b=r.type||"modal",unsafeClassName:h,isEmphasized:g=r.isEmphasized}=e,v=(0,p.o)(d),P=(0,a.zD)(t),{dialogProps:I,titleProps:R}=function(e,t){let{role:r="dialog"}=e,a=(0,N.X1)();a=e["aria-label"]?void 0:a;let o=(0,x.useRef)(!1),i=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{e["aria-label"]||e["aria-labelledby"]||a||i.current||(i.current=!0,console.warn("An aria-label or aria-labelledby prop is required for accessibility when a Dialog has no visible title (DialogHeader or slotTitle)."))},[a,e["aria-label"],e["aria-labelledby"]]),(0,x.useEffect)(()=>{if(!t.current||t.current.contains(document.activeElement))return()=>{};{(0,A.l)(t.current);let e=setTimeout(()=>{document.activeElement===t.current&&null!==t.current&&(o.current=!0,t.current.blur(),(0,A.l)(t.current),o.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,S.Se)(),{dialogProps:{...(0,y.$)(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||a,onBlur:e=>{o.current&&e.stopPropagation()}},titleProps:{id:a}}}((0,E.v)(r,e),P),T=(0,x.useMemo)(()=>(0,$.QP)(j(` 42 relative flex max-h-[inherit] flex-col outline-none md:mx-0 md:min-w-[10rem] 43 ${"popover"===b?"":"min-w-[calc(100vw-2rem)]"} 44 ${"modal"===b&&"s"===f?"md:w-[30rem]":""} 45 ${"modal"===b&&"m"===f?"md:w-[36.25rem]":""} 46 ${"modal"===b&&"l"===f?"md:w-[40rem]":""} 47 ${"popover"===b?"border border-border-default border-solid bg-surface-normal":""} 48 ${"popover"===b&&g?"bg-surface-primary text-text-invert":""} 49 ${["fullscreen","fullscreenTakeover"].includes(b)?"absolute inset-0":"popover"===b?"":"mx-4"} 50 ${"fullscreenTakeover"===b?"":"rounded-lg"} 51 ${h||""} 52 `)),[b,f,h,g]),z=(0,x.useMemo)(()=>j(` 53 absolute 54 ${"popover"===b?"top-1 right-1":"top-4 right-4"} 55 `),[b]),D=x.Children.toArray(u).find(e=>(0,x.isValidElement)(e)&&e.type===l.A),L=!!D,k=L&&!D?.props.hasHeroImage,Z=x.Children.toArray(u).some(e=>(0,x.isValidElement)(e)&&e.type===s.A),H=x.Children.toArray(u).some(e=>(0,x.isValidElement)(e)&&e.type===M),F=x.Children.map(u,e=>(0,x.isValidElement)(e)?e.type===l.A?x.cloneElement(e,{id:k?R.id:void 0}):e.type===n.A?x.cloneElement(e,{hasDialogHeader:L,slotTitleId:k?void 0:R.id}):e:e),_=(0,x.useMemo)(()=>({hasFooter:Z}),[Z]);return(0,w.jsx)(i.t.Provider,{value:_,children:(0,w.jsxs)("section",{...I,className:T,ref:P,"data-name":"Dialog",children:[F,c&&(0,w.jsx)("div",{className:z,children:(0,w.jsx)(o.A,{onPress:m,variant:H?"onImage":g?"primary":"clickableIcon",size:"popover"===b?"m":"l","aria-label":v.format("dismiss"),children:(0,w.jsx)(C.bm,{"aria-label":""})})})]})})})},80603:(e,t,r)=>{r.d(t,{M:()=>n});var a=r(34797),o=r(42018),i=r(85285);function n(e){let{description:t,errorMessage:r,isInvalid:n,validationState:s}=e,l=(0,i.M)(e),{fieldProps:d}=l,{labelProps:u}=l,c=(0,a.X1)([!!t,!!r,n,s]),m=(0,a.X1)([!!t,!!r,n,s]);return{labelProps:u,fieldProps:d=(0,o.v)(d,{"aria-describedby":[c,m,e["aria-describedby"]].filter(
55Boolean).join(" ")||void 0}),descriptionProps:{id:c},errorMessageProps:{id:m}}}},85285:(e,t,r)=>{r.d(t,{M:()=>i});var a=r(2280),o=r(19324);function i(e){let{id:t,"aria-labelledby":r}=e,{label:i,"aria-label":n,labelElementType:s="label"}=e;t??=(0,o.useId)();let l=(0,o.useId)(),d={};return i?(r=r?`${r} ${l}`:l,d={id:l,htmlFor:"label"===s?t:void 0}):r||n||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:d,fieldProps:(0,a.b)({id:t,"aria-label":n,"aria-labelledby":r})}}},98548:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(53773),o=r(52761),i=r(81509),n=r(19324),s=r(16239),l=r(32508),d=r(97360),u=(0,n.forwardRef)(function(e,t){let{children:r,slotTitle:u,slotText:c,slotTitleId:m,unsafeClassName:p,hasDialogHeader:f,...b}=e,h=(0,a.zD)(t),{hasFooter:g}=(0,n.useContext)(o.t),v=(0,n.useMemo)(()=>(0,s.QP)(l(` 56 min-h-32 flex-1 overflow-y-auto bg-background-primary p-4 57 ${f?"rounded-t-none":"rounded-t-lg"} 58 ${g?"rounded-b-none":"rounded-b-lg"} 59 ${"string"==typeof p?p:""} 60 `)),[p,g,f]);return(0,d.jsxs)("div",{...(0,i.$)(b),ref:h,className:v,children:[u&&(0,d.jsx)("h1",{id:m,className:"mb-2 text-center font-bold text-lg",children:u}),c&&(0,d.jsx)("div",{children:c}),r]})})}}]);
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.