1(globalThis.rspackChunknotion_next=globalThis.rspackChunknotion_next||[]).push([[10053],{674002(e,t){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r,a="dahlia",n="https://js.stripe.com",o="".concat(n,"/").concat(a,"/stripe.js"),s=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,l=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,c="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",u=function(){for(var e=document.querySelectorAll('script[src^="'.concat(n,'"]')),t=0;t<e.length;t++){var i,r=e[t];if(i=r.src,s.test(i)||l.test(i))return r}return null},d=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",i=document.createElement("script");i.src="".concat(o).concat(t);var r=document.head||document.body;if(!r)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(i),i},p=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"9.17.0",startTime:t})},f=null,g=null,m=null,h=function(e,t,r){if(null===e)return null;var n,o=t[0];if("string"!=typeof o)throw Error("Expected publishable key to be of type string, got type ".concat(i(o)," instead."));var s=o.match(/^pk_test/),l=3===(n=e.version)?"v3":n;s&&l!==a&&console.warn("Stripe.js@".concat(l," was loaded on the page, but @stripe/stripe-js@").concat("9.17.0"," expected Stripe.js@").concat(a,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var c=e.apply(void 0,t);return p(c,r),c},v=function(e){var t="invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ".concat(JSON.stringify(e),"\n");if(null===e||"object"!==i(e))throw Error(t);if(1===Object.keys(e).length&&"boolean"==typeof e.advancedFraudSignals)return e;throw Error(t)},_=!1,b=function(){for(var e,t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];_=!0;var n=Date.now();return(e=r,null!==f?f:(f=new Promise(function(t,i){if("u"<typeof window||"u"<typeof document)return void t(null);if(window.Stripe&&e&&console.warn(c),window.Stripe)return void t(window.Stripe);try{var r,a=u();a&&e?console.warn(c):a?a&&null!==m&&null!==g&&(a.removeEventListener("load",m),a.removeEventListener("error",g),null==(r=a.parentNode)||r.removeChild(a),a=d(e)):a=d(e),m=function(){window.Stripe?t(window.Stripe):i(Error("Stripe.js not available"))},g=function(e){i(Error("Failed to load Stripe.js",{cause:e}))},a.addEventListener("load",m),a.addEventListener("error",g)}catch(e){i(e);return}})).catch(function(e){return f=null,Promise.reject(e)})).then(function(e){return h(e,i,n)})};b.setLoadParameters=function(e){if(!(_&&r&&Object.keys(v(e)).reduce(function(t,i){var a;return t&&e[i]===(null==(a=r)?void 0:a[i])},!0))){if(_)throw Error("You cannot change load parameters after calling loadStripe");r=v(e)}},t.loadStripe=b},93376(e,t,i){e.exports=i(674002)},496722(e,t,i){"use strict";function r(){let e=i(192314).AppStoreSidebarSpaceStore.state;return e?e.id:void 0}i.d(t,{a:()=>r})},527391(e,t,i){"use strict";var r=()=>i(546605);class a extends r().Store{getInitialState(){return{loaded:!1}}USEWITHCAUTION_markStatsigUserFetched(e){let{userId:t,spaceId:i,fetched:r}=e;this.setState({loaded:r,userId:t,spaceId:i})}USEWITHCAUTION_isFetchedForSpaceAndUserId(e){let{spaceId:t,userId:i}=e;return this.state.loaded&&this.state.spaceId===t&&this.state.userId===i}}let n=new a;(0,i(202146).exposeDebugValue)("statsigUserLoadingStatusStore",n),i.d(t,{},{t:n})},724235(e,t,i){"use strict";var r=i(635790),a=i(440302);let n=(0,i(327219).YK)({help:{id:"helpButtonSettingsCaption.iconButton.ariaLabel",defaultMessage:"Help"}}),o=r.memo(function({title:e,href:t,analyticsFrom:o,shouldShrink:s,style:l,buttonStyle:c,isBlue:u,onClick:d,onFocus:p,onBlur:f,onMouseDown:g,onMouseEnter:m,onMouseLeave:h,textSize:v,isMobile:_}){let b=(0,i(533992).v3)(),y=(0,i(327219).tz)(),w={onFocus:p,onBlur:f,onMouseDown:g,onMouseEnter:m,onMouseLeave:h},x=(0,r.useCallback)(()=>{void 0!==d&&d(),(0,i(150782).F)(b,{from:o})},[o,b,d]),S=_?"small"!==v?i(699422).J.UIRegular.mobile:i(699422).J.UISmall.mobile:"small"!==v?i(699422).J.UIRegular.desktop:i(699422).J.UISmall.desktop,k="1.2";void 0!==v&&(k=_?"small"!==v?i(699422).K_.UIRegular.mobile:i(699422).K_.UISmall.mobile:"small"!==v?i(699422).K_.UIRegular.desktop:i(699422).K_.UISmall.desktop);let I=(0,i(960253).I)(()=>({link:{display:"flex",marginInlineStart:-6,...l}}),[l]);
1return(0,a.jsx)(i(68774).N,{style:I.link,className:"notion-print-ignore",href:t,external:!0,onClick:x,...w,children:e?(0,a.jsx)(i(988022).p,{iconLeading:i(211052).questionMarkCircleSmallIcon,size:"sm",shouldShrink:s,style:{...c,fontSize:S,lineHeight:k},...u?{colorPalette:"blue"}:{colorVariant:"tertiary"},children:e}):(0,a.jsx)(i(374533).K,{icon:i(211052).questionMarkCircleSmallIcon,colorPalette:u?"blue":void 0,colorVariant:u?"accentPrimary":"secondary",style:c,ariaLabel:y.formatMessage(n.help),...w})})});i.d(t,{},{V:o})},246271(e,t,i){"use strict";var r=i(635790),a=i(440302);function n({id:e,title:t,titleId:o,byline:s,bylineId:l,item:c,badge:u,iconLeading:d,layout:p="inline",itemWidth:f="fill",columnGap:g=12}){let m=(0,r.useRef)(null),h=null!=t||null!=s||null!=u||null!=d,v=(0,i(960253).I)(()=>({settingContainer:{display:"flex",width:"100%",flexWrap:"wrap",position:"relative",columnGap:g,rowGap:12*!!h,..."stacked"===p?{flexDirection:"column"}:{justifyContent:"space-between",alignItems:"center"}},settingTitle:{flex:"inline"===p&&"hug"===f?1:3,minWidth:200},settingItem:{flex:"inline"===p&&"hug"===f?"0 0 auto":1,display:"flex",flexDirection:"column",justifyContent:"flex-start",..."stacked"===p?{width:"100%"}:{alignItems:"flex-end"}}}),[g,h,f,p]);return(0,a.jsxs)("div",{ref:m,style:v.settingContainer,children:[h?(0,a.jsx)("div",{style:v.settingTitle,children:(0,a.jsx)(i(741489).j,{title:t,titleId:o,byline:s,bylineId:l,badge:u,iconLeading:d})}):void 0,(0,a.jsx)("div",{style:v.settingItem,children:c}),(0,a.jsx)(i(732727).j,{itemId:e,itemRef:m})]})}i.d(t,{b:()=>n})},732727(e,t,i){"use strict";var r=i(635790),a=i(440302);let n={highlight:{height:"calc(100% + 16px)",width:"calc(100% + 24px)",insetBlockStart:"-8px",insetInlineStart:"-12px",position:"absolute",backgroundColor:i(632079).Tj.blue.background.secondaryTranslucent,borderRadius:12,pointerEvents:"none"},highlightNeutral:{backgroundColor:i(632079).Tj.background.tertiaryTranslucent}};function o({itemId:e,itemRef:t}){let s=(0,i(533992).v3)(),l=(0,r.useContext)(i(700587).U),{shouldHighlight:c,variant:u}=(0,i(579993).K8)(()=>({shouldHighlight:i(488301).J.state.highlightedSetting===e,variant:i(488301).J.state.variant}),[e]),[d,p]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!c)return;let e=()=>{var e;let r,a=t.current;if(!a)return;let n=null==l||null==(e=l.verticalScroller)?void 0:e.getClientRect(),o=a.getBoundingClientRect(),c=((null==n?void 0:n.top)??0)+64,u=((null==n?void 0:n.bottom)??window.innerHeight)-64;o.top<c?r="top":o.bottom>u&&(r="bottom"),r&&(0,i(341471).h)({element:a,environment:s,scrollerContext:l,vertical:{reveal:r,paddingToTopEdge:64,paddingToBottomEdge:64},horizontal:void 0,animate:!0})},r=window.setTimeout(e,375),a=window.setTimeout(e,1200);return()=>{window.clearTimeout(r),window.clearTimeout(a)}},[c,s,t,l]),(0,r.useEffect)(()=>{if(!c)return void p(!1);let e=window.setTimeout(()=>{p(!0)},450);return()=>{window.clearTimeout(e),p(!1)}},[c]),(0,a.jsx)(i(654979).A,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},visible:d,config:{duration:250,timingFunction:"ease-in-out"},style:{...n.highlight,..."neutral"===u?n.highlightNeutral:void 0}})}i.d(t,{j:()=>o})},741489(e,t,i){"use strict";i(635790);var r=i(440302);function a({title:e,titleId:t,byline:n,bylineId:o,badge:s,iconLeading:l}){let c=(0,r.jsxs)(i(4458).VP,{alignItems:"flex-start",justifyContent:"flex-start",gap:4,children:[(0,r.jsxs)(i(4458).fI,{alignItems:"center",gap:6,children:[(0,r.jsx)(i(111010).D,{id:t,styleKey:i(139424).A.isMobile?"captionMedium":"bodyMedium",colorVariant:"primary",children:e}),s]}),n?(0,r.jsx)(i(111010).D,{id:o,styleKey:i(139424).A.isMobile?"captionSmRegular":"bodySmRegular",colorVariant:"secondary",style:{textWrap:"pretty"},children:n}):void 0]});return l?(0,r.jsxs)(i(4458).fI,{alignItems:"center",gap:12,width:"100%",children:[l,c]}):c}i.d(t,{j:()=>a})},336613(e,t,i){"use strict";let r,a;function n(e){r=e}function o(e){a=e}function s(){if(!r)throw Error("configureSubscriptionActions() must be called before using subscription actions");return r}async function l(){if(!a)throw Error("configureSubscriptionActionsLazyDeps() must be called before loading lazy deps");return a()}i(533958),i.d(t,{N7:()=>l,NK:()=>n,NS:()=>o,XC:()=>s})},435276(e,t,i){"use strict";function r(e){return a({entrypoint:e,spaceStore:(0,i(972740).L)()})}function a(e){let{entrypoint:t,spaceStore:r}=e,a=(0,i(533992).v3)(),{spaceId:n,spaceName:o}=(0,i(579993).K8)(()=>r?{spaceId:r.getSpaceId(),spaceName:(0,i(742197).G)(a,r)}:{spaceId:void 0,spaceName:void 0},[a,r]),s=(0,i(579993).K8)(()=>n?i(663482).I.getVersionStore(n).state:0,[n]),[{value:l,status:c}]=(0,i(97668).Yb)(async()=>{if(!n)return;let e=await (0,i(273402).E)(a,n,t);if(e)return o&&(0,i(273402).Z)({environment:a,spaceName:o,campaign:e,entrypoint:t}),e},[a,n,o,t,s]);return{campaign:l,loading:"pending"===c||"idle"===c}}i.d(t,{V:()=>r,g:()=>a})},855021(e,t,i){"use strict";function r(){let e=(0,i(972740).L)(),t=(0,i(226309).lh)({spaceId:null==e?void 0:e.id}),r=(0,i(533992).v3)(),a=(0,i(579993).K8)(()=>i(375592).ExternalOrgDataStore.getData(r,{userId:r.currentUser.id||""}),[r]);return(0,i(579993).K8)(()=>(0,i(412459).V)({environment:r,spaceStore:e,billingData:t,externalOrgSummary:a}),[r,e,t,a])}i.d(t,{q:()=>r})},179175(e,t,i){"use strict";i.r(t),i.d(t,{UpgradeButton:()=>o}),i(635790);var r=i(440302);function a(e){var t;let{upgradeStatus:a,handleClick:n,size:o="default",width:s="fill",hoverRef:l,onMouseDown:c,upsell:u,featureName:d}=e,p=(0,i(327219).tz)(),f=(0,i(156139).e)(a),g=f.label.button({intl:p,upsell:u,featureName:d}),m=!!f.disabledTooltip,{animationState:h,animationTriggers:v}=(0,i(183999).lP)(l);return(0,r.jsx)(i(551942).T,{tooltipMessage:m&&!l?null==(t=f.disabledTooltip)?void 0:t.call(f,{intl:p,upsell:u,featureName:d}):void 0,children:(0,r.jsx)(i(548436).A,{...l?{}:v,disabled:m,hoveredStyle:l?{background:"unset"}:void 0,size:i(799236).lR[o],width:s,iconLeading:{...(0,i(183999).e4)({icon:f.icon({upsell:u}),animationState:h}),size:i(799236).Ud[o]},style:i(183999).y8,onClick:n,onMouseDown:c,children:g})})}function n(e){var t;let{upsell:a,upgradeStatus:n,handleClick:o,onMouseDown:s,featureName:l}=e,c=(0,i(327219).tz)(),u=(0,i(156139).e)(n),d=u.label.button({intl:c,upsell:a,featureName:l}),p=!!u.disabledTooltip;return(0,r.jsx)(i(551942).T,{tooltipMessage:p?null==(t=u.disabledTooltip)?void 0:t.call(u,{intl:c,upsell:a,featureName:l}):void 0,children:(0,r.jsx)(i(912946).j,{colorPalette:u.buttonColorPalette,disabled:p,size:i(799236).lR.default,onClick:o,onMouseDown:s,children:d})})}function o({source:e,upsell:t,featureName:s,hoverRef:l,onMouseDown:c,postUpgradeCallback:u,onClickBeforeUpgradeAction:d,spaceStore:p,...f}){let{upgradeEligibility:g,handleClick:m}=(0,i(619922).C)({upsell:t,source:e,buttonDisplayType:f.display,onClickBeforeUpgradeAction:d,postUpgradeCallback:u,spaceStore:p});if(!g||"not_eligible"===g.status&&"feature_not_upsellable"===g.reason)return null;switch(f.display){case"button":return(0,r.jsx)(a,{upgradeStatus:g.status,handleClick:m,upsell:t,featureName:s,hoverRef:l,onMouseDown:c,...f});case"icon":return(0,r.jsx)(i(740957).c,{upgradeStatus:g.status,handleClick:m,upsell:t,featureName:s,hoverRef:l,onMouseDown:c,...f});case"text":return(0,r.jsx)(i(268627).c,{upgradeStatus:g.status,handleClick:m,upsell:t,featureName:s,hoverRef:l,onMouseDown:c,...f});case"primary":return(0,r.jsx)(n,{upgradeStatus:g.status,handleClick:m,upsell:t,featureName:s,onMouseDown:c,...f})}}},555676(e,t,i){"use strict";let r;function a(e){r=e}function n(){return r}i.d(t,{w:()=>a,x:()=>n})},725187(e,t,i){"use strict";i(635790);var r=i(440302);function a({colorPalette:e,colorVariant:t,size:o,children:s}){return(0,r.jsx)(i(111010).D,{style:{display:"contents"},colorPalette:e,colorVariant:t,styleKey:n[o],children:s})}let n={small:"captionMedium",default:"bodyMedium",large:"bodyMedium"};i.d(t,{W:()=>a})},740957(e,t,i){"use strict";i(635790);var r=i(440302);let a={padding:1};function n(e){var t;let{upsell:n,upgradeStatus:s,handleClick:l,customMessages:c,showPlanName:u,onMouseDown:d,hoverRef:p,featureName:f}=e,g=(0,i(327219).tz)(),m=(0,i(156139).e)(s),{productName:h,upgradePhrase:v}=(0,i(327506).n)({upsell:n,intl:g,featureName:f,upgradeStatus:s}),_=null!=c&&c[s]?g.formatMessage(c[s],{...(0,i(426458).I)(e=>(0,r.jsx)(i(725187).W,{...m.highlightText,size:"small",children:e})),productName:h,upgradePhrase:v,...c[s].interpolatedValues}):m.label.icon({intl:g,upsell:n,featureName:f}),b=u?e.iconAlignment??"left":"left",{animationState:y,animationTriggers:w}=(0,i(183999).lP)(p);return(0,r.jsx)(i(551942).T,{tooltipMessage:p?void 0:(null==(t=m.disabledTooltip)?void 0:t.call(m,{intl:g,upsell:n,featureName:f}))??_,children:(0,r.jsx)(i(988022).p,{...p?{}:w,disabled:!!m.disabledTooltip,hoveredStyle:p?{background:"unset"}:void 0,size:"xs",style:{gap:4*!!u}
1,iconLeading:"left"===b?{...(0,i(183999).e4)({icon:m.icon({upsell:n}),animationState:y}),size:"xs"}:void 0,iconTrailing:"right"===b?{...(0,i(183999).e4)({icon:m.icon({upsell:n}),animationState:y}),size:"xs"}:void 0,onClick:l,onMouseDown:d,children:u&&h?(0,r.jsx)("span",{style:a,children:(0,r.jsx)(i(725187).W,{...m.highlightText,size:"small",children:"product"===n.type&&"ai_credit_pack"===n.product?g.formatMessage(o.credits):h})}):null})})}let o=(0,i(327219).YK)({credits:{id:"upgradeIconButton.credits",defaultMessage:"Credits"}});i.d(t,{c:()=>n})},268627(e,t,i){"use strict";var r=i(635790),a=i(440302);function n(e){let{upsell:t,upgradeStatus:n,handleClick:o,customMessages:s,size:l="default",width:c="hug",onMouseDown:u,hoverRef:d,hideIcon:p,featureName:f}=e,g=(0,i(327219).tz)(),m=(0,i(156139).e)(n),h=r.useRef(null),v=(0,i(729787).wY)(h),_=e.textColor??("small"===l?"secondary":"primary"),b={...i(183999).y8,..."small"===l?{paddingInlineStart:4,paddingInlineEnd:4,gap:4}:{gap:6}},y=e=>(0,a.jsx)(i(725187).W,{...m.highlightText,size:l,children:e}),{productName:w,upgradePhrase:x}=(0,i(327506).n)({upsell:t,intl:g,featureName:f,upgradeStatus:n}),S=null!=s&&s[n]?g.formatMessage(s[n],{...(0,i(426458).I)(y),productName:w,upgradePhrase:x,...s[n].interpolatedValues}):m.label.text({intl:g,upsell:t,featureName:f,renderTextHighlight:y}),k=!!m.disabledTooltip,{animationState:I,animationTriggers:M}=(0,i(183999).lP)(d);return(0,a.jsx)(i(988022).p,{...d?{}:M,ref:h,disabled:k&&!d,hoveredStyle:d?{background:"unset"}:void 0,size:i(799236).kD[l],width:c,onMouseDown:u,iconLeading:p?void 0:{...(0,i(183999).e4)({icon:m.icon({upsell:t}),animationState:I}),size:i(799236).D6[l],style:{...null!=v&&v.height&&v.height>i(399411).RO[i(799236).kD[l]]?{alignSelf:"flex-start",marginTop:2}:{}}},style:b,onClick:o,children:(0,a.jsx)(i(111010).D,{colorVariant:_,children:S})})}i.d(t,{c:()=>n})},426458(e,t,i){"use strict";function r(e){return{highlight:e,bold:e}}i.d(t,{I:()=>r})},183999(e,t,i){"use strict";var r=i(635790);function a({icon:e,animationState:t}){return"animated"===e.type?{type:"animated",icon:e.iconFn,colorPalette:e.colorPalette,colorVariant:e.colorVariant??"primary",animationState:t}:{type:"static",icon:e.iconFn,colorPalette:e.colorPalette,colorVariant:e.colorVariant??"primary"}}function n(e){let[t,i]=r.useState("initial");return r.useEffect(()=>{let t=null==e?void 0:e.current;if(!t)return;let r=()=>i("animate"),a=()=>i("initial");return t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",a),()=>{t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",a)}},[e]),{animationState:t,animationTriggers:{onMouseEnter:()=>i("animate"),onMouseLeave:()=>i("initial")}}}i.d(t,{e4:()=>a,lP:()=>n},{y8:{minHeight:"fit-content",textWrap:"pretty"}})},373196(e,t,i){"use strict";function r(e){var t;let{kind:r,source:a,billingData:n,environment:o,spaceStore:s,upsell:l,product:c,eligibility:u,buttonDisplayType:d,featureName:p,userId:f}=e,g=c??((null==l?void 0:l.type)==="product"?l.product:void 0);(0,i(208318).t)().log({level:"warning",from:"logUpgradeSystemFailure",type:"upgrade_system_failure",spaceId:null==s?void 0:s.id,data:{userId:f,failureKind:r,entrypoint:a,featureName:p,buttonDisplayType:d,upsellType:null==l?void 0:l.type,productId:g,eligibilityStatus:null==u?void 0:u.status,eligibilityReason:u&&"reason"in u?u.reason:void 0,billingProvider:null==n?void 0:n.provider,subscriptionProvider:null==n||null==(t=n.subscription)?void 0:t.provider,subscriptionTier:n?(0,i(991394).AI)(n):void 0,hasAiAddOn:n?(0,i(991394).eh)(n,"ai"):void 0,isSalesAssisted:n?(0,i(991394).N8)(n):void 0,deviceType:null==o?void 0:o.device.deviceType,isMobileBrowser:null==o?void 0:o.device.isMobileBrowser}})}i.d(t,{C:()=>r})},619922(e,t,i){"use strict";i.d(t,{C:()=>a});var r=i(635790);function a({upsell:e,source:t,buttonDisplayType:n,onClickBeforeUpgradeAction:o,postUpgradeCallback:s,postTrialStartCallback:l,spaceStore:c}){let u=(0,i(533992).v3)(),d=(0,i(855021).q)(),p=(0,i(226309)._3)({spaceId:null==c?void 0:c.id}),f=(0,i(345776).T)(),{campaign:g,loading:m}=(0,i(435276).V)(t),[h,v]=function(e){let{upsell:t}=e,a=(0,i(533992).v3)(),n=(0,i(972740).L)(),o=(0,i(993077).U2)(),s=null==n?void 0:n.id,l=(0,i(345776).T)(),c=(0,i(226309).lh)({spaceId:s}),u=(null==t?void 0:t.type)==="product"?t.product:void 0,d=(0,i(579993).K8)(()=>
1{if(s)return i(477870).L.getData(a,{spaceId:s})},[a,s]),p=(0,i(579993).K8)(()=>(0,i(966458).Jg)({product:u,userId:l,billingData:c,spaceStore:n,spaceUserStore:o,existingRequests:d}),[u,l,c,n,o,d]),[f,g]=(0,r.useState)(p);return(0,r.useEffect)(()=>{g(p)},[p]),[f,g]}({upsell:e??{type:"none"}}),_=(0,i(579993).K8)(()=>e?(0,i(96495).a)({environment:u,upsell:e,spaceStore:c,salesStatus:d,campaign:g,requestState:h,billingData:p,source:t,loading:m}):{status:"not_eligible",reason:"feature_not_upsellable"},[c,u,e,d,g,h,p,t,m]),b=(0,r.useCallback)(async()=>{if(!e)return void(0,i(373196).C)({kind:"missing_upsell",source:t,billingData:p,environment:u,spaceStore:c,eligibility:_,buttonDisplayType:n,userId:f});let r="product"===e.type?e.product:void 0,a=(0,i(555676).x)();if(!a)return void(0,i(373196).C)({kind:"missing_loader",source:t,billingData:p,environment:u,spaceStore:c,upsell:e,product:r,eligibility:_,buttonDisplayType:n,userId:f});let[,{getUpgradeSystemAction:d}]=await Promise.all([null==o?void 0:o(),a()]),m=d(_);await m({source:t,spaceStore:c,product:r,billingData:p,environment:u,setRequestState:v,userId:f,buttonDisplayType:n,postUpgradeCallback:s,postTrialStartCallback:l,campaign:g,isEligibleForAgentBusinessTrial:(0,i(48697).Xk)(i(90416).zL,t)&&"product"===e.type&&"preferred"===e.trialability})},[e,o,_,t,c,p,u,v,f,n,s,l,g]);return{upgradeEligibility:_,handleClick:b}}},799236(e,t,i){"use strict";i.d(t,{},{D6:{small:"xxs",default:"sm"},Ud:{small:"xs",default:"sm",large:"sm"},kD:{small:"xs",default:"sm"},lR:{small:"md",default:"lg",large:"xl"}})},274290(e,t,i){"use strict";i.r(t),i.d(t,{FETCHABLE_TEAM_TYPES:()=>n,fetchJoinedTeamsAfterTeamspaceCreated:()=>c,fetchUnfetchedTeams:()=>s,fetchUnfetchedTeamsFromLocalStorage:()=>u,getActiveTeamsMetadataForUserInSpace:()=>p,getAllTeamsMetadataForUserInSpace:()=>f,getTeamStore:()=>g,refetchTeams:()=>l}),i(499468),i(586042),i(169187),i(726090),i(132457),i(219390),i(73168),i(730330),i(976614);var r=()=>i(988752);let a=new(i(246382)).R({key:"localStorageTeams",namespace:i(274919).Bq,important:!1,trackingType:"preference"}),n=["Joined","UnjoinedActive","Archived"];async function o(e){let{userId:t,spaceId:n,teamTypesToUpdate:o,teamIdsToUpdate:s,environment:l,canTruncateRecordMap:c,sort:u}=e,d=r().E.getOrCreateUnit(t,n);if(0===o.size||"all"!==s&&0===s.size)return void await d.pendingUpdates;let p=(0,i(828559).F)({actorUserId:t,targetUserId:t,spaceId:n,teamTypes:o,teamIds:s,environment:l,canTruncateRecordMap:c,sort:u});r().E.queueUpdateForSpaceUser({userId:t,spaceId:n,fetchedTeamsPromise:p,fetchedTeamsSource:"server",teamTypesToUpdate:o,teamIdsToUpdate:s}),await d.pendingUpdates,function(e){let{userId:t,spaceId:r,teamsResponse:n}=e;if(!i(218744).default.checkGate({gateName:"teams_local_storage_write"}))return;let{teams:o}=n,s=o.filter(e=>"Joined"===e.type),l=o.filter(e=>"UnjoinedActive"===e.type),c=o.filter(e=>"Archived"===e.type),u=s.concat(l,c).slice(0,1e3);a.update(e=>({...e??{},[t]:{...(null==e?void 0:e[t])??{},[r]:{...n,teams:u}}}))}({userId:t,spaceId:n,teamsResponse:{teams:Object.values(d.teams),hasUnjoinedActiveTeams:d.hasUnjoinedActiveTeams}})}async function s(e){let{userId:t,spaceId:i,teamTypes:a,environment:n,canTruncateRecordMap:s,sort:l}=e,c=r().E.getOrCreateUnit(t,i),u=new Set(Array.from(a.values()).filter(e=>"server"!==c.lastFetchSourceOfTeamType[e]));await o({userId:t,spaceId:i,teamTypesToUpdate:u,teamIdsToUpdate:"all",environment:n,canTruncateRecordMap:s,sort:l})}async function l(e){let{userId:t,spaceId:i,teamIds:a,environment:s}=e,l=r().E.getOrCreateUnit(t,i),c=new Set(n.filter(e=>"server"===l.lastFetchSourceOfTeamType[e]));await o({userId:t,spaceId:i,teamTypesToUpdate:c,teamIdsToUpdate:a,environment:s})}async function c(e){let{userId:t,spaceId:i,environment:r}=e;await o({userId:t,spaceId:i,teamTypesToUpdate:new Set(["Joined"]),teamIdsToUpdate:"all",environment:r})}function u(){let e=a.getState();for(let t in e)for(let i in e[t]){let a=r().E.getOrCreateUnit(t,i),o=new Set(n.filter(e=>"none"===a.lastFetchSourceOfTeamType[e]));0!==o.size&&r().E.queueUpdateForSpaceUser({userId:t,spaceId:i,fetchedTeamsPromise:Promise.resolve(e[t][i]),fetchedTeamsSource:"local",teamTypesToUpdate:o,teamIdsToUpdate:"all"})}}async function d(e){let{userId:t,spaceStore:i,teamTypes:a,environment:n}=e;return await s({userId:t,spaceId:i.id,teamTypes:a,environment:n}),r().E.readTeams(t,i.id,a).teams}async function p(e){let{userId:t,spaceStore:i,environment:r}=e;return await d({userId:t,spaceStore:i,teamTypes:new Set(["Joined","UnjoinedActive"]),environment:r})}async function f(e){let{userId:t,spaceStore:i,environment:r}=e;return await d({userId:t,spaceStore:i,teamTypes:new Set(["Joined","UnjoinedActive","Archived"]),environment:r})}function g(e){let{teamId:t,spaceStore:r}=e;return i(681735).h.createChildStore(r,{table:"team",id:t})}},828559(e,t,i){"use strict";async function r(e){let{actorUserId:t,targetUserId:r,spaceId:a,teamTypes:n,teamIds:o,environment:s}=e;if(!(0,i(422280).GL)({actorUserId:t,targetUserId:r,teamTypes:n}))throw new(i(101787)).qQ("User does not have permission to fetch team
1s for another user.");let l=await (0,i(576231).h)({eventName:"getTeamsV2",environment:s,data:{spaceId:a,teamTypes:Array.from(n),teamIds:"all"===o?void 0:Array.from(o),sort:e.sort,canTruncateRecordMap:e.canTruncateRecordMap,includeMembershipSummary:!1,targetUserId:r},userId:t,cellNavigation:{cellId:void 0,recordId:void 0,spaceId:a}});if("failed"===l.type)throw l.error;let{teams:c,hasUnjoinedActiveTeams:u}=l.data;return{teams:c,...void 0!==u&&{hasUnjoinedActiveTeams:u}}}i.d(t,{F:()=>r})},516552(e,t,i){"use strict";var r=()=>i(681735),a=()=>i(422280),n=()=>i(967883);function o(e){let{userId:t,store:o}=e,s=o.getSpaceStore();if(!s)return;let l=i(412951).RecordMap.create();for(let e of(0,i(625925).E)(o))l.setModel(e.pointer,e);let c=new(i(412951)).RecordValueMap;for(let e of(0,i(342484).x6)({recordMapFromWhichToFindRelevantEntities:l,teamMemberships:c}).relevantTeamIds.get(s.id)??[]){let i=(0,a().KF)(e,s.id),o=(0,n().Q)(r().h.createChildStore(s,i));if(void 0===o)return;c.set(i,"owner"===o||"member"===o?[{entity_type:"user",user_id:t,type:o}]:[])}return c}i.d(t,{F:()=>o})},138169(e,t,i){"use strict";i(730330),i(976614),i(139583),i(159952);var r=i.n(i(298519)),a=i(635790);function n({sections:e,filterQuery:t}){return(0,a.useMemo)(()=>e.map(e=>(function(e,t){let{items:i,...a}=e;if(!t)return e;let n=i.filter(e=>e.keywords.find(e=>r().match(t,e)));return n.length>0?{...a,items:n}:void 0})(e,t)).filter(i(48697).O9),[t,e])}i.d(t,{m:()=>n})},739271(e,t,i){"use strict";var r=i(635790);function a(){let[e,t]=(0,r.useState)({inputElementAttributes:void 0,suppressFocusRing:!1}),[i,a]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(i){function e(){o(!1)}function t(e){("ArrowDown"===e.key||"ArrowUp"===e.key)&&o(!0)}return window.addEventListener("pointerdown",e),window.addEventListener("keydown",t),()=>{window.removeEventListener("pointerdown",e),window.removeEventListener("keydown",t)}}},[i]),[(0,r.useMemo)(()=>({inputElementAttributes:e.inputElementAttributes,suppressFocusRing:e.suppressFocusRing&&n,onFocus:()=>{a(!0)},onBlur:()=>{a(!1)}}),[e.inputElementAttributes,e.suppressFocusRing,n]),(0,r.useMemo)(()=>({setComboboxState:t,isFocusVisible:n,isComboboxFocused:i,onItemHover:()=>{o(!1)}}),[n,i])]}i.d(t,{s:()=>a})},636255(e,t,i){"use strict";var r=i(635790),a=i(440302);function n({children:e,onChange:t,horizontal:o,style:s}){let l=(0,r.useRef)(null),c=(0,r.useRef)(0),u=(0,r.useRef)(0);return(0,r.useEffect)(()=>{let e=l.current;if(!e)return;let r=(0,i(54503).NM)(e);if(r){function a(){return(null==r?void 0:r.scrollTop)||0}function n(){if(o){let i=function(){if(!e||!r)return 0;{let t=e.getBoundingClientRect(),i=r.getBoundingClientRect(),{scrollLeft:a,scrollWidth:n}=r,o=t.left+t.width+a-i.left,s=a+i.width;return n-t.width-(s-o)}}(),n={offsetFromTop:a()};i!==u.current&&(u.current=i,t(i,n))}else{let i=function(){if(!e||!r)return 0;{let t=e.getBoundingClientRect(),i=r.getBoundingClientRect(),{scrollTop:a}=r;return t.top+t.height+a-i.top-(a+i.height)}}(),n={offsetFromTop:a()};i!==c.current&&(c.current=i,t(i,n))}}n();let s=(0,i(960408).nF)(function(e){n()},50);return(0,i(166027).P)({el:r,eventName:"scroll",callback:s}),()=>{(0,i(260244).O)({el:r,eventName:"scroll",callback:s})}}},[o,t]),(0,a.jsx)("div",{...i(398276).A.props(s),ref:l,children:e})}i.d(t,{F:()=>n})},314084(e,t,i){"use strict";i(635790);var r=i(440302);let a={kVAEAm:"x1n2onr6",$$css:!0};function n(e){let{children:t,footer:n,header:o,showDismissButton:s=!0,sizeRange:l,gap:c=24}=e;return(0,r.jsxs)(i(4458).VP,{paddingBlock:20,minHeight:null==l?void 0:l.minHeight,maxHeight:null==l?void 0:l.maxHeight,minWidth:null==l?void 0:l.minWidth,maxWidth:null==l?void 0:l.maxWidth,gap:c,style:a,className:"autolayout-fill-width",children:[(0,r.jsx)("div",{className:"xexx8yu x1xnnf8n x18d9i69 x106a9eq",children:o}),t?(0,r.jsx)("div",{...{className:"x78zum5 x1iyjqo2 x6ikm8r x10wlt62"},children:(0,r.jsx)("div",{className:"x78zum5 x1iyjqo2 x1nn3v0j x1xnnf8n x1120s5i x106a9eq x1odjw0f",children:t})}):null,n?(0,r.jsx)("div",{className:"xr1yuqi xexx8yu x1xnnf8n x18d9i69 x106a9eq",children:n}
1):null,s?(0,r.jsx)(i(226512).R,{}):null]})}i.d(t,{t:()=>n})},211300(e,t,i){"use strict";i(159952);var r=i(635790),a=i(440302);function n({ariaLabel:e,onSelect:t,selectedIndex:r,shouldWrap:s,tabIdPrefix:l,tabs:c}){return(0,a.jsx)(i(943019).Y,{direction:"horizontal",children:(0,a.jsx)("div",{role:"tablist","aria-label":e,className:"hide-scrollbar",...{0:{className:"x78zum5 xw2csxc x1yrsyyn x1icxu4v x10b6aqq x25sj25 xifccgj x1ws5yxj x4cne27 xw01apr xw09woa xmixu3c hide-scrollbar"},1:{className:"x78zum5 xw2csxc x1yrsyyn x1icxu4v x10b6aqq x25sj25 xifccgj x1ws5yxj x4cne27 xw01apr xw09woa xmixu3c x1a02dak hide-scrollbar"}}[0|!!s],children:c.map((e,i)=>(0,a.jsx)(o,{index:i,isSelected:r===i,onSelect:t,tab:e,tabIdPrefix:l},i))})})}function o({index:e,isSelected:t,onSelect:n,tab:s,tabIdPrefix:l}){let{isTabbable:c,itemRef:u,onKeyDown:d,onFocus:p}=(0,i(943019).e)(),{label:f,onClick:g,onKeyDown:m,onFocus:h,...v}=s,_=(0,r.useCallback)(e=>{u(e)},[u]),b=(0,r.useCallback)(t=>{null==g||g(t),n(e)},[g,n,e]),y=(0,r.useCallback)(e=>{null==m||m(e),d(e)},[m,d]),w=(0,r.useCallback)(e=>{null==h||h(e),p()},[h,p]);return(0,a.jsx)(i(988022).p,{colorVariant:t?void 0:"secondary",isEmphasized:!0,shape:"pill",...v,"aria-controls":(0,i(380521).J)(l,e),"aria-selected":t,disallowTabbing:!c,id:(0,i(380521).v)(l,e),isSelected:t,onClick:b,onFocus:w,onKeyDown:y,ref:_,role:"tab",children:f})}i.d(t,{V:()=>n})},380521(e,t,i){"use strict";function r(e,t){if(e)return`${e}-tab-${t}`}function a(e,t){if(e)return`${e}-tabpanel-${t}`}i.d(t,{J:()=>a,v:()=>r})},540336(e,t,i){"use strict";i(159952);var r=i(635790),a=i(440302);let n={kORKVm:"xryxfnj",kXHlph:"xw2csxc",k1xSpc:"x78zum5",kzqmXN:"xh8yej3",kVAEAm:"x1n2onr6",$$css:!0},o={kGVxlE:"xx4f2qb",$$css:!0},s={kGuDYH:"xif65rj",kZCmMZ:"xmzvs34",kwRFfy:"xf159sx",kY2c9j:"x1vjfegm",$$css:!0},l={kGuDYH:"x1j61zf2",kLKAdn:"x1nn3v0j",kY2c9j:"xhtitgo",kZKoxP:"xn3w4p2",kC7eKd:"x1mmz80m",$$css:!0},c={kZCmMZ:"xf7dkkf",kwRFfy:"xv54qhq",$$css:!0},u={kLKAdn:"x1yrsyyn",kGO01o:"x10b6aqq",khDVqt:"xuxw1ft",k7Eaqz:"xeuugli",kmuXW:"x2lah0s",kMwMTN:"x1b8rd1j",$$css:!0},d={kVAEAm:"x1n2onr6",$$css:!0},p={k4EQJz:"xkaiwgt",kVAEAm:"x10l6tqk",krVfgx:"x1ey2m1c",kLqNvP:"xrotz4w",kt4wiu:"x11dcrhx",$$css:!0},f={k1xSpc:"x78zum5",kzQI83:"x1iyjqo2",$$css:!0},g={selectedTab:{color:i(632079).Tj.text.primary}};function m(e,t){if(e)return`${e}-tab-${t}`}function h(e,t){if(e)return`${e}-tabpanel-${t}`}let v=r.memo(function({tabs:e,selectedIndex:t,onChange:v,right:_,style:b,tabStyle:y,tabTitleStyle:w,selectedTabTitleStyle:x,tabBorderStyle:S,selectedTabStyle:k,readOnly:I,hideTabBorder:M,idPrefix:T}){let C=(0,r.useContext)(i(649476).xu),P=(0,i(51487).Y5)("left",16),A=(0,i(51487).Y5)("right",16),j=C.menuType===i(649476).gu.Popup;return(0,a.jsxs)("div",{...i(398276).A.props(n,!M&&o,i(139424).A.isMobile?[l,j?c:((e,t)=>[{kZCmMZ:null!=e?"xnvo3vl":e,kwRFfy:null!=t?"x120eax6":t,$$css:!0},{"--x-paddingInlineStart":"number"==typeof e?e+"px":null!=e?e:void 0,"--x-paddingInlineEnd":"number"==typeof t?t+"px":null!=t?t:void 0}])(P,A)]:s,b,{$$css:!0,className:"hide-scrollbar"}),children:[(0,a.jsx)("div",{role:"tablist",...i(398276).A.props(f,"object"==typeof b&&b&&"flexDirection"in b&&{flexDirection:b.flexDirection}),children:e.map((e,n)=>{let o=n===t;return(0,a.jsx)(r.Fragment,{children:(0,a.jsxs)("div",{...i(398276).A.props(u,y,o&&d,o&&g.selectedTab,o&&k),children:[(0,a.jsx)(i(988022).p,{role:"tab",style:[w,o&&x],onClick:()=>v(n),disabled:I,"aria-selected":o,id:m(T,n),"aria-controls":h(T,n),colorPalette:o?void 0:"gray",children:e}),o?(0,a.jsx)("div",{...i(398276).A.props(p,S)}):void 0]},`tabButton-${n}`)},n)})}),_?(0,a.jsx)("div",{className:"x1iyjqo2 x78zum5 x6s0dn4 x13a6bvl x1b8rd1j",children:_}):void 0]})});i.d(t,{Jy:()=>h,vU:()=>m},{LZ:v})},517215(e,t,i){"use strict";let r=new(i(246382)).R({key:"spacedScopedUserChatPreference",namespace:i(274919).Bq,important:!0,trackingType:"necessary"});function a(e,t){let i=r.getState();r.setState({...i,[e]:{...null==i?void 0:i[e],...t}})}i.d(t,{O:()=>a},{C:r})},318329(e,t,i){"use strict";var r=()=>i(546605);function a(){return{currentScreen:"none",status:"not_started",isBackendConnected:!1,externalSourceName:void 0,emailAddresses:[],sessionId:i(92513).JW(),analyticsFrom:"unknown",isConnected:!1,isPersonalAuthComplete:!1,isDisconnecting:!1,isLoaded:!1,isNotionMailProhibited:!1}}class n extends r().Store{getInitialState(){return a()}startNewSetupSession(){this.setState({...this.state,sessionId:i(92513).JW()})}}let o=new n;(0,i(202146).exposeDebugValue)("notionMailAIConnectorStore",o),i.d(t,{K_:()=>a},{Lf:o})},326190(e,t,i){"use strict";i(63224);let r=(0,i(327219).YK)({providerError:{id:"aiImage.error.providerError",defaultMessage:"Unable to generate image right now. Please try again."},allProvidersFailed:{id:"aiImage.error.allProvidersFailed",defaultMessage:"Image generation is temporarily unavailable. Please try again later."}
1,invalidModel:{id:"aiImage.error.invalidModel",defaultMessage:"The requested model is not available."},contentPolicyViolation:{id:"aiImage.error.contentPolicyViolation",defaultMessage:"This prompt violates our content policy. Please try a different description."},rateLimitExceeded:{id:"aiImage.error.rateLimitExceeded",defaultMessage:"Youâve reached the limit on image generations. Please try again later."},invalidRequest:{id:"aiImage.error.invalidRequest",defaultMessage:"Invalid request. Please check your input and try again."},defaultError:{id:"aiImage.error.default",defaultMessage:"Failed to generate image. Please try again."}});async function a({environment:e,prompt:t,spaceId:i,size:r,n,blockPointer:o,source:s}){try{let a=await e.api.callCellCompatibleApi({eventName:"generateAiImage",cellNavigation:{spaceId:i},environment:e,data:{prompt:t,spaceId:i,size:r,n,blockPointer:o,source:s}});if("failed"===a.type)return null;return a.data}catch(e){return null}}function n(e,t){(0,i(104310).u)({event:{eventName:"ai_generate_block_image",eventProperties:t}})}function o(e,t){(0,i(104310).u)({event:{eventName:"ai_edit_block_image",eventProperties:t}})}function s(e,t){(0,i(104310).u)({event:{eventName:"ai_image_generation_attempt_complete",eventProperties:t}})}function l(e){return"u">typeof navigator&&!1===navigator.onLine?"offline":e}function c(e,t){switch(e){case"PROVIDER_ERROR":case"PROVIDER_EXCEPTION":return i(962299).A.formatMessage(r.providerError);case"ALL_PROVIDERS_FAILED":return i(962299).A.formatMessage(r.allProvidersFailed);case"INVALID_MODEL":return i(962299).A.formatMessage(r.invalidModel);case"CONTENT_POLICY_VIOLATION":return i(962299).A.formatMessage(r.contentPolicyViolation);case"RATE_LIMIT_EXCEEDED":return i(962299).A.formatMessage(r.rateLimitExceeded);case"CREDIT_LIMIT_EXCEEDED":{let{message:e,values:r}=(0,i(55953).e)(t);return i(962299).A.formatMessage(e,r)}case"INVALID_REQUEST":return i(962299).A.formatMessage(r.invalidRequest);default:return i(962299).A.formatMessage(r.defaultError)}}async function u(e){let{environment:t,spaceId:r,prompt:a,source:o,style:s}=e,l=Date.now();n(t,{source:o,duration_ms:0,status:"start"});let c=i(674880).bX.state;if(!c)return;let{spaceStore:u,userStore:d}=c,p=(0,i(86089).getWorkflowAgentConfig)({environment:t,writerMode:!1,useWebSearch:!0,searchScopes:[],useReadOnlyMode:!0,model:"oatmeal-cookie",modelFromUser:!1}),f=s&&"default"!==s?`Create this in a ${s} style: `:"",g=(0,i(247438).x9d)(f+a),m=(0,i(674880).Jv)({environment:t,spaceStore:u,userStore:d,promptType:"generate_image_prompt",value:g,locale:i(962299).A.intl.locale}),h=(0,i(674880).Xd)({environment:t,inferenceContext:c,config:p,addSteps:[m],surface:"ai_block"}),v=(0,i(295447).Z1)({environment:t,table:i(832375).mSw,spaceId:r});try{let e=await (0,i(621347).g)({environment:t,data:{transcript:h,traceId:v,spaceId:r,generateTitle:!1,createdSource:"ai_block",isUserInAnySalesAssistedSpace:(0,i(598132).h0)(t),isSpaceSalesAssisted:(0,i(598132).lM)(t,r)}});if(e.error){let e=Date.now()-l;n(t,{source:o,duration_ms:e,status:"error",error_code:"prompt_enhancement_failed"});return}let a=e.value.findLast(e=>"agent-inference"===e.type);if(!a||"agent-inference"!==a.type)return;let{value:s}=(0,i(330942).ie)(a),c="";if("string"==typeof s)c=s;else if(Array.isArray(s))for(let e of s)"text"===e.type&&e.content&&(c+=e.content);let u=c.trim()||void 0;if(u){let e=Date.now()-l;n(t,{source:o,duration_ms:e,status:"prompt_enhancement_success"})}return u}catch(e){n(t,{source:o,duration_ms:Date.now()-l,status:"error",error_code:"prompt_enhancement_exception"});return}}async function d(e){let{prompt:t,environment:i,spaceId:r,size:n,n:o,source:s,style:l}=e,c=await u({environment:i,spaceId:r,prompt:t,source:s,style:l})??t,d=await a({environment:i,prompt:c,spaceId:r,size:n,n:o,source:s});return d?{...d,enhancedPrompt:c}:null}function p(e){let{environment:t,blockId:r,sentiment:a,additionalComments:n}=e,o=i(780311).q.getPhase(r);"feedback"!==o.phase||f({environment:t,blockId:r,spaceId:o.spaceId,sentiment:a,userPrompt:o.userPrompt,enhancedPrompt:o.enhancedPrompt??o.userPrompt,source:o.source,model:o.model,additionalComments:n})}async function f(e){let{environment:t,blockId:i,spaceId:r,sentiment:a,userPrompt:n,enhancedPrompt:o,source:s,model:l,additionalComments:c}=e;try{await t.api.callCellCompatibleApi({eventName:"saveAiImageFeedback",cellNavigation:{spaceId:r},environment:t,data:{blockId:i,spaceId:r,sentiment:a,userPrompt:n,enhancedPrompt:o,source:s,model:l,additionalComments:c}})}catch{}}i.d(t,{FK:()=>a,H9:()=>s,Rt:()=>n,Vl:()=>l,Wz:()=>p,a6:()=>d,g7:()=>o,ys:()=>c})},440605(e,t,i){"use strict";function r(e,t){return e.find(e=>e.presets.some(e=>e.uri===t))}i(730330),i(139583),i(765324),i.d(t,{B:()=>r})},580931(e,t,i){"use strict";i(635790);var r=i(440302);let a=(0,i(327219).YK)({saveFailed:{defaultMessage:"Couldnât save your automation changes. Please try again.",id:"automations.save.failedToast"}});function n(){i(819652).Iz({message:(0,r.jsx)(i(327219).sA,{...a.saveFailed}),variant:"error"})}i.d(t,{p:()=>n})},605263(e,t,i){"use strict";i(533958),i(953925),i(540679);var r=i(635790),a=i(440302);let n=(0,r.createContext)({ancestors:[]});function o(e){let{automationStore:t,children:o,contextType:s,collectionStore:l,collectionSettingsStore:c,collectionViewBlockStore:u,collectionViewStore:d,enableExistenceGuarantees:g}=e,m=(0,i(533992).v3)(),h=(0,i(327219).tz)(),{value:v}=(0,i(552709).fJ)(i(864850).T.formulas),{value:_}=(0,i(552709).fJ)(i(879267).QV.automationTypecheck),b=(0,i(470569).o)(t),y=(0,i(67499).S)(),w=(0,i(579993).K8)(()=>
1{if(v&&_)return function(e){let{environment:t,automationStore:r,automationTypecheckModule:a,contextType:n,formulasModule:o,intl:s,subscriptionInfo:l,pageStore:c,enableExistenceGuarantees:u}=e,d=u?p.get(r):p.get(r)??f.get(r);if(d)return d;let g=()=>{let e=r.getTriggerType(),d=n;return(0,i(48697).O9)(e)&&(0,i(432705).x2)(e)&&(d=(0,i(432705).H8)(e)),(0,i(100197).Z)({environment:t,automationStore:r,automationTypecheckModule:a,contextType:d,formulasModule:o,intl:s,subscriptionInfo:l,pageStore:c,enableExistenceGuarantees:u})},m=new(i(47824)).ComputedStore(g,{debugName:"automationContextTypecheckResultCachedStore",equalityFn:i(931576).n,recomputeSchedule:{type:"debounce",debounceMs:200,maxWait:750,trailing:!0,initialValue:g()}});return u&&p.set(r,m),f.set(r,m),m}({automationStore:t,automationTypecheckModule:_,contextType:s,environment:m,formulasModule:v,intl:h,subscriptionInfo:b,pageStore:"button_block"===s?null==y?void 0:y.pageStore:void 0,enableExistenceGuarantees:g})},[m,t,_,s,v,h,b,null==y?void 0:y.pageStore,g]),x=(0,r.useContext)(n),S=(0,r.useMemo)(()=>0===x.ancestors.length?[{automationStore:t,contextType:s,typecheckResultStore:w,collectionStore:l,collectionSettingsStore:c,collectionViewBlockStore:u,collectionViewStore:d}]:[...x.ancestors,{automationStore:t,contextType:s,typecheckResultStore:w,collectionStore:l,collectionSettingsStore:c,collectionViewBlockStore:u,collectionViewStore:d}],[x.ancestors,t,s,w,l,c,u,d]);(0,r.useEffect)(()=>{if(!w)return;let e=()=>{};return w.addListener(e),()=>w.removeListener(e)},[w]);let k=(0,r.useMemo)(()=>({ancestors:S,enableExistenceGuarantees:g}),[S,g]);return(0,a.jsx)(n.Provider,{value:k,children:o})}function s(){var e;let t,{typecheckResultStore:a}=c();return e=a,t=(0,i(579993).K8)(()=>null==e?void 0:e.getState(),[e]),(0,r.useMemo)(()=>t??{error:new(i(600005)).N9("Automation typecheck dependency is not ready")},[t])}function l(){var e;let t=null==(e=u())?void 0:e.typecheckResultStore;return(0,i(579993).K8)(()=>null==t?void 0:t.getState(),[t])}function c(){let e=(0,r.useContext)(n).ancestors.at(-1);if(!e)throw Error("No automation context found!");return e}function u(){return(0,r.useContext)(n).ancestors.at(-1)}function d(){return(0,r.useContext)(n).enableExistenceGuarantees}n.displayName="AutomationContext",n.Consumer;let p=new WeakMap,f=new WeakMap;function g(e){var t;return null==(t=p.get(e))?void 0:t.state}i.d(t,{K4:()=>u,To:()=>g,Uw:()=>l,fi:()=>d,q5:()=>s,q8:()=>c,u:()=>o})},117676(e,t,i){"use strict";function r(e){return e.offline||409===e.status||429===e.status||e.status>=500}i.d(t,{E:()=>r})},199894(e,t,i){"use strict";function r(e){let{environment:t,selection:r,transaction:a,preventSetSelection:n}=e,{blocks:o}=e,s=(0,i(385941).Z)();if(!s)throw Error("No root store.");if(r.length>0){let e=r[0],s=i(240414).T.find(t=>t.props.store===e&&t.props.canInsertAbove&&t.props.onInsertAbove);if(!s||!s.props.onInsertAbove)throw Error("No Selectable found.");let l=s.props.onInsertAbove({insertStores:o,transaction:a});return n||(0,i(967551).t)({environment:t,stores:l}),l}{let e=s.getContentStore(),r=o.map(t=>(0,i(33028).B)({parentStore:e,appendStore:t,transaction:a}).childStore);return n||(0,i(967551).t)({environment:t,stores:r}),r}}i(533958),i(730330),i(139583),i(159952),i.d(t,{t:()=>r})},210318(e,t,i){"use strict";i(533958),i(953925),i(540679),i(730330),i(139583),i(974864),i(159952);var r=()=>i(188993);function a(e){let t,{environment:a,tabId:n,blocksToInsert:o,target:s,transaction:l,replaceEmptyTextBlock:c,preventSetSelection:u}=e,d=(0,i(385941).Z)();if(!d){let{route:e}=a.RouterStore.state;(0,i(132702).Dk)(e)&&(d=s.at(0))}let p=d;if(!p)throw Error("No root store.");if(s.length>0){let e=s.at(-1),r=e;if(o.find(e=>e.isType("column_list"))){let t=null==e?void 0:e.findRecordStoreUIAncestor(e=>e&&e instanceof i(970831).B&&e.isType("column_list")).ancestor;t&&t instanceof i(970831).B&&(r=t)}let u=i(240414).T.find(e=>e.props.store===r&&e.props.canInsertBelow&&e.props.onInsertBelow);u&&u.props.onInsertBelow?(t=(0,i(960408).oE)(u.props.onInsertBelow({insertStores:o,transaction:l})),c&&e&&e.isEmptyTextBlock()&&(0,i(155953).Z)({environment:a,tabId:n,blocks:[e],transaction:l})):t=o.slice().reverse().map(e=>(0,i(61506).H)({parentStore:p.getContentStore(),prependStore:e,transaction:l}).childStore)}else if(p.isCollectionView()){let e=i(496704).K.findCollectionViewBlockFromStore(p);if(e){let i=e.collectionContextStore,n=i.collectionStore();if(n)for(let e of o)(0,r().j)({environment:a,store:e,collectionStore:n,
1collectionContextStore:i,shouldCoerce:!0,groupsPointer:[],transaction:l});t=[]}else throw Error("No collection view found.")}else{let e=p.getContentStore();t=o.map(t=>(0,i(33028).B)({parentStore:e,appendStore:t,transaction:l}).childStore)}return u||(t=t.flatMap(e=>e.isType("column_list")?e.getContentStores().flatMap(e=>e.getContentStores()):[e]),(0,i(967551).t)({environment:a,stores:t})),t}i.d(t,{L:()=>a})},432705(e,t,i){"use strict";function r(e){return"event"===e||"recurrence"===e}function a(e){let t=e.getTrigger();return(0,i(48697).O9)(t)&&r(t.type)}function n(e){return"event"===e?"event":"recurrence"===e?"recurrence":void(0,i(48697).HB)(e)}i.d(t,{$X:()=>a,H8:()=>n,x2:()=>r})},723732(e,t,i){"use strict";function r(e){let{environment:t,collectionViewBlockStore:r,collectionView:a,transaction:n,disableAppendingToCollectionViewBlock:o=!1}=e,s=i(918300).eC({environment:t,table:i(832375).Gy1,value:a,inMemoryRecordCache:r.inMemoryRecordCache,transaction:n}),l=i(547131).p.createChildStore(r,{table:i(832375).Gy1,id:s.id,spaceId:r.getSpaceId()});return o||(0,i(33028).B)({parentStore:r.getCollectionViewsStore(),appendStore:l,transaction:n}),l}i.d(t,{i:()=>r})},882257(e,t,i){"use strict";i(730330),i(976614);var r=()=>i(548831),a=()=>i(642157);function n(e){return(null==e?void 0:e.canEditCollection())??!1}async function o(e){await e.load(),await i(326904).lX(e.getAdditionalPropertyStores(),10,e=>e.load());let t={...e.getSchema()};if(e.canAdmin())return t;for(let i of e.getAdditionalPropertyStores()){let e=i.getModel(),n=i.getPropertyShortId();if(void 0===e||void 0===n){void 0!==n&&delete t[n];continue}if(!e.getAlive()){delete t[n];continue}let o=i.getRole();void 0!==o&&(0,a().p2)(o)&&!(0,r().rc)(e.getPermissionItems())||delete t[n]}return t}async function s(e){return await i(326904).lX(e,10,e=>e.load()),e.filter(n)}function l(e){let{store:t,environment:r,allowCollectionCreation:a,analytics:o}=e,s=(0,i(444610).U)(t),l=null==s?void 0:s.collectionViewBlockStore(),c=null==s?void 0:s.collectionViewStore(),u=null==c?void 0:c.getCollectionStore();if(void 0===u?!a:!n(u))return;let d=i(47797).A.getOrCreateFlowId();i(691968).fJ({import_source:"csv",from:o.from,data_source_session_id:o.dataSourceSessionId,data_source_from:o.dataSourceFrom,import_type:"file",flowId:d,userId:r.currentUser.id,spaceId:t.getSpaceId()}),i(523893).Z({importType:void 0===u?"import":"merge",spaceId:t.getSpaceId(),importLocation:null==u?void 0:u.id,parentId:t.id,parentTable:"block",collectionViewBlockStore:l,analyticsFrom:o.from})}i.d(t,{TD:()=>l,rN:()=>n,y2:()=>s,z5:()=>o})},18274(e,t,i){"use strict";i(635790);var r=i(440302);function a(e){return(0,r.jsx)(i(746434).E,{style:e.style,content:(0,r.jsx)(i(327219).sA,{id:"betaBadgeComponent.label",defaultMessage:"Beta"})})}i.d(t,{A:()=>a})},708239(e,t,i){"use strict";i(635790);var r=i(440302);i.d(t,{},{A:function(e){let{style:t}=(0,i(960253).I)(()=>({style:{display:"inline-block",textAlign:"center",color:e.disabled?i(632079).Tj.text.tertiary:i(632079).Tj.text.secondary,userSelect:"none",WebkitUserSelect:"none",width:8,...e.style}}),[e.disabled,e.style]);return(0,r.jsx)("div",{style:t,children:"·"})}})},90459(e,t,i){"use strict";i(730330),i(139583),i(159952);var r=i(635790),a=i(440302);function n(e){return(0,a.jsxs)(i(4458).fI,{alignItems:"center",gap:4,children:[e.icon,(0,a.jsx)(i(324489).V,{isSmall:e.isSmall,children:e.name})]})}let o={workspaceSelectorButton:{paddingTop:8,paddingBottom:8,paddingInlineStart:8,paddingInlineEnd:8,opacity:1,width:376,border:`1px solid ${i(713101).$.light.gray["100"]}`,justifyContent:"space-between",marginTop:8,marginBottom:8},teamspacePickerButton:{maxWidth:300},menuChevronDownIcon:{marginInlineStart:4},style0:{width:"100%",paddingTop:8,paddingBottom:2}};function s(e){let{onSelectOption:t,options:s,currentOption:l,placeHolder:u,initialFocus:d,menuProps:p,iconOnly:f,inputProps:g,searchThreshold:m,selectorButtonStyle:h}=e,[v,_]=(0,r.useState)(""),b=s.find(({key:e})=>e===l),y={..."workspace"===h?o.workspaceSelectorButton:{},..."teamspace"===h?o.teamspacePickerButton:{}};return(0,a.jsx)(i(656252).d,{popupType:i(656252).z.Popup,placementToOrigin:"bottom",alignmentToOrigin:e.alignmentToOrigin,originGap:4,content:e=>{let r=(0,a.jsx)(i(310324).Ay,{style:o.style0,onChange:e=>_(e.target.value),value:v,...g}),u={menuType:i(649476).gu.Popup,width:376,left:50,header:(0,i(48697).O9)(m)&&s.length>m?r:null,...p},f=s.map(({key:r,name:o,icon:s,searchTerm:c})=>({key:r,keywords:c??[],action:()=>{t(r),e.close()},render:e=>(0,a.jsx)(i(95582).A,{...e,title:(0,a.jsx)(n,{name:o,icon:s}),shouldWrapCaption:!0,isChecked:l===r})}));return(0,a.jsx)(c,{menuOptions:u,menuItems:f,filterQuery:v,initialFocus:d})},children:e=>(0,a.jsxs)(i(988022).p,{...e,style:{color:l?void 0:i(713101).$.light.gray["300"],...y},children:[(0,a.jsx)(i(324489).V,{style:{textOverflow:"ellipsis",fontSize:"14px",font:"SF Pro Text",color:l?void 0:"#ACABA9",lineHeight:"19.6px"},children:(f?null==b?void 0:b.icon:b&&(0,a.jsx)(n,{...b}))??u}),(0,a.jsx)(i(16275).I,{icon:i(595453).arrowChevronSingleDownSmallIcon,size:"xs",colorVariant:"secondary",style:o.menuChevronDownIcon})]})})}let l={position:"relative",alignItems:"flex-end"};function c({menuOptions:e,menuItems:t,filterQuery:r,initialFocus:n}){let o=(0,i(138169).m)({sections:[{key:"dropdown.menuList",items:t}],filterQuery:r||void 0});return(0,a.jsx)(i(747369).A,{...e,children:(0,a.jsx)(i(558045).A,{type:i(558045).O.Vertical,sections:o,initialFocus:n,style:l})})}i.d(t,{O:()=>n,r:()=>s})},200261(e,t,i){"use strict";i(635790);var r=i(440302);let a={display:"flex",justifyContent:"center",alignItems:"center",width:"100%"};i.d(t,{},{A:function(){return(0,r.jsx)(i(636518).A,{title:(0,r.jsx)(i(517334).k,{size:"default"}),titleStyle:a})}})},540358(e,t,i){"use strict";i(635790);var r=i(440302);function a(e){let{style:t}=e,a=(0,i(960253).I)(()=>({badge:{letterSpacing:0,whiteSpace:"nowrap",width:"fit-content",...t}}),[t]);return(0,r.jsx)(i(746434).E,{color:"blue",style:a.badge,content:(0,r.jsx)(i(327219).sA,{id:"newBadgeComponent.label",defaultMessage:"New"})})}i.d(t,{A:()=>a})},451199(e,t,i){"use strict";var r=i(635790),a=i(440302);let n=r.forwardRef(function({isSelected:e,radioButtonColor:t="blue"},r){let{radioButtonStyle:n,dotStyle:o}=(0,i(960253).I)(()=>{let r="blue"===t?i(632079).Tj.blue.icon.accentPrimary:i(632079).Tj.red.icon.accentPrimary;return{radioButtonStyle:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:16,height:16,borderRadius:16,marginInlineEnd:8,background:e?r:i(632079).Tj.whiteButtonBackgroun
1d,border:e?"none":`1px solid ${i(632079).Tj.border.strongTranslucent}`,transition:"background 100ms ease-out"},dotStyle:{width:6,height:6,borderRadius:6,background:i(632079).Tj.text.inversePrimary,transition:"opacity 100ms ease-out",opacity:+!!e}}},[e,t]);return(0,a.jsx)("div",{ref:r,style:n,children:(0,a.jsx)("div",{style:o})})});i.d(t,{},{A:n})},103558(e,t,i){"use strict";var r=i(635790),a=i(440302);let n=(0,i(327219).YK)({aiSkillBadge:{id:"recordMenuItem.aiSkillBadge",defaultMessage:"AI Skill"}}),o={marginInlineEnd:"4px"},s={flex:"0 0 auto"},l=r.forwardRef(function(e,t){let r,{store:l,placeholder:c,hidePath:u,caption:d,titlePrefix:p,isSubpage:f,showVerifiedPageBadge:g,showAiSkillBadge:v,inlineBadge:b,showTooltipOnOverflow:y,titleTruncation:w="end",titleTooltipPlacement:x,pathTooltipPlacement:S,tooltipOriginBoundary:k,minHeight:I,buttonStyle:M}=e,T=(0,i(327219).tz)(),C=(0,i(579993).K8)(()=>!d&&!u&&!(l instanceof i(681735).h)&&(0,i(307983).a6)(l),[d,u,l]),P=d||(C?(0,a.jsx)(i(307983).Ay,{store:l,showFullPathInTooltip:!0,enableHoverAncestor:void 0!==S,ancestorTooltipPlacement:S,ellipsisTooltipPlacement:S,tooltipOriginRectTransform:"menuItem"===k?h:void 0}):void 0),A=(0,i(579993).K8)(()=>g&&l instanceof i(970831).B?(0,i(843641).i1)(l).type:"none",[g,l]),j=(0,i(579993).K8)(()=>!!g&&l instanceof i(970831).B&&l.isArchived(),[g,l]),B=(0,i(579993).K8)(()=>v&&l instanceof i(970831).B&&l.isAiSkill(),[v,l]);if(j)r=(0,a.jsx)(i(16275).I,{icon:i(968793).j,size:"sm",colorPalette:"gray",colorVariant:"tertiary"});else switch(A){case"verified":r=(0,a.jsx)(i(16275).I,{icon:i(187627).badgeCheckFillSmallIcon,size:"sm",colorPalette:"blue",colorVariant:"accentPrimary"});break;case"expired":case"none":r=null;break;default:(0,i(48697).HB)(A)}let E=B?(0,a.jsx)(i(746434).E,{content:T.formatMessage(n.aiSkillBadge),color:"gray"}):null,R=(0,i(960253).I)(()=>({button:{...M,...I?{minHeight:I}:{}}}),[M,I]),D="center"===w?(0,a.jsx)(m,{store:l,tooltipPlacement:x,originRectTransform:"menuItem"===k?h:void 0}):(0,a.jsx)(i(627918).A,{store:l,placeholder:c,enableHover:y});return(0,a.jsx)(i(95582).A,{...e,buttonStyle:R.button,isTokenTitle:"center"===w||e.isTokenTitle,ignoreLocalHoverState:!1,ref:t,title:p?(0,a.jsxs)(i(4458).fI,{minWidth:"center"===w?0:void 0,width:"center"===w?"100%":void 0,children:[(0,a.jsxs)("div",{style:o,children:[p,":"]}),D]}):(0,a.jsxs)(i(4458).fI,{alignItems:"center",gap:4,minWidth:"center"===w?0:void 0,width:"center"===w?"100%":void 0,children:[D,r,E,b]}),icon:(0,a.jsx)(_,{store:l,isSubpage:f}),mobileIconStyle:s,caption:P,className:"notranslate"})}),c={position:"relative",flex:"1 1 0",width:"100%",maxWidth:"100%",minWidth:0,overflow:"hidden",whiteSpace:"nowrap"},u={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},d={visibility:"hidden"},p={position:"absolute",inset:0,display:"flex",overflow:"hidden",whiteSpace:"nowrap"},f={minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},g={flexShrink:0,maxWidth:"50%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function m({store:e,tooltipPlacement:t,originRectTransform:n}){let o=(0,i(533992).v3)(),s=(0,i(327219).tz)(),l=(0,r.useRef)(null),h=(0,i(833683).w)(l),v=(0,i(579993).K8)(()=>(0,i(112293).Qe)({store:e,intl:s,environment:o,disableInsertedAnnotations:!1})||(0,i(112293).gG)(e,s),[o,s,e]);if(!v)return null;let _=Math.min(Math.ceil(v.length/2),24),b=Math.max(0,v.length-_),y=v.slice(0,b),w=v.slice(b);return(0,a.jsx)(i(51831).m_,{placement:t??"right",originRectTransform:n,forceVisibleState:!!h&&void 0,content:()=>v,children:e=>(0,a.jsxs)("div",{style:c,...e,children:[(0,a.jsx)("div",{ref:l,style:{...u,...h&&d},children:v}),h?(0,a.jsxs)("div",{style:p,children:[(0,a.jsx)("span",{style:f,children:y}),(0,a.jsx)("span",{style:g,children:w})]}):void 0]})})}function h(e){if("function"!=typeof document.elementFromPoint)return e;let t=document.elementFromPoint(e.left+Math.min(e.width/2,1),e.top+Math.min(e.height/2,1)),i=null==t?void 0:t.closest('[role="menuitem"], [role="option"], [role="gridcell"]');return(null==i?void 0:i.getBoundingClientRect())??e}let v={style0:{marginInlineStart:4,marginInlineEnd:i(139424).A.isMobile?12:8}};function _({store:e,isSubpage:t}){let n=(0,i(533992).v3)(),o=i(139424).A.isMobile?24:20,s=(0,i(579993).K8)(()=>e instanceof i(360851).N?(0,i(514827).D)({workflowStore:e,workflowIcon:e.getRawIcon(),size:o,animated:!1}):e.getIcon(),[e,o]),l=(0,i(579993).K8)(()=>e instanceof i(970831).B&&e.isEmptyPage(),[e]),c=(0,i(579993).K8)(()=>(0,i(569553).Te)(e),[e]),u=(0,i(579993).K8)(()=>(function(e,t){switch(e.table){case"space":return(0,i(742197).G)(t,e);case"team":return e.getName();default:return}})(e,n),[n,e]);return t?(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)(i(16275).I,{icon:i(623261).F,colorVariant:"tertiary",size:"xs",style:v.style0}),(0,a.jsx)(i(569553).B6,{disabled:!0,icon:s,iconRecordCategory:c,isEmptyPage:l,title:u,size:o})]}):(0,a.jsx)(i(569553).B6,{disabled:!0,icon:s,iconRecordCategory:c,isEmptyPage:l,title:u,size:o})}i.d(t,{K:()=>h},{A:l})},307983(e,t,i){"use strict";
1i(730330),i(976614),i(159952),i(765324),i(635790);var r=i(440302);let a={paddingInlineStart:4,paddingInlineEnd:4};function n(e,t){let r=(0,i(399348).f)(e,{includeDataSources:!0});return r.reverse(),r.filter(r=>r.id!==e.id&&("team"===r.table?!(null!=t&&t.hideTeam):!(e instanceof i(356912).m&&"block"===r.table&&r.getOwnedCollectionStores().some(t=>t.id===e.id)&&(r.getCollectionStoreIfSingleSource()||null!=t&&t.hideMultiSourceParentCVB))&&!(r instanceof i(360851).N)))}function o(e){return n(e).length>0}let s={display:"flex"};function l({style:e}){return(0,r.jsx)("span",{style:e,children:"/"})}function c({handlers:e}){return(0,r.jsx)("div",{...e,children:"..."},"ellipsis")}function u({innerStyle:e}){return(0,r.jsx)(l,{style:{...a,...e}})}function d({innerStyle:e,tooltipDividerStyle:t}){return(0,r.jsx)(l,{style:{...a,...e,...t}})}function p(e){return{fontSize:i(139424).A.isMobile?i(699422).J.UISmall.mobile:i(699422).J.UISmall.desktop,color:e??i(632079).Tj.text.tertiary,overflow:"hidden"}}function f({store:e,textColor:t,innerStyle:a,isLink:n,onClick:o,highlighter:s,enableHoverAncestor:l,tooltipPlacement:c,tooltipOriginRectTransform:u}){let d=(0,i(533992).v3)(),g=(0,i(633636).wM)(),m={...p(t),...a},h=(0,i(579993).K8)(()=>{if(n&&!(e instanceof i(681735).h)){if(e instanceof i(970831).B)return(0,i(374743).J8)({environment:d,tabId:g},{store:e,pageVisitSource:i(254656).y8.Breadcrumb});if(e instanceof i(356912).m){let t=e.getParentCollectionViewBlockStore();if(!t)return;let r=(0,i(901881).V5)({collectionViewBlockStore:t,collectionStore:e});return(0,i(374743).J8)({environment:d,tabId:g},{store:t,pageVisitSource:i(254656).y8.Breadcrumb,collectionViewId:null==r?void 0:r.id})}if(e instanceof i(360851).N)return(0,i(453573).Lm)({workflowId:e.id,params:{workflowViewType:"chat"}});(0,i(48697).HB)(e)}},[n,e,d,g]),v=(0,i(579993).K8)(()=>!o||e instanceof i(681735).h?void 0:e instanceof i(970831).B?()=>o({pageId:e.id,collectionId:void 0}):e instanceof i(356912).m?()=>{var t;return o({pageId:null==(t=e.getParentCollectionViewBlockStore())?void 0:t.id,collectionId:e.id})}:void(!(e instanceof i(360851).N)&&(0,i(48697).HB)(e)),[o,e]);return!n||e instanceof i(681735).h?(0,r.jsx)(i(627918).A,{store:e,style:m,highlighter:s,enableHover:l,tooltipPlacement:c,tooltipOriginRectTransform:u}):(0,r.jsx)(i(590422).Q,{href:h,onClick:v,children:(0,r.jsx)(i(627918).A,{store:e,style:m,highlighter:s})})}function g({store:e,highlighter:t,textColor:a,tooltipStyle:n}){let o={...p(a),...n||{color:t?i(632079).Tj.text.inverseSecondary:i(632079).Tj.text.inversePrimary}},s=t&&{...t,style:{fontWeight:i(699422).Wy.medium,color:i(632079).Tj.text.inversePrimary}};return(0,r.jsx)(i(627918).A,{store:e,style:o,highlighter:s})}let m={display:"flex"};function h({leftovers:e,showFullPathInTooltip:t,textColor:a,style:n,highlighter:o,tooltipStyle:s,innerStyle:l,tooltipDividerStyle:u,placement:f,originRectTransform:v}){return t&&e.length>0?(0,r.jsx)(i(51831).m_,{placement:f??"bottom",originRectTransform:v,content:()=>(0,r.jsx)("div",{style:{...m,...p(a),...n},children:(0,i(405843).G)(e.map(e=>(0,r.jsx)(g,{store:e,highlighter:o,textColor:a,tooltipStyle:s},`${e.table}:${e.id}`)),e=>(0,r.jsx)(d,{innerStyle:l,tooltipDividerStyle:u},e))}),children:e=>(0,r.jsx)(c,{handlers:e})},"ellipsis"):(0,r.jsx)(c,{})}i.d(t,{a6:()=>o,mG:()=>n},{Ay:function({store:e,extraLength:t,hideTeam:a,hideMultiSourceParentCVB:o,textColor:l,innerStyle:c,isLink:d,onClick:g,highlighter:m,enableHoverAncestor:v,showFullPathInTooltip:_,style:b,tooltipStyle:y,tooltipDividerStyle:w,ancestorTooltipPlacement:x,ellipsisTooltipPlacement:S,tooltipOriginRectTransform:k,left:I,right:M}){let T=2+(t?Math.floor(t):0),C=Math.ceil(T/2),P=(0,i(579993).K8)(()=>n(e,{hideTeam:a,hideMultiSourceParentCVB:o}),[a,o,e]);if(0===P.length)return null;let A=Math.ceil(P.length/2),j=P.slice(0,Math.min(A,C)),B=Math.min(P.length-A,T-C),E=B>0?P.slice(-B):[],R=(0,i(960408).oE)([...j.map(e=>(0,r.jsx)(f,{store:e,textColor:l,innerStyle:c,isLink:d,onClick:g,highlighter:m,enableHoverAncestor:v,tooltipPlacement:x,tooltipOriginRectTransform:k},`${e.table}:${e.id}`)),P.length>T&&(0,r.jsx)(h,{showFullPathInTooltip:_,textColor:l,style:b,highlighter:m,tooltipStyle:y,innerStyle:c,tooltipDividerStyle:w,leftovers:P.slice(j.length,P.length-E.length),placement:S,originRectTransform:k},"ellipsis"),...E.map(e=>(0,r.jsx)(f,{store:e,textColor:l,innerStyle:c,isLink:d,onClick:g,highlighter:m,enableHoverAncestor:v,tooltipPlacement:x,tooltipOriginRectTransform:k},`${e.table}:${e.id}`))]);return(0,r.jsxs)("div",{style:{...s,...p(l),...b},children:[I,(0,i(405843).G)(R,e=>(0,r.jsx)(u,{innerStyle:c},e)),M]})}})},753833(e,t,i){"use strict";function r(e){let{environment:t,spaceStore:r}=e,a=t.currentUser.id;if(!r||!a||!(0,i(551408).R)())return!1;let n=(0,i(367890).x)(t,{name:"ai_database_agents",spaceId:r.id,userId:a,amount:"unknown"});return void 0!==n&&!!(0,i(747609).e2)(n)&&(0,i(994709).v)({currentUserId:a,spaceStore:r,isOwnersOnlyDefaultEnabled:i(218744).default.checkGate({gateName:"agent_creation_default_owners_only"})}).canCreate}i.d(t,{m:()=>r})},551408(e,t,i){"use strict";function r(){return(0,i(579993).K8)(()=>i(886556).z.isAiEnabled(),[])}function a(){return i(886556).z.isAiEnabled()}i.d(t,{A:()=>r,R:()=>a})},309923(e,t,i){"use strict";function r(e){let t=(0,i(993077).U2)(e);return(0,i(579993).K8)(()=>(0,i(729052).hk)(null==t?void 0:t.getComputedMembershipType()),[t])}i.d(t,{Y:()=>r})},558254(e,t,i){"use strict";i(533958),i(435368);var r=()=>i(678703);function a(e){let{environment:t,sourceBlocks:a,destination:n,transaction:o,options:s,from:l,installationImprint:c,templateInstallationMetadata:u,appendWithoutAfter:d,unlockPage:p,skipUserFacingMessages:f,listener:g,clipboardSubtrees:m,targetInMemoryRecordCache:h}=e,v=n.existingBlockIds;if(!v||v.length!==a.length)throw Error("Synchronous mixed local server duplication requires existing block IDs for each source block");let _=e.userId??t.currentUser.id;if(!_)return i(80279).Q.fail(Error("Failed to get user ID"));
1let b=n.parent.spaceId,y=e.targetSpaceViewStore??(0,i(852864).H)({spaceStore:new(r()).SL(t,{table:"space",id:b}),userId:_,environment:t});if(!y)return i(80279).Q.fail(Error("Failed to get target space view store"));let w=e.forceExecutionTarget??i(730125).A.getState().executionTarget;g({type:"started"});let x=[],S=[],k=[],I=[];if("server"!==w){let e=(0,i(79179).loadInMemorySubtree)({environment:t,sourceStores:a,options:s,targetSpaceId:b,bailOnMiss:"local"===w,clipboardSubtrees:m});if(!e&&"local"===w)return i(80279).Q.fail(Error("Failed to load all blocks for local duplication"));if(e){let r=o.saveCheckpoint();if(x=(0,i(79179).performLocalDuplication)({environment:t,sourceStores:a,destination:n,options:s,transaction:o,from:l,onMissingLocalSubtree:({index:e,blockStore:t})=>{S.push(t),k.push(v[e])},targetSpaceId:b,targetSpaceViewStore:y,targetInMemoryRecordCache:h,existingBlockIds:v,installationImprint:c,templateInstallationMetadata:u,unlockPages:p,appendWithoutAfter:d,localSubtrees:e}),"local"===w&&S.length>0)return r(),i(80279).Q.fail(Error("Failed to duplicate all blocks locally"));if((0,i(386281).vY)(o)){if(r(),"local"===w)return i(80279).Q.fail(Error("Local duplication transaction is too large"));x=[],S=a,k=v}}else S=a,k=v;for(let e of k){let i=new(r()).Bv(t,{table:"block",id:e,spaceId:b});I.push(i)}g({type:"local_completed",createdBlocks:[...x,...I],recordIdMap:void 0})}return o.postSubmitCallbacks.push(async e=>{if(e)return void await g({type:"error",error:e});if("server"===w)return void(0,i(170013).V)({environment:t,listener:g,sourceBlocks:a,destination:n,options:{...s,isTemplateInstantiation:s.isTemplateInstantiation||!!u},unlockPages:p,from:l,appendWithoutAfter:d,skipUserFacingMessages:f});if(S.length>0){let e=await (0,i(79179).loadSubtreesForLocalDuplication)({environment:t,sourceStores:S,existingBlockIds:k,targetSpaceId:b,options:s,shouldUseServerBackedDuplication:!0,bailOnMiss:!1}),r=[],a=[],o=[];if(e){let f=(0,i(323517).createAndCommit)({environment:t,canUndo:!1,userAction:`duplicateToSynchronous.${l}`,cellTarget:{spaceWithId:b},transactionTooBigFallback:()=>(o=S,a=k,[]),perform:r=>(0,i(79179).performLocalDuplication)({environment:t,sourceStores:S,destination:n,options:s,unlockPages:p,targetSpaceId:b,transaction:r,existingBlockIds:k,localSubtrees:e,from:l,installationImprint:c,templateInstallationMetadata:u,appendWithoutAfter:d,targetSpaceViewStore:y,targetInMemoryRecordCache:h,onMissingLocalSubtree:({index:e,blockStore:t})=>{o.push(t),a.push(k[e])}})});r=f.performResult;try{if(await f.serverCommitResult,0===o.length)return void await g({type:"completed",createdBlocks:r,recordIdMap:void 0})}catch(e){await g({type:"error",error:(0,i(324497).A)(e)});return}}else o=S,a=k;if("local"!==w){let e={...n,existingBlockIds:a};(0,i(170013).V)({environment:t,listener:g,sourceBlocks:o,destination:e,options:{...s,isTemplateInstantiation:s.isTemplateInstantiation||!!u},unlockPages:p,from:l,appendWithoutAfter:d,skipUserFacingMessages:f})}}else await g({type:"completed",createdBlocks:x,recordIdMap:void 0})}),i(80279).Q.success({createdBlocks:[...x,...I]})}i.d(t,{y:()=>a})},170013(e,t,i){"use strict";async function r(e){let{navigateToTarget:t,skipUserFacingMessages:r,...n}=e,{environment:o,from:s}=n,l=a;l=(0,i(94228).yE)(l,i(94228).Nf),l=(0,i(94228).ME)(l),r||(l=(0,i(94228).yE)(l,i(94228).vd),l=(0,i(94228).$2)(l)),t&&(l=(0,i(94228).em)(l));let c=`duplicateSubtree.${s}`;return l=(0,i(94228).NU)({environment:o,runner:l,userAction:c,method:"server_duplicate_subtree",from:s}),l=(0,i(94228).E0)({runner:l,userAction:c}),await (0,i(94228).Fe)({runner:l,args:n})}async function a(e){let{environment:t,destination:r,options:a,from:n,sourceBlocks:o,listener:s,appendWithoutAfter:l,unlockPages:c,scanForPromptInjection:u}=e,d=o[0].getSpaceId(),p=r.parent.spaceId,f={allowDuplicateSourceIds:a.allowDuplicateSourceIds,allowMixedExistingBlockParents:a.allowMixedExistingBlockParents,allowRedundancy:a.allowRedundancy,appendNumericTitleSuffix:a.addCopyName,resolveTemplateVariables:a.resolveTemplateVariables?{currentUserId:t.currentUser.id,currentTimeZone:(0,i(714350).P)()}:void 0,excludeCollectionChildren:a.duplicateOnlyCollectionSchema,excludeTransclusionContainerChildren:!a.deepCopyTransclusionContainers,isTemplateInstantiation:a.isTemplateInstantiation,preserveTargetBlocksOnFailure:a.preserveTargetBlocksOnFailure,unlockPages:c,scanForPromptInjection:u,sourceBlockUpdateStrategy:a.sourceBlockUpdateStrategy,shouldNavToFirstTarget:a.shouldNavToFirstTarget};i(773352).log({level:"info",from:"duplicateTo",type:"duplicateSubtree",data:{miscDataToConvertToString:{from:n,duplicateSubtreeOptions:f,sourceSpaceId:d,targetSpaceId:p}}}),(0,i(494010).Wy)(r)&&!l&&void 0===r.siblingId&&o[o.length-1].getParentId()===r.parent.id&&(r.siblingId=o[o.length-1].id);let g={source:{ids:o.map(e=>e.id),spaceId:d},destination:r,options:f,userAction:`duplicateSubtree.${n}`},m=(0,i(259242).UT)({environment:t,eventName:i(916501).$,request:g,multiCellRouting:{spaceIds:(0,i(960408).sb)([p,d])}});await (0,i(94228).nN)({environment:t,iterator:m,listener:s,targetSpaceId:p,retryOnMainCell:()=>(0,i(259242).UT)({environment:t,eventName:i(916501).$,request:g,multiCellRouting:{spaceIds:[]}})})}i(159952),i.d(t,{V:()=>r})},730125(e,t,i){"use strict";let r=i(546605).Store.createValue({executionTarget:null},{name:"DuplicationDebuggingStore"});i.d(t,{},{A:r})},21791(e,t,i){"use strict";i.r(t),i.d(t,{loadAndCacheEmojiDataOnce:()=>l,loadAndCachePositionalEmojiDataOnce:()=>o,useLoadAndCacheEmojiData:()=>n});var r=i(635790);let a=new(i(552709)).O2("emojiPickerData",async()=>(await i.e(94590).then(i.bind(i,484854))).emojiPickerData);function n(e){let t=(null==e?void 0:e.enabled)??!0;(0,r.useEffect)(()=>{t&&l()},[t])}let o=(0,i(960408).Oo)(async function(){let e=await i(260749).a.load();i(753281).A.setState({...i(753281).A.state,positionalEmojiData:e})}),s=(0,i(960408).Oo)(async function(){let e=await a.load();i(753281).A.setState({...i(753281).A.state,...(0,i(871871).Se)(e)})});async function l(){await Promise.all([o(),s()])}},821915(e,t,i){"use strict";
1function r(e){let{config:t}=e,r=(0,i(83208).X)("filesystem_sandbox")&&"workflow"===t.type&&!0!==t.isHipaa,a="workflow"===t.type&&!0===t.isCustomAgent,n=(0,i(83208).X)("computer_custom_agent");return(!a||!!n)&&r}function a(e){return!!i(218744).default.checkGate({gateName:"filesystem_sandbox"})&&!e.isHipaa&&(!e.isCustomAgent||!!i(218744).default.checkGate({gateName:"computer_custom_agent"}))}i.d(t,{Y:()=>a,p:()=>r})},828294(e,t,i){"use strict";function r(){return(0,i(275750).co)()}function a(e){return(0,i(275750).bO)(e)}function n(){return i(218744).default.checkGate({gateName:"agent_writer_client_rendered_pages"})}i.d(t,{Qm:()=>a,__:()=>n,dI:()=>r})},61314(e,t,i){"use strict";function r(e){if(!e)return null;let t=e.getSpaceStore();if(!t)return null;let r=t.userId;if(!r)return null;let a=i(678703).VF.createChildStore(t,i(729052).i1({userId:r,spaceId:t.id}));return a?!!a.isMember():null}i.d(t,{j:()=>r})},473234(e,t,i){"use strict";var r=i(635790);function a(e){let{immediateState:t,isEqual:i=Object.is,openDelayMs:a=400,closeDelayMs:n=150}=e,[o,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(void 0),u=!!(l&&!i(t,l));(0,r.useEffect)(()=>{if(u){let e=setTimeout(()=>{c(void 0)},n);return()=>clearTimeout(e)}},[u,n]);let d=!!(t&&!i(t,l));(0,r.useEffect)(()=>{if(t&&d){let e=setTimeout(()=>{c(t)},a);return()=>clearTimeout(e)}},[t,d,a]);let[p,f]=(0,r.useState)(void 0),g=p??(o?void 0:l),m=(0,r.useCallback)(()=>{f(g)},[g]),h=(0,r.useCallback)(()=>{f(void 0)},[]),v=(0,r.useCallback)(()=>{h(),s(!0)},[h]);return(0,r.useEffect)(()=>{s(!1)},[l]),{state:g,pinPopup:m,unpinPopup:h,hasBeenHovering:!!(t&&i(t,g)),isPinned:!!p,dismissPopup:v}}i.d(t,{v:()=>a})},769097(e,t,i){"use strict";let r=new(i(246382)).R({key:"pendingEvernoteDWImports",namespace:i(274919).Bq,important:!0,trackingType:"necessary"});i.d(t,{},{u:r})},870742(e,t,i){"use strict";function r({environment:e,message:t,overwrite:a=!1}){let n=i(192314).AppStoreCurrentUserSettingsStore.state,o=null==n?void 0:n.getSettings();if(!n||!o)return;let s=new Map((o.callout_dismissal_timestamps??[]).map(e=>[e.name,e]));(!s.has(t.key)||a)&&s.set(t.key,{name:t.key,timestamp:i(120011).DateTime.now().toMillis()}),(0,i(323517).createAndCommit)({environment:e,userAction:"messageActions.addUserSettingsDismissal",cellTarget:"main",canUndo:!0,perform:e=>{(0,i(862759).m)({userSettingsStore:n,transaction:e,data:{callout_dismissal_timestamps:Array.from(s.values())}})}})}function a(e,t){let a=(0,i(125542).K0)(t);(0,i(125542).l3)(a)?r({environment:e,message:t}):"once_per_space"===a&&function({environment:e,message:t,overwrite:r=!1}){let a=i(192314).AppStoreSidebarSpaceViewStore.state,n=null==a?void 0:a.getSettings();if(!a||!n)return;let o=a.getSpaceId(),s=new Map((n.callout_dismissal_timestamps??[]).map(e=>[e.name,e]));(!s.has(t.key)||r)&&s.set(t.key,{name:t.key,timestamp:i(120011).DateTime.now().toMillis()}),(0,i(323517).createAndCommit)({environment:e,userAction:"messageActions.addSpaceViewDismissal",canUndo:!0,cellTarget:o?{spaceWithId:o}:void 0,perform:e=>{i(214252).AG(a,e,{callout_dismissal_timestamps:Array.from(s.values())})}})}({environment:e,message:t})}i.d(t,{q:()=>a,H:()=>r}),i(159952)},943278(e,t,i){"use strict";i.d(t,{K:()=>a});var r=()=>i(120011);function a(e,t,a){i(696190).default.isVisible(t.key)&&(i(696190).default.removeMessage(t.key),i(139424).A.isAdminMode||(!function(e,t){let a=i(192314).AppStoreCurrentUserSettingsStore.state,n=null==a?void 0:a.getSettings();if(!n||!a)return;let o=new(i(543346)).GO(n.callout_placement_exposures);for(let e of t)o.add(e,r().DateTime.now().toMillis());(0,i(323517).createAndCommit)({environment:e,userAction:"messageActions.addPlacementExposures",cellTarget:"main",canUndo:!0,perform:e=>{(0,i(862759).m)({userSettingsStore:a,transaction:e,data:{callout_placement_exposures:o.exportUserSetting()}})}})}(e,[(0,i(125542).Q3)(t)]),(null==a?void 0:a.persistDismissal)!==!1&&(0,i(870742).q)(e,t),i(192314).AppStoreInAppCalloutStore.state.updateCalloutStatus({calloutId:t.key,visible:!1}),(0,i(819416).Z)(e,t.key)),i(696190).default.isPendingDynamicMessage(t.key)&&(0,i(740063).G)(t.key))}},59579(e,t,i){"use strict";function r(e,t){let r={id:"",key:t,type:"static",category:i(292609).lU[t].category,props:{}};(0,i(943278).K)(e,r)}i.d(t,{a:()=>r})},357709(e,t,i){"use strict";function r(e,t){let r=(0,i(462391).h2)(t.callout_key);r&&(t.placement_key=(0,i(462391).t9)(r)),(0,i(104310).u)({event:{eventName:"callout_show",eventProperties:{...t,callout_src:r?"static":"cio"}}})}function a(e,t){let r=(0,i(462391).h2)(t.callout_key);r&&(t.placement_key=(0,i(462391).t9)(r)),(0,i(104310).u)({event:{eventName:"callout_click",eventProperties:{...t,callout_src:r?"static":"cio"}}}),t.callout_key&&i(409725).l.trackEvent("callout_click",{callout_key:t.callout_key,click_type:t.click_type,placement_key:t.placement_key})}function n(e,t){let r=(0,i(462391).h2)(t.callout_key);r&&(t.placement_key=(0,i(462391).t9)(r)),(0,i(104310).u)({event:{eventName:"callout_dismiss",eventProperties:{...t,callout_src:r?"static":"cio"}}})}function o(e,t){let{eligible_callouts:r,required_arg_timeout:a,required_args_run_duration:n,eligibility_timeouts:o,blockl
1ist:s}=t;(0,i(104310).u)({event:{eventName:"callout_coordinator_resolved",eventProperties:{eligible_callouts:r,required_arg_timeout:a,required_args_run_duration:n,eligibility_timeouts:o,blocklist:s}}})}function s(e,t){(0,i(104310).u)({event:{eventName:"callout_feature_interaction",eventProperties:t}})}function l(e,t){(0,i(104310).u)({event:{eventName:"callout_skipped",eventProperties:t}})}function c(e,t){let r=(0,i(462391).h2)(t.callout_key);r&&(t.placement_key=(0,i(462391).t9)(r)),(0,i(104310).u)({event:{eventName:"callout_not_shown",eventProperties:{...t,callout_src:r?"static":"cio"}}})}i.d(t,{Ak:()=>c,Cu:()=>l,DL:()=>r,Sq:()=>n,Y5:()=>a,gc:()=>s,wo:()=>o})},233519(e,t,i){"use strict";let r=new Map;function a(e){r.set(e.blockId,e.template)}function n(e){let t=r.get(e);if(t)return r.delete(e),t}i.d(t,{C:()=>n,V:()=>a})},347035(e,t,i){"use strict";let r=(0,i(327219).YK)({templatePrefillPhoto:{id:"aiGenerateInput.templatePrefill.photo",defaultMessage:"Create a photo that represents this page"},templatePrefillDiagram:{id:"aiGenerateInput.templatePrefill.diagram",defaultMessage:"Create a diagram about this page"},templatePrefillMockup:{id:"aiGenerateInput.templatePrefill.mockup",defaultMessage:"Create a mockup that represents this page"},templatePrefillSlide:{id:"aiGenerateInput.templatePrefill.slide",defaultMessage:"Create a presentation slide summarizing this page"},templatePrefillChart:{id:"aiGenerateInput.templatePrefill.chart",defaultMessage:"Create a chart that visualizes this page"}});function a(e){switch(e){case"photo":return i(962299).A.formatMessage(r.templatePrefillPhoto);case"slide":return i(962299).A.formatMessage(r.templatePrefillSlide);case"diagram":return i(962299).A.formatMessage(r.templatePrefillDiagram);case"mockup":return i(962299).A.formatMessage(r.templatePrefillMockup);case"chart":return i(962299).A.formatMessage(r.templatePrefillChart)}}i.d(t,{E:()=>a})},500387(e,t,i){"use strict";i.d(t,{w:()=>n}),i(435368),i(730330),i(976614),i(159952);var r=()=>i(504197),a=()=>i(642157);function n(e){var t;let{environment:n,store:o,permissionItem:s,transaction:l,shouldInherit:c,fromPermissionWrapper:u}=e;if(!o.isDefined())return;let d=[];if(c)for(let e of(0,i(862085).i0)(o).map(e=>e.permissionItem).filter(e=>!s||!i(966956).nK(e,s))){let t=!1;"collection_property_permission"===e.type&&(t=!0),a().hI(e)&&("block"!==o.table||o.isCollectionView()||a().P3(e)||"content_only_editor"!==e.role?t||d.push(e):d.push({...e,role:"read_and_write"}))}if(s&&(d.push(s),"block"===o.table?i(594311).e1({store:o,newItems:[s],fromPermissionWrapper:u}):o.table===i(832375).VlP||o.table===i(832375).C0E||"team"===o.table||(0,i(48697).HB)(o.table)),!i(218744).default.checkGate({gateName:"server_enforce_block_full_access"})){let e=n.currentUser.id,t=(0,i(960408).hS)([...d,...o.getPermissionItems()||[],{type:"restricted_permission"}],i(966956).I$),r=e?(0,i(516552).F)({userId:e,store:o}):void 0;!e||l.useSudoMode||(0,i(310248).JF)({store:o,userId:e,updatedPermissionItems:t,teamMemberships:r})||d.push({type:"user_permission",user_id:e,role:"editor"})}let p=o.getPermissionItemsStore();for(let e of d)(0,r().y)({store:p,operation:{pointer:p.pointer,command:"setPermissionItem",path:p.path,args:e},transaction:l});(0,r().y)({store:p,operation:{pointer:p.pointer,command:"setSingletonPermissionItem",path:p.path,args:{singletonPermissionItem:{type:"restricted_permission"},set:!0}},transaction:l}),t={type:(null==s?void 0:s.role)==="none"?"remove":"narrow"},(0,i(353615).DO_NOT_USE_trackLegacy)("restrict_permissions",t),l.postSubmitCallbacks.push(e=>{!e&&o.pointer.spaceId&&i(371151).nO({environment:n,spaceStore:{id:o.pointer.spaceId}})})}},702539(e,t,i){"use strict";function r(e){var t;let{spaceViewStore:i}=e;return((null==i||null==(t=i.getSettings())||null==(t=t.ai_prompts)?void 0:t.recent_skill_database_ids)??[]).slice(0,5)}function a(e){let{environment:t,collectionId:a}=e,n=i(192314).AppStoreSidebarSpaceViewStore.state;if(!n)return;let o=n.getSettings(),s=r({spaceViewStore:n}),l=[a,...s.filter(e=>e!==a)].slice(0,5);l.length===s.length&&l.every((e,t)=>e===s[t])||(0,i(323517).createAndCommit)({userAction:"recentSkillsDatabaseActions.addRecentSkillsDatabase",environment:t,canUndo:!1,cellTarget:"main",perform:e=>{i(214252).AG(n,e,{...o,ai_prompts:{...(null==o?void 0:o.ai_prompts)??{},recent_skill_database_ids:l}})}})}i(730330),i(321577),i(976614),i.d(t,{O:()=>a,r:()=>r})},214062(e,t,i){"use strict";function r(e){if(!e)return[];let t=e.getSetting("workspace_default_skills")??[];if(!i(218744).default.checkGate({gateName:"enable_group_default_skills"}))return t;let r=e.getSetting("group_default_skills")??[];return 0===r.length?t:(0,i(543858).hC)({workspaceDefaultSkills:t,groupDefaultSkills:r,currentUserGroupIds:i(660472).f.getSpacePermissionGroupIds({spaceId:e.id})})}function a(e){let t=new Map;if(!e)return{skills:[],sourceBySkillPageId:t};let r=e.getSetting("workspace_default_skills")??[];if(!i(218744).default.checkGate({gateName:"enable_group_default_skills"})){for(let e of r)t.set(e.skill_page_id,{type:"workspace"});return{skills:r,sourceBySkillPageId:t}}let a=e.getSetting("group_default_skills")??[];if(0===a.length){for(let e of r)t.set(e.skill_page_id,{type:"workspace"});return{skills:r,sourceBySkillPageId:t}}let n=i(660472).f.getSpacePermissionGroupIds({spaceId:e.id}),o=(0,i(543858).hC)({workspaceDefaultSkills:r,groupDefaultSkills:a,currentUserGroupIds:n}),s=new Set(o.map(e=>e.skill_page_id));for(let e of r)s.has(e.skill_page_id)&&t.set(e.skill_page_id,{type:"workspace"});for(let e of a)if(n.has(e.group_id))for(let i of e.skills){if(!s.has(i.skill_page_id))continue;let r=t.get(i.skill_page_id);if((null==r?void 0:r.type)==="workspace")continue;let a=(null==r?void 0:r.groupIds)??[];a.includes(e.group_id)||t.set(i.skill_page_id,{type:"group",groupIds:[...a,e.group_id]})}return{skills:o,sourceBySkillPageId:t}}i(499468),i(586042),i(169187),i(726090),i(132457),i(219390),i(73168),i(159952),i.d(t,{O:()=>a,g:()=>r})},784068(e,t,i){"use strict";
1i(730330),i(139583);var r=()=>i(375622);class a extends r().Ay{findTableHeaderCell(e,t){return this.find(i=>i.collectionContextStore===e&&i.property===t)}}let n=new a;i.d(t,{},{A:n})},188550(e,t,i){"use strict";let r,a,n,o,s,l,c=0;function u(e){let{spaceId:t,userId:i,botLimit:u,botTypes:d,visibility:p}=e,f=d.join(",");if(l&&r===t&&a===i&&n===u&&o===f&&s===p&&Date.now()-c<3e4)return l}function d(e){let{spaceId:t,userId:i,botLimit:u,botTypes:d,visibility:p,botIds:f}=e;r=t,a=i,n=u,o=d.join(","),s=p,l=f,c=Date.now()}function p(){r=void 0,a=void 0,n=void 0,o=void 0,s=void 0,l=void 0,c=0}i.d(t,{HP:()=>p,MR:()=>u,gH:()=>d})},931263(e,t,i){"use strict";function r(e){let{stores:t}=i(584265).default.state,r=t[0];if(!r)return;let a=i(240414).T.findSelectableFromStore(r);if(a&&a.props.onEditText){let t=a.props.onEditText,n=r.pointer.spaceId;(0,i(323517).createAndCommit)({userAction:"selectionActions.editSelection",environment:e,canUndo:!0,cellTarget:n?{spaceWithId:n}:void 0,perform:e=>{t({isAtStartOfLine:!1,isClick:!1,transaction:e})}})}}i.d(t,{Z:()=>r})},961489(e,t,i){"use strict";function r(e){i(570873).V.setState(e)}function a(){return i(570873).V.state??"auto"}function n(e){let t=a(),i=("auto"===t?e:"high"===t)?"standard":"high";return r(i),i}i.d(t,{Gl:()=>n,S4:()=>r,Wu:()=>a})},106742(e,t,i){"use strict";function r(){var e;if(i(218744).default.checkGate({gateName:"ks_dev_settings"}))return!1;let t=null==(e=i(192314).AppStoreCurrentUserStore.state)?void 0:e.getEmail();return"makenotion.com"===(0,i(801109).zN)(t??"")}i.d(t,{l:()=>r})},306338(e,t,i){"use strict";var r=i(635790),a=i(440302);function n(e){let{buttonStyles:t}=e,n=(0,i(327219).tz)(),s=n.formatMessage(o.settings),l=(0,r.useCallback)(()=>{i(493794).Ow({openedFrom:"sidebar",currentPage:"user_settings"})},[]);return(0,a.jsx)(i(51831).m_,{content:()=>n.formatMessage(o.tooltip),originGap:6,textWrap:!0,placement:"right",children:e=>(0,a.jsx)(i(64960).Ay,{...e,onClick:l,style:i(132261).D.baseSidebarItem,hoveredStyle:null==t?void 0:t.hoveredStyle,children:(0,a.jsx)(i(538105).u,{left:(0,a.jsx)(i(16275).I,{icon:i(829968).gearIcon,colorVariant:"secondary",size:"lg"}),"data-inp-target":"sidebar-settings",children:s})})})}let o=(0,i(327219).YK)({settingsAndMembers:{id:"sidebarSettingsButton.settingsAndMembers",defaultMessage:"Settings & members"},settings:{id:"sidebarSettingsButton.settings",defaultMessage:"Settings"},tooltip:{id:"sidebarSettingsButton.tooltip",defaultMessage:"Manage your account and settings"}});i.d(t,{u:()=>n},{O:o})},296207(e,t,i){"use strict";let r;i.d(t,{d:()=>u,j:()=>c});var a=()=>i(246382);let n="slipperySlopeSidebarTabScopeId";function o(){let e=sessionStorage.getItem(n);return sessionStorage.removeItem(n),e??void 0}let s=new(a()).R({key:"slipperySlopeSidebarSelectedTab",namespace:i(274919).Bq,important:!0,trackingType:"necessary"});class l extends a().R{constructor(){super({key:"slipperySlopeSidebarSelectedTabByScope",namespace:i(274919).Bq,important:!0,trackingType:"necessary"})}getSelectedTab(){var e;return(null==(e=this.getState())?void 0:e[this.getScopeId()])??s.getState()}setSelectedTab(e){let t=this.getScopeId();this.update(i=>{let r={...i};delete r[t],r[t]=e;let a=Object.keys(r);for(let e of a.slice(0,Math.max(0,a.length-10)))delete r[e];return r})}getScopeId(){var e;let t=(null==(e=i(192314).AppStoreCurrentUserStore.state)?void 0:e.id)??"guest",a=i(192314).AppStoreSidebarSpaceIdStore.getState()??"no-space",s=i(898735).A.state.currentTab.windowId??function(){if((0,i(48697).O9)(r))return r;let e=o()??(0,i(83388).lZ)();return r=e,window.addEventListener("pagehide",()=>{sessionStorage.setItem(n,e)}),window.addEventListener("pageshow",()=>{o()}),e}();return`${t}_${a}_${s}`}}let c=new l,u=new(i(47824)).ComputedStore(()=>c.getSelectedTab(),{debugName:"slipperySlopeSelectedTabStore"})},118999(e,t,i){"use strict";i.d(t,{},{T:{365:5,180:5,90:5,30:5,14:4}})},44027(e,t,i){"use strict";function r(e){let{businessTrialOffer:t,billingTime:r,modalLastShownAt:a,modalShownTimes:n}=e;return!!(0,i(383378).V9)(t,r)&&void 0!==a&&void 0!==n&&(!(a>0)||!(r.diff(i(120011).DateTime.fromMillis(a),"days").days>
1=30))&&(n??0)>=2}function a(e,t=(0,i(991394).getBillingTime)(e)){if(!e)return;let r=(0,i(991394).i5)(e);if(r)return Math.ceil(r.toUTC().diff(t.toUTC(),"days").days)}function n(e,t){let r=i(120011).DateTime.fromMillis(e.endDateMs).toUTC();return(t??i(120011).DateTime.now()).toUTC().hasSame(r,"day")}function o(e){let t=(0,i(278662).Jd)(e);if(t)return(0,i(875472).Vm)(t)}function s(e){let t=(0,i(278662).Jd)(e);if(t)return(0,i(875472).kd)(t)}function l(e){let t=i(118999).T[e];if(void 0===t)throw Error(`Unknown trial length: ${e}`);return t}function c(e){return Math.round(e/30)}function u({billingData:e}){if(!(0,i(991394).TB)(e))return!1;if((0,i(991394).HY)(e)){var t;return(null==e?void 0:e.type)==="admin"&&(null==(t=e.trial)?void 0:t.autoConvert)===!0}return(null==e?void 0:e.type)==="admin"&&(0,i(48697).O9)(null==e?void 0:e.paymentMethod)}function d(e){return(0,i(991394).oD)(e)}function p(e){return(0,i(48697).Xk)(["multi_search_scope_menu","ai_workspace_settings_connector_cards","business_trial_ai_connectors_upsell","ai_corner_chat_connectors_button"],e)}function f(e){return(0,i(48697).Xk)(i(90416).K_,e)}function g(e){return(0,i(48697).Xk)([...i(994234).iE,...i(994234).wW,...i(994234).Fh],e)}function m(e){let{openedFrom:t,campaign:r,isCustomAgentsGateEnabled:a}=e;return a&&(f(t)||(0,i(48697).Xk)(i(90416).Mi,t)||"deeplink"===t&&g(r))}function h(e){let{openedFrom:t,campaign:r}=e;return"deeplink"===t&&(0,i(48697).Xk)([...i(994234).Jo,...i(994234).SZ],r)}function v(e){let{spaceStore:t,billingData:r,campaign:a}=e;if(!(null!=t&&t.canAdmin())||!r||"plus"!==(0,i(991394).AI)(r))return;let n=(0,i(97700).n)({campaign:a,space:t.getModel(),billingData:r});return void 0===n?{hasTimerStarted:!1}:{hasTimerStarted:!0,daysRemaining:n}}i(533958),i.d(t,{F$:()=>m,IU:()=>d,J:()=>o,SF:()=>f,Tr:()=>c,UP:()=>a,XF:()=>n,cn:()=>s,dt:()=>g,f5:()=>v,od:()=>r,rE:()=>l,rK:()=>h,tY:()=>p,z2:()=>u})},630131(e,t,i){"use strict";function r(e,t){return(0,i(893004).z)(e,i(328659).L,t)}i.d(t,{Y:()=>r})},740893(e,t,i){"use strict";var r=i(635790);function a(e){let t=(0,i(960253).e)(),a=(0,i(632079).O4)({theme:t}),{type:s,amount:l,currency:c,paymentMethodTypes:u}=e,d=(0,i(579993).K8)(()=>{var e;return(null==(e=i(192314).AppStoreCurrentUserSettingsStore.state)?void 0:e.getSettingsStore().getKeyValue("preferred_locale"))||i(599412).q},[]);return(0,r.useMemo)(()=>{let e={appearance:o(a,t),locale:n(d)},r=u?{paymentMethodTypes:u}:{};switch(s){case"address":return e;case"setup":return{...e,currency:c.toLowerCase(),...r,mode:"setup",paymentMethodCreation:"manual"};case"subscription":return{...e,amount:l,currency:c.toLowerCase(),...r,mode:"subscription",paymentMethodCreation:"manual",setupFutureUsage:"off_session",loader:"never"};default:(0,i(48697).HB)(s)}},[a,t,d,c,s,l,u])}function n(e){switch(e){case"en-US":return"en";case"ko-KR":return"ko";case"ja-JP":return"ja";case"fr-FR":return"fr-FR";case"de-DE":return"de";case"es-ES":return"es-ES";case"es-LA":return"es-419";case"pt-BR":return"pt-BR";case"zh-CN":return"zh";case"zh-TW":return"zh-TW";case"da-DK":return"da";case"nl-NL":return"nl";case"fi-FI":return"fi";case"nb-NO":return"nb";case"sv-SE":return"sv";case"en-GB":return"en-GB";case"id-ID":return"id";case"vi-VN":return"vi";case"th-TH":return"th";case"he-IL":return"he";case"ar-SA":return"ar";case"it-IT":return"it";default:return"auto"}}function o(e,t){let r=s(e.text.primary),a=s(e.text.secondary),n=s(e.text.tertiary),o=s(e.red.text.accentPrimary),l=s(e.blue.text.accentPrimary),c=s(e.whiteButtonBackground);return{labels:"above",theme:"dark"===t?"night":"stripe",variables:{spacingGridRow:"12px",spacingGridColumn:"12px",spacingUnit:"4px",spacingTab:"6px",colorPrimary:r,colorPrimaryText:r,colorText:r,colorTextSecondary:a,colorTextPlaceholder:n,colorIcon:r,colorIconCheckmark:s(e.blue.icon.inversePrimary),colorDanger:o,colorBackground:c,colorIconTabHover:r,colorIconTabSelected:l,colorIconChevronDown:r,fontFamily:i(699422).Tf.sans,fontWeightLight:`${i(699422).Wy.light}`,fontWeightNormal:`${i(699422).Wy.regular}`,fontWeightMedium:`${i(699422).Wy.medium}`,fontWeightBold:`${i(699422).Wy.medium}`,fontSizeBase:"14px",fontSizeSm:"12px",colorLogo:t,colorLogoBlock:t,colorLogoTab:t,colorLogoTabSelected:t,borderRadius:"6px"},rules:{".Tab":{padding:"10px 16px 10px 10px",fontSize:"13px",fontWeight:"500",lineHeight:"16px",color:r,border:`1px solid ${e.border.primary}
1`,boxShadow:"none",backgroundColor:e.whiteButtonBackground},".Tab:hover":{backgroundColor:e.whiteButtonHoveredBackground},".Tab:focus":{boxShadow:e.buttonBlueFocusRing},".Tab--selected, .Tab--selected:active":{backgroundColor:e.whiteButtonBackground,border:`1px solid ${e.blue.border.accentPrimary}`,color:r,boxShadow:"none",outline:"none"},".Tab--selected:hover":{backgroundColor:e.whiteButtonBackground,color:r},".Tab--selected:focus":{border:`1px solid ${e.blue.border.accentPrimary}`,boxShadow:e.buttonBlueFocusRing},".Input":{fontSize:"14px",lineHeight:"18px",padding:"7px 8px",backgroundColor:e.background.secondary,boxShadow:`0 0 0 1px ${e.border.primary}`,border:"none",color:r},".Input--invalid":{color:r,boxShadow:e.inputRedFocusRing},".Input:focus":{color:r,boxShadow:e.inputBlueFocusRing},".Label":{fontSize:"12px",lineHeight:"15px",fontWeight:"500",color:a,marginBottom:"8px"},".Error":{fontSize:"12px",fontWeight:"400",lineHeight:"15px",color:o},".CodeInput":{backgroundColor:e.background.secondary,border:`1px solid ${e.border.primary}`,boxShadow:"none"},".PickerItem, .PickerItem--selected":{backgroundColor:e.whiteButtonBackground,border:`1px solid ${e.border.primary}`,boxShadow:"none",color:r},".PickerItem:hover":{backgroundColor:e.whiteButtonHoveredBackground,color:r,border:`1px solid ${e.border.primary}`,boxShadow:"none"},".PickerItem--selected:hover":{boxShadow:"none"},".PickerItem--new":{fontSize:"14px",fontWeight:"500",lineHeight:"18px",color:r},".PickerItem--highlight, .PickerItem--highlight:hover":{backgroundColor:e.whiteButtonBackground,border:`1px solid ${e.blue.border.accentPrimary}`,boxShadow:"none"},".PickerItem--highlight:hover":{backgroundColor:e.whiteButtonHoveredBackground},".TermsText":{color:a,fontSize:"10px",fontWeight:"400",lineHeight:"13px",letterSpacing:"0.12px"},".CheckboxInput":{backgroundColor:"transparent",border:`1px solid ${e.border.strongTranslucent}`},".CheckboxInput--checked":{backgroundColor:e.blue.background.accentPrimary,borderColor:e.blue.background.accentPrimary},".CheckboxLabel":{color:r,fontSize:"12px",fontWeight:"500",lineHeight:"15px"},".Action, .MenuAction":{color:r,fontWeight:"400",padding:"4px 8px"},".Action:hover, .MenuAction:hover":{backgroundColor:e.buttonHoveredBackground},".BlockAction:focus, .CodeInput:focus, .Input:focus,.CheckboxInput:focus, .PickerItem:focus, .PickerAction:focus,.MenuAction:focus, .Action:focus, .SecondaryLink:focus":{boxShadow:e.buttonBlueFocusRing},".MenuIcon, .MenuIcon:hover":{fill:r},".Block":{backgroundColor:e.whiteButtonBackground,border:`1px solid ${e.border.primary}`,boxShadow:"none",padding:"16px"},".Icon":{fill:r}}}}function s(e){let[t,i,r,a]=e.match(/[\d.]+/g)??[];return t&&i&&r&&a&&1===parseInt(a)?`rgb(${t}, ${i}, ${r})`:e}i.d(t,{BI:()=>a,CK:()=>o,Og:()=>n})},324996(e,t,i){"use strict";function r(e){let{currency:t,spaceId:r,shouldLogExperimentExposure:n}=e,{experimentGroup:o,isReady:s}=a({spaceId:r,shouldLogExposure:n}),l=function(e){let{currency:t,experimentGroup:r}=e,a=(0,i(56281).VV)({currency:t});return"on"===r?a.filter(e=>"link"!==e):a}({currency:t,experimentGroup:o}),c=(0,i(740893).BI)({...e,paymentMethodTypes:l});return s?c:void 0}function a(e){let{spaceId:t,shouldLogExposure:r}=e,a=function(e){let{spaceId:t,userId:r}=e;return(0,i(579993).K8)(()=>!!t&&!!r&&(!(0,i(514806).isStatsigEnabled)()||!!i(192314).default.state.initialized&&!!i(218744).default.isStatsigReady()&&i(527391).t.USEWITHCAUTION_isFetchedForSpaceAndUserId({spaceId:t,userId:r})),[t,r])}({spaceId:t,userId:(0,i(533992).v3)().currentUser.id});return(0,i(579993).K8)(()=>t&&a?{experimentGroup:i(218744).default.getEligibleGroup({experimentId:"ganondorf_remove_stripe_link",disableExposureLogging:!r})??"control",isReady:!0}:{experimentGroup:void 0,isReady:!1},[a,r,t])}i(730330),i(976614),i.d(t,{cu:()=>a,tL:()=>r})},822284(e,t,i){"use strict";let r=i(546605).Store.createValue({open:!1,analyticsSource:void 0,potentialCampaigns:[]},{name:"BusinessTrialStartModalStore"}),a=i(546605).Store.createValue({open:!1,openedFrom:void 0,recentPageStores:[],verifiedPageStores:[],teamStores:[],workspaceUserStores:[],connectedApps:[],workflowStores:[],modalState:"initial"},{name:"BusinessTrialEndingModalStore"}),n=i(546605).Store.createValue({open:!1,openedFrom:void 0,connectedApps:[],teamStores:[],pageStores:[],onSecondaryButtonClick:void 0},{name:"BusinessTrialLossAversionModalStore"}),o=i(546605).Store.createValue({open:!1,openedFrom:void 0},{name:"BusinessTrialAutoConvertEndModalStore"});i.d(t,{},{B:n,BusinessTrialAutoConvertEndModalStore:o,BusinessTrialEndingModalStore:a,H:r})},188465(e,t,i){"use strict";i.d(t,{B:()=>o});var r=()=>i(129499),a=()=>i(955630);function n(e){for(let t of e){let e=function(e){let t=e.getTitleStore(
1);if(t&&i(521595).n.findNodeFromStore(t))return t}(t);if(e&&t.getType()!==a().xd.code)return{blockStore:t,titleStore:e}}}function o(e){let t,a=n(e);if(!a)return;let o=n([...e].reverse());if(!o)return;let s=(0,i(787926).Ag)({includeNonSelectableListContainer:!1,rootStore:a.blockStore.getHighestContentBlockUIAncestor()});if(!s)return;let l=(0,i(787926).mP)(o.blockStore,s);if(l){for(let e of(0,i(827049).Y_)(l)){let i=e.value.store.getTitleStore();if(i){let e=(0,r().s)(i);e&&(t={store:i,index:e.endIndex})}}if(t)return{start:{store:a.titleStore,index:0},end:t}}}},250943(e,t,i){"use strict";function r(e){let{multiSelection:t}=e;return(0,i(356264).$)(t).map(({store:e,selection:t})=>{let r=(0,i(247438).RQ)(e.getValue()),a=(0,i(247438).xbM)(r,t),{tokensInsideRange:n}=(0,i(247438).AI5)(r,a.startIndex,a.endIndex);return(0,i(536614).r4)(n,e)}).join("\n\n")}i(159952),i.d(t,{E:()=>r})},39939(e,t,i){"use strict";function r(e,t){var r,a;let n,{ThemeStore:o}=e,{mode:l,usingSystemTheme:c}=t;if(i(172474)._u)return;let u={mode:l};o.setState(u),e.mobileNative&&e.mobileNative.setTheme(l,c),n=(0,i(632079).O4)({theme:l}),r={mode:l,usingSystemTheme:c,colors:{white:i(632079).oZ.white,blue:n.blue.background.accentPrimary},borderRadius:4,textColor:n.text.primary,popoverBackgroundColor:n.popoverBackground,popoverBoxShadow:n.shadow.outline.lg,inputBoxShadow:`${n.border.primaryTranslucent} 0 0 0 1px`,inputBackgroundColor:n.background.secondaryTranslucent,dividerColor:n.border.primaryTranslucent,shadowOpacity:0},null===i(775657).electronApi||void 0===i(775657).electronApi||null==(a=i(775657).electronApi.setTheme)||a.call(i(775657).electronApi,r);try{localStorage.setItem("theme",JSON.stringify(u))}catch(e){(0,i(165219).xr)({keyId:"theme",keyValue:JSON.stringify(u),from:"ThemeActions",error:e})}s(l),"dark"===l?(document.body.classList.add("dark"),document.body.classList.add("notion-dark-theme")):(document.body.classList.remove("dark"),document.body.classList.remove("notion-dark-theme"))}async function a(e){let{mobileNative:t}=e,a="light";a=t&&t.api.getTheme?await t.api.getTheme():(0,i(172474).VD)(e),r(e,{mode:a,usingSystemTheme:!0})}i.d(t,{lv:()=>u,C5:()=>l,u7:()=>s,uh:()=>c});let n={light:"rgba(0, 0, 0, 0)",dark:"rgba(0, 0, 0, 0)"},o={light:"#D3D1CB",dark:"rgba(255, 255, 255, 0.2)"};function s(e){if(0===i(190159).A.state)return;let t=document.getElementById("scroll-properties");t&&(t.innerHTML=` 2 * { 3 scrollbar-width: 15px; 4 scrollbar-color: ${o[e]} ${n[e]}; 5 } 6 `)}function l(e){i(199162).A.setState(e)}function c(e){let t=u();switch(t){case"dark":case"light":r(e,{mode:t,usingSystemTheme:!1});break;case"system":a(e);break;default:(0,i(48697).HB)(t)}}function u(){var e;return"dark"===(e=i(199162).A.state||"system")||"light"===e||"system"===e?e:"system"}},487016(e,t,i){"use strict";i(533958),i(435368),i(499468),i(586042),i(169187),i(726090),i(132457),i(219390),i(73168),i(730330),i(976614),i(139583),i(159952);var r=()=>i(436746),a=()=>i(388507),n=()=>i(717673);function o({transaction:e,collectionStore:t,propertyTemplates:s,insertionContext:l,preExistingTemplatePropertyIds:c}){var u,d;let p=(null==(u=t.getParentBlockStore())?void 0:u.getCollectionViewStores().filter(e=>"table"===e.getType()))??[];if(0===p.length)return;let f=[];for(let e of s){let i=(0,n().S1)({collectionStore:t,templateId:e.templateId,instancePointerType:"property"});i&&f.push({property:i.id,visible:!(0,a().Sz)(e),...e.tablePropertyFormat})}if(0!==f.length)for(let t of p){let a=function({storedPropertyFormats:e,propertyFormatsFromTemplate:t,insertionPropertyFormats:r,preExistingTemplatePropertyIds:a}){let n=r??e,o=new Set(n.map(e=>e.property)),s=void 0===a?[]:t.filter(e=>!a.has(e.property)),l=new Set(s.map(e=>e.property)),c=t.filter(e=>!l.has(e.property)&&!o.has(e.property));if(0!==s.length||0!==c.length)return[...(0,i(636013).H)({propertyFormats:n,newPropertyFormats:s}),...c]}({storedPropertyFormats:(null==(d=t.getPropertyFormatsStore("table_properties"))?void 0:d.getValue())??[],propertyFormatsFromTemplate:f,insertionPropertyFormats:(null==l?void 0:l.collectionViewId)===t.id?l.propertyFormats:void 0,preExistingTemplatePropertyIds:c});a&&(0,r().z)({stores:[t],update:{table_properties:a},transaction:e})}}function s({transaction:e,collectionStore:t,propertyTemplates:i}){let a=[];for(let e of i){let i=(0,n().S1)({collectionStore:t,templateId:e.templateId,instancePointerType:"property"});i&&a.push({property:i.id,visible:!0})}let o=t.getFormat().collection_page_properties??[],l=new Set(o.map(e=>e.property)),c=a.filter(e=>!l.has(e.property));c.length&&(0,r().z)({stores:[t],update:{collection_page_properties:[...o,...c]},transaction:e})}function l({environment:e,newPageStore:t,result:r}){if("accepted_template"===r.type||"accepted_empty_collection"===r.type||"accepted_link_database"===r.type){let a=t.getSpaceId();(0,i(323517).createAndCommit)({environment:e,canUndo:!1,cellTarget:a?{spaceWithId:a}:void 0,perform:a=>{let n=t.getTitleValue();if((0,i(787932).z)({store:t,transaction:a,data:{alive:!1}}),"accepted_empty_collection"===r.type&&!(0,i(247438).w9s)(n)){let o=i(970831).B.createChildStore(t,{table:"block",id:r.blockId}
6).getTitleStore();o&&i(53517).yr({environment:e,transaction:a,tokens:n,index:0,store:o})}let o=t.getParentStore();if((null==o?void 0:o.table)==="block"){let e=o.getContentIds();(0,i(787932).z)({store:o,transaction:a,data:{content:e.filter(e=>e!==t.id)}})}},userAction:"clean_up_empty_new_page"})}}function c({environment:e,tabId:t,userAction:r,result:a,existingCollectionViewBlockStore:n,existingCollectionStore:o}){if("canceled"!==a.type){if("accepted_empty_collection"===a.type&&o){let t=o.getKeyStore("name"),n=(0,i(247438).x9d)(a.newCollectionTitle);if(t){let a=o.getSpaceId();(0,i(323517).createAndCommit)({userAction:r,environment:e,canUndo:!0,cellTarget:a?{spaceWithId:a}:void 0,perform:r=>i(53517).R9({environment:e,store:t,transaction:r,value:n})})}}if(n){var s;let e=null==(s=(0,i(444610).i)(n))?void 0:s.settingsStore;e&&(0,i(963405).os)({collectionSettingsStore:e})}if("accepted_template"===a.type&&null!=n&&n.isCollectionView()&&!(null!=n&&n.hasSingleSourceAndNoLinkedCollections())){let r=(0,i(444610).U)(n),o=n.getCollectionViewStores().find(e=>{var t;return(null==(t=e.getCollectionStore())?void 0:t.id)===a.collectionId});if(!r||!o)return;(0,i(979191).t)({environment:e,tabId:t,collectionContextStore:r,collectionViewId:o.id,isFullScreen:r.isFullScreenStore.state,isRootChild:r.isRootChildStore.state,isInPeekRenderer:r.isInPeekRendererStore.state})}}}async function u({environment:e,collectionViewBlockStore:t}){let r=t.id;if(!t.isDefined()){let a=await (0,i(829797).$)({environment:e,blockId:r});if(!a)return;e=await i(274662).T({environment:e,newCurrentUserId:a}),t=new(i(970831)).B(e,{table:"block",id:r}),await t.load()}let a=t.getSpaceId();if(!a)throw Error("Space ID not found for collection block");let n=(0,i(593303).findSpaceViewStore)(a);if(!n)throw Error(`Space view not found for space ID: ${a}`);let o=i(192314).AppStoreSidebarSpaceStore.state;(null==o?void 0:o.id)!==a&&await (0,i(784018).y)({environment:e,spaceViewStore:n});let s=t.getFormat();if((null==s?void 0:s.collection_view_sub_type)==="workflow_template_placeholder"&&null!=s&&s.placeholder_workflow_template_id&&t.isCollectionView()){let{getCollectionTemplateFromId:r}=await i(708370).t.load(),a=r(s.placeholder_workflow_template_id);if(!a)throw Error(`Collection template "${s.placeholder_workflow_template_id}" not found`);let{onNavigateToPlaceholderWorkflowTemplateBlock:n}=await i(903673).O.load();n({environment:e,collectionTemplate:a,collectionViewBlockStore:t})}else(0,i(114020).u)({environment:e,store:t,pageVisitSource:i(254656).y8.WorkflowTemplatesDeeplink,isNewPage:!1})}i.d(t,{Bi:()=>s,My:()=>o,ZM:()=>c,_M:()=>l,navigateToWorkflowTemplateOnboardingModal:()=>u})},726342(e,t,i){"use strict";function r(e){return e instanceof i(681735).h||e instanceof i(695906).SpaceStore||e instanceof i(970831).B}i.d(t,{u:()=>r})},646440(e,t,i){"use strict";i(533958);var r=()=>i(150410),a=()=>i(223753);function n(e){return e.table===i(832375).C0E?e:void 0}function o(e){let{workflowPointer:t,threadPointer:i}=e,r=t??i;if(!r)throw Error("No workflow definition pointer found");return r}function s(e){switch(e.table){case"workflow":return e.id;case"workflow_artifact":return e.getParentId();case"thread":{var t;let r=null==(t=e.getData())?void 0:t.workflow_id;if(r)return r;let a=e.getConfig();if((null==a?void 0:a.type)==="workflow")return a.workflowId;return e.getParentTable()===i(832375).C0E?e.getParentId():void 0}default:(0,i(48697).HB)(e)}}function l(e){var t,i,r,a;let n=e.getData(),o=e.getDraftData(),s=(null==n||null==(t=n.runtime_actor_pointer)?void 0:t.id)??(null==o||null==(i=o.runtime_actor_pointer)?void 0:i.id),l=(null==n||null==(r=n.draft_runtime_actor_pointer)?void 0:r.id)??(null==o||null==(a=o.draft_runtime_actor_pointer)?void 0:a.id);return[...void 0!==s?[s]:[],...void 0!==l?[l]:[]]}function c(e){let{spaceStore:t,workflowStore:a}=e,n=(0,r().getBotIdFromStore)(a);if(n)return i(447003).v.createChildStore(t,{table:"bot",id:n,spaceId:t.id})}function u(e){let{botId:t,environment:n,spaceId:o}=e,s=(0,a().rL)({spaceId:o,botId:t});if(s)return s;if(!n)return;let l=(0,i(203462).zf)(n).getData(n,{spaceId:o});if(l){for(let e of l.agents)if((0,r().getBotIdFromStore)(e)===t)return(0,a().wv)({spaceId:o,botId:t,workflowId:e.id}
6),e.id}}function d(e){return e.table!==i(832375).U6v?e.getDraftDataStore():e.getDataStore()}i.d(t,{Cq:()=>o,Lq:()=>u,NB:()=>n,VN:()=>l,_A:()=>c,d$:()=>d,i4:()=>s})},150410(e,t,i){"use strict";function r(e){var t,r;let a;switch(e.table){case i(832375).U6v:a=null==(t=e.getData())?void 0:t.runtime_actor_pointer;break;case i(832375).C0E:a=(0,i(713569).d)(e).runtime_actor_pointer??(null==(r=e.getPublishedArtifactStore())||null==(r=r.getData())?void 0:r.runtime_actor_pointer);break;default:(0,i(48697).HB)(e)}if(a&&"bot"===a.table)return a.id}i.r(t),i.d(t,{getBotIdFromStore:()=>r})},514827(e,t,i){"use strict";function r(e){let{workflowStore:t,workflowPointer:r,workflowIcon:a,size:n,animated:o}=e,s=t?t.pointer:r,l=a||(0,i(337222).Oy)({baseUrl:i(139424).A.domainBaseUrl||"",shape:"square",color:"gray"});return n<32&&(l=(0,i(337222).Hy)(l)),o&&(l=(0,i(337222).xz)(l)),{pointer:s,icon:(0,i(337222).xr)(l)}}i.d(t,{D:()=>r})},713569(e,t,i){"use strict";function r(e){var t;return(null==(t=e.getModel())?void 0:t.getData())||(0,i(425749).bZ)()}i.d(t,{d:()=>r})},86089(e,t,i){"use strict";i.d(t,{s:()=>o,getWorkflowAgentConfig:()=>a,a:()=>n}),i(730330),i(765324);let r=new(i(246382)).R({key:"agent_memory_database_page",namespace:i(274919).Bq,important:!0,trackingType:"preference"});function a(e){let{isOnboardingAgent:t,searchScopes:a,searchSessionId:n,useWebSearch:o,internetAccess:l,manageWorkers:c,useReadOnlyMode:u,agentMemorySettings:d,model:p,externalAgentModel:f,externalAgentReasoningEffort:g,isCustomAgent:m,isCustomAgentBuilder:h,isCustomAgentCreate:v,workflowId:_,modelFromUser:b,reasoningEffort:y,writerMode:w,useRulePrioritization:x,useCustomAgentDraft:S,databaseAgentConfigMode:k,isAgentResearchRequest:I,environment:M,spaceId:T,spaceStore:C}=e,P=i(886556).z.isZeroRetentionEnabled(),A=(0,i(612608).MI)((0,i(612608).VD)("ai_agent_large_tool_result_computer_offload"),s),j=(0,i(612608).MI)((0,i(612608).VD)("agent_script_agent_runscript_only"),s),B=s("agent_gtm_entity_tools"),E=s("software_factory_page"),R=(0,i(16712).p1)({checkGate:s,enableScriptAgent:!0,isCustomAgent:!!m}),D=(0,i(612608).MI)((0,i(612608).VD)("agent_user_session_context"),s),V=s("agent_crdt_operations"),F=(0,i(612608).MI)((0,i(612608).VD)("agent_card_customization"),s),z=(0,i(612608).MI)((0,i(612608).VD)("agent_system_prompt_as_page"),s),L=(0,i(328765).S)(),U=C??(void 0===T||(null==L?void 0:L.id)===T?L:void 0),N=s("sams_specials"),O=s("elons_specials"),H=s("ai_image_generation")&&!N&&!O&&((null==U?void 0:U.isAiImageGenerationEnabledOnSpace())??!0),q=(0,i(753833).m)({environment:M,spaceStore:U}),K="work_with_core_dbs"===e.onboardingAgentVersion,$=s("agent_markdown_vnext"),W=s("agent_suggested_edits_tools"),Q=s("enable_skills_in_custom_agents"),G=s("agent_update_page_order_updates"),J=s("agent_support_property_reorder"),X=s("agent_stale_view_edit_guard_enabled"),Y=i(218744).default.getConfig({configName:"agent_writer_model_config"}).defaultModel,Z=r.getState(),ee=null==Z?void 0:Z.pageId,et=(0,i(876688).wd)(),ei=et.some(e=>(0,i(281708).yY)(e)),er=s("mail_notification_preferences_tools"),ea=s("outlook_custom_agent_email_connector"),en=s("notion_mail_deprecated"),eo=s("agent_web_research"),es=s("agent_query_calendar_tool")&&ei,el=et.some(e=>(0,i(281708).Xs)(e)&&"outlook"!==e),ec=s("agent_query_mail_tool")&&el,eu=i(218744).default.checkGate({gateName:"agent_rule_priority_hierarchy"}),ed=(0,i(48697).Xk)(i(388021).UX,e.agentMessageKey),ep=!w&&!P&&(void 0===o||o),ef=(0,i(821915).Y)({isHipaa:P,isCustomAgent:!!m});return{type:"workflow",...R,enableAgentDiffs:!K,enableCsvAttachmentSupport:!0,showDatabaseAgentsDiscoverability:q,enableAgentThreadTools:e.enableAgentThreadTools??!1,enableCrdtOperations:V,enableAgentCardCustomization:F,enableSystemPromptAsPage:z,enableUserSessionContext:D,enableLargeToolResultComputerOffload:A,...j?{enableScriptAgentRunScriptOnly:!0}:{},enableScriptAgentGtm:B,enableComputer:ef,enableSoftwareFactoryPage:E,...m?{}:{enableAgentGenerateImage:H},enableQueryCalendar:es,enableQueryMail:ec,enableMailNotificationPreferences:er,enableMailAgentMultiProviderSupport:ea,enableNotionMailDeprecated:en,enableWebResearch:eo,useRulePrioritization:x??eu,memoryDatabasePageId:ee,workflowId:_,availableConnectors:et,searchScopes:w?[]:a??i(425749).R2,useWebSearch:ep,isHipaa:P,internetAccess:l??!1,manageWorkers:c??!1,useReadOnlyMode:!_&&(u??!1),agentMemorySettings:d,writerMode:!!w,model:w?Y:p,externalAgentModel:f,externalAgentReasoningEffort:g,reasoningEffort:y,searchSessionId:n,modelFromUser:!w&&(b??void 0!==p),isCustomAgent:!!m,isCustomAgentBuilder:!!h,isCustomAgentCreate:!!v,isAgentResearchRequest:!!I,useCustomAgentDraft:!!S,enableMarkdownVNext:$,enableSuggestedEditsTools:W,enableSkillsInCustomAgents:Q,updatePageStaleViewGuardEnabled:X,enableUpdatePageOrderUpdates:G,enableAgentSupportPropertyReorder:J,...w||
6(t||"onboarding"===e.oracleThreadType)&&!ed?{}:{enableAgentAskSurvey:!0},...t||"onboarding"===e.oracleThreadType||void 0!==e.onboardingAgentVersion?{disableTodos:!0}:{},databaseAgentConfigMode:!!k,isOnboardingAgent:!!t,onboardingAgentVersion:e.onboardingAgentVersion,agentMessageKey:e.agentMessageKey,isMobile:i(139424).A.isMobile}}function n(){return s("ai_research_mode_script_agent")}function o(e){let{environment:t,searchScope:i,spaceId:r,useWebSearch:n}=e;return{...a({environment:t,spaceId:r,searchScopes:i?[i]:void 0,useWebSearch:n}),enableScriptAgent:!0,isAgentResearchRequest:!0}}function s(e){return i(218744).default.checkGate({gateName:e})}},223753(e,t,i){"use strict";let r=new Map;function a(e){return`${e.spaceId}:${e.botId}`}function n(e){r.set(a(e),e.workflowId)}function o(e){return r.get(a(e))}i.d(t,{rL:()=>o,wv:()=>n})},346596(e,t,i){"use strict";var r=i(635790);function a(e){let{workflowIdFromRoute:t,spaceStore:a}=(0,i(579993).K8)(()=>({workflowIdFromRoute:"agent"===e.RouterStore.state.route.name?e.RouterStore.state.route.workflowId:void 0,spaceStore:i(192314).AppStoreSidebarSpaceStore.state}),[e]);return(0,r.useMemo)(()=>{if(t&&a)return i(360851).N.createChildStore(a,{table:i(832375).C0E,id:t,spaceId:a.id})},[t,a])}function n(e){let t="agent"===e.RouterStore.state.route.name?e.RouterStore.state.route.workflowId:void 0,r=i(192314).AppStoreSidebarSpaceStore.state;if(t&&r)return i(360851).N.createChildStore(r,{table:i(832375).C0E,id:t,spaceId:r.id})}i.d(t,{L:()=>a,k:()=>n})},681008(e,t,i){"use strict";i(635790);var r=i(440302);let a={viewBox:"0 0 20 20",fittedViewBox:"1.64 1.23 16.72 17.53",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M8.833 7.26a2.522 2.522 0 0 1 4.34.022.551.551 0 0 1-.95.555 1.422 1.422 0 0 0-2.446-.012L6.676 13l2.255.366a.55.55 0 0 1-.176 1.085L5.7 13.956a.55.55 0 0 1-.384-.825z"}),(0,r.jsx)("path",{d:"M10.518 8.605a.705.705 0 1 1-.225 1.393.705.705 0 0 1 .225-1.393m-3.719-.602a.706.706 0 1 1-.227 1.393.706.706 0 0 1 .227-1.393M5.146 5.999a2.524 2.524 0 0 1 3.586.23.55.55 0 0 1-.83.72 1.426 1.426 0 0 0-2.023-.13.55.55 0 1 1-.733-.82"}),(0,r.jsx)("path",{d:"M11.258 1.236c4.03 0 7.097 4.047 7.098 8.764s-3.069 8.762-7.098 8.763H8.743l-.375-.012C4.524 18.509 1.645 14.569 1.645 10c0-4.717 3.068-8.763 7.097-8.764zm-2.516 1.1c-3.202 0-5.998 3.31-5.998 7.664 0 4.355 2.796 7.663 5.998 7.663S14.74 14.355 14.74 10s-2.795-7.664-5.998-7.664m6.846 5.354c.164.74.253 1.516.253 2.31 0 3.134-1.356 5.97-3.446 7.522 2.699-.674 4.86-3.693 4.86-7.522a9.7 9.7 0 0 0-.275-2.31zm-.979-2.622q.396.718.672 1.523h1.35a8 8 0 0 0-.784-1.523zm-2.215-2.591a7.6 7.6 0 0 1 1.499 1.492h1.054c-.74-.738-1.614-1.258-2.553-1.492"})]})},n=(0,i(104509).wt)("aiCoin",a,"default");i.d(t,{},{f:n})},937776(e,t,i){"use strict";i(635790);var r=i(440302);let a={viewBox:"0 0 20 20",fittedViewBox:"3.12 3.12 13.75 13.76",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M8 9.875a.625.625 0 1 0 0 1.25h4a.625.625 0 1 0 0-1.25z"}),(0,r.jsx)("path",{d:"M3.125 4.75c0-.897.728-1.625 1.625-1.625h10.5c.898 0 1.625.728 1.625 1.625v1.57c0 .676-.413 1.256-1 1.5v7.43c0 .898-.727 1.625-1.625 1.625h-8.5a1.625 1.625 0 0 1-1.625-1.625V7.82c-.587-.244-1-.824-1-1.5zm11.5 3.195h-9.25v7.305c0 .207.168.375.375.375h8.5a.375.375 0 0 0 .375-.375zm1-1.625V4.75a.375.375 0 0 0-.375-.375H4.75a.375.375 0 0 0-.375.375v1.57c0 .205.164.372.369.375h10.512a.375.375 0 0 0 .369-.375"})]})},n=(0,i(104509).wt)("archiveBox",a,"default");i.d(t,{},{B:n})},138308(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"3.48 3.92 13.04 12.85",svg:(0,i(440302).jsx)("path",{d:"M3.483 4.55c0-.345.28-.625.625-.625h3.5a.625.625 0 1 1 0 1.25H5.617L8.86 8.42A6 6 0 0 1 10 10.007a6 6 0 0 1 1.14-1.588l3.243-3.244h-1.99a.625.625 0 1 1 0-1.25h3.5c.344 0 .624.28.624.625v3.5a.625.625 0 0 1-1.25 0V6.06l-3.243 3.244a4.78 4.78 0 0 0-1.399 3.358v4.108h-1.25v-4.108a4.78 4.78 0 0 0-1.398-3.358L4.733 6.059V8.05a.625.625 0 1 1-1.25 0z"})},a=(0,i(104509).wt)("arrowBranch",r,"default");i.d(t,{},{arrowBranchIcon:a,iconDefinition:r})},695142(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"4.16 4.17 11.67 11.67",directional:!0,svg:(0,i(440302).jsx)("path",{d:"M15.825 5.05a.875.875 0 0 0-.875-.875H7.313a.875.875 0 1 0 0 1.75h5.524L4.393 14.37c-.32.32-.303.857.039 1.198.341.342.878.36 1.198.039l8.445-8.444v5.524a.875.875 0 1 0 1.75 0z"})},a=(0,i(104509).wt)("arrowDiagonalUpRightFill",r,"fill");i.d(t,{},{arrowDiagonalUpRightFillIcon:a,iconDefinition:r})},128743(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"3.12 4.63 13.76 10.75",directional:!0,svg:(0,i(440302).jsx)("path",{d:"M8.943 15.193a.626.626 0 0 1-.885 0l-4.75-4.75a.626.626 0 0 1 0-.885l4.75-4.75a.626.626 0 0 1 .885.885L5.26 9.375h10.99a.625.625 0 1 1 0 1.25H5.26l3.683 3.683a.626.626 0 0 1 0 .885"})},a=(0,i(104509).wt)("arrowStraightLeft",r,"default");i.d(t,{},{arrowStraightLeftIcon:a,iconDefinition:r})},988824(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"3.12 4.64 13.76 10.74",directional:!0,svg:(0,i(440302).jsx)("path",{d:"M11.058 15.193c.244.244.64.244.884 0l4.75-4.75a.626.626 0 0 0 0-.885l-4.75-4.75a.626.626 0 0 0-.884.885l3.682 3.682H3.75a.625.625 0 1 0 0 1.25h10.99l-3.682 3.683a.626.626 0 0 0 0 .885"})},a=(0,i(104509).wt)("arrowStraightRight",r,"default");i.d(t,{},{arrowStraightRightIcon:a,iconDefinition:r})},969278(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 16 16",fittedViewBox:"2.37 3.59 11.26 8.84",directional:!0,svg:(0,i(440302).jsx)("path",{d:"M8.758 12.243c.244.243.64.244.885 0l3.8-3.801a.625.625 0 0 0 0-.884l-3.8-3.8a.626.626 0 0 0-.885.884l2.733 2.733H3a.625.625 0 1 0 0 1.25h8.491l-2.733 2.733a.626.626 0 0 0 0 .885"})},a=(0,i(104509).wt)("arrowStraightRightSmall",r,"small");i.d(t,{},{arrowStraightRightSmallIcon:a,iconDefinition:r})},750748(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 16 16",fittedViewBox:"1.56 3.17 12.06 9.98",directional:!0,svg:(0,i(440302).jsx)("path",{d:"M12.995 3.175c.345 0 .625.28.625.625v4a1.825 1.825 0 0 1-1.825 1.825H3.704l2.453 2.453a.625.625 0 0 1-.884.884l-3.52-3.52a.625.625 0 0 1 0-.884l3.52-3.52a.625.625 0 1 1 .884.884L3.704 8.375h8.091a.575.575 0 0 0 .575-.575v-4c0-.345.28-.625.625-.625"})},a=(0,i(104509).wt)("arrowTurnDownLeftSmall",r,"small");i.d(t,{},{e:a})},623261(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 16 16",fittedViewBox:"2.37 3.17 12.06 9.98",directional:!0,svg:(0,i(440302).jsx)("path",{d:"M3 3.175a.625.625 0 0 0-.625.625v4c0 1.008.817 1.825 1.825 1.825h8.091l-2.453 2.453a.625.625 0 0 0 .884.884l3.52-3.52a.625.625 0 0 0 0-.884l-3.52-3.52a.625.625 0 0 0-.884.884l2.453 2.453H4.2a.575.575 0 0 1-.575-.575v-4A.625.625 0 0 0 3 3.175"})},a=(0,i(104509).wt)("arrowTurnDownRightSmall",r,"small");i.d(t,{},{F:a})},947449(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"3.12 3.12 13.76 13.75",directional:!0,svg:(0,i(440302).jsx)("path",{d:"M3.75 3.125c.345 0 .625.28.625.625v7.097l3.016-2.639a.625.625 0 0 1 .854.028l3.036 3.037 3.485-3.485H12.75a.625.625 0 1 1 0-1.25h3.5c.345 0 .625.28.625.625v3.5a.625.625 0 1 1-1.25 0V8.696l-3.902 3.902a.625.625 0 0 1-.884 0L7.774 9.534l-3.399 2.974v2.242c0 .483.392.875.875.875h11a.625.625 0 1 1 0 1.25h-11a2.125 2.125 0 0 1-2.125-2.125v-11c0-.345.28-.625.625-.625"})},a=(0,i(104509).wt)("chartLineUptrend",r,"default");i.d(t,{},{o:a})},853160(e,t,i){"use strict";i.r(t),i(635790);var r=i(440302);let a={viewBox:"0 0 20 20",fittedViewBox:"2.37 2.37 15.25 15.26",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M12.876 7.982a.625.625 0 1 0-1.072-.644L9.25 11.595 7.815 9.92a.625.625 0 0 0-.95.813l2 2.334a.625.625 0 0 0 1.01-.085z"}),(0,r.jsx)("path",{d:"M10 2.375a7.625 7.625 0 1 0 0 15.25 7.625 7.625 0 0 0 0-15.25M3.625 10a6.375 6.375 0 1 1 12.75 0 6.375 6.375 0 0 1-12.75 0"})]})},n=(0,i(104509).wt)("checkmarkCircle",a,"default");i.d(t,{},{checkmarkCircleIcon:n,iconDefinition:a})},93042(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"2.37 2.37 15.26 15.25",svg:(0,i(440302).jsx)("path",{d:"M2.375 10a7.625 7.625 0 1 1 15.25 0 7.625 7.625 0 0 1-15.25 0m10.5-2.018a.625.625 0 1 0-1.071-.644L9.25 11.595 7.815 9.92a.625.625 0 0 0-.95.813l2 2.334a.625.625 0 0 0 1.01-.085z"})},a=(0,i(104509).wt)("checkmarkCircleFill",r,"fill");i.d(t,{},{checkmarkCircleFillIcon:a,iconDefinition:r})},372365(e,t,i){"use strict";i.r(t),i(635790);var r=i(440302);let a={viewBox:"0 0 16 16",fittedViewBox:"1.87 1.87 12.25 12.25",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M8 3.955a.625.625 0 0 0-.625.625v2.795H5.12a.625.625 0 1 0 0 1.25H8c.345 0 .625-.28.625-.625V4.58A.625.625 0 0 0 8 3.955"}),(0,r.jsx)("path",{d:"M8 1.875a6.125 6.125 0 1 0 0 12.25 6.125 6.125 0 0 0 0-12.25M3.125 8a4.875 4.875 0 1 1 9.75 0 4.875 4.875 0 0 1-9.75 0"})]})},n=(0,i(104509).wt)("clockSmall",a,"small");i.d(t,{},{clockSmallIcon:n,iconDefinition:a})},310585(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 16 16",fittedViewBox:"2.37 1.77 11.26 12.46",svg:(0,i(440302).jsx)("path",{d:"M13.625 4.186q0 .086-.01.168h.01v7.46c0 .502-.287.896-.
6615 1.173-.33.28-.773.503-1.264.678-.989.354-2.313.56-3.746.56s-2.757-.207-3.746-.56c-.491-.175-.933-.399-1.264-.678-.328-.277-.615-.67-.615-1.173v-7.46h.01a1 1 0 0 1-.01-.168c0-.502.287-.896.615-1.173.33-.28.773-.503 1.264-.679.989-.353 2.313-.56 3.746-.56s2.757.207 3.746.56c.491.176.933.4 1.264.679.328.277.615.67.615 1.173m-8.95-.674c-.414.147-.704.308-.879.456-.16.135-.17.21-.171.218 0 .007.011.082.171.217.175.148.465.31.879.457.82.293 1.997.486 3.325.486s2.504-.193 3.325-.486c.414-.148.704-.31.879-.457.168-.142.171-.217.171-.217s-.003-.076-.171-.218c-.175-.148-.465-.309-.879-.456-.82-.294-1.997-.487-3.325-.487s-2.504.193-3.325.487m7.07 2.525c-.988.353-2.312.56-3.745.56s-2.757-.207-3.746-.56a5 5 0 0 1-.629-.268V8c0 .008.01.083.171.218.175.148.465.31.879.457.82.293 1.997.487 3.325.487s2.504-.194 3.325-.487c.414-.148.704-.309.879-.457.16-.135.17-.21.171-.217V5.77q-.295.148-.63.267m-8.12 5.777c0 .007.01.082.171.218.175.148.465.309.879.456.82.294 1.997.487 3.325.487s2.504-.193 3.325-.487c.414-.147.704-.308.879-.456.16-.136.17-.21.171-.218v-2.23q-.295.149-.63.267c-.988.353-2.312.56-3.745.56s-2.757-.207-3.746-.56a5 5 0 0 1-.629-.267z"})},a=(0,i(104509).wt)("collectionSmall",r,"small");i.d(t,{},{H:a})},490648(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"2.88 2.32 14.24 15.36",svg:(0,i(440302).jsx)("path",{d:"M9.294 2.325h3.103c.484 0 .948.192 1.29.534l2.897 2.898c.343.342.535.806.535 1.29v5.903a1.825 1.825 0 0 1-1.825 1.825H12.53v1.075a1.825 1.825 0 0 1-1.825 1.825h-6A1.825 1.825 0 0 1 2.88 15.85v-8.8c0-1.008.817-1.825 1.825-1.825H7.47V4.15c0-1.008.817-1.825 1.825-1.825M9.1 5.76l2.897 2.897c.342.342.534.806.534 1.29v3.578h2.763a.575.575 0 0 0 .575-.575V7.3h-1.975a1.75 1.75 0 0 1-1.75-1.75V3.575h-2.85a.575.575 0 0 0-.575.575v1.318q.208.12.38.292m6.16.44-2.016-2.016V5.55c0 .359.29.65.65.65zm-10.554.275a.575.575 0 0 0-.575.575v8.8c0 .318.258.575.575.575h6a.575.575 0 0 0 .575-.575V10.2H9.306a1.75 1.75 0 0 1-1.75-1.75V6.475zm3.95.609V8.45c0 .359.291.65.65.65h1.366z"})},a=(0,i(104509).wt)("docOnDoc",r,"default");i.d(t,{},{d:a})},802942(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 16 16",fittedViewBox:"2.18 1.73 11.64 12.54",svg:(0,i(440302).jsx)("path",{d:"M7.435 1.735c-.875 0-1.585.71-1.585 1.585v.735H3.765c-.875 0-1.585.71-1.585 1.585v7.04c0 .875.71 1.585 1.585 1.585h4.8c.876 0 1.585-.71 1.585-1.585v-.735h2.085c.876 0 1.585-.71 1.585-1.585V5.638c0-.42-.167-.824-.464-1.121l-2.318-2.318a1.6 1.6 0 0 0-1.12-.464zM7.1 3.32c0-.185.15-.335.335-.335H9.58V4.44c0 .848.687 1.535 1.535 1.535h1.455v4.385c0 .185-.15.335-.335.335H10.15V7.958c0-.42-.167-.824-.464-1.121L7.368 4.519a1.6 1.6 0 0 0-.268-.215zm3.63 1.12v-.781l1.166 1.166h-.78a.385.385 0 0 1-.386-.385m-7.3 1.2c0-.185.15-.335.335-.335H5.91V6.76c0 .848.687 1.535 1.535 1.535H8.9v4.385c0 .185-.15.335-.335.335h-4.8a.335.335 0 0 1-.335-.335zm3.63 1.12v-.781l1.166 1.166h-.78a.385.385 0 0 1-.386-.385"})},a=(0,i(104509).wt)("docOnDocSmall",r,"small");i.d(t,{},{k:a})},682006(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 16 16",fittedViewBox:"1.37 1.37 13.25 13.25",svg:(0,i(440302).jsx)("path",{d:"M3.25 1.375c-1.036 0-1.875.84-1.875 1.875v6c0 1.036.84 1.875 1.875 1.875h1.625v1.625c0 1.036.84 1.875 1.875 1.875h6c1.036 0 1.875-.84 1.875-1.875v-6c0-1.036-.84-1.875-1.875-1.875h-1.625V3.25c0-1.036-.84-1.875-1.875-1.875zM2.625 3.25c0-.345.28-.625.625-.625h6c.345 0 .625.28.625.625v1.625H6.75c-1.036 0-1.875.84-1.875 1.875v3.125H3.25a.625.625 0 0 1-.625-.625zm3.5 3.5c0-.345.28-.625.625-.625h6c.345 0 .625.28.625.625v6c0 .345-.28.625-.625.625h-6a.625.625 0 0 1-.625-.625z"})},a=(0,i(104509).wt)("duplicateSmall",r,"small");i.d(t,{},{a:a})},823811(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"2.37 4.12 15.25 11.75",svg:(0,i(440302).jsx)("path",{d:"M2.375 6.25c0-1.174.951-2.125 2.125-2.125h11c1.174 0 2.125.951 2.125 2.125v7.5a2.125 2.125 0 0 1-2.125 2.125h-11a2.125 2.125 0 0 1-2.125-2.125zm1.25 7.49L7.366 10 3.625 6.259zm.884.885H15.49l-3.74-3.741-1.309 1.308a.625.625 0 0 1-.884 0L8.25 10.884zM12.634 10l3.741 3.741V6.26zM4.509 5.375 10 10.866l5.491-5.491z"})},a=(0,i(104509).wt)("envelope",r,"default");i.d(t,{},{o:a})},319681(e,t,i){"use strict";i(635790);var r=i(440302);let a={viewBox:"0 0 20 20",fittedViewBox:"0.97 2.72 18.06 14.56",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M3.893 2.875a.626.626 0 0 1 .79-.02l.092.088.126.146.016.035.072.105 11.273 13.15a.624.624 0 0 1-1.036.678l-1.615-1.884c-1.12.408-2.339.633-3.611.633-3.757 0-7.049-1.946-8.707-4.843l-.155-.283a1.46 1.46 0 0 1 0-1.358l.155-.284c.89-1.554 2.249-2.835 3.898-3.688L3.826 3.757l-.072-.104a.626.626 0 0 1 .14-.778M6.031 6.33c-1.564.745-2.842 1.913-3.653 3.33l-.134.244a.21.21 0 0 0 0 .196l.134.243c1.426 2.49 4.292 4.214 7.622 4.214a9.3 9.3 0 0 0 2.734-.406l-1.1-1.283a3.3 3.3 0 0 1-1.634.437l-.17-.004a3.3
607 3.307 0 0 1-3.132-3.133l-.004-.17c0-.777.269-1.492.718-2.056zm2.904 3.387q-.037.135-.038.281a1.104 1.104 0 0 0 1.218 1.097zM10 4.195c3.878 0 7.26 2.074 8.862 5.127l.074.163c.125.332.125.7 0 1.032l-.074.163a9.3 9.3 0 0 1-2.987 3.327l-.82-.955c1.15-.764 2.084-1.778 2.7-2.953l.02-.048a.2.2 0 0 0 0-.1l-.02-.048C16.382 7.283 13.438 5.446 10 5.446q-.705 0-1.378.1l-.94-1.098A10.7 10.7 0 0 1 10 4.195"}),(0,r.jsx)("path",{d:"M10.17 6.695a3.307 3.307 0 0 1 3.136 3.302l-.005.17a3.3 3.3 0 0 1-.116.702L9.624 6.713q.186-.022.377-.022z"})]})},n=(0,i(104509).wt)("eyeSlash",a,"default");i.d(t,{},{e:n})},999129(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"3.97 2.68 12.51 14.37",svg:(0,i(440302).jsx)("path",{d:"M10.282 3.66a5.39 5.39 0 0 0-5.217-.54l-.711.305a.63.63 0 0 0-.38.575v12.425a.625.625 0 1 0 1.25 0v-3.913l.333-.142a4.14 4.14 0 0 1 4.008.414 5.39 5.39 0 0 0 5.504.405l1.06-.53a.63.63 0 0 0 .346-.56V4a.625.625 0 0 0-.905-.558l-1.06.53c-1.36.68-2.983.56-4.228-.312m-5.057 7.495V4.412l.332-.142a4.14 4.14 0 0 1 4.008.413 5.39 5.39 0 0 0 5.504.406l.156-.078v6.703l-.715.357c-1.36.68-2.983.56-4.228-.312a5.4 5.4 0 0 0-5.057-.604"})},a=(0,i(104509).wt)("flag",r,"default");i.d(t,{},{M:a})},80086(e,t,i){"use strict";i.r(t),i(635790);var r=i(440302);let a={viewBox:"0 0 16 16",fittedViewBox:"2.14 2.13 11.77 11.77",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M8 10.15c-1.19 0-2.15-.96-2.15-2.15S6.81 5.85 8 5.85s2.15.96 2.15 2.15-.96 2.15-2.15 2.15M8.9 8c0-.5-.4-.9-.9-.9s-.9.4-.9.9.4.9.9.9.9-.4.9-.9"}),(0,r.jsx)("path",{d:"M13.27 6.42c.26.04.46.24.51.5l.03.02c.06.34.1.7.1 1.06 0 .39-.04.77-.11 1.15-.05.26-.26.46-.51.5l-.98.17.57.8c.15.21.15.5 0 .71-.2.29-.43.57-.68.82-.28.28-.58.53-.89.74-.21.15-.5.15-.71 0l-.82-.58-.17.97c-.04.26-.24.46-.5.51-.35.06-.71.1-1.06.1-.39 0-.77-.04-1.15-.11a.63.63 0 0 1-.5-.51l-.17-.98-.8.57c-.21.15-.5.15-.71 0-.29-.2-.57-.43-.82-.68-.28-.28-.53-.57-.74-.89a.62.62 0 0 1 0-.71l.57-.82-.97-.17a.62.62 0 0 1-.51-.5c-.07-.35-.1-.7-.1-1.06 0-.4.04-.78.11-1.15.05-.26.26-.46.51-.5l.98-.17-.57-.8a.62.62 0 0 1 0-.71c.2-.29.43-.57.68-.82.28-.28.57-.53.89-.74.22-.15.5-.15.71 0l.81.57.17-.97c.04-.26.24-.46.5-.51.35-.07.71-.1 1.06-.1.39 0 .77.04 1.14.11.26.05.46.26.5.51l.17.98.8-.57c.21-.14.49-.15.71 0 .29.2.57.43.82.68.29.28.53.58.74.89.15.21.15.5 0 .71l-.58.81zM8 3.38v.02c-.13 0-.27.01-.41.02l-.16.94c-.04.23-.21.42-.43.49-.16.05-.32.11-.48.19-.21.1-.45.08-.64-.05l-.79-.56c-.12.1-.24.21-.35.32s-.2.21-.29.32l.55.77c.13.19.15.44.04.65-.08.14-.14.29-.2.47-.08.22-.26.38-.49.42l-.95.16c-.02.16-.02.32-.02.48 0 .15.01.29.02.43l.94.16c.23.04.42.21.49.43.05.15.11.31.19.47.1.21.08.45-.05.64l-.56.79c.1.12.21.24.32.35l.105.097q.104.101.215.193l.77-.55c.19-.13.44-.15.65-.04.14.08.29.14.47.2.22.08.38.26.42.49l.16.95c.3.03.62.03.9 0l.16-.94c.04-.23.21-.42.43-.49.15-.05.31-.11.47-.19.21-.1.45-.08.64.05l.79.55c.12-.1.24-.21.35-.32l.097-.105q.101-.105.193-.215L11 10.2a.63.63 0 0 1-.04-.65c.08-.14.14-.29.2-.47.08-.22.26-.38.49-.42l.95-.16c.02-.16.02-.32.02-.48s-.01-.3-.02-.43l-.94-.16a.63.63 0 0 1-.49-.43 3 3 0 0 0-.19-.48c-.1-.21-.08-.45.05-.64l.56-.79c-.1-.12-.21-.24-.32-.35s-.21-.2-.32-.29l-.77.55c-.19.13-.44.15-.65.04-.14-.08-.29-.14-.47-.2a.64.64 0 0 1-.42-.49l-.16-.95A4 4 0 0 0 8 3.38"})]})},n=(0,i(104509).wt)("gearSmall",a,"small");i.d(t,{},{gearSmallIcon:n,iconDefinition:a})},451034(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 16 16",fittedViewBox:"1.95 1.94 12.11 12.1",svg:(0,i(440302).jsx)("path",{d:"M8 1.95a6.05 6.05 0 1 1 0 12.1 6.05 6.05 0 0 1 0-12.1m-1.438 6.6c.048 1.194.25 2.247.539 3.016.167.445.353.766.532.967s.304.234.367.234.188-.033.367-.234c.179-.2.365-.522.532-.967.29-.77.491-1.822.54-3.016zm-3.481 0a4.95 4.95 0 0 0 3.326 4.137 5.4 5.4 0 0 1-.336-.734c-.343-.912-.562-2.1-.61-3.403zm7.458 0c-.048 1.303-.267 2.491-.61 3.403q-.15.396-.337.734a4.95 4.95 0 0 0 3.327-4.137zM6.407 3.312A4.95 4.95 0 0 0 3.081 7.45h2.38c.048-1.303.267-2.491.61-3.403q.149-.396.336-.734M8 3.234c-.063 0-.188.033-.367.234-.179.2-.365.523-.532.968-.29.77-.491 1.821-.54 3.015h2.877c-.048-1.194-.25-2.246-.539-3.015-.167-.445-.353-.767-.532-.968S8.063 3.233 8 3.233m1.592.08q.188.336.337.734c.343.912.562 2.1.61 3.403h2.38a4.95 4.95 0 0 0-3.327-4.137"})},a=(0,i(104509).wt)("globeSmall",r,"small");i.d(t,{},{globeSmallIcon:a,iconDefinition:r})},100410(e,t,i){"use strict";i.r(t),i(635790);var r=i(440302);let a={viewBox:"0 0 20 20",fittedViewBox:"5.12 2.37 9.75 15.25",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M7.375 15c0-.345.28-.625.625-.625h4a.625.625 0 1 1 0 1.25H8A.625.625 0 0 1 7.375 15M9 4.375a.625.625 0 1 0 0 1.25h2a.625.625 0 1 0 0-1.25z"}),(0,r.jsx)("path",{d:"M5.125 4.5c0-1.174.951-2.125 2.125-2.125h5.5c1.174 0 2.125.951 2.125 2.125v11a2.125 2.125 0 0 1-2.125 2.125h-5.5A2.125 2.125 0 0 1 5.125 15.5zm2.125-.875a.875.875 0 0 0-.875.875v11c0 .483.392.875.875.875h5.5a.875.875 0 0 0 .875-.875v-11a.875.875 0 0 0-.875-.875z"})]})},n=(0,i(104509).wt)("iPhone",a,"default");i.d(t,{},{iPhoneIcon:n,iconDefinition:a})},870143(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"1.37 6.18 17.25 7.64",svg:(0,i(440302).jsx)("path",{d:"M17.375 10c0-2.206-2.602-3.38-4.256-1.92L10.944 10l2.175 1.92c1.654 1.46 4.256.286 4.256-1.92m-14.75 0c0 2.206 2.602 3.38 4.256 1.92L9.055 10 6.88 8.08C5.227 6.62 2.625 7.794 2.625 10m16 0c0 3.282-3.873 5.03-6.333 2.857L10 10.833l-2.292 2.024c-2.46 2.172-6.333.425-6.333-2.857s3.872-5.03 6.333-2.857L10 9.166l2.292-2.023c2.46-2.172 6.333-.425 6.333 2.857"})},a=(0,i(104509).wt)("infinity",r,"default");i.d(t,{},{Q:a})},950237(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"3.29 3.29 13.41 13.41",svg:(0,i(440302).jsx)("path",{d:"M3.3 4.825c0-.842.683-1.525 1.525-1.525h3.15c.842 0 1.525.683 1.525 1.525v10.35c0 .842-.683 1.525-1.525 1.525h-3.15A1.525 1.525 0 0 1 3.3 15.175zm1.525-.275a.275.275 0 0 0-.275.275v10.35c0 .152.123.275.275.275h3.15a.275.275 0 0 0 .275-.275V4.825a.275.275 0 0 0-.275-.275zm5.675.275v3.15c0 .842.683 1.525 1.525 1.525h3.15c.842 0 1.525-.683 1.525-1.525v-3.15c0-.842-.683-1.525-1.525-1.525h-3.15c-.842 0-1.525.683-1.525 1.525m1.525-.275h3.15c.152 0 .275.123.275.275v3.15a.275.275 0 0 1-.275.275h-3.15a.275.275 0 0 1-.275-.275v-3.15c0-.152.123-.275.275-.275m0 5.95c-.842 0-1.525.683-1.525 1.525v3.15c0 .842.683 1.525 1.525 1.525h3.15c.842 0 1.525-.683 1.525-1.525v-3.15c0-.842-.683-1.525-1.525-1.525zm-.275 1.525c0-.152.123-.275.275-.275h3.15c.152 0 .275.123.275.275v3.15a.275.275 0 0 1-.275.275h-3.15a.275.275 0 0 1-.275-.275z"})},a=(0,i(104509).wt)("layout",r,"default");i.d(t,{},{_:a})},91790(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"4.96 2 10.08 15.99",svg:(0,i(440302).jsx)("path",{d:"M12.21 13.71c-.34 0-.62-.28-.62-.62 0-1.31.7-2.45 1.32-3.46.12-.2.24-.39.36-.58.34-.58.53-1.3.53-2.06 0-2.06-1.7-3.73-3.79-3.73S6.22 4.93 6.22 6.99c0 .76.18 1.47.53 2.06.11.19.23.39.35.58l.023.037c.614 1 1.307 2.129 1.297 3.423 0 .34-.24.61-.63.62-.35 0-.62-.28-.62-.63 0-.96-.55-1.85-1.14-2.8q-.091-.15-.185-.3-.095-.15-.185-.3c-.46-.78-.7-1.71-.7-2.69 0-2.74 2.26-4.98 5.04-4.98s5.04 2.23 5.04 4.98c0 .98-.24 1.92-.7 2.69-.12.2-.24.4-.37.61-.59.95-1.14 1.84-1.14 2.8 0 .34-.28.62-.62.63zm-1.26 4.28h-1.9c-.35 0-.62-.28-.62-.62s.28-.62.62-.62h1.9c.34 0 .62.28.62.62s-.28.62-.62.62M8.1 15.85h3.8c.34 0 .62-.28.62-.62s-.28-.62-.62-.62H8.1c-.34 0-.62.28-.62.62s.27.62.62.62"})},a=(0,i(104509).wt)("lightBulbBright",r,"default");i.d(t,{},{iconDefinition:r,lightBulbBrightIcon:a})},86951(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"4.62 1.77 10.76 15.98",svg:(0,i(440302).jsx)("path",{d:"M12.043 2.444a.625.625 0 0 0-1.13-.41l-6.17 8.55a.625.625 0 0 0 .507.99h3.098l-.401 5.5a.625.625 0 0 0 1.13.412l6.18-8.54a.625.625 0 0 0-.507-.991h-3.099z"})},a=(0,i(104509).wt)("lightningFill",r,"fill");i.d(t,{},{v:a})},921048(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 16 16",fittedViewBox:"1.97 1.97 12.46 12.46",svg:(0,i(440302).jsx)("path",{d:"M7.1 1.975a5.125 5.125 0 1 0 3.155 9.164l3.107 3.107a.625.625 0 1 0 .884-.884l-3.107-3.107A5.125 5.125 0 0 0 7.1 1.975M3.225 7.1a3.875 3.875 0 1 1 7.75 0 3.875 3.875 0 0 1-7.75 0"})},a=(0,i(104509).wt)("magnifyingGlassSmall",r,"small");i.d(t,{},{iconDefinition:r,magnifyingGlassSmallIcon:a})},69858(e,t,i){"use strict";i.r(t),i(635790);var r=i(440302);let a={viewBox:"0 0 16 16",fittedViewBox:"3.37 2.12 9.25 11.75",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M5.75 8.675a.575.575 0 1 0 0 1.15h4.5a.575.575 0 1 0 0-1.15zm0 2a.575.575 0 0 0 0 1.15h4.5a.575.575 0 1 0 0-1.15z"}),(0,r.jsx)("path",{d:"M5.125 2.125a1.75 1.75 0 0 0-1.75 1.75v8.25c0 .966.784 1.75 1.75 1.75h5.75a1.75 1.75 0 0 0 1.75-1.75V6.591c0-.464-.184-.91-.513-1.237L9.396 2.638a1.75 1.75 0 0 0-1.237-.513zm-.5 1.75a.5.5 0 0 1 .5-.5h2.604v1.831c0 .98.794 1.775 1.775 1.775h1.871v5.144a.5.5 0 0 1-.5.5h-5.75a.5.5 0 0 1-.5-.5zm4.254 1.331V3.888l1.944 1.943h-1.32a.625.625 0 0 1-.624-.625"})]})},n=(0,i(104509).wt)("pageSmall",a,"small");i.d(t,{},{iconDefinition:a,pageSmallIcon:n})},348126(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"4.19 4.19 11.62 11.62",svg:(0,i(440302).jsx)("path",{d:"m15.543 5.75-.684.684-1.288-1.289.692-.69a.91.91 0 0 1 1.28 0c.35.35.35.93 0 1.28zM6.11 15.183l7.914-7.914-1.289-1.29-7.92 7.909a1.3 1.3 0 0 0-.275.457l-.335 1.082c-.061.228.152.442.366.366l1.082-.336q.251-.068.457-.274"})},a=(0,i(104509).wt)("pencil",r,"default");i.d(t,{},{iconDefinition:r,pencilIcon:a})},109925(e,t,i){"use strict";i.r(t),i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"2.58 2.77 14.78 14.57",svg:(0,i(440302).jsx)("path",{d:"M4.84 3.093a1.34 1.34 0 0 1 1.881.158l2.52 2.96a1.524 1.524 0 0 1-.083 2.066l-1.22 1.22 2.715 2.717 1.221-1.221a1.525 1.525 0 0 1 2.066-.084l2.962 2.517a1.29 1.29 0 0 1 .16 1.805l-.559.678a3.94 3.94 0 0 1-3.447 1.414l-.16-.016A11.564 11.564 0 0 1 2.614 7.299 3.88 3.88 0 0 1 3.97 3.822zm.93.969a.09.09 0 0 0-.128-.011l-.869.729a2.63 2.63 0 0 0-.919 2.358 10.314 10.314 0 0 0 9.17 8.925l.16.017a2.7 2.7 0 0 0 2.355-.966l.558-.678a.04.04 0 0 0-.005-.057l-2.961-2.517a.275.275 0 0 0-.373.015l
6-1.663 1.663a.625.625 0 0 1-.884 0l-3.6-3.6a.625.625 0 0 1 0-.884l1.663-1.663a.275.275 0 0 0 .015-.373z"})},a=(0,i(104509).wt)("phone",r,"default");i.d(t,{},{iconDefinition:r,phoneIcon:a})},799472(e,t,i){"use strict";let r=(0,i(104509).xh)("questionMarkCircle",{default:{loader:()=>i.e(88135).then(i.bind(i,80094))},small:{loader:()=>i.e(88135).then(i.bind(i,211052))},fill:{loader:()=>i.e(88135).then(i.bind(i,769980))},fillSmall:{loader:()=>i.e(88135).then(i.bind(i,479491))}},["question","query","inquiry","uncertain","unknown","help","circle"]);i.d(t,{},{u:r})},211052(e,t,i){"use strict";i.r(t),i(635790);var r=i(440302);let a={viewBox:"0 0 16 16",fittedViewBox:"1.87 1.87 12.25 12.25",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M7.98 4.456c-1.044 0-2.053.604-2.298 1.584a.575.575 0 1 0 1.116.279c.083-.334.513-.713 1.183-.713.79 0 1.204.49 1.204.85 0 .219-.134.47-.443.658l-.011.006-.67.458-.003.002a1.82 1.82 0 0 0-.803 1.488.575.575 0 1 0 1.15 0c0-.193.102-.4.306-.541l.642-.44c.554-.342.982-.92.982-1.63 0-1.22-1.179-2-2.354-2m-.118 5.688a.775.775 0 1 0 0 1.55.775.775 0 0 0 0-1.55"}),(0,r.jsx)("path",{d:"M8 1.875a6.125 6.125 0 1 0 0 12.25 6.125 6.125 0 0 0 0-12.25M3.125 8a4.875 4.875 0 1 1 9.75 0 4.875 4.875 0 0 1-9.75 0"})]})},n=(0,i(104509).wt)("questionMarkCircleSmall",a,"small");i.d(t,{},{iconDefinition:a,questionMarkCircleSmallIcon:n})},632054(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 20 20",fittedViewBox:"1.37 3.12 17.25 13.75",svg:(0,i(440302).jsx)("path",{d:"M15.625 13.875h.875a2.125 2.125 0 0 0 2.125-2.125v-6.5A2.125 2.125 0 0 0 16.5 3.125h-10A2.125 2.125 0 0 0 4.375 5.25v.875H3.5A2.125 2.125 0 0 0 1.375 8.25v6.5c0 1.174.951 2.125 2.125 2.125h10a2.125 2.125 0 0 0 2.125-2.125zm-9.125 0h7.875v.875a.875.875 0 0 1-.875.875h-10a.875.875 0 0 1-.875-.875v-6.5c0-.483.392-.875.875-.875h.875v4.375c0 1.174.951 2.125 2.125 2.125m-.875-2.125v-6.5c0-.483.392-.875.875-.875h10c.483 0 .875.392.875.875v6.5a.875.875 0 0 1-.875.875h-10a.875.875 0 0 1-.875-.875"})},a=(0,i(104509).wt)("rectangleOnRectangle",r,"default");i.d(t,{},{T:a})},53634(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 16 16",fittedViewBox:"1.17 1.53 13.65 12.93",svg:(0,i(440302).jsx)("path",{d:"M4.577 1.536a.7.7 0 0 0-.7.7c0 .362-.236.87-.684 1.317-.448.448-.955.683-1.316.683a.7.7 0 1 0 0 1.4c.36 0 .868.236 1.316.684s.684.955.684 1.316a.7.7 0 1 0 1.4 0c0-.36.235-.868.683-1.316s.955-.684 1.317-.684a.7.7 0 1 0 0-1.4c-.362 0-.87-.235-1.317-.683-.448-.448-.683-.955-.683-1.317a.7.7 0 0 0-.7-.7m-.394 3.007q.208-.208.394-.451a4.4 4.4 0 0 0 .844.844 4.4 4.4 0 0 0-.844.845 4.4 4.4 0 0 0-.845-.845 4 4 0 0 0 .451-.393m5.887.413a.7.7 0 0 0-.7.7c0 .831-.392 1.674-1.036 2.318S6.847 9.01 6.016 9.01a.7.7 0 1 0 0 1.4c.831 0 1.674.392 2.318 1.036s1.036 1.487 1.036 2.318a.7.7 0 1 0 1.4 0c0-.831.392-1.674 1.036-2.318s1.487-1.036 2.318-1.036a.7.7 0 1 0 0-1.4c-.831 0-1.674-.392-2.318-1.036S10.77 6.487 10.77 5.656a.7.7 0 0 0-.7-.7m-.746 4.008a5.2 5.2 0 0 0 .746-.941 5.2 5.2 0 0 0 1.687 1.687 5.2 5.2 0 0 0-1.687 1.687A5.2 5.2 0 0 0 8.383 9.71a5.2 5.2 0 0 0 .94-.746"})},a=(0,i(104509).wt)("sparklesSmall",r,"small");i.d(t,{},{m:a})},238542(e,t,i){"use strict";i.r(t),i(635790);var r=i(440302);let a={viewBox:"0 0 16 16",fittedViewBox:"1 2.51 14 10.97",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M4.384 7.442a.54.54 0 1 1 0 1.08.54.54 0 0 1 0-1.08m2.412 0a.54.54 0 1 1 0 1.08.54.54 0 0 1 0-1.08M4.384 5.03a.54.54 0 1 1 0 1.08.54.54 0 0 1 0-1.08m2.412 0a.54.54 0 1 1 0 1.08.54.54 0 0 1 0-1.08m4.824 4.824a.54.54 0 1 1 0 1.08.54.54 0 0 1 0-1.08m0-2.412a.54.54 0 1 1 0 1.08.54.54 0 0 1 0-1.08"}),(0,r.jsx)("path",{d:"M8.128 2.515c.941 0 1.705.763 1.705 1.705v.714h3.115c.942 0 1.705.763 1.705 1.705v6.22c0 .346-.28.625-.625.625H1.972a.625.625 0 0 1-.625-.625V4.22c0-.94.763-1.704 1.705-1.704zm-5.076 1.25a.456.456 0 0 0-.455.455v8.014h1.288v-1.84a.5.5 0 0 1 .5-.5h2.412a.5.5 0 0 1 .5.5v1.84h1.286V4.22a.455.455 0 0 0-.455-.455zm6.781 8.47h3.57V6.638a.455.455 0 0 0-.455-.455H9.833zm-4.948 0h1.412v-1.341H4.885z"})]})},n=(0,i(104509).wt)("teamspaceSmall",a,"small");i.d(t,{},{iconDefinition:a,teamspaceSmallIcon:n})},862868(e,t,i){"use strict";i(635790);let r={viewBox:"0 0 16 16",fittedViewBox:"2.12 3.37 11.75 9.25",svg:(0,i(440302).jsx)("path",{d:"M4 3.375c-1.036 0-1.875.84-1.875 1.875v5.5c0 1.036.84 1.875 1.875 1.875h8c1.036 0 1.875-.84 1.875-1.875v-5.5c0-1.036-.84-1.875-1.875-1.875zM3.375 5.25c0-.345.28-.625.625-.625h3.375v1.417h-4zm5.25.792V4.625H12c.345 0 .625.28.625.625v.792zm0 2.666V7.292h4v1.416zm-5.25 0V7.292h4v1.416zm0 2.042v-.792h4v1.417H4a.625.625 0 0 1-.625-.625m5.25.625V9.958h4v.792c0 .345-.28.625-.625.625z"})},a=(0,i(104509).wt)("viewTableSmall",r,"small");i.d(t,{},{a:a})},927364(e,t,i){"use strict";i.r(t),i(635790);var r=i(440302);let a={viewBox:"0 0 20 20",fittedViewBox:"2.37 2.37 15.26 15.25",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M12.817 7.183a.625.625 0 0 1 0 .884L10.884 10l1.933 1.933a.625.625 0 1 1-.884.884L10 10.884l-1.933 1.933a.625.625 0 1 1-.884-.884L9.116 10 7.183 8.067a.625.625 0 1 1 .884-.884L10 9.116l1.933-1.933a.625.625 0 0 1 .884 0"}),(0,r.jsx)("path",{d:"M2.375 10a7.625 7.625 0 1 1 15.25 0 7.625 7.625 0 0 1-15.25 0M10 3.625a6.375 6.375 0 1 0 0 12.75 6.375 6.375 0 0 0 0-12.75"})]})},n=(0,i(104509).wt)("xMarkCircle",a,"default");i.d(t,{},{iconDefinition:a,xMarkCircleIcon:n})},680983(e,t,i){"use strict";i.r(t),i(635790);var r=i(440302);let a={viewBox:"0 0 20 20",fittedViewBox:"3.49 1.5 13.02 16.01",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("g",{className:"logo-light-mode",children:(0,r.jsx)("path",{fill:"#000",d:"M12.927 5.37q.17 0 .525.04.364.032.825.178.46.145.938.469.476.323.881.905-.041.025-.307.219-.26.194-.59.566a3.4 3.4 0 0 0-.582.93q-.243.557-.243 1.333 0 .89.307 1.504.315.615.728.995.42.38.744.557.331.17.355.178-.008.033-.12.364a9 9 0 0 1-.357.84q-.233.51-.614 1.068-.348.493-.72.946a3.4 3.4 0 0 1-.8.736 1.7 1.7 0 0 1-.97.29q-.413 0-.704-.096a5 5 0 0 1-.558-.227 4.4 4.4 0 0 0-.573-.218 2.7 2.7 0 0 0-.785-.097q-.615 0-1.027.
6162-.403.17-.768.331a2.1 2.1 0 0 1-.857.162q-.75 0-1.326-.598a14 14 0 0 1-1.164-1.431 9 9 0 0 1-.84-1.528 10.5 10.5 0 0 1-.607-1.836 8.5 8.5 0 0 1-.226-1.94q0-1.552.59-2.611T5.594 5.96a3.73 3.73 0 0 1 1.916-.542q.525 0 .986.17.47.17.873.348.405.17.736.17.315 0 .744-.179.428-.186.946-.371.525-.186 1.132-.186m-.566-1.31a3.3 3.3 0 0 1-1.019.816q-.606.324-1.148.324a1 1 0 0 1-.218-.024l-.025-.114a2 2 0 0 1-.008-.178q0-.614.267-1.196t.615-.97q.428-.51 1.083-.85.663-.339 1.27-.363.023.138.024.315 0 .623-.235 1.213a3.8 3.8 0 0 1-.606 1.027"})}),(0,r.jsx)("g",{className:"logo-dark-mode",children:(0,r.jsx)("path",{fill:"#fff",d:"M12.927 5.37q.17 0 .525.04.364.032.825.178.46.145.938.469.476.323.881.905-.041.025-.307.219-.26.194-.59.566a3.4 3.4 0 0 0-.582.93q-.243.557-.243 1.333 0 .89.307 1.504.315.615.728.995.42.38.744.557.331.17.355.178-.008.033-.12.364a9 9 0 0 1-.357.84q-.233.51-.614 1.068-.348.493-.72.946a3.4 3.4 0 0 1-.8.736 1.7 1.7 0 0 1-.97.29q-.413 0-.704-.096a5 5 0 0 1-.558-.227 4.4 4.4 0 0 0-.573-.218 2.7 2.7 0 0 0-.785-.097q-.615 0-1.027.162-.403.17-.768.331a2.1 2.1 0 0 1-.857.162q-.75 0-1.326-.598a14 14 0 0 1-1.164-1.431 9 9 0 0 1-.84-1.528 10.5 10.5 0 0 1-.607-1.836 8.5 8.5 0 0 1-.226-1.94q0-1.552.59-2.611T5.594 5.96a3.73 3.73 0 0 1 1.916-.542q.525 0 .986.17.47.17.873.348.405.17.736.17.315 0 .744-.179.428-.186.946-.371.525-.186 1.132-.186m-.566-1.31a3.3 3.3 0 0 1-1.019.816q-.606.324-1.148.324a1 1 0 0 1-.218-.024l-.024-.114a2 2 0 0 1-.009-.178q0-.614.267-1.196t.615-.97q.428-.51 1.083-.85.663-.339 1.27-.363.023.138.024.315 0 .623-.235 1.213a3.8 3.8 0 0 1-.606 1.027"})})]})},n=(0,i(104509).wt)("apple",a,"default");i.d(t,{},{appleIcon:n,iconDefinition:a})},598974(e,t,i){"use strict";i.r(t),i(635790);var r=i(440302);let a={viewBox:"0 0 20 20",fittedViewBox:"2.93 4.12 14.13 11.75",svg:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("g",{className:"logo-light-mode",children:[(0,r.jsx)("path",{fill:"#FFB110",fillRule:"evenodd",d:"M6.655 15.32a3.717 3.717 0 0 0 3.717-3.76H9.06c-.213 0-.43 0-.614-.016a1.9 1.9 0 0 1-.722-.19 1.88 1.88 0 0 1-.822-.821 1.9 1.9 0 0 1-.19-.722 8 8 0 0 1-.014-.613V7.885a3.73 3.73 0 0 1 1.927.569 3.719 3.719 0 0 0-5.687 3.148 3.72 3.72 0 0 0 3.718 3.718z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#097FE8",d:"M12.436 10.876c.388-.673.582-1.01.837-1.123a.86.86 0 0 1 .694 0c.254.114.449.45.836 1.123l1.703 2.948c.388.673.583 1.01.553 1.286a.85.85 0 0 1-.347.602c-.224.163-.613.163-1.39.163h-3.405c-.776 0-1.165 0-1.39-.163a.86.86 0 0 1-.347-.602c-.03-.277.165-.613.554-1.286z"}),(0,r.jsx)("path",{fill:"#F64932",fillRule:"evenodd",d:"M7.723 5.493c0-.48 0-.718.093-.901a.86.86 0 0 1 .374-.374c.183-.093.422-.093.9-.093h3.676c.478 0 .717 0 .9.093a.86.86 0 0 1 .374.374c.092.183.092.422.092.9v3.233a1.88 1.88 0 0 0-1.277.092c-.386.17-.629.47-.789.696q-.266.396-.498.814l-.02.036-.1.17H9.09c-.478 0-.717 0-.9-.091a.86.86 0 0 1-.374-.374c-.092-.183-.092-.422-.092-.901z",clipRule:"evenodd"})]}),(0,r.jsxs)("g",{className:"logo-dark-mode",children:[(0,r.jsx)("path",{fill:"#FFB110",fillRule:"evenodd",d:"M6.655 15.32a3.717 3.717 0 0 0 3.717-3.76H9.06c-.213 0-.43 0-.614-.016a1.9 1.9 0 0 1-.722-.19 1.88 1.88 0 0 1-.822-.821 1.9 1.9 0 0 1-.19-.722 8 8 0 0 1-.014-.613V7.885a3.73 3.73 0 0 1 1.927.569 3.719 3.719 0 0 0-5.687 3.148 3.72 3.72 0 0 0 3.718 3.718z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#097FE8",d:"M12.436 10.876c.388-.673.582-1.01.837-1.123a.86.86 0 0 1 .694 0c.254.114.449.45.836 1.123l1.703 2.948c.388.673.583 1.01.553 1.286a.86.86 0 0 1-.347.602c-.224.163-.613.163-1.39.163h-3.405c-.776 0-1.165 0-1.39-.163a.86.86 0 0 1-.347-.602c-.03-.277.165-.613.554-1.286z"}),(0,r.jsx)("path",{fill:"#F64932",fillRule:"evenodd",d:"M7.723 5.493c0-.48 0-.718.093-.901a.86.86 0 0 1 .374-.374c.183-.093.422-.093.9-.093h3.676c.478 0 .717 0 .9.093.16.082.291.213.374.374.092.183.092.422.092.9v3.233a1.88 1.88 0 0 0-1.277.092c-.386.17-.629.47-.788.696q-.267.396-.499.814l-.02.036-.1.17H9.09c-.478 0-.717 0-.9-.091a.86.86 0 0 1-.374-.374c-.092-.183-.092-.422-.092-.901z",clipRule:"evenodd"})]})]})},n=(0,i(104509).wt)("notionTemplate",a,"default");i.d(t,{},{iconDefinition:a,notionTemplateIcon:n})},352783(e,t,i){"use strict";function r(e,t){let r=o(t);return(0,i(48697).objectKeys)(r).filter(t=>e.includes(t)).sort((e,i)=>r[e].languageNameInCurrentLanguage.localeCompare(r[i].languageNameInCurrentLanguage,t.locale))}i(730330),i(976614);let a=(0,i(327219).YK)({"en-US":{defaultMessage:"English (US)",id:"languagePicker.captions.englishUS"},"de-DE":{defaultMessage:"German",id:"languagePicker.captions.germanDE"}
6,"ko-KR":{defaultMessage:"Korean",id:"languagePicker.captions.koreanKo"},"zh-CN":{defaultMessage:"Simplified Chinese",id:"languagePicker.captions.chineseS"},"zh-TW":{defaultMessage:"Traditional Chinese",id:"languagePicker.captions.chineseT"},"ja-JP":{defaultMessage:"Japanese",id:"languagePicker.captions.japaneseJa"},"es-ES":{defaultMessage:"Spanish (Spain)",id:"languagePicker.captions.spanishEs"},"es-LA":{defaultMessage:"Spanish (Latin America)",id:"languagePicker.captions.spanishLatam"},"pt-BR":{defaultMessage:"Portuguese (Brazil)",id:"languagePicker.captions.portugueseBr"},"fr-FR":{defaultMessage:"French (France)",id:"languagePicker.captions.frenchFr"},"da-DK":{defaultMessage:"Danish",id:"languagePicker.captions.danishDk"},"fi-FI":{defaultMessage:"Finnish",id:"languagePicker.captions.finnishFi"},"nb-NO":{defaultMessage:"Norwegian",id:"languagePicker.captions.norwegianNo"},"nl-NL":{defaultMessage:"Dutch",id:"languagePicker.captions.dutchNl"},"sv-SE":{defaultMessage:"Swedish",id:"languagePicker.captions.swedishSe"},"en-GB":{defaultMessage:"English (UK)",id:"languagePicker.captions.englishGB"},"th-TH":{defaultMessage:"Thai",id:"languagePicker.captions.thaiTh"},"id-ID":{defaultMessage:"Indonesian",id:"languagePicker.captions.indonesianId"},"vi-VN":{defaultMessage:"Vietnamese",id:"languagePicker.captions.vietnameseVn"},"he-IL":{defaultMessage:"Hebrew",id:"languagePicker.captions.hebrewIl"},"ar-SA":{defaultMessage:"Arabic",id:"languagePicker.captions.arabicSa"},"it-IT":{defaultMessage:"Italian",id:"languagePicker.captions.italianIt"},pseudo:{defaultMessage:"Pseudolocale",id:"languagePicker.captions.pseudolocale"}}),n={"en-US":"English (US)","de-DE":"Deutsch","ko-KR":"íêµì´","zh-CN":"ç®ä½ä¸æ","zh-TW":"ç¹é«ä¸æ","ja-JP":"æ¥æ¬èª","es-ES":"Español (España)","es-LA":"Español (Latinoamérica)","pt-BR":"Português (Brasil)","fr-FR":"Français (France)","da-DK":"Dansk","fi-FI":"Suomi","nb-NO":"Norsk","nl-NL":"Nederlands","sv-SE":"Svenska","en-GB":"English (UK)","th-TH":"ภาษาà¹à¸à¸¢","id-ID":"Bahasa Indonesia","vi-VN":"Tiếng Viá»t","he-IL":"×¢×ר×ת","ar-SA":"Ø§ÙØ¹Ø±Ø¨ÙØ©","it-IT":"Italiano",pseudo:"ð¤¡Pseudolocaleð¤¡"};function o(e){let t={};for(let r of(0,i(48697).objectKeys)(n))t[r]={languageNameInThatLanguage:n[r],languageNameInCurrentLanguage:e.formatMessage(a[r])};return t}function s(e){return{en:{name:e.formatMessage({defaultMessage:"English",id:"languagePicker.name.english"}),abbreviation:e.formatMessage({defaultMessage:"EN",id:"languagePicker.abbreviation.english"})},de:{name:e.formatMessage({defaultMessage:"German",id:"languagePicker.name.german"}),abbreviation:e.formatMessage({defaultMessage:"DE",id:"languagePicker.abbreviation.german"})},ko:{name:e.formatMessage({defaultMessage:"Korean",id:"languagePicker.name.korean"}),abbreviation:e.formatMessage({defaultMessage:"KO",id:"languagePicker.abbreviation.korean"})},zh:{name:e.formatMessage({defaultMessage:"Chinese",id:"languagePicker.name.chinese"}),abbreviation:e.formatMessage({defaultMessage:"ZH",id:"languagePicker.abbreviation.chinese"})},ja:{name:e.formatMessage({defaultMessage:"Japanese",id:"languagePicker.name.japanese"}),abbreviation:e.formatMessage({defaultMessage:"JA",id:"languagePicker.abbreviation.japanese"})},es:{name:e.formatMessage({defaultMessage:"Spanish",id:"languagePicker.name.spanish"}),abbreviation:e.formatMessage({defaultMessage:"ES",id:"languagePicker.abbreviation.spanish"})},pt:{name:e.formatMessage({defaultMessage:"Portuguese",id:"languagePicker.name.portuguese"}),abbreviation:e.formatMessage({defaultMessage:"PT",id:"languagePicker.abbreviation.portuguese"})},fr:{name:e.formatMessage({defaultMessage:"French",id:"languagePicker.name.french"}),abbreviation:e.formatMessage({defaultMessage:"FR",id:"languagePicker.abbreviation.french"})},da:{name:e.formatMessage({defaultMessage:"Danish",id:"languagePicker.name.danish"}),abbreviation:e.formatMessage({defaultMessage:"DA",id:"languagePicker.abbreviation.danish"})},fi:{name:e.formatMessage({defaultMessage:"Finnish",id:"languagePicker.name.finnish"}),abbreviation:e.formatMessage({defaultMessage:"FI",id:"languagePicker.abbreviation.finnish"})},nb:{name:e.formatMessage({defaultMessage:"Norwegian",id:"languagePicker.name.norwegian"}),abbreviation:e.formatMessage({defaultMessage:"NB",id:"languagePicker.abbreviation.norwegian"})},nl:{name:e.formatMessage({defaultMessage:"Dutch",id:"languagePicker.name.dutch"}),abbreviation:e.formatMessage({defaultMessage:"NL",id:"languagePicker.abbreviation.dutch"})},sv:{name:e.formatMessage({defaultMessage:"Swedish",id:"languagePicker.name.swedis
6h"}),abbreviation:e.formatMessage({defaultMessage:"SV",id:"languagePicker.abbreviation.swedish"})},th:{name:e.formatMessage({defaultMessage:"Thai",id:"languagePicker.name.thai"}),abbreviation:e.formatMessage({defaultMessage:"TH",id:"languagePicker.abbreviation.thai"})},vi:{name:e.formatMessage({defaultMessage:"Vietnamese",id:"languagePicker.name.vietnamese"}),abbreviation:e.formatMessage({defaultMessage:"VI",id:"languagePicker.abbreviation.vietnamese"})},id:{name:e.formatMessage({defaultMessage:"Indonesian",id:"languagePicker.name.indonesian"}),abbreviation:e.formatMessage({defaultMessage:"ID",id:"languagePicker.abbreviation.indonesian"})},he:{name:e.formatMessage({defaultMessage:"Hebrew",id:"languagePicker.name.hebrew"}),abbreviation:e.formatMessage({defaultMessage:"HE",id:"languagePicker.abbreviation.hebrew"})},ar:{name:e.formatMessage({defaultMessage:"Arabic",id:"languagePicker.name.arabic"}),abbreviation:e.formatMessage({defaultMessage:"AR",id:"languagePicker.abbreviation.arabic"})},it:{name:e.formatMessage({defaultMessage:"Italian",id:"languagePicker.name.italian"}),abbreviation:e.formatMessage({defaultMessage:"IT",id:"languagePicker.abbreviation.italian"})}}}i.d(t,{O8:()=>r,Vn:()=>o,W$:()=>s},{tr:a,vC:n})},517122(e,t,i){"use strict";function r(e){let t,i,r;return async(...a)=>t?(r=a,i)?i:i=t.then(()=>(i=void 0,t=e(...r))):t=e(...a)}i.d(t,{A:()=>r})},33529(e,t,i){"use strict";function r(e){var t;let{actionModels:r,id:a}=e,n=(0,i(459895).y)(a),o="action"===n.source?r.find(e=>e.id===n.action_id):void 0;return{automationValueInfo:n,collectionPointer:(0,i(48697).O9)(o)&&o.isType("create_page")?null==(t=o.getConfig())?void 0:t.collection:void 0,actionModel:o}}i(730330),i(139583),i.d(t,{y:()=>r})},34969(e,t,i){"use strict";let r={manual:"manual",resultsAdvanced:"results-advanced",yAscending:"y-ascending",yDescending:"y-descending",xAscending:"x-ascending",xDescending:"x-descending"};function a(e){switch(null==e?void 0:e.type){case"manual":return r.manual;case"descending":return r.xDescending;default:return r.xAscending}}function n(e){return!(0,i(525918).$)(e)}i.d(t,{e0:()=>n,gN:()=>a},{S0:r})},543131(e,t,i){"use strict";i.d(t,{},{O:"notion://database/hide_subitems_filter",j:"notion://database/hide_parents_filter"})},179070(e,t,i){"use strict";i.d(t,{v:()=>n,u:()=>o}),i(533958),i(635790);let r={BRL:{currencyCode:"BRL",minorUnitDigits:2},EUR:{currencyCode:"EUR",minorUnitDigits:2},GBP:{currencyCode:"GBP",minorUnitDigits:2},JPY:{currencyCode:"JPY",minorUnitDigits:0},KRW:{currencyCode:"KRW",minorUnitDigits:0},USD:{currencyCode:"USD",minorUnitDigits:2}};var a=i(440302);function n(e){return(0,a.jsx)(a.Fragment,{children:o(e)})}function o(e){let{cost:t,intl:a}=e,n=e.trailingZeroDisplay??"auto",o=e.currencySign??"accounting",s=i(972457).MoneyModel.fromValue(t),l=r[s.currencyCode];if(!l)throw Error(`Unsupported currency code: ${s.currencyCode}`);let c=a.formatNumber(s.amount/Math.pow(10,l.minorUnitDigits),{style:"currency",currency:s.currencyCode,currencyDisplay:"symbol",currencySign:o,numberingSystem:"latn"});return"stripIfInteger"===n&&(c=c.replace(RegExp(`[.,]0{${l.minorUnitDigits}}(\\s+.*)?$`),"$1")),c}},324994(e,t,i){"use strict";function r(e){return t=>({getRecordModel:e})}i.d(t,{z:()=>r})},245526(e,t,i){"use strict";function r(e,t){return[...e.filter(e=>(0,i(48697).Xk)(t,e)),...t.filter(t=>!(0,i(48697).Xk)(e,t))]}i(730330),i(976614);let a=r(["en-US","ko-KR","ja-JP","fr-FR","de-DE","es-ES","es-LA","pt-BR","nb-NO","fi-FI","sv-SE","da-DK","nl-NL","zh-CN","zh-TW","en-GB","id-ID","th-TH","vi-VN","ar-SA","he-IL","it-IT"],(0,i(377385).PK)()),n=r(["en-US","ko-KR","ja-JP","fr-FR","de-DE","es-ES","es-LA","pt-BR","zh-CN","zh-TW","id-ID","th-TH","vi-VN","he-IL","ar-SA","fi-FI","da-DK","nl-NL","nb-NO","sv-SE","it-IT"],(0,i(377385).B8)());function o(e){if(!e)return;let t="en-GB"===e?"en-US":e;return(0,i(48697).Xk)(n,t)?t:void 0}function s(e){return!!(0,i(48697).Xk)(a,e)}i.d(t,{AX:()=>o,oW:()=>s},{GI:a,dU:n})},535425(e,t,i){"use strict";i.d(t,{},{F:"doc_type"})},543858(e,t,i){"use strict";function r(e){let{workspaceDefaultSkills:t,groupDefaultSkills:i,currentUserGroupIds:r}=e,a=new Map,n=e=>{var t,i;let r=a.get(e.skill_page_id);
6a.set(e.skill_page_id,r?(t=r,i=e,{skill_page_id:t.skill_page_id,...void 0!==t.disable_automatic_use||void 0!==i.disable_automatic_use?{disable_automatic_use:!!(t.disable_automatic_use&&i.disable_automatic_use)}:{},use_automatically:(t.use_automatically??!1)||(i.use_automatically??!1),show_in_editor:(t.show_in_editor??!1)||(i.show_in_editor??!1),show_during_meetings:(t.show_during_meetings??!1)||(i.show_during_meetings??!1),show_after_meetings:(t.show_after_meetings??!1)||(i.show_after_meetings??!1)}):e)};for(let e of t)n(e);for(let e of i)if(r.has(e.group_id))for(let t of e.skills)n(t);return Array.from(a.values()).slice(0,50)}function a(e){let t=(null==e?void 0:e.installed_skill_page_ids)??[],i=(null==e?void 0:e.selected_skill_page_ids)??[],r=(null==e?void 0:e.rich_text_skills)??[];return{installed:v([...t,...i,...r]),explicitlyInstalled:t,autoEnabled:i,editor:r,duringMeeting:(null==e?void 0:e.during_meeting_notes_skill_page_ids)??[],afterMeeting:(null==e?void 0:e.after_meeting_notes_skill_page_ids)??[]}}function n(e){return v((null==e?void 0:e.mcp_enabled_skill_page_ids)??[])}function o(e){let{aiPrompts:t,pageId:i,enabled:r}=e,a=n(t);return{...t,mcp_enabled_skill_page_ids:r?v([...a,i]):a.filter(e=>e!==i)}}function s(e,t){let i=a(e),r=u(e,t),n=v([...r.map(e=>e.skill_page_id),...i.installed]),o=new Set(r.filter(e=>e.disable_automatic_use).map(e=>e.skill_page_id));return{installed:n,explicitlyInstalled:i.explicitlyInstalled,autoEnabled:n.filter(t=>{var i;return!((null==e||null==(i=e.automatic_use_disabled_by_skill)?void 0:i[t])??o.has(t))}),editor:m(r,"editor",i.editor),duringMeeting:m(r,"during_meeting",i.duringMeeting),afterMeeting:m(r,"after_meeting",i.afterMeeting)}}function l(e){let{aiPrompts:t,workspaceDefaultSkills:i,pageId:r,disabled:a}=e,n=s(t,i).installed;if(!n.includes(r))return t;let o={};for(let e of n){var l;let i=null==t||null==(l=t.automatic_use_disabled_by_skill)?void 0:l[e];void 0!==i&&(o[e]=i)}return o[r]=a,{...t,automatic_use_disabled_by_skill:o}}function c(e,t){return u(e,t).map(e=>e.skill_page_id)}function u(e,t){let i=new Set((null==e?void 0:e.overridden_workspace_default_skill_page_ids)??[]);return t.filter(e=>!i.has(e.skill_page_id))}function d(e,t,i){return u(e,t).filter(e=>g(e,i)).map(e=>e.skill_page_id)}function p(e,t,i){return h(s(e,t),i)}function f(e,t){return h(a(e),t)}function g(e,t){switch(t){case"automatic_use":return e.use_automatically??!1;case"editor":return e.show_in_editor??!1;case"during_meeting":return e.show_during_meetings??!1;case"after_meeting":return e.show_after_meetings??!1}}function m(e,t,i){return v([...e.filter(e=>g(e,t)).map(e=>e.skill_page_id),...i])}function h(e,t){switch(t){case"automatic_use":return e.autoEnabled;case"editor":return e.editor;case"during_meeting":return e.duringMeeting;case"after_meeting":return e.afterMeeting}}function v(e){return Array.from(new Set(e))}i(499468),i(586042),i(169187),i(726090),i(132457),i(219390),i(73168),i(730330),i(976614),i(159952),i.d(t,{Ag:()=>p,F_:()=>c,JQ:()=>o,NP:()=>d,Wp:()=>l,cn:()=>s,hC:()=>r,nF:()=>f,pn:()=>u,tf:()=>a,wk:()=>n})},350730(e,t,i){"use strict";function r(...e){return i(764657).object({required:{table:i(764657).literals(...e),id:i(764657).string(),spaceId:i(764657).string()},optional:{}})}function a(...e){return r(...e)}function n(...e){return function(...e){return i(764657).object({required:{table:i(764657).literals(...e),id:i(764657).string()},optional:{spaceId:i(764657).string()}})}(...e)}function o(...e){return r(...e)}i.d(t,{uV:()=>o,VR:()=>n,IK:()=>a})},90416(e,t,i){"use strict";let r="mcp_tool_upsell_mcp_business_plan_education",a=["mcp_landing_page_chatgpt","mcp_landing_page_generic","mcp_landing_page_claude",r],n="mcp_tool_upsell",o={query_data_sources:"mcp_tool_upsell_query_data_sources",query_database_view:"mcp_tool_upsell_query_database_view",query_meeting_notes:"mcp_tool_upsell_query_meeting_notes",mcp_business_plan_education:r},s="mcp_self_discovery";function l(e){var t;return e.source===s?s:e.source!==n?"checkout_deep_link":void 0!==(t=e.tool)&&(0,i(48697).O)(o,t)?o[t]:n}function c(e){var t;return((t=e.source)===n||(null==t?void 0:t.startsWith(`${n}_`))&&t.length>n.length+1)&&"mcp_business_plan_education"===e.tool?r:e.fallback}i.d(t,{nk:()=>c,tA:()=>l},{CP:n,CT:["ai_meeting_notes","ai_meeting_notes_custom_transcript_retention"],HR:s,K_:["custom_agent","custom_agents_sidebar","new_custom_agents_sidebar","new_custom_agents_library","slippery_slope_flyout_menu","custom_agents_launch_modal","custom_agent_creation_nudge","custom_agents_gift_box","marketplace_agents","mail_oracle_inchat_upsell_card"],Mi:["database_agents","database_agent_autofill_button","database_agent_run_dropdown","database_agent_fill_rows","database_agent_fill_all","database_agent_preview_generate","database_agent_edit_modal_toggle","database_agent_setup_menu_item"],q5:a,uv:["ai_research_mode"],zL:["ai_agent","onboarding_agent_free_window_paywall"],zU:r,zj:["ai_unified_find_search_modal","ai_unified_find_chat","ai_chat_with_model","ai_assistant_limit_in_app","ai_autofill_fill_all_pages","ai_autofill_bulk_fill","ai_autofill_on_page_edit","ai_autofill_try_on_view","ai_limit_in_app","ai_limit_property_autofill","ai_limit_sidebar","ai_limit_settings","ai_limited_qna_no_results","ai_limited_qna_upsell_action_button","ai_qna_waitlist","ai_qna_limit_in_app","ai_upsell_notice","ai_upsell_settings","ai_restricted_access_model_upsell","ai_page_translation","ai_plans_page","ai_formulas"]})},806510(e,t,i){"use strict";function r(e){return!!((0,i(991394).TB)(e)&&"business"===(0,i(991394).AI)(e))}i.d(t,{_:()=>r})},97700(e,t,i){"use strict";let r={ai_limit_discount_offer:7,aimn:7,business_annual_bundle_3_for_1_seats:14,business_annual_bundle_3_for_1_seats_v2:14,business_annual_bundle_5_for_2_seats:14,business_annual_bundle_5_for_2_seats_v2:14,business_resurrection_offer_v2:7,plus_aimn:7,post_plus_purchase_stacked_business_trial_1m:7,tenured_annual_plus_stacked_business_trial_1m:7,tenured_monthly_plus_stacked_business_trial_1m:7};function a(e,t){var i;return"business_trial_non_conversion"===e||void 0!==r[e]&&(null==t||null==(i=t.getSettings())||null==(i=i.offers_metadata)||null==(i=i[e])?void 0:i.modal_seen_at)!==void 0}function n(e){var t,a,n;let o,s=e.billingData?(0,i(991394).getBillingTime)(e.billingData).toMillis():Date.now(),l=r[e.campaign],c=null==(t=e.space)||null==(t=t.getSettings())||null==(t=t.offers_metadata)||null==(t=t[e.campaign])?void 0:t.modal_seen_at;if(void 0!==l&&void 0!==c)return Math.max(0,l-Math.max(0,(0,i(362008).Mn)(c,s)));if("business_trial_non_conversion"!==e.campaign)return;let u=null==(a=e.space)?void 0:a.getSetting("biz_offer_aversion_rejected_time");if(!u)return;let d=(0,i(362008).Mn)(u,s),p=("number"==typeof(o=null==(n=e.offerMetadata)?void 0:n.post_biz_trial_coupon_eligible_days)?o:7)-d;return p<=0?0:p}i.d(t,{d:()=>a,n:()=>n})},54353(e,t,i){"use strict";i(499468),i(586042),i(169187),i(726090),i(132457),i(219390),i(73168);let r="3LoiCE0pTNqOdhIMNSqzVH",a="4TYdu6oruQDsNGmrpr2w62",n="4jJ9utEAM6sBm9rlHrmmag",o=new Set([r,a,n,"35MTwBQoiGEMS4LkotwdKs","awWt9RUdJ4iRwCG3zlI1A","5cOhPmF8ykG1Qltp3CGtQ9"]);i.d(t,{}
6,{AW:"IAV2zMildmGp1lZPngkFh",B4:["notion","template"],I5:["notion","n0ti0n","n0tion","notlion","noshion","notoin","notino"],KS:["integration","connection"],M5:"1JUlDVC85jKOp7eZn7DrQs",N:"3RX3ggEub13SpDewx2Tixm",NX:"[email protected]",Ne:"77LQ0vseQslYcvGIptxoBk",To:"72AUvxIRJUiI0FUvJCNIfI",UH:"agent-personalization",Uf:"3P8kMnIDNLbT02ZMQ01Yl1",Vu:"5NWgBc6vf0InRsdBIJEdPl",W$:"6V12s4UJlm9noQgnSvQAjk",bs:{url:"",height:0,width:0},cD:"1O2WB1UvrTQbfDsTGxQ6Ma",h9:"38rtLN5PXALY47cpMpWjsv",hj:"[email protected]",hy:n,kA:"1QQFEoxxG0eI8XYekBEh5T",pE:"6b69yOoPrR9uZthpDkC3jg",pX:"5PQX10TIjRTptHrVkagw8c",pm:"7chXlMDe5cja2tXnHw02zU",r$:"3I1VaNJoooolyivK2uKBA4",rQ:"1f88cc90-92fd-4ce4-bfcd-25daec2ffbbe",us:"5PBZVrkUqTkM2JxDKBDs0N",v9:{url:"",host:"youtube",id:""},vP:a,wU:r,wx:"4Lsz5ZJQRzXjBOrKWTQuyF",xH:{ds:"",listing_or_creator_id:"",downloads_app_1d:0,downloads_app_7d:0,downloads_app_14d:0,downloads_app_28d:0,downloads_app_total:0,downloads_web_1d:0,downloads_web_7d:0,downloads_web_14d:0,downloads_web_28d:0,downloads_web_total:0,downloads_app_web_1d:0,downloads_app_web_7d:0,downloads_app_web_14d:0,downloads_app_web_28d:0,downloads_app_web_total:0,views_app_1d:0,views_app_7d:0,views_app_14d:0,views_app_28d:0,views_app_total:0,views_web_1d:0,views_web_7d:0,views_web_14d:0,views_web_28d:0,views_web_total:0,views_app_web_1d:0,views_app_web_7d:0,views_app_web_14d:0,views_app_web_28d:0,views_app_web_total:0},x_:"3jgFarCFBISggOk9mrH7my",zZ:o})},322095(e,t,i){"use strict";function r(e,t){return e.map(e=>a(e,t))}function a(e,t){var r,a;let n,{nameMessage:o,descriptionMessage:s,...l}=e,{rootId:c,previewRootId:u,spaceId:d}=(r=e,a=t,n=(0,i(599412).H)(a),(0,i(245526).oW)(n)&&r.sources[n]||r.sources[i(599412).q]);return{...l,id:o.id,rootId:c,spaceId:d,previewRootId:u,name:t.formatMessage(o),description:s?t.formatMessage(s):void 0}}i(159952),i.d(t,{B:()=>a,o:()=>r})},692218(e,t,i){"use strict";function r(e){return a(e).isDatabaseAgent}function a(e){var t;let i=null==e||null==(t=e.find(e=>"notion"===e.type))||null==(t=t.state)?void 0:t.ownedByDatabasePropertyIds;return i?{isDatabaseAgent:!0,ownedByDatabasePropertyIds:i}:{isDatabaseAgent:!1}}i(730330),i(139583),i.d(t,{b:()=>a,u:()=>r})},886883(e,t,i){"use strict";function r(e){return!!Array.isArray(e)}function a(e){return!(!e||Array.isArray(e))}function n(e){return r(e)?e:[]}i(499468),i(586042),i(169187),i(726090),i(132457),i(219390),i(73168),i.d(t,{Zv:()=>r,ap:()=>a,rr:()=>n})},690004(e,t,i){"use strict";let r=(0,i(477465).Dv)("importEvernote");i.d(t,{},{H:[{key:"tags",defaultType:"multi_select"},{key:"created",defaultType:"created_time"},{key:"updated",defaultType:"last_edited_time"},{key:"url",defaultType:"url"},{key:"reminder",defaultType:"date"}],r:r})},678951(e,t,i){"use strict";i.d(t,{N:()=>c});var r=i(635790);class a extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function n({children:e,isPresent:t}){let i=(0,r.useId)(),o=(0,r.useRef)(null),s=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:r,top:a,left:n}=s.current;if(t||!o.current||!e||!r)return;o.current.dataset.motionPopId=i;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 7 [data-motion-pop-id="${i}"] { 8 position: absolute !important; 9 width: ${e}px !important; 10 height: ${r}px !important; 11 top: ${a}px !important; 12 left: ${n}px !important; 13 } 14 `),()=>{document.head.removeChild(l)}},[t]),r.createElement(a,{isPresent:t,childRef:o,sizeRef:s},r.cloneElement(e,{ref:o}))}let o=({children:e,initial:t,isPresent:a,onExitComplete:o,custom:l,presenceAffectsLayout:c,mode:u})=>{let d=(0,i(449389).M)(s),p=(0,r.useId)(),f=(0,r.useMemo)(()=>({id:p,initial:t,isPresent:a,custom:l,onExitComplete:e=>
14{for(let t of(d.set(e,!0),d.values()))if(!t)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))}),c?void 0:[a]);return(0,r.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[a]),r.useEffect(()=>{a||d.size||!o||o()},[a]),"popLayout"===u&&(e=r.createElement(n,{isPresent:a},e)),r.createElement(i(181520).t.Provider,{value:f},e)};function s(){return new Map}let l=e=>e.key||"",c=({children:e,custom:t,initial:a=!0,onExitComplete:n,exitBeforeEnter:s,presenceAffectsLayout:c=!0,mode:u="sync"})=>{let d;(0,i(593594).V)(!s,"Replace exitBeforeEnter with mode='wait'");let p=(0,r.useContext)(i(691525).L).forceRender||(0,i(561116).C)()[0],f=(0,i(997142).a)(),g=(d=[],r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&d.push(e)}),d),m=g,h=(0,r.useRef)(new Map).current,v=(0,r.useRef)(m),_=(0,r.useRef)(new Map).current,b=(0,r.useRef)(!0);if((0,i(49428).E)(()=>{b.current=!1,g.forEach(e=>{let t=l(e);_.set(t,e)}),v.current=m}),(0,i(431527).l)(()=>{b.current=!0,_.clear(),h.clear()}),b.current)return r.createElement(r.Fragment,null,m.map(e=>r.createElement(o,{key:l(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:c,mode:u},e)));m=[...m];let y=v.current.map(l),w=g.map(l),x=y.length;for(let e=0;e<x;e++){let t=y[e];-1!==w.indexOf(t)||h.has(t)||h.set(t,void 0)}return"wait"===u&&h.size&&(m=[]),h.forEach((e,i)=>{if(-1!==w.indexOf(i))return;let a=_.get(i);if(!a)return;let s=y.indexOf(i),d=e;d||(d=r.createElement(o,{key:l(a),isPresent:!1,onExitComplete:()=>{h.delete(i);let e=Array.from(_.keys()).filter(e=>!w.includes(e));if(e.forEach(e=>_.delete(e)),v.current=g.filter(t=>{let r=l(t);return r===i||e.includes(r)}),!h.size){if(!1===f.current)return;p(),n&&n()}},custom:t,presenceAffectsLayout:c,mode:u},a),h.set(i,d)),m.splice(s,0,d)}),m=m.map(e=>{let t=e.key;return h.has(t)?e:r.createElement(o,{key:l(e),isPresent:!0,presenceAffectsLayout:c,mode:u},e)}),r.createElement(r.Fragment,null,h.size?m:m.map(e=>(0,r.cloneElement)(e)))}},610476(e,t,i){"use strict";var r=i(635790);function a(){let e=(0,r.useContext)(i(181520).t);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:a,register:n}=e,o=(0,r.useId)();return(0,r.useEffect)(()=>n(o),[]),!t&&a?[!1,()=>a&&a(o)]:[!0]}function n(){var e;return null===(e=(0,r.useContext)(i(181520).t))||e.isPresent}i.d(t,{tF:()=>n,xQ:()=>a})},275676(e,t,i){"use strict";let r={current:void 0},a=(0,i(349952).u0)({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!r.current){let e=new(i(196092)).B({});e.mount(window),e.setOptions({layoutScroll:!0}),r.current=e}return r.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});i.d(t,{},{P:a,i:r})},851333(e,t,i){"use strict";let r={...i(455127).W,...i(21401).n,...i(860689).$,...i(390624).Z},a=(0,i(922730).H)((e,t)=>(0,i(916608).P)(e,t,r,i(451063).J));function n(e){return(0,i(140443).G)((0,i(916608).P)(e,{forwardMotionProps:!1},r,i(451063).J))}i.d(t,{w:()=>n},{P:a})},501926(e,t,i){"use strict";let r=(e,t)=>Math.abs(e-t);function a(e,t){return Math.sqrt(r(e.x,t.x)**2+r(e.y,t.y)**2)}i.d(t,{w:()=>a},{I:r})},561116(e,t,i){"use strict";var r=i(635790);function a(){let e=(0,i(997142).a)(),[t,a]=(0,r.useState)(0),n=(0,r.useCallback)(()=>{e.current&&a(t+1)},[t]);return[(0,r.useCallback)(()=>i(570756).Gt.postRender(n),[n]),t]}i.d(t,{C:()=>a})},997142(e,t,i){"use strict";var r=i(635790);function a(){let e=(0,r.useRef)(!1);return(0,i(49428).E)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}i.d(t,{a:()=>a})},431527(e,t,i){"use strict";var r=i(635790);function a(e){return(0,r.useEffect)(()=>()=>e(),[])}i.d(t,{l:()=>a})},147281(e,t,i){"use strict";var r=()=>i(374985),a=class extends r().${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,i(442337).PL)()})}getOptimisticResult(e){return e.behavior=(0,i(442337).PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}
14fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,a=super.createResult(e,t),{isFetching:n,isRefetching:o,isError:s,isRefetchError:l}=a,c=r.fetchMeta?.fetchMore?.direction,u=s&&"forward"===c,d=n&&"forward"===c,p=s&&"backward"===c,f=n&&"backward"===c;return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i(442337).rB)(t,r.data),hasPreviousPage:(0,i(442337).RQ)(t,r.data),isFetchNextPageError:u,isFetchingNextPage:d,isFetchPreviousPageError:p,isFetchingPreviousPage:f,isRefetchError:l&&!u&&!p,isRefetching:o&&!d&&!f}}};i.d(t,{z:()=>a})},374985(e,t,i){"use strict";var r=()=>i(251358),a=class extends r().Q{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#i=(0,i(312080).T)(),this.bindMethods(),this.setOptions(t)}#e;#r=void 0;#a=void 0;#n=void 0;#o;#s;#i;#t;#l;#c;#u;#d;#p;#f;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#r.addObserver(this),n(this.#r,this.options)?this.#m():this.updateResult(),this.#h())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return o(this.#r,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return o(this.#r,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#_(),this.#r.removeObserver(this)}setOptions(e){let t=this.options,r=this.#r;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,i(90694).Eh)(this.options.enabled,this.#r))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#r.setOptions(this.options),t._defaulted&&!(0,i(90694).f8)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#r,observer:this});let a=this.hasListeners();a&&s(this.#r,r,this.options,t)&&this.#m(),this.updateResult(),a&&(this.#r!==r||(0,i(90694).Eh)(this.options.enabled,this.#r)!==(0,i(90694).Eh)(t.enabled,this.#r)||(0,i(90694).d2)(this.options.staleTime,this.#r)!==(0,i(90694).d2)(t.staleTime,this.#r))&&this.#y();let n=this.#w();a&&(this.#r!==r||(0,i(90694).Eh)(this.options.enabled,this.#r)!==(0,i(90694).Eh)(t.enabled,this.#r)||n!==this.#f)&&this.#x(n)}getOptimisticResult(e){var t,r;let a=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(a,e);return t=this,r=n,(0,i(90694).f8)(t.getCurrentResult(),r)||(this.#n=n,this.#s=this.options,this.#o=this.#r.state),n}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(e,i)=>(this.trackProp(i),t?.(i),"promise"===i&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#i.status||this.#i.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,i))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#r}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),i=this.#e.getQueryCache().build(this.#e,t);return i.fetch().then(()=>this.createResult(i,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#m(e){this.#b();let t=this.#r.fetch(this.options,e);return e?.throwOnError||(t=t.catch(i(90694).lQ)),t}#y(){this.#v();let e=(0,i(90694).d2)(this.options.staleTime,this.#r);if(i(68591).H.isServer()||this.#n.isStale||!(0,i(90694).gn)(e))return;let t=(0,i(90694).j3)(this.#n.dataUpdatedAt,e);this.#d=i(670573).zs.setTimeout(()=>{this.#n.isStale||this.updateResult()},t+1)}#w(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#r):this.options.refetchInterval)??!1}#x(e){this.#_(),this.#f=e,!i(68591).H.isServer()&&!1!==(0,i(90694).Eh)(this.options.enabled,this.#r)&&(0,i(90694).gn)(this.#f)&&0!==this.#f&&(this.#p=i(670573).zs.setInterval(()=>{(this.options.refetchIntervalInBackground||i(879412).m.isFocused())&&this.#m()},this.#f))}#h(){this.#y(),this.#x(this.#w())}#v(){void 0!==this.#d&&(i(670573).zs.clearTimeout(this.#d),this.#d=void 0)}#_(){void 0!==this.#p&&(i(670573).zs.clearInterval(this.#p),this.#p=void 0)}createResult(e,t){let r,a=this.#r,o=this.options,c=this.#n,u=this.#o,d=this.#s,p=e!==a?e.state:this.#a,{state:f}=e,g={...f},m=!1;if(t._optimisticResults){let r=this.hasListeners(),l=!r&&n(e,t),c=r&&s(e,a,t,o);(l||c)&&(g={...g,...(0,i(471291).k)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:h,errorUpdatedAt:v,status:_}=g;r=g.data;let b=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===_){let e;c?.isPlaceholderData&&t.placeholderData===d?.placeholderData?(e=c.data,b=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,void 0!==e&&(_="success",r=(0,i(90694).pl)(c?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!b)if(c&&r===u?.data&&t.select===this.#l)r=this.#c;else try{this.#l=t.select,r=t.select(r),r=(0,i(90694).pl)(c?.data,r,t),this.#c=r,this.#t=null}catch(e){this.#t=e}this.#t&&(h=this.#t,r=this.#c,v=Date.now(),_="error");let y="fetching"===g.fetchStatus,w="pending"===_,x="error"===_,S=w&&y,k=void 0!==r,I={status:_,fetchStatus:g.fetchStatus,isPending:w,isSuccess:"success"===_,isError:x,isInitialLoading:S,isLoading:S,data:r,dataUpdatedAt:g.dataUpdatedAt,error:h,errorUpdatedAt:v,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdate
14Count:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:y,isRefetching:y&&!w,isLoadingError:x&&!k,isPaused:"paused"===g.fetchStatus,isPlaceholderData:m,isRefetchError:x&&k,isStale:l(e,t),refetch:this.refetch,promise:this.#i,isEnabled:!1!==(0,i(90694).Eh)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==I.data,r="error"===I.status&&!t,n=e=>{r?e.reject(I.error):t&&e.resolve(I.data)},o=()=>{n(this.#i=I.promise=(0,i(312080).T)())},s=this.#i;switch(s.status){case"pending":e.queryHash===a.queryHash&&n(s);break;case"fulfilled":(r||I.data!==s.value)&&o();break;case"rejected":r&&I.error===s.reason||o()}}return I}updateResult(){let e=this.#n,t=this.createResult(this.#r,this.options);if(this.#o=this.#r.state,this.#s=this.options,void 0!==this.#o.data&&(this.#u=this.#r),(0,i(90694).f8)(t,e))return;this.#n=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,i="function"==typeof t?t():t;if("all"===i||!i&&!this.#g.size)return!0;let r=new Set(i??this.#g);return this.options.throwOnError&&r.add("error"),Object.keys(this.#n).some(t=>this.#n[t]!==e[t]&&r.has(t))};this.#S({listeners:r()})}#b(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#r)return;let t=this.#r;this.#r=e,this.#a=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#h()}#S(e){i(767143).jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#r,type:"observerResultsUpdated"})})}};function n(e,t){return!1!==(0,i(90694).Eh)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&o(e,t,t.refetchOnMount)}function o(e,t,r){if(!1!==(0,i(90694).Eh)(t.enabled,e)&&"static"!==(0,i(90694).d2)(t.staleTime,e)){let i="function"==typeof r?r(e):r;return"always"===i||!1!==i&&l(e,t)}return!1}function s(e,t,r,a){return(e!==t||!1===(0,i(90694).Eh)(a.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&l(e,r)}function l(e,t){return!1!==(0,i(90694).Eh)(t.enabled,e)&&e.isStaleByTime((0,i(90694).d2)(t.staleTime,e))}i.d(t,{$:()=>a})}}]);
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.