1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="577b5b49-a01e-4f70-bb96-ceff9f275c4e",e._sentryDebugIdIdentifier="sentry-dbid-577b5b49-a01e-4f70-bb96-ceff9f275c4e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54047],{1330:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var a=n(97109),l=n(36050);let r=()=>a.useContext(l.g)},1551:e=>{e.exports={iconSize:"24px",item:"H8chQA zXzCWQ",active:"jukMSg _23SXBw",label:"Zmljug NJTMMA"}},1841:e=>{e.exports={radiusElementStandard:"var(--0iDYqA)undefined",iconSize:"24px",icon:"_2dHVtg",staticIcon:"CvnGlw",animatedIcon:"QmFbww"}},2057:e=>{e.exports={space100:"8pxundefined",space150:"12pxundefined",item:"_0Aa0ew zXzCWQ",active:"jwI4aQ _23SXBw",content:"DgGfVA",label:"RSNyxQ NJTMMA"}},3305:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});let a=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},5803:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var a=n(97109);let l=()=>{let[e,t]=a.useState(!1);return a.useEffect(()=>{t(!0)},[]),e}},6539:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});let a={name:"Admin API",path:"/docs/admin/",versions:[{name:"v1",path:"/docs/admin/",state:"stable"}]}},7633:e=>{e.exports={elevationSurfaceRaisedBg:"var(--LIE6Cw)undefined",container:"Z1Y1_A",background:"_0YcyXw",panel:"nmkimg",focusLock:"mCCMfg"}},10778:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});let a=n(97109).createContext(void 0)},11081:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});let a={name:"Canva Developers SDK",path:"/docs/apps/",versions:[{name:"v1",path:"/docs/apps/",state:"stable"}]}},11940:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});let a=n(97109).createContext(void 0)},12775:e=>{e.exports={space025:"2pxundefined",space100:"8pxundefined",label:"V0brdg",children:"vlqoAg"}},13441:e=>{e.exports={colorUiBorder:"var(--enMi_w)undefined",divider:"N3GfEA"}},14058:()=>{},15077:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});let a=n(97109).useLayoutEffect},15446:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var a=n(97109),l=n(18702);let r=()=>a.useContext(l.o)},17497:e=>{e.exports={smallBreakpoint:"600pxundefined",mediumBreakpoint:"900pxundefined",largeBreakpoint:"1200pxundefined",baseUnit:"8pxundefined",space050:"4pxundefined",space100:"8pxundefined",space150:"12pxundefined",space200:"16pxundefined",space300:"24pxundefined",space400:"32pxundefined",colorActionTertiaryBgPressed:"var(--BorQ6g)undefined",colorActionTertiaryBgHovered:"var(--ntzWpQ)undefined",colorActionSelectedBg:"var(--1sn2Sg)undefined",colorActionSelectedFg:"var(--GviWcg)undefined",colorLinkFgHovered:"var(---2QwGw)undefined",colorUiBorder:"var(--enMi_w)undefined",colorContentFg:"var(--VcZbvQ)undefined",colorUiNeutralBg:"var(--xwa5zw)undefined",colorWhiteA10:"#FFFFFFundefined",colorBlackA02:"#39466024undefined",colorBlackA10:"#0F1015undefined",colorBlue01:"#E0EFFFundefined",colorBlue09:"#1D3B7Cundefined",colorBlue10:"#182C59undefined",elevationSurfaceRaisedBg:"var(--LIE6Cw)undefined",radiusElementStandard:"var(--0iDYqA)undefined",radius04:"4pxundefined",menuIconChipSize:"64px",menuIconSize:"40px",container:"g2RwFQ",start:"_4gvS3Q",end:"eEmpxw",logo:"coDP_Q",menuIcon:"mYT7OA",menuItemList:"_9n2CjA",menuItem:"UJ3ndA",menuButton:"_5HDVRQ",menuItemLink:"A2itOw",blurbItem:"kHYUFQ",sectionedFlyoutMenu:"nEKknw",blurbItemHorizontalLayout:"uzgv8g",blurbItemCoverLayout:"Y1S_hQ",dropdownMenuItem:"GzirNg",linkItem:"_656vyw",chevronIconContainer:"_8Vz4IQ",chevronNbsp:"idz0FQ",chevronIcon:"P3QbQQ",menuButtonActive:"skRKKw",menuItemLinkActive:"_62BcqA",flyoutMenu:"b3Hc_g",dropdownRootRow:"puXBSg",blurbItemThumbnailWrapper:"WQxDpQ",blurbItemThumbnail:"Ej1Evw",flyoutMenuItem:"HfARtw",menuItemIcon:"X2b4_g",menuItemIconSubtle:"Yj60EQ",menuItemIconBlue:"EQP7Zg",blurbItemHeading:"_1_JSdA",blurbItemTitle:"usGJyA",search:"EHVFHA",section:"ufmr0g",categoryLabel:"KKGrCQ",leafListWrapped:"_5k__kw"}},18702:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});let a=n(97109).createContext(void 0)},19193:e=>{e.exports={mediumBreakpoint:"900pxundefined",baseUnit:"8pxundefined",colorBlackA01:"#404F6D0Fundefined",colorBlackA02:"#39466024undefined",space050:"4pxundefined",space100:"8pxundefined",space200:"16pxundefined",colorControlBorder:"var(--igdHlg)undefined",colorUiBorder:"var(--enMi_w)undefined",colorActionTertiaryBgHovered:"var(--ntzWpQ)undefined",colorContentPlaceholderFg:"var(--TJtBjA)undefined",elevationSurfaceRaisedBg:"var(--LIE6Cw)undefined",radiusElementStandard:"var(--0iDYqA)undefined",iconSize:"24px",inputHeight:"40px",container:"_d_xjA",focu
1sed:"DUvQ0w",inputContainer:"tC9kLw",input:"_3blFUQ",shortcutIcon:"XWQTPQ",iconSpacer:"_4ntUaA",popover:"CjRhLg",results:"P9MYaQ",inline:"pK_rWA",hasResults:"k9_CIQ",fullscreen:"ilBkcg"}},20911:e=>{e.exports={smallBreakpoint:"600pxundefined",space100:"8pxundefined",space200:"16pxundefined",space300:"24pxundefined",colorUiBorder:"var(--enMi_w)undefined",colorContentFg:"var(--VcZbvQ)undefined",colorLinkFgHovered:"var(---2QwGw)undefined",colorContentPlaceholderFg:"var(--TJtBjA)undefined",elevationSurfaceBg:"var(--Ypt7xQ)undefined",iconSize:"24px",footer:"JX_EIA",container:"Hxa48g",start:"reeHdw",end:"j5eTBg",copyright:"yhSaJw",legal:"B186Jw",spacer:"ctN5hw",social:"Dlz76g",socialItem:"w0weUA",regionMenuItem:"Ho31uw",center:"EUqtWA"}},20952:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});let a={name:"Print Partnerships",path:"/docs/print-partnerships/",deprecated:!0,versions:[{name:"v1",path:"/docs/print-partnerships/",state:"stable"}]}},20960:(e,t,n)=>{"use strict";n.d(t,{x:()=>p});var a=n(65321),l=n(54750),r=n(12374),i=n(10236),s=n(4064),c=n(9078),o=n(69567),d=n.n(o);let u={preview:{label:"Preview",Icon:r.w,className:d().preview},deprecated:{label:"Deprecated",Icon:i.C,className:d().deprecated},test:{label:"Test",Icon:s.l,className:d().test}},p=e=>{let{state:t}=e,n=u[t];if(!n)return null;let{label:r,Icon:i,className:s}=n;return(0,a.jsx)(c.m_,{placement:"top",label:r,children:(0,a.jsx)(l.a,{tagName:"span",className:s,children:(0,a.jsx)(i,{size:"small"})})})}},21298:e=>{e.exports={space100:"8pxundefined",colorActionOverlayBg:"var(--EvA8JQ)undefined",colorUiBorder:"var(--enMi_w)undefined",elevationSurfaceRaisedBg:"var(--LIE6Cw)undefined",duration250:"250msundefined",gutterX:"D32O0w",header:"WBJuwg D32O0w",headerOpen:"_WzZ0g",overlay:"Bn_AoQ",dropdown:"gyFQCQ D32O0w",dropdownToggleOpen:"qw1lcA"}},21790:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});let a={name:"Engineering Blog",path:"/blog/engineering/",moreLabel:"More from Canva Engineering",showSubscribeForm:!0,sidebar:{type:"root",children:[{type:"group",label:"Engineering Blog",children:[{type:"page",path:"/blog/engineering/",label:"Overview"},{type:"page",path:"/blog/subscribe/",label:"Subscribe",icon:n(87609).u}]},{type:"group",label:"Discover more",children:[{slug:"ui-ux",name:"UI/UX"},{slug:"backend",name:"Backend"},{slug:"machine-learning",name:"Machine Learning"},{slug:"infrastructure",name:"Infrastructure"},{slug:"security",name:"Security"},{slug:"engineering-practices",name:"Engineering Practices"},{slug:"data-platform",name:"Data Platform"}].map(e=>{let{slug:t,name:n}=e;return{type:"page",label:n,path:"/blog/engineering/tag/".concat(t,"/")}})},{type:"group",label:"",children:[{type:"link",url:"https://www.canva.com/about/",label:"About Canva"}]}]}}},23136:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var a=n(97109),l=n(58280);let r=()=>{let e=a.useContext(l.I);if(void 0===e)throw Error("useSidebar must be used within a SidebarProvider");return e}},24468:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});var a=n(65321);n(97109);var l=n(95596),r=n(88326),i=n(26388);let s=e=>{let t=(0,r.u)(),n=(0,i.S)(e.sidebar,t);return(0,a.jsx)(l.P.Provider,{value:n,children:e.children})}},26258:e=>{e.exports={mediumBreakpoint:"900pxundefined",space050:"4pxundefined",space200:"16pxundefined",space300:"24pxundefined",colorContentPlaceholderFg:"var(--TJtBjA)undefined",container:"QWYN1g",state:"DtBIIQ"}},26388:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var a=n(90852),l=n(35167);let r=(e,t)=>{let n=(0,l.F)(t);if("api"===e.type){for(let t of e.versions)if(t.path===n)return e}for(let t of"api"===e.type?e.versions.flatMap(e=>e.children):e.children)if("divider"!==t.type)for(let l of t.children){if(("section"===e.type||"api"===e.type)&&"page"===l.type&&l.path===n)return e;if("section"===l.type||"api"===l.type){if(l.path===n)return l;let e=r(l,n);if(e)return e}if(("section"===e.type||"api"===e.type)&&"subgroup"===l.type&&(0,a.c)(l.children,n))return e}if(("section"===e.type||"api"===e.type)&&(e.path===n||n.startsWith(e.path)))return e}},30135:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});class a extends Error{constructor(e){super("Unhandled case: ".concat(JSON.stringify(e)))}}},31166:e=>{e.exports={elevationSurfaceBg:"var(--Ypt7xQ)undefined",navBoxShadowSize:"4px",container:"roJtnQ",navbar:"G_xUCA",separator:"mBD4bw",main:"Ow0ZeA",banners:"qHQeDg",bannersInHeader:"C66EHA",bannersInFlow:"_6jldUg",mainContainer:"_5tsyWA",sidebar:"UarXQA",content:"v5IPdw",contentWithPadding:"JpdlRQ",footer
1:"eM77lg",sidebarMediumUp:"l03UbQ",sidebarLargeUp:"rvJgUA"}},31611:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var a=n(97109);let l=new Set(["INPUT","TEXTAREA"]),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=a.useRef(e);a.useEffect(()=>{r.current=e},[e]),a.useEffect(()=>{let e=e=>{e.target!==(null==n?void 0:n.current)&&l.has(e.target.nodeName)||r.current(e)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[...t,n])}},34836:e=>{e.exports={space050:"4pxundefined",space100:"8pxundefined",space150:"12pxundefined",space200:"16pxundefined",colorActionSecondaryBgHovered:"var(--GXtk9g)undefined",colorContentFg:"var(--VcZbvQ)undefined",colorContentSubtlestFg:"var(--PRQgyw)undefined",hit:"sohCSA",active:"BmZxYA",icon:"wTfMRw",title:"hyknmw",body:"pcuhqg",breadcrumbList:"hezlLQ",breadcrumbItem:"_28h8Yw",code:"wBHO0A"}},35042:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});let a=n(97109).createContext(void 0)},35167:(e,t,n)=>{"use strict";n.d(t,{F:()=>l});let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https://canva.dev";try{return new URL(e,t).pathname}catch(t){return e.split(/[?#]/)[0]}},l=e=>{let t;
1return(e=(e=(e=a(e=e.replace(/\/+/g,"/"))).trim()).toLowerCase()).startsWith("/")||(e="/"+e),e.endsWith("/")||(t=e,/^(?:.*\/)?[^/]*\.[a-z0-9]{2,}$/i.test(t))||(e+="/"),e}},36050:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});let a=n(97109).createContext(void 0)},38176:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var a=n(97109);let l=()=>{let[e,t]=a.useState(!1);return a.useEffect(()=>{t(!0)},[]),e}},41305:e=>{e.exports={elevationSurfaceRaisedBg:"var(--LIE6Cw)undefined",radiusElementStandard:"var(--0iDYqA)undefined",container:"eTBEqQ",query:"Jex9qg"}},42462:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var a=n(97109),l=n(37342);let r=()=>{let e=a.useContext(l.g);if(!e)throw Error("useNotice must be used within NoticeProvider");return e}},42882:(e,t,n)=>{"use strict";n.d(t,{K:()=>l});let a=(0,n(99162).T)()?navigator:void 0,l=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,n=null!=(e=null==t?void 0:t.language)?e:"";return n.startsWith("zh-")||n.startsWith("zh_")}},43531:e=>{e.exports={baseUnit:"8pxundefined",space150:"12pxundefined",elevationSurfaceRaisedBg:"var(--LIE6Cw)undefined",container:"fOd3SQ",section:"Y8hqig"}},43782:(e,t,n)=>{"use strict";n.d(t,{$M:()=>v,SI:()=>h,kV:()=>m});var a=n(65321),l=n(52659),r=n(33006),i=n(64638),s=n(60681),c=n.n(s),o=n(97109),d=n(42122),u=n(62759);let p=e=>{let t=t=>{let{href:n,onClick:l,ref:r,...i}=t,s=o.useCallback(e=>{null==l||l(e),(0,u.i)(n)&&(0,d.A7)("link_clicked",n)},[n,l]),p=(0,a.jsx)(e,{...i,ref:r,onClick:s});return n?(0,a.jsx)(c(),{href:n,passHref:!0,legacyBehavior:!0,children:p}):p};return t.displayName="NextLinkWrapper",t},h=p(i.N_),m=p(e=>{let{ref:t,...n}=e,r=o.useRef(null);return o.useImperativeHandle(t,()=>{var e;return null==(e=r.current)?void 0:e.dangerouslyGetElement()}),(0,a.jsx)(l.vx,{...n,ref:r})}),v=p(r.ks)},43920:(e,t,n)=>{"use strict";n.d(t,{$_:()=>o,EY:()=>d,Jr:()=>c,hE:()=>u});var a=n(65321),l=n(13067),r=n(97109);let i={size:"medium",tone:l.f},s=r.createContext({}),c=s.Provider,o=()=>r.useContext(s),d=e=>{let t=o();return(0,a.jsx)(l.EY,{...i,...t,...e})},u=e=>{let{size:t,...n}=o();return(0,a.jsx)(l.hE,{tone:l.f,...n,...e})}},44811:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});let a={name:"Extensions",path:"/docs/extensions/",deprecated:!0,versions:[{name:"v1",path:"/docs/extensions/",state:"deprecated"}]}},45406:e=>{e.exports={item:"zVdNLg zXzCWQ",label:"tLrBqA NJTMMA",icon:"_yGfyg"}},45715:e=>{e.exports={mediumBreakpoint:"900pxundefined",desktop:"cux7wg",mobile:"KumhEA"}},46511:(e,t,n)=>{"use strict";n.d(t,{CC:()=>s,G0:()=>d,ij:()=>i});var a=n(97109),l=n(965),r=n(42882);let i=["global","cn"],s=e=>"cn"===e?"China":"Global",c=e=>null!=e&&i.includes(e),o=()=>(0,r.K)()?"cn":"global",d=()=>{let[e,t]=(0,l.A)("region",{defaultValue:o,defaultServerValue:"global"}),n=a.useMemo(()=>c(e)?e:o(),[e]);return a.useEffect(()=>{let e=new URLSearchParams(location.search).get("region");c(e)&&t(e)},[t]),[n,t]}},48698:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});let a={name:"Audit Logs",path:"/docs/audit-logs/",versions:[{name:"v1",path:"/docs/audit-logs/",state:"stable"}]}},52087:e=>{e.exports={space100:"8pxundefined",space200:"16pxundefined",colorUiBorder:"var(--enMi_w)undefined",iconSize:"24px",header:"ff37Cg",content:"mD4vnA",icon:"p4s9TA"}},52297:(e,t,n)=>{"use strict";n.d(t,{$f:()=>n7});var a,l,r,i,s,c,o,d,u=n(65321),p=n(90111),h=n(54750),m=n(99619),v=n(13067),g=n(3638),f=n(97109),x=n(29590),b=n(43782),w=n(43920),j=n(68813),y=n(86347),C=n.n(y);let k=e=>{var t,n,a;let{label:l,isActive:r}=e,i=(0,j.Z)(null!=(t=e.path)?t:"");return e.path?(0,u.jsx)(b.SI,{href:i,"aria-current":r?"page":void 0,className:(0,g.A)(C().link,r&&C().linkActive),children:(0,u.jsx)(w.EY,{tagName:"span",weight:"bold",children:null!=(n=e.children)?n:l})}):(0,u.jsx)(x.S,{className:(0,g.A)(C().link,r&&C().linkActive),onClick:e.onClick,children:(0,u.jsx)(w.EY,{tagName:"span",weight:"bold",children:null!=(a=e.children)?a:l})})},A=e=>{let{docsetName:t}=e;return(0,u.jsx)(h.a,{className:C().docsetNameLabel,children:(0,u.jsx)(w.hE,{size:"xsmall",children:t})})},N=e=>{let{items:t,activePath:n,docsetName:a}=e;return 0===t.length?null:(0,u.jsx)(h.a,{tagName:"nav","aria-label":"Contextual navigation",children:(0,u.jsxs)(h.a,{display:"flex",alignItems:"center",gap:"0.5u",children:[a&&(0,u.jsx)(A,{docsetName:a}),t.map(e=>(0,u.jsx)(k,{path:e.path,label:e.label,isActive:e.path===n},e.path))]})})};var E=n(17251),I=n(52659),S=n(9903),_=n(6094),T=n(27922),B=n(66482),R=n(69892),L=n(21298),M=n.n(L);let F="contextual-nav-mobile-panel",P=e=>(0,u.jsx)(B.j,{children:(0,u.jsx)(z,{...e})}),z=e=>{let{items:t,activePath:n,docsetName:a}=e,l=(0,R.L)(),r="open"===l.state,i=()=>r?l.close():l.open(),s=t.find(e=>e.path===n);
1return(0,u.jsx)(E.O,{disabled:!r,autoFocus:!1,children:(0,u.jsxs)(h.a,{position:"relative",children:[(0,u.jsx)(h.a,{paddingTop:"1u",paddingBottom:"2u",className:(0,g.A)(M().header,{[M().headerOpen]:r}),children:(0,u.jsxs)(h.a,{display:"flex",alignItems:"center",justifyContent:"spaceBetween",children:[a&&(0,u.jsx)(A,{docsetName:a}),(0,u.jsxs)(h.a,{display:"flex",alignItems:"center",gap:"0.5u",children:[s&&(0,u.jsx)(k,{label:s.label,isActive:!0,onClick:i}),(0,u.jsx)(I.$n,{variant:"tertiary",size:"small",onClick:i,disclosure:!0,pressed:r,ariaControls:F,ariaLabel:r?"Collapse navigation":"Expand navigation",children:(0,u.jsx)(S.D,{className:(0,g.A)({[M().dropdownToggleOpen]:r})})})]})]})}),(0,u.jsx)(_.N,{initial:!1,children:r&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(T.P.div,{className:M().overlay,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25,ease:"easeOut"},onClick:l.close},"contextual-nav-mobile-overlay"),(0,u.jsx)(T.P.div,{id:F,className:M().dropdown,variants:{open:{height:"auto",overflow:"hidden",transitionEnd:{overflow:"auto"}},closed:{height:0,overflow:"hidden"}},initial:"closed",animate:"open",exit:"closed",transition:{duration:.25,ease:"easeOut"},children:(0,u.jsx)(h.a,{tagName:"nav",ariaLabel:"Subheader navigation",display:"flex",flexDirection:"column",alignItems:"stretch",gap:"1u",children:(0,u.jsx)(h.a,{display:"flex",flexDirection:"column",alignItems:"start",paddingTop:"2u",paddingBottom:"2u",gap:"1u",children:t.map(e=>(0,u.jsx)(k,{path:e.path,label:e.label,isActive:e.path===n},e.path))})})},"contextual-nav-mobile-panel")]})})]})})};var O=n(1330),Q=n(55946),D=n(15446),H=n(45715),U=n.n(H);let Y=()=>{let e=(0,O.a)(),t=(0,D.u)(),n=null==t?void 0:t.name,a=null==e?void 0:e.journeys,l=(0,Q.W)();return a&&0!==a.length?(0,u.jsxs)(h.a,{background:"surfaceRaised",width:"full",children:[(0,u.jsx)(h.a,{className:U().desktop,paddingTop:"1u",paddingBottom:"2u",children:(0,u.jsx)(N,{items:a,activePath:null==l?void 0:l.path,docsetName:n})}),(0,u.jsx)(h.a,{className:U().mobile,children:(0,u.jsx)(P,{items:a,activePath:null==l?void 0:l.path,docsetName:n})})]}):null};var W=n(30421),V=n(76561),q=n(39788),G=n(36680),J=n(33006),X=n(13887),Z=n(27572),K=n(10535),$=n(37351),ee=n(46511),et=n(20911),en=n.n(et);let ea=e=>{let{region:t,selected:n,onClick:a}=e,l=f.useCallback(()=>{a(t)},[t,a]);return(0,u.jsx)(J.ks,{onClick:l,end:n?(0,u.jsx)(X.S,{}):void 0,className:en().regionMenuItem,label:(0,ee.CC)(t)},t)},el=e=>(0,$.C)()?(0,u.jsx)(K.Vc,{title:"Region",alignText:"start",end:(0,u.jsx)(K.jQ,{onClick:e.onClose})}):(0,u.jsx)(h.a,{width:"full",display:"flex",justifyContent:"start",padding:"2u",paddingBottom:"0",children:(0,u.jsx)(w.EY,{tone:"secondary",size:"small",weight:"bold",tagName:"div",children:"Region"})}),er=()=>{let[e,t]=(0,ee.G0)(),[n,a]=f.useState(!1),l=f.useCallback(()=>{a(!0)},[]),r=f.useCallback(()=>{a(!1)},[]),i=f.useCallback(e=>{t(e),a(!1)},[t]);
1return(0,u.jsx)(J.nv,{open:n,headerDivider:"never",tone:"secondary",icon:Z.f,label:"global"!==e?(0,ee.CC)(e):void 0,tooltipPlacement:"top",tooltipLabel:"Region: ".concat((0,ee.CC)(e)),onRequestOpen:l,onRequestClose:r,header:(0,u.jsx)(el,{onClose:r}),children:ee.ij.map(t=>(0,u.jsx)(ea,{region:t,selected:t===e,onClick:i},t))})},ei=e=>{let{ref:t,...n}=e,a=(0,j.Z)("https://www.canva.com/");return(0,u.jsxs)("footer",{className:(0,g.A)(n.className,en().footer),ref:t,children:[n.FooterHelp,(0,u.jsx)("hr",{}),(0,u.jsxs)("div",{className:en().container,children:[(0,u.jsx)(h.a,{display:"flex",justifyContent:"start",className:en().start,children:(0,u.jsx)(er,{})}),(0,u.jsx)(h.a,{display:"flex",className:en().center,children:(0,u.jsxs)(m.S,{spacing:"0.5u",align:"center",children:[(0,u.jsxs)(w.EY,{tagName:"div",size:"medium",alignment:"center",className:en().copyright,children:["\xa9 ",new Date().getFullYear()," All Rights Reserved. Canva\xae"]}),(0,u.jsx)(w.EY,{tagName:"div",size:"medium",alignment:"center",children:(0,u.jsxs)("div",{className:en().legal,children:[(0,u.jsx)("a",{href:"".concat(a,"policies/privacy-policy/"),target:"_blank",rel:"noreferrer nofollow",children:"Privacy policy"}),(0,u.jsx)("span",{className:en().spacer}),(0,u.jsx)("a",{href:"".concat(a,"policies/"),target:"_blank",rel:"noreferrer nofollow",children:"Terms"})]})})]})}),(0,u.jsx)(h.a,{display:"flex",justifyContent:"end",className:en().end,children:(0,u.jsxs)("div",{className:en().social,children:[(0,u.jsx)("a",{className:en().socialItem,target:"_blank",href:"https://www.facebook.com/canva",rel:"noreferrer","aria-label":"Facebook",children:(0,u.jsx)(W.WQ,{})}),(0,u.jsx)("a",{className:en().socialItem,target:"_blank",href:"https://x.com/canva",rel:"noreferrer","aria-label":"Twitter",children:(0,u.jsx)(V.B,{})}),(0,u.jsx)("a",{className:en().socialItem,target:"_blank",href:"https://www.pinterest.com/canva",rel:"noreferrer","aria-label":"Pinterest",children:(0,u.jsx)(q.wC,{})}),(0,u.jsx)("a",{className:en().socialItem,target:"_blank",href:"https://instagram.com/canva",rel:"noreferrer","aria-label":"Instagram",children:(0,u.jsx)(G.I,{})})]})})]})]})};var es=n(51725),ec=n(1643),eo=n(68995),ed=n(20864),eu=n(60681),ep=n.n(eu),eh=n(98633),em=n.n(eh);let ev=e=>{let{item:t,onClick:n,showArrow:a}=e;return(0,u.jsx)(v.EY,{tagName:"div",tone:"secondary",children:(0,u.jsxs)(ep(),{className:em().item,href:t.path,onClick:n,children:[t.label,a&&(0,u.jsx)("span",{className:em().icon,children:(0,u.jsx)(ed.v,{})})]})})},eg=e=>{let{label:t,children:n,current:a,onForward:l}=e;return(0,u.jsxs)(h.a,{children:[""!==t&&(0,u.jsx)(h.a,{paddingTop:"1u",paddingX:"1.5u",children:(0,u.jsx)(w.hE,{tagName:"span",size:"small",children:t})}),(0,u.jsx)(h.a,{paddingTop:"1.5u",children:(0,u.jsx)(m.S,{spacing:"0.5u",children:n.map(e=>(0,u.jsx)(ev,{item:e,showArrow:e===a.item,onClick:t=>l(t,e)},"navitem__".concat(e.path)))})})]})};var ef=n(95969),ex=n(52087),eb=n.n(ex);let ew=e=>{let{label:t,onClick:n}=e;return(0,u.jsx)("button",{className:eb().header,onClick:n,children:(0,u.jsxs)("div",{className:eb().content,children:[(0,u.jsx)("div",{className:eb().icon,children:(0,u.jsx)(ef.Y,{})}),(0,u.jsx)(v.EY,{tagName:"div",size:"large",weight:"bold",className:eb().label,children:t})]})})};var ej=n(97523),ey=n(23136),eC=n(60596),ek=n(13441),eA=n.n(ek);let eN=()=>(0,u.jsx)("hr",{className:eA().divider});var eE=n(12775),eI=n.n(eE);let eS=e=>e.label||e.children?(0,u.jsxs)(h.a,{children:[e.label&&(0,u.jsx)(v.EY,{tagName:"span",tone:"primary",className:eI().label,children:e.label}),e.children&&(0,u.jsx)(h.a,{display:"flex",flexDirection:"column",className:eI().children,children:e.children})]}):null;var e_=n(31530),eT=n(74640),eB=n(62759),eR=n(45406),eL=n.n(eR);let eM=e=>{let{url:t,label:n,onClick:a}=e,l=(0,j.Z)(t),r=!(0,eB.i)(t),i=r?e_.I:eT.P;return(0,u.jsxs)(b.SI,{href:l,target:r?void 0:"_blank",onClick:a,className:eL().item,children:[(0,u.jsx)(v.EY,{tagName:"span",tone:v.f,lineClamp:1,className:eL().label,children:n}),(0,u.jsx)("span",{className:eL().icon,children:(0,u.jsx)(i,{size:"small"})})]})};var eF=n(20960),eP=n(39058),ez=n.n(eP),eO=n(10808),eQ=n(1841),eD=n.n(eQ);let eH=e=>(0,u.jsxs)("span",{className:eD().icon,children:[(0,u.jsx)(ez(),{src:e.staticSrc,className:eD().staticIcon,alt:e.alt,width:24,height:24}),(0,u.jsx)(ez(),{src:e.animatedSrc,className:eD().animatedIcon,alt:e.alt,width:24,height:24})]}),eU=e=>{let{src:t,alt:n}=e;return(0,u.jsx)("span",{className:eD().icon,children:(0,u.jsx)(ez(),{src:t,alt:n,width:24,height:24})})},eY=e=>{let{icon:t,label:n}=e,a=(0,eO.useRouter)();if("function"==typeof t)return(0,u.jsx)(t,{"aria-label":n});let l="".concat(a.basePath).concat(t);if(!l.endsWith(".gif"))return(0,u.jsx)(eU,{src:l,alt:n});{let e=l.replace(".gif",".png");return(0,u.jsx)(eH,{alt:n,staticSrc:e,animatedSrc:l})}};var eW=n(1551),eV=n.n(eW);let eq=e=>{let t=[eV().item,e.active&&eV().active];return(0,u.jsxs)(ep(),{href:e.path,onClick:e.onClick,className:(0,g.A)(t),children:[e.icon&&(0,u.jsx)(eY,{icon:e.icon,label:e.label}),(0,u.jsx)(v.EY,{tagName:"span",tone:v.f,lineClamp:1,className:eV().label,children:e.label}),e.state&&(0,u.jsx)(eF.x,{state:e.state})]})};var eG=n(72315),eJ=n.n(eG);let eX=e=>(0,u.jsxs)("div",{className:(0,g.A)(eJ().item,e.active&&eJ().active),onClick:e.onClick?t=>{var n;t.preventDefault(),null==(n=e.onClick)||n.call(e,t)}:void 0,children:[(0,u.jsxs)("span",{className:eJ().content,children:[e.icon&&(0,u.jsx)(eY,{icon:e.icon,label:e.label}),(0,u.jsx)(v.EY,{tagName:"span",tone:v.f,lineClamp:1,className:eJ().label,children:e.label})]}),(0,u.jsx)("span",{className:eJ().icon,children:(0,u.jsx)(ed.v,{})})]});var eZ=n(80117),eK=n.n(eZ);let e$=e=>{let{label:t,defaultExpanded:n=!1,children:a}=e,[l,r]=(0,f.useState)(n);return t||a?(0,u.jsxs)(h.a,{children:[(0,u.jsx)(I.JK,{noChildWrapper:!0,className:eK().item,disclosure:!0,pressed:l,onClick:()=>r(e=>!e),children:(0,u.jsxs)(h.a,{display:"flex",alignItems:"center",gap:"0.25u",className:eK().labelRow,children:[(0,u.jsx)(ed.v,{className:(0,g.A)(eK().icon,l&&eK().iconOpen),size:"small"}),(0,u.jsx)("span",{className:eK().label,children:(0,u.jsx)(v.EY,{tagName:"span",tone:v.f,lineClamp:1,children:t})})]})}),a&&(0,u.jsx)(h.a,{paddingStart:"3u",className:(0,g.A)(eK().children,{[eK().childrenOpen]:l}),children:(0,u.jsx)(h.a,{display:"flex",flexDirection:"column",gap:"0.25u",className:eK().childrenInner,children:a})})]}):null};var e0=n(88326),e1=n(90852),e2=n(30135),e4=n(2057),e6=n.n(e4);let e5=e=>(0,u.jsxs)("div",{className:(0,g.A)(e6().item,e.active&&e6().active),onClick:e.onClick?t=>{var n;t.preventDefault(),null==(n=e.onClick)||n.call(e,t)}:void 0,children:[(0,u.jsxs)("span",{className:e6().content,children:[e.icon&&(0,u.jsx)(eY,{icon:e.icon,label:e.label}),(0,u.jsx)(v.EY,{tagName:"span",tone:v.f,lineClamp:1,className:e6().label,children:e.label})]}),(0,u.jsx)("span",{className:e6().icon,children:(0,u.jsx)(ed.v,{})})]}),e3=e=>{let t=e.type;switch(t){case"group":return"group__".concat(e.label);case"section":return"section__".concat(e.path,"__").concat(e.label);case"api":return"versioned-section__".concat(e.path,"__").concat(e.label);case"page":return"page__".concat(e.path,"__").concat(e.label);case"link":return"link__".concat(e.url,"__").concat(e.label);case"subgroup":return"subgroup__".concat(e.label);default:throw new e2.J(t)}},e8=e=>{let t=(0,e0.u)(),n=(0,ey.c)(),a=(0,eC.R)(),l=!1!==e.showActive,{type:r}=e;if("group"===r)return(0,u.jsx)(eS,{label:e.label,children:e.children.map(t=>(0,f.createElement)(e8,{...t,showActive:l,onClick:e.onClick,key:e3(t)}))});if("section"===r)return e.hidden?null:(0,u.jsx)(eX,{label:e.label,active:l&&(null==a?void 0:a.path)===e.path,icon:e.icon,onClick:t=>{var a;null==(a=e.onClick)||a.call(e,t),n.goToSection(e.path)}});if("api"===r)return(0,u.jsx)(e5,{label:e.label,active:l&&(null==a?void 0:a.path)===e.path,icon:e.icon,onClick:t=>{var a;null==(a=e.onClick)||a.call(e,t),n.goToSection(e.path)}});if("page"===r)return e.hidden?null:(0,u.jsx)(eq,{path:e.path,label:e.label,active:l&&t===e.path,icon:e.icon,onClick:e.onClick,state:e.state});if("link"===r)return(0,u.jsx)(eM,{url:e.url,label:e.label,onClick:e.onClick});if("subgroup"===r){let n=null!=(0,e1.c)(e.children,t);return(0,u.jsx)(e$,{label:e.label,defaultExpanded:n,children:e.children.map(t=>(0,f.createElement)(e8,{...t,showActive:l,onClick:e.onClick,key:e3(t)}))})}if("divider"===r)return(0,u.jsx)(eN,{});throw new e2.J(r)};var e7=n(57397),e9=n(99162),te=n(15077);let tt=(e,t)=>{let n=(0,eO.useRouter)(),a=(0,e7.oh)(),l=f.useRef(0);(0,te.v)(()=>
1{if(!t.current||!(0,e9.T)())return;let r=()=>{var n,r;let i=null!=(r=null==(n=t.current)?void 0:n.scrollTop)?r:0;a?sessionStorage.setItem(e,String(i)):l.current=i};return(()=>{var n;let r=a?parseInt(sessionStorage.getItem(e)||"0",10):l.current;null==(n=t.current)||n.scrollTo(0,r)})(),n.events.on("routeChangeStart",r),()=>{n.events.off("routeChangeStart",r),r()}},[e,t,n.events])};var tn=n(72362),ta=n(80993),tl=n(50928),tr=n(26258),ti=n.n(tr);let ts={latest:"Latest",preview:"Preview",ga:null,deprecated:"Deprecated"},tc=e=>{let{value:t}=e;return"latest"===t.state||"preview"===t.state?(0,u.jsxs)(v.EY,{tagName:"span",lineClamp:1,children:[ts[t.state],(0,u.jsxs)("span",{className:ti().state,children:[" (",t.label,")"]})]},t.path):(0,u.jsxs)(v.EY,{tagName:"span",lineClamp:1,children:[t.label,ts[t.state]&&t.label.toLowerCase()!==ts[t.state]&&(0,u.jsxs)("span",{className:ti().state,children:[" (",ts[t.state],")"]})]},t.path)},to=e=>{let{section:t,onChange:n}=e,a=(0,ta.F)(t),[l,r]=f.useState(a),i=f.useCallback(e=>{n(e.children),r(e)},[n]),{top:s,other:c}=t.versions.reduce((e,t)=>(("latest"===t.state||"preview"===t.state?e.top:e.other).push({value:t}),e),{top:[],other:[]});return(0,u.jsx)("div",{className:ti().container,children:(0,u.jsx)(tl.g,{value:l,onChange:i,stretch:!0,options:[{label:"Current",options:s},{label:"Previous",options:c}],getLabel:tc,popoverWidth:"trigger"})})};var td=n(89849),tu=n.n(td);let tp=e=>{let{section:t,onBack:n}=e,a=(0,ta.F)(t),[l,r]=f.useState(()=>{var e;return"api"===t.type?null!=(e=null==a?void 0:a.children)?e:[]:t.children});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ew,{label:t.label,onClick:n}),"api"===t.type&&(0,u.jsx)(to,{section:t,onChange:r}),(0,u.jsx)("div",{className:tu().sidebarBody,children:l.map(e=>(0,f.createElement)(e8,{...e,key:e3(e)}))})]})},th=e=>{let{children:t,className:n,direction:a,name:l}=e,r=f.useRef(null),i=(0,eo.tF)();return f.useEffect(()=>{var e;let t=null==(e=r.current)?void 0:e.firstElementChild;null==t||t.focus({preventScroll:!0})},[]),tt("mobile-nav-scroll-".concat(l),r),(0,u.jsx)(T.P.div,{...{initial:"transitionIn",animate:"show",exit:"transitionOut",transition:{duration:.25,type:"tween"},variants:{transitionIn:{x:"forward"===a?"110%":"-110%"},show:{x:0},transitionOut:e=>({x:"backward"===e?"110%":"-110%"})}},className:(0,g.A)(tu().navContainer,n,!i&&tu().hidden),ref:r,children:t})},tm=(e,t)=>t?[e]:[e,(0,u.jsx)(h.a,{paddingY:"1.5u",children:(0,u.jsx)(ec.V,{x:"2u",y:"0",children:(0,u.jsx)(es.c,{})})},"".concat(String(e.key),"__divider"))],tv=(e,t,n)=>(0,ej.Tm)(e).flatMap((e,a,l)=>{if((0,ej.Sw)(e))return[(0,u.jsx)(ev,{item:e,showArrow:e===t.item,onClick:t=>n(t,e)},"navitem__".concat(e.path))];let r=a===l.length-1;switch(e.type){case"category":return tm((0,u.jsx)(eg,{label:e.label,children:(0,ej.Tm)(e.children),current:t,onForward:n},(0,ej.cF)(e)),r);case"section":return tm((0,u.jsx)(h.a,{children:tv(e.children,t,n)},(0,ej.cF)(e)),r);default:throw new e2.J(e)}}),tg=()=>{let{isActive:e,items:t}=(0,tn.y)(),n=(0,ey.c)(),a=f.useRef(null),l=f.useMemo(()=>((e,t)=>{for(let n of t){if((0,ej.IT)(n)){if(e(n))return{parent:void 0,item:n};continue}let t=(0,ej.n7)(n.children).find(e);if(t)return{parent:n,item:t}}return{parent:void 0,item:void 0}})(e,t),[t,e]),{active:r,direction:i,onForward:s,onBack:c}=(e=>{let t=(0,ey.c)(),[n,a]=f.useState(()=>t.data.children.length>0?{type:"sidebar"}:e.parent?{type:"nav",item:e.parent}:{type:"root"}),[l,r]=f.useState("forward");return{active:n,direction:l,onForward:(t,n)=>{r("forward"),null!=n&&((0,ej.V6)(n)?(a({type:"nav",item:n}),t.preventDefault()):n===e.item&&(a({type:"sidebar"}),t.preventDefault()))},onBack:()=>{r("backward"),"sidebar"===n.type?t.activeSection?t.goToRoot():e.parent?a({type:"nav",item:e.parent}):a({type:"root"}):"nav"===n.type&&a({type:"root"})}}})(l);return(0,u.jsx)("div",{className:tu().container,ref:a,children:(0,u.jsx)(_.N,{initial:!1,custom:i,children:(()=>{if("sidebar"===r.type)if(n.activeSection)return(0,u.jsx)(th,{name:"".concat(r.type,"-section"),direction:i,children:(0,u.jsx)(tp,{section:n.activeSection,onBack:c})},"nav__section__".concat(n.activeSection.path));else{var e;return(0,u.jsxs)(th,{name:r.type,direction:i,children:[(0,u.jsx)(ew,{label:(null==(e=l.item)?void 0:e.label)||"",onClick:c}),(0,u.jsx)("div",{className:tu().sidebarBody,children:n.data.children.map(e=>(0,f.createElement)(e8,{...e,onClick:s,key:"divider"!==e.type?e3(e):void 0}))})]},"nav__sidebar_root")}return"nav"===r.type?(0,u.jsxs)(th,{name:r.type,direction:i,children:[(0,u.jsx)(ew,{label:r.item.label,onClick:c}),(0,u.jsxs)("div",{className:tu().navBody,children:[tv(r.item.children,l,s),(0,ej.Tm)(r.item.children).some(e=>!(0,ej.Sw)(e))&&(0,u.jsx)(h.a,{paddingY:"1.5u",children:(0,u.jsx)(ec.V,{x:"2u",y:"0",children:(0,u.jsx)(es.c,{})})})]})]},"nav__".concat(r.item.path)):(0,u.jsx)(th,{name:r.type,direction:i,className:tu().navRoot,children:(0,u.jsx)("div",{className:tu().navBody,children:(0,ej.Tm)(t).map(e=>(0,u.jsx)(ev,{item:e,showArrow:!(0,ej.IT)(e),onClick:t=>s(t,e)},"root__".concat(e.path)))})},"nav__root")})()})})};var tf=n(32255),tx=n(89709),tb=n(93614),tw=n(65829),tj=n(38176),ty=n(53383),tC=n.n(ty);let tk=e=>{var t;let{align:n,className:a,menuClassName:l,tone:r="secondary",label:i,children:s,showChevron:c=!0,triggerAriaLabel:o,triggerTooltipLabel:d,popoverPlacementRef:p,popoverPlacement:h="bottom-center",openOnHover:m=!0,defaultOpen:v=!1}=e,[x,b]=f.useState(v),w=(0,tj.a)(),j=f.useRef(void 0),y=f.useRef(!1),C=f.useId(),k=f.useId(),A=f.useRef(null);f.useEffect(()=>()=>{clearTimeout(j.current)},[]);let N=f.useCallback(e=>{clearTimeout(j.current),m&&(j.current=setTimeout(()=>
1{b(e),tb.P7.setAccessMode("mouse"),y.current=!0,j.current=void 0},e?105:100))},[m]),E=f.useCallback(()=>N(!0),[N]),_=f.useCallback(()=>N(!1),[N]),T=f.useCallback(()=>clearTimeout(j.current),[]),B=f.useCallback(()=>{var e;b(!1),null==(e=A.current)||e.focus()},[]),R=null!=(t=null==p?void 0:p.current)?t:A.current;return(0,u.jsxs)("div",{children:[(0,u.jsx)(I.$n,{id:C,variant:r,alignment:n,className:(0,g.A)(tC().dropdownButton,a),ariaLabel:o,tooltipLabel:d,onMouseEnter:E,onMouseLeave:_,icon:c?S.D:void 0,iconPosition:"end",ariaHasPopup:"menu",disclosure:!0,ariaControls:x?k:void 0,pressed:x,active:x,buttonRef:A,onClick:()=>{b(e=>!e),y.current=!1},children:i}),w&&R&&(0,u.jsx)(tw.A,{id:k,open:x,width:"auto",maxWidth:"auto",captureFocus:!1,onRequestClose:B,placement:h,trigger:R,children:(0,u.jsx)("div",{className:(0,g.A)(tC().dropdownContent,l),onMouseEnter:T,onMouseLeave:_,onClick:B,"aria-labelledby":C,children:(0,u.jsx)(J.kO,{onRequestClose:B,children:s})})})]})};var tA=n(99663),tN=n.n(tA);let tE=e=>{let{ref:t,...n}=e;return(0,u.jsx)(b.$M,{...n,className:(0,g.A)(tN().dropdownMenuItem,tN()[tb.P7.accessMode],n.className),ref:t})};function tI(){return(tI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let tS=function(e){return f.createElement("svg",tI({xmlns:"http://www.w3.org/2000/svg",width:160,height:22,fill:"#fff",viewBox:"0 0 160 22"},e),f.createElement("svg",tI({width:56,viewBox:"0 0 80 30"},e),a||(a=f.createElement("path",{d:"M79.444 18.096c-.136 0-.26.088-.324.272-.82 2.34-1.928 3.732-2.84 3.732-.524 0-.736-.584-.736-1.5 0-2.292 1.372-7.152 2.064-9.368.08-.268.132-.508.132-.712 0-.644-.352-.96-1.224-.96-.94 0-1.952.368-2.936 2.092-.34-1.52-1.368-2.184-2.804-2.184-1.66 0-3.264 1.068-4.584 2.8s-2.872 2.3-4.04 2.02c.84-2.056 1.152-3.592 1.152-4.732 0-1.788-.884-2.868-2.312-2.868-2.172 0-3.424 2.072-3.424 4.252 0 1.684.764 3.416 2.444 4.256-1.408 3.184-3.464 6.064-4.244 6.064-1.008 0-1.304-4.932-1.248-8.46.036-2.024.204-2.128.204-2.74 0-.352-.228-.592-1.144-.592-2.136 0-2.796 1.808-2.896 3.884a10.2 10.2 0 0 1-.368 2.332c-.892 3.184-2.732 5.6-3.932 5.6-.556 0-.708-.556-.708-1.284 0-2.292 1.284-5.156 1.284-7.6 0-1.796-.788-2.932-2.272-2.932-1.748 0-4.06 2.08-6.248 5.976.72-2.984 1.016-5.872-1.116-5.872A2.9 2.9 0 0 0 36 9.916a.75.75 0 0 0-.432.728c.204 3.176-2.56 11.312-5.18 11.312-.476 0-.708-.516-.708-1.348 0-2.296 1.368-7.144 2.056-9.364.088-.288.136-.536.136-.752 0-.608-.376-.92-1.228-.92-.936 0-1.952.356-2.932 2.08-.344-1.52-1.372-2.184-2.808-2.184-2.356 0-4.988 2.492-6.144 5.74-1.548 4.336-4.668 8.524-8.868 8.524-3.812 0-5.824-3.172-5.824-8.184C4.068 8.312 9.38 2.4 13.32 2.4c1.884 0 2.784 1.2 2.784 3.04 0 2.228-1.244 3.264-1.244 4.112 0 .26.216.516.644.516 1.712 0 3.728-2.012 3.728-4.756S17.004.56 13.064.56C6.552.56 0 7.112 0 15.508c0 6.68 3.296 10.708 8.996 10.708 3.888 0 7.284-3.024 9.116-6.552.208 2.924 1.536 4.452 3.56 4.452 1.8 0 3.256-1.072 4.368-2.956.428 1.972 1.564 2.936 3.04 2.936 1.692 0 3.108-1.072 4.456-3.064-.02 1.564.336 3.036 1.692 3.036.64 0 1.404-.148 1.54-.708 1.428-5.904 4.956-10.724 6.036-10.724.32 0 .408.308.408.672 0 1.604-1.132 4.892-1.132 6.992 0 2.268.964 3.768 2.956 3.768 2.208 0 4.452-2.704 5.948-6.656.468 3.692 1.48 6.672 3.064 6.672 1.944 0 5.396-4.092 7.488-8.424.82.104 2.052.076 3.236-.76-.504 1.276-.8 2.672-.8 4.068 0 4.02 1.92 5.148 3.572 5.148 1.796 0 3.252-1.072 4.368-2.956.368 1.7 1.308 2.932 3.036 2.932 2.704 0 5.052-2.764 5.052-5.032 0-.6-.256-.964-.556-.964M23.32 21.888c-1.092 0-1.52-1.1-1.52-2.74 0-2.848 1.948-7.604 4.008-7.604.9 0 1.24 1.06 1.24 2.356 0 2.892-1.852 7.988-3.728 7.988m37.404-8.5c-.652-.776-.888-1.832-.888-2.772 0-1.16.424-2.14.932-2.14s.664.5.664 1.196c0 1.164-.416 2.864-.708 3.716m8.468 8.5c-1.092 0-1.52-1.264-1.52-2.74 0-2.748 1.948-7.604 4.024-7.604.9 0 1.22 1.052 1.22 2.356 0 2.892-1.82 7.988-3.724 7.988"}))),l||(l=f.createElement("path",{d:"M68.33 4.07h-4.48v13.18h4.48c4.1 0 6.51-2.13 6.51-6.6 0-4.45-2.4-6.58-6.51-6.58M65.92 15.5V5.82h2.26c2.94 0 4.5 1.3 4.5 4.84s-1.56 4.84-4.5 4.84zm19.52-2.88c.03-.29.05-.76.05-1.17-.02-2.88-1.56-4.33-4.21-4.33-2.6 0-4.67 1.65-4.67 5.16 0 3.44 1.86 5.15 4.82 5.15 2.26 0 3.42-1.03 3.97-2.33l-1.3-.8h-.
119c-.45.95-1.18 1.42-2.48 1.42-1.59 0-2.64-.85-2.77-2.97l6.59-.02zm-6.74-1.3c.22-1.87 1.16-2.62 2.58-2.62 1.43 0 2.24.75 2.3 2.62zm13.76 5.93 3.7-9.94h-2.05l-2.78 7.68h-.2L88.31 7.3h-2.1l3.73 9.94h2.5Zm13.46-4.63c.04-.29.06-.76.06-1.17-.02-2.88-1.57-4.33-4.22-4.33-2.6 0-4.67 1.65-4.67 5.16 0 3.44 1.86 5.15 4.82 5.15 2.26 0 3.43-1.03 3.97-2.33l-1.3-.8h-.19c-.45.95-1.18 1.42-2.48 1.42-1.58 0-2.64-.85-2.77-2.97l6.6-.02zm-6.74-1.3c.23-1.87 1.17-2.62 2.58-2.62 1.43 0 2.24.75 2.3 2.62zm11.24 6.11c.49 0 .96-.07 1.2-.22l-.2-1.54-.14-.04c-.15.05-.34.1-.52.1-.57 0-.87-.31-.87-1.04V3.32h-2v11.46c0 1.83.97 2.65 2.53 2.65m6.78 0c2.87 0 4.75-1.8 4.75-5.15s-1.88-5.16-4.74-5.16-4.75 1.8-4.75 5.16c0 3.35 1.89 5.15 4.75 5.15Zm0-1.7c-1.69 0-2.69-1.03-2.69-3.45 0-2.43 1-3.45 2.7-3.45s2.69 1.02 2.69 3.45-1 3.44-2.7 3.44Zm8.9 5.55v-5.2l.18-.04c.72 1 1.71 1.4 2.96 1.4 2.42 0 4.2-1.66 4.2-5.16s-1.68-5.16-4.07-5.16c-1.32 0-2.4.5-3.09 1.62l-.19-.04V7.3h-1.98v13.98h1.98Zm2.63-5.56c-1.53 0-2.64-1.03-2.64-3.44s1.11-3.45 2.64-3.45c1.65 0 2.63 1 2.63 3.45 0 2.44-.98 3.44-2.63 3.44m15.08-3.1c.04-.29.06-.76.06-1.17-.02-2.88-1.56-4.33-4.22-4.33-2.6 0-4.66 1.65-4.66 5.16 0 3.44 1.86 5.15 4.81 5.15 2.26 0 3.43-1.03 3.98-2.33l-1.3-.8h-.19c-.45.95-1.19 1.42-2.48 1.42-1.59 0-2.64-.85-2.77-2.97l6.59-.02.19-.11Zm-6.73-1.3c.22-1.87 1.16-2.62 2.57-2.62 1.44 0 2.25.75 2.3 2.62zm10.74 5.93v-4.77c0-2.52.89-3.44 2.32-3.44.49 0 .81.1 1.11.24l.19-.03.41-1.7a2.44 2.44 0 0 0-1.4-.34 2.5 2.5 0 0 0-2.51 1.66l-.2-.04V7.31h-1.9v9.94zm8.36.18c2.48 0 3.82-1.26 3.82-3.06 0-1.5-.77-2.45-2.7-2.88l-1.42-.34c-1.11-.25-1.45-.66-1.45-1.28 0-.74.58-1.15 1.75-1.15.92 0 1.62.26 2.22.96h.19l1.09-1.13c-.56-.8-1.56-1.43-3.5-1.43-2.22 0-3.64 1.07-3.64 2.84 0 1.4.78 2.37 2.72 2.84l1.48.36c.94.23 1.3.66 1.3 1.3 0 .81-.64 1.34-1.84 1.3-1.23-.04-2.07-.45-2.73-1.41h-.2l-1.12 1.2c.5 1.08 2.03 1.88 4.03 1.88"})))};function t_(){return(t_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let tT=function(e){return f.createElement("svg",t_({xmlns:"http://www.w3.org/2000/svg",width:160,height:22,fill:"none",viewBox:"0 0 160 22"},e),f.createElement("svg",t_({width:56,viewBox:"0 0 80 30"},e),r||(r=f.createElement("defs",null,f.createElement("radialGradient",{id:"_3370364224__a",cx:0,cy:0,r:1,gradientTransform:"matrix(16.80002 -17.28 11.48403 11.16504 40.96 29)",gradientUnits:"userSpaceOnUse"},f.createElement("stop",{stopColor:"#6420FF"}),f.createElement("stop",{offset:1,stopColor:"#6420FF",stopOpacity:0})),f.createElement("radialGradient",{id:"_3370364224__b",cx:0,cy:0,r:1,gradientTransform:"matrix(46.71996 4.16 -3.31561 37.23688 1.92 17.64)",gradientUnits:"userSpaceOnUse"},f.createElement("stop",{offset:.25,stopColor:"#00C4CC"}),f.createElement("stop",{offset:1,stopColor:"#00C4CC",stopOpacity:0})),f.createElement("radialGradient",{id:"_3370364224__c",cx:0,cy:0,r:1,gradientTransform:"rotate(-38.85 54.22 -35.3)scale(30.226 20.6676)",gradientUnits:"userSpaceOnUse"},f.createElement("stop",{stopColor:"#6420FF"}),f.createElement("stop",{offset:1,stopColor:"#6420FF",stopOpacity:0})),f.createElement("radialGradient",{id:"_3370364224__d",cx:0,cy:0,r:1,gradientTransform:"matrix(31.32001 -15.36 10.50269 21.41566 2.28 26.2)",gradientUnits:"userSpaceOnUse"},f.createElement("stop",{stopColor:"#6420FF"}),f.createElement("stop",{offset:1,stopColor:"#6420FF",stopOpacity:0})),f.createElement("radialGradient",{id:"_3370364224__e",cx:0,cy:0,r:1,gradientTransform:"matrix(67.99982 15.03996 -18.44596 83.39925 7.68 2.92)",gradientUnits:"userSpaceOnUse"},f.createElement("stop",{stopColor:"#00C4CC"}),f.createElement("stop",{offset:1,stopColor:"#00C4CC",stopOpacity:0})),f.createElement("pattern",{id:"_3370364224__f",width:1,height:1},f.createElement("path",{fill:"#7D2AE7",d:"M0 0h100v100H0z"}),f.createElement("path",{fill:"url(#_3370364224__a)",d:"M0 0h100v100H0z"}),f.createElement("path",{fill:"url(#_3370364224__b)",d:"M0 0h100v100H0z"}),f.createElement("path",{fill:"url(#_3370364224__c)",d:"M0 0h100v100H0z"}),f.createElement("path",{fill:"url(#_3370364224__d)",d:"M0 0h100v100H0z"}),f.createElement("path",{fill:"url(#_3370364224__e)",d:"M0 0h100v100H0z"})))),i||(i=f.createElement("path",{fill:"url(#_3370364224__f)",d:"M79.444 18.096c-.136 0-.26.088-.324.272-.82 2.34-1.928 3.732-2.84 3.732-.524 0-.736-.584-.736-1.5 0-2.292 1.372-7.152 2.064-9.368.08-.268.132-.508.132-.712 0-.644-.352-.96-1.224-.96-.94 0-1.952.368-2.936 2.092-.34-1.52-1.368-2.184-2.804-2.184-1.66 0-3.264 1.068-4.584 2.8s-2.872 2.3-4.04 2.02c.84-2.056 1.152-3.592 1.152-4.732 0-1.788-.884-2.868-2.312-2.868-2.172 0-3.424 2.072-3.424 4.252 0 1.684.764 3.416 2.444 4.256-1.408 3.184-3.464 6.064-4.244 6.064-1.008 0-1.304-4.932-1.248-8.46.036-2.024.204-2.128.204-2.74 0-.352-.228-.592-1.144-.592-2.136 0-2.796 1.808-2.896 3.884a10.2 10.2 0 0 1-.368 2.332c-.892 3.184-2.732 5.6-3.932 5.6-.556 0-.708-.556-.708-1.284 0-2.292 1.284-5.156 1.284-7.6 0-1.796-.788-2.932-2.272-2.932-1.748 0-4.06 2.08-6.248 5.976.72-2.984 1.016-5.872-1.
1116-5.872A2.9 2.9 0 0 0 36 9.916a.75.75 0 0 0-.432.728c.204 3.176-2.56 11.312-5.18 11.312-.476 0-.708-.516-.708-1.348 0-2.296 1.368-7.144 2.056-9.364.088-.288.136-.536.136-.752 0-.608-.376-.92-1.228-.92-.936 0-1.952.356-2.932 2.08-.344-1.52-1.372-2.184-2.808-2.184-2.356 0-4.988 2.492-6.144 5.74-1.548 4.336-4.668 8.524-8.868 8.524-3.812 0-5.824-3.172-5.824-8.184C4.068 8.312 9.38 2.4 13.32 2.4c1.884 0 2.784 1.2 2.784 3.04 0 2.228-1.244 3.264-1.244 4.112 0 .26.216.516.644.516 1.712 0 3.728-2.012 3.728-4.756S17.004.56 13.064.56C6.552.56 0 7.112 0 15.508c0 6.68 3.296 10.708 8.996 10.708 3.888 0 7.284-3.024 9.116-6.552.208 2.924 1.536 4.452 3.56 4.452 1.8 0 3.256-1.072 4.368-2.956.428 1.972 1.564 2.936 3.04 2.936 1.692 0 3.108-1.072 4.456-3.064-.02 1.564.336 3.036 1.692 3.036.64 0 1.404-.148 1.54-.708 1.428-5.904 4.956-10.724 6.036-10.724.32 0 .408.308.408.672 0 1.604-1.132 4.892-1.132 6.992 0 2.268.964 3.768 2.956 3.768 2.208 0 4.452-2.704 5.948-6.656.468 3.692 1.48 6.672 3.064 6.672 1.944 0 5.396-4.092 7.488-8.424.82.104 2.052.076 3.236-.76-.504 1.276-.8 2.672-.8 4.068 0 4.02 1.92 5.148 3.572 5.148 1.796 0 3.252-1.072 4.368-2.956.368 1.7 1.308 2.932 3.036 2.932 2.704 0 5.052-2.764 5.052-5.032 0-.6-.256-.964-.556-.964M23.32 21.888c-1.092 0-1.52-1.1-1.52-2.74 0-2.848 1.948-7.604 4.008-7.604.9 0 1.24 1.06 1.24 2.356 0 2.892-1.852 7.988-3.728 7.988m37.404-8.5c-.652-.776-.888-1.832-.888-2.772 0-1.16.424-2.14.932-2.14s.664.5.664 1.196c0 1.164-.416 2.864-.708 3.716m8.468 8.5c-1.092 0-1.52-1.264-1.52-2.74 0-2.748 1.948-7.604 4.024-7.604.9 0 1.22 1.052 1.22 2.356 0 2.892-1.82 7.988-3.724 7.988"}))),s||(s=f.createElement("path",{fill:"#0E1318",d:"M68.33 4.07h-4.48v13.18h4.48c4.1 0 6.51-2.13 6.51-6.6 0-4.45-2.4-6.58-6.51-6.58M65.92 15.5V5.82h2.26c2.94 0 4.5 1.3 4.5 4.84s-1.56 4.84-4.5 4.84zm19.52-2.88c.03-.29.05-.76.05-1.17-.02-2.88-1.56-4.33-4.21-4.33-2.6 0-4.67 1.65-4.67 5.16 0 3.44 1.86 5.15 4.82 5.15 2.26 0 3.42-1.03 3.97-2.33l-1.3-.8h-.19c-.45.95-1.18 1.42-2.48 1.42-1.59 0-2.64-.85-2.77-2.97l6.59-.02zm-6.74-1.3c.22-1.87 1.16-2.62 2.58-2.62 1.43 0 2.24.75 2.3 2.62zm13.76 5.93 3.7-9.94h-2.05l-2.78 7.68h-.2L88.31 7.3h-2.1l3.73 9.94h2.5Zm13.46-4.63c.04-.29.06-.76.06-1.17-.02-2.88-1.57-4.33-4.22-4.33-2.6 0-4.67 1.65-4.67 5.16 0 3.44 1.86 5.15 4.82 5.15 2.26 0 3.43-1.03 3.97-2.33l-1.3-.8h-.19c-.45.95-1.18 1.42-2.48 1.42-1.58 0-2.64-.85-2.77-2.97l6.6-.02zm-6.74-1.3c.23-1.87 1.17-2.62 2.58-2.62 1.43 0 2.24.75 2.3 2.62zm11.24 6.11c.49 0 .96-.07 1.2-.22l-.2-1.54-.14-.04c-.15.05-.34.1-.52.1-.57 0-.87-.31-.87-1.04V3.32h-2v11.46c0 1.83.97 2.65 2.53 2.65m6.78 0c2.87 0 4.75-1.8 4.75-5.15s-1.88-5.16-4.74-5.16-4.75 1.8-4.75 5.16c0 3.35 1.89 5.15 4.75 5.15Zm0-1.7c-1.69 0-2.69-1.03-2.69-3.45 0-2.43 1-3.45 2.7-3.45s2.69 1.02 2.69 3.45-1 3.44-2.7 3.44Zm8.9 5.55v-5.2l.18-.04c.72 1 1.71 1.4 2.96 1.4 2.42 0 4.2-1.66 4.2-5.16s-1.68-5.16-4.07-5.16c-1.32 0-2.4.5-3.09 1.62l-.19-.04V7.3h-1.98v13.98h1.98Zm2.63-5.56c-1.53 0-2.64-1.03-2.64-3.44s1.11-3.45 2.64-3.45c1.65 0 2.63 1 2.63 3.45 0 2.44-.98 3.44-2.63 3.44m15.08-3.1c.04-.29.06-.76.06-1.17-.02-2.88-1.56-4.33-4.22-4.33-2.6 0-4.66 1.65-4.66 5.16 0 3.44 1.86 5.15 4.81 5.15 2.26 0 3.43-1.03 3.98-2.33l-1.3-.8h-.19c-.45.95-1.19 1.42-2.48 1.42-1.59 0-2.64-.85-2.77-2.97l6.59-.02.19-.11Zm-6.73-1.3c.22-1.87 1.16-2.62 2.57-2.62 1.44 0 2.25.75 2.3 2.62zm10.74 5.93v-4.77c0-2.52.89-3.44 2.32-3.44.49 0 .81.1 1.11.24l.19-.03.41-1.7a2.44 2.44 0 0 0-1.4-.34 2.5 2.5 0 0 0-2.51 1.66l-.2-.04V7.31h-1.9v9.94zm8.36.18c2.48 0 3.82-1.26 3.82-3.06 0-1.5-.77-2.45-2.7-2.88l-1.42-.34c-1.11-.25-1.45-.66-1.45-1.28 0-.74.58-1.15 1.75-1.15.92 0 1.62.26 2.22.96h.19l1.09-1.13c-.56-.8-1.56-1.43-3.5-1.43-2.22 0-3.64 1.07-3.64 2.84 0 1.4.78 2.37 2.72 2.84l1.48.36c.94.23 1.3.66 1.3 1.3 0 .81-.64 1.34-1.84 1.3-1.23-.04-2.07-.45-2.73-1.41h-.2l-1.12 1.2c.5 1.08 2.03 1.88 4.03 1.88"})))},tB=()=>(0,u.jsx)(tx.EQ,{children:e=>{let t=e.classNames.includes("dark")?tS:tT;return(0,u.jsx)("div",{"aria-label":"Canva Developers logo",children:(0,u.jsx)(t,{})})}});var tR=n(52185),tL=n(1320),tM=n(67072),tF=n(74482),tP=n(79632),tz=n(1404),tO=n(7818),tQ=n(80457),tD=n(33101),tH=n(61222),tU=n(61102),tY=n(19193),tW=n.n(tY),tV=n(76902),tq=n(58900),tG=n(70447),tJ=n(12e3),tX=n(20151),tZ=n(31611),tK=n(92669);let t$=(0,tK.G)(tG.A),t0=e=>{let{ref:t,...n}=e,{onFocus:a,onBlur:l,clear:r,handleInputChange:i,hasChangedInputValue:s,query:c,hasQuery:o,isFocused:d,inputRef:p}=(e=>{let{onToggleFocus:t}=e,{refine:n,clear:a,query:l}=(0,tJ.V)(),r=(0,eO.useRouter)(),i=f.useRef(null),[s,c]=f.useState(!1),[o,d]=f.useState(!1),u=l.trim().length>0,p=(0,tX.YQ)(n,250,{maxWait:500});f.useEffect(()=>()=>{p.cancel()}
1,[p]);let h=f.useCallback(()=>{d(!0),null==t||t(!0)},[t]),m=f.useCallback(()=>{d(!1),null==t||t(!1)},[t]),v=f.useCallback(e=>{c(!0),p(null!=e?e:"")},[p]);return f.useEffect(()=>{var e,t;let a=null!=(t=null==(e=(0,e7.Co)())?void 0:e.getItem("query"))?t:"";a&&n(a)},[n]),(0,tZ.L)(e=>{var t,n;let a=i.current===document.activeElement;a||"/"!==e.key||(e.preventDefault(),null==(t=i.current)||t.focus()),a&&"Escape"===e.key&&(e.preventDefault(),null==(n=i.current)||n.blur())},[],i),f.useEffect(()=>(r.events.on("routeChangeComplete",m),()=>r.events.on("routeChangeComplete",m)),[m,r.events]),f.useEffect(()=>{var e;(0,e9.T)()&&(null==(e=(0,e7.Co)())||e.setItem("query",l))},[l]),{query:l,inputRef:i,isFocused:o,onFocus:h,onBlur:m,clear:a,handleInputChange:v,hasChangedInputValue:s,hasQuery:u}})({onToggleFocus:n.onToggleFocus}),h=!o&&!d;return(0,u.jsxs)("div",{className:tW().inputContainer,ref:t,children:[(0,u.jsx)(tV.a,{ref:t$(p,n.inputRef),type:"search",className:(0,g.A)(tW().input,h&&tW().iconSpacer),placeholder:n.placeholder,value:s?void 0:c,onChange:i,onFocus:a,onBlur:l,start:n.start,end:o?(0,u.jsx)(tz.g,{label:"Clear",icon:tq.u,onClick:r}):null}),(0,u.jsx)(_.N,{children:h&&(0,u.jsx)(T.P.kbd,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:tW().shortcutIcon,children:"/"})})]})};var t1=n(89509),t2=n(44711),t4=n(56424),t6=n(8473),t5=n(3130),t3=n(3305),t8=n(34836),t7=n.n(t8);let t9=e=>{var t,n;let{hit:a,isLast:l,isActive:r,onClick:i,onMouseMove:s,onMouseLeave:c}=e,{title:o,h1:d,h2:p,h3:h,h4:m,path:f,section:x}=a,w=null==(t=a._snippetResult)?void 0:t.code,j=null==(n=a._snippetResult)?void 0:n.content,y=w&&(0,t3.m)(w,"matchLevel")&&"none"!==w.matchLevel,C=j&&(0,t3.m)(j,"matchLevel")&&"none"!==j.matchLevel,k=y&&!C?"code":"content";return(0,u.jsx)("div",{onMouseMove:s,onMouseLeave:c,children:(0,u.jsxs)(b.SI,{href:f,className:(0,g.A)(t7().hit,r&&t7().active,l&&t7().last),onClick:i,children:[(0,u.jsx)("div",{className:t7().icon,children:(0,u.jsx)(tQ.W,{tone:"primary"})}),(0,u.jsxs)("div",{className:t7().body,children:[(0,u.jsx)("div",{className:t7().title,children:o}),(0,u.jsxs)(v.EY,{tagName:"div",children:["content"===k&&(0,u.jsx)(t6.Y,{hit:a,attribute:"content"}),"code"===k&&(0,u.jsx)("code",{className:t7().code,children:(0,u.jsx)(t6.Y,{hit:a,attribute:"code"})})]}),(0,u.jsx)("div",{className:t7().breadcrumbContainer,children:(0,u.jsxs)(v.EY,{tagName:"span",size:"small",className:t7().breadcrumbList,children:[x&&(0,u.jsx)(ne,{hit:a,name:"section"}),d&&(0,u.jsx)(ne,{hit:a,name:"h1"}),p&&(0,u.jsx)(ne,{hit:a,name:"h2"}),h&&(0,u.jsx)(ne,{hit:a,name:"h3"}),m&&(0,u.jsx)(ne,{hit:a,name:"h4"})]})})]})]})})},ne=e=>{let{hit:t,name:n}=e;return(0,u.jsx)("span",{className:t7().breadcrumbItem,children:(0,u.jsx)(t5.f,{hit:t,attribute:n})})};var nt=n(41305),nn=n.n(nt);let na=e=>{let{query:t}=e;return(0,u.jsx)(h.a,{padding:"2u",background:"surface",className:nn().container,children:(0,u.jsx)(v.EY,{tagName:"div",children:(e=>e?(0,u.jsxs)(u.Fragment,{children:["There are no results for ",(0,u.jsx)("span",{className:nn().query,children:e}),". Please try another search term."]}):"No search term entered. Try searching with a keyword or phrase.")(t)})})};var nl=n(43531),nr=n.n(nl);let ni=e=>{let{hits:t,setActiveHitIndex:n,activeHitIndex:a,onItemClick:l,query:r}=e;return t.length<1?(0,u.jsx)(na,{query:r}):(0,u.jsxs)("div",{className:nr().container,children:[(0,u.jsx)(v.EY,{tagName:"div",size:"small",tone:"tertiary",className:nr().section,children:"Suggested"}),t.map((e,t,r)=>{let i=t===r.length-1;return(0,u.jsx)(t9,{hit:e,onClick:t=>{t.preventDefault(),l(e)},onMouseMove:()=>{n(t)},onMouseLeave:()=>{n(-1)},isActive:a===t,isLast:i},e.path)})]})},ns=e=>{let[t,n]=f.useState(e);return f.useEffect(()=>{e&&n(!0)},[e]),[t,f.useCallback(()=>{n(!1)},[])]},nc=(0,tK.G)(tG.A),no=(0,tK.G)(t4.A),nd={initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15,ease:"easeOut"}},nu=e=>{let{open:t,reference:n,children:a,className:l}=e,r=f.useRef(null),i=f.useRef(null),s=f.useRef(0),c=(0,tU.j)(),[o,d]=ns(t),p=f.useCallback(e=>{let t=r.current;null!=t&&(t.style.setProperty("--search-width","".concat(Math.floor(e.reference.width),"px")),t.style.setProperty("--search-available-width","".concat(e.available.width,"px")),t.style.setProperty("--search-available-height","".concat(e.available.height,"px")))},[]),m=f.useCallback(()=>{var e;null==(e=i.current)||e.update()},[]),v=f.useCallback(e=>{var t,n;let a=null!=(n=null==(t=e.client)?void 0:t.height)?n:0;s.current!==a&&(s.current=a,m())},[m]);return(0,u.jsx)(t1.y,{ref:i,open:t||o,reference:n,placement:"bottom-center",offset:{main:0,cross:0},onCalculateLayout:p,children:(0,u.jsx)(_.N,{onExitComplete:d,children:t&&(0,u.jsx)(T.P.div,{...c?{}:nd,children:(0,u.jsx)(no,{onResize:v,client:!0,children:e=>{let{measureRef:t}=e;return(0,u.jsx)(h.a,{className:(0,g.A)(tW().popover,l),ref:nc(r,t),shadow:"surfaceRaised",background:"surface",borderRadius:"element",border:"control",borderTop:"none",children:a})}})})})})},np=e=>{var t;let{open:n,popover:a=!0,onItemClick:l,onToggleFocus:r,triggerRef:i}=e,s=(0,eO.useRouter)(),{items:c,results:o}=(0,t2.u)(),d=null!=(t=null==o?void 0:o.query)?t:"",[p,m]=f.useState(-1),v=f.useRef(p),g=f.useCallback(()=>{null==r||r(!0)},[r]),x=f.useCallback(()=>{null==r||r(!1)},[r]);f.useEffect(()=>{v.current=p},[p]),f.useEffect(()=>{v.current=-1,m(-1)},[d]),f.useEffect(()=>{let e=e=>{let t=v.current,n=c.length-1;if("ArrowDown"===e.key||"ArrowUp"===e.key){let a=t+("ArrowDown"===e.key?1:-1);a<0&&(a=n),a>n&&(a=0),e.preventDefault(),m(a)}"Enter"===e.key&&t>-1&&(e.preventDefault(),l(c[t]))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[c,s,l]);let b=(0,u.jsx)("div",{onFocus:g,onBlur:x,children:(0,u.jsx)(ni,{hits:c,setActiveHitIndex:m,activeHitIndex:p,query:d,onItemClick:l})});return a?(0,u.jsx)(nu,{open:n,reference:i.current,className:tW().results,children:b}):(0,u.jsx)(h.a,{className:tW().results,children:b})};function nh(e){return 0!==e.trim().length&&0!==e.replace(/[^\w\s]/gi,"").length}let nm=()=>{let{results:e}=(0,t2.u)();return null!=e&&nh(e.query)},nv={initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15,ease:"easeOut"}},ng=e=>{let{placeholder:t,onRequestClose:n}=e,a=(0,eO.useRouter)(),l=(0,tU.j)(),r=f.useRef(null),i=f.useRef(null),s=nm();((e,t)=>{f.useEffect(()=>{if(!1===e)return;let n=t.style.overflow,a=t.style.boxSizing,l=t.style.paddingRight,r=window.innerWidth-document.documentElement.clientWidth;return t.style.boxSizing="border-box",t.style.paddingRight="".concat(r,"px"),t.style.overflow="hidden",()=>{t.style.overflow=n,t.style.boxSizing=a,t.style.paddingRight=l}},[e,t])})(!0,document.body),f.useEffect(()=>{var e;null==(e=r.current)||e.focus()},[]);let c=f.useCallback(e=>{n(),a.push(e.path)},[n,a]);return(0,u.jsx)(E.O,{autoFocus:!1,preventScroll:"always",onRequestEscape:n,children:(0,u.jsx)(T.P.div,{...l?{}:nv,className:tW().fullscreen,children:(0,u.jsx)(h.a,{background:"surface",paddingX:"1.5u",paddingTop:"1.5u",height:"full",width:"full",children:(0,u.jsxs)("div",{className:(0,g.A)(tW().container),children:[(0,u.jsx)(t0,{placeholder:t,ref:i,inputRef:r,start:(0,u.jsx)(tz.g,{label:"Back",icon:tO.A,onClick:n})}),(0,u.jsx)(tD.h,{size:"1u"}),(0,u.jsx)(np,{open:s,popover:!1,triggerRef:i,onItemClick:c})]})})})})},nf=e=>{let{placeholder:t}=e,[n,a]=f.useState(!1),[l,r]=ns(n),i=f.useCallback(()=>{a(!1)},[]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(I.$n,{variant:"tertiary",icon:tQ.W,ariaLabel:"Search",onClick:()=>a(!0)}),(n||l)&&(0,tH.createPortal)((0,u.jsx)(_.N,{onExitComplete:r,children:n&&(0,u.jsx)(ng,{placeholder:t,onRequestClose:i})}),document.body)]})},nx=e=>{let{placeholder:t}=e,n=(0,eO.useRouter)(),a=f.useRef(null),l=f.useRef(null),[r,i]=f.useState(!1),s=nm()&&r,c=(0,tX.YQ)(e=>{i(e)},50),o=f.useCallback(e=>{var t;n.push(e.path),null==(t=a.current)||t.blur(),i(!1),c.cancel()},[c,n]);return(0,u.jsxs)("div",{className:(0,g.A)(tW().container,tW().inline,s&&tW().hasResults),children:[(0,u.jsx)(t0,{placeholder:t,ref:l,inputRef:a,onToggleFocus:c,start:(0,u.jsx)(tQ.W,{tone:"primary"})}),(0,u.jsx)(np,{open:s,triggerRef:l,onItemClick:o,onToggleFocus:c})]})},nb=(0,tL.p)("BBWIEHTIBK","1c80e3d3449eeef2f351abcfdcfd95cb"),nw=()=>{let e=(0,D.u)(),t=(0,tR.t)({default:!0,smallUp:!1}),n=e?"Search ".concat(e.name," documentation"):"Search developer resources",a=f.useMemo(()=>(e=>{let t=!0;return{...nb,search:n=>{let a=Array.isArray(n)?n:n.requests;if(!t&&a.every(e=>{var t;let n=null!=(t=e.params)?t:e;return(null==n?void 0:n.query)!=null&&nh(n.query)})){let t=e?'docset:"'.concat(e,'"'):void 0,n=a.map(e=>null!=e.params?{...e,params:{...e.params,filters:t}}:{...e,filters:t});return nb.search(n)}return t=!1,Promise.resolve({results:a.map(()=>({hits:[],nbHits:0,nbPages:0,page:0,processingTimeMS:0,hitsPerPage:0,exhaustiveNbHits:!1,query:"",params:""}))})}}})(null==e?void 0:e.name),[null==e?void 0:e.name]),l=e?["docset_".concat((0,tM.LW)(e.name.toLowerCase()))]:[];return(0,u.jsxs)(tF.G,{searchClient:a,indexName:"CANVA_DOT_DEV",future:{preserveSharedStateOnUnmount:!0},children:[(0,u.jsx)(tP.Z,{analyticsTags:l,hitsPerPage:5}),(0,u.jsx)(t?nf:nx,{placeholder:n})]})};var nj=n(5803);function ny(){return(ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let nC=function(e){return f.createElement("svg",ny({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),c||(c=f.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.82 2.382a.75.75 0 0 1-.05.814 6.46 6.46 0 0 0 9.034 9.034.75.75 0 0 1 1.193.672 10.02 10.02 0 1 1-10.9-10.899.75.75 0 0 1 .723.379m-2.12 1.4A8.52 8.52 0 1 0 20.217 14.3 7.96 7.96 0 0 1 9.7 3.782",clipRule:"evenodd"})))};function nk(){return(nk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let nA=function(e){return f.createElement("svg",nk({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),o||(o=f.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.006 9.002a3 3 0 1 0 0 6.001 3 3 0 0 0 0-6.001m-4.5 3a4.5 4.5 0 1 1 9.001 0 4.5 4.5 0 0 1-9.001 0M12.006 2.026a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5a.75.75 0 0 1 .75-.75M12.006 18.989a.75.75 0 0 1 .75.75v1.5a.75.75 0 1 1-1.5 0v-1.5a.75.75 0 0 1 .75-.75M4.86 4.82a.75.75 0 0 1 1.059.055l1.35 1.5A.75.75 0 0 1 6.154 7.38l-1.35-1.5a.75.75 0 0 1 .055-1.06M16.737 16.63a.75.75 0 0 1 1.06.056l1.35 1.5a.75.75 0 1 1-1.116 1.004l-1.35-1.5a.75.75 0 0 1 .056-1.06M2.014 12.003a.75.75 0 0 1 .75-.75h1.801a.75.75 0 0 1 0 1.5h-1.8a.75.75 0 0 1-.75-.75M18.652 12.003a.75.75 0 0 1 .75-.75h1.8a.75.75 0 0 1 0 1.5h-1.8a.75.75 0 0 1-.75-.75M7.23 16.566a.75.75 0 0 1 .055 1.059l-1.35 1.5a.75.75 0 1 1-1.115-1.003l1.35-1.5a.75.75 0 0 1 1.06-.056M19.135 4.82a.75.75 0 0 1 .056 1.059l-1.35 1.5a.75.75 0 1 1-1.115-1.003l1.35-1.5a.75.75 0 0 1 1.06-.056",clipRule:"evenodd"})))};function nN(){return(nN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var nE=n(90313),nI=n(28090),nS=n(66601),n_=n.n(nS);let nT=[...new Map([["light",{label:"Light",Icon:nA}],["dark",{label:"Dark",Icon:nC}],["system",{label:"System",Icon:function(e){return f.createElement("svg",nN({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"}
1,e),d||(d=f.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 5.5H4a.5.5 0 0 0-.5.5v7.444h17V6a.5.5 0 0 0-.5-.5M3.5 16v-1.139h17V16a.5.5 0 0 1-.5.5H4a.5.5 0 0 1-.5-.5M22 16V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4v1.583H5.708a.708.708 0 0 0 0 1.417h12.584a.708.708 0 1 0 0-1.417H16V18h4a2 2 0 0 0 2-2m-7.5 2h-5v1.583h5z",clipRule:"evenodd"})))}}]]).entries()],nB=()=>(0,u.jsx)("span",{className:n_().menuIcon,"aria-hidden":"true"}),nR=e=>{let t="200%",n={initial:"transitionIn",animate:"show",exit:"transitionOut",transition:{duration:.4,type:"tween",ease:"circInOut"},variants:{transitionIn:{y:t},show:{y:0},transitionOut:{y:t}}};return(0,u.jsx)("div",{className:n_().animatedIcon,"aria-hidden":"true",children:(0,u.jsxs)(_.N,{initial:!1,custom:e.theme,mode:"popLayout",children:["light"===e.theme&&(0,u.jsx)(T.P.div,{...n,children:(0,u.jsx)(nA,{})},"light"),"dark"===e.theme&&(0,u.jsx)(T.P.div,{...n,children:(0,u.jsx)(nC,{})},"dark")]})})},nL=e=>{let{defaultOpen:t=!1}=e,n=(0,nj.x)(),a=(0,nE.J)(),[l,r]=(0,nI.DP)();if(!n)return(0,u.jsx)("div",{className:n_().placeholder});let i=(0,u.jsx)(nR,{theme:"system"===l?a:l});return(0,u.jsx)(tk,{label:i,tone:"tertiary",popoverPlacement:"bottom-end",openOnHover:!1,showChevron:!1,triggerAriaLabel:"Toggle theme",triggerTooltipLabel:"Toggle theme",className:n_().button,defaultOpen:t,children:nT.map(e=>{let[t,{label:n,Icon:a}]=e,i=t===l;return(0,u.jsx)(tE,{label:n,start:(0,u.jsx)(a,{}),end:i?(0,u.jsx)(X.S,{size:"small"}):(0,u.jsx)(nB,{}),onClick:()=>r(t),className:n_().menuItem},t)})})};var nM=n(88263),nF=n(17497),nP=n.n(nF);let nz=e=>{var t;let{item:n}=e,a=(0,eO.useRouter)(),l=null!=(t=n.layout)?t:nM._.HORIZONTAL;return(0,u.jsx)(tE,{href:n.path,className:(0,g.A)(nP().dropdownMenuItem,nP().blurbItem,l===nM._.HORIZONTAL&&nP().blurbItemHorizontalLayout,l===nM._.COVER&&nP().blurbItemCoverLayout),children:(0,u.jsxs)(h.a,{padding:"1u",gap:"2u",display:"flex",alignItems:"center",borderRadius:"element",flexDirection:l===nM._.HORIZONTAL?"row":"column",className:(0,g.A)(nP().flyoutMenuItem),children:[l===nM._.COVER&&void 0!==n.thumbnail&&(0,u.jsx)(h.a,{className:nP().blurbItemThumbnailWrapper,position:"relative",borderRadius:"baseUnit",children:(0,u.jsx)(ez(),{className:nP().blurbItemThumbnail,src:"".concat(a.basePath).concat(n.thumbnail),alt:"",loading:"eager",fill:!0,style:{objectFit:"cover"}})}),l===nM._.HORIZONTAL&&void 0!==n.icon&&(0,u.jsx)(nQ,{icon:n.icon,variant:n.iconVariant}),(0,u.jsxs)(h.a,{display:"flex",flexDirection:"column",className:nP().blurbItemHeading,children:[(0,u.jsxs)(v.EY,{tagName:"span",weight:"bold",size:"large",className:nP().blurbItemTitle,children:[n.label,(0,u.jsxs)(h.a,{tagName:"span",className:nP().chevronIconContainer,children:[(0,u.jsx)(h.a,{tagName:"span",className:nP().chevronNbsp,children:"\xa0"}),(0,u.jsx)(ed.v,{size:"small",className:nP().chevronIcon})]})]}),(0,u.jsx)(v.EY,{tagName:"span",tone:"tertiary",size:"medium",children:n.blurb})]})]})})},nO=e=>{let{item:t}=e;return(0,u.jsx)(tE,{href:t.path,className:(0,g.A)(nP().dropdownMenuItem,nP().linkItem),children:(0,u.jsx)(h.a,{paddingX:"1u",display:"flex",alignItems:"center",children:(0,u.jsx)(v.EY,{tagName:"span",size:"medium",tone:"subtle",children:t.label})})})},nQ=e=>{let t=e.icon,n="highContrast"===e.variant;return(0,u.jsx)(tx.y,{light:n?"dark":void 0,classicLight:n?"dark":void 0,dark:n?"light":void 0,classicDark:n?"light":void 0,children:n=>{let{className:a}=n;return(0,u.jsx)(h.a,{background:"surfaceSunken",className:a,borderRadius:"element",position:"relative",children:(0,u.jsx)(h.a,{borderRadius:"element",display:"flex",alignItems:"center",justifyContent:"center",className:[nP().menuItemIcon,"blue"===e.variant&&nP().menuItemIconBlue,"subtle"===e.variant&&nP().menuItemIconSubtle,a],children:(0,u.jsx)(t,{size:"medium"})})})}})},nD=e=>{let{items:t,columnLength:n}=e,a=null!=n&&n>0;return(0,u.jsx)(h.a,{tagName:"ul",display:"flex",flexDirection:"column",className:a&&nP().leafListWrapped,customProperties:a?{"--column-length":n}:void 0,children:t.map(e=>(0,ej.r4)(e)?(0,u.jsx)(nz,{item:e},e.path):(0,u.jsx)(nO,{item:e},e.path))})},nH=e=>{let{category:t,columnLength:n}=e;return(0,u.jsxs)(h.a,{display:"flex",flexDirection:"column",height:"full",gap:"1u",children:[t.label&&(0,u.jsx)(h.a,{paddingX:"1u",className:nP().categoryLabel,children:(0,u.jsx)(v.EY,{tagName:"span",size:"large",weight:"bold",children:t.label})}),(0,u.jsx)(nD,{items:(0,ej.Tm)(t.children),columnLength:n})]})},nU=e=>{let{items:t,columnLength:n}=e,a=(0,ej.Tm)(t),l=a.filter(ej.Sw);return l.length===a.length?(0,u.jsx)(nD,{items:l,columnLength:n}):(0,u.jsx)(u.Fragment,{children:a.map(e=>{if((0,ej.Sw)(e))return(0,u.jsx)(nD,{items:[e]},e.path);switch(e.type){case"category":return(0,u.jsx)(nH,{category:e,columnLength:n},(0,ej.cF)(e));case"section":return(0,u.jsx)(h.a,{className:nP().section,alignSelfInFlex:"stretch",display:"flex",gap:"6u",padding:"2u",children:(0,u.jsx)(nU,{items:e.children,columnLength:e.columnLength})},(0,ej.cF)(e));default:throw new e2.J(e)}})})},nY=e=>{let{item:t,isActive:n,flyoutPlacementRef:a,flyoutPlacement:l}=e,r=n(t),i=(0,j.Z)((0,ej.IT)(t)?t.path:"");if((0,ej.IT)(t))return(0,u.jsx)(v.EY,{tagName:"div",size:"medium",weight:r?"bold":"regular",children:(0,u.jsx)(ep(),{href:i,className:(0,g.A)(nP().menuItemLink,r&&nP().menuItemLinkActive),children:t.label})});let s=(0,ej.y0)(t),c=(0,ej.Xe)(t.children,n,t.path),o=r||null!=c;return(0,u.jsx)(tk,{align:"center",className:(0,g.A)(nP().menuButton,o&&nP().menuButtonActive),menuClassName:(0,g.A)(nP().flyoutMenu,s&&nP().sectionedFlyoutMenu),tone:"tertiary",label:t.label,popoverPlacementRef:a,popoverPlacement:l,children:(0,u.jsx)(h.a,{tagName:"li",children:(0,u.jsx)(h.a,{display:"flex",alignItems:"start",className:nP().dropdownRootRow,gap:s?"0":"6u",children:(0,u.jsx)(nU,{items:t.children})})})})},nW=()=>{let{isActive:e,showSearch:t,items:n}=(0,tn.y)(),a=(0,j.Z)("https://www.canva.com/developers/"),l=f.useRef(null),r=(0,R.L)(),i={flyoutPlacementRef:l,flyoutPlacement:"bottom-start"};return(0,u.jsxs)("div",{className:nP().container,children:[(0,u.jsxs)("div",{className:nP().start,children:[(0,u.jsx)("div",{className:nP().menuIcon,children:(0,u.jsx)(I.$n,{variant:"tertiary",icon:tf.P,onClick:r.open,ariaLabel:"Main menu"})}),(0,u.jsx)("div",{className:nP().logo,children:(0,u.jsx)(ep(),{href:a,children:(0,u.jsx)(tB,{})})}),(0,u.jsx)("ul",{className:nP().menuItemList,ref:l,children:(0,ej.Tm)(n).map((t,n)=>(0,u.jsx)("li",{className:nP().menuItem,children:(0,u.jsx)(nY,{item:t,isActive:e,...n<2?i:{}})},t.label))})]}),(0,u.jsxs)("div",{className:nP().end,children:[t&&(0,u.jsx)(h.a,{display:"flex",justifyContent:"end",className:nP().search,children:(0,u.jsx)(nw,{})}),(0,u.jsx)(nL,{})]})]})};var nV=n(42462),nq=n(7633),nG=n.n(nq);let nJ=e=>{let{children:t,returnFocus:n=!0}=e,a=f.useRef(null),l=(0,R.L)(),r={background:{hidden:{opacity:0}
1,visible:{opacity:1}},panel:{hidden:{x:"-100%"},visible:{x:0}}},i={duration:.25,type:"tween"};return(0,te.v)(()=>(a.current=document.activeElement,()=>{let e=a.current;n&&e&&document.body.contains(e)&&requestAnimationFrame(()=>e.focus()),a.current=null}),[n]),(0,u.jsxs)(T.P.div,{className:nG().container,children:[(0,u.jsx)(T.P.div,{variants:r.background,initial:"hidden",animate:"visible",exit:"hidden",transition:i,className:nG().background,onClick:l.close},"off_canvas_background"),(0,u.jsx)(T.P.div,{variants:r.panel,initial:"hidden",animate:"visible",exit:"hidden",transition:i,className:nG().panel,children:(0,u.jsx)(E.O,{returnFocus:!1,className:nG().focusLock,children:t})},"off_canvas_panel")]},"off_canvas")},nX=e=>{let{children:t,returnFocus:n}=e,a=(0,R.L)();return(0,u.jsx)(_.N,{children:"open"===a.state&&(0,u.jsx)(nJ,{returnFocus:n,children:t})})};var nZ=n(24468),nK=n(82611),n$=n.n(nK);let n0=e=>{let{sidebar:t,section:n}=e,a=(0,ta.F)(n),[l,r]=f.useState(()=>{var e;return"api"===n.type?null!=(e=null==a?void 0:a.children)?e:[]:n.children});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:n$().sectionHeader,onClick:()=>{t.goToRoot()},children:[(0,u.jsx)("div",{className:n$().sectionIcon,children:(0,u.jsx)(ef.Y,{tone:"primary"})}),(0,u.jsx)(v.EY,{tagName:"div",size:"large",className:n$().sectionLabel,children:n.label})]}),"api"===n.type&&(0,u.jsx)(to,{section:n,onChange:r}),(0,u.jsx)(h.a,{paddingStart:"3u",display:"flex",flexDirection:"column",gap:"2u",children:l.map(e=>(0,f.createElement)(e8,{...e,key:e3(e)}))})]})},n1=e=>{let t=f.useRef(null),n=(0,eo.tF)(),a={initial:{x:e.isSection?"110%":"-110%"},exit:{x:e.isSection?"110%":"-110%"},animate:{x:0},transition:{duration:.25,type:"tween"}};return tt("sidebar-scroll-".concat(e.isSection?"section":"root"),t),(0,u.jsx)(T.P.div,{...a,className:(0,g.A)(n$().sidebarContainer,!n&&n$().hidden),ref:t,children:e.children})},n2=()=>{let e=(0,ey.c)();return(0,u.jsx)("div",{className:n$().container,children:(0,u.jsx)(_.N,{initial:!1,children:e.activeSection?(0,u.jsx)(n1,{isSection:!0,children:(0,u.jsx)("div",{className:n$().section,children:(0,u.jsx)(n0,{sidebar:e,section:e.activeSection})})},e3(e.activeSection)):(0,u.jsx)(n1,{isSection:!1,children:(0,u.jsx)("div",{className:n$().root,children:e.data.children.map(e=>(0,f.createElement)(e8,{...e,key:"divider"!==e.type?e3(e):void 0}))})},"root")})})};var n4=n(65648),n6=n(77152),n5=n(31166),n3=n.n(n5);let n8="100vh",n7=e=>{let t,{showSidebar:n="mediumUp",FooterHelp:a,children:l,noContentPadding:r=!1,showContextualNav:i}=e,s=(0,nV.M)(),c=(0,ey.c)(),o=(0,O.a)(),d=f.useRef(null),x=f.useRef(null),b=f.useRef(null),w=f.useRef(null),j=f.useRef(((e,t,n)=>{var a,l;return 72+56*(!0===n&&(null!=(l=null==e||null==(a=e.journeys)?void 0:a.length)?l:0)>0)+56*t.size()})(o,s,i)),y=f.useRef((t=j.current,"".concat(t,"px"))),C=f.useId(),k=f.useId(),[A,N]=f.useState(n8),[E,I]=f.useState(void 0);return(0,te.v)(()=>{if((0,e9.T)()){let e=()=>{var e;return null==(e=b.current)?void 0:e.getBoundingClientRect()},t=()=>{var t;let n=null==(t=e())?void 0:t.top;void 0!==n&&n<window.innerHeight?N("".concat(n,"px")):N(n8)},n=()=>{var n,a,l,r,i,s;let c=null!=(i=null==(n=(()=>{var e;return null==(e=x.current)?void 0:e.getBoundingClientRect()})())?void 0:n.bottom)?i:72;j.current=c,null==(a=d.current)||a.style.setProperty("--header-height","".concat(c,"px"));let o="".concat(c,"px");y.current=o,null==(l=d.current)||l.style.setProperty("--main-top",o),I("".concat(null!=(s=null==(r=e())?void 0:r.height)?s:0,"px")),t()};t(),n(),window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",n);let a=new ResizeObserver(t);w.current&&a.observe(w.current);let l=new ResizeObserver(n);return x.current&&l.observe(x.current),()=>{window.removeEventListener("scroll",t),window.removeEventListener("resize",n),a.disconnect(),l.disconnect()}}},[b,x,w,s]),(0,u.jsxs)(B.j,{children:[(0,u.jsxs)("div",{className:(0,g.A)(n3().container,{[n3().sidebarMediumUp]:"mediumUp"===n,[n3().sidebarLargeUp]:"largeUp"===n}),ref:d,style:{"--header-height":"".concat(j.current,"px"),"--main-top":y.current,"--sidebar-max-height":A,"--footer-height":E,"--sidebar-width":!1===n?"0px":void 0},children:[(0,u.jsx)(p.q,{to:C,useGlobalStyle:!0,children:"Skip navigation"}),(0,u.jsx)(p.q,{to:k,useGlobalStyle:!0,children:"Skip to main content"}),(0,u.jsxs)("header",{className:n3().navbar,ref:x,children:[(0,u.jsx)(nW,{}),(0,u.jsx)("div",{className:(0,g.A)(n3().banners,n3().bannersInHeader),children:s.getBanners()}),i&&(0,u.jsx)(Y,{})]}),(0,u.jsx)("div",{className:(0,g.A)(n3().banners,n3().bannersInFlow),children:s.getBanners()}),(0,u.jsx)("div",{className:n3().separator}),(0,u.jsxs)("main",{className:n3().main,id:C,ref:w,children:[(0,u.jsx)(v.EY,{tagName:"div",tone
1:"primary",children:(0,u.jsxs)("div",{className:n3().mainContainer,children:[!1!==n&&(0,u.jsx)("div",{className:n3().sidebar,children:(0,u.jsx)(n2,{})}),(0,u.jsx)("div",{className:(0,g.A)(n3().content,{[n3().contentWithPadding]:!r}),id:k,children:l})]})}),(0,u.jsx)(h.a,{position:"sticky",bottom:"0",end:"0",children:(0,u.jsx)(h.a,{paddingBottom:"2u",paddingEnd:"2u",position:"absolute",bottom:"0",end:"0",children:(0,u.jsx)(m.S,{id:n6.E,spacing:"1u",align:"end"})})})]}),(0,u.jsx)(ei,{className:n3().footer,FooterHelp:a,ref:b})]}),(0,u.jsx)(nX,{children:(0,u.jsx)(nZ.T,{sidebar:c.data,children:(0,u.jsx)(n4.G,{sidebar:c.data,children:(0,u.jsx)(tg,{})})})})]})}},53383:e=>{e.exports={dropdownButton:"rom01w",dropdownContent:"_1VQ8VQ"}},55946:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var a=n(97109),l=n(35042);let r=()=>a.useContext(l.c)},57397:(e,t,n)=>{"use strict";n.d(t,{Co:()=>c,nI:()=>s,oh:()=>i});var a=n(99162);let l=e=>()=>{if(!(0,a.T)()||!(e in window))return!1;try{let t=window[e];if(null==t)return!1;let n="E2StorageTest";return t.setItem(n,n),t.removeItem(n),!0}catch(e){return!1}},r=l("localStorage"),i=l("sessionStorage"),s=()=>r()?window.localStorage:void 0,c=()=>i()?window.sessionStorage:void 0},58115:(e,t,n)=>{"use strict";function a(e){var t;return null!=(t=e.src)?t:e}n.r(t),n.d(t,{default:()=>a})},58280:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});let a=n(97109).createContext(void 0)},60596:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var a=n(97109),l=n(95596);let r=()=>a.useContext(l.P)},60709:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});let a={name:"Button",path:"/docs/button/",versions:[{name:"v1",path:"/docs/button/",state:"stable"}],deprecated:!0,visible:(0,n(42882).K)()}},61102:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var a=n(97109),l=n(99162);let r="(prefers-reduced-motion: no-preference)",i=()=>!(0,l.T)()||!window.matchMedia(r).matches,s=()=>{let[e,t]=a.useState(i);return a.useEffect(()=>{let e=window.matchMedia(r),n=e=>{t(!e.matches)};return e.addEventListener?e.addEventListener("change",n):e.addListener(n),()=>{e.removeEventListener?e.removeEventListener("change",n):e.removeListener(n)}},[]),e}},62759:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});let a=e=>null!=e&&(e.startsWith("http:")||e.startsWith("https:")||e.startsWith("mailto:")||e.startsWith("cursor://"))},62808:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});let a={name:"Developers Blog",path:"/blog/developers/",sidebar:{type:"root",children:[{type:"group",label:"Developers Blog",children:[{type:"page",path:"/blog/developers/",label:"Overview"}]},{type:"group",label:"",children:[{type:"link",url:"https://www.canva.com/about/",label:"About Canva"}]}]}}},65648:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var a=n(65321),l=n(10808),r=n(97109),i=n(60596),s=n(58280),c=n(26388);let o=e=>{let{sidebar:t,children:n}=e,o=(0,l.useRouter)(),d=(0,i.R)(),[u,p]=r.useState(d),h=r.useCallback(e=>{p((0,c.S)(t,e))},[t]);return r.useEffect(()=>{let e=()=>{h(o.asPath)};return o.events.on("routeChangeComplete",e),()=>o.events.off("routeChangeComplete",e)},[o,h]),(0,a.jsx)(s.I.Provider,{value:{data:t,activeSection:u,goToRoot:()=>{p(void 0)},goToSection:h},children:n})}},66482:(e,t,n)=>{"use strict";n.d(t,{j:()=>d});var a=n(65321),l=n(10808),r=n(97109),i=n(11940),s=n(99162);let c=0,o=null,d=e=>{var t;let[n,d]=r.useState(null!=(t=e.initialState)?t:"closed"),{lock:u,unlock:p}=function(){let e=r.useRef(!1),t=()=>{(0,s.T)()&&e.current&&(e.current=!1,(()=>{if(!(c<=0)&&!((c-=1)>0)&&o){let{body:e}=document;e.style.overflow=o.overflow,e.style.paddingRight=o.paddingRight,o=null}})())};return r.useEffect(()=>()=>{t()},[]),{lock:()=>{(0,s.T)()&&!e.current&&(e.current=!0,(()=>{if((c+=1)>1)return;let e=document.documentElement,{body:t}=document,{overflow:n,paddingRight:a}=t.style;o={overflow:n,paddingRight:a};let l=window.innerWidth-e.clientWidth,r=Number(window.getComputedStyle(t).getPropertyValue("padding-right"));t.style.overflow="hidden",t.style.paddingRight="".concat(r+l,"px")})())},unlock:t}}(),h=(0,l.useRouter)(),m=r.useCallback(()=>{d("open"),u()},[u]),v=r.useCallback(()=>{d("closed"),p()},[p]),g=r.useCallback(e=>
1{("Escape"===e.key||27===e.keyCode)&&v()},[v]);return r.useEffect(()=>{if((0,s.T)())return window.addEventListener("keydown",g),()=>{window.removeEventListener("keydown",g)}},[g]),r.useEffect(()=>(h.events.on("routeChangeComplete",v),()=>h.events.off("routeChangeComplete",v)),[h.events,v]),(0,a.jsx)(i.B.Provider,{value:{state:n,open:m,close:v},children:e.children})}},66601:e=>{e.exports={baseUnit:"8pxundefined",colorActionSecondaryFg:"var(--oAdupw)undefined",iconButtonSize:"40px",smallIconSize:"16px",placeholder:"rPjc_w",button:"TqpfnA",animatedIcon:"k3LL9A",menuItem:"ASD1lA",menuIcon:"MFop0A"}},67130:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var a=n(65321);n(97109);var l=n(10778);let r=e=>{let t={items:e.items,isActive:e.isActive,showSearch:e.showSearch};return(0,a.jsx)(l.q.Provider,{value:t,children:e.children})}},68813:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var a=n(95985),l=n(3305),r=n(46511);let i={global:a.S.urlOverrides,cn:a.Y.urlOverrides},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,[n]=(0,r.G0)(),a=e,s=t[n];return(0,l.m)(s,a)&&(a=s[a]),"cn"===n&&(a=(a=a.replace(/\.canva\.com\/help\/(.+)\//,".canva.cn/help/$1-cn/")).replace(".canva.com/",".canva.cn/")),a}},69567:e=>{e.exports={colorContentInfoFg:"var(--gdRMVA)undefined",colorContentWarnFg:"var(--cVPmKw)undefined",preview:"TcS5Mw",deprecated:"dp8fWA",test:"DNGbvg"}},69892:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var a=n(97109),l=n(11940);let r=()=>{let e=a.useContext(l.B);if(!e)throw Error("useOffCanvas must be used within OffCanvasProvider");return e}},72315:e=>{e.exports={space100:"8pxundefined",space150:"12pxundefined",item:"CZbFBQ zXzCWQ",active:"txs_YA _23SXBw",content:"Xt9mrg",label:"_4QTBlg NJTMMA"}},72362:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var a=n(97109),l=n(10778);let r=()=>{let e=a.useContext(l.q);if(void 0===e)throw Error("useNavbar must be used within a NavbarProvider");return e}},77152:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,c:()=>l});let a="main-portal-root",l="#"+a},78635:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});let a={name:"Flourish Charts",path:"/opensource/flourish-charts/",versions:[{name:"v1",path:"/opensource/flourish-charts/",state:"stable"}]}},80117:e=>{e.exports={space025:"2pxundefined",duration250:"250msundefined",item:"LlyTvA zXzCWQ",labelRow:"Zp9iTQ",label:"KO3qlA NJTMMA",icon:"be1bFA",iconOpen:"SXfMzg",children:"AJeq2w",childrenOpen:"KdXKiA",childrenInner:"XL0QDw"}},80993:(e,t,n)=>{"use strict";n.d(t,{F:()=>l});var a=n(88326);function l(e){var t;let n=(0,a.u)();if(e&&"api"===e.type)return null!=(t=e.versions.find(e=>n.startsWith(e.path)))?t:e.versions[0]}},81983:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});let a={name:"Print API",path:"/docs/print/",visible:!1,versions:[{name:"v1",path:"/docs/print/",state:"stable"}]}},82611:e=>{e.exports={baseUnit:"8pxundefined",space100:"8pxundefined",space150:"12pxundefined",space300:"24pxundefined",space400:"32pxundefined",space600:"48pxundefined",iconSize:"24px",largeBreakpoint:"1200pxundefined",container:"lE45tg",sidebarContainer:"voDSaw",hidden:"T74cwA",sidebarPanel:"TKlzHA",root:"_4YUW0Q TKlzHA",section:"XqQ_Rg TKlzHA",sectionHeader:"kytg_Q",sectionIcon:"i2o_Mg",sectionLabel:"ezC7Ug",visible:"An4m9Q"}},83561:(e,t,n)=>{"use strict";n.d(t,{BO:()=>I,v_:()=>E});var a=n(43341),l=n(5283),r=n(30130),i=n(29281),s=n(35812),c=n(36783),o=n(64804),d=n(17454),u=n(4064),p=n(52081),h=n(41942),m=n(88263),v=n(62808),g=n(21790),f=n(6539),x=n(11081),b=n(48698),w=n(60709),j=n(91181),y=n(78635),C=n(44811),k=n(81983),A=n(20952);let N=[f.v,x.v,b.v,w.v,A.v,k.v,C.v,j.v];y.v,N.filter(e=>!1===e.visible),g.h,v.h;let E=[{type:"link",path:"https://www.canva.com/developers/",label:"Home"},{path:"/docs/",label:"Documentation",children:[{type:"section",children:[{type:"blurb",path:"/docs/",label:"Overview",blurb:"Getting started? Explore our developer tools.",thumbnail:"/images/documentation-overview.png",layout:m._.COVER}]},{type:"section",children:[{type:"category",label:"Canva Developers SDK",children:[{type:"blurb",path:x.v.path,label:"Explore the SDK",blurb:"Build new ways to work with Canva",icon:a.O},{type:"blurb",path:"/docs/apps/mcp/",label:"For AI assistants",blurb
1:"Bring Canva into AI tools with Canva MCP",icon:l.h,iconVariant:"subtle"},{type:"blurb",path:"/docs/apps/rest-apis/",label:"For your platform",blurb:"Integrate Canva into your platform with REST APIs",icon:r.e,iconVariant:"subtle"},{type:"blurb",path:"/docs/apps/apps-inside-canva/",label:"Apps inside Canva",blurb:"Build apps people use while they work in Canva",icon:i.K,iconVariant:"subtle"},{type:"blurb",path:w.v.path,label:w.v.name,blurb:"The discontinued Canva editor integration.",icon:s.j,iconVariant:"subtle",isVisible:()=>!1!==w.v.visible}]},{type:"category",label:"More documentation",children:[{type:"link",path:"/agents/",label:"Agents"},{type:"link",path:j.v.path,label:j.v.name},{type:"link",path:f.v.path,label:f.v.name},{type:"link",path:b.v.path,label:b.v.name},{type:"link",path:y.v.path,label:y.v.name}]}]}]},{path:"/solutions/",label:"Solutions",children:[{type:"category",label:"Industries",children:[{type:"blurb",path:"/solutions/",label:"Explore all",blurb:"See real world solutions in action",icon:c.X,iconVariant:"highContrast"},{type:"blurb",path:"/solutions/marketing/",label:"Marketing",blurb:"Automate your marketing workflows",icon:o.D},{type:"blurb",path:"/solutions/real-estate/",label:"Real estate",blurb:"Automate your real estate workflows",icon:d.I}]},{type:"category",label:"Solutions",children:[{type:"blurb",path:"/solutions/mcp/",label:"Connect via MCP",blurb:"Integrate Canva and your AI tool",icon:u.l,iconVariant:"blue"},{type:"blurb",path:"/docs/apps/app-templates/digital-asset-management/",label:"Connect your DAM",blurb:"Access work assets in Canva",icon:u.l,iconVariant:"blue"},{type:"blurb",path:"/docs/apps/app-templates/multiple-listing-service/",label:"Access MLS data",blurb:"Integrate MLS data into Canva",icon:u.l,iconVariant:"blue"},{type:"blurb",path:"/docs/apps/reference-apps/nourish/",label:"Sync platforms",blurb:"Automate content creation workflows",icon:u.l,iconVariant:"blue"}]}]},{path:"/blog/",label:"Blogs",children:[{type:"blurb",path:v.h.path,label:v.h.name,blurb:"For the developers building with Canva APIs and SDKs.",icon:p.e},{type:"blurb",path:g.h.path,label:g.h.name,blurb:"The technology behind Canva.",icon:h.D}]},{type:"link",path:"https://www.canva.com/developers/apps",label:"Your apps"},{type:"link",path:"https://www.canva.com/developers/integrations",label:"Your integrations"}],I={type:"root",children:[{type:"group",label:null,children:[{type:"page",label:"Welcome",path:"/docs/",hidden:!1}]},{type:"group",label:"SDKs and APIs",children:[{type:"page",label:x.v.name,path:x.v.path,hidden:!1===x.v.visible},{type:"page",label:j.v.name,path:j.v.path,hidden:!1===j.v.visible},{type:"page",label:f.v.name,path:f.v.path,hidden:!1===f.v.visible},{type:"page",label:b.v.name,path:b.v.path,hidden:!1===b.v.visible},{type:"page",label:y.v.name,path:y.v.path,hidden:!1===y.v.visible},{type:"page",label:w.v.name,path:w.v.path,hidden:!1===w.v.visible}]},{type:"group",label:"Build with AI",children:[{type:"page",label:"Agents",path:"/agents/"},{type:"link",label:"Skills",url:"https://github.com/canva-sdks/canva-skills/"},{type:"page",label:"Dev MCP",path:"/docs/apps/mcp/"},{type:"page",label:"Canva CLI",path:"/docs/apps/canva-cli/"}]},{type:"group",label:"Support",children:[{type:"link",label:"Community",url:"https://community.canva.dev/"},{type:"link",label:"Get help",url:"https://canva-external.atlassian.net/servicedesk/customer/portal/2/group/2"}]}]}},86347:e=>{e.exports={space100:"8pxundefined",space400:"32pxundefined",colorActionSelectedBg:"var(--1sn2Sg)undefined",colorActionSelectedFg:"var(--GviWcg)undefined",colorActionSelectedBgHovered:"var(--4HnQxA)undefined",radius08:"8pxundefined",duration100:"100msundefined",link:"_9qfTFQ",linkActive:"ySvH5Q",docsetNameLabel:"ytdO_A"}},88263:(e,t,n)=>{"use strict";n.d(t,{_:()=>a});var a=function(e){return e.COVER="cover",e.HORIZONTAL="horizontal",e}({})},88326:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var a=n(10808),l=n(35167);let r=()=>{let e=(0,a.useRouter)();return(0,l.F)(e.asPath)}},89849:e=>{e.exports={space100:"8pxundefined",space300:"24pxundefined",container:"HwcJ2g",navContainer:"_36UjjQ",hidden:"lVRXJA",navRoot:"fRsGMg",sidebarBody:"TulxPg",navBody:"aBF0GQ"}},90313:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var a=n(97109),l=n(15077);let r="(prefers-color-scheme: dark)",i=()=>{let[e,t]=a.useState("light");return(0,l.v)(()=>
1{t(window.matchMedia(r).matches?"dark":"light");let e=e=>{t(e.matches?"dark":"light")},n=window.matchMedia(r);return"function"==typeof n.addEventListener?n.addEventListener("change",e):n.addListener(e),()=>{"function"==typeof n.removeEventListener?n.removeEventListener("change",e):n.removeListener(e)}},[]),e}},90852:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});var a=n(30135);let l=(e,t)=>{for(let n of e){let e=n.type;switch(e){case"page":if(n.path===t)return n;break;case"group":case"subgroup":{let e=l(n.children,t);if(e)return e;break}case"divider":case"link":case"section":case"api":break;default:throw new a.J(e)}}}},91181:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});let a={name:"SCIM API",path:"/docs/scim/",versions:[{name:"v1",path:"/docs/scim/",state:"stable"}]}},92669:(e,t,n)=>{"use strict";function a(e){return e.default||e}n.d(t,{G:()=>a})},95596:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});let a=n(97109).createContext(void 0)},95985:(e,t,n)=>{"use strict";n.d(t,{S:()=>a,Y:()=>l});let a={designTypes:[{id:"TAEGmJTPvIg",name:"Business Card"},{id:"TAFJi5FXMSs",name:"Doc"},{id:"TAEB2BZnMpk",name:"Facebook Cover"},{id:"TAEB2LBUqpQ",name:"Facebook Post"},{id:"TABQquggrwo",name:"Greeting Card"},{id:"TABQqs5Kbyc",name:"Instagram Post"},{id:"TAC7OTjHMkE",name:"Instagram Story"},{id:"TACQ-j4WGew",name:"Letter"},{id:"TAB7AVEOUWQ",name:"Logo"},{id:"TAD9VKDO5tI",name:"Mobile Video"},{id:"TACjUzwty98",name:"Postcard"},{id:"TACQ-gtv2Yk",name:"Presentation"},{id:"TAC9A-5cG6Q",name:"Product Image"},{id:"TAEUgvg_lTE",name:"Resume"},{id:"TACGF5DgAqE",name:"Twitch Banner"},{id:"TAD-2D3JRN4",name:"Twitter / X Post"},{id:"TAEwJH6TtA8",name:"Whiteboard"},{id:"TACQ-mQ0NXU",name:"YouTube Thumbnail"},{id:"TAEB2MG0plQ",name:"YouTube Channel Art"}],exampleTemplateUrls:["https://www.canva.com/templates/EAE7AgOC3RA-blue-modern-simple-corporate-presentation/","https://www.canva.com/templates/EAEkQ3l1iIE-gradient-minimal-portfolio-proposal-presentation/","https://www.canva.com/templates/EAFcdOoUIdU-black-and-white-chalkboard-brainstorm-presentation/","https://www.canva.com/templates/EAFQ97nGubU-blue-minimalist-business-pitch-deck-presentation/","https://www.canva.com/templates/EAGHlexZevA-yellow-blue-comic-discussion-presentation/"],urlOverrides:{},codeReplacements:{}},l={designTypes:[{id:"TACkXtB1PrE",name:"åç"},{id:"TAFJi8UbloI",name:"ææ¡£"},{id:"TADaewlqHzQ",name:"微信æåå"},{id:"TABQqtO7tYQ",name:"微信é¿å¾"},{id:"TAC9S6yeLtE",name:"微信å
¬ä¼å·å°é¢"},{id:"TAESoVrwQW0",name:"微信红å
å°é¢"},{id:"TAFMuKHLKGE",name:"微信æååå°é¢"},{id:"TADTO2MBxqc",name:"头å"},{id:"TACQ-jGq9fY",name:"æµ·æ¥"},{id:"TAB7AVEOUWQ",name:"Logo"},{id:"TACixUyoqp0",name:"ä¼ å"},{id:"TACQ-gtv2Yk",name:"æ¼ç¤ºæç¨¿"},{id:"TADae_-2twE",name:"ç®å"},{id:"TAEUf_bjvKE",name:"å°çº¢ä¹¦"},{id:"TACkWLjrjtY",name:"ææºæµ·æ¥"},{id:"TAEwJNgIpjI",name:"ç½æ¿"}],exampleTemplateUrls:["https://www.canva.cn/templates/EAFiYqakU_U/"],urlOverrides:{"https://www.canva.com/policies/canva-developer-terms/":"https://www.canva.cn/policies/developer-terms/","https://www.canva.com/help/login-verification/":"https://www.canva.cn/help/login-verification-mfa/"},codeReplacements:{"https://www.canva.com/":"https://www.canva.cn/","https://api.canva.com/":"https://api.canva.cn/","https://export-download.canva.com/":"https://export-download.canva.cn/","https://document-export.canva.com":"https://document-export.canva.cn"}}},97523:(e,t,n)=>{"use strict";n.d(t,{IT:()=>r,Sw:()=>c,Tm:()=>d,Tu:()=>m,V6:()=>i,Xe:()=>f,cF:()=>h,n7:()=>p,r4:()=>o,y0:()=>u});var a=n(3305),l=n(30135);let r=e=>!(0,a.m)(e,"children"),i=e=>(0,a.m)(e,"children"),s=e=>"section"===e.type,c=e=>"blurb"===e.type||"link"===e.type,o=e=>"blurb"===e.type,d=e=>e.filter(e=>{var t,n;return null==(n=null==(t=e.isVisible)?void 0:t.call(e))||n}),u=e=>!r(e)&&d(e.children).some(s),p=e=>d(e).flatMap(e=>{if(c(e))return[e];switch(e.type){case"category":return d(e.children);case"section":return p(e.children);default:throw new l.J(e)}}),h=e=>[e.label,...p([e]).map(e=>e.path)].filter(Boolean).join("|"),m=(e,t)=>{let n=e=>e.path===t;for(let t of d(e))if(n(t)||!r(t)&&p(t.children).some(n))return!0;return!1},v=(e,t)=>
1e.path.split("/")[1]!==t.split("/")[1],g=(e,t,n)=>{for(let a of d(e.children))if(!v(a,n)&&t(a))return a},f=(e,t,n)=>{for(let a of d(e)){if(c(a)){if(t(a))return a;continue}switch(a.type){case"category":{let e=g(a,t,n);if(e)return e;break}case"section":{let e=f(a.children,t,n);if(e)return e;break}default:throw new l.J(a)}}}},98633:e=>{e.exports={space050:"4pxundefined",space100:"8pxundefined",space150:"12pxundefined",colorActionSelectedBgHovered:"var(--4HnQxA)undefined",colorContentSubtleFg:"var(--UpESEg)undefined",radiusElementStandard:"var(--0iDYqA)undefined",iconSize:"24px",item:"Qartxg",active:"Fr_qng",icon:"lkhFlA"}},99663:e=>{e.exports={colorActionTertiaryBgHovered:"var(--ntzWpQ)undefined",dropdownMenuItem:"fLKqbA",keyboard:"l62WbQ"}}}]);
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.