1(globalThis["webpackChunk_canva_web"] = globalThis["webpackChunk_canva_web"] || []).push([[94260],{ 2 3/***/ 177558: 4function(_, __, __webpack_require__) {__webpack_require__.n_x = __webpack_require__.n;const __web_req__ = __webpack_require__;__web_req__(30488);__web_req__(916518);globalThis._5f74ec40302898c5a55451c9fbd04240 = globalThis._5f74ec40302898c5a55451c9fbd04240 || {};(function(__c) {var Q4=function(a,b){var c=a.UHb.get(b);if(c!=null)return c;c={value:a.schema.az(b)};a.UHb.set(b,c);a.OHb.set(c,b);return c},R4=function(a,b){a=a.OHb.get(b);if(a==null)throw new Uzd("ref does not exists");return a},Vzd=function(){const a=b=>{if(b?.type!=="text2")throw new S4("text2",b);return b.value};return{mp:b=>({type:"text2",value:b}),bz:b=>{if(b?.type!=="text2")throw new T4("text2",b);return b.value},az:a,CD:a}},Wzd=__webpack_require__(261896).EW;var Xzd=class{static G(a){__c.N(a,{Dib:Wzd})}get Dib(){const a=[];for(const b of this.list.value){const c=Q4(this,b);if(c===void 0)throw new Uzd("undefined value found when deserializing list.");a.push(c)}return a}count(){return this.list.value.count()}toArray(){return this.Dib.map(({value:a})=>a)}first(a){const b=this.list.value.first(a?c=>a(Q4(this,c)):void 0);if(b!=null)return Q4(this,b)}last(a){const b=this.list.value.last(a?c=>a(Q4(this,c)):void 0);if(b!=null)return Q4(this,b)}next(a,b){var c= 5b?d=>b(Q4(this,d)):void 0;a=R4(this,a);c=this.list.value.next(a,c);if(c!=null)return Q4(this,c)}previous(a,b){var c=b?d=>b(Q4(this,d)):void 0;a=R4(this,a);c=this.list.value.previous(a,c);if(c!=null)return Q4(this,c)}map(a){return this.list.value.map((b,c)=>a(Q4(this,b),c))}filter(a){return this.list.value.filter((b,c)=>a(Q4(this,b),c)).map(b=>Q4(this,b))}forEach(a){return this.list.value.forEach((b,c)=>a(Q4(this,b),c))}some(a){return this.list.value.some(b=>a(Q4(this,b)))}constructor(a,b){this.schema= 6b;this.UHb=(Xzd.G(this),new WeakMap);this.OHb=new WeakMap;__c.x(a.type==="list");this.list=a}},Yzd=class extends Xzd{replace(a,b){a=R4(this,a);b=this.list.value.replace(a,this.schema.mp(b));return Q4(this,b)}OV(a,b){a=a!=null?R4(this,a):void 0;b=this.list.value.OV(a,this.schema.mp(b));return Q4(this,b)}fQ(a,b){a=a!=null?R4(this,a):void 0;return this.list.value.fQ(a,b.map(c=>this.schema.mp(c))).map(c=>Q4(this,c))}insertBefore(a,b){a=a!=null?R4(this,a):void 0;b=this.list.value.insertBefore(a,this.schema.mp(b)); 7return Q4(this,b)}append(a){a=this.list.value.append(this.schema.mp(a));return Q4(this,a)}prepend(a){a=this.list.value.prepend(this.schema.mp(a));return Q4(this,a)}delete(a){a=R4(this,a);this.list.value.delete(a)}Lz(a){this.list.value.Lz(a?b=>a(Q4(this,b)):void 0)}moveBefore(a,b){a=a==null?void 0:R4(this,a);b=R4(this,b);this.list.value.moveBefore(a,b)}};var V4=class{static string(a){const b=(c,d)=>
7{if(c==null&&a!=null)return a;if(c?.type!=="string")throw d==="toWidgetData"?new S4("string",c):new T4("string",c);return c.value};return{mp:c=>({type:"string",value:c}),bz:c=>b(c,"toWidgetState"),az:c=>b(c,"toWidgetData"),CD:c=>b(c,"toWidgetData")}}static literal(a,b){if(a.length===0)throw new U4("At least one value must be provided for literal types.");const c=new Set(a),d=(e,f)=>{if(e==null&&b!=null)return b;if(e?.type!=="string"||!c.has(e.value))throw f=== 8"toWidgetData"?new S4("literal",e):new T4("literal",e);return e.value};return{mp:e=>({type:"string",value:e}),bz:e=>d(e,"toWidgetState"),az:e=>d(e,"toWidgetData"),CD:e=>d(e,"toWidgetData")}}static integer(a){const b=(c,d)=>{if(c==null&&a!=null)return a;if(c?.type!=="int32"||!Number.isFinite(c.value)||!Number.isInteger(c.value))throw d==="toWidgetData"?new S4("integer",c):new T4("integer",c);return c.value};return{mp:c=>{if(!Number.isFinite(c)||!Number.isInteger(c))throw new Zzd("integer",c);return{type:"int32", 9value:c}},bz:c=>b(c,"toWidgetState"),az:c=>b(c,"toWidgetData"),CD:c=>b(c,"toWidgetData")}}static double(a){const b=(c,d)=>
9{if(c==null&&a!=null)return a;if(c?.type!=="double"||!Number.isFinite(c.value))throw d==="toWidgetData"?new S4("double",c):new T4("double",c);return c.value};return{mp:c=>{if(!Number.isFinite(c))throw new Zzd("double",c);return{type:"double",value:c}},bz:c=>b(c,"toWidgetState"),az:c=>b(c,"toWidgetData"),CD:c=>b(c,"toWidgetData")}}static boolean(a){const b=(c,d)=>{if(c==null&&a!= 10null)return a;if(c?.type!=="boolean")throw d==="toWidgetData"?new S4("boolean",c):new T4("boolean",c);return c.value};return{mp:c=>({type:"boolean",value:c}),bz:c=>b(c,"toWidgetState"),az:c=>b(c,"toWidgetData"),CD:c=>b(c,"toWidgetData")}}static fill(){const a=b=>{if(b?.type!=="fill")throw new S4("fill",b);return b.value};return{mp:b=>({type:"fill",value:b}),bz:b=>{if(b?.type!=="fill")throw new T4("fill",b);return b.value},az:a,CD:a}}static stroke(){const a=b=>{if(b?.type!=="stroke")throw new S4("stroke", 11b);return b.value};return{mp:b=>({type:"stroke",value:b}),bz:b=>{if(b?.type!=="stroke")throw new T4("stroke",b);return b.value},az:a,CD:a}}static N(a){const b=new Set;for(const d of Object.keys(a)){const [e]=a[d];if(b.has(e))throw new U4(`Duplicate serialized keys "${e}" found in record schema.`);b.add(e)}const c=(d,e)=>{if(e?.type!=="dict")throw new S4("record",e);const f={};for(const g of Object.keys(a)){const [h,k]=a[g],l=Wzd(()=>{const m=e.value.get(h);return k.az(m)},{keepAlive:!0});Object.defineProperty(f, 12g,{get(){return l.get()},set(m){d!=="readonly"&&(m=k.mp(m),m==null?e.value.delete(h):e.value.set(h,m))},enumerable:!0})}return f};return{mp:d=>{const e={};for(const f of Object.keys(a)){const [g,h]=a[f],k=h.mp(d[f]);k!=null&&(e[g]=k)}return{type:"dict",value:new Map(Object.entries(e))}},bz:d=>{if(d?.type!=="dict")throw new T4("record",d);const e={};for(const f of Object.keys(a)){const [g,h]=a[f],k=h.bz(d.value.get(g));k!=null&&(e[f]=k)}return e},az:d=>c("editable",d),CD:d=>c("readonly",d),ac:d=>V4.N({...a, 13...d})}}static list(a){return{mp:b=>({type:"list",value:b.map(c=>a.mp(c))}),bz:b=>{if(b?.type!=="list")throw new T4("list",b);return b.value.filter(__c.ra).map(c=>a.bz(c))},az:b=>{if(b?.type!=="list")throw new S4("list",b);return new Yzd(b,a)},CD:b=>{if(b?.type!=="list")throw new S4("list",b);return new Xzd(b,a)}}}static optional(a){return{mp:b=>{if(b!=null)return a.mp(b)},bz:b=>{if(b!=null)return a.bz(b)},az:b=>{if(b!=null)return a.az(b)},CD:b=>{if(b!=null)return a.CD(b)}}}static union(a,b){const c= 14new Set(Object.keys(a)),d=e=>{if(e?.type!=="dict")throw new S4("union",e);const f=e.value.get("k")?.value,g=e.value.get("v");if(f==null||g==null||typeof f!=="string"||!c.has(f))throw new S4("union",e);return{Gua:a[f],Hua:g}};return{mp:e=>{const f=b(e);return{type:"dict",value:new Map([["k",{type:"string",value:f}],["v",a[f].mp(e)]])}},bz:e=>{if(e?.type!=="dict")throw new T4("union",e);const f=e.value.get("k")?.value,g=e.value.get("v");if(f==null||g==null||typeof f!=="string"||!c.has(f))throw new T4("union", 15e);const {Gua:h,Hua:k}={Gua:a[f],Hua:g};return h.bz(k)},az:e=>{const {Gua:f,Hua:g}=d(e);return f.az(g)},CD:e=>{const {Gua:f,Hua:g}=d(e);return f.CD(g)}}}},U4=class extends Error{constructor(a){super(a);this.name="SchemaError"}},Uzd=class extends U4{constructor(a){super(`ListError: ${a}`)}},S4=class extends U4{constructor(a,b){super(`Error transforming ${b} into type ${a} of widget data`)}},T4=class extends U4{constructor(a,b){super(`Error transforming ${b} into type ${a} of widget state`)}},Zzd=class extends U4{constructor(a, 16b){super(`Error transforming ${b} into type ${a} of document state`)}};var $zd={settings:{status:2},iYc:new Map,jYc:0,RIc:void 0,hyc:void 0,lVa:!1,vJc:"unchecked",J1:!1,Kq:!1};var aAd=V4.N({type:["t",V4.literal(["text2"],"text2"),"readonly"],text:["te",Vzd()]}),bAd=V4.union({text2:aAd},a=>a.type),cAd=V4.N({id:["i",V4.string("")],label:["l",bAd]}),dAd=V4.list(cAd),eAd=V4.list(V4.string("")),fAd=V4.N({id:["i",V4.string("")],label:["l",bAd],wQ:["tl",V4.literal(["c","u"],"c")],yXa:["k",V4.optional(V4.double(1))],required:["rq",V4.boolean(!1)],X:["c",V4.double(0)]}),gAd=V4.N({type:["t",V4.literal(["r"],"r"),"readonly"]}),hAd=V4.N({type:["t",V4.literal(["p"],"p"),"readonly"]}), 17iAd=V4.N({type:["t",V4.literal(["q"],"q"),"readonly"]}),jAd=V4.union({r:gAd,p:hAd,q:iAd},a=>a.type),kAd=fAd.ac({type:["t",V4.literal(["select"],"select"),"readonly"],variant:["v",V4.optional(jAd)],options:["o",dAd],Paa:["m",V4.optional(V4.integer(1))],lPa:["co",eAd]}),lAd=V4.N({type:["t",V4.literal(["e"],"e"),"readonly"]}),mAd=V4.N({type:["t",V4.literal(["f"],"f"),"readonly"],AW:["n",V4.integer(1)]}),nAd=V4.union({e:lAd,f:mAd},a=>a.type),oAd=fAd.ac({type:["t",V4.literal(["text"],"text"),"readonly"], 18placeholder:["p",V4.string("")],variant:["v",nAd]}),pAd=V4.N({type:["t",V4.literal(["a"],"a"),"readonly"]}),qAd=V4.N({type:["t",V4.literal(["b"],"b"),"readonly"]}),rAd=V4.N({type:["t",V4.literal(["c"],"c"),"readonly"]}),sAd=V4.N({type:["t",V4.literal(["d"],"d"),"readonly"]}),tAd=V4.union({a:pAd,b:qAd,c:rAd,d:sAd},a=>a.type),uAd=fAd.ac({type:["t",V4.literal(["number"],"number"),"readonly"],variant:["v",tAd],min:["a",V4.optional(V4.double())],max:["b",V4.optional(V4.double())]}),vAd=V4.union({select:kAd, 19text:oAd,number:uAd},a=>a.type),wAd=V4.list(vAd),xAd=V4.N({Hu:["A",V4.optional(V4.double(1))],Iu:["B",V4.optional(V4.double(1))],xy:["C",V4.optional(V4.double(1))]}),yAd=V4.N({label:["l",bAd],wQ:["B",V4.optional(V4.literal(["c","u"]))],xy:["C",V4.optional(V4.double(1))],Iu:["E",V4.optional(V4.double(1))],Hu:["D",V4.optional(V4.double(1))],Rna:["F",V4.optional(V4.double(1))]}),zAd=V4.N({}),AAd=V4.N({Qna:["A",V4.double(1.25)],xy:["B",V4.double(1)],Iu:["C",V4.double(1.25)],Hu:["D",V4.double(1.25)],background:["E", 20V4.optional(V4.fill())]}),BAd=V4.N({label:["A",Vzd()],wQ:["tl",V4.literal(["c","u"])]}),CAd=V4.literal(["l","r"],"l"),DAd=V4.N({minHeight:["mh",V4.double(1)],minWidth:["mw",V4.double(1)],type:["t",V4.literal(["poll","quiz"],"poll"),"readonly"],id:["i",V4.string()],uw:["s",V4.string()],Pu:["a",V4.optional(V4.string())],direction:["r",CAd],wwa:["d",V4.string("")],yoa:["pf",V4.fill()],tpa:["sf",V4.fill()],border:["b",V4.stroke()],X:["c",V4.double(0)],Zk:["D",V4.optional(V4.double(16))],wm:["E",V4.optional(V4.double(16))], 21s0:["F",V4.optional(xAd)],r$:["hh",V4.boolean(!1)],zVa:["I",V4.optional(V4.boolean(!1))],bHa:["z",V4.boolean(!0)],Ufb:["h",V4.optional(zAd)],title:["j",V4.optional(BAd)],header:["A",V4.optional(AAd)],fields:["f",wAd],footer:["fo",V4.optional(yAd)]}),EAd=V4.union({poll:DAd,quiz:DAd},a=>a.type);__c.lRa={AVb:function(){return{uJc:$zd,schema:EAd}}}; 22}).call(globalThis, globalThis._5f74ec40302898c5a55451c9fbd04240);} 23 24}]) 25//# sourceMappingURL=sourcemaps/04a8afc1483fc0dc.js.map
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.