pptx-react-viewer 1.1.67 → 1.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -278,7 +278,7 @@ ${e}`:e,this.syncSegmentsFromNotes(),this}Add(t){return this.add(t)}set(t){let e
278
278
  `);n.push(i.join("")),o<e.length-1&&n.push(`
279
279
  `);}),n.join("").trim()}async extractSlideNotes(t){let e=this.slideRelsMap.get(t);if(!e)return {};let n;for(let[,y]of e.entries())if(y.includes("notesSlide")){n=this.resolveImagePath(t,y);break}if(!n)return {};let r=await this.zip.file(n)?.async("string");if(!r)return {};let i=this.parser.parse(r)?.["p:notes"],s=i?.["p:cSld"],a=s?.["p:spTree"];if(!a)return {};let l=this.ensureArray(a["p:sp"]),c=[],d=[],u=[];l.forEach((y,b)=>{let v=y?.["p:txBody"],S=this.extractTextFromTxBody(v);if(S.length>0){c.push(S);let w=this.extractTextSegmentsFromTxBodyForRewrite(v,void 0);d.length>0&&w.length>0&&d.push({text:`
280
280
  `,isParagraphBreak:true,style:{}}),d.push(...w);}try{let w=this.parseShape(y,`notes-shape-${b}`,n);w&&u.push(w);}catch{}});let p,f=i?.["p:clrMapOvr"]?.["a:overrideClrMapping"];if(f){let y={};for(let b of ["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"]){let v=f[`@_${b}`];v!=null&&(y[b]=String(v));}Object.keys(y).length>0&&(p=y);}let m=s?.["@_name"],g=m!=null?String(m):void 0,x=c.join(`
281
- `).trim();return {notes:x.length>0?x:void 0,notesSegments:d.length>0?d:void 0,notesShapes:u.length>0?u:void 0,notesClrMapOverride:p,notesCSldName:g}}},OMe=class A5 extends FMe{parsePlaceholderLevelStyle(e){if(!e)return null;let n={},r=String(e["@_algn"]||"").trim().toLowerCase();if(r.length>0){let x={l:"left",ctr:"center",r:"right",just:"justify"};n.alignment=x[r]??r;}let o=e["@_marL"];if(o!==void 0){let x=Number.parseInt(String(o),10);Number.isFinite(x)&&(n.marginLeft=x/A5.EMU_PER_PX);}let i=e["@_indent"];if(i!==void 0){let x=Number.parseInt(String(i),10);Number.isFinite(x)&&(n.indent=x/A5.EMU_PER_PX);}let s=e["a:lnSpc"];if(s){let x=this.parseLineSpacingMultiplier(s);if(x!==void 0)n.lineSpacing=x;else {let y=this.parseLineSpacingExactPt(s);y!==void 0&&(n.lineSpacingExactPt=y);}}let a=this.parseParagraphSpacingPx(e["a:spcBef"]);a!==void 0&&(n.spaceBefore=a);let l=this.parseParagraphSpacingPx(e["a:spcAft"]);l!==void 0&&(n.spaceAfter=l);let c=e["a:buChar"];c?.["@_char"]&&(n.bulletChar=String(c["@_char"]));let d=e["a:buAutoNum"];d?.["@_type"]&&(n.bulletAutoNumType=String(d["@_type"]));let u=e["a:buFont"];u?.["@_typeface"]&&(n.bulletFontFamily=String(u["@_typeface"]));let p=e["a:buSzPct"];if(p?.["@_val"]!==void 0){let x=Number.parseInt(String(p["@_val"]),10);Number.isFinite(x)&&(n.bulletSizePercent=x/1e3);}let h=e["a:buClr"];if(h){let x=h["a:srgbClr"];x?.["@_val"]&&(n.bulletColor=String(x["@_val"]));}let f=e["a:buSzPts"];if(f?.["@_val"]!==void 0){let x=Number.parseInt(String(f["@_val"]),10);Number.isFinite(x)&&(n.bulletSizePts=x/100);}e["a:buNone"]&&(n.bulletNone=true);let m=e["a:defRPr"];if(m){if(m["@_sz"]!==void 0){let b=Number.parseInt(String(m["@_sz"]),10);Number.isFinite(b)&&(n.fontSize=b/100*(96/72));}m["@_b"]!==void 0&&(n.bold=m["@_b"]==="1"),m["@_i"]!==void 0&&(n.italic=m["@_i"]==="1");let x=this.parseColor(m["a:solidFill"]);x&&(n.color=x);let y=m["a:latin"];if(y?.["@_typeface"]){let b=String(y["@_typeface"]),v=this.resolveThemeTypeface(b);n.fontFamily=v??b;}}return Object.keys(n).length>0?n:null}},BMe=class Zb extends OMe{extractPlaceholderDefaultsFromShape(e){let r=e["p:nvSpPr"]?.["p:nvPr"]?.["p:ph"];if(!r)return null;let o=r["@_type"],i=r["@_idx"],a={type:o!==void 0?String(o).toLowerCase():"body"};if(i!==void 0){let u=Number.parseInt(String(i),10);Number.isFinite(u)&&(a.idx=u);}let l=e["p:txBody"],c=l?.["a:bodyPr"];if(c){let u=c["@_lIns"];if(u!==void 0){let x=Number.parseInt(String(u),10);Number.isFinite(x)&&(a.bodyInsetLeft=x/Zb.EMU_PER_PX);}let p=c["@_tIns"];if(p!==void 0){let x=Number.parseInt(String(p),10);Number.isFinite(x)&&(a.bodyInsetTop=x/Zb.EMU_PER_PX);}let h=c["@_rIns"];if(h!==void 0){let x=Number.parseInt(String(h),10);Number.isFinite(x)&&(a.bodyInsetRight=x/Zb.EMU_PER_PX);}let f=c["@_bIns"];if(f!==void 0){let x=Number.parseInt(String(f),10);Number.isFinite(x)&&(a.bodyInsetBottom=x/Zb.EMU_PER_PX);}let m=String(c["@_anchor"]||"").trim();if(m.length>0&&(a.textAnchor=m),c["a:spAutoFit"]!==void 0)a.autoFit=true,a.autoFitMode="shrink";else if(c["a:normAutofit"]!==void 0){a.autoFit=true,a.autoFitMode="normal";let x=parseInt(String(c["a:normAutofit"]?.["@_fontScale"]||""),10);Number.isFinite(x)&&x>0&&(a.autoFitFontScale=x/1e5);let y=parseInt(String(c["a:normAutofit"]?.["@_lnSpcReduction"]||""),10);Number.isFinite(y)&&y>0&&(a.autoFitLineSpacingReduction=y/1e5);}else c["a:noAutofit"]!==void 0&&(a.autoFit=false,a.autoFitMode="none");let g=String(c["@_wrap"]||"").trim().toLowerCase();(g==="none"||g==="square")&&(a.textWrap=g);}let d=l?.["a:lstStyle"];if(d){let u={};for(let h=1;h<=9;h++){let f=`a:lvl${h}pPr`,m=this.parsePlaceholderLevelStyle(d[f]);m&&(u[h-1]=m);}let p=this.parsePlaceholderLevelStyle(d["a:defPPr"]);p&&(u[-1]=p),Object.keys(u).length>0&&(a.levelStyles=u);}if(l){let u=this.ensureArray(l["a:p"]),p=[];for(let f of u){let m=this.ensureArray(f?.["a:r"]);for(let x of m){if(!x)continue;let y=x["a:t"];y!==void 0&&p.push(String(y));}f?.["a:t"]!==void 0&&p.push(String(f["a:t"]));let g=this.ensureArray(f?.["a:fld"]);for(let x of g){if(!x)continue;let y=x["a:t"];y!==void 0&&p.push(String(y));}}let h=p.join("").trim();h.length>0&&(a.promptText=h);}return a}};UMe=class extends BMe{parseTextListStyle(t){if(!t)return;let e={},n=this.parsePlaceholderLevelStyle(t["a:defPPr"]);n&&(e[-1]=n);for(let r=1;r<=9;r++){let o=this.parsePlaceholderLevelStyle(t[`a:lvl${r}pPr`]);o&&(e[r-1]=o);}return Object.keys(e).length>0?e:void 0}parseMasterTxStyles(t){let e=t?.["p:txStyles"];if(!e)return;let n=this.parseTextListStyle(e["p:titleStyle"]),r=this.parseTextListStyle(e["p:bodyStyle"]),o=this.parseTextListStyle(e["p:otherStyle"]);if(!n&&!r&&!o)return;let i={};return n&&(i.titleStyle=n),r&&(i.bodyStyle=r),o&&(i.otherStyle=o),i}async enrichSlideMastersWithTxStyles(t){for(let e of t)try{let n=this.masterXmlMap.get(e.path);if(!n){let s=await this.zip.file(e.path)?.async("string");if(!s)continue;n=this.parser.parse(s),this.masterXmlMap.set(e.path,n);}let r=n["p:sldMaster"];if(!r)continue;let o=this.parseMasterTxStyles(r);o&&(e.txStyles=o,this.masterTxStylesCache.set(e.path,o));let i=L2(r["p:hf"]);i&&(e.headerFooter=i);}catch(n){console.warn("Failed to parse master txStyles:",n);}}parsePresentationDefaultTextStyle(){let e=this.presentationData?.["p:presentation"]?.["p:defaultTextStyle"];if(!e){this.presentationDefaultTextStyle=void 0;return}let n={};for(let o=1;o<=9;o++){let i=this.parsePlaceholderLevelStyle(e[`a:lvl${o}pPr`]);i&&(n[o-1]=i);}let r=this.parsePlaceholderLevelStyle(e["a:defPPr"]);r&&(n[-1]=r),this.presentationDefaultTextStyle=Object.keys(n).length>0?{type:"body",levelStyles:n}:void 0;}async getMasterElements(t){let e=this.slideRelsMap.get(t);if(!e)return [];let n;for(let[,r]of e.entries())if(r.includes("slideMaster")){let o=t.substring(0,t.lastIndexOf("/")+1);n=r.startsWith("..")?this.resolvePath(o,r):`ppt/${r.replace("../","")}`;break}if(!n)return [];if(this.masterCache.has(n))return this.masterCache.get(n);try{let r=await this.zip.file(n)?.async("string");if(!r)return [];let o=this.parser.parse(r);this.masterXmlMap.set(n,o);let i=`${n.replace("slideMasters/","slideMasters/_rels/")}.rels`;await this.loadSlideRelationships(n,i);let s=o["p:sldMaster"]?.["p:cSld"]?.["p:spTree"];if(!s)return this.masterCache.set(n,[]),[];this.unwrapAlternateContent(s);let a=this.ensureArray(s["p:sp"]),l=new Set;for(let u=0;u<a.length;u++){let p=a[u];if(p["p:nvSpPr"]?.["p:nvPr"]?.["p:ph"]){l.add(u);let m=this.extractPlaceholderDefaultsFromShape(p);if(m){this.masterPlaceholderDefaultsCache.has(n)||this.masterPlaceholderDefaultsCache.set(n,new Map);let g={type:m.type,idx:m.idx!==void 0?String(m.idx):void 0},x=this.buildPlaceholderDefaultsKey(g);this.masterPlaceholderDefaultsCache.get(n).set(x,m);}}}let c=this.extractSpTreeChildOrder(r,s,"p:spTree"),d=[];for(let u of c)if(u.tag==="p:sp"){if(l.has(u.indexInType))continue;let p=a[u.indexInType];if(!p)continue;let h=p["p:spPr"],f=null;h?.["a:blipFill"]?f=await this.parseShapeWithImageFill(p,`master-shape-img-${u.indexInType}`,n):f=this.parseShape(p,`master-shape-${u.indexInType}`,n),f&&(f.id=`master-${f.id}`,d.push(f));}else if(u.tag==="p:pic"){let h=this.ensureArray(s["p:pic"])[u.indexInType];if(!h)continue;let f=await this.parsePicture(h,`master-pic-${u.indexInType}`,n);f&&(f.id=`master-${f.id}`,d.push(f));}else if(u.tag==="p:graphicFrame"){let h=this.ensureArray(s["p:graphicFrame"])[u.indexInType];if(!h)continue;let f=this.parseGraphicFrame(h,`master-frame-${u.indexInType}`,n);f&&(f.id=`master-${f.id}`,d.push(f));}return this.masterCache.set(n,d),d}catch(r){return console.warn("Failed to parse master:",r),[]}}},$Me=class extends UMe{async getLayoutElements(t){let e=this.slideRelsMap.get(t);if(!e)return [];let n;for(let[,r]of e.entries())if(r.includes("slideLayout")){let o=t.substring(0,t.lastIndexOf("/")+1);n=r.startsWith("..")?this.resolvePath(o,r):`ppt/${r.replace("../","")}`;break}if(!n)return [];if(this.layoutCache.has(n))return this.layoutCache.get(n);try{let r=await this.zip.file(n)?.async("string");if(!r)return [];let o=this.parser.parse(r);this.layoutXmlMap.set(n,o);let i=`${n.replace("slideLayouts/","slideLayouts/_rels/")}.rels`;await this.loadSlideRelationships(n,i);let s=this.parseLayoutClrMapOverride(o),a=this.currentSlideClrMapOverride;s&&(this.currentSlideClrMapOverride=s);let l=o["p:sldLayout"]?.["p:cSld"]?.["p:spTree"];if(!l)return this.layoutCache.set(n,[]),[];this.unwrapAlternateContent(l);let c=this.ensureArray(l["p:sp"]),d=new Set;for(let x=0;x<c.length;x++){let y=c[x];if(It(y,"p:nvSpPr","p:nvPr","p:ph")){d.add(x);let v=this.extractPlaceholderDefaultsFromShape(y);if(v){this.layoutPlaceholderDefaultsCache.has(n)||this.layoutPlaceholderDefaultsCache.set(n,new Map);let S={type:v.type,idx:v.idx!==void 0?String(v.idx):void 0},w=this.buildPlaceholderDefaultsKey(S);this.layoutPlaceholderDefaultsCache.get(n).set(w,v);}}}let u=this.extractSpTreeChildOrder(r,l,"p:spTree"),p=[];for(let x of u)if(x.tag==="p:sp"){if(d.has(x.indexInType))continue;let y=c[x.indexInType];if(!y)continue;let b=ut(y,"p:spPr"),v=null;b&&ut(b,"a:blipFill")?v=await this.parseShapeWithImageFill(y,`layout-shape-img-${x.indexInType}`,n):v=this.parseShape(y,`layout-shape-${x.indexInType}`,n),v&&(v.id=`layout-${v.id}`,p.push(v));}else if(x.tag==="p:pic"){let b=this.ensureArray(l["p:pic"])[x.indexInType];if(!b)continue;let v=await this.parsePicture(b,`layout-pic-${x.indexInType}`,n);v&&(v.id=`layout-${v.id}`,p.push(v));}else if(x.tag==="p:graphicFrame"){let b=this.ensureArray(l["p:graphicFrame"])[x.indexInType];if(!b)continue;let v=this.parseGraphicFrame(b,`layout-frame-${x.indexInType}`,n);v&&(v.id=`layout-${v.id}`,p.push(v));}let h=Gt(ut(o,"p:sldLayout"),"showMasterSp"),m=h===void 0||h.trim().toLowerCase()!=="0"&&h.trim().toLowerCase()!=="false"?await this.getMasterElements(n):[];this.currentSlideClrMapOverride=a;let g=[...m,...p];return this.layoutCache.set(n,g),g}catch(r){return console.warn("Failed to parse layout:",r),[]}}},lW=["a:solidFill","a:gradFill","a:pattFill","a:noFill","a:grpFill"];HMe=class pa extends $Me{buildFillStyleEntry(e,n){switch(e){case "a:solidFill":return {kind:"solid",color:this.parseColor(n),opacity:this.extractColorOpacity(n),rawNode:n};case "a:gradFill":return {kind:"gradient",color:this.extractGradientFillColor(n),opacity:this.extractGradientOpacity(n),gradientStops:this.extractGradientStops(n),gradientAngle:this.extractGradientAngle(n),gradientType:this.extractGradientType(n),gradientCss:this.extractGradientFillCss(n),rawNode:n};case "a:pattFill":return {kind:"pattern",color:this.parseColor(n["a:fgClr"])||this.parseColor(n["a:bgClr"]),patternPreset:String(n["@_prst"]||"").trim()||void 0,patternBackgroundColor:this.parseColor(n["a:bgClr"])||void 0,rawNode:n};case "a:noFill":return {kind:"none",rawNode:n};case "a:grpFill":return {kind:"group",rawNode:n}}}collectFillChildren(e,n){let r={"a:solidFill":this.ensureArray(e["a:solidFill"]),"a:gradFill":this.ensureArray(e["a:gradFill"]),"a:pattFill":this.ensureArray(e["a:pattFill"]),"a:noFill":this.ensureArray(e["a:noFill"]),"a:grpFill":this.ensureArray(e["a:grpFill"])};if(n&&n.length>0){let i={"a:solidFill":0,"a:gradFill":0,"a:pattFill":0,"a:noFill":0,"a:grpFill":0},s=[];for(let a of n){let l=i[a],c=r[a][l];c&&(s.push(this.buildFillStyleEntry(a,c)),i[a]=l+1);}for(let a of lW)for(;i[a]<r[a].length;)s.push(this.buildFillStyleEntry(a,r[a][i[a]])),i[a]+=1;return s}let o=[];for(let i of lW)for(let s of r[i])o.push(this.buildFillStyleEntry(i,s));return o}parseFillStyleList(e,n){return e?this.collectFillChildren(e,n):[]}parseLineStyleList(e){return e?this.ensureArray(e["a:ln"]).map(r=>{let o=r,i={rawNode:o};if(o["@_w"]&&(i.width=parseInt(String(o["@_w"]))/pa.EMU_PER_PX),o["a:solidFill"])i.color=this.parseColor(o["a:solidFill"]),i.opacity=this.extractColorOpacity(o["a:solidFill"]);else if(o["a:gradFill"])i.color=this.extractGradientFillColor(o["a:gradFill"]);else if(o["a:pattFill"]){let d=o["a:pattFill"];i.color=this.parseColor(d["a:fgClr"])||this.parseColor(d["a:bgClr"]);}let s=o["a:prstDash"]?.["@_val"],a=this.normalizeStrokeDashType(s);a&&(i.dash=a),"a:round"in o?i.lineJoin="round":"a:bevel"in o?i.lineJoin="bevel":"a:miter"in o&&(i.lineJoin="miter");let l=String(o["@_cap"]||"").trim().toLowerCase();(l==="rnd"||l==="sq"||l==="flat")&&(i.lineCap=l);let c=String(o["@_cmpd"]||"").trim();return (c==="sng"||c==="dbl"||c==="thickThin"||c==="thinThick"||c==="tri")&&(i.compoundLine=c),i}):[]}parseEffectStyleList(e){return e?this.ensureArray(e["a:effectStyle"]).map(r=>{let o=r,i=o["a:effectLst"]??o["a:effectDag"],s={rawNode:o};if(!i)return s;let a=i["a:outerShdw"];if(a){s.shadowColor=this.parseColor(a),s.shadowOpacity=this.extractColorOpacity(a);let f=parseInt(String(a["@_blurRad"]||"0"));Number.isFinite(f)&&f>0&&(s.shadowBlur=f/pa.EMU_PER_PX);let m=parseInt(String(a["@_dist"]||"0")),g=parseInt(String(a["@_dir"]||"0"));if(Number.isFinite(m)&&m>0&&Number.isFinite(g)){let x=g/6e4*(Math.PI/180);s.shadowOffsetX=Math.cos(x)*m/pa.EMU_PER_PX,s.shadowOffsetY=Math.sin(x)*m/pa.EMU_PER_PX;}}let l=i["a:innerShdw"];if(l){s.innerShadowColor=this.parseColor(l),s.innerShadowOpacity=this.extractColorOpacity(l);let f=parseInt(String(l["@_blurRad"]||"0"));Number.isFinite(f)&&f>0&&(s.innerShadowBlur=f/pa.EMU_PER_PX);let m=parseInt(String(l["@_dist"]||"0")),g=parseInt(String(l["@_dir"]||"0"));if(Number.isFinite(m)&&m>0&&Number.isFinite(g)){let x=g/6e4*(Math.PI/180);s.innerShadowOffsetX=Math.cos(x)*m/pa.EMU_PER_PX,s.innerShadowOffsetY=Math.sin(x)*m/pa.EMU_PER_PX;}}let c=i["a:glow"];if(c){s.glowColor=this.parseColor(c),s.glowOpacity=this.extractColorOpacity(c);let f=parseInt(String(c["@_rad"]||"0"));Number.isFinite(f)&&f>0&&(s.glowRadius=f/pa.EMU_PER_PX);}let d=i["a:softEdge"];if(d){let f=parseInt(String(d["@_rad"]||"0"));Number.isFinite(f)&&f>0&&(s.softEdgeRadius=f/pa.EMU_PER_PX);}let u=i["a:reflection"];if(u){let f=parseInt(String(u["@_blurRad"]||"0"));Number.isFinite(f)&&f>=0&&(s.reflectionBlurRadius=f/pa.EMU_PER_PX);let m=parseInt(String(u["@_stA"]||""));Number.isFinite(m)&&(s.reflectionStartOpacity=m/1e5);let g=parseInt(String(u["@_endA"]||""));Number.isFinite(g)&&(s.reflectionEndOpacity=g/1e5);let x=parseInt(String(u["@_endPos"]||""));Number.isFinite(x)&&(s.reflectionEndPosition=x/1e5);let y=parseInt(String(u["@_dir"]||""));Number.isFinite(y)&&(s.reflectionDirection=y/6e4);let b=parseInt(String(u["@_rot"]||""));Number.isFinite(b)&&(s.reflectionRotation=b/6e4);let v=parseInt(String(u["@_dist"]||"0"));Number.isFinite(v)&&v>=0&&(s.reflectionDistance=v/pa.EMU_PER_PX);}let p=o["a:scene3d"];if(p){let f=p["a:camera"],m=p["a:lightRig"];s.scene3d={cameraPreset:String(f?.["@_prst"]||"").trim()||void 0,lightRigType:String(m?.["@_rig"]||"").trim()||void 0,lightRigDirection:String(m?.["@_dir"]||"").trim()||void 0};}let h=o["a:sp3d"];if(h){let f=h["a:bevelT"],m=h["a:bevelB"];s.shape3d={extrusionHeight:h["@_extrusionH"]!==void 0?parseInt(String(h["@_extrusionH"]),10):void 0,extrusionColor:this.parseColor(h["a:extrusionClr"]),contourWidth:h["@_contourW"]!==void 0?parseInt(String(h["@_contourW"]),10):void 0,contourColor:this.parseColor(h["a:contourClr"]),presetMaterial:String(h["@_prstMaterial"]||"").trim()||void 0,bevelTopType:f?String(f["@_prst"]||"circle").trim():void 0,bevelTopWidth:f!==void 0&&f["@_w"]!==void 0?parseInt(String(f["@_w"]),10):void 0,bevelTopHeight:f!==void 0&&f["@_h"]!==void 0?parseInt(String(f["@_h"]),10):void 0,bevelBottomType:m?String(m["@_prst"]||"circle").trim():void 0,bevelBottomWidth:m!==void 0&&m["@_w"]!==void 0?parseInt(String(m["@_w"]),10):void 0,bevelBottomHeight:m!==void 0&&m["@_h"]!==void 0?parseInt(String(m["@_h"]),10):void 0};}return s}):[]}},zMe=class extends HMe{parseFormatScheme(t,e){let n=String(t["@_name"]||"").trim()||void 0,r=cW(e,"a:fillStyleLst"),o=cW(e,"a:bgFillStyleLst"),i=t["a:fillStyleLst"],s=this.parseFillStyleList(i,r),a=t["a:lnStyleLst"],l=this.parseLineStyleList(a),c=t["a:effectStyleLst"],d=this.parseEffectStyleList(c),u=t["a:bgFillStyleLst"],p=this.parseFillStyleList(u,o);return {name:n,fillStyles:s,lineStyles:l,effectStyles:d,backgroundFillStyles:p}}parseClrMapOverrideNode(t){if(!t||t["a:masterClrMapping"]!==void 0)return null;let e=t["a:overrideClrMapping"];if(!e)return null;let n=["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],r={};for(let o of n){let i=String(e[`@_${o}`]||"").trim().toLowerCase();i&&(r[o]=i);}return Object.keys(r).length>0?r:null}parseSlideClrMapOverride(t){let e=t["p:sld"]?.["p:clrMapOvr"];return this.parseClrMapOverrideNode(e)}parseLayoutClrMapOverride(t){let e=t["p:sldLayout"]?.["p:clrMapOvr"];return this.parseClrMapOverrideNode(e)}applyThemeOverrideState(t){let e={...this.themeColorMap},n={...this.themeFontMap},r=this.themeFormatScheme;if(t.colorOverrides){for(let[o,i]of Object.entries(t.colorOverrides))if(o.startsWith("__fontOverride_")){let s=o.replace("__fontOverride_","");this.themeFontMap[s]=i,s==="mj-lt"?(this.themeFontMap["mj-ea"]=i,this.themeFontMap["mj-cs"]=i):s==="mn-lt"&&(this.themeFontMap["mn-ea"]=i,this.themeFontMap["mn-cs"]=i);}else this.themeColorMap[o]=i;this.themeColorMap.tx1=this.themeColorMap.dk1||e.dk1,this.themeColorMap.bg1=this.themeColorMap.lt1||e.lt1,this.themeColorMap.tx2=this.themeColorMap.dk2||e.dk2,this.themeColorMap.bg2=this.themeColorMap.lt2||e.lt2;}return t.formatSchemeOverride&&(this.themeFormatScheme=t.formatSchemeOverride),()=>{this.themeColorMap=e,this.themeFontMap=n,this.themeFormatScheme=r;}}async loadThemeOverride(t){let e=this.slideRelsMap.get(t);if(!e)return null;let n;for(let[,o]of e)if(o.includes("themeOverride")){let i=t.substring(0,t.lastIndexOf("/")+1);n=this.resolvePath(i,o);break}if(!n)return null;let r=this.themeOverrideCache.get(n);if(r)return r;try{let o=await this.zip.file(n)?.async("string");if(!o)return null;let s=this.parser.parse(o)["a:themeOverride"];if(!s)return null;let a={},l=s["a:clrScheme"];if(l){let u={},p=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];for(let h of p){let f=l[`a:${h}`],m=this.parseColorChoice(f);m&&(u[h]=m);}Object.keys(u).length>0&&(a.colorOverrides=u);}let c=s["a:fmtScheme"];c&&(a.formatSchemeOverride=this.parseFormatScheme(c));let d=s["a:fontScheme"];if(d){let u=d["a:majorFont"],p=d["a:minorFont"],h=u?.["a:latin"],f=p?.["a:latin"],m=this.normalizeTypefaceToken(String(h?.["@_typeface"]||"")),g=this.normalizeTypefaceToken(String(f?.["@_typeface"]||""));a.colorOverrides||(a.colorOverrides={}),m&&(a.colorOverrides["__fontOverride_mj-lt"]=m),g&&(a.colorOverrides["__fontOverride_mn-lt"]=g);}return this.themeOverrideCache.set(n,a),a}catch(o){return console.warn(`Failed to load theme override at ${n}:`,o),null}}},VMe=["a:scrgbClr","a:srgbClr","a:hslClr","a:sysClr","a:schemeClr","a:prstClr"],GMe=class extends zMe{extractRefColorXml(t){if(t)for(let e of VMe){let n=t[e];if(n!==void 0)return {[e]:n}}}resolveThemeEffectRef(t,e){let n=parseInt(String(t["@_idx"]||"0"),10);Number.isFinite(n)&&n>0&&(e.effectRefIdx=n);let r=this.extractRefColorXml(t);if(r&&(e.effectRefColorXml=r),!Number.isFinite(n)||n<=0||!this.themeFormatScheme||n>this.themeFormatScheme.effectStyles.length)return;let o=this.themeFormatScheme.effectStyles[n-1];o&&(o.shadowColor&&!e.shadowColor&&(e.shadowColor=o.shadowColor,e.shadowBlur=o.shadowBlur,e.shadowOffsetX=o.shadowOffsetX,e.shadowOffsetY=o.shadowOffsetY,e.shadowOpacity=o.shadowOpacity),o.innerShadowColor&&!e.innerShadowColor&&(e.innerShadowColor=o.innerShadowColor,e.innerShadowBlur=o.innerShadowBlur,e.innerShadowOffsetX=o.innerShadowOffsetX,e.innerShadowOffsetY=o.innerShadowOffsetY,e.innerShadowOpacity=o.innerShadowOpacity),o.glowColor&&!e.glowColor&&(e.glowColor=o.glowColor,e.glowRadius=o.glowRadius,e.glowOpacity=o.glowOpacity),o.softEdgeRadius&&!e.softEdgeRadius&&(e.softEdgeRadius=o.softEdgeRadius),o.reflectionBlurRadius!==void 0&&e.reflectionBlurRadius===void 0&&(e.reflectionBlurRadius=o.reflectionBlurRadius,e.reflectionStartOpacity=o.reflectionStartOpacity,e.reflectionEndOpacity=o.reflectionEndOpacity,e.reflectionEndPosition=o.reflectionEndPosition,e.reflectionDirection=o.reflectionDirection,e.reflectionRotation=o.reflectionRotation,e.reflectionDistance=o.reflectionDistance),o.scene3d&&!e.scene3d&&(e.scene3d=o.scene3d),o.shape3d&&!e.shape3d&&(e.shape3d=o.shape3d));}resolveThemeLineRef(t,e){let n=parseInt(String(t["@_idx"]||"0"),10),r=this.parseColor(t);Number.isFinite(n)&&n>0&&(e.lnRefIdx=n);let o=this.extractRefColorXml(t);if(o&&(e.lnRefColorXml=o),!Number.isFinite(n)||n<=0||!this.themeFormatScheme||n>this.themeFormatScheme.lineStyles.length){e.strokeColor=r,r&&(e.strokeWidth=1);return}let i=this.themeFormatScheme.lineStyles[n-1];if(!i){e.strokeColor=r,r&&(e.strokeWidth=1);return}e.strokeColor=r||i.color,i.opacity!==void 0&&(e.strokeOpacity=i.opacity),i.width!==void 0&&i.width>0?e.strokeWidth=i.width:e.strokeColor&&(e.strokeWidth=1),i.dash&&(e.strokeDash=i.dash),i.lineJoin&&(e.lineJoin=i.lineJoin),i.lineCap&&(e.lineCap=i.lineCap),i.compoundLine&&(e.compoundLine=i.compoundLine);}reResolveGradientWithPhClr(t,e){let n=this.themeColorMap.phclr;this.themeColorMap.phclr=e;let r=this.extractGradientStops(t),o=this.extractGradientType(t),i=this.extractGradientAngle(t),s=this.buildGradientCssFromStops(r,o,i);return n!==void 0?this.themeColorMap.phclr=n:delete this.themeColorMap.phclr,{stops:r,css:s}}resolveThemeFillRef(t,e){let n=parseInt(String(t["@_idx"]||"0"),10);Number.isFinite(n)&&n>0&&(e.fillRefIdx=n);let r=this.extractRefColorXml(t);if(r&&(e.fillRefColorXml=r),!Number.isFinite(n)||n<=0||!this.themeFormatScheme){e.fillMode="theme",e.fillColor=this.parseColor(t);return}let o;if(n>=1001){let s=n-1001;o=this.themeFormatScheme.backgroundFillStyles[s];}else o=this.themeFormatScheme.fillStyles[n-1];if(!o){e.fillMode="theme",e.fillColor=this.parseColor(t);return}let i=this.parseColor(t);switch(o.kind){case "solid":{e.fillMode="solid",e.fillColor=i||o.color,e.fillOpacity=o.opacity;break}case "gradient":{if(e.fillMode="gradient",o.rawNode&&i){let s=this.reResolveGradientWithPhClr(o.rawNode,i);e.fillGradientStops=s.stops,e.fillGradient=s.css;}else e.fillGradientStops=o.gradientStops,e.fillGradient=o.gradientCss;e.fillGradientAngle=o.gradientAngle,e.fillGradientType=o.gradientType,e.fillColor=i||o.color;break}case "pattern":{e.fillMode="pattern",e.fillColor=i||o.color,o.patternPreset&&(e.fillPatternPreset=o.patternPreset),o.patternBackgroundColor&&(e.fillPatternBackgroundColor=o.patternBackgroundColor);break}case "none":{e.fillMode="none",e.fillColor="transparent",e.fillOpacity=0;break}}}},WMe=class extends GMe{async resolvePrimaryThemePath(){let t=this.zip.file(/^ppt\/slideMasters\/slideMaster\d+\.xml$/);if(!t||t.length===0)return;let e=t[0].name,n=e.replace(/ppt\/slideMasters\/(slideMaster\d+)\.xml/,"ppt/slideMasters/_rels/$1.xml.rels"),r=this.zip.file(n);if(!r)return;let o=this.parser.parse(await r.async("string")),i=this.ensureArray(o?.Relationships?.Relationship);for(let s of i){let a=String(s["@_Target"]||"");if(!a.includes("theme"))continue;let l=a.startsWith("..")?this.resolvePath(e.substring(0,e.lastIndexOf("/")+1),a):a.startsWith("/")?a.slice(1):`ppt/${a.replace(/^\.?\//,"")}`;if(l.startsWith("ppt/theme/"))return l}}async parseThemeOptions(){let t=this.zip.file(/^ppt\/theme\/theme\d+\.xml$/);if(!t||t.length===0)return [];let e=[];for(let n of t)try{let r=await n.async("string"),i=this.parser.parse(r)["a:theme"],s=String(i?.["@_name"]||"").trim();e.push({path:n.name,name:s.length>0?s:void 0});}catch{e.push({path:n.name});}return e}async getAvailableThemes(){return this.parseThemeOptions()}buildThemeObject(){let t=Object.keys(this.themeColorMap).length>0,e=Object.keys(this.themeFontMap).length>0;if(!t&&!e)return;let n;t&&(n={dk1:this.themeColorMap.dk1||"",lt1:this.themeColorMap.lt1||"",dk2:this.themeColorMap.dk2||"",lt2:this.themeColorMap.lt2||"",accent1:this.themeColorMap.accent1||"",accent2:this.themeColorMap.accent2||"",accent3:this.themeColorMap.accent3||"",accent4:this.themeColorMap.accent4||"",accent5:this.themeColorMap.accent5||"",accent6:this.themeColorMap.accent6||"",hlink:this.themeColorMap.hlink||"",folHlink:this.themeColorMap.folHlink||""});let r;return e&&(r={majorFont:{latin:this.themeFontMap["mj-lt"],eastAsia:this.themeFontMap["mj-ea"],complexScript:this.themeFontMap["mj-cs"]},minorFont:{latin:this.themeFontMap["mn-lt"],eastAsia:this.themeFontMap["mn-ea"],complexScript:this.themeFontMap["mn-cs"]}}),{colorScheme:n,fontScheme:r,formatScheme:this.themeFormatScheme}}async applySlideMasterColorMap(t){let e=this.zip.file(/^ppt\/slideMasters\/slideMaster\d+\.xml$/);if(!e||e.length===0)return;let n=["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];for(let r of e)try{let o=await r.async("string"),s=this.parser.parse(o)?.["p:sldMaster"]?.["p:clrMap"];if(!s)continue;let a={};for(let l of n){let c=String(s[`@_${l}`]||"").trim().toLowerCase();c&&(a[l]=c);}Object.keys(a).length>0&&this.masterClrMaps.set(r.name,a);}catch(o){console.warn(`Failed to parse slide master color map for ${r.name}:`,o);}}async parseThemePart(t){let e=this.zip.file(t);if(!e)return null;let n=await e.async("string");this.originalThemeXmlByPath.set(t,n);let o=this.parser.parse(n)["a:theme"],i=o?.["a:themeElements"],s=i?.["a:clrScheme"],a=i?.["a:fontScheme"],l=i?.["a:fmtScheme"],c=String(o?.["@_name"]||"").trim();c&&this.masterThemeNames.set(t,c);let d=String(s?.["@_name"]||"").trim();d&&this.masterThemeColorSchemeNames.set(t,d);let u=String(a?.["@_name"]||"").trim();u&&this.masterThemeFontSchemeNames.set(t,u);let h={...this.getDefaultSchemeColorMap()};if(s){let N=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];for(let k of N){let L=s[`a:${k}`],F=this.parseColorChoice(L);F&&(h[k]=F);}}let f=a?.["a:majorFont"],m=a?.["a:minorFont"],g=f?.["a:latin"],x=m?.["a:latin"],y=this.normalizeTypefaceToken(String(g?.["@_typeface"]||"")),b=this.normalizeTypefaceToken(String(x?.["@_typeface"]||"")),v={};y&&(v["mj-lt"]=y,v["mj-ea"]=y,v["mj-cs"]=y),b&&(v["mn-lt"]=b,v["mn-ea"]=b,v["mn-cs"]=b);let S=this.normalizeTypefaceToken(String(f?.["a:ea"]?.["@_typeface"]||""));S&&(v["mj-ea"]=S);let w=this.normalizeTypefaceToken(String(f?.["a:cs"]?.["@_typeface"]||""));w&&(v["mj-cs"]=w);let C=this.normalizeTypefaceToken(String(m?.["a:ea"]?.["@_typeface"]||""));C&&(v["mn-ea"]=C);let T=this.normalizeTypefaceToken(String(m?.["a:cs"]?.["@_typeface"]||""));T&&(v["mn-cs"]=T);let M=this.collectFontScriptOverrides(f);Object.keys(M).length>0&&this.masterThemeMajorFontScripts.set(t,M);let P=this.collectFontScriptOverrides(m);Object.keys(P).length>0&&this.masterThemeMinorFontScripts.set(t,P);let _=o?.["a:objectDefaults"];if(_){let N={spDef:_["a:spDef"],lnDef:_["a:lnDef"],txDef:_["a:txDef"]};(N.spDef!==void 0||N.lnDef!==void 0||N.txDef!==void 0)&&this.masterThemeObjectDefaults.set(t,N);}let A=o?.["a:extraClrSchemeLst"];A!==void 0&&this.masterThemeExtraClrSchemeLst.set(t,A);let R=o?.["a:custClrLst"];R!==void 0&&this.masterThemeCustClrLst.set(t,R);let I=o?.["a:extLst"];I!==void 0&&this.masterThemeExtLst.set(t,I);let E=l?this.parseFormatScheme(l):void 0;return {colorMap:h,fontMap:v,formatScheme:E}}collectFontScriptOverrides(t){let e={};if(!t)return e;let n=this.ensureArray(t["a:font"]);for(let r of n){let o=String(r?.["@_script"]||"").trim(),i=this.normalizeTypefaceToken(String(r?.["@_typeface"]||""));o&&i&&(e[o]=i);}return e}async resolveThemePathForMaster(t){let e=t.replace(/ppt\/slideMasters\/(slideMaster\d+)\.xml/,"ppt/slideMasters/_rels/$1.xml.rels"),n=this.zip.file(e);if(!n)return;let r=this.parser.parse(await n.async("string")),o=this.ensureArray(r?.Relationships?.Relationship);for(let i of o){let s=String(i["@_Target"]||"");if(!s.includes("theme"))continue;let a=s.startsWith("..")?this.resolvePath(t.substring(0,t.lastIndexOf("/")+1),s):s.startsWith("/")?s.slice(1):`ppt/${s.replace(/^\.?\//,"")}`;if(a.startsWith("ppt/theme/"))return a}}async loadPerMasterThemes(){let t=this.zip.file(/^ppt\/slideMasters\/slideMaster\d+\.xml$/);if(!(!t||t.length===0))for(let e of t)try{let n=await this.resolveThemePathForMaster(e.name);if(!n)continue;this.masterThemePaths.set(e.name,n);let r=await this.parseThemePart(n);if(!r)continue;this.masterThemeColorMaps.set(e.name,r.colorMap),this.masterThemeFontMaps.set(e.name,r.fontMap),r.formatScheme&&this.masterThemeFormatSchemes.set(e.name,r.formatScheme);}catch(n){console.warn(`Failed to load per-master theme for ${e.name}:`,n);}}async loadThemeData(){let t=this.zip.file(/^ppt\/theme\/theme\d+\.xml$/);if(!t||t.length===0)return;let e=await this.resolvePrimaryThemePath(),n=e?t.find(o=>o.name===e)??t[0]:t[0],r=await this.parseThemePart(n.name);r&&(this.themeColorMap=r.colorMap,this.themeFontMap=r.fontMap,r.formatScheme&&(this.themeFormatScheme=r.formatScheme)),await this.applySlideMasterColorMap(this.getDefaultSchemeColorMap()),await this.loadPerMasterThemes(),this.globalThemeColorMapSnapshot={...this.themeColorMap},this.globalThemeFontMapSnapshot={...this.themeFontMap},this.globalThemeFormatSchemeSnapshot=this.themeFormatScheme;}},XMe=class extends WMe{async getPrimaryThemeXml(){let t=this.zip.file(/^ppt\/theme\/theme\d+\.xml$/);if(!t||t.length===0)return;let e=await this.resolvePrimaryThemePath(),n=e?t.find(o=>o.name===e)??t[0]:t[0],r=await n.async("string");return {path:n.name,data:this.parser.parse(r)}}buildSrgbClrNode(t){return {"a:srgbClr":{"@_val":t.replace(/^#/,"").toUpperCase()}}}async updateThemeColorScheme(t){let e=await this.getPrimaryThemeXml();if(!e)return;let{path:n,data:r}=e,i=r["a:theme"]?.["a:themeElements"];if(!i)return;let s=i["a:clrScheme"]??{},a=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];for(let l of a)s[`a:${l}`]=this.buildSrgbClrNode(t[l]);i["a:clrScheme"]=s,this.zip.file(n,this.builder.build(r));for(let l of a)this.themeColorMap[l]=t[l].replace(/^#/,"").toUpperCase();this.themeColorMap.tx1=this.themeColorMap.dk1,this.themeColorMap.bg1=this.themeColorMap.lt1,this.themeColorMap.tx2=this.themeColorMap.dk2,this.themeColorMap.bg2=this.themeColorMap.lt2;}async updateThemeFontScheme(t){let e=await this.getPrimaryThemeXml();if(!e)return;let{path:n,data:r}=e,i=r["a:theme"]?.["a:themeElements"];if(!i)return;let s=i["a:fontScheme"]??{};if(t.majorFont?.latin){let a=s["a:majorFont"]??{};a["a:latin"]={"@_typeface":t.majorFont.latin},a["a:ea"]||(a["a:ea"]={"@_typeface":""}),a["a:cs"]||(a["a:cs"]={"@_typeface":""}),s["a:majorFont"]=a;}if(t.minorFont?.latin){let a=s["a:minorFont"]??{};a["a:latin"]={"@_typeface":t.minorFont.latin},a["a:ea"]||(a["a:ea"]={"@_typeface":""}),a["a:cs"]||(a["a:cs"]={"@_typeface":""}),s["a:minorFont"]=a;}i["a:fontScheme"]=s,this.zip.file(n,this.builder.build(r)),t.majorFont?.latin&&(this.themeFontMap["mj-lt"]=t.majorFont.latin,this.themeFontMap["mj-ea"]=t.majorFont.latin,this.themeFontMap["mj-cs"]=t.majorFont.latin),t.minorFont?.latin&&(this.themeFontMap["mn-lt"]=t.minorFont.latin,this.themeFontMap["mn-ea"]=t.minorFont.latin,this.themeFontMap["mn-cs"]=t.minorFont.latin);}async updateThemeName(t){let e=await this.getPrimaryThemeXml();if(!e)return;let{path:n,data:r}=e,o=r["a:theme"];o&&(o["@_name"]=t,this.zip.file(n,this.builder.build(r)));}async applyTheme(t,e,n){await this.updateThemeColorScheme(t),await this.updateThemeFontScheme(e),n&&await this.updateThemeName(n);}},jMe=class R5 extends XMe{async extractModernSlideComments(e){let n=[];try{let r=`${e.replace("slides/","slides/_rels/")}.rels`,o=await this.zip.file(r)?.async("string");if(!o)return [];let i=this.parser.parse(o),a=this.ensureArray(ut(i,"Relationships")?.Relationship).filter(l=>{let c=String(l?.["@_Type"]||"").toLowerCase();return c.includes("comments-extended")||c.includes("comments/authors")||c.includes("/p188/")||c.includes("/p15/")});if(a.length===0)return [];for(let l of a){let c=String(l?.["@_Target"]||"").trim();if(!c)continue;let d=this.resolvePath(e,c),u=await this.zip.file(d)?.async("string");if(!u)continue;let p=this.parser.parse(u),h=Object.keys(p).find(x=>x.endsWith("cmLst"));if(!h)continue;let f=p[h],m=Object.keys(f||{}).find(x=>x.endsWith(":cm"));if(!m)continue;let g=this.ensureArray(f[m]);for(let x of g){let y=String(x?.["@_id"]||""),b=String(x?.["@_parentCmId"]||""),v=String(x?.["@_authorId"]||""),S=String(x?.["@_created"]||x?.["@_dt"]||""),w=String(x?.["@_status"]||"").toLowerCase(),C=Object.keys(x||{}).find(P=>P.endsWith("txBody")),T="";if(C){let P=this.ensureArray(ut(x,C)?.["a:p"]),_=[];for(let A of P){let R=this.ensureArray(A?.["a:r"]),I="";for(let E of R)I+=String(E?.["a:t"]??"");_.push(I);}T=_.join(`
281
+ `).trim();return {notes:x.length>0?x:void 0,notesSegments:d.length>0?d:void 0,notesShapes:u.length>0?u:void 0,notesClrMapOverride:p,notesCSldName:g}}},OMe=class A5 extends FMe{parsePlaceholderLevelStyle(e){if(!e)return null;let n={},r=String(e["@_algn"]||"").trim().toLowerCase();if(r.length>0){let x={l:"left",ctr:"center",r:"right",just:"justify"};n.alignment=x[r]??r;}let o=e["@_marL"];if(o!==void 0){let x=Number.parseInt(String(o),10);Number.isFinite(x)&&(n.marginLeft=x/A5.EMU_PER_PX);}let i=e["@_indent"];if(i!==void 0){let x=Number.parseInt(String(i),10);Number.isFinite(x)&&(n.indent=x/A5.EMU_PER_PX);}let s=e["a:lnSpc"];if(s){let x=this.parseLineSpacingMultiplier(s);if(x!==void 0)n.lineSpacing=x;else {let y=this.parseLineSpacingExactPt(s);y!==void 0&&(n.lineSpacingExactPt=y);}}let a=this.parseParagraphSpacingPx(e["a:spcBef"]);a!==void 0&&(n.spaceBefore=a);let l=this.parseParagraphSpacingPx(e["a:spcAft"]);l!==void 0&&(n.spaceAfter=l);let c=e["a:buChar"];c?.["@_char"]&&(n.bulletChar=String(c["@_char"]));let d=e["a:buAutoNum"];d?.["@_type"]&&(n.bulletAutoNumType=String(d["@_type"]));let u=e["a:buFont"];u?.["@_typeface"]&&(n.bulletFontFamily=String(u["@_typeface"]));let p=e["a:buSzPct"];if(p?.["@_val"]!==void 0){let x=Number.parseInt(String(p["@_val"]),10);Number.isFinite(x)&&(n.bulletSizePercent=x/1e3);}let h=e["a:buClr"];if(h){let x=h["a:srgbClr"];x?.["@_val"]&&(n.bulletColor=String(x["@_val"]));}let f=e["a:buSzPts"];if(f?.["@_val"]!==void 0){let x=Number.parseInt(String(f["@_val"]),10);Number.isFinite(x)&&(n.bulletSizePts=x/100);}e["a:buNone"]&&(n.bulletNone=true);let m=e["a:defRPr"];if(m){if(m["@_sz"]!==void 0){let b=Number.parseInt(String(m["@_sz"]),10);Number.isFinite(b)&&(n.fontSize=b/100*(96/72));}m["@_b"]!==void 0&&(n.bold=m["@_b"]==="1"),m["@_i"]!==void 0&&(n.italic=m["@_i"]==="1");let x=this.parseColor(m["a:solidFill"]);x&&(n.color=x);let y=m["a:latin"];if(y?.["@_typeface"]){let b=String(y["@_typeface"]),v=this.resolveThemeTypeface(b);n.fontFamily=v??b;}}return Object.keys(n).length>0?n:null}},BMe=class Zb extends OMe{extractPlaceholderDefaultsFromShape(e){let r=e["p:nvSpPr"]?.["p:nvPr"]?.["p:ph"];if(!r)return null;let o=r["@_type"],i=r["@_idx"],a={type:o!==void 0?String(o).toLowerCase():"body"};if(i!==void 0){let u=Number.parseInt(String(i),10);Number.isFinite(u)&&(a.idx=u);}let l=e["p:txBody"],c=l?.["a:bodyPr"];if(c){let u=c["@_lIns"];if(u!==void 0){let x=Number.parseInt(String(u),10);Number.isFinite(x)&&(a.bodyInsetLeft=x/Zb.EMU_PER_PX);}let p=c["@_tIns"];if(p!==void 0){let x=Number.parseInt(String(p),10);Number.isFinite(x)&&(a.bodyInsetTop=x/Zb.EMU_PER_PX);}let h=c["@_rIns"];if(h!==void 0){let x=Number.parseInt(String(h),10);Number.isFinite(x)&&(a.bodyInsetRight=x/Zb.EMU_PER_PX);}let f=c["@_bIns"];if(f!==void 0){let x=Number.parseInt(String(f),10);Number.isFinite(x)&&(a.bodyInsetBottom=x/Zb.EMU_PER_PX);}let m=String(c["@_anchor"]||"").trim();if(m.length>0&&(a.textAnchor=m),c["a:spAutoFit"]!==void 0)a.autoFit=true,a.autoFitMode="shrink";else if(c["a:normAutofit"]!==void 0){a.autoFit=true,a.autoFitMode="normal";let x=parseInt(String(c["a:normAutofit"]?.["@_fontScale"]||""),10);Number.isFinite(x)&&x>0&&(a.autoFitFontScale=x/1e5);let y=parseInt(String(c["a:normAutofit"]?.["@_lnSpcReduction"]||""),10);Number.isFinite(y)&&y>0&&(a.autoFitLineSpacingReduction=y/1e5);}else c["a:noAutofit"]!==void 0&&(a.autoFit=false,a.autoFitMode="none");let g=String(c["@_wrap"]||"").trim().toLowerCase();(g==="none"||g==="square")&&(a.textWrap=g);}let d=l?.["a:lstStyle"];if(d){let u={};for(let h=1;h<=9;h++){let f=`a:lvl${h}pPr`,m=this.parsePlaceholderLevelStyle(d[f]);m&&(u[h-1]=m);}let p=this.parsePlaceholderLevelStyle(d["a:defPPr"]);p&&(u[-1]=p),Object.keys(u).length>0&&(a.levelStyles=u);}if(l){let u=this.ensureArray(l["a:p"]),p=[];for(let f of u){let m=this.ensureArray(f?.["a:r"]);for(let x of m){if(!x)continue;let y=x["a:t"];y!==void 0&&p.push(String(y));}f?.["a:t"]!==void 0&&p.push(String(f["a:t"]));let g=this.ensureArray(f?.["a:fld"]);for(let x of g){if(!x)continue;let y=x["a:t"];y!==void 0&&p.push(String(y));}}let h=p.join("").trim();h.length>0&&(a.promptText=h);}return a}};UMe=class extends BMe{parseTextListStyle(t){if(!t)return;let e={},n=this.parsePlaceholderLevelStyle(t["a:defPPr"]);n&&(e[-1]=n);for(let r=1;r<=9;r++){let o=this.parsePlaceholderLevelStyle(t[`a:lvl${r}pPr`]);o&&(e[r-1]=o);}return Object.keys(e).length>0?e:void 0}parseMasterTxStyles(t){let e=t?.["p:txStyles"];if(!e)return;let n=this.parseTextListStyle(e["p:titleStyle"]),r=this.parseTextListStyle(e["p:bodyStyle"]),o=this.parseTextListStyle(e["p:otherStyle"]);if(!n&&!r&&!o)return;let i={};return n&&(i.titleStyle=n),r&&(i.bodyStyle=r),o&&(i.otherStyle=o),i}async enrichSlideMastersWithTxStyles(t){for(let e of t)try{let n=this.masterXmlMap.get(e.path);if(!n){let s=await this.zip.file(e.path)?.async("string");if(!s)continue;n=this.parser.parse(s),this.masterXmlMap.set(e.path,n);}let r=n["p:sldMaster"];if(!r)continue;let o=this.parseMasterTxStyles(r);o&&(e.txStyles=o,this.masterTxStylesCache.set(e.path,o));let i=L2(r["p:hf"]);i&&(e.headerFooter=i);}catch(n){console.warn("Failed to parse master txStyles:",n);}}parsePresentationDefaultTextStyle(){let e=this.presentationData?.["p:presentation"]?.["p:defaultTextStyle"];if(!e){this.presentationDefaultTextStyle=void 0;return}let n={};for(let o=1;o<=9;o++){let i=this.parsePlaceholderLevelStyle(e[`a:lvl${o}pPr`]);i&&(n[o-1]=i);}let r=this.parsePlaceholderLevelStyle(e["a:defPPr"]);r&&(n[-1]=r),this.presentationDefaultTextStyle=Object.keys(n).length>0?{type:"body",levelStyles:n}:void 0;}async getMasterElements(t){let e=this.slideRelsMap.get(t);if(!e)return [];let n;for(let[,o]of e.entries())if(o.includes("slideMaster")){let i=t.substring(0,t.lastIndexOf("/")+1);n=o.startsWith("..")?this.resolvePath(i,o):`ppt/${o.replace("../","")}`;break}if(!n)return [];if(this.masterCache.has(n))return this.masterCache.get(n);let r=n.split("/").pop()?.replace(/\.xml$/u,"")??n;try{let o=await this.zip.file(n)?.async("string");if(!o)return [];let i=this.parser.parse(o);this.masterXmlMap.set(n,i);let s=`${n.replace("slideMasters/","slideMasters/_rels/")}.rels`;await this.loadSlideRelationships(n,s);let a=i["p:sldMaster"]?.["p:cSld"]?.["p:spTree"];if(!a)return this.masterCache.set(n,[]),[];this.unwrapAlternateContent(a);let l=this.ensureArray(a["p:sp"]),c=new Set;for(let p=0;p<l.length;p++){let h=l[p];if(h["p:nvSpPr"]?.["p:nvPr"]?.["p:ph"]){c.add(p);let g=this.extractPlaceholderDefaultsFromShape(h);if(g){this.masterPlaceholderDefaultsCache.has(n)||this.masterPlaceholderDefaultsCache.set(n,new Map);let x={type:g.type,idx:g.idx!==void 0?String(g.idx):void 0},y=this.buildPlaceholderDefaultsKey(x);this.masterPlaceholderDefaultsCache.get(n).set(y,g);}}}let d=this.extractSpTreeChildOrder(o,a,"p:spTree"),u=[];for(let p of d)if(p.tag==="p:sp"){if(c.has(p.indexInType))continue;let h=l[p.indexInType];if(!h)continue;let f=h["p:spPr"],m=null;f?.["a:blipFill"]?m=await this.parseShapeWithImageFill(h,`master-shape-img-${r}-${p.indexInType}`,n):m=this.parseShape(h,`master-shape-${r}-${p.indexInType}`,n),m&&(m.id=`master-${m.id}`,u.push(m));}else if(p.tag==="p:pic"){let f=this.ensureArray(a["p:pic"])[p.indexInType];if(!f)continue;let m=await this.parsePicture(f,`master-pic-${r}-${p.indexInType}`,n);m&&(m.id=`master-${m.id}`,u.push(m));}else if(p.tag==="p:graphicFrame"){let f=this.ensureArray(a["p:graphicFrame"])[p.indexInType];if(!f)continue;let m=this.parseGraphicFrame(f,`master-frame-${r}-${p.indexInType}`,n);m&&(m.id=`master-${m.id}`,u.push(m));}return this.masterCache.set(n,u),u}catch(o){return console.warn("Failed to parse master:",o),[]}}},$Me=class extends UMe{async getLayoutElements(t){let e=this.slideRelsMap.get(t);if(!e)return [];let n;for(let[,o]of e.entries())if(o.includes("slideLayout")){let i=t.substring(0,t.lastIndexOf("/")+1);n=o.startsWith("..")?this.resolvePath(i,o):`ppt/${o.replace("../","")}`;break}if(!n)return [];if(this.layoutCache.has(n))return this.layoutCache.get(n);let r=n.split("/").pop()?.replace(/\.xml$/u,"")??n;try{let o=await this.zip.file(n)?.async("string");if(!o)return [];let i=this.parser.parse(o);this.layoutXmlMap.set(n,i);let s=`${n.replace("slideLayouts/","slideLayouts/_rels/")}.rels`;await this.loadSlideRelationships(n,s);let a=this.parseLayoutClrMapOverride(i),l=this.currentSlideClrMapOverride;a&&(this.currentSlideClrMapOverride=a);let c=i["p:sldLayout"]?.["p:cSld"]?.["p:spTree"];if(!c)return this.layoutCache.set(n,[]),[];this.unwrapAlternateContent(c);let d=this.ensureArray(c["p:sp"]),u=new Set;for(let y=0;y<d.length;y++){let b=d[y];if(It(b,"p:nvSpPr","p:nvPr","p:ph")){u.add(y);let S=this.extractPlaceholderDefaultsFromShape(b);if(S){this.layoutPlaceholderDefaultsCache.has(n)||this.layoutPlaceholderDefaultsCache.set(n,new Map);let w={type:S.type,idx:S.idx!==void 0?String(S.idx):void 0},C=this.buildPlaceholderDefaultsKey(w);this.layoutPlaceholderDefaultsCache.get(n).set(C,S);}}}let p=this.extractSpTreeChildOrder(o,c,"p:spTree"),h=[];for(let y of p)if(y.tag==="p:sp"){if(u.has(y.indexInType))continue;let b=d[y.indexInType];if(!b)continue;let v=ut(b,"p:spPr"),S=null;v&&ut(v,"a:blipFill")?S=await this.parseShapeWithImageFill(b,`layout-shape-img-${r}-${y.indexInType}`,n):S=this.parseShape(b,`layout-shape-${r}-${y.indexInType}`,n),S&&(S.id=`layout-${S.id}`,h.push(S));}else if(y.tag==="p:pic"){let v=this.ensureArray(c["p:pic"])[y.indexInType];if(!v)continue;let S=await this.parsePicture(v,`layout-pic-${r}-${y.indexInType}`,n);S&&(S.id=`layout-${S.id}`,h.push(S));}else if(y.tag==="p:graphicFrame"){let v=this.ensureArray(c["p:graphicFrame"])[y.indexInType];if(!v)continue;let S=this.parseGraphicFrame(v,`layout-frame-${r}-${y.indexInType}`,n);S&&(S.id=`layout-${S.id}`,h.push(S));}let f=Gt(ut(i,"p:sldLayout"),"showMasterSp"),g=f===void 0||f.trim().toLowerCase()!=="0"&&f.trim().toLowerCase()!=="false"?await this.getMasterElements(n):[];this.currentSlideClrMapOverride=l;let x=[...g,...h];return this.layoutCache.set(n,x),x}catch(o){return console.warn("Failed to parse layout:",o),[]}}},lW=["a:solidFill","a:gradFill","a:pattFill","a:noFill","a:grpFill"];HMe=class pa extends $Me{buildFillStyleEntry(e,n){switch(e){case "a:solidFill":return {kind:"solid",color:this.parseColor(n),opacity:this.extractColorOpacity(n),rawNode:n};case "a:gradFill":return {kind:"gradient",color:this.extractGradientFillColor(n),opacity:this.extractGradientOpacity(n),gradientStops:this.extractGradientStops(n),gradientAngle:this.extractGradientAngle(n),gradientType:this.extractGradientType(n),gradientCss:this.extractGradientFillCss(n),rawNode:n};case "a:pattFill":return {kind:"pattern",color:this.parseColor(n["a:fgClr"])||this.parseColor(n["a:bgClr"]),patternPreset:String(n["@_prst"]||"").trim()||void 0,patternBackgroundColor:this.parseColor(n["a:bgClr"])||void 0,rawNode:n};case "a:noFill":return {kind:"none",rawNode:n};case "a:grpFill":return {kind:"group",rawNode:n}}}collectFillChildren(e,n){let r={"a:solidFill":this.ensureArray(e["a:solidFill"]),"a:gradFill":this.ensureArray(e["a:gradFill"]),"a:pattFill":this.ensureArray(e["a:pattFill"]),"a:noFill":this.ensureArray(e["a:noFill"]),"a:grpFill":this.ensureArray(e["a:grpFill"])};if(n&&n.length>0){let i={"a:solidFill":0,"a:gradFill":0,"a:pattFill":0,"a:noFill":0,"a:grpFill":0},s=[];for(let a of n){let l=i[a],c=r[a][l];c&&(s.push(this.buildFillStyleEntry(a,c)),i[a]=l+1);}for(let a of lW)for(;i[a]<r[a].length;)s.push(this.buildFillStyleEntry(a,r[a][i[a]])),i[a]+=1;return s}let o=[];for(let i of lW)for(let s of r[i])o.push(this.buildFillStyleEntry(i,s));return o}parseFillStyleList(e,n){return e?this.collectFillChildren(e,n):[]}parseLineStyleList(e){return e?this.ensureArray(e["a:ln"]).map(r=>{let o=r,i={rawNode:o};if(o["@_w"]&&(i.width=parseInt(String(o["@_w"]))/pa.EMU_PER_PX),o["a:solidFill"])i.color=this.parseColor(o["a:solidFill"]),i.opacity=this.extractColorOpacity(o["a:solidFill"]);else if(o["a:gradFill"])i.color=this.extractGradientFillColor(o["a:gradFill"]);else if(o["a:pattFill"]){let d=o["a:pattFill"];i.color=this.parseColor(d["a:fgClr"])||this.parseColor(d["a:bgClr"]);}let s=o["a:prstDash"]?.["@_val"],a=this.normalizeStrokeDashType(s);a&&(i.dash=a),"a:round"in o?i.lineJoin="round":"a:bevel"in o?i.lineJoin="bevel":"a:miter"in o&&(i.lineJoin="miter");let l=String(o["@_cap"]||"").trim().toLowerCase();(l==="rnd"||l==="sq"||l==="flat")&&(i.lineCap=l);let c=String(o["@_cmpd"]||"").trim();return (c==="sng"||c==="dbl"||c==="thickThin"||c==="thinThick"||c==="tri")&&(i.compoundLine=c),i}):[]}parseEffectStyleList(e){return e?this.ensureArray(e["a:effectStyle"]).map(r=>{let o=r,i=o["a:effectLst"]??o["a:effectDag"],s={rawNode:o};if(!i)return s;let a=i["a:outerShdw"];if(a){s.shadowColor=this.parseColor(a),s.shadowOpacity=this.extractColorOpacity(a);let f=parseInt(String(a["@_blurRad"]||"0"));Number.isFinite(f)&&f>0&&(s.shadowBlur=f/pa.EMU_PER_PX);let m=parseInt(String(a["@_dist"]||"0")),g=parseInt(String(a["@_dir"]||"0"));if(Number.isFinite(m)&&m>0&&Number.isFinite(g)){let x=g/6e4*(Math.PI/180);s.shadowOffsetX=Math.cos(x)*m/pa.EMU_PER_PX,s.shadowOffsetY=Math.sin(x)*m/pa.EMU_PER_PX;}}let l=i["a:innerShdw"];if(l){s.innerShadowColor=this.parseColor(l),s.innerShadowOpacity=this.extractColorOpacity(l);let f=parseInt(String(l["@_blurRad"]||"0"));Number.isFinite(f)&&f>0&&(s.innerShadowBlur=f/pa.EMU_PER_PX);let m=parseInt(String(l["@_dist"]||"0")),g=parseInt(String(l["@_dir"]||"0"));if(Number.isFinite(m)&&m>0&&Number.isFinite(g)){let x=g/6e4*(Math.PI/180);s.innerShadowOffsetX=Math.cos(x)*m/pa.EMU_PER_PX,s.innerShadowOffsetY=Math.sin(x)*m/pa.EMU_PER_PX;}}let c=i["a:glow"];if(c){s.glowColor=this.parseColor(c),s.glowOpacity=this.extractColorOpacity(c);let f=parseInt(String(c["@_rad"]||"0"));Number.isFinite(f)&&f>0&&(s.glowRadius=f/pa.EMU_PER_PX);}let d=i["a:softEdge"];if(d){let f=parseInt(String(d["@_rad"]||"0"));Number.isFinite(f)&&f>0&&(s.softEdgeRadius=f/pa.EMU_PER_PX);}let u=i["a:reflection"];if(u){let f=parseInt(String(u["@_blurRad"]||"0"));Number.isFinite(f)&&f>=0&&(s.reflectionBlurRadius=f/pa.EMU_PER_PX);let m=parseInt(String(u["@_stA"]||""));Number.isFinite(m)&&(s.reflectionStartOpacity=m/1e5);let g=parseInt(String(u["@_endA"]||""));Number.isFinite(g)&&(s.reflectionEndOpacity=g/1e5);let x=parseInt(String(u["@_endPos"]||""));Number.isFinite(x)&&(s.reflectionEndPosition=x/1e5);let y=parseInt(String(u["@_dir"]||""));Number.isFinite(y)&&(s.reflectionDirection=y/6e4);let b=parseInt(String(u["@_rot"]||""));Number.isFinite(b)&&(s.reflectionRotation=b/6e4);let v=parseInt(String(u["@_dist"]||"0"));Number.isFinite(v)&&v>=0&&(s.reflectionDistance=v/pa.EMU_PER_PX);}let p=o["a:scene3d"];if(p){let f=p["a:camera"],m=p["a:lightRig"];s.scene3d={cameraPreset:String(f?.["@_prst"]||"").trim()||void 0,lightRigType:String(m?.["@_rig"]||"").trim()||void 0,lightRigDirection:String(m?.["@_dir"]||"").trim()||void 0};}let h=o["a:sp3d"];if(h){let f=h["a:bevelT"],m=h["a:bevelB"];s.shape3d={extrusionHeight:h["@_extrusionH"]!==void 0?parseInt(String(h["@_extrusionH"]),10):void 0,extrusionColor:this.parseColor(h["a:extrusionClr"]),contourWidth:h["@_contourW"]!==void 0?parseInt(String(h["@_contourW"]),10):void 0,contourColor:this.parseColor(h["a:contourClr"]),presetMaterial:String(h["@_prstMaterial"]||"").trim()||void 0,bevelTopType:f?String(f["@_prst"]||"circle").trim():void 0,bevelTopWidth:f!==void 0&&f["@_w"]!==void 0?parseInt(String(f["@_w"]),10):void 0,bevelTopHeight:f!==void 0&&f["@_h"]!==void 0?parseInt(String(f["@_h"]),10):void 0,bevelBottomType:m?String(m["@_prst"]||"circle").trim():void 0,bevelBottomWidth:m!==void 0&&m["@_w"]!==void 0?parseInt(String(m["@_w"]),10):void 0,bevelBottomHeight:m!==void 0&&m["@_h"]!==void 0?parseInt(String(m["@_h"]),10):void 0};}return s}):[]}},zMe=class extends HMe{parseFormatScheme(t,e){let n=String(t["@_name"]||"").trim()||void 0,r=cW(e,"a:fillStyleLst"),o=cW(e,"a:bgFillStyleLst"),i=t["a:fillStyleLst"],s=this.parseFillStyleList(i,r),a=t["a:lnStyleLst"],l=this.parseLineStyleList(a),c=t["a:effectStyleLst"],d=this.parseEffectStyleList(c),u=t["a:bgFillStyleLst"],p=this.parseFillStyleList(u,o);return {name:n,fillStyles:s,lineStyles:l,effectStyles:d,backgroundFillStyles:p}}parseClrMapOverrideNode(t){if(!t||t["a:masterClrMapping"]!==void 0)return null;let e=t["a:overrideClrMapping"];if(!e)return null;let n=["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],r={};for(let o of n){let i=String(e[`@_${o}`]||"").trim().toLowerCase();i&&(r[o]=i);}return Object.keys(r).length>0?r:null}parseSlideClrMapOverride(t){let e=t["p:sld"]?.["p:clrMapOvr"];return this.parseClrMapOverrideNode(e)}parseLayoutClrMapOverride(t){let e=t["p:sldLayout"]?.["p:clrMapOvr"];return this.parseClrMapOverrideNode(e)}applyThemeOverrideState(t){let e={...this.themeColorMap},n={...this.themeFontMap},r=this.themeFormatScheme;if(t.colorOverrides){for(let[o,i]of Object.entries(t.colorOverrides))if(o.startsWith("__fontOverride_")){let s=o.replace("__fontOverride_","");this.themeFontMap[s]=i,s==="mj-lt"?(this.themeFontMap["mj-ea"]=i,this.themeFontMap["mj-cs"]=i):s==="mn-lt"&&(this.themeFontMap["mn-ea"]=i,this.themeFontMap["mn-cs"]=i);}else this.themeColorMap[o]=i;this.themeColorMap.tx1=this.themeColorMap.dk1||e.dk1,this.themeColorMap.bg1=this.themeColorMap.lt1||e.lt1,this.themeColorMap.tx2=this.themeColorMap.dk2||e.dk2,this.themeColorMap.bg2=this.themeColorMap.lt2||e.lt2;}return t.formatSchemeOverride&&(this.themeFormatScheme=t.formatSchemeOverride),()=>{this.themeColorMap=e,this.themeFontMap=n,this.themeFormatScheme=r;}}async loadThemeOverride(t){let e=this.slideRelsMap.get(t);if(!e)return null;let n;for(let[,o]of e)if(o.includes("themeOverride")){let i=t.substring(0,t.lastIndexOf("/")+1);n=this.resolvePath(i,o);break}if(!n)return null;let r=this.themeOverrideCache.get(n);if(r)return r;try{let o=await this.zip.file(n)?.async("string");if(!o)return null;let s=this.parser.parse(o)["a:themeOverride"];if(!s)return null;let a={},l=s["a:clrScheme"];if(l){let u={},p=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];for(let h of p){let f=l[`a:${h}`],m=this.parseColorChoice(f);m&&(u[h]=m);}Object.keys(u).length>0&&(a.colorOverrides=u);}let c=s["a:fmtScheme"];c&&(a.formatSchemeOverride=this.parseFormatScheme(c));let d=s["a:fontScheme"];if(d){let u=d["a:majorFont"],p=d["a:minorFont"],h=u?.["a:latin"],f=p?.["a:latin"],m=this.normalizeTypefaceToken(String(h?.["@_typeface"]||"")),g=this.normalizeTypefaceToken(String(f?.["@_typeface"]||""));a.colorOverrides||(a.colorOverrides={}),m&&(a.colorOverrides["__fontOverride_mj-lt"]=m),g&&(a.colorOverrides["__fontOverride_mn-lt"]=g);}return this.themeOverrideCache.set(n,a),a}catch(o){return console.warn(`Failed to load theme override at ${n}:`,o),null}}},VMe=["a:scrgbClr","a:srgbClr","a:hslClr","a:sysClr","a:schemeClr","a:prstClr"],GMe=class extends zMe{extractRefColorXml(t){if(t)for(let e of VMe){let n=t[e];if(n!==void 0)return {[e]:n}}}resolveThemeEffectRef(t,e){let n=parseInt(String(t["@_idx"]||"0"),10);Number.isFinite(n)&&n>0&&(e.effectRefIdx=n);let r=this.extractRefColorXml(t);if(r&&(e.effectRefColorXml=r),!Number.isFinite(n)||n<=0||!this.themeFormatScheme||n>this.themeFormatScheme.effectStyles.length)return;let o=this.themeFormatScheme.effectStyles[n-1];o&&(o.shadowColor&&!e.shadowColor&&(e.shadowColor=o.shadowColor,e.shadowBlur=o.shadowBlur,e.shadowOffsetX=o.shadowOffsetX,e.shadowOffsetY=o.shadowOffsetY,e.shadowOpacity=o.shadowOpacity),o.innerShadowColor&&!e.innerShadowColor&&(e.innerShadowColor=o.innerShadowColor,e.innerShadowBlur=o.innerShadowBlur,e.innerShadowOffsetX=o.innerShadowOffsetX,e.innerShadowOffsetY=o.innerShadowOffsetY,e.innerShadowOpacity=o.innerShadowOpacity),o.glowColor&&!e.glowColor&&(e.glowColor=o.glowColor,e.glowRadius=o.glowRadius,e.glowOpacity=o.glowOpacity),o.softEdgeRadius&&!e.softEdgeRadius&&(e.softEdgeRadius=o.softEdgeRadius),o.reflectionBlurRadius!==void 0&&e.reflectionBlurRadius===void 0&&(e.reflectionBlurRadius=o.reflectionBlurRadius,e.reflectionStartOpacity=o.reflectionStartOpacity,e.reflectionEndOpacity=o.reflectionEndOpacity,e.reflectionEndPosition=o.reflectionEndPosition,e.reflectionDirection=o.reflectionDirection,e.reflectionRotation=o.reflectionRotation,e.reflectionDistance=o.reflectionDistance),o.scene3d&&!e.scene3d&&(e.scene3d=o.scene3d),o.shape3d&&!e.shape3d&&(e.shape3d=o.shape3d));}resolveThemeLineRef(t,e){let n=parseInt(String(t["@_idx"]||"0"),10),r=this.parseColor(t);Number.isFinite(n)&&n>0&&(e.lnRefIdx=n);let o=this.extractRefColorXml(t);if(o&&(e.lnRefColorXml=o),!Number.isFinite(n)||n<=0||!this.themeFormatScheme||n>this.themeFormatScheme.lineStyles.length){e.strokeColor=r,r&&(e.strokeWidth=1);return}let i=this.themeFormatScheme.lineStyles[n-1];if(!i){e.strokeColor=r,r&&(e.strokeWidth=1);return}e.strokeColor=r||i.color,i.opacity!==void 0&&(e.strokeOpacity=i.opacity),i.width!==void 0&&i.width>0?e.strokeWidth=i.width:e.strokeColor&&(e.strokeWidth=1),i.dash&&(e.strokeDash=i.dash),i.lineJoin&&(e.lineJoin=i.lineJoin),i.lineCap&&(e.lineCap=i.lineCap),i.compoundLine&&(e.compoundLine=i.compoundLine);}reResolveGradientWithPhClr(t,e){let n=this.themeColorMap.phclr;this.themeColorMap.phclr=e;let r=this.extractGradientStops(t),o=this.extractGradientType(t),i=this.extractGradientAngle(t),s=this.buildGradientCssFromStops(r,o,i);return n!==void 0?this.themeColorMap.phclr=n:delete this.themeColorMap.phclr,{stops:r,css:s}}resolveThemeFillRef(t,e){let n=parseInt(String(t["@_idx"]||"0"),10);Number.isFinite(n)&&n>0&&(e.fillRefIdx=n);let r=this.extractRefColorXml(t);if(r&&(e.fillRefColorXml=r),!Number.isFinite(n)||n<=0||!this.themeFormatScheme){e.fillMode="theme",e.fillColor=this.parseColor(t);return}let o;if(n>=1001){let s=n-1001;o=this.themeFormatScheme.backgroundFillStyles[s];}else o=this.themeFormatScheme.fillStyles[n-1];if(!o){e.fillMode="theme",e.fillColor=this.parseColor(t);return}let i=this.parseColor(t);switch(o.kind){case "solid":{e.fillMode="solid",e.fillColor=i||o.color,e.fillOpacity=o.opacity;break}case "gradient":{if(e.fillMode="gradient",o.rawNode&&i){let s=this.reResolveGradientWithPhClr(o.rawNode,i);e.fillGradientStops=s.stops,e.fillGradient=s.css;}else e.fillGradientStops=o.gradientStops,e.fillGradient=o.gradientCss;e.fillGradientAngle=o.gradientAngle,e.fillGradientType=o.gradientType,e.fillColor=i||o.color;break}case "pattern":{e.fillMode="pattern",e.fillColor=i||o.color,o.patternPreset&&(e.fillPatternPreset=o.patternPreset),o.patternBackgroundColor&&(e.fillPatternBackgroundColor=o.patternBackgroundColor);break}case "none":{e.fillMode="none",e.fillColor="transparent",e.fillOpacity=0;break}}}},WMe=class extends GMe{async resolvePrimaryThemePath(){let t=this.zip.file(/^ppt\/slideMasters\/slideMaster\d+\.xml$/);if(!t||t.length===0)return;let e=t[0].name,n=e.replace(/ppt\/slideMasters\/(slideMaster\d+)\.xml/,"ppt/slideMasters/_rels/$1.xml.rels"),r=this.zip.file(n);if(!r)return;let o=this.parser.parse(await r.async("string")),i=this.ensureArray(o?.Relationships?.Relationship);for(let s of i){let a=String(s["@_Target"]||"");if(!a.includes("theme"))continue;let l=a.startsWith("..")?this.resolvePath(e.substring(0,e.lastIndexOf("/")+1),a):a.startsWith("/")?a.slice(1):`ppt/${a.replace(/^\.?\//,"")}`;if(l.startsWith("ppt/theme/"))return l}}async parseThemeOptions(){let t=this.zip.file(/^ppt\/theme\/theme\d+\.xml$/);if(!t||t.length===0)return [];let e=[];for(let n of t)try{let r=await n.async("string"),i=this.parser.parse(r)["a:theme"],s=String(i?.["@_name"]||"").trim();e.push({path:n.name,name:s.length>0?s:void 0});}catch{e.push({path:n.name});}return e}async getAvailableThemes(){return this.parseThemeOptions()}buildThemeObject(){let t=Object.keys(this.themeColorMap).length>0,e=Object.keys(this.themeFontMap).length>0;if(!t&&!e)return;let n;t&&(n={dk1:this.themeColorMap.dk1||"",lt1:this.themeColorMap.lt1||"",dk2:this.themeColorMap.dk2||"",lt2:this.themeColorMap.lt2||"",accent1:this.themeColorMap.accent1||"",accent2:this.themeColorMap.accent2||"",accent3:this.themeColorMap.accent3||"",accent4:this.themeColorMap.accent4||"",accent5:this.themeColorMap.accent5||"",accent6:this.themeColorMap.accent6||"",hlink:this.themeColorMap.hlink||"",folHlink:this.themeColorMap.folHlink||""});let r;return e&&(r={majorFont:{latin:this.themeFontMap["mj-lt"],eastAsia:this.themeFontMap["mj-ea"],complexScript:this.themeFontMap["mj-cs"]},minorFont:{latin:this.themeFontMap["mn-lt"],eastAsia:this.themeFontMap["mn-ea"],complexScript:this.themeFontMap["mn-cs"]}}),{colorScheme:n,fontScheme:r,formatScheme:this.themeFormatScheme}}async applySlideMasterColorMap(t){let e=this.zip.file(/^ppt\/slideMasters\/slideMaster\d+\.xml$/);if(!e||e.length===0)return;let n=["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];for(let r of e)try{let o=await r.async("string"),s=this.parser.parse(o)?.["p:sldMaster"]?.["p:clrMap"];if(!s)continue;let a={};for(let l of n){let c=String(s[`@_${l}`]||"").trim().toLowerCase();c&&(a[l]=c);}Object.keys(a).length>0&&this.masterClrMaps.set(r.name,a);}catch(o){console.warn(`Failed to parse slide master color map for ${r.name}:`,o);}}async parseThemePart(t){let e=this.zip.file(t);if(!e)return null;let n=await e.async("string");this.originalThemeXmlByPath.set(t,n);let o=this.parser.parse(n)["a:theme"],i=o?.["a:themeElements"],s=i?.["a:clrScheme"],a=i?.["a:fontScheme"],l=i?.["a:fmtScheme"],c=String(o?.["@_name"]||"").trim();c&&this.masterThemeNames.set(t,c);let d=String(s?.["@_name"]||"").trim();d&&this.masterThemeColorSchemeNames.set(t,d);let u=String(a?.["@_name"]||"").trim();u&&this.masterThemeFontSchemeNames.set(t,u);let h={...this.getDefaultSchemeColorMap()};if(s){let N=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];for(let k of N){let L=s[`a:${k}`],F=this.parseColorChoice(L);F&&(h[k]=F);}}let f=a?.["a:majorFont"],m=a?.["a:minorFont"],g=f?.["a:latin"],x=m?.["a:latin"],y=this.normalizeTypefaceToken(String(g?.["@_typeface"]||"")),b=this.normalizeTypefaceToken(String(x?.["@_typeface"]||"")),v={};y&&(v["mj-lt"]=y,v["mj-ea"]=y,v["mj-cs"]=y),b&&(v["mn-lt"]=b,v["mn-ea"]=b,v["mn-cs"]=b);let S=this.normalizeTypefaceToken(String(f?.["a:ea"]?.["@_typeface"]||""));S&&(v["mj-ea"]=S);let w=this.normalizeTypefaceToken(String(f?.["a:cs"]?.["@_typeface"]||""));w&&(v["mj-cs"]=w);let C=this.normalizeTypefaceToken(String(m?.["a:ea"]?.["@_typeface"]||""));C&&(v["mn-ea"]=C);let T=this.normalizeTypefaceToken(String(m?.["a:cs"]?.["@_typeface"]||""));T&&(v["mn-cs"]=T);let M=this.collectFontScriptOverrides(f);Object.keys(M).length>0&&this.masterThemeMajorFontScripts.set(t,M);let P=this.collectFontScriptOverrides(m);Object.keys(P).length>0&&this.masterThemeMinorFontScripts.set(t,P);let _=o?.["a:objectDefaults"];if(_){let N={spDef:_["a:spDef"],lnDef:_["a:lnDef"],txDef:_["a:txDef"]};(N.spDef!==void 0||N.lnDef!==void 0||N.txDef!==void 0)&&this.masterThemeObjectDefaults.set(t,N);}let A=o?.["a:extraClrSchemeLst"];A!==void 0&&this.masterThemeExtraClrSchemeLst.set(t,A);let R=o?.["a:custClrLst"];R!==void 0&&this.masterThemeCustClrLst.set(t,R);let I=o?.["a:extLst"];I!==void 0&&this.masterThemeExtLst.set(t,I);let E=l?this.parseFormatScheme(l):void 0;return {colorMap:h,fontMap:v,formatScheme:E}}collectFontScriptOverrides(t){let e={};if(!t)return e;let n=this.ensureArray(t["a:font"]);for(let r of n){let o=String(r?.["@_script"]||"").trim(),i=this.normalizeTypefaceToken(String(r?.["@_typeface"]||""));o&&i&&(e[o]=i);}return e}async resolveThemePathForMaster(t){let e=t.replace(/ppt\/slideMasters\/(slideMaster\d+)\.xml/,"ppt/slideMasters/_rels/$1.xml.rels"),n=this.zip.file(e);if(!n)return;let r=this.parser.parse(await n.async("string")),o=this.ensureArray(r?.Relationships?.Relationship);for(let i of o){let s=String(i["@_Target"]||"");if(!s.includes("theme"))continue;let a=s.startsWith("..")?this.resolvePath(t.substring(0,t.lastIndexOf("/")+1),s):s.startsWith("/")?s.slice(1):`ppt/${s.replace(/^\.?\//,"")}`;if(a.startsWith("ppt/theme/"))return a}}async loadPerMasterThemes(){let t=this.zip.file(/^ppt\/slideMasters\/slideMaster\d+\.xml$/);if(!(!t||t.length===0))for(let e of t)try{let n=await this.resolveThemePathForMaster(e.name);if(!n)continue;this.masterThemePaths.set(e.name,n);let r=await this.parseThemePart(n);if(!r)continue;this.masterThemeColorMaps.set(e.name,r.colorMap),this.masterThemeFontMaps.set(e.name,r.fontMap),r.formatScheme&&this.masterThemeFormatSchemes.set(e.name,r.formatScheme);}catch(n){console.warn(`Failed to load per-master theme for ${e.name}:`,n);}}async loadThemeData(){let t=this.zip.file(/^ppt\/theme\/theme\d+\.xml$/);if(!t||t.length===0)return;let e=await this.resolvePrimaryThemePath(),n=e?t.find(o=>o.name===e)??t[0]:t[0],r=await this.parseThemePart(n.name);r&&(this.themeColorMap=r.colorMap,this.themeFontMap=r.fontMap,r.formatScheme&&(this.themeFormatScheme=r.formatScheme)),await this.applySlideMasterColorMap(this.getDefaultSchemeColorMap()),await this.loadPerMasterThemes(),this.globalThemeColorMapSnapshot={...this.themeColorMap},this.globalThemeFontMapSnapshot={...this.themeFontMap},this.globalThemeFormatSchemeSnapshot=this.themeFormatScheme;}},XMe=class extends WMe{async getPrimaryThemeXml(){let t=this.zip.file(/^ppt\/theme\/theme\d+\.xml$/);if(!t||t.length===0)return;let e=await this.resolvePrimaryThemePath(),n=e?t.find(o=>o.name===e)??t[0]:t[0],r=await n.async("string");return {path:n.name,data:this.parser.parse(r)}}buildSrgbClrNode(t){return {"a:srgbClr":{"@_val":t.replace(/^#/,"").toUpperCase()}}}async updateThemeColorScheme(t){let e=await this.getPrimaryThemeXml();if(!e)return;let{path:n,data:r}=e,i=r["a:theme"]?.["a:themeElements"];if(!i)return;let s=i["a:clrScheme"]??{},a=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];for(let l of a)s[`a:${l}`]=this.buildSrgbClrNode(t[l]);i["a:clrScheme"]=s,this.zip.file(n,this.builder.build(r));for(let l of a)this.themeColorMap[l]=t[l].replace(/^#/,"").toUpperCase();this.themeColorMap.tx1=this.themeColorMap.dk1,this.themeColorMap.bg1=this.themeColorMap.lt1,this.themeColorMap.tx2=this.themeColorMap.dk2,this.themeColorMap.bg2=this.themeColorMap.lt2;}async updateThemeFontScheme(t){let e=await this.getPrimaryThemeXml();if(!e)return;let{path:n,data:r}=e,i=r["a:theme"]?.["a:themeElements"];if(!i)return;let s=i["a:fontScheme"]??{};if(t.majorFont?.latin){let a=s["a:majorFont"]??{};a["a:latin"]={"@_typeface":t.majorFont.latin},a["a:ea"]||(a["a:ea"]={"@_typeface":""}),a["a:cs"]||(a["a:cs"]={"@_typeface":""}),s["a:majorFont"]=a;}if(t.minorFont?.latin){let a=s["a:minorFont"]??{};a["a:latin"]={"@_typeface":t.minorFont.latin},a["a:ea"]||(a["a:ea"]={"@_typeface":""}),a["a:cs"]||(a["a:cs"]={"@_typeface":""}),s["a:minorFont"]=a;}i["a:fontScheme"]=s,this.zip.file(n,this.builder.build(r)),t.majorFont?.latin&&(this.themeFontMap["mj-lt"]=t.majorFont.latin,this.themeFontMap["mj-ea"]=t.majorFont.latin,this.themeFontMap["mj-cs"]=t.majorFont.latin),t.minorFont?.latin&&(this.themeFontMap["mn-lt"]=t.minorFont.latin,this.themeFontMap["mn-ea"]=t.minorFont.latin,this.themeFontMap["mn-cs"]=t.minorFont.latin);}async updateThemeName(t){let e=await this.getPrimaryThemeXml();if(!e)return;let{path:n,data:r}=e,o=r["a:theme"];o&&(o["@_name"]=t,this.zip.file(n,this.builder.build(r)));}async applyTheme(t,e,n){await this.updateThemeColorScheme(t),await this.updateThemeFontScheme(e),n&&await this.updateThemeName(n);}},jMe=class R5 extends XMe{async extractModernSlideComments(e){let n=[];try{let r=`${e.replace("slides/","slides/_rels/")}.rels`,o=await this.zip.file(r)?.async("string");if(!o)return [];let i=this.parser.parse(o),a=this.ensureArray(ut(i,"Relationships")?.Relationship).filter(l=>{let c=String(l?.["@_Type"]||"").toLowerCase();return c.includes("comments-extended")||c.includes("comments/authors")||c.includes("/p188/")||c.includes("/p15/")});if(a.length===0)return [];for(let l of a){let c=String(l?.["@_Target"]||"").trim();if(!c)continue;let d=this.resolvePath(e,c),u=await this.zip.file(d)?.async("string");if(!u)continue;let p=this.parser.parse(u),h=Object.keys(p).find(x=>x.endsWith("cmLst"));if(!h)continue;let f=p[h],m=Object.keys(f||{}).find(x=>x.endsWith(":cm"));if(!m)continue;let g=this.ensureArray(f[m]);for(let x of g){let y=String(x?.["@_id"]||""),b=String(x?.["@_parentCmId"]||""),v=String(x?.["@_authorId"]||""),S=String(x?.["@_created"]||x?.["@_dt"]||""),w=String(x?.["@_status"]||"").toLowerCase(),C=Object.keys(x||{}).find(P=>P.endsWith("txBody")),T="";if(C){let P=this.ensureArray(ut(x,C)?.["a:p"]),_=[];for(let A of P){let R=this.ensureArray(A?.["a:r"]),I="";for(let E of R)I+=String(E?.["a:t"]??"");_.push(I);}T=_.join(`
282
282
  `);}let M={id:y,text:T,author:v.length>0?this.commentAuthorMap.get(v)||`Author ${v}`:void 0,createdAt:S||void 0,resolved:w==="resolved"||w==="done"?!0:void 0,threadId:b||void 0};n.push(M);}}if(n.length>0){let l=new Map;for(let c of n)l.set(c.id,c);for(let c of n)if(c.threadId){let d=l.get(c.threadId);d&&(d.replies||(d.replies=[]),d.replies.push(c));}return n.filter(c=>!c.threadId)}}catch(r){console.warn("Failed to parse modern comments:",r);}return n}async resolveSlideCommentTarget(e){let n=this.slideRelsMap.get(e);if(n){for(let[,i]of n.entries())if(String(i||"").toLowerCase().includes("comments/comment"))return i}let r=`${e.replace("slides/","slides/_rels/")}.rels`,o=await this.zip.file(r)?.async("string");if(o)try{let i=this.parser.parse(o),a=this.ensureArray(ut(i,"Relationships")?.Relationship).find(c=>String(c?.["@_Type"]||"").toLowerCase().endsWith("/comments")),l=String(a?.["@_Target"]||"").trim();return l.length>0?l:void 0}catch(i){console.warn("Failed to parse slide relationships for comments:",i);return}}extractCommentText(e){let n=e?.["p:text"]??e?.text??this.xmlLookupService.getChildByLocalName(e,"text");if(typeof n=="string")return n.trim();if(n!=null)return String(n).trim();let r=e?.["p:txBody"]||this.xmlLookupService.getChildByLocalName(e,"txBody"),o=this.extractTextFromTxBody(r);return o.length>0?o:""}async extractSlideComments(e){let n=await this.resolveSlideCommentTarget(e);if(!n)return [];let r=this.resolveImagePath(e,n),o=await this.zip.file(r)?.async("string");if(!o)return [];try{let i=this.parser.parse(o),s=this.xmlLookupService.getChildByLocalName(i,"cmLst");return this.xmlLookupService.getChildrenArrayByLocalName(s,"cm").map((l,c)=>{let d=String(l?.["@_idx"]||l?.["@_id"]||c).trim(),u=String(l?.["@_authorId"]||"").trim(),p=String(l?.["@_dt"]||"").trim(),h=l?.["p:pos"]||this.xmlLookupService.getChildByLocalName(l,"pos"),f=Number.parseInt(String(h?.["@_x"]||""),10),m=Number.parseInt(String(h?.["@_y"]||""),10),g=String(l?.["@_done"]||l?.["@_resolved"]||"").trim().toLowerCase(),x=g==="1"||g==="true"?!0:void 0;return {id:d.length>0?d:String(c),text:this.extractCommentText(l),author:u.length>0?this.commentAuthorMap.get(u)||`Author ${u}`:void 0,createdAt:p.length>0?p:void 0,x:Number.isFinite(f)?Math.round(f/R5.EMU_PER_PX):void 0,y:Number.isFinite(m)?Math.round(m/R5.EMU_PER_PX):void 0,resolved:x}})}catch(i){return console.warn("Failed to parse slide comments:",i),[]}}async loadCommentAuthors(){let e=await this.zip.file("ppt/commentAuthors.xml")?.async("string");if(e)try{let n=this.parser.parse(e),r=this.xmlLookupService.getChildByLocalName(n,"cmAuthorLst");this.xmlLookupService.getChildrenArrayByLocalName(r,"cmAuthor").forEach((i,s)=>{let a=String(i?.["@_id"]||s).trim();if(a.length===0)return;let l=String(i?.["@_name"]||i?.["@_initials"]||`Author ${a}`).trim(),c=l.length>0?l:`Author ${a}`;this.commentAuthorMap.set(a,c);let d=String(i?.["@_initials"]||"").trim(),u=Number.parseInt(String(i?.["@_lastIdx"]||"0"),10),p=Number.parseInt(String(i?.["@_clrIdx"]||"0"),10),h={id:a,name:c,initials:d.length>0?d:this.toCommentInitials(c),lastIdx:Number.isFinite(u)?u:0,clrIdx:Number.isFinite(p)?p:0};this.commentAuthorDetails.set(a,h);});}catch(n){console.warn("Failed to parse PowerPoint comment authors:",n);}}toCommentInitials(e){let n=e.split(/\s+/).map(r=>r.trim()).filter(r=>r.length>0);return n.length===0?"U":n.slice(0,2).map(r=>r[0].toUpperCase()).join("")}},YMe=class extends jMe{async readXmlPartByRelationshipId(t,e){let n=String(e||"").trim();if(n.length===0)return;let o=this.slideRelsMap.get(t)?.get(n);if(!o)return;let i=this.resolveImagePath(t,o),s=await this.zip.file(i)?.async("string");if(s)return {xml:this.parser.parse(s),partPath:i}}collectLocalTextValues(t,e,n){let o=[t],i=0;for(;o.length>0&&!(i++>1e6);){let s=o.pop();if(s==null)continue;if(Array.isArray(s)){for(let l of s)o.push(l);continue}if(typeof s!="object")continue;let a=s;for(let[l,c]of Object.entries(a)){if(this.compatibilityService.getXmlLocalName(l)===e&&(typeof c=="string"||typeof c=="number")){let d=String(c).trim();d.length>0&&n.push(d);continue}c!=null&&o.push(c);}}}extractSmartArtNodeRuns(t){let e=this.xmlLookupService.getChildByLocalName(t,"t");if(!e)return;let n=this.xmlLookupService.getChildrenArrayByLocalName(e,"p")[0];if(!n)return;let r=this.xmlLookupService.getChildrenArrayByLocalName(n,"r");if(r.length===0)return;let o=[];for(let i of r){let s=[];this.collectLocalTextValues(i,"t",s);let a=s.join(""),l=this.xmlLookupService.getChildByLocalName(i,"rPr"),c={text:a};l&&(c.rPr=JSON.parse(JSON.stringify(l))),o.push(c);}return o.length>0?o:void 0}extractSmartArtNodeStyle(t){let e={},n=this.xmlLookupService.getChildByLocalName(t,"spPr");if(n){let o=this.parseColor(this.xmlLookupService.getChildByLocalName(n,"solidFill"));o&&(e.fillColor=o);let i=this.xmlLookupService.getChildByLocalName(n,"ln");if(i){let s=this.parseColor(this.xmlLookupService.getChildByLocalName(i,"solidFill"));s&&(e.lineColor=s);}}let r=this.firstRunProperties(t);if(r){this.xmlBoolean(r["@_b"])&&(e.bold=true),this.xmlBoolean(r["@_i"])&&(e.italic=true);let o=this.parseColor(this.xmlLookupService.getChildByLocalName(r,"solidFill"));o&&(e.fontColor=o);}return Object.keys(e).length>0?e:void 0}firstRunProperties(t){let e=this.xmlLookupService.getChildByLocalName(t,"t");if(!e)return;let n=this.xmlLookupService.getChildrenArrayByLocalName(e,"p")[0];if(!n)return;let r=this.xmlLookupService.getChildrenArrayByLocalName(n,"r")[0];if(r)return this.xmlLookupService.getChildByLocalName(r,"rPr")}xmlBoolean(t){let e=String(t??"").trim().toLowerCase();return e==="1"||e==="true"||e==="on"}parseSmartArtChrome(t){if(!t)return;let e=this.xmlLookupService.getChildByLocalName(t,"bg"),n=this.xmlLookupService.getChildByLocalName(t,"whole");if(!e&&!n)return;let r={};if(e){let o=this.xmlLookupService.getChildByLocalName(e,"solidFill"),i=this.parseColor(o);i&&(r.backgroundColor=i);}if(n){let o=this.xmlLookupService.getChildByLocalName(n,"ln");if(o){let i=this.xmlLookupService.getChildByLocalName(o,"solidFill"),s=this.parseColor(i);s&&(r.outlineColor=s);let a=parseInt(String(o["@_w"]||""),10);Number.isFinite(a)&&a>0&&(r.outlineWidth=a/12700);}}return r.backgroundColor||r.outlineColor?r:void 0}parseSmartArtColorTransform(t,e){return this.parseSmartArtColorTransformImpl(t,e)}async parseSmartArtColorTransformImpl(t,e){if(e.length!==0)try{let n=await this.readXmlPartByRelationshipId(t,e);if(!n)return;let r=this.xmlLookupService.getChildByLocalName(n.xml,"colorsDef");if(!r)return;let o=String(r["@_title"]||r["@_uniqueId"]||"").trim()||void 0,i=[],s=[],a=this.xmlLookupService.getChildrenArrayByLocalName(r,"styleLbl");for(let l of a){let c=this.xmlLookupService.getChildByLocalName(l,"fillClrLst"),d=this.xmlLookupService.getChildByLocalName(l,"linClrLst");if(c){let u=this.parseColor(c)??this.resolveSmartArtSchemeColor(this.xmlLookupService.getChildByLocalName(c,"schemeClr"));u&&i.push(u);}if(d){let u=this.parseColor(d)??this.resolveSmartArtSchemeColor(this.xmlLookupService.getChildByLocalName(d,"schemeClr"));u&&s.push(u);}}return i.length===0&&s.length===0?void 0:{name:o,fillColors:i,lineColors:s}}catch{return}}resolveSmartArtSchemeColor(t){if(!t)return;let e=String(t["@_val"]||"").trim();if(e.length===0)return;let n=this.themeColorMap[e];if(n)return n.startsWith("#")?n:`#${n}`}},qMe=class n9 extends YMe{async parseSmartArtQuickStyle(e,n){if(n.length!==0)try{let r=await this.readXmlPartByRelationshipId(e,n);if(!r)return;let o=this.xmlLookupService.getChildByLocalName(r.xml,"styleDef");if(!o)return;let i=String(o["@_title"]||o["@_uniqueId"]||"").trim()||void 0,s,a=this.xmlLookupService.getChildrenArrayByLocalName(o,"styleLbl");for(let l of a){let c=String(l?.["@_name"]||"").toLowerCase();if(c.includes("intense")||c.includes("3d")){s="intense";break}if(c.includes("moderate")||c.includes("semi")){s="moderate";break}if(c.includes("subtle")||c.includes("flat")){s="subtle";break}}return {name:i,effectIntensity:s}}catch{return}}async parseSmartArtDrawingShapes(e,n){if(n.length===0)return [];try{let r=await this.readXmlPartByRelationshipId(e,n);if(!r)return [];let o=this.xmlLookupService.getChildByLocalName(r.xml,"drawing"),i=this.xmlLookupService.getChildByLocalName(o||r.xml,"spTree");if(!i)return [];let s=this.xmlLookupService.getChildrenArrayByLocalName(i,"sp"),a=n9.EMU_PER_PX;return s.map((l,c)=>this.parseDrawingShape(l,c,a)).filter(l=>l!==null)}catch{return []}}parseDrawingShape(e,n,r){let o=this.xmlLookupService.getChildByLocalName(e,"spPr");if(!o)return null;let i=this.xmlLookupService.getChildByLocalName(o,"xfrm"),s=this.xmlLookupService.getChildByLocalName(i,"off"),a=this.xmlLookupService.getChildByLocalName(i,"ext");if(!s||!a)return null;let l=Math.round(parseInt(String(s["@_x"]||"0"),10)/r),c=Math.round(parseInt(String(s["@_y"]||"0"),10)/r),d=Math.round(parseInt(String(a["@_cx"]||"0"),10)/r),u=Math.round(parseInt(String(a["@_cy"]||"0"),10)/r);if(d<=0||u<=0)return null;let p=i?.["@_rot"]?parseInt(String(i["@_rot"]),10)/6e4:void 0,h=i?.["@_skewX"]?parseInt(String(i["@_skewX"]),10)/6e4:void 0,f=i?.["@_skewY"]?parseInt(String(i["@_skewY"]),10)/6e4:void 0,m=this.xmlLookupService.getChildByLocalName(o,"prstGeom"),g=m?String(m["@_prst"]||"rect"):"rect",x=this.xmlLookupService.getChildByLocalName(o,"solidFill"),y=this.parseColor(x),b=this.xmlLookupService.getChildByLocalName(o,"ln"),v=b?this.xmlLookupService.getChildByLocalName(b,"solidFill"):void 0,S=this.parseColor(v),w=b?parseInt(String(b["@_w"]||""),10):NaN,C=Number.isFinite(w)&&w>0?w/12700:void 0,T=this.xmlLookupService.getChildByLocalName(e,"txBody"),M=[];T&&this.collectLocalTextValues(T,"t",M);let P=M.join("").trim()||void 0,{fontSize:_,fontColor:A}=this.extractDrawingShapeTextStyle(T),R=this.xmlLookupService.getChildByLocalName(e,"nvSpPr"),I=this.xmlLookupService.getChildByLocalName(R,"cNvPr");return {id:String(I?.["@_id"]||`dsp-${n}`),shapeType:g,x:l,y:c,width:d,height:u,rotation:p,skewX:h,skewY:f,fillColor:y??void 0,strokeColor:S??void 0,strokeWidth:C,text:P,fontSize:_,fontColor:A}}extractDrawingShapeTextStyle(e){let n,r;if(!e)return {fontSize:n,fontColor:r};let o=this.xmlLookupService.getChildrenArrayByLocalName(e,"p");for(let i of o){let s=this.xmlLookupService.getChildrenArrayByLocalName(i,"r");for(let a of s){let l=this.xmlLookupService.getChildByLocalName(a,"rPr");if(l&&!n){let c=parseInt(String(l["@_sz"]||""),10);Number.isFinite(c)&&c>0&&(n=c/100);let d=this.xmlLookupService.getChildByLocalName(l,"solidFill");r=this.parseColor(d)??void 0;}if(n)break}if(n)break}return {fontSize:n,fontColor:r}}},KMe=class r9 extends qMe{async getSmartArtDataForGraphicFrame(e,n){let r=this.xmlLookupService.getChildByLocalName(this.xmlLookupService.getChildByLocalName(n,"graphic"),"graphicData"),o=this.xmlLookupService.getChildByLocalName(r,"relIds");if(!o)return;let i=String(o["@_r:dm"]||"").trim();if(i.length===0)return;let s=await this.readXmlPartByRelationshipId(e,i);if(!s)return;let a=this.xmlLookupService.getChildByLocalName(s.xml,"dataModel"),l=this.xmlLookupService.getChildByLocalName(a,"ptLst"),c=this.xmlLookupService.getChildrenArrayByLocalName(l,"pt"),{parsedConnections:d,parentByNodeId:u}=this.parseSmartArtConnections(a),p=c.map(T=>{let M=String(T?.["@_modelId"]||"").trim();if(M.length===0)return null;let P=String(T?.["@_type"]||"").trim()||void 0,_=[];this.collectLocalTextValues(T,"t",_);let A=_.find(E=>E.trim().length>0);if(!A)return null;let R=this.extractSmartArtNodeRuns(T),I=this.extractSmartArtNodeStyle(T);return {id:M,text:A.trim(),parentId:u.get(M),nodeType:P,runs:R,style:I}}).filter(T=>!!T).slice(0,zve);if(p.length===0)return;let h=String(o["@_r:lo"]||"").trim(),m=(h.length>0?await this.readXmlPartByRelationshipId(e,h):void 0)?.partPath?.split("/").pop()?.replace(/\.[^.]+$/u,"")||void 0,g=this.parseSmartArtChrome(a),x=String(o["@_r:cs"]||"").trim(),y=await this.parseSmartArtColorTransform(e,x),b=await this.resolveSmartArtDrawingPart(e,i),v=b?await this.parseSmartArtDrawingShapesFromPath(b.path):[],S=b?.relId,w=String(o["@_r:qs"]||"").trim(),C=await this.parseSmartArtQuickStyle(e,w);return {layoutType:m,nodes:p,connections:d.length>0?d:void 0,drawingShapes:v.length>0?v:void 0,chrome:g,colorTransform:y,quickStyle:C,dataRelId:i,drawingRelId:S&&S.length>0?S:void 0,colorsRelId:x.length>0?x:void 0,styleRelId:w.length>0?w:void 0}}async resolveSmartArtDrawingPart(e,n){if(n.length===0)return;let o=this.slideRelsMap.get(e)?.get(n);if(!o)return;let i=this.resolveImagePath(e,o),s=i.replace(/\/[^/]+$/u,""),a=i.split("/").pop()??"",l=`${s}/_rels/${a}.rels`,c=await this.zip.file(l)?.async("string");if(c)try{let u=this.parser.parse(c).Relationships;if(!u)return;let h=this.ensureArray(u.Relationship).find(x=>String(x?.["@_Type"]||"").endsWith("/diagramDrawing")),f=String(h?.["@_Id"]||"").trim(),m=String(h?.["@_Target"]||"").trim();if(f.length===0||m.length===0)return;let g=this.resolveImagePath(i,m);return {relId:f,path:g}}catch{return}}async parseSmartArtDrawingShapesFromPath(e){let n=await this.zip.file(e)?.async("string");if(!n)return [];try{let r=this.parser.parse(n),o=this.xmlLookupService.getChildByLocalName(r,"drawing"),i=this.xmlLookupService.getChildByLocalName(o||r,"spTree");if(!i)return [];let s=this.xmlLookupService.getChildrenArrayByLocalName(i,"sp"),a=r9.EMU_PER_PX;return s.map((l,c)=>this.parseDrawingShape(l,c,a)).filter(l=>l!==null)}catch{return []}}parseSmartArtConnections(e){let n=this.xmlLookupService.getChildByLocalName(e,"cxnLst"),r=this.xmlLookupService.getChildrenArrayByLocalName(n,"cxn"),o=new Map,i=[];return r.forEach(s=>{let a=String(s?.["@_srcId"]||"").trim(),l=String(s?.["@_destId"]||"").trim();if(a.length===0||l.length===0)return;let c=String(s?.["@_type"]||"").trim()||void 0,d=parseInt(String(s?.["@_srcOrd"]||""),10),u=parseInt(String(s?.["@_destOrd"]||""),10);i.push({sourceId:a,destId:l,type:c,srcOrd:Number.isFinite(d)?d:void 0,destOrd:Number.isFinite(u)?u:void 0}),o.has(l)||o.set(l,a);}),{parsedConnections:i,parentByNodeId:o}}},ZMe=class extends KMe{detectChartType(t){if(!t)return "unknown";let e={barChart:"bar",bar3DChart:"bar3D",lineChart:"line",line3DChart:"line3D",pieChart:"pie",pie3DChart:"pie3D",ofPieChart:"ofPie",doughnutChart:"doughnut",areaChart:"area",area3DChart:"area3D",scatterChart:"scatter",bubbleChart:"bubble",radarChart:"radar",stockChart:"stock",surfaceChart:"surface",surface3DChart:"surface"},n=[];for(let r of Object.keys(t)){let o=this.compatibilityService.getXmlLocalName(r);e[o]&&n.push(o);}if(n.length>=2)return "combo";if(n.length===1)return e[n[0]];for(let r of Object.keys(t)){let o=this.compatibilityService.getXmlLocalName(r);if(o==="plotAreaRegion"||o==="plotSurface"){let i=this.xmlLookupService.getChildrenArrayByLocalName(t[r],"series");for(let s of i){let a=String(s?.["@_layoutId"]||"").toLowerCase();if(a.includes("waterfall"))return "waterfall";if(a.includes("funnel"))return "funnel";if(a.includes("treemap"))return "treemap";if(a.includes("sunburst"))return "sunburst";if(a.includes("boxwhisker")||a.includes("box"))return "boxWhisker";if(a.includes("histogram")||a.includes("pareto"))return "histogram";if(a.includes("regionmap")||a.includes("map"))return "regionMap"}}}return "unknown"}extractChartPointValues(t,e){if(!t)return [];let n=e?"numRef":"strRef",r=e?"numLit":"strLit",o=e?"numCache":"strCache",i=this.xmlLookupService.getChildByLocalName(t,n)||this.xmlLookupService.getChildByLocalName(t,r),s=this.xmlLookupService.getChildByLocalName(i,o)||i,a=this.xmlLookupService.getChildrenArrayByLocalName(s,"pt");return a.length===0?[]:[...a].sort((l,c)=>{let d=Number.parseInt(String(l?.["@_idx"]||"0"),10),u=Number.parseInt(String(c?.["@_idx"]||"0"),10);return d-u}).map(l=>String(this.xmlLookupService.getScalarChildByLocalName(l,"v")||"").trim()).filter(l=>l.length>0)}extractChartSeriesName(t){let e=this.xmlLookupService.getChildByLocalName(t,"tx"),n=String(this.xmlLookupService.getScalarChildByLocalName(e,"v")||"").trim();if(n.length>0)return n;let r=this.extractChartPointValues(e,false);return r.length>0?r[0]:"Series"}};JMe=class extends ZMe{parsePlotVisOnly(t){if(!t)return;let e=this.xmlLookupService.getChildByLocalName(t,"plotVisOnly");if(!e)return;let n=e["@_val"];return !(n==="0"||n==="false")}parsePivotSource(t){if(!t)return;let e=this.xmlLookupService.getChildByLocalName(t,"pivotSource");if(!e)return;let n=this.xmlLookupService.getChildByLocalName(e,"name"),r=n!==null?String(typeof n=="object"&&n!==null?n["#text"]??n._??n["@_val"]??"":n).trim():"";if(r.length===0)return;let i=this.xmlLookupService.getChildByLocalName(e,"fmtId")?.["@_val"],s=i!=null?parseInt(String(i),10):void 0;return {name:r,...s!==void 0&&Number.isFinite(s)?{formatId:s}:{}}}parseOfPieOptions(t){if(!t)return;let n=this.xmlLookupService.getChildByLocalName(t,"ofPieType")?.["@_val"],o={ofPieType:String(n??"pie").toLowerCase()==="bar"?"bar":"pie"},s=this.xmlLookupService.getChildByLocalName(t,"splitType")?.["@_val"];if(s!=null){let p=String(s);(p==="auto"||p==="cust"||p==="percent"||p==="pos"||p==="val")&&(o.splitType=p);}let a=ad(this.xmlLookupService.getChildByLocalName(t,"splitPos"));a!==void 0&&(o.splitPos=a);let l=ad(this.xmlLookupService.getChildByLocalName(t,"secondPieSize"));l!==void 0&&(o.secondPieSize=l);let c=ad(this.xmlLookupService.getChildByLocalName(t,"gapWidth"));c!==void 0&&(o.gapWidth=c),this.xmlLookupService.getChildrenArrayByLocalName(t,"serLines").length>0&&(o.serLines=true);let u=this.xmlLookupService.getChildByLocalName(t,"custSplit");if(u){let h=this.xmlLookupService.getChildrenArrayByLocalName(u,"secondPiePt").map(f=>ad(f)).filter(f=>f!==void 0&&Number.isFinite(f));h.length>0&&(o.custSplit=h);}return o}parseView3D(t){if(!t)return;let e=this.xmlLookupService.getChildByLocalName(t,"view3D");if(!e)return;let n={},r=ad(this.xmlLookupService.getChildByLocalName(e,"rotX"));r!==void 0&&(n.rotX=r);let o=ad(this.xmlLookupService.getChildByLocalName(e,"rotY"));o!==void 0&&(n.rotY=o);let i=ad(this.xmlLookupService.getChildByLocalName(e,"depthPercent"));i!==void 0&&(n.depthPercent=i);let s=ad(this.xmlLookupService.getChildByLocalName(e,"perspective"));s!==void 0&&(n.perspective=s);let a=ad(this.xmlLookupService.getChildByLocalName(e,"hPercent"));a!==void 0&&(n.hPercent=a);let l=LN(this.xmlLookupService.getChildByLocalName(e,"rAngAx"));return l!==void 0&&(n.rAngAx=l),Object.keys(n).length>0?n:void 0}parseChartChrome(t){if(!t)return;let e={},n=this.xmlLookupService.getChildByLocalName(t,"autoTitleDeleted"),r=LN(n);r!==void 0&&(e.autoTitleDeleted=r);let i=this.xmlLookupService.getChildByLocalName(t,"dispBlanksAs")?.["@_val"];if(i!=null){let l=String(i);(l==="gap"||l==="zero"||l==="span")&&(e.dispBlanksAs=l);}let s=this.xmlLookupService.getChildByLocalName(t,"showDLblsOverMax"),a=LN(s);return a!==void 0&&(e.showDLblsOverMax=a),Object.keys(e).length>0?e:void 0}parseUserShapesXml(t){return t?this.xmlLookupService.getChildByLocalName(t,"userShapes")??void 0:void 0}parsePivotFmtsXml(t){return t?this.xmlLookupService.getChildByLocalName(t,"pivotFmts")??void 0:void 0}parseClrMapOvr(t){if(!t)return;let e=this.xmlLookupService.getChildByLocalName(t,"clrMapOvr");if(!e)return;let n={};for(let[r,o]of Object.entries(e))r.startsWith("@_")&&o!=null&&(n[r.slice(2)]=String(o));return Object.keys(n).length>0?n:void 0}},QMe=class extends JMe{async parseChartExternalData(t,e){if(!t)return;let n=this.xmlLookupService.getChildByLocalName(t,"externalData");if(!n)return;let r=String(n["@_r:id"]||n["@_id"]||"").trim();if(r.length===0)return;let o=this.xmlLookupService.getChildByLocalName(n,"autoUpdate"),i=n["@_autoUpdate"],s=o?.["@_val"]==="1"||o?.["@_val"]==="true"||i==="1"||i==="true"||false,a;try{let c=e.substring(0,e.lastIndexOf("/")+1),d=e.substring(e.lastIndexOf("/")+1),u=`${c}_rels/${d}.rels`,p=await this.zip.file(u)?.async("string");if(p){let f=this.parser.parse(p)?.Relationships;if(f?.Relationship){let m=Array.isArray(f.Relationship)?f.Relationship:[f.Relationship];for(let g of m)if(String(g?.["@_Id"]||"")===r){a=String(g?.["@_Target"]||"").trim()||void 0;break}}}}catch{}let l;if(a)try{let c=this.resolveImagePath(e,a);if(c.includes("embeddings/")&&c.endsWith(".xlsx")){let d=await this.zip.file(c)?.async("uint8array");d&&(l=d);}}catch{}return {relId:r,targetPath:a,autoUpdate:s,...l?{embeddedWorkbookData:l}:{}}}async parseEmbeddedWorkbook(t){if(t?.embeddedWorkbookData)try{return await Pj(t.embeddedWorkbookData)}catch{return}}async readChartRels(t){try{let e=t.substring(0,t.lastIndexOf("/")+1),n=t.substring(t.lastIndexOf("/")+1),r=`${e}_rels/${n}.rels`,o=await this.zip.file(r)?.async("string");if(!o)return [];let s=this.parser.parse(o)?.Relationships;return s?.Relationship?(Array.isArray(s.Relationship)?s.Relationship:[s.Relationship]).filter(l=>!!l).map(l=>({id:String(l["@_Id"]||"").trim(),type:String(l["@_Type"]||"").trim(),target:String(l["@_Target"]||"").trim()})):[]}catch{return []}}},ePe=class extends QMe{async parseChartColorStyle(t){try{let n=(await this.readChartRels(t)).find(d=>d.type.includes("chartColorStyle")||d.type.includes("chartColor"));if(!n)return;let r=this.resolveImagePath(t,n.target),o=await this.zip.file(r)?.async("string");if(!o)return;let i=this.parser.parse(o),s=this.xmlLookupService.getChildByLocalName(i,"colorStyle")??i,a=String(s["@_meth"]||"cycle").trim(),l=a==="withinLinear"||a==="acrossLinear"?a:"cycle",c=[];return this.collectColorStylePalette(s,c),c.length===0?void 0:{palette:c,method:l}}catch{return}}collectColorStylePalette(t,e){if(t)for(let[n,r]of Object.entries(t)){if(n.startsWith("@_"))continue;let o=this.compatibilityService.getXmlLocalName(n);if(o==="schemeClr"){let i=Array.isArray(r)?r:[r];for(let s of i){let a=this.resolveChartSchemeColor(s);a&&e.push(a);}}else if(o==="srgbClr"){let i=Array.isArray(r)?r:[r];for(let s of i){let a=String(typeof s=="object"&&s!==null?s["@_val"]:s??"").trim();a.length>0&&e.push(a.startsWith("#")?a:`#${a}`);}}}}resolveChartSchemeColor(t){if(!t)return;let e;if(typeof t=="string")e=t;else if(typeof t=="object"&&t!==null)e=String(t["@_val"]||"").trim();else return;if(e.length===0)return;let n=this.themeColorMap[e];if(n)return n.startsWith("#")?n:`#${n}`}},tPe=class extends ePe{async getChartDataForGraphicFrame(t,e){let n=this.xmlLookupService.getChildByLocalName(this.xmlLookupService.getChildByLocalName(e,"graphic"),"graphicData"),r=this.xmlLookupService.getChildByLocalName(n,"chart"),o=String(r?.["@_r:id"]||"").trim();if(o.length===0)return;let i=await this.readXmlPartByRelationshipId(t,o);if(!i)return;let s=this.xmlLookupService.getChildByLocalName(i.xml,"chartSpace"),a=this.xmlLookupService.getChildByLocalName(s,"chart"),l=this.xmlLookupService.getChildByLocalName(a,"plotArea");if(!l)return;let c=this.detectChartType(l),d=Object.keys(l).filter(Z=>this.compatibilityService.getXmlLocalName(Z).endsWith("Chart")),u=d[0];if(!u)return this.parseCxChart(l,c,s,a,i.partPath,o);let p=l[u],{categories:h,series:f}=this.parseAllChartContainers(l,d,c);if(f.length===0)return;let m=this.xmlLookupService.getChildByLocalName(a,"title"),g=[];this.collectLocalTextValues(m,"t",g);let x=this.extractChartStyle(s,a),y,b=this.xmlLookupService.getChildByLocalName(p,"grouping");if(b?.["@_val"]){let Z=String(b["@_val"]).trim();Z==="stacked"?y="stacked":Z==="percentStacked"?y="percentStacked":y="clustered";}let v=i.partPath,S=bj(l,this.xmlLookupService),w={parseColor:(Z,de)=>this.parseColor(Z,de)},C=n5(p,"dropLines",this.xmlLookupService,w),T=n5(p,"hiLowLines",this.xmlLookupService,w),M=Tj(l,this.xmlLookupService,w,Z=>this.compatibilityService.getXmlLocalName(Z)),P=a?Cj(a,this.xmlLookupService,w):{},_=this.parsePlotVisOnly(a),A=await this.parseChartExternalData(s,i.partPath),R=await this.parseEmbeddedWorkbook(A),I=h,E=f;R&&(I.length===0&&R.categories.length>0&&(I=R.categories),E.every(de=>de.values.length===0)&&R.series.length>0&&(E=E.map((de,j)=>{let ne=R.series[j];return ne&&ne.values.length>0?{...de,values:ne.values}:de})));let N=this.parsePivotSource(s),k=await this.parseChartColorStyle(v),L=c==="ofPie"?this.parseOfPieOptions(p):void 0,F=this.parseView3D(a),U=this.parseChartChrome(a),G=this.parseUserShapesXml(s),$=this.parsePivotFmtsXml(a),J=this.parseClrMapOvr(s);return {chartType:c,categories:I,series:E,title:g[0],style:x,grouping:y,chartPartPath:v,chartRelationshipId:o,...S?{dataTable:S}:{},...C?{dropLines:C}:{},...T?{hiLowLines:T}:{},...M.length>0?{axes:M}:{},...P.floor?{floor:P.floor}:{},...P.sideWall?{sideWall:P.sideWall}:{},...P.backWall?{backWall:P.backWall}:{},...A?{externalData:A}:{},...R?{embeddedWorkbookData:R}:{},..._!==void 0?{plotVisibleOnly:_}:{},...N?{pivotSource:N}:{},...k?.palette?{colorPalette:k.palette}:{},...k?.method?{colorMethod:k.method}:{},...L?{ofPieOptions:L}:{},...F?{view3D:F}:{},...U?{chartChrome:U}:{},...G?{userShapesXml:G}:{},...$?{pivotFmtsXml:$}:{},...J?{clrMapOvr:J}:{}}}parseAllChartContainers(t,e,n){let r=n==="combo",o=[],i=[];for(let s of e){let a=t[s],l=this.xmlLookupService.getChildrenArrayByLocalName(a,"ser");if(l.length===0)continue;if(o.length===0){let d=this.extractChartPointValues(this.xmlLookupService.getChildByLocalName(l[0],"cat"),false);o=d.length?d:this.extractChartPointValues(this.xmlLookupService.getChildByLocalName(l[0],"xVal"),false);}let c=r?Ive(this.compatibilityService.getXmlLocalName(s)):void 0;i.push(...this.buildChartSeries(l,o,c));}return {categories:o,series:i}}buildChartSeries(t,e,n){return t.map((r,o)=>{let i=this.extractChartSeriesName(r),s=this.extractChartPointValues(this.xmlLookupService.getChildByLocalName(r,"val")||this.xmlLookupService.getChildByLocalName(r,"yVal"),true).map(x=>Number.parseFloat(x)).filter(x=>Number.isFinite(x)),a=this.xmlLookupService.getChildByLocalName(r,"spPr"),l=this.parseColor(this.xmlLookupService.getChildByLocalName(a,"solidFill")),c=s.length>0?s:e.map((x,y)=>y+1+o),d={parseColor:(x,y)=>this.parseColor(x,y)},u=xj(r,this.xmlLookupService,d),p=yj(r,this.xmlLookupService,this.extractChartPointValues.bind(this)),h=vj(r,this.xmlLookupService,d),f=xD(this.xmlLookupService.getChildByLocalName(r,"marker"),this.xmlLookupService,d),m=Sj(r,this.xmlLookupService),g=wj(r,this.xmlLookupService);return {name:i.trim().length>0?i:`Series ${o+1}`,values:c,color:l,...u.length>0?{trendlines:u}:{},...p.length>0?{errBars:p}:{},...h.length>0?{dataPoints:h}:{},...f?{marker:f}:{},...m.length>0?{dataLabels:m}:{},...g!==void 0?{explosion:g}:{},...n?{seriesChartType:n}:{}}})}async parseCxChart(t,e,n,r,o,i){let s=Mj(t,this.xmlLookupService);if(!s)return;let a=this.xmlLookupService.getChildByLocalName(r,"title"),l=[];this.collectLocalTextValues(a,"t",l);let c=this.extractChartStyle(n,r);s.hasDataLabels&&c&&(c.hasDataLabels=true);let d=this.parsePlotVisOnly(r),u=await this.parseChartExternalData(n,o),p=await this.parseEmbeddedWorkbook(u),h=this.parsePivotSource(n),f=await this.parseChartColorStyle(o),m=this.parseView3D(r),g=this.parseChartChrome(r),x=this.parseUserShapesXml(n),y=this.parsePivotFmtsXml(r),b=this.parseClrMapOvr(n);return {chartType:e,categories:s.categories,series:s.series,title:l[0],style:c,chartPartPath:o,chartRelationshipId:i,...u?{externalData:u}:{},...p?{embeddedWorkbookData:p}:{},...d!==void 0?{plotVisibleOnly:d}:{},...h?{pivotSource:h}:{},...f?.palette?{colorPalette:f.palette}:{},...f?.method?{colorMethod:f.method}:{},...m?{view3D:m}:{},...g?{chartChrome:g}:{},...x?{userShapesXml:x}:{},...y?{pivotFmtsXml:y}:{},...b?{clrMapOvr:b}:{}}}},nPe=class extends tPe{parseEditorAnimations(t){return this.editorAnimationService.parseEditorAnimations(t)}parseSlideTransition(t,e){let n=this.slideTransitionService.parseSlideTransition(t);if(!n||!e)return n;let o=n.rawSoundAction?.["p:stSnd"],i=String(o?.["@_r:embed"]||o?.["@_r:link"]||"").trim();if(i.length===0)return n;n.soundRId=i;let a=this.slideRelsMap.get(e)?.get(i);if(a){let l=this.resolveImagePath(e,a);n.soundPath=l,n.soundFileName=l.split("/").pop()||l;}return n}extractSectionMap(){let t=new Map,e=[],n=this.presentationData?.["p:presentation"],r=this.xmlLookupService.getChildByLocalName(n,"sectionLst");if(!r){let i=this.xmlLookupService.getChildByLocalName(n,"extLst");if(i){let s=this.xmlLookupService.getChildrenArrayByLocalName(i,"ext");for(let a of s){if(!a)continue;let l=this.xmlLookupService.getChildByLocalName(a,"sectionLst");if(l){r=l;break}}}}return this.ensureArray(r?this.xmlLookupService.getChildrenArrayByLocalName(r,"section"):[]).forEach((i,s)=>{let a=String(i?.["@_id"]||`section-${s+1}`),l=String(i?.["@_name"]||"").trim(),c=l.length>0?l:`Section ${s+1}`,d=this.xmlLookupService.getChildByLocalName(i,"sldIdLst"),u=d?this.xmlLookupService.getChildrenArrayByLocalName(d,"sldId"):[],p=[];u.forEach(g=>{let x=String(g?.["@_id"]||"").trim();x.length!==0&&(p.push(x),t.set(x,{sectionId:a,sectionName:c}));});let h=this.xmlLookupService.getChildByLocalName(i,"sectionPr"),f,m;if(h){let g=String(h["@_collapsed"]??"").trim().toLowerCase();(g==="1"||g==="true")&&(f=true);let x=String(h["@_clr"]??"").trim();x.length>0&&(m=x.startsWith("#")?x:`#${x}`);}e.push({id:a,name:c,slideIds:p,collapsed:f,color:m});}),{sectionBySlideId:t,orderedSections:e}}extractHeaderFooter(){let t=this.presentationData?.["p:presentation"];if(!t)return;let e=t["p:hf"];if(!e)return;let n={};e["@_hdr"]!==void 0&&(n.hasHeader=String(e["@_hdr"])!=="0"),e["@_ftr"]!==void 0&&(n.hasFooter=String(e["@_ftr"])!=="0"),e["@_dt"]!==void 0&&(n.hasDateTime=String(e["@_dt"])!=="0"),e["@_sldNum"]!==void 0&&(n.hasSlideNumber=String(e["@_sldNum"])!=="0");let r=e["@_ftrText"];r&&(n.footerText=String(r));let o=e["@_dtText"];o&&(n.dateTimeText=String(o));let i=e["@_dtFmt"];return i&&(n.dateFormat=String(i),n.dateTimeAuto=true),n}extractPhotoAlbum(){let t=this.presentationData?.["p:presentation"];if(!t)return;let e=t["p:photoAlbum"];if(!e)return;let n={},r=false,o=e["@_bw"];o!==void 0&&(n.bw=String(o)==="1"||String(o)==="true",r=true);let i=e["@_showCaptions"];i!==void 0&&(n.showCaptions=String(i)==="1"||String(i)==="true",r=true);let s=e["@_layout"];if(s!==void 0){let l=String(s).trim();l.length>0&&(n.layout=l,r=true);}let a=e["@_frame"];if(a!==void 0){let l=String(a).trim();l.length>0&&(n.frame=l,r=true);}return r?n:{}}extractModifyVerifier(){let t=this.presentationData?.["p:presentation"];if(!t)return;let e=t["p:modifyVerifier"];if(!e)return;let n={},r=e["@_algorithmName"]??e["@_algIdExt"];r!==void 0&&(n.algorithmName=String(r));let o=e["@_hashData"];o!==void 0&&(n.hashData=String(o));let i=e["@_saltData"];i!==void 0&&(n.saltData=String(i));let s=e["@_spinValue"]??e["@_spinCount"];if(s!==void 0){let h=parseInt(String(s),10);Number.isFinite(h)&&(n.spinValue=h);}let a=e["@_algIdExt"];a!==void 0&&(n.algIdExt=String(a));let l=e["@_cryptAlgorithmSid"];if(l!==void 0){let h=parseInt(String(l),10);Number.isFinite(h)&&(n.cryptAlgorithmSid=h);}let c=e["@_cryptAlgorithmType"];c!==void 0&&(n.cryptAlgorithmType=String(c));let d=e["@_cryptProvider"];d!==void 0&&(n.cryptProvider=String(d));let u=e["@_cryptProviderType"];u!==void 0&&(n.cryptProviderType=String(u));let p=e["@_cryptAlgorithmClass"];return p!==void 0&&(n.cryptAlgorithmClass=String(p)),n}extractKinsoku(){return BW(this.presentationData??void 0)}},rPe=class extends nPe{async getEmbeddedFonts(){let t=this.ensureArray(It(this.presentationData,"p:presentation","p:embeddedFontLst")?.["p:embeddedFont"]);if(t.length===0)return [];let e=await this.loadPresentationFontRels();if(e.size===0)return [];let n=[];for(let r of t){let o=(Gt(ut(r,"p:font"),"typeface")||"").trim();if(!o)continue;let i=[{key:"p:regular",bold:false,italic:false},{key:"p:bold",bold:true,italic:false},{key:"p:italic",bold:false,italic:true},{key:"p:boldItalic",bold:true,italic:true}];for(let s of i){let a=r?.[s.key];if(!a)continue;let l=String(a["@_r:id"]||"").trim();if(!l)continue;let c=String(a["@_fontKey"]||"").trim()||void 0,d=await this.extractEmbeddedFontVariant(o,l,s.bold,s.italic,e,c);d&&n.push(d);}}return n}async loadPresentationFontRels(){let t=new Map;try{let e=await this.zip.file("ppt/_rels/presentation.xml.rels")?.async("string");if(!e)return t;let n=this.parser.parse(e),r=this.ensureArray(ut(n,"Relationships")?.Relationship);for(let o of r){if(!String(o?.["@_Type"]||"").includes("/font"))continue;let s=String(o?.["@_Id"]||""),a=String(o?.["@_Target"]||"");s&&a&&t.set(s,a.startsWith("/")?a.substring(1):`ppt/${a}`);}}catch{}return t}async extractEmbeddedFontVariant(t,e,n,r,o,i){let s=o.get(e);if(!s)return null;try{let a=await this.zip.file(s)?.async("uint8array");if(!a||a.length===0)return null;let l=new Uint8Array(a),c,d;if(hj(a)){let C=bve(a);if(C)c=C.fontData;else {let T=fj(a);return console.info(`[pptx-viewer] Embedded font "${t}" uses EOT format${T?.isCompressed?" with MTX compression":""} \u2014 extraction failed, will use web font fallback`),null}}else {let C=i?QN(i)??i.replace(/[{}]/g,"").trim():null,T=QN(s),M=C||T;if(M)c=oM(a,M),d=M;else return console.warn(`[pptx-viewer] Embedded font "${t}" at "${s}" has no fontKey attribute and no GUID in filename \u2014 skipping`),null}if(c.length<4)return null;let u=c[0],p=c[1],h=c[2],f=c[3];if(!(u===0&&p===1&&h===0&&f===0||u===79&&p===84&&h===84&&f===79||u===116&&p===116&&h===99&&f===102||u===119&&p===79&&h===70&&(f===70||f===50)))return console.warn(`[pptx-viewer] Embedded font "${t}" has invalid sfnt header [${u.toString(16)},${p.toString(16)},${h.toString(16)},${f.toString(16)}] after processing \u2014 skipping (web font fallback will be used)`),null;let b=gD(c),v=b==="woff2"?"font/woff2":b==="woff"?"font/woff":b==="opentype"?"font/otf":"font/ttf",S=this.uint8ArrayToBase64(c),w=`data:${v};base64,${S}`;return {name:t,dataUrl:w,bold:n,italic:r,format:b,rawFontData:c,partPath:s,fontGuid:d,originalRId:e,originalPartBytes:l}}catch{return null}}uint8ArrayToBase64(t){let e="";for(let r=0;r<t.length;r+=8192){let o=t.subarray(r,Math.min(r+8192,t.length));for(let i=0;i<o.length;i++)e+=String.fromCharCode(o[i]);}return btoa(e)}getLayoutOptions(){let t=[];for(let[e,n]of this.layoutXmlMap.entries()){let r=n["p:sldLayout"],o=(Gt(ut(r,"p:cSld"),"name")||"").trim(),i=r?.["@_type"]!==void 0?String(r["@_type"]).trim():void 0,s=mD({name:o,type:i,path:e}),a=this.resolveMasterPathForLayout(e);t.push({path:e,name:s,...i?{type:i}:{},...a?{masterPath:a}:{}});}return t}resolveMasterPathForLayout(t){let e=this.slideRelsMap.get(t);if(e){for(let[,n]of e.entries())if(n.includes("slideMaster")){let r=t.substring(0,t.lastIndexOf("/")+1);if(n.startsWith("..")){let o=(r+n).split("/"),i=[];for(let s of o)s===".."?i.pop():s&&s!=="."&&i.push(s);return i.join("/")}return `ppt/${n.replace("../","")}`}}}},oPe=25*1024*1024,iPe=class k5 extends rPe{isZipContainer(e){let n=new Uint8Array(e);return n.byteLength<4?false:n[0]===80&&n[1]===75&&(n[2]===3&&n[3]===4||n[2]===5&&n[3]===6||n[2]===7&&n[3]===8)}async initializeLoadSession(e,n){if(this.eagerDecodeImages=n.eagerDecodeImages??false,this.allowExternalImages=n.allowExternalImages===true,e.byteLength<4)throw new Error("Invalid PPTX binary: file is empty or truncated.");if(!this.isZipContainer(e))throw new Error("Invalid PPTX binary: not a ZIP/OpenXML file. Legacy .ppt is not supported.");try{this.zip=await rf.loadAsync(e),this.documentPropertiesUpdater=this.dependencyFactory.createDocumentPropertiesUpdater(this.zip,this.parser,this.builder);}catch(s){let a=s instanceof Error?s.message:"Unable to read zip container.";throw new Error(`Invalid PPTX package: ${a}`,{cause:s})}let r=typeof n.maxUncompressedBytes=="number"&&n.maxUncompressedBytes>0?n.maxUncompressedBytes:pj,o=0,i=0;for(let s of Object.keys(this.zip.files)){if(i+=1,i>_2)throw new ZN(`PPTX archive contains more than ${_2} entries \u2014 refusing to load.`,{limit:_2,entryCount:i});let a=this.zip.files[s],l=Number(a?._data?.uncompressedSize??0);if(Number.isFinite(l)&&l>0&&(o+=l,o>r))throw new ZN(`PPTX archive uncompressed size exceeds ${r} bytes (zip-bomb guard).`,{uncompressedBytes:o,limit:r})}if(this.slideRelsMap.clear(),this.externalRelsMap.clear(),this.slideMap.clear(),this.layoutCache.clear(),this.masterCache.clear(),this.layoutXmlMap.clear(),this.masterXmlMap.clear(),typeof globalThis.URL?.revokeObjectURL=="function"&&this.blobUrlCache.size>0){for(let s of this.blobUrlCache)URL.revokeObjectURL(s);this.blobUrlCache.clear();}this.imageDataCache.clear(),this.themeColorMap={},this.themeFontMap={},this.masterClrMaps.clear(),this.masterThemeColorMaps.clear(),this.masterThemeFontMaps.clear(),this.masterThemeFormatSchemes.clear(),this.masterThemePaths.clear(),this.masterThemeMajorFontScripts.clear(),this.masterThemeMinorFontScripts.clear(),this.masterThemeNames.clear(),this.masterThemeFontSchemeNames.clear(),this.masterThemeColorSchemeNames.clear(),this.originalThemeXmlByPath.clear(),this.dirtyThemePaths.clear(),this.masterThemeObjectDefaults.clear(),this.masterThemeExtraClrSchemeLst.clear(),this.masterThemeCustClrLst.clear(),this.masterThemeExtLst.clear(),this.currentMasterClrMap=null,this.presentationDefaultTextStyle=void 0,this.commentAuthorMap.clear(),this.commentAuthorDetails.clear(),this.thumbnailData=null,this.vbaProjectBin=null,this.vbaRelatedParts.clear(),this.signatureDetection=null,this.customXmlParts=[],this.loadedEmbeddedFonts=[],this.isStrictOoxml=false,this.restoreOriginalParser(),this.compatibilityService.resetWarnings();}async detectAndPreserveVbaProject(){let e=this.zip.file("ppt/vbaProject.bin");if(!e)return;this.vbaProjectBin=await e.async("uint8array");let n=["ppt/vbaData.xml","ppt/_rels/vbaProject.bin.rels"];for(let r of n){let o=this.zip.file(r);if(o){let i=await o.async("uint8array");this.vbaRelatedParts.set(r,i);}}}detectDigitalSignatureParts(){let e=[];this.zip.forEach(n=>{e.push(n);}),this.signatureDetection=dj(e);}async parseCustomXmlParts(){let e=[],n=/^customXml\/item(?<index>\d+)\.xml$/iu,r=[];this.zip.forEach(o=>{r.push(o);});for(let o of r){let i=o.match(n);if(!i)continue;let s=i[1],a=this.zip.file(o);if(!a)continue;let l=await a.async("string"),c=`customXml/itemProps${s}.xml`,d=this.zip.file(c),u,p;if(d){u=await d.async("string");try{let x=this.parser.parse(u)?.["ds:datastoreItem"]?.["ds:schemaRefs"]?.["ds:schemaRef"];if(x){let b=(Array.isArray(x)?x:[x])[0];b?.["@_ds:uri"]?p=String(b["@_ds:uri"]):b?.["@_uri"]&&(p=String(b["@_uri"]));}}catch{}}let h=`customXml/_rels/item${s}.xml.rels`,f=this.zip.file(h),m;f&&(m=await f.async("string")),e.push({id:s,data:l,schemaUri:p,properties:u,rels:m});}this.customXmlParts=e;}async loadPresentationState(){let e=await this.zip.file("ppt/presentation.xml")?.async("string");if(!e)throw new Error("Invalid PPTX: presentation.xml not found");this.presentationData=this.parser.parse(e),this.detectAndSetStrictConformance(this.presentationData),await this.loadThemeData(),this.parsePresentationDefaultTextStyle(),await this.loadCommentAuthors();let{sectionBySlideId:n,orderedSections:r}=this.extractSectionMap();this.compatibilityService.inspectPresentationCompatibility();let o=this.presentationData?.["p:presentation"],i=o?.["p:sldSz"]||{};this.rawSlideWidthEmu=parseInt(String(i["@_cx"]))||0,this.rawSlideHeightEmu=parseInt(String(i["@_cy"]))||0;let s=i["@_type"];s&&(this.rawSlideSizeType=s);let a=o?.["p:notesSz"]||{},l=parseInt(String(a["@_cx"]))||0,c=parseInt(String(a["@_cy"]))||0,d=Math.round(this.rawSlideWidthEmu/k5.EMU_PER_PX),u=Math.round(this.rawSlideHeightEmu/k5.EMU_PER_PX);return {width:d,height:u,notesWidthEmu:l,notesHeightEmu:c,sectionBySlideId:n,orderedSections:r}}async enrichOleElementsWithEmbeddedData(e,n,r=0){if(!(r>32))for(let i of e){if(i.type==="group"&&i.children){await this.enrichOleElementsWithEmbeddedData(i.children,n,r+1);continue}if(!(i.type!=="ole"||i.isLinked||!i.oleTarget))try{let s=this.resolveImagePath(n,i.oleTarget);if(!s)continue;let a=this.zip.file(s);if(!a)continue;let l=await a.async("arraybuffer");if(l.byteLength===0||l.byteLength>oPe)continue;let c=ij(new Uint8Array(l));if(c.data.length===0)continue;let d=c.fileName??i.fileName??(i.oleName&&i.oleFileExtension?`${i.oleName}.${i.oleFileExtension}`:void 0),u=dX(d??`x.${i.oleFileExtension??"bin"}`);i.oleEmbeddedData=nj(c.data,u),i.oleEmbeddedByteSize=c.data.length,i.oleEmbeddedMimeType=u,d&&(i.oleEmbeddedFileName=d);}catch{}}}async loadSlidesForPresentation(e){return this.presentationData?this.slideLoaderService.loadSlides({presentationData:this.presentationData,parser:this.parser,zip:this.zip,compatibilityService:this.compatibilityService,slideMap:this.slideMap,sectionBySlideId:e,setOrderedSlidePaths:n=>{this.orderedSlidePaths=n;},loadSlideRelationships:(n,r)=>this.loadSlideRelationships(n,r),parseSlideClrMapOverride:n=>this.parseSlideClrMapOverride(n),setCurrentSlideClrMapOverride:n=>{this.currentSlideClrMapOverride=n;},setActiveMasterForSlide:n=>this.setActiveMasterForSlide(n),findLayoutPathForSlide:n=>this.findLayoutPathForSlide(n),loadThemeOverride:n=>this.loadThemeOverride(n),applyThemeOverrideState:n=>this.applyThemeOverrideState(n),getLayoutElements:n=>this.getLayoutElements(n),parseSlide:(n,r)=>this.parseSlide(n,r),extractMediaTimingMap:(n,r)=>this.extractMediaTimingMap(n,r),enrichMediaElementsWithTiming:(n,r)=>this.enrichMediaElementsWithTiming(n,r),enrichOleElementsWithEmbeddedData:(n,r)=>this.enrichOleElementsWithEmbeddedData(n,r),extractBackgroundColor:n=>this.extractBackgroundColor(n),getLayoutBackgroundColor:n=>this.getLayoutBackgroundColor(n),extractBackgroundGradient:n=>this.extractBackgroundGradient(n),getLayoutBackgroundGradient:n=>this.getLayoutBackgroundGradient(n),extractBackgroundImage:(n,r)=>this.extractBackgroundImage(n,r),getLayoutBackgroundImage:n=>this.getLayoutBackgroundImage(n),extractSlideNotes:n=>this.extractSlideNotes(n),extractSlideComments:n=>this.extractSlideComments(n),extractModernSlideComments:n=>this.extractModernSlideComments(n),extractBackgroundPattern:n=>this.extractBackgroundPattern(n),extractBackgroundShadeToTitle:n=>this.extractBackgroundShadeToTitle(n),extractBackgroundShowAnimation:n=>this.extractBackgroundShowAnimation(n),extractShowMasterShapes:n=>this.extractShowMasterShapes(n),isSlideHidden:(n,r)=>this.isSlideHidden(n,r),parseSlideTransition:(n,r)=>this.parseSlideTransition(n,r),parseEditorAnimations:n=>this.parseEditorAnimations(n),parseNativeAnimations:n=>this.parseNativeAnimations(n),getSmartArtDataForGraphicFrame:(n,r)=>this.getSmartArtDataForGraphicFrame(n,r),getChartDataForGraphicFrame:(n,r)=>this.getChartDataForGraphicFrame(n,r),parseSlideCustomerData:(n,r)=>this.parseSlideCustomerData(n,r),parseSlideActiveXControls:n=>this.parseSlideActiveXControls(n)}):[]}},sPe=class extends iPe{async buildLoadData(t,e){let n=this.extractHeaderFooter(),r=await this.parsePresentationProperties(),o=this.parseCustomShows(),i=await this.parseTableStyles(),s=await this.getEmbeddedFonts();this.loadedEmbeddedFonts=s;let a=await this.parseThemeOptions(),l=await this.parseNotesMaster(),c=await this.parseHandoutMaster(),d=await this.parseSlideMasters();await this.enrichSlideMastersWithTxStyles(d);let u=await this.parseTags(),p=await this.parseCustomProperties(),h=await this.parseCoreProperties(),f=await this.parseAppProperties(),m=this.presentationData?_X(this.presentationData):[],g=this.extractPhotoAlbum(),x=this.extractModifyVerifier(),y=this.extractKinsoku(),b=await this.parsePresentationCustomerData();return this.thumbnailData=await this.parseThumbnail()??null,new hX().withDimensions(t.width,t.height,this.rawSlideWidthEmu,this.rawSlideHeightEmu).withNotesDimensions(t.notesWidthEmu,t.notesHeightEmu).withSlides(e).withLayoutOptions(this.getLayoutOptions()).withHeaderFooter(n).withPresentationProperties(r).withCustomShows(o).withSections(t.orderedSections.length>0?t.orderedSections:void 0).withWarnings(this.compatibilityService.getWarnings()).withThemeColorMap({...this.themeColorMap}).withTheme(this.buildThemeObject()).withThemeOptions(a.length>0?a:void 0).withTableStyleMap(i).withEmbeddedFonts(s.length>0?s:void 0).withMruColors(r?.mruColors).withNotesMaster(l).withHandoutMaster(c).withSlideMasters(d.length>0?d:void 0).withTags(u.length>0?u:void 0).withCustomProperties(p.length>0?p:void 0).withCoreProperties(h).withAppProperties(f).withHasMacros(this.vbaProjectBin!==null?true:void 0).withHasDigitalSignatures(this.signatureDetection?.hasSignatures||void 0).withDigitalSignatureCount(this.signatureDetection?.signatureCount&&this.signatureDetection.signatureCount>0?this.signatureDetection.signatureCount:void 0).withPresentationGuides(m.length>0?m:void 0).withPhotoAlbum(g).withKinsoku(y).withModifyVerifier(x).withCustomXmlParts(this.customXmlParts.length>0?this.customXmlParts:void 0).withCustomerData(b.length>0?b:void 0).withSlideSizeType(this.rawSlideSizeType).withThumbnailData(this.thumbnailData??void 0).withCommentAuthors(this.commentAuthorDetails.size>0?Array.from(this.commentAuthorDetails.values()):void 0).withConformance(this.isStrictOoxml?"strict":"transitional").build()}findMaxElementId(t){let n=0,r=[];for(let i of t)r.push(i.rawXml);let o=0;for(;r.length>0&&!(o++>1e6);){let i=r.pop();if(i==null||typeof i!="object")continue;if(Array.isArray(i)){for(let a of i)a!=null&&typeof a=="object"&&r.push(a);continue}let s=i;if("@_id"in s){let a=parseInt(String(s["@_id"]),10);Number.isFinite(a)&&a>n&&(n=a);}for(let a of Object.values(s))a!=null&&(Array.isArray(a)||typeof a=="object")&&r.push(a);}return n}resetElementIdCounter(t){let e=this.findMaxElementId(t);this.elementXmlBuilder.resetIdCounter(e+1);}attachSlideWarnings(t){let e=this.compatibilityService.getWarnings();return t.map(n=>({...n,warnings:e.filter(r=>r.slideId===n.id)}))}revokeBlobUrls(){if(typeof globalThis.URL?.revokeObjectURL=="function"&&this.blobUrlCache.size>0){for(let t of this.blobUrlCache)URL.revokeObjectURL(t);this.blobUrlCache.clear();}}dispose(){this.revokeBlobUrls(),this.imageDataCache.clear(),this.slideMap.clear(),this.slideRelsMap.clear(),this.externalRelsMap.clear(),this.layoutCache.clear(),this.masterCache.clear(),this.layoutXmlMap.clear(),this.masterXmlMap.clear(),this.layoutPlaceholderDefaultsCache.clear(),this.masterPlaceholderDefaultsCache.clear(),this.themeOverrideCache.clear(),this.commentAuthorMap.clear(),this.commentAuthorDetails.clear(),this.vbaRelatedParts.clear(),this.presentationData=null,this.thumbnailData=null,this.vbaProjectBin=null,this.customXmlParts=[],this.loadedEmbeddedFonts=[],this.orderedSlidePaths=[],this.zip=null;}async load(t,e={}){await this.initializeLoadSession(t,e),await this.detectAndPreserveVbaProject(),this.detectDigitalSignatureParts(),await this.parseCustomXmlParts();let n=await this.loadPresentationState(),r=await this.loadSlidesForPresentation(n.sectionBySlideId),o=this.attachSlideWarnings(r);return this.resetElementIdCounter(r),this.buildLoadData(n,o)}getTemplateBackgroundColor(t){return this.templateBackgroundService.getBackgroundColor({layoutXmlMap:this.layoutXmlMap,masterXmlMap:this.masterXmlMap},t,(e,n)=>this.extractBackgroundColor(e,n))}setTemplateBackground(t,e){this.templateBackgroundService.setBackground({layoutXmlMap:this.layoutXmlMap,masterXmlMap:this.masterXmlMap},t,e);}createXmlBuilder(t){return new fD(t)}Builder(t){return this.createXmlBuilder(t)}getCompatibilityWarnings(){return this.compatibilityService.getWarnings()}findMasterPathForLayout(t){let e=this.slideRelsMap.get(t);if(e){for(let[,n]of e.entries())if(n.includes("slideMaster")){let r=t.substring(0,t.lastIndexOf("/")+1);return n.startsWith("..")?this.resolvePath(r,n):`ppt/${n.replace("../","")}`}}}findMasterPathForSlide(t){let e=this.findLayoutPathForSlide(t);if(e)return this.findMasterPathForLayout(e)}async getTemplateElementsForSlide(t){return this.getLayoutElements(t)}async getAvailableLayoutsForSlide(t,e){let n=e[t];if(!n)return [];let r=n.id,o=this.findMasterPathForSlide(r);if(!o)return this.getLayoutOptions();let i=this.slideRelsMap.get(o);if(!i)return this.getLayoutOptions();let s=new Set;for(let[,l]of i.entries())if(l.includes("slideLayout")){let c=o.substring(0,o.lastIndexOf("/")+1),d=l.startsWith("..")?this.resolvePath(c,l):`ppt/${l.replace("../","")}`;s.add(d);}let a=[];for(let l of s){let c=this.layoutXmlMap.get(l);if(c)a.push(this.buildLayoutOption(l,c));else try{let d=await this.zip.file(l)?.async("string");if(d){let u=this.parser.parse(d);this.layoutXmlMap.set(l,u),a.push(this.buildLayoutOption(l,u));}}catch{}}return a}buildLayoutOption(t,e){let n=e["p:sldLayout"],r=String(n?.["p:cSld"]?.["@_name"]||"").trim(),o=n?.["@_type"],i=o!=null?String(o).trim():void 0,s=mD({name:r,type:i,path:t}),a=this.findMasterPathForLayout(t);return {path:t,name:s,...i?{type:i}:{},...a?{masterPath:a}:{}}}async applyLayoutToSlide(t,e,n){let r=n[t];if(!r)throw new Error(`Slide index ${t} out of range`);let o=this.layoutXmlMap.get(e);if(!o){let h=await this.zip.file(e)?.async("string");if(!h)throw new Error(`Layout not found: ${e}`);o=this.parser.parse(h),this.layoutXmlMap.set(e,o);}let i=r.id,s=`${i.replace("slides/","slides/_rels/")}.rels`,a=await this.zip.file(s)?.async("string");if(a){let h=this.parser.parse(a),f=Array.isArray(h?.Relationships?.Relationship)?h.Relationships.Relationship:h?.Relationships?.Relationship?[h.Relationships.Relationship]:[],m=`../slideLayouts/${e.split("/").pop()}`,g=false;for(let b of f)if(String(b["@_Type"]||"").includes("/slideLayout")){b["@_Target"]=m,g=true;break}if(!g){let b=f.reduce((v,S)=>{let w=parseInt(String(S["@_Id"]||"rId0").replace("rId",""),10);return Number.isFinite(w)&&w>v?w:v},0);f.push({"@_Id":`rId${b+1}`,"@_Type":"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout","@_Target":m});}h.Relationships.Relationship=f.length===1?f[0]:f;let x=this.builder.build(h);this.zip.file(s,x);let y=this.slideRelsMap.get(i);if(y){for(let[b,v]of y.entries())if(v.includes("slideLayout")){y.set(b,m);break}}}this.layoutCache.delete(e);let l=this.remapElementsToNewLayout(r.elements,o,e),c=o["p:sldLayout"],d=String(c?.["p:cSld"]?.["@_name"]||"").trim()||e,u=this.extractBackgroundColor(o,"p:sldLayout"),p={...r,elements:l,layoutPath:e,layoutName:d,isDirty:true};return (!r.rawXml||!this.extractBackgroundColor(r.rawXml))&&u&&(p.backgroundColor=u),n[t]=p,p}},aPe=class dd extends sPe{constructor(e=new KX){super(),this.dependencyFactory=e,this.zip=new rf,this.parser=this.dependencyFactory.createParser(),this.builder=this.dependencyFactory.createBuilder(),this.elementXmlBuilder=new FW({emuPerPx:dd.EMU_PER_PX,toDrawingTextVerticalAlign:o=>this.textVerticalAlignToDrawingValue(o)}),this.contentTypesBuilder=new OW,this.elementTransformUpdater=new GW,this.presentationSaveBuilder=new $W,this.presentationSlidesReconciler=new HW,this.slideBackgroundBuilder=new qW,this.slideCommentPartWriter=new VW,this.slideMediaRelationshipBuilder=new WW,this.slideNotesPartUpdater=new XW,this.colorStyleCodec=new nX({emuPerPx:dd.EMU_PER_PX,ensureArray:o=>this.ensureArray(o),resolveThemeColor:o=>this.resolveThemeColor(o)}),this.connectorParser=new pX({emuPerPx:dd.EMU_PER_PX,getOrderedSlidePaths:()=>this.orderedSlidePaths,slideRelsMap:this.slideRelsMap,parseGeometryAdjustments:o=>this.parseGeometryAdjustments(o),readFlipState:o=>this.readFlipState(o),extractShapeStyle:(o,i)=>this.extractShapeStyle(o,i),parseShapeLocks:o=>this.parseShapeLocks(o),parseElementActions:(o,i,s)=>this.parseElementActions(o,i,s),parseConnectorTextBody:(o,i)=>this.parseConnectorTextBody(o,i)}),this.shapeStyleExtractor=new iX({emuPerPx:dd.EMU_PER_PX,parseColor:(o,i)=>this.parseColor(o,i),extractColorOpacity:o=>this.extractColorOpacity(o),extractGradientFillColor:o=>this.extractGradientFillColor(o),extractGradientOpacity:o=>this.extractGradientOpacity(o),extractGradientFillCss:o=>this.extractGradientFillCss(o),extractGradientStops:o=>this.extractGradientStops(o),extractGradientAngle:o=>this.extractGradientAngle(o),extractGradientType:o=>this.extractGradientType(o),extractGradientPathType:o=>this.colorStyleCodec.extractGradientPathType(o),extractGradientFocalPoint:o=>this.colorStyleCodec.extractGradientFocalPoint(o),extractGradientFillToRect:o=>this.colorStyleCodec.extractGradientFillToRect(o),extractGradientFlip:o=>this.colorStyleCodec.extractGradientFlip(o),extractGradientRotWithShape:o=>this.colorStyleCodec.extractGradientRotWithShape(o),extractGradientScaled:o=>this.colorStyleCodec.extractGradientScaled(o),normalizeStrokeDashType:o=>this.normalizeStrokeDashType(o),normalizeConnectorArrowType:o=>this.normalizeConnectorArrowType(o),ensureArray:o=>this.ensureArray(o),resolveThemeFillRef:(o,i)=>this.resolveThemeFillRef(o,i),resolveThemeLineRef:(o,i)=>this.resolveThemeLineRef(o,i),resolveThemeEffectRef:(o,i)=>this.resolveThemeEffectRef(o,i),extractShadowStyle:o=>this.extractShadowStyle(o),extractInnerShadowStyle:o=>this.extractInnerShadowStyle(o),extractGlowStyle:o=>this.extractGlowStyle(o),extractSoftEdgeStyle:o=>this.extractSoftEdgeStyle(o),extractReflectionStyle:o=>this.extractReflectionStyle(o),extractBlurStyle:o=>this.extractBlurStyle(o),extractEffectDagStyle:o=>this.extractEffectDagStyle(o)}),this.tableDataParser=new sX({emuPerPx:dd.EMU_PER_PX,ensureArray:o=>this.ensureArray(o),parseColor:(o,i)=>this.parseColor(o,i),extractGradientFillCss:o=>this.extractGradientFillCss(o),extractGradientStops:o=>this.extractGradientStops(o),extractGradientType:o=>this.extractGradientType(o),extractGradientAngle:o=>this.extractGradientAngle(o),extractGradientPathType:o=>this.colorStyleCodec.extractGradientPathType(o),extractGradientFocalPoint:o=>this.colorStyleCodec.extractGradientFocalPoint(o),extractGradientFillToRect:o=>this.colorStyleCodec.extractGradientFillToRect(o)}),this.mediaDataParser=new aX({slideRelsMap:this.slideRelsMap,resolvePath:(o,i)=>this.resolvePath(o,i),getPathExtension:o=>this.getPathExtension(o)}),this.graphicFrameParser=new uX({emuPerPx:dd.EMU_PER_PX,getOrderedSlidePaths:()=>this.orderedSlidePaths,slideRelsMap:this.slideRelsMap,externalRelsMap:this.externalRelsMap,readFlipState:o=>this.readFlipState(o),parseTableData:o=>this.parseTableData(o),parseMediaData:(o,i)=>this.parseMediaData(o,i),parseElementActions:(o,i,s)=>this.parseElementActions(o,i,s),inspectGraphicFrameCompatibility:(o,i,s)=>this.compatibilityService.inspectGraphicFrameCompatibility(o,i,s)});let n=new vX;this.slideCommentsXmlFactory=n.createSlideCommentsFactory(),this.commentAuthorsXmlFactory=n.createCommentAuthorsFactory();let r=this.dependencyFactory.createDependencies({zip:this.zip,parser:this.parser,builder:this.builder,editorMetaExtensionUri:dd.EDITOR_META_EXTENSION_URI,editorMetaNamespaceUri:dd.EDITOR_META_NAMESPACE_URI,getXmlLocalName:o=>{let i=o.startsWith("@_")?o.slice(2):o,s=i.lastIndexOf(":");return s<0?i:i.slice(s+1)}});this.xmlLookupService=r.xmlLookupService,this.compatibilityService=r.compatibilityService,this.slideLoaderService=r.slideLoaderService,this.templateBackgroundService=r.templateBackgroundService,this.slideTransitionService=r.slideTransitionService,this.editorAnimationService=r.editorAnimationService,this.nativeAnimationService=r.nativeAnimationService,this.animationWriteService=r.animationWriteService,this.documentPropertiesUpdater=r.documentPropertiesUpdater;}},eL=class extends aPe{},lPe=class{createRuntime(){return new eL}},o9=()=>new eL,cPe=class{runtime;constructor(t={}){if(t.runtime){this.runtime=t.runtime;return}if(t.runtimeFactory){this.runtime=t.runtimeFactory.createRuntime();return}this.runtime=o9();}dispose(){this.runtime.dispose();}getCompatibilityWarnings(){return this.runtime.getCompatibilityWarnings()}getLayoutOptions(){return this.runtime.getLayoutOptions()}createXmlBuilder(t){return this.runtime.createXmlBuilder(t)}Builder(t){return this.runtime.Builder(t)}setTemplateBackground(t,e){this.runtime.setTemplateBackground(t,e);}getTemplateBackgroundColor(t){return this.runtime.getTemplateBackgroundColor(t)}async setPresentationTheme(t,e=true){await this.runtime.setPresentationTheme(t,e);}async updateThemeColorScheme(t){await this.runtime.updateThemeColorScheme(t);}async updateThemeFontScheme(t){await this.runtime.updateThemeFontScheme(t);}async updateThemeName(t){await this.runtime.updateThemeName(t);}async applyTheme(t,e,n){await this.runtime.applyTheme(t,e,n);}async switchTheme(t,e,n,r){return await this.runtime.applyTheme(e,n??{},r),vv(t,e,n,r)}async switchThemePreset(t,e){return this.switchTheme(t,e.colorScheme,e.fontScheme,e.name)}async load(t,e={}){if(Zj(t).encrypted){if(!e.password)throw new pM("This presentation is encrypted. Provide a password via options.password to open it.");let r=await s7(t,e.password),o=await this.runtime.load(r,e);return o.isPasswordProtected=true,o}return this.runtime.load(t,e)}async getChartDataForGraphicFrame(t,e){return this.runtime.getChartDataForGraphicFrame(t,e)}async getSmartArtDataForGraphicFrame(t,e){return this.runtime.getSmartArtDataForGraphicFrame(t,e)}async getImageData(t){return this.runtime.getImageData(t)}async getMediaArrayBuffer(t){return this.runtime.getMediaArrayBuffer(t)}async save(t,e){return this.runtime.save(t,e)}async saveEncrypted(t,e,n){let r=await this.runtime.save(t,n),o=await a7(r.buffer,e,n?.encryption);return new Uint8Array(o)}async getAvailableLayoutsForSlide(t,e){return this.runtime.getAvailableLayoutsForSlide(t,e)}async getTemplateElementsForSlide(t){return this.runtime.getTemplateElementsForSlide(t)}async applyLayoutToSlide(t,e,n){return this.runtime.applyLayoutToSlide(t,e,n)}async getAvailableThemes(){return this.runtime.getAvailableThemes()}async exportSlides(t,e){return this.runtime.exportSlides(t,e)}},bd=class extends cPe{static async createBlank(t){return U2.create(t)}static async create(t){return U2.create(t)}};pPe=6e4,hPe=1e5,Yo=32;_Pe=new Set(["pie","piewedge","chord","arc","donut","nosmoking","blockarc","wedgerectcallout","wedgeroundrectcallout","wedgeellipsecallout","cloudcallout","circulararrow","swootharrow","swoosharrow"]);nL=[{angle:-Math.PI*.15,cr:.85,r:.22},{angle:-Math.PI*.4,cr:.78,r:.26},{angle:-Math.PI*.5,cr:.72,r:.3},{angle:-Math.PI*.6,cr:.78,r:.26},{angle:-Math.PI*.85,cr:.85,r:.22},{angle:Math.PI*.85,cr:.82,r:.2},{angle:Math.PI*.5,cr:.78,r:.22},{angle:Math.PI*.15,cr:.82,r:.2}],d9=[{cx:.18,cy:.78,r:.06},{cx:.1,cy:.88,r:.04},{cx:.04,cy:.96,r:.025}],rL=.5522847498307936;APe=nL.length,RPe=d9.length;kPe={actionButtonBlank:ua("actionButtonBlank"),actionButtonHome:ua("actionButtonHome"),actionButtonHelp:ua("actionButtonHelp"),actionButtonInformation:ua("actionButtonInformation"),actionButtonForwardNext:ua("actionButtonForwardNext"),actionButtonBackPrevious:ua("actionButtonBackPrevious"),actionButtonEnd:ua("actionButtonEnd"),actionButtonBeginning:ua("actionButtonBeginning"),actionButtonReturn:ua("actionButtonReturn"),actionButtonDocument:ua("actionButtonDocument"),actionButtonSound:ua("actionButtonSound"),actionButtonMovie:ua("actionButtonMovie")};IPe={name:"rightArrowCallout",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:64977},gdLst:[ce("a1","pin 0 adj1 100000"),ce("a2","pin 0 adj2 100000"),ce("a3","pin 0 adj3 100000"),ce("a4","pin 0 adj4 100000"),ce("y1","*/ hd2 a2 100000"),ce("y2","*/ hd2 a1 100000"),ce("y3","+- vc 0 y2"),ce("y4","+- vc y2 0"),ce("y5","+- vc 0 y1"),ce("y6","+- vc y1 0"),ce("x1","*/ w a4 100000"),ce("x2","*/ w a3 100000"),ce("x3","+- r 0 x2")],rect:{l:"l",t:"y5",r:"x1",b:"y6"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x1",y:"y5"},{kind:"lnTo",x:"x3",y:"y5"},{kind:"lnTo",x:"x3",y:"y3"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x3",y:"y4"},{kind:"lnTo",x:"x3",y:"y6"},{kind:"lnTo",x:"x1",y:"y6"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},NPe={name:"leftArrowCallout",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:64977},gdLst:[ce("a1","pin 0 adj1 100000"),ce("a2","pin 0 adj2 100000"),ce("a3","pin 0 adj3 100000"),ce("a4","pin 0 adj4 100000"),ce("y1","*/ hd2 a2 100000"),ce("y2","*/ hd2 a1 100000"),ce("y3","+- vc 0 y2"),ce("y4","+- vc y2 0"),ce("y5","+- vc 0 y1"),ce("y6","+- vc y1 0"),ce("x1","*/ w a3 100000"),ce("x2","*/ w a4 100000"),ce("x3","+- r 0 x2")],rect:{l:"x3",t:"y5",r:"r",b:"y6"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"x1",y:"y3"},{kind:"lnTo",x:"x1",y:"y5"},{kind:"lnTo",x:"x3",y:"y5"},{kind:"lnTo",x:"x3",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"x3",y:"y6"},{kind:"lnTo",x:"x1",y:"y6"},{kind:"lnTo",x:"x1",y:"y4"},{kind:"close"}]}]},DPe={name:"upArrowCallout",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:64977},gdLst:[ce("a1","pin 0 adj1 100000"),ce("a2","pin 0 adj2 100000"),ce("a3","pin 0 adj3 100000"),ce("a4","pin 0 adj4 100000"),ce("x1","*/ wd2 a2 100000"),ce("x2","*/ wd2 a1 100000"),ce("x3","+- hc 0 x2"),ce("x4","+- hc x2 0"),ce("x5","+- hc 0 x1"),ce("x6","+- hc x1 0"),ce("y1","*/ h a3 100000"),ce("y2","*/ h a4 100000"),ce("y3","+- b 0 y2")],rect:{l:"x5",t:"y3",r:"x6",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"hc",y:"t"},{kind:"lnTo",x:"x4",y:"y1"},{kind:"lnTo",x:"x6",y:"y1"},{kind:"lnTo",x:"x6",y:"y3"},{kind:"lnTo",x:"r",y:"y3"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"y3"},{kind:"lnTo",x:"x5",y:"y3"},{kind:"lnTo",x:"x5",y:"y1"},{kind:"lnTo",x:"x3",y:"y1"},{kind:"close"}]}]},LPe={name:"downArrowCallout",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:64977},gdLst:[ce("a1","pin 0 adj1 100000"),ce("a2","pin 0 adj2 100000"),ce("a3","pin 0 adj3 100000"),ce("a4","pin 0 adj4 100000"),ce("x1","*/ wd2 a2 100000"),ce("x2","*/ wd2 a1 100000"),ce("x3","+- hc 0 x2"),ce("x4","+- hc x2 0"),ce("x5","+- hc 0 x1"),ce("x6","+- hc x1 0"),ce("y1","*/ h a4 100000"),ce("y2","*/ h a3 100000"),ce("y3","+- b 0 y2")],rect:{l:"x5",t:"t",r:"x6",b:"y1"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"x6",y:"y1"},{kind:"lnTo",x:"x6",y:"y3"},{kind:"lnTo",x:"x4",y:"y3"},{kind:"lnTo",x:"hc",y:"b"},{kind:"lnTo",x:"x3",y:"y3"},{kind:"lnTo",x:"x5",y:"y3"},{kind:"lnTo",x:"x5",y:"y1"},{kind:"lnTo",x:"l",y:"y1"},{kind:"close"}]}]},FPe={name:"leftRightArrowCallout",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:48123},gdLst:[ce("a1","pin 0 adj1 100000"),ce("a2","pin 0 adj2 100000"),ce("a3","pin 0 adj3 100000"),ce("a4","pin 0 adj4 100000"),ce("y1","*/ hd2 a2 100000"),ce("y2","*/ hd2 a1 100000"),ce("y3","+- vc 0 y2"),ce("y4","+- vc y2 0"),ce("y5","+- vc 0 y1"),ce("y6","+- vc y1 0"),ce("x1","*/ wd2 a3 100000"),ce("x4","+- r 0 x1"),ce("cw","*/ w a4 200000"),ce("x2","+- hc 0 cw"),ce("x3","+- hc cw 0")],rect:{l:"x2",t:"y5",r:"x3",b:"y6"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"x1",y:"y3"},{kind:"lnTo",x:"x1",y:"y5"},{kind:"lnTo",x:"x2",y:"y5"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"x3",y:"t"},{kind:"lnTo",x:"x3",y:"y5"},{kind:"lnTo",x:"x4",y:"y5"},{kind:"lnTo",x:"x4",y:"y3"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x4",y:"y4"},{kind:"lnTo",x:"x4",y:"y6"},{kind:"lnTo",x:"x3",y:"y6"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x2",y:"y6"},{kind:"lnTo",x:"x1",y:"y6"},{kind:"lnTo",x:"x1",y:"y4"},{kind:"close"}]}]},OPe={name:"upDownArrowCallout",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:48123},gdLst:[ce("a1","pin 0 adj1 100000"),ce("a2","pin 0 adj2 100000"),ce("a3","pin 0 adj3 100000"),ce("a4","pin 0 adj4 100000"),ce("x1","*/ wd2 a2 100000"),ce("x2","*/ wd2 a1 100000"),ce("x3","+- hc 0 x2"),ce("x4","+- hc x2 0"),ce("x5","+- hc 0 x1"),ce("x6","+- hc x1 0"),ce("y1","*/ hd2 a3 100000"),ce("y4","+- b 0 y1"),ce("ch","*/ h a4 200000"),ce("y2","+- vc 0 ch"),ce("y3","+- vc ch 0")],rect:{l:"x5",t:"y2",r:"x6",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"hc",y:"t"},{kind:"lnTo",x:"x4",y:"y1"},{kind:"lnTo",x:"x6",y:"y1"},{kind:"lnTo",x:"x6",y:"y2"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"r",y:"y3"},{kind:"lnTo",x:"x6",y:"y3"},{kind:"lnTo",x:"x6",y:"y4"},{kind:"lnTo",x:"x4",y:"y4"},{kind:"lnTo",x:"hc",y:"b"},{kind:"lnTo",x:"x3",y:"y4"},{kind:"lnTo",x:"x5",y:"y4"},{kind:"lnTo",x:"x5",y:"y3"},{kind:"lnTo",x:"l",y:"y3"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"x5",y:"y2"},{kind:"lnTo",x:"x5",y:"y1"},{kind:"lnTo",x:"x3",y:"y1"},{kind:"close"}]}]},BPe={name:"quadArrowCallout",avLst:{adj1:18515,adj2:18515,adj3:18515,adj4:48123},gdLst:[ce("a1","pin 0 adj1 100000"),ce("a2","pin 0 adj2 100000"),ce("a3","pin 0 adj3 100000"),ce("a4","pin 0 adj4 100000"),ce("x1","*/ wd2 a2 100000"),ce("x2","*/ wd2 a1 100000"),ce("y1","*/ hd2 a2 100000"),ce("y2","*/ hd2 a1 100000"),ce("x5","+- hc 0 x1"),ce("x6","+- hc x1 0"),ce("x3","+- hc 0 x2"),ce("x4","+- hc x2 0"),ce("y5","+- vc 0 y1"),ce("y6","+- vc y1 0"),ce("y3","+- vc 0 y2"),ce("y4","+- vc y2 0"),ce("hl","*/ wd2 a3 100000"),ce("vl","*/ hd2 a3 100000"),ce("xL","+- l hl 0"),ce("xR","+- r 0 hl"),ce("yT","+- t vl 0"),ce("yB","+- b 0 vl"),ce("cw","*/ w a4 200000"),ce("ch","*/ h a4 200000"),ce("cl","+- hc 0 cw"),ce("cr","+- hc cw 0"),ce("ct","+- vc 0 ch"),ce("cb","+- vc ch 0")],rect:{l:"cl",t:"ct",r:"cr",b:"cb"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"xL",y:"y5"},{kind:"lnTo",x:"xL",y:"y3"},{kind:"lnTo",x:"cl",y:"y3"},{kind:"lnTo",x:"cl",y:"ct"},{kind:"lnTo",x:"x5",y:"ct"},{kind:"lnTo",x:"x5",y:"yT"},{kind:"lnTo",x:"x3",y:"yT"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"x4",y:"yT"},{kind:"lnTo",x:"x6",y:"yT"},{kind:"lnTo",x:"x6",y:"ct"},{kind:"lnTo",x:"cr",y:"ct"},{kind:"lnTo",x:"cr",y:"y3"},{kind:"lnTo",x:"xR",y:"y3"},{kind:"lnTo",x:"xR",y:"y5"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"xR",y:"y6"},{kind:"lnTo",x:"xR",y:"y4"},{kind:"lnTo",x:"cr",y:"y4"},{kind:"lnTo",x:"cr",y:"cb"},{kind:"lnTo",x:"x6",y:"cb"},{kind:"lnTo",x:"x6",y:"yB"},{kind:"lnTo",x:"x4",y:"yB"},{kind:"lnTo",x:"hc",y:"b"},{kind:"lnTo",x:"x3",y:"yB"},{kind:"lnTo",x:"x5",y:"yB"},{kind:"lnTo",x:"x5",y:"cb"},{kind:"lnTo",x:"cl",y:"cb"},{kind:"lnTo",x:"cl",y:"y4"},{kind:"lnTo",x:"xL",y:"y4"},{kind:"lnTo",x:"xL",y:"y6"},{kind:"close"}]}]},UPe={name:"bentArrowCallout",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:64977},gdLst:[ce("a1","pin 0 adj1 100000"),ce("a2","pin 0 adj2 100000"),ce("a3","pin 0 adj3 100000"),ce("a4","pin 0 adj4 100000"),ce("th","*/ ss a2 100000"),ce("hw","*/ ss a1 100000"),ce("hl","*/ ss a3 100000"),ce("xb","+- l th 0"),ce("xh","+- xb hl 0"),ce("y1","+- t hw 0"),ce("y2","+- y1 th 0"),ce("y3","+- y1 0 hw"),ce("cy","*/ h a4 100000"),ce("cb","+- b 0 cy")],rect:{l:"l",t:"cb",r:"xb",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"cb"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"xb",y:"y2"},{kind:"lnTo",x:"xb",y:"y3"},{kind:"lnTo",x:"xh",y:"y3"},{kind:"lnTo",x:"xh",y:"t"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"xh",y:"y2"},{kind:"lnTo",x:"xh",y:"y1"},{kind:"lnTo",x:"xb",y:"y1"},{kind:"lnTo",x:"xb",y:"b"},{kind:"close"}]}]},$Pe={name:"bentUpArrowCallout",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:64977},gdLst:[ce("a1","pin 0 adj1 100000"),ce("a2","pin 0 adj2 100000"),ce("a3","pin 0 adj3 100000"),ce("a4","pin 0 adj4 100000"),ce("th","*/ ss a2 100000"),ce("hw","*/ ss a1 100000"),ce("hl","*/ ss a3 100000"),ce("y2","+- b 0 th"),ce("xh","+- r 0 hl"),ce("xb","+- xh 0 hw"),ce("xt","+- xh hw 0"),ce("cx","*/ w a4 100000")],rect:{l:"l",t:"t",r:"cx",b:"y2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"xb",y:"y2"},{kind:"lnTo",x:"xb",y:"hl"},{kind:"lnTo",x:"l",y:"hl"},{kind:"lnTo",x:"xh",y:"t"},{kind:"lnTo",x:"r",y:"hl"},{kind:"lnTo",x:"xt",y:"hl"},{kind:"lnTo",x:"xt",y:"b"},{kind:"close"}]}]},HPe={name:"leftUpArrow",avLst:{adj1:25e3,adj2:25e3,adj3:25e3},gdLst:[ce("a1","pin 0 adj1 100000"),ce("a2","pin 0 adj2 100000"),ce("a3","pin 0 adj3 100000"),ce("hw","*/ ss a1 100000"),ce("hl","*/ ss a2 100000"),ce("th","*/ ss a3 100000"),ce("xc","+- l hl 0"),ce("x1","+- xc 0 0"),ce("xb","+- l hl 0"),ce("xs","+- xb 0 0"),ce("xH1","+- xc 0 hw"),ce("xH2","+- xc hw 0"),ce("yc","+- t hl 0"),ce("yH1","+- yc 0 hw"),ce("yH2","+- yc hw 0"),ce("xt","+- xc th 0"),ce("yt","+- yc th 0")],rect:{l:"xt",t:"yt",r:"r",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"yc"},{kind:"lnTo",x:"xc",y:"yH1"},{kind:"lnTo",x:"xH1",y:"yH1"},{kind:"lnTo",x:"xH1",y:"yc"},{kind:"lnTo",x:"xH1",y:"yc"},{kind:"lnTo",x:"xc",y:"t"},{kind:"lnTo",x:"xH2",y:"yc"},{kind:"lnTo",x:"xH2",y:"yt"},{kind:"lnTo",x:"r",y:"yt"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"xt",y:"b"},{kind:"lnTo",x:"xt",y:"yH2"},{kind:"lnTo",x:"xc",y:"yH2"},{kind:"close"}]}]},zPe={leftArrowCallout:NPe,rightArrowCallout:IPe,upArrowCallout:DPe,downArrowCallout:LPe,leftRightArrowCallout:FPe,upDownArrowCallout:OPe,quadArrowCallout:BPe,bentArrowCallout:UPe,bentUpArrowCallout:$Pe,leftUpArrow:HPe};Cv={l:"l",t:"t",r:"r",b:"b"},VPe={name:"bevel",avLst:{adj:12500},gdLst:[se("a","pin 0 adj 50000"),se("x1","*/ ss a 100000"),se("x2","+- r 0 x1"),se("y2","+- b 0 x1")],rect:{l:"x1",t:"x1",r:"x2",b:"y2"},pathLst:[{fill:"norm",extrusionOk:false,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]},{fill:"darken",stroke:false,extrusionOk:false,commands:[{kind:"moveTo",x:"x1",y:"x1"},{kind:"lnTo",x:"x2",y:"x1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"close"}]},{stroke:true,fill:"none",extrusionOk:false,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"x1"},{kind:"moveTo",x:"r",y:"t"},{kind:"lnTo",x:"x2",y:"x1"},{kind:"moveTo",x:"r",y:"b"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"x1",y:"y2"}]}]},GPe={name:"can",avLst:{adj:25e3},gdLst:[se("a","pin 0 adj 50000"),se("y1","*/ h a 200000"),se("y2","+- y1 y1 0"),se("y3","+- b 0 y1")],rect:{l:"l",t:"y2",r:"r",b:"y3"},pathLst:[{fill:"norm",commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"arcTo",wR:"wd2",hR:"y1",stAng:"cd2",swAng:"-10800000"},{kind:"lnTo",x:"r",y:"y3"},{kind:"arcTo",wR:"wd2",hR:"y1",stAng:"0",swAng:"cd2"},{kind:"close"}]},{fill:"darken",stroke:false,commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"arcTo",wR:"wd2",hR:"y1",stAng:"cd2",swAng:"cd2"},{kind:"arcTo",wR:"wd2",hR:"y1",stAng:"0",swAng:"cd2"},{kind:"close"}]}]},WPe={name:"cube",avLst:{adj:25e3},gdLst:[se("a","pin 0 adj 100000"),se("y1","*/ ss a 100000"),se("y4","+- b 0 y1"),se("x4","+- r 0 y1")],rect:{l:"l",t:"y1",r:"x4",b:"b"},pathLst:[{fill:"norm",commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"lnTo",x:"y1",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"y4"},{kind:"lnTo",x:"x4",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]},{fill:"darkenLess",stroke:false,commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"lnTo",x:"x4",y:"y1"},{kind:"lnTo",x:"r",y:"t"},{kind:"close"}]},{fill:"darken",stroke:false,commands:[{kind:"moveTo",x:"x4",y:"y1"},{kind:"lnTo",x:"x4",y:"b"},{kind:"lnTo",x:"r",y:"y4"},{kind:"lnTo",x:"r",y:"t"},{kind:"close"}]}]},XPe={name:"cylinder",avLst:{adj:25e3},gdLst:[se("a","pin 0 adj 50000"),se("x1","*/ w a 200000"),se("x2","+- x1 x1 0"),se("x3","+- r 0 x1")],rect:{l:"x2",t:"t",r:"x3",b:"b"},pathLst:[{fill:"norm",commands:[{kind:"moveTo",x:"x1",y:"t"},{kind:"lnTo",x:"x3",y:"t"},{kind:"arcTo",wR:"x1",hR:"hd2",stAng:"3cd4",swAng:"cd2"},{kind:"lnTo",x:"x1",y:"b"},{kind:"arcTo",wR:"x1",hR:"hd2",stAng:"cd4",swAng:"cd2"},{kind:"close"}]}]},jPe={name:"frame",avLst:{adj1:12500},gdLst:[se("a1","pin 0 adj1 50000"),se("x1","*/ ss a1 100000"),se("x4","+- r 0 x1"),se("y4","+- b 0 x1")],rect:{l:"x1",t:"x1",r:"x4",b:"y4"},pathLst:[{fill:"norm",extrusionOk:false,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"},{kind:"moveTo",x:"x1",y:"y4"},{kind:"lnTo",x:"x4",y:"y4"},{kind:"lnTo",x:"x4",y:"x1"},{kind:"lnTo",x:"x1",y:"x1"},{kind:"close"}]}]},YPe={name:"halfFrame",avLst:{adj1:33333,adj2:33333},gdLst:[se("a1","pin 0 adj1 100000"),se("a2","pin 0 adj2 100000"),se("x1","*/ w a2 100000"),se("y1","*/ h a1 100000"),se("dx2","*/ y1 w h"),se("x2","+- x1 0 dx2"),se("dy2","*/ x1 h w"),se("y2","+- y1 0 dy2")],rect:{l:"l",t:"t",r:"x1",b:"y1"},pathLst:[{fill:"norm",commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},qPe={name:"plaque",avLst:{adj:16667},gdLst:[se("a","pin 0 adj 50000"),se("x1","*/ ss a 100000"),se("x2","+- r 0 x1"),se("y2","+- b 0 x1")],rect:{l:"x1",t:"x1",r:"x2",b:"y2"},pathLst:[{fill:"norm",commands:[{kind:"moveTo",x:"l",y:"x1"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"cd4",swAng:"-5400000"},{kind:"lnTo",x:"x2",y:"t"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"cd2",swAng:"-5400000"},{kind:"lnTo",x:"r",y:"y2"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"3cd4",swAng:"-5400000"},{kind:"lnTo",x:"x1",y:"b"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"0",swAng:"-5400000"},{kind:"close"}]}]},KPe={name:"plaqueTabs",gdLst:[se("md","min w h"),se("dx2","*/ md 1 5"),se("y2","+- b 0 dx2"),se("x2","+- r 0 dx2")],rect:{l:"l",t:"t",r:"r",b:"b"},pathLst:[{fill:"norm",commands:[{kind:"moveTo",x:"l",y:"dx2"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"dx2",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"r",y:"dx2"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"dx2",y:"t"},{kind:"close"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"l",y:"dx2"},{kind:"arcTo",wR:"dx2",hR:"dx2",stAng:"cd2",swAng:"cd4"},{kind:"moveTo",x:"r",y:"dx2"},{kind:"arcTo",wR:"dx2",hR:"dx2",stAng:"3cd4",swAng:"cd4"},{kind:"moveTo",x:"l",y:"y2"},{kind:"arcTo",wR:"dx2",hR:"dx2",stAng:"cd4",swAng:"-5400000"},{kind:"moveTo",x:"r",y:"y2"},{kind:"arcTo",wR:"dx2",hR:"dx2",stAng:"0",swAng:"cd4"}]}]},ZPe={name:"leftRightArrow",avLst:{adj1:5e4,adj2:5e4},gdLst:[se("a1","pin 0 adj1 100000"),se("a2","pin 0 adj2 100000"),se("y1","*/ hd2 a1 100000"),se("y2","+- vc 0 y1"),se("y3","+- vc y1 0"),se("x2","*/ wd2 a2 100000"),se("x1","+- l x2 0"),se("x3","+- r 0 x2")],rect:{l:"x1",t:"y2",r:"x3",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"lnTo",x:"x3",y:"y2"},{kind:"lnTo",x:"x3",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"x3",y:"y3"},{kind:"lnTo",x:"x1",y:"y3"},{kind:"lnTo",x:"x1",y:"b"},{kind:"close"}]}]},JPe={name:"upDownArrow",avLst:{adj1:5e4,adj2:5e4},gdLst:[se("a1","pin 0 adj1 100000"),se("a2","pin 0 adj2 100000"),se("x1","*/ wd2 a1 100000"),se("x2","+- hc 0 x1"),se("x3","+- hc x1 0"),se("y2","*/ hd2 a2 100000"),se("y1","+- t y2 0"),se("y3","+- b 0 y2")],rect:{l:"x2",t:"y1",r:"x3",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"hc",y:"t"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"x3",y:"y1"},{kind:"lnTo",x:"x3",y:"y3"},{kind:"lnTo",x:"r",y:"y3"},{kind:"lnTo",x:"hc",y:"b"},{kind:"lnTo",x:"l",y:"y3"},{kind:"lnTo",x:"x2",y:"y3"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"l",y:"y1"},{kind:"close"}]}]},QPe={name:"leftRightUpArrow",avLst:{adj1:25e3,adj2:25e3,adj3:25e3},gdLst:[se("a1","pin 0 adj1 100000"),se("a2","pin 0 adj2 100000"),se("a3","pin 0 adj3 100000"),se("y1","*/ hd2 a1 100000"),se("y2","+- b 0 y1"),se("y3","+- b 0 a1"),se("hx","*/ wd2 a2 100000"),se("x1","+- hc 0 hx"),se("x2","+- hc hx 0"),se("hl","*/ wd2 a3 100000"),se("xl","+- l hl 0"),se("xr","+- r 0 hl"),se("yh","+- y1 0 0"),se("uy","*/ h a3 100000"),se("up","+- t uy 0")],rect:{l:"xl",t:"up",r:"xr",b:"y2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"xl",y:"y1"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x1",y:"up"},{kind:"lnTo",x:"l",y:"up"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"r",y:"up"},{kind:"lnTo",x:"x2",y:"up"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"xr",y:"y1"},{kind:"lnTo",x:"xr",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"xr",y:"b"},{kind:"lnTo",x:"xr",y:"y2"},{kind:"lnTo",x:"xl",y:"y2"},{kind:"lnTo",x:"xl",y:"b"},{kind:"close"}]}]},e_e={name:"quadArrow",avLst:{adj1:22500,adj2:22500,adj3:22500},gdLst:[se("a1","pin 0 adj1 100000"),se("a2","pin 0 adj2 100000"),se("a3","pin 0 adj3 100000"),se("hx","*/ wd2 a2 100000"),se("hy","*/ hd2 a2 100000"),se("bx1","+- hc 0 hx"),se("bx2","+- hc hx 0"),se("by1","+- vc 0 hy"),se("by2","+- vc hy 0"),se("hl","*/ wd2 a3 100000"),se("vl","*/ hd2 a3 100000"),se("lh","+- l hl 0"),se("rh","+- r 0 hl"),se("th","+- t vl 0"),se("bh","+- b 0 vl"),se("hw","*/ wd2 a1 100000"),se("hh","*/ hd2 a1 100000"),se("hl1","+- hc 0 hw"),se("hl2","+- hc hw 0"),se("vt1","+- vc 0 hh"),se("vt2","+- vc hh 0")],rect:{l:"lh",t:"th",r:"rh",b:"bh"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"lh",y:"vt1"},{kind:"lnTo",x:"hl1",y:"vt1"},{kind:"lnTo",x:"hl1",y:"th"},{kind:"lnTo",x:"bx1",y:"th"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"bx2",y:"th"},{kind:"lnTo",x:"hl2",y:"th"},{kind:"lnTo",x:"hl2",y:"vt1"},{kind:"lnTo",x:"rh",y:"vt1"},{kind:"lnTo",x:"rh",y:"vt2"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"rh",y:"vt2"},{kind:"lnTo",x:"hl2",y:"vt2"},{kind:"lnTo",x:"hl2",y:"bh"},{kind:"lnTo",x:"bx2",y:"bh"},{kind:"lnTo",x:"hc",y:"b"},{kind:"lnTo",x:"bx1",y:"bh"},{kind:"lnTo",x:"hl1",y:"bh"},{kind:"lnTo",x:"hl1",y:"vt2"},{kind:"lnTo",x:"lh",y:"vt2"},{kind:"close"}]}]},t_e={name:"bentArrow",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:43750},gdLst:[se("bw","*/ ss adj1 100000"),se("hw","*/ ss adj2 100000"),se("hl","*/ ss adj3 100000"),se("xb","+- l bw 0"),se("xh","+- xb hl 0"),se("y2","+- b 0 bw"),se("y1","+- y2 0 hw"),se("y3","+- y2 hw 0")],rect:{l:"l",t:"t",r:"r",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"l",y:"hl"},{kind:"lnTo",x:"xb",y:"hl"},{kind:"lnTo",x:"xb",y:"y1"},{kind:"lnTo",x:"xh",y:"y1"},{kind:"lnTo",x:"xh",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"xh",y:"b"},{kind:"lnTo",x:"xh",y:"y3"},{kind:"lnTo",x:"l",y:"y3"},{kind:"close"}]}]},n_e={name:"bentUpArrow",avLst:{adj1:25e3,adj2:25e3,adj3:25e3},gdLst:[se("bw","*/ ss adj1 100000"),se("hw","*/ ss adj2 100000"),se("hl","*/ ss adj3 100000"),se("y2","+- b 0 bw"),se("xh","+- r 0 hl"),se("xb","+- xh 0 hw"),se("xt","+- xh hw 0")],rect:{l:"l",t:"t",r:"r",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"xb",y:"y2"},{kind:"lnTo",x:"xb",y:"hl"},{kind:"lnTo",x:"l",y:"hl"},{kind:"lnTo",x:"xh",y:"t"},{kind:"lnTo",x:"r",y:"hl"},{kind:"lnTo",x:"xt",y:"hl"},{kind:"lnTo",x:"xt",y:"b"},{kind:"close"}]}]},r_e={name:"uturnArrow",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:43750,adj5:75e3},gdLst:[se("bw","*/ ss adj1 100000"),se("hw","*/ ss adj2 100000"),se("hl","*/ ss adj3 100000"),se("x1","+- l bw 0"),se("x2","+- r 0 bw"),se("x3","+- x2 0 hw"),se("x4","+- x2 hw 0"),se("y1","*/ h adj4 100000"),se("y2","+- y1 hw 0")],rect:{l:"l",t:"t",r:"r",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"y1"},{kind:"arcTo",wR:"wd2",hR:"y1",stAng:"cd2",swAng:"cd2"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"x4",y:"y1"},{kind:"lnTo",x:"x4",y:"b"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"x3",y:"y1"},{kind:"arcTo",wR:"wd2",hR:"y1",stAng:"0",swAng:"-10800000"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x1",y:"b"},{kind:"close"}]}]},o_e={name:"stripedRightArrow",avLst:{adj1:5e4,adj2:5e4},gdLst:[se("a1","pin 0 adj1 100000"),se("a2","pin 0 adj2 100000"),se("y1","*/ hd2 a1 100000"),se("y2","+- vc 0 y1"),se("y3","+- vc y1 0"),se("x2","*/ ss 1 32"),se("x3","*/ ss 2 32"),se("x4","*/ ss 5 32"),se("x5","*/ w a2 100000"),se("x6","+- r 0 x5"),se("dx","*/ hd2 x5 wd2"),se("x7","+- x6 dx 0")],rect:{l:"x4",t:"y2",r:"x7",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x2",y:"y3"},{kind:"lnTo",x:"l",y:"y3"},{kind:"close"},{kind:"moveTo",x:"x3",y:"y2"},{kind:"lnTo",x:"x4",y:"y2"},{kind:"lnTo",x:"x4",y:"y3"},{kind:"lnTo",x:"x3",y:"y3"},{kind:"close"},{kind:"moveTo",x:"x4",y:"y2"},{kind:"lnTo",x:"x6",y:"y2"},{kind:"lnTo",x:"x6",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x6",y:"b"},{kind:"lnTo",x:"x6",y:"y3"},{kind:"lnTo",x:"x4",y:"y3"},{kind:"close"}]}]},i_e={name:"notchedRightArrow",avLst:{adj1:5e4,adj2:5e4},gdLst:[se("a1","pin 0 adj1 100000"),se("a2","pin 0 adj2 100000"),se("y1","*/ hd2 a1 100000"),se("y2","+- vc 0 y1"),se("y3","+- vc y1 0"),se("x2","*/ w a2 100000"),se("x1","+- r 0 x2"),se("dx2","*/ hd2 x2 wd2"),se("x3","+- x1 dx2 0"),se("nx","*/ y1 1 1")],rect:{l:"nx",t:"y2",r:"x3",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"x1",y:"y3"},{kind:"lnTo",x:"l",y:"y3"},{kind:"lnTo",x:"nx",y:"vc"},{kind:"close"}]}]},s_e={name:"homePlate",avLst:{adj:5e4},gdLst:[se("a","pin 0 adj 100000"),se("x1","*/ w a 100000")],rect:{l:"l",t:"t",r:"x1",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},a_e={name:"chevron",avLst:{adj:5e4},gdLst:[se("a","pin 0 adj 100000"),se("x1","*/ w a 100000"),se("x2","+- r 0 x1")],rect:{l:"l",t:"t",r:"x2",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"lnTo",x:"x1",y:"vc"},{kind:"close"}]}]},l_e={name:"pentArrow",avLst:{adj:5e4},gdLst:[se("a","pin 0 adj 100000"),se("x1","*/ w a 200000"),se("x2","+- r 0 x1"),se("y1","*/ h 25000 100000"),se("y2","+- b 0 y1")],rect:{l:"x1",t:"y1",r:"x2",b:"y2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"x1",y:"vc"},{kind:"close"}]}]},c_e={name:"circularArrow",avLst:{adj1:12500,adj2:1142319,adj3:20457681,adj4:108e5,adj5:12500},gdLst:[se("th","*/ ss adj1 100000"),se("iwd2","+- wd2 0 th"),se("ihd2","+- hd2 0 th")],rect:Cv,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd2",swAng:"16200000"},{kind:"lnTo",x:"r",y:"hd2"},{kind:"lnTo",x:"hc",y:"vc"},{kind:"lnTo",x:"hc",y:"th"},{kind:"arcTo",wR:"iwd2",hR:"ihd2",stAng:"3cd4",swAng:"-16200000"},{kind:"close"}]}]},d_e={name:"leftCircularArrow",avLst:{adj1:12500,adj2:189e5,adj3:1142319,adj4:108e5,adj5:12500},gdLst:[se("th","*/ ss adj1 100000"),se("iwd2","+- wd2 0 th"),se("ihd2","+- hd2 0 th")],rect:Cv,pathLst:[{commands:[{kind:"moveTo",x:"r",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"-16200000"},{kind:"lnTo",x:"l",y:"hd2"},{kind:"lnTo",x:"hc",y:"vc"},{kind:"lnTo",x:"hc",y:"th"},{kind:"arcTo",wR:"iwd2",hR:"ihd2",stAng:"3cd4",swAng:"16200000"},{kind:"close"}]}]},u_e={name:"leftRightCircularArrow",avLst:{adj1:12500,adj2:1142319,adj3:20457681,adj4:108e5,adj5:12500},gdLst:[se("th","*/ ss adj1 100000"),se("iwd2","+- wd2 0 th"),se("ihd2","+- hd2 0 th")],rect:Cv,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd2",swAng:"16200000"},{kind:"lnTo",x:"hc",y:"vc"},{kind:"arcTo",wR:"iwd2",hR:"ihd2",stAng:"3cd4",swAng:"-16200000"},{kind:"close"}]}]},p_e={name:"swooshArrow",avLst:{adj1:25e3,adj2:16667},gdLst:[se("a1","pin 0 adj1 75000"),se("a2","pin 0 adj2 33333"),se("ad1","*/ h a1 100000"),se("ad2","*/ ss a2 100000")],rect:Cv,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"quadBezTo",x1:"hc",y1:"b",x2:"r",y2:"ad1"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"ad2",y:"b"},{kind:"close"}]}]},h_e={name:"curvedRightArrow",avLst:{adj1:25e3,adj2:5e4,adj3:25e3},gdLst:[se("a1","pin 0 adj1 100000"),se("a2","pin 0 adj2 100000"),se("a3","pin 0 adj3 100000"),se("th","*/ ss a1 100000"),se("hl","*/ w a3 100000"),se("x1","+- r 0 hl"),se("y1","*/ h a2 100000")],rect:Cv,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"quadBezTo",x1:"hc",y1:"t",x2:"x1",y2:"y1"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"quadBezTo",x1:"hc",y1:"b",x2:"l",y2:"b"},{kind:"close"}]}]},f_e={bevel:VPe,can:GPe,cube:WPe,cylinder:XPe,frame:jPe,halfFrame:YPe,plaque:qPe,plaqueTabs:KPe,leftRightArrow:ZPe,upDownArrow:JPe,leftRightUpArrow:QPe,quadArrow:e_e,bentArrow:t_e,bentUpArrow:n_e,uturnArrow:r_e,stripedRightArrow:o_e,notchedRightArrow:i_e,homePlate:s_e,chevron:a_e,pentArrow:l_e,circularArrow:c_e,leftCircularArrow:d_e,leftRightCircularArrow:u_e,swooshArrow:p_e,curvedRightArrow:h_e};Mv={l:"l",t:"t",r:"r",b:"b"},m_e={name:"bentArrow",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:43750},gdLst:[V("a1","pin 0 adj1 25000"),V("a2","pin 0 adj2 25000"),V("a3","pin 0 adj3 50000"),V("a4","pin 0 adj4 50000"),V("th","*/ ss a1 100000"),V("aw2","*/ ss a2 100000"),V("th2","*/ th 1 2"),V("dh2","+- aw2 th2 0"),V("ah","*/ ss a3 100000"),V("bw","+- r 0 ah"),V("bh","+- b 0 dh2"),V("bs","min bw bh"),V("maxAdj4","*/ 100000 bs ss"),V("a4p","pin 0 adj4 maxAdj4"),V("bd","*/ ss a4p 100000"),V("bd3","+- bd 0 th"),V("bd2","max bd3 0"),V("x3","+- l th bd2"),V("x4","+- x3 th 0"),V("y3","+- b 0 ah"),V("y4","+- y3 dh2 0"),V("y5","+- y4 0 aw2"),V("y6","+- y4 aw2 0")],rect:{l:"x3",t:"t",r:"r",b:"y4"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"th"},{kind:"arcTo",wR:"bd2",hR:"bd2",stAng:"cd2",swAng:"cd4"},{kind:"lnTo",x:"x4",y:"y3"},{kind:"lnTo",x:"x4",y:"y5"},{kind:"lnTo",x:"r",y:"y4"},{kind:"lnTo",x:"x4",y:"y6"},{kind:"lnTo",x:"x4",y:"y4"},{kind:"lnTo",x:"x3",y:"y4"},{kind:"arcTo",wR:"bd",hR:"bd",stAng:"3cd4",swAng:"-5400000"},{kind:"lnTo",x:"th",y:"b"},{kind:"close"}]}]},g_e={name:"bentUpArrow",avLst:{adj1:25e3,adj2:25e3,adj3:25e3},gdLst:[V("a1","pin 0 adj1 50000"),V("a2","pin 0 adj2 50000"),V("a3","pin 0 adj3 50000"),V("th","*/ ss a1 100000"),V("aw","*/ ss a2 100000"),V("ah","*/ ss a3 100000"),V("th2","*/ th 1 2"),V("aw2","*/ aw 1 2"),V("x1","+- r 0 aw2"),V("x1p","+- x1 0 th2"),V("x2","+- x1 th2 0"),V("x3","+- r 0 aw"),V("y1","+- b 0 th"),V("y2","+- t ah 0")],rect:{l:"l",t:"y2",r:"x2",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"lnTo",x:"x1p",y:"y1"},{kind:"lnTo",x:"x1p",y:"y2"},{kind:"lnTo",x:"x3",y:"y2"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},x_e={name:"uturnArrow",avLst:{adj1:25e3,adj2:25e3,adj3:25e3,adj4:43750,adj5:75e3},gdLst:[V("a1","pin 0 adj1 25000"),V("a2","pin 0 adj2 25000"),V("a3","pin 0 adj3 50000"),V("a5","pin 1 adj5 100000"),V("th","*/ ss a1 100000"),V("aw2","*/ ss a2 100000"),V("th2","*/ th 1 2"),V("dh2","+- aw2 th2 0"),V("y5","*/ ss a3 100000"),V("ah","+- y5 0 0"),V("x9","*/ w a5 100000"),V("bw","*/ x9 1 2"),V("bs","min bw h"),V("maxAdj4","*/ 100000 bs ss"),V("a4","pin 0 adj4 maxAdj4"),V("bh","*/ ss a4 100000"),V("bs2","+- bh 0 th"),V("tm","min y5 bs2"),V("x4","+- x9 0 bw"),V("x5","+- x4 th 0"),V("x8","+- x9 0 th"),V("x6","+- x8 0 dh2"),V("x7","+- x8 dh2 0"),V("y4","+- b 0 ah"),V("y3","+- y4 dh2 0"),V("y2","+- y4 0 dh2"),V("y1","+- y3 0 th")],rect:{l:"l",t:"tm",r:"x9",b:"y4"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"bh"},{kind:"arcTo",wR:"bw",hR:"bh",stAng:"cd2",swAng:"cd2"},{kind:"lnTo",x:"x9",y:"y4"},{kind:"lnTo",x:"x7",y:"y4"},{kind:"lnTo",x:"x8",y:"b"},{kind:"lnTo",x:"x6",y:"y4"},{kind:"lnTo",x:"x8",y:"y4"},{kind:"lnTo",x:"x8",y:"bh"},{kind:"arcTo",wR:"bs2",hR:"bs2",stAng:"0",swAng:"-10800000"},{kind:"lnTo",x:"th",y:"b"},{kind:"close"}]}]},y_e={name:"circularArrow",avLst:{adj1:12500,adj2:1142319,adj3:20457681,adj4:108e5,adj5:12500},gdLst:[V("a1","pin 0 adj1 25000"),V("a2","pin 0 adj2 21599999"),V("a3","pin 0 adj3 21599999"),V("a4","pin 0 adj4 21599999"),V("a5","pin 0 adj5 25000"),V("th","*/ ss a1 100000"),V("thh","*/ ss a5 100000"),V("th2","*/ th 1 2"),V("rw1","+- wd2 0 th2"),V("rh1","+- hd2 0 th2"),V("rw2","+- rw1 0 thh"),V("rh2","+- rh1 0 thh"),V("rw3","+- rw2 th2 0"),V("rh3","+- rh2 th2 0"),V("wtH","sin rw3 a4"),V("htH","cos rh3 a4"),V("dxH","cat2 rw3 htH wtH"),V("dyH","sat2 rh3 htH wtH"),V("xH","+- hc dxH 0"),V("yH","+- vc dyH 0"),V("rI","min rw2 rh2"),V("u1","*/ dxH dxH 1"),V("u2","*/ dyH dyH 1"),V("u3","*/ rI rI 1"),V("u4","+- u1 0 u3"),V("u5","+- u2 0 u3"),V("u6","*/ u4 u5 u1"),V("u7","+- u6 0 u2"),V("u8","*/ u1 1 u2"),V("u9","+/ u7 u8 1"),V("u10","*/ u4 1 dxH"),V("u11","+- 0 0 u10"),V("u12","+/ 1 1 u9"),V("u13","sqrt u12"),V("u14","*/ u11 1 u13"),V("u15","?: u14 u14 0"),V("u16","+- u15 xH 0"),V("u17","+- yH 0 vc"),V("u18","+- u16 0 hc"),V("u19","at2 u17 u18"),V("u20","+- u19 cd4 0"),V("u21","+- u19 0 cd4"),V("wtA","sin rw3 a3"),V("htA","cos rh3 a3"),V("dxA","cat2 rw3 htA wtA"),V("dyA","sat2 rh3 htA wtA"),V("xA","+- hc dxA 0"),V("yA","+- vc dyA 0"),V("wtE","sin rw1 a2"),V("htE","cos rh1 a2"),V("dxE","cat2 rw1 htE wtE"),V("dyE","sat2 rh1 htE wtE"),V("xE","+- hc dxE 0"),V("yE","+- vc dyE 0"),V("dxG","cos thh u20"),V("dyG","sin thh u20"),V("xG","+- xH dxG 0"),V("yG","+- yH dyG 0"),V("dxB","cos thh u21"),V("dyB","sin thh u21"),V("xB","+- xH dxB 0"),V("yB","+- yH dyB 0"),V("sw1","+- a3 0 a2"),V("sw2","+- a4 0 a3")],rect:Mv,pathLst:[{commands:[{kind:"moveTo",x:"xE",y:"yE"},{kind:"arcTo",wR:"rw1",hR:"rh1",stAng:"a2",swAng:"sw1"},{kind:"lnTo",x:"xG",y:"yG"},{kind:"lnTo",x:"xB",y:"yB"},{kind:"lnTo",x:"xA",y:"yA"},{kind:"arcTo",wR:"rw2",hR:"rh2",stAng:"a3",swAng:"-sw1"},{kind:"close"}]}]},b_e={name:"leftCircularArrow",avLst:{adj1:12500,adj2:189e5,adj3:1142319,adj4:108e5,adj5:12500},gdLst:[V("a1","pin 0 adj1 25000"),V("a2","pin 0 adj2 21599999"),V("a3","pin 0 adj3 21599999"),V("a4","pin 0 adj4 21599999"),V("a5","pin 0 adj5 25000"),V("th","*/ ss a1 100000"),V("thh","*/ ss a5 100000"),V("th2","*/ th 1 2"),V("rw1","+- wd2 0 th2"),V("rh1","+- hd2 0 th2"),V("rw2","+- rw1 0 thh"),V("rh2","+- rh1 0 thh"),V("rw3","+- rw2 th2 0"),V("rh3","+- rh2 th2 0"),V("wtH","sin rw3 a4"),V("htH","cos rh3 a4"),V("dxH","cat2 rw3 htH wtH"),V("dyH","sat2 rh3 htH wtH"),V("xH","+- hc dxH 0"),V("yH","+- vc dyH 0"),V("rI","min rw2 rh2"),V("u1","*/ dxH dxH 1"),V("u2","*/ dyH dyH 1"),V("u3","*/ rI rI 1"),V("u4","+- u1 0 u3"),V("u5","+- u2 0 u3"),V("u6","*/ u4 u5 u1"),V("u7","+- u6 0 u2"),V("u8","*/ u1 1 u2"),V("u9","+/ u7 u8 1"),V("u10","*/ u4 1 dxH"),V("u11","+- 0 0 u10"),V("u12","+/ 1 1 u9"),V("u13","sqrt u12"),V("u14","*/ u11 1 u13"),V("u15","?: u14 u14 0"),V("u16","+- u15 xH 0"),V("u17","+- yH 0 vc"),V("u18","+- u16 0 hc"),V("u19","at2 u17 u18"),V("u20","+- u19 cd4 0"),V("u21","+- u19 0 cd4"),V("wtA","sin rw3 a3"),V("htA","cos rh3 a3"),V("dxA","cat2 rw3 htA wtA"),V("dyA","sat2 rh3 htA wtA"),V("xA","+- hc dxA 0"),V("yA","+- vc dyA 0"),V("wtE","sin rw1 a2"),V("htE","cos rh1 a2"),V("dxE","cat2 rw1 htE wtE"),V("dyE","sat2 rh1 htE wtE"),V("xE","+- hc dxE 0"),V("yE","+- vc dyE 0"),V("dxG","cos thh u20"),V("dyG","sin thh u20"),V("xG","+- xH dxG 0"),V("yG","+- yH dyG 0"),V("dxB","cos thh u21"),V("dyB","sin thh u21"),V("xB","+- xH dxB 0"),V("yB","+- yH dyB 0"),V("sw1","+- a3 0 a2")],rect:Mv,pathLst:[{commands:[{kind:"moveTo",x:"xE",y:"yE"},{kind:"arcTo",wR:"rw1",hR:"rh1",stAng:"a2",swAng:"-sw1"},{kind:"lnTo",x:"xG",y:"yG"},{kind:"lnTo",x:"xB",y:"yB"},{kind:"lnTo",x:"xA",y:"yA"},{kind:"arcTo",wR:"rw2",hR:"rh2",stAng:"a3",swAng:"sw1"},{kind:"close"}]}]},v_e={name:"leftRightCircularArrow",avLst:{adj1:12500,adj2:1142319,adj3:20457681,adj4:11942319,adj5:12500},gdLst:[V("a1","pin 0 adj1 25000"),V("a2","pin 0 adj2 21599999"),V("a3","pin 0 adj3 21599999"),V("a4","pin 0 adj4 21599999"),V("a5","pin 0 adj5 25000"),V("th","*/ ss a1 100000"),V("thh","*/ ss a5 100000"),V("th2","*/ th 1 2"),V("rw1","+- wd2 0 th2"),V("rh1","+- hd2 0 th2"),V("rw2","+- rw1 0 thh"),V("rh2","+- rh1 0 thh"),V("rw3","+- rw2 th2 0"),V("rh3","+- rh2 th2 0"),V("wtH1","sin rw3 a2"),V("htH1","cos rh3 a2"),V("dxH1","cat2 rw3 htH1 wtH1"),V("dyH1","sat2 rh3 htH1 wtH1"),V("xH1","+- hc dxH1 0"),V("yH1","+- vc dyH1 0"),V("wtH2","sin rw3 a4"),V("htH2","cos rh3 a4"),V("dxH2","cat2 rw3 htH2 wtH2"),V("dyH2","sat2 rh3 htH2 wtH2"),V("xH2","+- hc dxH2 0"),V("yH2","+- vc dyH2 0"),V("wtS1","sin rw1 a2"),V("htS1","cos rh1 a2"),V("dxS1","cat2 rw1 htS1 wtS1"),V("dyS1","sat2 rh1 htS1 wtS1"),V("xS1","+- hc dxS1 0"),V("yS1","+- vc dyS1 0"),V("wtS2","sin rw1 a4"),V("htS2","cos rh1 a4"),V("dxS2","cat2 rw1 htS2 wtS2"),V("dyS2","sat2 rh1 htS2 wtS2"),V("xS2","+- hc dxS2 0"),V("yS2","+- vc dyS2 0"),V("wtT1","sin rw2 a2"),V("htT1","cos rh2 a2"),V("dxT1","cat2 rw2 htT1 wtT1"),V("dyT1","sat2 rh2 htT1 wtT1"),V("xT1","+- hc dxT1 0"),V("yT1","+- vc dyT1 0"),V("wtT2","sin rw2 a4"),V("htT2","cos rh2 a4"),V("dxT2","cat2 rw2 htT2 wtT2"),V("dyT2","sat2 rh2 htT2 wtT2"),V("xT2","+- hc dxT2 0"),V("yT2","+- vc dyT2 0"),V("sw","+- a4 0 a2")],rect:Mv,pathLst:[{commands:[{kind:"moveTo",x:"xH1",y:"yH1"},{kind:"lnTo",x:"xS1",y:"yS1"},{kind:"arcTo",wR:"rw1",hR:"rh1",stAng:"a2",swAng:"sw"},{kind:"lnTo",x:"xH2",y:"yH2"},{kind:"lnTo",x:"xT2",y:"yT2"},{kind:"arcTo",wR:"rw2",hR:"rh2",stAng:"a4",swAng:"-sw"},{kind:"lnTo",x:"xT1",y:"yT1"},{kind:"close"}]}]},S_e={name:"swooshArrow",avLst:{adj1:25e3,adj2:16667},gdLst:[V("a1","pin 1 adj1 75000"),V("a2","pin 0 adj2 33333"),V("ad1","*/ h a1 100000"),V("ad2","*/ ss a2 100000"),V("xB","+- r 0 ad2"),V("yB","+- t ad1 0"),V("alfa","*/ cd4 1 14"),V("dx0","tan ss alfa"),V("xC","+- xB 0 dx0"),V("dx1","tan ad1 alfa"),V("yF","+- yB ad1 0"),V("xF","+- xB dx1 0"),V("xE","+- xF dx0 0"),V("yE","+- yF ad1 0"),V("dy2","*/ ss 1 10"),V("yD","+- yE 0 dy2"),V("dy3","*/ ss 1 8"),V("yP1","+- t dy3 0"),V("xP1","*/ wd2 1 4"),V("dy4","*/ ss 1 80"),V("yP2","+- yB dy4 0"),V("xP2","*/ w 1 6")],rect:Mv,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"quadBezTo",x1:"xP1",y1:"yP1",x2:"xB",y2:"yB"},{kind:"lnTo",x:"xC",y:"t"},{kind:"lnTo",x:"r",y:"yD"},{kind:"lnTo",x:"xE",y:"yE"},{kind:"lnTo",x:"xF",y:"yF"},{kind:"quadBezTo",x1:"xP2",y1:"yP2",x2:"l",y2:"b"},{kind:"close"}]}]},w_e={name:"curvedRightArrow",avLst:{adj1:25e3,adj2:5e4,adj3:25e3},gdLst:[V("a1","pin 0 adj1 100000"),V("a2","pin 0 adj2 100000"),V("a3","pin 0 adj3 100000"),V("th","*/ h a1 100000"),V("th2","*/ th 1 2"),V("aw","*/ h a2 100000"),V("aw2","*/ aw 1 2"),V("hl","*/ w a3 100000"),V("y1","+- th 0 0"),V("y2","+- y1 th2 0"),V("y3","+- y2 th2 0"),V("y4","+- y3 aw2 0"),V("y5","+- b 0 aw2"),V("y6","+- y5 aw2 0"),V("x1","+- r 0 hl"),V("dx","+- r 0 l"),V("cx1","*/ dx 1 2"),V("cx2","*/ dx 3 4")],rect:Mv,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"cubicBezTo",x1:"cx1",y1:"t",x2:"x1",y2:"y2",x3:"x1",y3:"y3"},{kind:"lnTo",x:"x1",y:"y4"},{kind:"lnTo",x:"r",y:"y5"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"x1",y:"y6"},{kind:"cubicBezTo",x1:"cx2",y1:"b",x2:"cx1",y2:"y1",x3:"l",y3:"y1"},{kind:"close"}]}]},T_e={bentArrow:m_e,bentUpArrow:g_e,uturnArrow:x_e,circularArrow:y_e,leftCircularArrow:b_e,leftRightCircularArrow:v_e,swooshArrow:S_e,curvedRightArrow:w_e};PM={l:"l",t:"t",r:"r",b:"b"},C_e={name:"curvedConnector2",rect:PM,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"cubicBezTo",x1:"hc",y1:"t",x2:"r",y2:"vc",x3:"r",y3:"b"}]}]},M_e={name:"curvedConnector3",avLst:{adj1:5e4},gdLst:[je("a1","pin 0 adj1 100000"),je("x2","*/ w a1 100000"),je("x1","*/ x2 1 2"),je("x4","+- r 0 x2"),je("x5","*/ x4 1 2"),je("x6","+- x2 x5 0")],rect:PM,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"cubicBezTo",x1:"x1",y1:"t",x2:"x2",y2:"vc",x3:"x2",y3:"vc"},{kind:"cubicBezTo",x1:"x2",y1:"vc",x2:"x6",y2:"b",x3:"r",y3:"b"}]}]},P_e={name:"curvedConnector4",avLst:{adj1:5e4,adj2:5e4},gdLst:[je("a1","pin 0 adj1 100000"),je("a2","pin 0 adj2 100000"),je("x2","*/ w a1 100000"),je("x4","*/ w a2 100000"),je("y2","*/ h 33333 100000"),je("y4","*/ h 66667 100000"),je("x1","*/ x2 1 2"),je("x3","*/ x4 1 2"),je("x5","+- r 0 x4"),je("x6","*/ x5 1 2"),je("x7","+- x4 x6 0")],rect:PM,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"cubicBezTo",x1:"x1",y1:"t",x2:"x2",y2:"y2",x3:"x2",y3:"y2"},{kind:"cubicBezTo",x1:"x2",y1:"y2",x2:"x3",y2:"vc",x3:"x4",y3:"y4"},{kind:"cubicBezTo",x1:"x4",y1:"y4",x2:"x7",y2:"b",x3:"r",y3:"b"}]}]},__e={name:"curvedConnector5",avLst:{adj1:5e4,adj2:5e4,adj3:5e4},gdLst:[je("a1","pin 0 adj1 100000"),je("a2","pin 0 adj2 100000"),je("a3","pin 0 adj3 100000"),je("x2","*/ w a1 100000"),je("x4","*/ w a2 100000"),je("x6","*/ w a3 100000"),je("y2","*/ h 25000 100000"),je("y4","*/ h 50000 100000"),je("y6","*/ h 75000 100000"),je("x1","*/ x2 1 2"),je("x3","*/ x4 1 2"),je("x5","*/ x6 1 2"),je("x7","+- r 0 x6"),je("x8","*/ x7 1 2"),je("x9","+- x6 x8 0")],rect:PM,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"cubicBezTo",x1:"x1",y1:"t",x2:"x2",y2:"y2",x3:"x2",y3:"y2"},{kind:"cubicBezTo",x1:"x2",y1:"y2",x2:"x3",y2:"y4",x3:"x4",y3:"y4"},{kind:"cubicBezTo",x1:"x4",y1:"y4",x2:"x5",y2:"y6",x3:"x6",y3:"y6"},{kind:"cubicBezTo",x1:"x6",y1:"y6",x2:"x9",y2:"b",x3:"r",y3:"b"}]}]},E_e={name:"leftBracket",avLst:{adj:8333},gdLst:[je("a","pin 0 adj 50000"),je("r1","*/ ss a 100000"),je("y1","+- t r1 0"),je("y2","+- b 0 r1")],rect:{l:"l",t:"y1",r:"r",b:"y2"},pathLst:[{stroke:true,commands:[{kind:"moveTo",x:"r",y:"t"},{kind:"lnTo",x:"r1",y:"t"},{kind:"arcTo",wR:"r1",hR:"r1",stAng:"3cd4",swAng:"-5400000"},{kind:"lnTo",x:"l",y:"y2"},{kind:"arcTo",wR:"r1",hR:"r1",stAng:"cd2",swAng:"-5400000"},{kind:"lnTo",x:"r",y:"b"}]}]},A_e={name:"rightBracket",avLst:{adj:8333},gdLst:[je("a","pin 0 adj 50000"),je("r1","*/ ss a 100000"),je("x1","+- r 0 r1"),je("y1","+- t r1 0"),je("y2","+- b 0 r1")],rect:{l:"l",t:"y1",r:"r",b:"y2"},pathLst:[{stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"arcTo",wR:"r1",hR:"r1",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"y2"},{kind:"arcTo",wR:"r1",hR:"r1",stAng:"0",swAng:"cd4"},{kind:"lnTo",x:"l",y:"b"}]}]},R_e={name:"leftBrace",avLst:{adj1:8333,adj2:5e4},gdLst:[je("a1","pin 0 adj1 50000"),je("a2","pin 0 adj2 100000"),je("q1","*/ ss a1 100000"),je("q2","+- 100000 0 a2"),je("q3","*/ q2 1 2"),je("y1","*/ h q3 100000"),je("y3","+- b 0 y1"),je("y2","+- y1 q1 0"),je("y4","+- y3 0 q1")],rect:{l:"r",t:"t",r:"r",b:"b"},pathLst:[{stroke:true,commands:[{kind:"moveTo",x:"r",y:"t"},{kind:"lnTo",x:"q1",y:"t"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"3cd4",swAng:"-5400000"},{kind:"lnTo",x:"l",y:"y2"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"0",swAng:"-5400000"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"cd4",swAng:"-5400000"},{kind:"lnTo",x:"l",y:"y4"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"cd2",swAng:"-5400000"},{kind:"lnTo",x:"q1",y:"b"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"cd4",swAng:"-5400000"},{kind:"close"}]}]},k_e={name:"rightBrace",avLst:{adj1:8333,adj2:5e4},gdLst:[je("a1","pin 0 adj1 50000"),je("a2","pin 0 adj2 100000"),je("q1","*/ ss a1 100000"),je("q2","+- 100000 0 a2"),je("q3","*/ q2 1 2"),je("y1","*/ h q3 100000"),je("y3","+- b 0 y1"),je("y2","+- y1 q1 0"),je("y4","+- y3 0 q1"),je("x1","+- r 0 q1")],rect:{l:"l",t:"t",r:"l",b:"b"},pathLst:[{stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"y2"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"y4"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"0",swAng:"cd4"},{kind:"lnTo",x:"x1",y:"b"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"cd4",swAng:"cd4"},{kind:"close"}]}]},I_e={name:"bracketPair",avLst:{adj:16667},gdLst:[je("a","pin 0 adj 50000"),je("r1","*/ ss a 100000"),je("x1","+- l r1 0"),je("x2","+- r 0 r1"),je("y1","+- t r1 0"),je("y2","+- b 0 r1")],rect:{l:"x1",t:"y1",r:"x2",b:"y2"},pathLst:[{stroke:true,commands:[{kind:"moveTo",x:"x1",y:"t"},{kind:"arcTo",wR:"r1",hR:"r1",stAng:"3cd4",swAng:"-5400000"},{kind:"lnTo",x:"l",y:"y2"},{kind:"arcTo",wR:"r1",hR:"r1",stAng:"cd2",swAng:"-5400000"},{kind:"moveTo",x:"x2",y:"t"},{kind:"arcTo",wR:"r1",hR:"r1",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"y2"},{kind:"arcTo",wR:"r1",hR:"r1",stAng:"0",swAng:"cd4"}]}]},N_e={name:"bracePair",avLst:{adj:8333},gdLst:[je("a","pin 0 adj 25000"),je("q1","*/ ss a 100000"),je("q2","*/ h 1 2"),je("y1","+- vc 0 q1"),je("y2","+- vc q1 0"),je("x2","+- l q1 0"),je("x3","+- r 0 q1"),je("y3","+- t q1 0"),je("y4","+- b 0 q1")],rect:{l:"x2",t:"y3",r:"x3",b:"y4"},pathLst:[{stroke:true,commands:[{kind:"moveTo",x:"x2",y:"t"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"3cd4",swAng:"-5400000"},{kind:"lnTo",x:"l",y:"y1"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"0",swAng:"-5400000"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"cd4",swAng:"-5400000"},{kind:"lnTo",x:"l",y:"y4"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"cd2",swAng:"-5400000"},{kind:"moveTo",x:"x3",y:"t"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"y1"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"y4"},{kind:"arcTo",wR:"q1",hR:"q1",stAng:"0",swAng:"cd4"}]}]},D_e={curvedConnector2:C_e,curvedConnector3:M_e,curvedConnector4:P_e,curvedConnector5:__e,leftBracket:E_e,rightBracket:A_e,leftBrace:R_e,rightBrace:k_e,bracketPair:I_e,bracePair:N_e};rc={l:"l",t:"t",r:"r",b:"b"},L_e={name:"curvedDownArrow",avLst:{adj1:25e3,adj2:5e4,adj3:25e3},gdLst:[cn("a1","pin 0 adj1 100000"),cn("a2","pin 0 adj2 100000"),cn("a3","pin 0 adj3 100000"),cn("th","*/ ss a1 100000"),cn("hl","*/ h a3 100000"),cn("y1","+- b 0 hl"),cn("x1","*/ w a2 100000")],rect:rc,pathLst:[{fill:"norm",stroke:true,commands:[{kind:"moveTo",x:"r",y:"t"},{kind:"quadBezTo",x1:"l",y1:"vc",x2:"x1",y2:"y1"},{kind:"lnTo",x:"l",y:"y1"},{kind:"lnTo",x:"hc",y:"b"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"quadBezTo",x1:"r",y1:"vc",x2:"r",y2:"t"},{kind:"close"}]}]},F_e={name:"curvedLeftArrow",avLst:{adj1:25e3,adj2:5e4,adj3:25e3},gdLst:[cn("a1","pin 0 adj1 100000"),cn("a2","pin 0 adj2 100000"),cn("a3","pin 0 adj3 100000"),cn("th","*/ ss a1 100000"),cn("hl","*/ w a3 100000"),cn("x1","+- l 0 0"),cn("x2","*/ w a3 100000"),cn("y1","*/ h a2 100000")],rect:rc,pathLst:[{fill:"norm",stroke:true,commands:[{kind:"moveTo",x:"r",y:"b"},{kind:"quadBezTo",x1:"hc",y1:"t",x2:"x2",y2:"y1"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"l",y:"vc"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"quadBezTo",x1:"hc",y1:"b",x2:"r",y2:"b"},{kind:"close"}]}]},O_e={name:"curvedUpArrow",avLst:{adj1:25e3,adj2:5e4,adj3:25e3},gdLst:[cn("a1","pin 0 adj1 100000"),cn("a2","pin 0 adj2 100000"),cn("a3","pin 0 adj3 100000"),cn("th","*/ ss a1 100000"),cn("hl","*/ h a3 100000"),cn("y1","*/ h a3 100000"),cn("x1","*/ w a2 100000")],rect:rc,pathLst:[{fill:"norm",stroke:true,commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"quadBezTo",x1:"r",y1:"vc",x2:"x1",y2:"y1"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"l",y:"y1"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"quadBezTo",x1:"l",y1:"vc",x2:"l",y2:"b"},{kind:"close"}]}]},B_e={name:"line",rect:rc,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"b"}]}]},U_e={name:"lineInv",rect:rc,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"r",y:"t"},{kind:"lnTo",x:"l",y:"b"}]}]},$_e={name:"straightConnector1",rect:rc,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"b"}]}]},H_e={name:"bentConnector2",rect:rc,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"}]}]},z_e={name:"bentConnector3",avLst:{adj1:5e4},gdLst:[cn("a1","pin 0 adj1 100000"),cn("x1","*/ w a1 100000")],rect:rc,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"r",y:"b"}]}]},V_e={name:"bentConnector4",avLst:{adj1:5e4,adj2:5e4},gdLst:[cn("a1","pin 0 adj1 100000"),cn("a2","pin 0 adj2 100000"),cn("x1","*/ w a1 100000"),cn("y1","*/ h a2 100000")],rect:rc,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"r",y:"b"}]}]},G_e={name:"bentConnector5",avLst:{adj1:5e4,adj2:5e4,adj3:5e4},gdLst:[cn("a1","pin 0 adj1 100000"),cn("a2","pin 0 adj2 100000"),cn("a3","pin 0 adj3 100000"),cn("x1","*/ w a1 100000"),cn("y1","*/ h a2 100000"),cn("x2","*/ w a3 100000")],rect:rc,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"r",y:"b"}]}]},W_e={curvedDownArrow:L_e,curvedLeftArrow:F_e,curvedUpArrow:O_e,line:B_e,lineInv:U_e,straightConnector1:$_e,bentConnector2:H_e,bentConnector3:z_e,bentConnector4:V_e,bentConnector5:G_e};e0={l:"l",t:"t",r:"r",b:"b"},X_e={name:"flowChartProcess",rect:e0,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},j_e={name:"flowChartDecision",gdLst:[$e("ir","*/ wd2 3 4"),$e("ib","*/ hd2 3 4")],rect:{l:"wd4",t:"hd4",r:"ir",b:"ib"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"hc",y:"b"},{kind:"close"}]}]},Y_e={name:"flowChartAlternateProcess",gdLst:[$e("x1","*/ ss 1 6"),$e("x2","+- r 0 x1"),$e("y2","+- b 0 x1")],rect:e0,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"x1"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"cd2",swAng:"cd4"},{kind:"lnTo",x:"x2",y:"t"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"y2"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"0",swAng:"cd4"},{kind:"lnTo",x:"x1",y:"b"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"cd4",swAng:"cd4"},{kind:"close"}]}]},q_e={name:"flowChartPredefinedProcess",gdLst:[$e("x2","*/ w 1 8"),$e("x3","*/ w 7 8")],rect:{l:"x2",t:"t",r:"x3",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"},{kind:"moveTo",x:"x2",y:"t"},{kind:"lnTo",x:"x2",y:"b"},{kind:"moveTo",x:"x3",y:"t"},{kind:"lnTo",x:"x3",y:"b"}]}]},K_e={name:"flowChartInternalStorage",gdLst:[$e("x2","*/ w 1 8"),$e("y2","*/ h 1 8")],rect:{l:"x2",t:"y2",r:"r",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"},{kind:"moveTo",x:"x2",y:"t"},{kind:"lnTo",x:"x2",y:"b"},{kind:"moveTo",x:"l",y:"y2"},{kind:"lnTo",x:"r",y:"y2"}]}]},Z_e={name:"flowChartDocument",gdLst:[$e("y1","*/ h 17322 21600"),$e("y2","*/ h 20172 21600"),$e("y3","*/ h 23922 21600"),$e("x1","*/ w 9722 21600"),$e("x2","*/ w 11612 21600")],rect:{l:"l",t:"t",r:"r",b:"y1"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"y1"},{kind:"cubicBezTo",x1:"x2",y1:"y3",x2:"x1",y2:"y2",x3:"l",y3:"y1"},{kind:"close"}]}]},J_e={name:"flowChartMultidocument",gdLst:[$e("y1","*/ h 18022 21600"),$e("y2","*/ h 3675 21600"),$e("y3","*/ h 23542 21600"),$e("y4","*/ h 1815 21600"),$e("y5","*/ h 16252 21600"),$e("y6","*/ h 16352 21600"),$e("y7","*/ h 14392 21600"),$e("y8","*/ h 20782 21600"),$e("y9","*/ h 14467 21600"),$e("x1","*/ w 1532 21600"),$e("x2","*/ w 20465 21600"),$e("x3","*/ w 9722 21600"),$e("x4","*/ w 11612 21600"),$e("x5","*/ w 2452 21600"),$e("x6","*/ w 3027 21600"),$e("x7","*/ w 3192 21600"),$e("x8","*/ w 20342 21600"),$e("x9","*/ w 18512 21600")],rect:{l:"l",t:"y2",r:"x2",b:"y6"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"cubicBezTo",x1:"x4",y1:"y3",x2:"x3",y2:"y8",x3:"l",y3:"y1"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"x5",y:"y2"},{kind:"lnTo",x:"x5",y:"y4"},{kind:"lnTo",x:"x8",y:"y4"},{kind:"lnTo",x:"x8",y:"y7"},{kind:"lnTo",x:"x2",y:"y7"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"close"}],fill:"darken"},{commands:[{kind:"moveTo",x:"x7",y:"y4"},{kind:"lnTo",x:"x7",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"y9"},{kind:"lnTo",x:"x9",y:"y9"},{kind:"lnTo",x:"x9",y:"y4"},{kind:"close"}],fill:"darken"}]},Q_e={name:"flowChartTerminator",gdLst:[$e("x1","*/ w 1075 21600"),$e("x2","*/ w 20525 21600"),$e("y1","*/ h 17467 21600"),$e("y2","*/ h 4135 21600")],rect:{l:"x1",t:"t",r:"x2",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"x1",hR:"hd2",stAng:"cd2",swAng:"cd4"},{kind:"lnTo",x:"x2",y:"t"},{kind:"arcTo",wR:"x1",hR:"hd2",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"x2",y:"b"},{kind:"arcTo",wR:"x1",hR:"hd2",stAng:"0",swAng:"cd4"},{kind:"lnTo",x:"x1",y:"b"},{kind:"arcTo",wR:"x1",hR:"hd2",stAng:"cd4",swAng:"cd4"},{kind:"close"}]}]},eEe={name:"flowChartPreparation",gdLst:[$e("x2","*/ w 4175 21600"),$e("x3","*/ w 17425 21600")],rect:{l:"x2",t:"t",r:"x3",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"x3",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"close"}]}]},tEe={name:"flowChartManualInput",gdLst:[$e("y1","*/ h 4118 21600")],rect:{l:"l",t:"y1",r:"r",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},nEe={name:"flowChartManualOperation",gdLst:[$e("x1","*/ w 4137 21600"),$e("x2","*/ w 17463 21600")],rect:{l:"x1",t:"t",r:"x2",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x1",y:"b"},{kind:"close"}]}]},rEe={name:"flowChartConnector",gdLst:[$e("idx","*/ ss 3 4"),$e("idy","*/ ss 3 4")],rect:e0,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd4",swAng:"cd4"},{kind:"close"}]}]},oEe={name:"flowChartOffpageConnector",gdLst:[$e("y1","*/ h 17567 21600")],rect:{l:"l",t:"t",r:"r",b:"y1"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"hc",y:"b"},{kind:"lnTo",x:"l",y:"y1"},{kind:"close"}]}]},iEe={name:"flowChartPunchedCard",gdLst:[$e("x1","*/ w 4140 21600"),$e("y1","*/ h 4140 21600")],rect:{l:"l",t:"y1",r:"r",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},sEe={name:"flowChartPunchedTape",gdLst:[$e("y1","*/ h 2230 21600"),$e("y2","*/ h 19370 21600"),$e("xc1","*/ w 5400 21600"),$e("xc2","*/ w 16200 21600"),$e("yt1","*/ h 4470 21600"),$e("yt2","*/ h 0 21600"),$e("yb1","*/ h 17130 21600"),$e("yb2","*/ h 21600 21600")],rect:{l:"l",t:"y1",r:"r",b:"y2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"cubicBezTo",x1:"xc1",y1:"yt2",x2:"xc1",y2:"yt1",x3:"hc",y3:"y1"},{kind:"cubicBezTo",x1:"xc2",y1:"yt1",x2:"xc2",y2:"yt2",x3:"r",y3:"y1"},{kind:"lnTo",x:"r",y:"y2"},{kind:"cubicBezTo",x1:"xc2",y1:"yb2",x2:"xc2",y2:"yb1",x3:"hc",y3:"y2"},{kind:"cubicBezTo",x1:"xc1",y1:"yb1",x2:"xc1",y2:"yb2",x3:"l",y3:"y2"},{kind:"close"}]}]},aEe={name:"flowChartSummingJunction",gdLst:[$e("idx","*/ wd2 3 4"),$e("idy","*/ hd2 3 4"),$e("il","+- hc 0 idx"),$e("ir","+- hc idx 0"),$e("it","+- vc 0 idy"),$e("ib","+- vc idy 0")],rect:e0,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd4",swAng:"cd4"},{kind:"close"},{kind:"moveTo",x:"il",y:"it"},{kind:"lnTo",x:"ir",y:"ib"},{kind:"moveTo",x:"ir",y:"it"},{kind:"lnTo",x:"il",y:"ib"}]}]},lEe={name:"flowChartOr",rect:e0,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd4",swAng:"cd4"},{kind:"close"},{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"r",y:"vc"},{kind:"moveTo",x:"hc",y:"t"},{kind:"lnTo",x:"hc",y:"b"}]}]},cEe={name:"flowChartCollate",gdLst:[$e("ir","*/ wd2 3 4"),$e("ib","*/ hd2 3 4")],rect:{l:"wd4",t:"hd4",r:"ir",b:"ib"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"l",y:"b"},{kind:"lnTo",x:"r",y:"b"},{kind:"close"}]}]},dEe={name:"flowChartSort",gdLst:[$e("ir","*/ wd2 3 4"),$e("ib","*/ hd2 3 4")],rect:{l:"wd4",t:"hd4",r:"ir",b:"ib"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"hc",y:"b"},{kind:"close"},{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"r",y:"vc"}]}]},uEe={name:"flowChartExtract",gdLst:[$e("x1","*/ w 3 4"),$e("x2","*/ w 1 4")],rect:{l:"x2",t:"hd2",r:"x1",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"hc",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},pEe={name:"flowChartMerge",gdLst:[$e("x1","*/ w 3 4"),$e("x2","*/ w 1 4")],rect:{l:"x2",t:"t",r:"x1",b:"hd2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"hc",y:"b"},{kind:"close"}]}]},hEe={name:"flowChartOnlineStorage",gdLst:[$e("x2","*/ w 5 6")],rect:{l:"wd6",t:"t",r:"x2",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x2",y:"t"},{kind:"arcTo",wR:"wd6",hR:"hd2",stAng:"3cd4",swAng:"cd2"},{kind:"lnTo",x:"l",y:"b"},{kind:"arcTo",wR:"wd6",hR:"hd2",stAng:"cd4",swAng:"-10800000"},{kind:"close"}]}]},fEe={name:"flowChartMagneticDisk",gdLst:[$e("y3","*/ h 1 8"),$e("y4","*/ h 7 8")],rect:{l:"l",t:"y3",r:"r",b:"y4"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y3"},{kind:"arcTo",wR:"wd2",hR:"hd8",stAng:"cd2",swAng:"-10800000"},{kind:"lnTo",x:"r",y:"y4"},{kind:"arcTo",wR:"wd2",hR:"hd8",stAng:"0",swAng:"cd2"},{kind:"close"},{kind:"moveTo",x:"l",y:"y3"},{kind:"arcTo",wR:"wd2",hR:"hd8",stAng:"cd2",swAng:"cd2"}]}]},mEe={name:"flowChartMagneticDrum",gdLst:[$e("x3","*/ w 1 8"),$e("x4","*/ w 7 8")],rect:{l:"x3",t:"t",r:"x4",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"x3",y:"t"},{kind:"lnTo",x:"x4",y:"t"},{kind:"arcTo",wR:"wd8",hR:"hd2",stAng:"3cd4",swAng:"cd2"},{kind:"lnTo",x:"x3",y:"b"},{kind:"arcTo",wR:"wd8",hR:"hd2",stAng:"cd4",swAng:"cd2"},{kind:"close"},{kind:"moveTo",x:"x3",y:"t"},{kind:"arcTo",wR:"wd8",hR:"hd2",stAng:"3cd4",swAng:"-10800000"}]}]},gEe={name:"flowChartMagneticTape",gdLst:[$e("idx","*/ ss 3 4"),$e("idy","*/ ss 3 4"),$e("ang1","val 2700000"),$e("ang2","val 18900000")],rect:e0,pathLst:[{commands:[{kind:"moveTo",x:"r",y:"b"},{kind:"lnTo",x:"r",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"-16200000"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"b"},{kind:"close"}]}]},xEe={name:"flowChartDisplay",gdLst:[$e("x1","*/ w 1 6"),$e("x2","*/ w 5 6")],rect:{l:"x1",t:"t",r:"x2",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x2",y:"t"},{kind:"arcTo",wR:"wd6",hR:"hd2",stAng:"3cd4",swAng:"cd2"},{kind:"lnTo",x:"x1",y:"b"},{kind:"close"}]}]},yEe={name:"flowChartDelay",gdLst:[$e("x1","*/ w 1 2")],rect:{l:"l",t:"t",r:"x1",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"hc",y:"t"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"3cd4",swAng:"cd2"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},bEe={name:"flowChartStoredData",gdLst:[$e("x1","*/ w 1 6"),$e("x2","*/ w 5 6")],rect:{l:"x1",t:"t",r:"x2",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"x1",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"arcTo",wR:"wd6",hR:"hd2",stAng:"3cd4",swAng:"cd2"},{kind:"lnTo",x:"x1",y:"b"},{kind:"arcTo",wR:"wd6",hR:"hd2",stAng:"cd4",swAng:"-10800000"},{kind:"close"}]}]},vEe={flowChartProcess:X_e,flowChartDecision:j_e,flowChartAlternateProcess:Y_e,flowChartPredefinedProcess:q_e,flowChartInternalStorage:K_e,flowChartDocument:Z_e,flowChartMultidocument:J_e,flowChartTerminator:Q_e,flowChartPreparation:eEe,flowChartManualInput:tEe,flowChartManualOperation:nEe,flowChartConnector:rEe,flowChartOffpageConnector:oEe,flowChartPunchedCard:iEe,flowChartPunchedTape:sEe,flowChartSummingJunction:aEe,flowChartOr:lEe,flowChartCollate:cEe,flowChartSort:dEe,flowChartExtract:uEe,flowChartMerge:pEe,flowChartOnlineStorage:hEe,flowChartMagneticDisk:fEe,flowChartMagneticDrum:mEe,flowChartMagneticTape:gEe,flowChartDisplay:xEe,flowChartDelay:yEe,flowChartStoredData:bEe};vd={l:"l",t:"t",r:"r",b:"b"};wEe=rp(6,28868),TEe=rp(7,34601),CEe=rp(8,37500),MEe=rp(10,42533),PEe=rp(12,37500),_Ee=rp(16,37500),EEe=rp(24,37500),AEe=rp(32,37500),REe={name:"ribbon",avLst:{adj1:16667,adj2:5e4},gdLst:[Y("a1","pin 0 adj1 33333"),Y("a2","pin 25000 adj2 75000"),Y("x10","+- r 0 wd8"),Y("dx2","*/ w a2 200000"),Y("x2","+- hc 0 dx2"),Y("x9","+- hc dx2 0"),Y("x3","+- x2 wd32 0"),Y("x8","+- x9 0 wd32"),Y("x5","+- x2 wd8 0"),Y("x6","+- x9 0 wd8"),Y("x4","+- x5 0 wd32"),Y("x7","+- x6 wd32 0"),Y("y1","*/ h a1 200000"),Y("y2","*/ h a1 100000"),Y("y4","+- b 0 y2"),Y("y3","+- y4 0 y1")],rect:{l:"x2",t:"t",r:"x9",b:"y4"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"wd8",y:"y3"},{kind:"lnTo",x:"l",y:"y3"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"x9",y:"t"},{kind:"lnTo",x:"r",y:"y3"},{kind:"lnTo",x:"x10",y:"y3"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"x7",y:"b"},{kind:"lnTo",x:"x8",y:"y4"},{kind:"lnTo",x:"x3",y:"y4"},{kind:"lnTo",x:"x4",y:"b"},{kind:"close"}]}]},kEe={name:"ribbon2",avLst:{adj1:16667,adj2:5e4},gdLst:[Y("a1","pin 0 adj1 33333"),Y("a2","pin 25000 adj2 75000"),Y("x10","+- r 0 wd8"),Y("dx2","*/ w a2 200000"),Y("x2","+- hc 0 dx2"),Y("x9","+- hc dx2 0"),Y("x3","+- x2 wd32 0"),Y("x8","+- x9 0 wd32"),Y("x5","+- x2 wd8 0"),Y("x6","+- x9 0 wd8"),Y("x4","+- x5 0 wd32"),Y("x7","+- x6 wd32 0"),Y("y1","*/ h a1 200000"),Y("y2","*/ h a1 100000"),Y("y3","+- t y2 0"),Y("y4","+- t y1 y2")],rect:{l:"x2",t:"y3",r:"x9",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x4",y:"t"},{kind:"lnTo",x:"x3",y:"y4"},{kind:"lnTo",x:"x8",y:"y4"},{kind:"lnTo",x:"x7",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"x10",y:"y3"},{kind:"lnTo",x:"r",y:"y3"},{kind:"lnTo",x:"x9",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"l",y:"y3"},{kind:"lnTo",x:"wd8",y:"y3"},{kind:"close"}]}]},IEe={name:"ellipseRibbon",avLst:{adj1:25e3,adj2:5e4,adj3:12500},gdLst:[Y("a1","pin 0 adj1 100000"),Y("a2","pin 25000 adj2 75000"),Y("a3","pin 0 adj3 50000"),Y("q10","+- 100000 0 a1"),Y("q11","*/ q10 1 2"),Y("q12","+- a1 0 q11"),Y("minAdj3","*/ q12 -1 1"),Y("aa3","pin minAdj3 a3 a1"),Y("dx2","*/ w a2 200000"),Y("x2","+- hc 0 dx2"),Y("x9","+- hc dx2 0"),Y("x3","+- x2 wd32 0"),Y("x8","+- x9 0 wd32"),Y("x5","+- x2 wd8 0"),Y("x6","+- x9 0 wd8"),Y("x4","+- x5 0 wd32"),Y("x7","+- x6 wd32 0"),Y("x1","+- l wd8 0"),Y("x10","+- r 0 wd8"),Y("y1","*/ h a3 100000"),Y("y3","*/ h a1 100000"),Y("y2","+- y3 0 y1"),Y("u1","*/ y3 1 2"),Y("y4","+- b 0 u1")],rect:{l:"x2",t:"t",r:"x9",b:"y4"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"lnTo",x:"x2",y:"y3"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"x9",y:"t"},{kind:"lnTo",x:"x9",y:"y3"},{kind:"lnTo",x:"x10",y:"y2"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"x7",y:"b"},{kind:"lnTo",x:"x8",y:"y4"},{kind:"lnTo",x:"x3",y:"y4"},{kind:"lnTo",x:"x4",y:"b"},{kind:"close"}]}]},NEe={name:"ellipseRibbon2",avLst:{adj1:25e3,adj2:5e4,adj3:12500},gdLst:[Y("a1","pin 0 adj1 100000"),Y("a2","pin 25000 adj2 75000"),Y("a3","pin 0 adj3 50000"),Y("dx2","*/ w a2 200000"),Y("x2","+- hc 0 dx2"),Y("x9","+- hc dx2 0"),Y("x3","+- x2 wd32 0"),Y("x8","+- x9 0 wd32"),Y("x5","+- x2 wd8 0"),Y("x6","+- x9 0 wd8"),Y("x4","+- x5 0 wd32"),Y("x7","+- x6 wd32 0"),Y("x1","+- l wd8 0"),Y("x10","+- r 0 wd8"),Y("y1","+- b 0 hd8"),Y("y3","*/ h a1 100000"),Y("y4","+- b 0 y3"),Y("y5","+- y4 hd8 0"),Y("y6","+- t hd16 0")],rect:{l:"x2",t:"y3",r:"x9",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x4",y:"t"},{kind:"lnTo",x:"x3",y:"y6"},{kind:"lnTo",x:"x8",y:"y6"},{kind:"lnTo",x:"x7",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"x10",y:"y4"},{kind:"lnTo",x:"x9",y:"y5"},{kind:"lnTo",x:"x9",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x2",y:"y5"},{kind:"lnTo",x:"x1",y:"y4"},{kind:"close"}]}]},DEe={name:"leftRightRibbon",avLst:{adj1:5e4,adj2:5e4,adj3:16667},gdLst:[Y("a3","pin 0 adj3 75000"),Y("a1","pin 0 adj1 100000"),Y("w1","*/ w a3 200000"),Y("a2","pin 25000 adj2 75000"),Y("x1","+- l hd8 0"),Y("x4","+- r 0 hd8"),Y("dy2","*/ h a1 200000"),Y("y2","+- vc 0 dy2"),Y("y3","+- vc dy2 0"),Y("y1","+- y2 hd16 0"),Y("y4","+- y3 0 hd16"),Y("x2","+- l w1 0"),Y("x3","+- r 0 w1"),Y("x5","+- x2 hd8 0"),Y("x6","+- x3 0 hd8")],rect:{l:"x2",t:"y2",r:"x3",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"x3",y:"t"},{kind:"lnTo",x:"x3",y:"y1"},{kind:"lnTo",x:"x4",y:"y1"},{kind:"lnTo",x:"x4",y:"y2"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x4",y:"y3"},{kind:"lnTo",x:"x4",y:"y4"},{kind:"lnTo",x:"x3",y:"y4"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x2",y:"y4"},{kind:"lnTo",x:"x1",y:"y4"},{kind:"lnTo",x:"x1",y:"y3"},{kind:"close"}]}]};h9={name:"callout1",avLst:{adj1:18750,adj2:-8333,adj3:112500,adj4:-38333},gdLst:[Y("y1","*/ h adj1 100000"),Y("x1","*/ w adj2 100000"),Y("y2","*/ h adj3 100000"),Y("x2","*/ w adj4 100000")],rect:vd,pathLst:[{commands:t0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"}]}]},N5={name:"callout2",avLst:{adj1:18750,adj2:-8333,adj3:18750,adj4:-16667,adj5:112500,adj6:-38333},gdLst:[Y("y1","*/ h adj1 100000"),Y("x1","*/ w adj2 100000"),Y("y2","*/ h adj3 100000"),Y("x2","*/ w adj4 100000"),Y("y3","*/ h adj5 100000"),Y("x3","*/ w adj6 100000")],rect:vd,pathLst:[{commands:t0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x3",y:"y3"}]}]},D5={name:"callout3",avLst:{adj1:18750,adj2:-8333,adj3:18750,adj4:-16667,adj5:1e5,adj6:-16667,adj7:112500,adj8:-38333},gdLst:[Y("y1","*/ h adj1 100000"),Y("x1","*/ w adj2 100000"),Y("y2","*/ h adj3 100000"),Y("x2","*/ w adj4 100000"),Y("y3","*/ h adj5 100000"),Y("x3","*/ w adj6 100000"),Y("y4","*/ h adj7 100000"),Y("x4","*/ w adj8 100000")],rect:vd,pathLst:[{commands:t0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x3",y:"y3"},{kind:"lnTo",x:"x4",y:"y4"}]}]},LEe={name:"borderCallout1",avLst:{adj1:18750,adj2:-8333,adj3:112500,adj4:-38333},gdLst:h9.gdLst,rect:vd,pathLst:[{stroke:true,commands:t0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"}]}]},FEe={name:"borderCallout2",avLst:N5.avLst,gdLst:N5.gdLst,rect:vd,pathLst:[{stroke:true,commands:t0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x3",y:"y3"}]}]},OEe={name:"borderCallout3",avLst:D5.avLst,gdLst:D5.gdLst,rect:vd,pathLst:[{stroke:true,commands:t0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x3",y:"y3"},{kind:"lnTo",x:"x4",y:"y4"}]}]},BEe={name:"cloud",rect:{l:"wd16",t:"hd16",r:"r",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"wd8",y:"vc"},{kind:"arcTo",wR:"wd16",hR:"hd8",stAng:"cd2",swAng:"cd2"},{kind:"arcTo",wR:"wd16",hR:"hd8",stAng:"17400000",swAng:"6000000"},{kind:"arcTo",wR:"wd8",hR:"hd8",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"wd16",hR:"hd8",stAng:"14400000",swAng:"6000000"},{kind:"arcTo",wR:"wd8",hR:"hd8",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"wd16",hR:"hd8",stAng:"21000000",swAng:"6000000"},{kind:"arcTo",wR:"wd8",hR:"hd8",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"wd16",hR:"hd8",stAng:"3000000",swAng:"6000000"},{kind:"close"}]}]},UEe={name:"smileyFace",avLst:{adj:4653},gdLst:[Y("a","pin -4653 adj 4653"),Y("x1","*/ w 4969 21699"),Y("x2","*/ w 6215 21600"),Y("x3","*/ w 13135 21600"),Y("x4","*/ w 14385 21600"),Y("y1","*/ h 7570 21600"),Y("y3","*/ h 16515 21600"),Y("dy2","*/ h a 100000"),Y("y2","+- y3 0 dy2"),Y("y4","+- y3 dy2 0"),Y("dx1","*/ wd2 18436 21600"),Y("dx2","*/ wd2 3163 21600"),Y("dy1","*/ hd2 7977 21600")],rect:vd,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd4",swAng:"cd4"},{kind:"close"}]},{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"x2",y:"y1"},{kind:"arcTo",wR:"dx2",hR:"dy1",stAng:"cd2",swAng:"21600000"},{kind:"close"}]},{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"x3",y:"y1"},{kind:"arcTo",wR:"dx2",hR:"dy1",stAng:"cd2",swAng:"21600000"},{kind:"close"}]},{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"x1",y:"y2"},{kind:"quadBezTo",x1:"hc",y1:"y4",x2:"x4",y2:"y2"}]}]},$Ee={name:"lightningBolt",rect:{l:"wd8",t:"hd16",r:"r",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"8458",y:"0"},{kind:"lnTo",x:"14963",y:"0"},{kind:"lnTo",x:"12831",y:"7305"},{kind:"lnTo",x:"17288",y:"8451"},{kind:"lnTo",x:"12158",y:"12500"},{kind:"lnTo",x:"15482",y:"13433"},{kind:"lnTo",x:"8056",y:"21600"},{kind:"lnTo",x:"11023",y:"14256"},{kind:"lnTo",x:"6464",y:"12907"},{kind:"lnTo",x:"11722",y:"8207"},{kind:"lnTo",x:"6037",y:"7079"},{kind:"close"}],w:21600,h:21600}]},HEe={name:"sun",avLst:{adj:25e3},gdLst:[Y("a","pin 12500 adj 46875"),Y("g0","*/ ss a 50000"),Y("g1","+- wd2 0 g0"),Y("g2","+- hd2 0 g0"),Y("g3","*/ g0 30274 32768"),Y("g4","*/ g0 12540 32768"),Y("g5","+- wd2 0 g3"),Y("g6","+- wd2 0 g4"),Y("g7","+- hd2 0 g3"),Y("g8","+- hd2 0 g4"),Y("g9","+- wd2 g3 0"),Y("g10","+- wd2 g4 0"),Y("g11","+- hd2 g3 0"),Y("g12","+- hd2 g4 0"),Y("g13","*/ g0 23170 32768"),Y("g14","+- wd2 0 g13"),Y("g15","+- hd2 0 g13"),Y("g16","+- wd2 g13 0"),Y("g17","+- hd2 g13 0"),Y("cx","val wd2"),Y("cy","val hd2")],rect:{l:"g14",t:"g15",r:"g16",b:"g17"},pathLst:[{commands:[{kind:"moveTo",x:"r",y:"vc"},{kind:"lnTo",x:"g10",y:"g12"},{kind:"lnTo",x:"g9",y:"g11"},{kind:"lnTo",x:"g16",y:"g17"},{kind:"lnTo",x:"g11",y:"g11"},{kind:"lnTo",x:"g11",y:"g9"},{kind:"lnTo",x:"hc",y:"b"},{kind:"lnTo",x:"g7",y:"g11"},{kind:"lnTo",x:"g8",y:"g9"},{kind:"lnTo",x:"g14",y:"g17"},{kind:"lnTo",x:"g8",y:"hd2"},{kind:"lnTo",x:"g7",y:"hd2"},{kind:"lnTo",x:"l",y:"vc"},{kind:"lnTo",x:"g7",y:"g8"},{kind:"lnTo",x:"g8",y:"g7"},{kind:"lnTo",x:"g14",y:"g15"},{kind:"lnTo",x:"hd2",y:"g7"},{kind:"lnTo",x:"hd2",y:"g8"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"g11",y:"g7"},{kind:"lnTo",x:"g12",y:"g8"},{kind:"lnTo",x:"g16",y:"g15"},{kind:"lnTo",x:"g11",y:"hd2"},{kind:"lnTo",x:"g12",y:"hd2"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"g14",y:"vc"},{kind:"arcTo",wR:"g0",hR:"g0",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"g0",hR:"g0",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"g0",hR:"g0",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"g0",hR:"g0",stAng:"cd4",swAng:"cd4"},{kind:"close"}]}]},zEe={name:"moon",avLst:{adj:5e4},gdLst:[Y("a","pin 0 adj 87500"),Y("g0","*/ ss a 100000"),Y("g1","+- wd2 0 g0"),Y("g2","*/ g1 1 2")],rect:{l:"g0",t:"hd4",r:"wd2",b:"3hd4"},pathLst:[{commands:[{kind:"moveTo",x:"r",y:"b"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd4",swAng:"cd2"},{kind:"arcTo",wR:"g1",hR:"hd2",stAng:"3cd4",swAng:"-10800000"},{kind:"close"}]}]};Y("a1","pin 0 adj1 73490"),Y("dy1","*/ ss a1 200000"),Y("dx1","*/ w 73490 200000"),Y("y1","+- vc 0 dy1"),Y("y2","+- vc dy1 0"),Y("x1","+- hc 0 dx1"),Y("x2","+- hc dx1 0");VEe={name:"mathPlus",avLst:{adj1:23520},gdLst:[Y("a1","pin 0 adj1 73490"),Y("dy1","*/ ss a1 200000"),Y("dx1","*/ w a1 200000"),Y("y1","+- vc 0 dy1"),Y("y2","+- vc dy1 0"),Y("x1","+- hc 0 dx1"),Y("x2","+- hc dx1 0")],rect:{l:"x1",t:"y1",r:"x2",b:"y2"},pathLst:[{commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"l",y:"y1"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"close"}]}]},GEe={name:"mathMinus",avLst:{adj1:23520},gdLst:[Y("a1","pin 0 adj1 100000"),Y("dy1","*/ h a1 200000"),Y("y1","+- vc 0 dy1"),Y("y2","+- vc dy1 0")],rect:{l:"l",t:"y1",r:"r",b:"y2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"l",y:"y2"},{kind:"close"}]}]},WEe={name:"mathMultiply",avLst:{adj1:23520},gdLst:[Y("a1","pin 0 adj1 51965"),Y("th","*/ ss a1 100000"),Y("a","at2 w h"),Y("sa","sin 1 a"),Y("ca","cos 1 a"),Y("dx1","*/ th ca 1"),Y("dy1","*/ th sa 1"),Y("x1","+- l dx1 0"),Y("x2","+- r 0 dx1"),Y("y1","+- t dy1 0"),Y("y2","+- b 0 dy1"),Y("xa","+- hc 0 dx1"),Y("xb","+- hc dx1 0"),Y("ya","+- vc 0 dy1"),Y("yb","+- vc dy1 0")],rect:{l:"xa",t:"ya",r:"xb",b:"yb"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"hc",y:"ya"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"xb",y:"vc"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"hc",y:"yb"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"xa",y:"vc"},{kind:"close"}]}]},XEe={name:"mathDivide",avLst:{adj1:23520,adj2:5880,adj3:11760},gdLst:[Y("a1","pin 1000 adj1 36745"),Y("a2","pin 1000 adj2 50000"),Y("a3","pin 1000 adj3 50000"),Y("dy1","*/ h a1 200000"),Y("y1","+- vc 0 dy1"),Y("y2","+- vc dy1 0"),Y("rad","*/ ss a2 200000"),Y("dy2","*/ h a3 100000"),Y("y3","+- t dy2 0"),Y("y4","+- b 0 dy2")],rect:{l:"l",t:"y1",r:"r",b:"y2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"l",y:"y2"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"hc",y:"y3"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"cd4",swAng:"cd4"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"cd2",swAng:"cd4"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"hc",y:"y4"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"cd4",swAng:"cd4"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"cd2",swAng:"cd4"},{kind:"close"}]}]},jEe={name:"mathEqual",avLst:{adj1:23520,adj2:11760},gdLst:[Y("a1","pin 0 adj1 36745"),Y("a2","pin 0 adj2 50000"),Y("dy1","*/ h a1 100000"),Y("dy2","*/ h a2 100000"),Y("y1","+- vc 0 dy2"),Y("y2","+- y1 0 dy1"),Y("y3","+- vc dy2 0"),Y("y4","+- y3 dy1 0")],rect:{l:"l",t:"y2",r:"r",b:"y4"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"l",y:"y1"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"l",y:"y3"},{kind:"lnTo",x:"r",y:"y3"},{kind:"lnTo",x:"r",y:"y4"},{kind:"lnTo",x:"l",y:"y4"},{kind:"close"}]}]},YEe={name:"mathNotEqual",avLst:{adj1:23520,adj2:66e5,adj3:11760},gdLst:[Y("a1","pin 0 adj1 50000"),Y("a3","pin 0 adj3 50000"),Y("dy1","*/ h a1 100000"),Y("dy2","*/ h a3 100000"),Y("y1","+- vc 0 dy2"),Y("y2","+- y1 0 dy1"),Y("y3","+- vc dy2 0"),Y("y4","+- y3 dy1 0"),Y("th","*/ ss a1 100000"),Y("dx5","*/ wd2 60000 100000"),Y("dy5","*/ hd2 80000 100000"),Y("x5","+- hc 0 dx5"),Y("x6","+- hc dx5 0"),Y("y5","+- vc dy5 0"),Y("y6","+- vc 0 dy5")],rect:{l:"l",t:"y2",r:"r",b:"y4"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"l",y:"y1"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"l",y:"y3"},{kind:"lnTo",x:"r",y:"y3"},{kind:"lnTo",x:"r",y:"y4"},{kind:"lnTo",x:"l",y:"y4"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"x5",y:"y5"},{kind:"lnTo",x:"x6",y:"y6"},{kind:"lnTo",x:"x6",y:"y6"},{kind:"lnTo",x:"x5",y:"y5"},{kind:"close"}]}]},qEe={name:"heart",rect:{l:"wd4",t:"hd4",r:"3wd4",b:"3hd4"},pathLst:[{commands:[{kind:"moveTo",x:"hc",y:"hd4"},{kind:"cubicBezTo",x1:"12471",y1:"-1305",x2:"23730",y2:"5575",x3:"hc",y3:"b"},{kind:"cubicBezTo",x1:"-2130",y1:"5575",x2:"9129",y2:"-1305",x3:"hc",y3:"hd4"},{kind:"close"}],w:21600,h:21600}]};KEe=f9("irregularSeal1",[[10800,5800],[14522,0],[14155,5325],[18380,4457],[16702,7315],[21097,8137],[17607,10475],[21600,13290],[16837,12942],[18145,18095],[14020,14457],[13247,19737],[10532,14935],[8485,21600],[7715,15627],[4762,17617],[5667,13937],[135,14587],[3722,11775],[0,8615],[4627,7617],[370,2295],[7312,6320],[8352,2295]]),ZEe=f9("irregularSeal2",[[11462,4342],[14790,0],[14525,5777],[18007,3172],[16380,6532],[20945,4327],[18482,8615],[21600,6970],[19465,11042],[20720,12877],[18375,12825],[18990,16702],[16380,14060],[14907,19260],[13042,14935],[10817,21600],[10532,15422],[6760,19412],[7507,13937],[2475,17945],[5060,12842],[565,13687],[3265,10350],[0,7507],[3617,6962],[1305,3220],[5852,5285],[6727,0]]),JEe={star6:wEe,star7:TEe,star8:CEe,star10:MEe,star12:PEe,star16:_Ee,star24:EEe,star32:AEe,ribbon:REe,ribbon2:kEe,ellipseRibbon:IEe,ellipseRibbon2:NEe,leftRightRibbon:DEe,callout1:h9,callout2:N5,callout3:D5,borderCallout1:LEe,borderCallout2:FEe,borderCallout3:OEe,cloud:BEe,smileyFace:UEe,lightningBolt:$Ee,sun:HEe,moon:zEe,mathPlus:VEe,mathMinus:GEe,mathMultiply:WEe,mathDivide:XEe,mathEqual:jEe,mathNotEqual:YEe,heart:qEe,irregularSeal1:KEe,irregularSeal2:ZEe};op={l:"l",t:"t",r:"r",b:"b"},QEe={name:"round1Rect",avLst:{adj:16667},gdLst:[ft("a","pin 0 adj 50000"),ft("x2","*/ ss a 100000"),ft("x1","+- r 0 x2")],rect:op,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"arcTo",wR:"x2",hR:"x2",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},eAe={name:"round2SameRect",avLst:{adj1:16667,adj2:0},gdLst:[ft("a1","pin 0 adj1 50000"),ft("a2","pin 0 adj2 50000"),ft("x1","*/ ss a1 100000"),ft("x2","+- r 0 x1"),ft("x3","*/ ss a2 100000"),ft("x4","+- r 0 x3")],rect:op,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"x1"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"cd2",swAng:"cd4"},{kind:"lnTo",x:"x2",y:"t"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},tAe={name:"round2DiagRect",avLst:{adj1:16667,adj2:0},gdLst:[ft("a1","pin 0 adj1 50000"),ft("a2","pin 0 adj2 50000"),ft("x1","*/ ss a1 100000"),ft("y1","+- b 0 x1"),ft("x2","*/ ss a2 100000"),ft("x3","+- r 0 x2"),ft("y2","+- b 0 x2")],rect:op,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"x1"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"cd2",swAng:"cd4"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"y2"},{kind:"arcTo",wR:"x2",hR:"x2",stAng:"0",swAng:"cd4"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},nAe={name:"snipRoundRect",avLst:{adj1:16667,adj2:16667},gdLst:[ft("a1","pin 0 adj1 50000"),ft("a2","pin 0 adj2 50000"),ft("x1","*/ ss a1 100000"),ft("x2","*/ ss a2 100000"),ft("x3","+- r 0 x2")],rect:op,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"x1"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x3",y:"t"},{kind:"arcTo",wR:"x2",hR:"x2",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},rAe={name:"snip1Rect",avLst:{adj:16667},gdLst:[ft("a","pin 0 adj 50000"),ft("x1","*/ ss a 100000"),ft("dx1","+- r 0 x1")],rect:op,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"dx1",y:"t"},{kind:"lnTo",x:"r",y:"x1"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},oAe={name:"snip2SameRect",avLst:{adj1:16667,adj2:0},gdLst:[ft("a1","pin 0 adj1 50000"),ft("a2","pin 0 adj2 50000"),ft("x1","*/ ss a1 100000"),ft("x2","+- r 0 x1"),ft("x3","*/ ss a2 100000"),ft("x4","+- r 0 x3")],rect:op,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"x1"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"r",y:"x1"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},iAe={name:"snip2DiagRect",avLst:{adj1:0,adj2:16667},gdLst:[ft("a1","pin 0 adj1 50000"),ft("a2","pin 0 adj2 50000"),ft("x1","*/ ss a1 100000"),ft("x2","+- r 0 x1"),ft("x3","*/ ss a2 100000"),ft("x4","+- r 0 x3"),ft("y1","+- b 0 x3"),ft("y2","+- b 0 x1")],rect:op,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"r",y:"x1"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"l",y:"y1"},{kind:"close"}]}]},sAe={name:"foldedCorner",avLst:{adj:16667},gdLst:[ft("a","pin 0 adj 50000"),ft("dy2","*/ ss a 100000"),ft("dy1","*/ dy2 1 5"),ft("x1","+- r 0 dy2"),ft("x2","+- x1 dy1 0"),ft("x3","+- r 0 dy1"),ft("y2","+- b 0 dy2"),ft("y1","+- y2 dy1 0"),ft("y3","+- b 0 dy1")],rect:{l:"l",t:"t",r:"x3",b:"y3"},pathLst:[{fill:"norm",extrusionOk:false,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]},{fill:"lighten",stroke:false,extrusionOk:false,commands:[{kind:"moveTo",x:"x1",y:"b"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"x3",y:"y2"},{kind:"lnTo",x:"r",y:"y2"},{kind:"close"}]},{fill:"none",stroke:true,extrusionOk:false,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"},{kind:"moveTo",x:"x1",y:"b"},{kind:"lnTo",x:"r",y:"y2"}]}]},aAe={name:"teardrop",avLst:{adj:1e5},gdLst:[ft("a","pin 0 adj 200000"),ft("dx1","*/ wd2 a 100000"),ft("dy1","*/ hd2 a 100000"),ft("x1","+- hc dx1 0"),ft("y1","+- vc 0 dy1")],rect:op,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd2",swAng:"cd4"},{kind:"quadBezTo",x1:"hc",y1:"y1",x2:"x1",y2:"y1"},{kind:"quadBezTo",x1:"x1",y1:"vc",x2:"r",y2:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd4",swAng:"cd4"},{kind:"close"}]}]},lAe={name:"corner",avLst:{adj1:5e4,adj2:5e4},gdLst:[ft("a1","pin 0 adj1 100000"),ft("a2","pin 0 adj2 100000"),ft("x1","*/ w a2 100000"),ft("dy1","*/ h a1 100000"),ft("y1","+- b 0 dy1")],rect:{l:"l",t:"y1",r:"r",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},cAe={round1Rect:QEe,round2SameRect:eAe,round2DiagRect:tAe,snipRoundRect:nAe,snip1Rect:rAe,snip2SameRect:oAe,snip2DiagRect:iAe,foldedCorner:sAe,teardrop:aAe,corner:lAe};n0={l:"l",t:"t",r:"r",b:"b"};dAe={name:"verticalScroll",avLst:{adj:12500},gdLst:[Ke("a","pin 0 adj 25000"),Ke("ch","*/ ss a 100000"),Ke("ch2","*/ ch 1 2"),Ke("ch4","*/ ch 1 4"),Ke("x3","+- ch ch2 0"),Ke("x4","+- ch ch 0"),Ke("x6","+- r 0 ch"),Ke("x7","+- r 0 ch2"),Ke("x5","+- x6 0 ch2"),Ke("y3","+- b 0 ch"),Ke("y4","+- b 0 ch2")],rect:{l:"ch",t:"ch2",r:"x7",b:"y4"},pathLst:[{commands:[{kind:"moveTo",x:"ch2",y:"ch2"},{kind:"arcTo",wR:"ch4",hR:"ch4",stAng:"cd2",swAng:"cd4"},{kind:"lnTo",x:"x6",y:"t"},{kind:"arcTo",wR:"ch2",hR:"ch2",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"y4"},{kind:"lnTo",x:"x7",y:"b"},{kind:"lnTo",x:"ch2",y:"b"},{kind:"arcTo",wR:"ch2",hR:"ch2",stAng:"cd4",swAng:"cd4"},{kind:"lnTo",x:"l",y:"ch2"},{kind:"close"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x6",y:"t"},{kind:"arcTo",wR:"ch2",hR:"ch2",stAng:"cd2",swAng:"cd4"},{kind:"lnTo",x:"r",y:"ch2"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"l",y:"y4"},{kind:"arcTo",wR:"ch2",hR:"ch2",stAng:"0",swAng:"cd4"},{kind:"lnTo",x:"ch2",y:"b"}]}]},uAe={name:"horizontalScroll",avLst:{adj:12500},gdLst:[Ke("a","pin 0 adj 25000"),Ke("ch","*/ ss a 100000"),Ke("ch2","*/ ch 1 2"),Ke("ch4","*/ ch 1 4"),Ke("y3","+- ch ch2 0"),Ke("y4","+- ch ch 0"),Ke("y6","+- b 0 ch"),Ke("y7","+- b 0 ch2"),Ke("y5","+- y6 0 ch2"),Ke("x3","+- r 0 ch"),Ke("x4","+- r 0 ch2")],rect:{l:"ch2",t:"ch",r:"x4",b:"y7"},pathLst:[{commands:[{kind:"moveTo",x:"ch2",y:"ch2"},{kind:"arcTo",wR:"ch4",hR:"ch4",stAng:"cd2",swAng:"cd4"},{kind:"lnTo",x:"x4",y:"t"},{kind:"lnTo",x:"r",y:"ch2"},{kind:"lnTo",x:"r",y:"y6"},{kind:"arcTo",wR:"ch2",hR:"ch2",stAng:"0",swAng:"cd4"},{kind:"lnTo",x:"ch2",y:"b"},{kind:"arcTo",wR:"ch2",hR:"ch2",stAng:"cd4",swAng:"cd4"},{kind:"lnTo",x:"l",y:"ch2"},{kind:"close"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x4",y:"t"},{kind:"arcTo",wR:"ch2",hR:"ch2",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"ch2"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"ch2",y:"b"},{kind:"arcTo",wR:"ch2",hR:"ch2",stAng:"cd4",swAng:"cd4"},{kind:"lnTo",x:"l",y:"y6"}]}]},pAe={name:"wave",avLst:{adj1:12500,adj2:0},gdLst:[Ke("a1","pin 0 adj1 20000"),Ke("a2","pin -10000 adj2 10000"),Ke("y1","*/ h a1 100000"),Ke("y2","+- t y1 0"),Ke("y3","+- b 0 y1"),Ke("y4","+- b y1 0"),Ke("y5","+- t 0 y1"),Ke("dx2","*/ w a2 100000"),Ke("xAdj","+- hc dx2 0"),Ke("x3","+- xAdj 0 hc"),Ke("x4","+- r x3 0"),Ke("x5","+- l x3 0"),Ke("x6","+- xAdj wd2 0"),Ke("x7","+- xAdj 0 wd2")],rect:{l:"x5",t:"y2",r:"x4",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"cubicBezTo",x1:"x6",y1:"y5",x2:"x7",y2:"y2",x3:"r",y3:"y2"},{kind:"lnTo",x:"r",y:"y3"},{kind:"cubicBezTo",x1:"x7",y1:"y4",x2:"x6",y2:"y3",x3:"l",y3:"y3"},{kind:"close"}]}]},hAe={name:"doubleWave",avLst:{adj1:6250,adj2:0},gdLst:[Ke("a1","pin 0 adj1 10000"),Ke("a2","pin -10000 adj2 10000"),Ke("y1","*/ h a1 100000"),Ke("y2","+- t y1 0"),Ke("y3","+- b 0 y1"),Ke("y4","+- b y1 0"),Ke("y5","+- t 0 y1"),Ke("dx2","*/ w a2 100000"),Ke("xAdj","+- hc dx2 0"),Ke("x3","+- xAdj 0 hc"),Ke("x4","+- r x3 0"),Ke("x5","+- l x3 0"),Ke("q1","*/ w 1 4"),Ke("q2","*/ w 3 4"),Ke("cx1","+- l q1 0"),Ke("cx2","+- l q2 0"),Ke("cx3","+- l hd2 0")],rect:{l:"x5",t:"y2",r:"x4",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"cubicBezTo",x1:"cx1",y1:"y5",x2:"cx1",y2:"y2",x3:"hc",y3:"y2"},{kind:"cubicBezTo",x1:"cx2",y1:"y2",x2:"cx2",y2:"y5",x3:"r",y3:"y2"},{kind:"lnTo",x:"r",y:"y3"},{kind:"cubicBezTo",x1:"cx2",y1:"y4",x2:"cx2",y2:"y3",x3:"hc",y3:"y3"},{kind:"cubicBezTo",x1:"cx1",y1:"y3",x2:"cx1",y2:"y4",x3:"l",y3:"y3"},{kind:"close"}]}]},m9={name:"accentCallout1",avLst:{adj1:18750,adj2:-8333,adj3:112500,adj4:-38333},gdLst:[Ke("y1","*/ h adj1 100000"),Ke("x1","*/ w adj2 100000"),Ke("y2","*/ h adj3 100000"),Ke("x2","*/ w adj4 100000")],rect:n0,pathLst:[{commands:r0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"l",y:"b"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"}]}]},L5={name:"accentCallout2",avLst:{adj1:18750,adj2:-8333,adj3:18750,adj4:-16667,adj5:112500,adj6:-38333},gdLst:[Ke("y1","*/ h adj1 100000"),Ke("x1","*/ w adj2 100000"),Ke("y2","*/ h adj3 100000"),Ke("x2","*/ w adj4 100000"),Ke("y3","*/ h adj5 100000"),Ke("x3","*/ w adj6 100000")],rect:n0,pathLst:[{commands:r0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"l",y:"b"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x3",y:"y3"}]}]},F5={name:"accentCallout3",avLst:{adj1:18750,adj2:-8333,adj3:18750,adj4:-16667,adj5:1e5,adj6:-16667,adj7:112500,adj8:-38333},gdLst:[Ke("y1","*/ h adj1 100000"),Ke("x1","*/ w adj2 100000"),Ke("y2","*/ h adj3 100000"),Ke("x2","*/ w adj4 100000"),Ke("y3","*/ h adj5 100000"),Ke("x3","*/ w adj6 100000"),Ke("y4","*/ h adj7 100000"),Ke("x4","*/ w adj8 100000")],rect:n0,pathLst:[{commands:r0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"l",y:"b"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x3",y:"y3"},{kind:"lnTo",x:"x4",y:"y4"}]}]},fAe={name:"accentBorderCallout1",avLst:{adj1:18750,adj2:-8333,adj3:112500,adj4:-38333},gdLst:m9.gdLst,rect:n0,pathLst:[{stroke:true,commands:r0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"l",y:"b"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"}]}]},mAe={name:"accentBorderCallout2",avLst:L5.avLst,gdLst:L5.gdLst,rect:n0,pathLst:[{stroke:true,commands:r0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"l",y:"b"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x3",y:"y3"}]}]},gAe={name:"accentBorderCallout3",avLst:F5.avLst,gdLst:F5.gdLst,rect:n0,pathLst:[{stroke:true,commands:r0()},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"l",y:"b"}]},{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x3",y:"y3"},{kind:"lnTo",x:"x4",y:"y4"}]}]},xAe={verticalScroll:dAe,horizontalScroll:uAe,wave:pAe,doubleWave:hAe,accentCallout1:m9,accentCallout2:L5,accentCallout3:F5,accentBorderCallout1:fAe,accentBorderCallout2:mAe,accentBorderCallout3:gAe};o0={l:"l",t:"t",r:"r",b:"b"},yAe={name:"cornerTabs",gdLst:[pt("x1","*/ w 1 8"),pt("x2","+- r 0 x1"),pt("y1","*/ h 1 8"),pt("y2","+- b 0 y1")],rect:o0,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"l",y:"y1"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"x2",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"x2",y:"y2"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},bAe={name:"squareTabs",gdLst:[pt("thw","*/ w 1 16"),pt("thh","*/ h 1 16"),pt("xa","+- hc 0 thw"),pt("xb","+- hc thw 0"),pt("ya","+- vc 0 thh"),pt("yb","+- vc thh 0"),pt("rt","+- r 0 thw"),pt("bt","+- b 0 thh")],rect:o0,pathLst:[{fill:"none",stroke:true,commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"xa",y:"t"},{kind:"lnTo",x:"xb",y:"t"},{kind:"lnTo",x:"xb",y:"thh"},{kind:"lnTo",x:"xa",y:"thh"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"r",y:"ya"},{kind:"lnTo",x:"r",y:"yb"},{kind:"lnTo",x:"rt",y:"yb"},{kind:"lnTo",x:"rt",y:"ya"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"xa",y:"b"},{kind:"lnTo",x:"xb",y:"b"},{kind:"lnTo",x:"xb",y:"bt"},{kind:"lnTo",x:"xa",y:"bt"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"l",y:"ya"},{kind:"lnTo",x:"l",y:"yb"},{kind:"lnTo",x:"thw",y:"yb"},{kind:"lnTo",x:"thw",y:"ya"},{kind:"close"}]}]},vAe={name:"diamondTabs",gdLst:[pt("thw","*/ w 1 16"),pt("thh","*/ h 1 16"),pt("xa","+- hc 0 thw"),pt("xb","+- hc thw 0"),pt("ya","+- vc 0 thh"),pt("yb","+- vc thh 0"),pt("lt","+- l thw 0"),pt("rt","+- r 0 thw"),pt("tt","+- t thh 0"),pt("bt","+- b 0 thh")],rect:{l:"xa",t:"ya",r:"xb",b:"yb"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"hc",y:"b"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"xa",y:"t"},{kind:"lnTo",x:"xb",y:"t"},{kind:"lnTo",x:"xb",y:"tt"},{kind:"lnTo",x:"xa",y:"tt"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"r",y:"ya"},{kind:"lnTo",x:"r",y:"yb"},{kind:"lnTo",x:"rt",y:"yb"},{kind:"lnTo",x:"rt",y:"ya"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"xa",y:"b"},{kind:"lnTo",x:"xb",y:"b"},{kind:"lnTo",x:"xb",y:"bt"},{kind:"lnTo",x:"xa",y:"bt"},{kind:"close"}]},{commands:[{kind:"moveTo",x:"l",y:"ya"},{kind:"lnTo",x:"l",y:"yb"},{kind:"lnTo",x:"lt",y:"yb"},{kind:"lnTo",x:"lt",y:"ya"},{kind:"close"}]}]},SAe={name:"diagStripe",avLst:{adj:5e4},gdLst:[pt("a","pin 0 adj 100000"),pt("x2","*/ w a 100000"),pt("y2","*/ h a 100000")],rect:o0,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"l",y:"t"},{kind:"close"}]}]},wAe={name:"plus",avLst:{adj:25e3},gdLst:[pt("a","pin 0 adj 50000"),pt("x1","*/ ss a 100000"),pt("x2","+- r 0 x1"),pt("y2","+- b 0 x1")],rect:{l:"x1",t:"x1",r:"x2",b:"y2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"x1"},{kind:"lnTo",x:"x1",y:"x1"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"x2",y:"x1"},{kind:"lnTo",x:"r",y:"x1"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"lnTo",x:"l",y:"y2"},{kind:"close"}]}]};TAe=g9(6,15e3),CAe=g9(9,1e4),MAe={name:"funnel",gdLst:[pt("xn","*/ w 40 100"),pt("xx","*/ w 60 100"),pt("ym","*/ h 40 100")],rect:o0,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"xx",y:"ym"},{kind:"lnTo",x:"xx",y:"b"},{kind:"lnTo",x:"xn",y:"b"},{kind:"lnTo",x:"xn",y:"ym"},{kind:"close"}]}]},PAe={name:"mathFunction",gdLst:[pt("x1","*/ w 30 100"),pt("x2","*/ w 55 100"),pt("x3","*/ w 70 100"),pt("x4","*/ w 85 100"),pt("y1","*/ h 25 100"),pt("y2","*/ h 50 100"),pt("y3","*/ h 75 100")],rect:o0,pathLst:[{commands:[{kind:"moveTo",x:"x4",y:"t"},{kind:"lnTo",x:"x3",y:"y1"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x4",y:"y2"},{kind:"lnTo",x:"x4",y:"y3"},{kind:"lnTo",x:"x2",y:"y3"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"lnTo",x:"x1",y:"y3"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"l",y:"y1"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"t"},{kind:"close"}]}]},_Ae={name:"nonIsoscelesTrapezoid",avLst:{adj:5e4},gdLst:[pt("a","pin 0 adj 100000"),pt("x1","*/ w a 200000"),pt("x2","+- r 0 x1"),pt("dx","*/ w 5 100"),pt("x3","+- x1 0 dx"),pt("x4","+- x2 0 dx"),pt("xt","*/ x3 1 2"),pt("xtb","+- r 0 xt")],rect:{l:"xt",t:"t",r:"xtb",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"x3",y:"t"},{kind:"lnTo",x:"x4",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"close"}]}]},EAe={cornerTabs:yAe,squareTabs:bAe,diamondTabs:vAe,diagStripe:SAe,plus:wAe,gear6:TAe,gear9:CAe,funnel:MAe,mathFunction:PAe,nonIsoscelesTrapezoid:_Ae};Wi={l:"l",t:"t",r:"r",b:"b"},AAe={name:"rect",rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"close"}]}]},RAe={name:"roundRect",avLst:{adj:16667},gdLst:[z("a","pin 0 adj 50000"),z("x1","*/ ss a 100000"),z("x2","+- r 0 x1"),z("y2","+- b 0 x1")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"x1"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"cd2",swAng:"cd4"},{kind:"lnTo",x:"x2",y:"t"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"y2"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"0",swAng:"cd4"},{kind:"lnTo",x:"x1",y:"b"},{kind:"arcTo",wR:"x1",hR:"x1",stAng:"cd4",swAng:"cd4"},{kind:"close"}]}]},kAe={name:"ellipse",gdLst:[z("idx","*/ ss 3 4"),z("idy","*/ ls 3 4")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd4",swAng:"cd4"},{kind:"close"}]}]},IAe={name:"triangle",avLst:{adj:5e4},gdLst:[z("a","pin 0 adj 100000"),z("x1","*/ w a 100000")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"close"}]}]},NAe={name:"rtTriangle",rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"close"}]}]},DAe={name:"parallelogram",avLst:{adj:25e3},gdLst:[z("a","pin 0 adj 100000"),z("x1","*/ w a 200000"),z("x2","+- w 0 x1"),z("x3","*/ w a 100000"),z("x4","+- r 0 x3"),z("x5","*/ x3 1 2"),z("x6","+- r 0 x5")],rect:{l:"x5",t:"t",r:"x6",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"x3",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"x4",y:"b"},{kind:"close"}]}]},LAe={name:"trapezoid",avLst:{adj:25e3},gdLst:[z("a","pin 0 adj 100000"),z("x1","*/ w a 200000"),z("x2","+- r 0 x1"),z("x3","*/ x1 1 2"),z("x4","+- r 0 x3")],rect:{l:"x3",t:"t",r:"x4",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"r",y:"b"},{kind:"close"}]}]},FAe={name:"diamond",gdLst:[z("ir","*/ wd2 1 2"),z("it","*/ hd2 1 2")],rect:{l:"ir",t:"it",r:"wd2",b:"hd2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"hc",y:"b"},{kind:"close"}]}]},OAe={name:"pentagon",gdLst:[z("hf","val 105146"),z("vf","val 110557"),z("swd2","*/ wd2 hf 100000"),z("shd2","*/ hd2 vf 100000"),z("dx1","*/ swd2 95106 100000"),z("dx2","*/ swd2 58779 100000"),z("dy1","*/ shd2 80902 100000"),z("dy2","*/ shd2 30902 100000"),z("x1","+- hc 0 dx1"),z("x2","+- hc 0 dx2"),z("x3","+- hc dx2 0"),z("x4","+- hc dx1 0"),z("y1","+- vc 0 dy1"),z("y2","+- vc dy2 0"),z("ir","*/ y2 dx1 dy1"),z("ib","+- b 0 ir")],rect:{l:"x1",t:"y1",r:"x4",b:"ib"},pathLst:[{commands:[{kind:"moveTo",x:"hc",y:"t"},{kind:"lnTo",x:"x4",y:"y2"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"close"}]}]},BAe={name:"hexagon",avLst:{adj:25e3,vf:115470},gdLst:[z("a","pin 0 adj 100000"),z("shd2","*/ hd2 vf 100000"),z("x1","*/ ss a 100000"),z("x2","+- r 0 x1"),z("y1","+- vc 0 shd2"),z("y2","+- vc shd2 0"),z("q1","*/ shd2 115470 100000"),z("ir","+- x1 0 q1"),z("il","+- x1 q1 0")],rect:{l:"il",t:"y1",r:"ir",b:"y2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"close"}]}]},UAe={name:"heptagon",gdLst:[z("hf","val 102572"),z("vf","val 105210"),z("swd2","*/ wd2 hf 100000"),z("shd2","*/ hd2 vf 100000"),z("dx1","*/ swd2 97493 100000"),z("dx2","*/ swd2 78183 100000"),z("dx3","*/ swd2 43388 100000"),z("dy1","*/ shd2 62349 100000"),z("dy2","*/ shd2 22252 100000"),z("dy3","*/ shd2 90097 100000"),z("x1","+- hc 0 dx1"),z("x2","+- hc 0 dx2"),z("x3","+- hc 0 dx3"),z("x4","+- hc dx3 0"),z("x5","+- hc dx2 0"),z("x6","+- hc dx1 0"),z("y1","+- vc 0 dy1"),z("y2","+- vc dy2 0"),z("y3","+- vc dy3 0")],rect:{l:"x1",t:"y1",r:"x6",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"hc",y:"t"},{kind:"lnTo",x:"x6",y:"y1"},{kind:"lnTo",x:"x5",y:"y2"},{kind:"lnTo",x:"x4",y:"y3"},{kind:"lnTo",x:"x3",y:"y3"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"close"}]}]},$Ae={name:"octagon",avLst:{adj:29289},gdLst:[z("a","pin 0 adj 50000"),z("x1","*/ ss a 100000"),z("x2","+- r 0 x1"),z("y2","+- b 0 x1"),z("il","*/ x1 1 2"),z("it","*/ x1 1 2"),z("ir","+- r 0 il"),z("ib","+- b 0 it")],rect:{l:"il",t:"it",r:"ir",b:"ib"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"x1"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"r",y:"x1"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"l",y:"y2"},{kind:"close"}]}]},HAe={name:"decagon",avLst:{vf:105146},gdLst:[z("shd2","*/ hd2 vf 100000"),z("dx1","*/ wd2 95106 100000"),z("dx2","*/ wd2 58779 100000"),z("dy1","*/ shd2 80902 100000"),z("dy2","*/ shd2 30902 100000"),z("x1","+- hc 0 dx1"),z("x2","+- hc 0 dx2"),z("x3","+- hc dx2 0"),z("x4","+- hc dx1 0"),z("y1","+- vc 0 dy1"),z("y2","+- vc 0 dy2"),z("y3","+- vc dy2 0"),z("y4","+- vc dy1 0")],rect:{l:"x1",t:"y1",r:"x4",b:"y4"},pathLst:[{commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"x3",y:"t"},{kind:"lnTo",x:"x4",y:"y1"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"r",y:"y3"},{kind:"lnTo",x:"x4",y:"y4"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x1",y:"y4"},{kind:"lnTo",x:"l",y:"y3"},{kind:"lnTo",x:"l",y:"y2"},{kind:"close"}]}]},zAe={name:"dodecagon",gdLst:[z("dx1","*/ wd2 86603 100000"),z("dx2","*/ wd2 50000 100000"),z("dy1","*/ hd2 86603 100000"),z("dy2","*/ hd2 50000 100000"),z("x1","+- hc 0 dx1"),z("x2","+- hc 0 dx2"),z("x3","+- hc dx2 0"),z("x4","+- hc dx1 0"),z("y1","+- vc 0 dy1"),z("y2","+- vc 0 dy2"),z("y3","+- vc dy2 0"),z("y4","+- vc dy1 0")],rect:{l:"x1",t:"y1",r:"x4",b:"y4"},pathLst:[{commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"x3",y:"t"},{kind:"lnTo",x:"x4",y:"y1"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"r",y:"y3"},{kind:"lnTo",x:"x4",y:"y4"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x1",y:"y4"},{kind:"lnTo",x:"l",y:"y3"},{kind:"lnTo",x:"l",y:"y2"},{kind:"close"}]}]},VAe={name:"pie",avLst:{adj1:0,adj2:162e5},gdLst:[z("stAng","pin 0 adj1 21599999"),z("endAng","pin 0 adj2 21599999"),z("swAng","+- endAng 0 stAng"),z("swAng2","?: swAng swAng +- 21600000 swAng 0"),z("stx","cos wd2 stAng"),z("sty","sin hd2 stAng"),z("x1","+- hc stx 0"),z("y1","+- vc sty 0")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"hc",y:"vc"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"stAng",swAng:"swAng2"},{kind:"close"}]}]},GAe={name:"pieWedge",gdLst:[z("g1","cos wd2 13500000"),z("g2","sin hd2 13500000"),z("x1","+- hc g1 0"),z("y1","+- vc g2 0")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"b"},{kind:"lnTo",x:"r",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"cd4"},{kind:"close"}]}]},WAe={name:"chord",avLst:{adj1:27e5,adj2:135e5},gdLst:[z("stAng","pin 0 adj1 21599999"),z("endAng","pin 0 adj2 21599999"),z("swAng","+- endAng 0 stAng"),z("swAng2","?: swAng swAng +- 21600000 swAng 0"),z("stx","cos wd2 stAng"),z("sty","sin hd2 stAng"),z("x1","+- hc stx 0"),z("y1","+- vc sty 0")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"stAng",swAng:"swAng2"},{kind:"close"}]}]},XAe={name:"arc",avLst:{adj1:162e5,adj2:0},gdLst:[z("stAng","pin 0 adj1 21599999"),z("endAng","pin 0 adj2 21599999"),z("swAng","+- endAng 0 stAng"),z("swAng2","?: swAng swAng +- 21600000 swAng 0"),z("stx","cos wd2 stAng"),z("sty","sin hd2 stAng"),z("x1","+- hc stx 0"),z("y1","+- vc sty 0")],rect:Wi,pathLst:[{stroke:true,fill:"none",commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"stAng",swAng:"swAng2"}]}]},jAe={name:"donut",avLst:{adj:25e3},gdLst:[z("a","pin 0 adj 50000"),z("dr","*/ ss a 100000"),z("iwd2","+- wd2 0 dr"),z("ihd2","+- hd2 0 dr")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd4",swAng:"cd4"},{kind:"close"},{kind:"moveTo",x:"dr",y:"vc"},{kind:"arcTo",wR:"iwd2",hR:"ihd2",stAng:"cd2",swAng:"-5400000"},{kind:"arcTo",wR:"iwd2",hR:"ihd2",stAng:"cd4",swAng:"-5400000"},{kind:"arcTo",wR:"iwd2",hR:"ihd2",stAng:"0",swAng:"-5400000"},{kind:"arcTo",wR:"iwd2",hR:"ihd2",stAng:"3cd4",swAng:"-5400000"},{kind:"close"}]}]},YAe={name:"noSmoking",avLst:{adj:18750},gdLst:[z("a","pin 0 adj 50000"),z("dr","*/ ss a 100000"),z("iwd2","+- wd2 0 dr"),z("ihd2","+- hd2 0 dr"),z("ang","at2 iwd2 ihd2"),z("ca","cos iwd2 ang"),z("sa","sin ihd2 ang"),z("x1","+- hc 0 ca"),z("x2","+- hc ca 0"),z("y1","+- vc 0 sa"),z("y2","+- vc sa 0")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd2",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"3cd4",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"0",swAng:"cd4"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"cd4",swAng:"cd4"},{kind:"close"},{kind:"moveTo",x:"x1",y:"y2"},{kind:"lnTo",x:"x2",y:"y1"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x1",y:"y1"},{kind:"close"}]}]},qAe={name:"blockArc",avLst:{adj1:108e5,adj2:0,adj3:25e3},gdLst:[z("stAng","pin 0 adj1 21599999"),z("endAng","pin 0 adj2 21599999"),z("thh","pin 0 adj3 50000"),z("th","*/ ss thh 100000"),z("thw","*/ wd2 thh 100000"),z("thh2","*/ hd2 thh 100000"),z("iwd2","+- wd2 0 thw"),z("ihd2","+- hd2 0 thh2"),z("swAng","+- endAng 0 stAng"),z("swAng2","?: swAng swAng +- 21600000 swAng 0"),z("mswAng","+- 0 0 swAng2"),z("stx","cos wd2 stAng"),z("sty","sin hd2 stAng"),z("x1","+- hc stx 0"),z("y1","+- vc sty 0"),z("istx","cos iwd2 endAng"),z("isty","sin ihd2 endAng"),z("ix1","+- hc istx 0"),z("iy1","+- vc isty 0")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"stAng",swAng:"swAng2"},{kind:"lnTo",x:"ix1",y:"iy1"},{kind:"arcTo",wR:"iwd2",hR:"ihd2",stAng:"endAng",swAng:"mswAng"},{kind:"close"}]}]},KAe={name:"rightArrow",avLst:{adj1:5e4,adj2:5e4},gdLst:[z("a1","pin 0 adj1 100000"),z("a2","pin 0 adj2 100000"),z("y1","*/ hd2 a1 100000"),z("y2","+- vc 0 y1"),z("y3","+- vc y1 0"),z("x2","*/ w a2 100000"),z("x1","+- r 0 x2"),z("dx2","*/ hd2 x2 wd2"),z("x3","+- x1 dx2 0")],rect:{l:"l",t:"y2",r:"x3",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"x1",y:"y3"},{kind:"lnTo",x:"l",y:"y3"},{kind:"close"}]}]},ZAe={name:"leftArrow",avLst:{adj1:5e4,adj2:5e4},gdLst:[z("a1","pin 0 adj1 100000"),z("a2","pin 0 adj2 100000"),z("y1","*/ hd2 a1 100000"),z("y2","+- vc 0 y1"),z("y3","+- vc y1 0"),z("x1","*/ w a2 100000"),z("dx2","*/ hd2 x1 wd2"),z("x2","+- l dx2 0")],rect:{l:"x2",t:"y2",r:"r",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"x1",y:"y2"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"r",y:"y3"},{kind:"lnTo",x:"x1",y:"y3"},{kind:"lnTo",x:"x1",y:"b"},{kind:"close"}]}]},JAe={name:"upArrow",avLst:{adj1:5e4,adj2:5e4},gdLst:[z("a1","pin 0 adj1 100000"),z("a2","pin 0 adj2 100000"),z("x1","*/ wd2 a1 100000"),z("x2","+- hc 0 x1"),z("x3","+- hc x1 0"),z("y2","*/ h a2 100000"),z("dy2","*/ wd2 y2 hd2"),z("y1","+- t dy2 0")],rect:{l:"x2",t:"y1",r:"x3",b:"b"},pathLst:[{commands:[{kind:"moveTo",x:"hc",y:"t"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"x3",y:"y2"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"l",y:"y2"},{kind:"close"}]}]},QAe={name:"downArrow",avLst:{adj1:5e4,adj2:5e4},gdLst:[z("a1","pin 0 adj1 100000"),z("a2","pin 0 adj2 100000"),z("x1","*/ wd2 a1 100000"),z("x2","+- hc 0 x1"),z("x3","+- hc x1 0"),z("y1","*/ h a2 100000"),z("y2","+- b 0 y1"),z("dy2","*/ wd2 y1 hd2"),z("y3","+- b 0 dy2")],rect:{l:"x2",t:"t",r:"x3",b:"y3"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y2"},{kind:"lnTo",x:"x2",y:"y2"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"x3",y:"t"},{kind:"lnTo",x:"x3",y:"y2"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"hc",y:"b"},{kind:"close"}]}]},eRe={name:"wedgeRectCallout",avLst:{adj1:-20833,adj2:62500},gdLst:[z("dxPos","*/ w adj1 100000"),z("dyPos","*/ h adj2 100000"),z("xPos","+- hc dxPos 0"),z("yPos","+- vc dyPos 0"),z("dx","+- xPos 0 hc"),z("dy","+- yPos 0 vc"),z("dq","*/ dxPos h w"),z("ady","abs dy"),z("adq","abs dq"),z("xg1","?: dxPos 7 2"),z("xg2","?: dxPos 10 5"),z("x1","*/ w xg1 12"),z("x2","*/ w xg2 12"),z("yg1","?: dyPos 7 2"),z("yg2","?: dyPos 10 5"),z("y1","*/ h yg1 12"),z("y2","*/ h yg2 12"),z("t1","?: dxPos l xPos"),z("xl","?: ady adq t1 l"),z("t2","?: dyPos yPos t"),z("yt","?: ady adq t t2"),z("t3","?: dxPos xPos r"),z("xr","?: ady adq t3 r"),z("t4","?: dyPos b yPos"),z("yb","?: ady adq b t4")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"t"},{kind:"lnTo",x:"x1",y:"t"},{kind:"lnTo",x:"xl",y:"yt"},{kind:"lnTo",x:"x2",y:"t"},{kind:"lnTo",x:"r",y:"t"},{kind:"lnTo",x:"r",y:"y1"},{kind:"lnTo",x:"xr",y:"yt"},{kind:"lnTo",x:"r",y:"y2"},{kind:"lnTo",x:"r",y:"b"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"xl",y:"yb"},{kind:"lnTo",x:"x1",y:"b"},{kind:"lnTo",x:"l",y:"b"},{kind:"lnTo",x:"l",y:"y2"},{kind:"lnTo",x:"xr",y:"yb"},{kind:"lnTo",x:"l",y:"y1"},{kind:"close"}]}]},tRe={name:"wedgeRoundRectCallout",avLst:{adj1:-20833,adj2:62500,adj3:16667},gdLst:[z("dxPos","*/ w adj1 100000"),z("dyPos","*/ h adj2 100000"),z("xPos","+- hc dxPos 0"),z("yPos","+- vc dyPos 0"),z("a3","pin 0 adj3 50000"),z("rad","*/ ss a3 100000"),z("x1","+- l rad 0"),z("x2","+- r 0 rad"),z("y1","+- t rad 0"),z("y2","+- b 0 rad")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"l",y:"y1"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"cd2",swAng:"cd4"},{kind:"lnTo",x:"x2",y:"t"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"3cd4",swAng:"cd4"},{kind:"lnTo",x:"r",y:"y2"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"0",swAng:"cd4"},{kind:"lnTo",x:"xPos",y:"b"},{kind:"lnTo",x:"xPos",y:"yPos"},{kind:"lnTo",x:"x1",y:"b"},{kind:"arcTo",wR:"rad",hR:"rad",stAng:"cd4",swAng:"cd4"},{kind:"close"}]}]},nRe={name:"wedgeEllipseCallout",avLst:{adj1:-20833,adj2:62500},gdLst:[z("dxPos","*/ w adj1 100000"),z("dyPos","*/ h adj2 100000"),z("xPos","+- hc dxPos 0"),z("yPos","+- vc dyPos 0"),z("sdx","*/ dxPos hd2 wd2"),z("sdy","val dyPos"),z("pang","at2 sdx sdy"),z("stAng","+- pang 660000 0"),z("enAng","+- pang 0 660000"),z("dx1","cos wd2 stAng"),z("dy1","sin hd2 stAng"),z("x1","+- hc dx1 0"),z("y1","+- vc dy1 0"),z("dx2","cos wd2 enAng"),z("dy2","sin hd2 enAng"),z("x2","+- hc dx2 0"),z("y2","+- vc dy2 0"),z("stAng1","at2 dx1 dy1"),z("enAngFinal","at2 dx2 dy2"),z("swAng1","+- enAngFinal 0 stAng1"),z("swAng","?: swAng1 swAng1 +- swAng1 21600000 0")],rect:Wi,pathLst:[{commands:[{kind:"moveTo",x:"x1",y:"y1"},{kind:"arcTo",wR:"wd2",hR:"hd2",stAng:"stAng1",swAng:"swAng"},{kind:"lnTo",x:"xPos",y:"yPos"},{kind:"close"}]}]},rRe={name:"star4",avLst:{adj:12500},gdLst:[z("a","pin 0 adj 50000"),z("iwd2","*/ wd2 a 50000"),z("ihd2","*/ hd2 a 50000"),z("sdx","*/ iwd2 92388 100000"),z("sdy","*/ ihd2 92388 100000"),z("sx1","+- hc 0 sdx"),z("sx2","+- hc sdx 0"),z("sy1","+- vc 0 sdy"),z("sy2","+- vc sdy 0"),z("yAdj","+- vc 0 ihd2")],rect:{l:"sx1",t:"sy1",r:"sx2",b:"sy2"},pathLst:[{commands:[{kind:"moveTo",x:"l",y:"vc"},{kind:"lnTo",x:"sx1",y:"sy1"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"sx2",y:"sy1"},{kind:"lnTo",x:"r",y:"vc"},{kind:"lnTo",x:"sx2",y:"sy2"},{kind:"lnTo",x:"hc",y:"b"},{kind:"lnTo",x:"sx1",y:"sy2"},{kind:"close"}]}]},oRe={name:"star5",avLst:{adj:19098,hf:105146,vf:110557},gdLst:[z("a","pin 0 adj 50000"),z("swd2","*/ wd2 hf 100000"),z("shd2","*/ hd2 vf 100000"),z("svc","*/ vc vf 100000"),z("dx1","*/ swd2 95106 100000"),z("dx2","*/ swd2 58779 100000"),z("dy1","*/ shd2 80902 100000"),z("dy2","*/ shd2 30902 100000"),z("x1","+- hc 0 dx1"),z("x2","+- hc 0 dx2"),z("x3","+- hc dx2 0"),z("x4","+- hc dx1 0"),z("y1","+- svc 0 dy1"),z("y2","+- svc 0 dy2"),z("iwd2","*/ swd2 a 50000"),z("ihd2","*/ shd2 a 50000"),z("sdx1","*/ iwd2 95106 100000"),z("sdx2","*/ iwd2 58779 100000"),z("sdy1","*/ ihd2 80902 100000"),z("sdy2","*/ ihd2 30902 100000"),z("sx1","+- hc 0 sdx1"),z("sx2","+- hc 0 sdx2"),z("sx3","+- hc sdx2 0"),z("sx4","+- hc sdx1 0"),z("sy1","+- svc 0 sdy1"),z("sy2","+- svc 0 sdy2"),z("sy3","+- svc ihd2 0"),z("yc","+- svc 0 ihd2")],rect:{l:"sx1",t:"y1",r:"sx4",b:"sy3"},pathLst:[{commands:[{kind:"moveTo",x:"x1",y:"y2"},{kind:"lnTo",x:"sx2",y:"sy2"},{kind:"lnTo",x:"hc",y:"t"},{kind:"lnTo",x:"sx3",y:"sy2"},{kind:"lnTo",x:"x4",y:"y2"},{kind:"lnTo",x:"sx4",y:"sy3"},{kind:"lnTo",x:"x3",y:"b"},{kind:"lnTo",x:"hc",y:"sy3"},{kind:"lnTo",x:"x2",y:"b"},{kind:"lnTo",x:"sx1",y:"sy3"},{kind:"close"}]}]},F2={rect:AAe,roundRect:RAe,ellipse:kAe,triangle:IAe,rtTriangle:NAe,parallelogram:DAe,trapezoid:LAe,diamond:FAe,pentagon:OAe,hexagon:BAe,heptagon:UAe,octagon:$Ae,decagon:HAe,dodecagon:zAe,pie:VAe,pieWedge:GAe,chord:WAe,arc:XAe,donut:jAe,noSmoking:YAe,blockArc:qAe,rightArrow:KAe,leftArrow:ZAe,upArrow:JAe,downArrow:QAe,wedgeRectCallout:eRe,wedgeRoundRectCallout:tRe,wedgeEllipseCallout:nRe,star4:rRe,star5:oRe,...f_e,...vEe,...JEe,...zPe,...W_e,...D_e,...cAe,...EAe,...xAe,...kPe,...T_e};sRe={line:void 0,lineinv:void 0,rect:void 0,roundrect:void 0,ellipse:"ellipse(50% 50% at 50% 50%)",oval:"ellipse(50% 50% at 50% 50%)",triangle:"polygon(50% 0%, 0% 100%, 100% 100%)",rttriangle:"polygon(0% 0%, 100% 100%, 0% 100%)",righttriangle:"polygon(0% 0%, 100% 100%, 0% 100%)",diamond:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",parallelogram:"polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%)",trapezoid:"polygon(18% 0%, 82% 0%, 100% 100%, 0% 100%)",pentagon:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",hexagon:"polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%)",heptagon:"polygon(50% 0%, 89% 19%, 100% 61%, 78% 98%, 22% 98%, 0% 61%, 11% 19%)",octagon:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",decagon:"polygon(50% 0%, 79% 5%, 97% 25%, 100% 50%, 97% 75%, 79% 95%, 50% 100%, 21% 95%, 3% 75%, 0% 50%, 3% 25%, 21% 5%)",dodecagon:"polygon(50% 0%, 75% 7%, 93% 25%, 100% 50%, 93% 75%, 75% 93%, 50% 100%, 25% 93%, 7% 75%, 0% 50%, 7% 25%, 25% 7%)",pie:"polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 50% 100%)",piewedge:"polygon(100% 0%, 100% 100%, 0% 100%, 0% 55%, 55% 0%)",chord:"polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)",frame:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 15%, 15% 15%, 15% 85%, 85% 85%, 85% 15%, 0% 15%)",halfframe:"polygon(0% 0%, 100% 0%, 100% 15%, 15% 15%, 15% 100%, 0% 100%)",cross:"polygon(33% 0%, 67% 0%, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0% 67%, 0% 33%, 33% 33%)",plus:"polygon(33% 0%, 67% 0%, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0% 67%, 0% 33%, 33% 33%)",corner:"polygon(0% 0%, 60% 0%, 60% 40%, 100% 40%, 100% 100%, 0% 100%)",diagstripe:"polygon(0% 100%, 0% 50%, 50% 0%, 100% 0%)",donut:"circle(50% at 50% 50%)",nosmoking:"circle(50% at 50% 50%)",blockarc:"polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%, 25% 85%, 10% 50%, 25% 15%)",heart:"polygon(50% 20%, 75% 0%, 100% 10%, 100% 40%, 50% 100%, 0% 40%, 0% 10%, 25% 0%)",lightningbolt:"polygon(38% 0%, 62% 36%, 50% 36%, 80% 100%, 38% 58%, 50% 58%, 20% 0%)",sun:"polygon(50% 0%, 57% 15%, 68% 5%, 67% 20%, 80% 10%, 75% 25%, 90% 20%, 82% 32%, 100% 32%, 85% 42%, 100% 50%, 85% 58%, 100% 68%, 82% 68%, 90% 80%, 75% 75%, 80% 90%, 67% 80%, 68% 95%, 57% 85%, 50% 100%, 43% 85%, 32% 95%, 33% 80%, 20% 90%, 25% 75%, 10% 80%, 18% 68%, 0% 68%, 15% 58%, 0% 50%, 15% 42%, 0% 32%, 18% 32%, 10% 20%, 25% 25%, 20% 10%, 33% 20%, 32% 5%, 43% 15%)",moon:"polygon(40% 0%, 10% 30%, 10% 70%, 40% 100%, 100% 100%, 75% 70%, 75% 30%, 100% 0%)",cloud:"polygon(96% 50%, 98% 58%, 92% 65%, 86% 71%, 83% 78%, 77% 86%, 68% 87%, 58% 86%, 50% 90%, 40% 92%, 32% 87%, 26% 81%, 17% 78%, 9% 74%, 8% 65%, 8% 57%, 4% 50%, 2% 42%, 8% 35%, 14% 29%, 17% 22%, 23% 14%, 32% 13%, 42% 14%, 50% 10%, 60% 8%, 68% 13%, 74% 19%, 83% 22%, 91% 26%, 92% 35%, 92% 43%)",smileyface:"circle(50% at 50% 50%)",foldedcorner:"polygon(0% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%)",can:void 0,cylinder:void 0,cube:"polygon(10% 0%, 100% 0%, 100% 90%, 90% 100%, 0% 100%, 0% 10%)",bevel:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",funnel:"polygon(0% 0%, 100% 0%, 60% 40%, 60% 100%, 40% 100%, 40% 40%)",teardrop:"polygon(50% 0%, 100% 50%, 50% 100%, 15% 85%, 0% 50%)",plaque:"inset(0 round 18px)",arc:"polygon(50% 0%, 67% 2%, 81% 10%, 92% 22%, 98% 38%, 100% 50%, 98% 62%, 92% 78%, 81% 90%, 67% 98%, 50% 100%, 50% 75%, 58% 74%, 66% 70%, 72% 64%, 76% 56%, 78% 50%, 76% 44%, 72% 36%, 66% 30%, 58% 26%, 50% 25%)",wave:"polygon(0% 20%, 25% 0%, 75% 20%, 100% 0%, 100% 80%, 75% 100%, 25% 80%, 0% 100%)",doublewave:"polygon(0% 15%, 25% 0%, 50% 15%, 75% 0%, 100% 15%, 100% 85%, 75% 100%, 50% 85%, 25% 100%, 0% 85%)",round1rect:"inset(0 0 0 0 round 0 18px 0 0)",round2samerect:"inset(0 round 18px 18px 0 0)",round2diagrect:"inset(0 round 18px 0 18px 0)",snip1rect:"polygon(0% 0%, 85% 0%, 100% 15%, 100% 100%, 0% 100%)",snip2samerect:"polygon(15% 0%, 85% 0%, 100% 15%, 100% 100%, 0% 100%, 0% 15%)",snip2diagrect:"polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%)",sniproundrect:"inset(0 round 18px)",nonisoscelestrapezoid:"polygon(10% 0%, 80% 0%, 100% 100%, 0% 100%)",plaquetabs:"polygon(0% 0%, 15% 0%, 15% 15%, 0% 15%, 0% 0%, 100% 0%, 100% 15%, 85% 15%, 85% 0%, 100% 0%, 100% 100%, 85% 100%, 85% 85%, 100% 85%, 100% 100%, 0% 100%, 0% 85%, 15% 85%, 15% 100%, 0% 100%)",squaretabs:"polygon(0% 0%, 15% 0%, 15% 15%, 0% 15%, 0% 0%, 100% 0%, 100% 15%, 85% 15%, 85% 0%, 100% 0%, 100% 100%, 85% 100%, 85% 85%, 100% 85%, 100% 100%, 0% 100%, 0% 85%, 15% 85%, 15% 100%, 0% 100%)",rightarrow:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",rtarrow:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",leftarrow:"polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%)",uparrow:"polygon(50% 0%, 100% 40%, 80% 40%, 80% 100%, 20% 100%, 20% 40%, 0% 40%)",downarrow:"polygon(20% 0%, 80% 0%, 80% 60%, 100% 60%, 50% 100%, 0% 60%, 20% 60%)",leftrightarrow:"polygon(0% 50%, 20% 0%, 20% 25%, 80% 25%, 80% 0%, 100% 50%, 80% 100%, 80% 75%, 20% 75%, 20% 100%)",updownarrow:"polygon(50% 0%, 100% 20%, 75% 20%, 75% 80%, 100% 80%, 50% 100%, 0% 80%, 25% 80%, 25% 20%, 0% 20%)",quadarrow:"polygon(50% 0%, 65% 20%, 58% 20%, 58% 42%, 80% 42%, 80% 35%, 100% 50%, 80% 65%, 80% 58%, 58% 58%, 58% 80%, 65% 80%, 50% 100%, 35% 80%, 42% 80%, 42% 58%, 20% 58%, 20% 65%, 0% 50%, 20% 35%, 20% 42%, 42% 42%, 42% 20%, 35% 20%)",leftrightuparrow:"polygon(50% 0%, 70% 20%, 58% 20%, 58% 42%, 80% 42%, 80% 30%, 100% 50%, 80% 70%, 80% 58%, 58% 58%, 58% 100%, 42% 100%, 42% 58%, 20% 58%, 20% 70%, 0% 50%, 20% 30%, 20% 42%, 42% 42%, 42% 20%, 30% 20%)",bentuparrow:"polygon(50% 0%, 100% 30%, 75% 30%, 75% 65%, 100% 65%, 100% 100%, 0% 100%, 0% 65%, 25% 65%)",curvedrightarrow:"polygon(14% 5%, 23% 7%, 32% 9%, 40% 12%, 49% 16%, 56% 21%, 64% 27%, 70% 33%, 76% 40%, 81% 48%, 86% 56%, 89% 64%, 92% 73%, 100% 70%, 83% 87%, 58% 81%, 68% 79%, 66% 73%, 63% 67%, 60% 61%, 56% 55%, 52% 50%, 47% 46%, 42% 42%, 37% 38%, 31% 35%, 24% 33%, 18% 31%, 11% 30%)",curvedleftarrow:"polygon(89% 30%, 82% 31%, 76% 33%, 69% 35%, 63% 38%, 58% 42%, 53% 46%, 48% 50%, 44% 55%, 40% 61%, 37% 67%, 34% 73%, 32% 79%, 42% 81%, 17% 87%, 0% 70%, 8% 73%, 11% 64%, 14% 56%, 19% 48%, 24% 40%, 30% 33%, 36% 27%, 44% 21%, 51% 16%, 60% 12%, 68% 9%, 77% 7%, 86% 5%)",curveduparrow:"polygon(5% 86%, 7% 77%, 9% 68%, 12% 60%, 16% 51%, 21% 44%, 27% 36%, 33% 30%, 40% 24%, 48% 19%, 56% 14%, 64% 11%, 73% 8%, 70% 0%, 87% 17%, 81% 42%, 79% 32%, 73% 34%, 67% 37%, 61% 40%, 55% 44%, 50% 48%, 46% 53%, 42% 58%, 38% 63%, 35% 69%, 33% 76%, 31% 82%, 30% 89%)",curveddownarrow:"polygon(95% 14%, 93% 23%, 91% 32%, 88% 40%, 84% 49%, 79% 56%, 73% 64%, 67% 70%, 60% 76%, 52% 81%, 44% 86%, 36% 89%, 27% 92%, 30% 100%, 13% 83%, 19% 58%, 21% 68%, 27% 66%, 33% 63%, 39% 60%, 45% 56%, 50% 52%, 54% 47%, 58% 42%, 62% 37%, 65% 31%, 67% 24%, 69% 18%, 70% 11%)",stripedrightarrow:"polygon(0% 25%, 8% 25%, 12% 25%, 12% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 12% 80%, 12% 75%, 8% 75%, 0% 75%)",notchedrightarrow:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%, 15% 50%)",homeplate:"polygon(0% 0%, 80% 0%, 100% 50%, 80% 100%, 0% 100%)",chevron:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%)",rightarrowcallout:"polygon(0% 0%, 60% 0%, 60% 15%, 75% 15%, 100% 50%, 75% 85%, 60% 85%, 60% 100%, 0% 100%)",leftarrowcallout:"polygon(40% 0%, 100% 0%, 100% 100%, 40% 100%, 40% 85%, 25% 85%, 0% 50%, 25% 15%, 40% 15%)",uparrowcallout:"polygon(0% 40%, 15% 40%, 15% 25%, 50% 0%, 85% 25%, 85% 40%, 100% 40%, 100% 100%, 0% 100%)",downarrowcallout:"polygon(0% 0%, 100% 0%, 100% 60%, 85% 60%, 85% 75%, 50% 100%, 15% 75%, 15% 60%, 0% 60%)",leftrightarrowcallout:"polygon(25% 0%, 75% 0%, 75% 15%, 85% 15%, 100% 50%, 85% 85%, 75% 85%, 75% 100%, 25% 100%, 25% 85%, 15% 85%, 0% 50%, 15% 15%, 25% 15%)",updownarrowcallout:"polygon(0% 25%, 15% 25%, 15% 15%, 50% 0%, 85% 15%, 85% 25%, 100% 25%, 100% 75%, 85% 75%, 85% 85%, 50% 100%, 15% 85%, 15% 75%, 0% 75%)",quadarrowcallout:"polygon(30% 0%, 42% 15%, 42% 25%, 25% 25%, 25% 42%, 15% 42%, 0% 30%, 0% 70%, 15% 58%, 25% 58%, 25% 75%, 42% 75%, 42% 85%, 30% 100%, 70% 100%, 58% 85%, 58% 75%, 75% 75%, 75% 58%, 85% 58%, 100% 70%, 100% 30%, 85% 42%, 75% 42%, 75% 25%, 58% 25%, 58% 15%, 70% 0%)",bentarrow:"polygon(50% 0%, 100% 35%, 75% 35%, 75% 65%, 100% 65%, 100% 100%, 0% 100%, 0% 65%, 25% 65%)",uturnarrow:"polygon(30% 0%, 70% 0%, 70% 60%, 100% 60%, 50% 100%, 0% 60%, 30% 60%)",circulararrow:"polygon(64% 6%, 51% 4%, 38% 6%, 26% 10%, 16% 19%, 9% 29%, 5% 41%, 4% 54%, 7% 66%, 13% 78%, 22% 87%, 33% 93%, 46% 96%, 59% 95%, 71% 91%, 81% 84%, 89% 74%, 94% 62%, 96% 49%, 100% 49%, 88% 37%, 72% 50%, 80% 50%, 79% 58%, 76% 66%, 70% 72%, 64% 77%, 56% 79%, 47% 80%, 39% 78%, 32% 74%, 26% 68%, 22% 61%, 20% 53%, 21% 44%, 23% 36%, 28% 29%, 35% 24%, 42% 21%, 51% 20%, 59% 21%)",leftcirculararrow:"polygon(36% 6%, 49% 4%, 62% 6%, 74% 10%, 84% 19%, 91% 29%, 95% 41%, 96% 54%, 93% 66%, 87% 78%, 78% 87%, 67% 93%, 54% 96%, 41% 95%, 29% 91%, 19% 84%, 11% 74%, 6% 62%, 4% 49%, 0% 49%, 12% 37%, 28% 50%, 20% 50%, 21% 58%, 24% 66%, 30% 72%, 36% 77%, 44% 79%, 53% 80%, 61% 78%, 68% 74%, 74% 68%, 78% 61%, 80% 53%, 79% 44%, 77% 36%, 72% 29%, 65% 24%, 58% 21%, 49% 20%, 41% 21%)",leftrightcirculararrow:"polygon(7% 33%, 10% 27%, 14% 21%, 19% 16%, 24% 12%, 30% 9%, 36% 6%, 43% 5%, 50% 4%, 57% 5%, 64% 6%, 70% 9%, 76% 12%, 81% 16%, 86% 21%, 90% 27%, 93% 33%, 99% 31%, 89% 46%, 71% 42%, 78% 39%, 76% 35%, 73% 31%, 70% 28%, 67% 25%, 63% 23%, 59% 21%, 54% 20%, 50% 20%, 46% 20%, 41% 21%, 37% 23%, 33% 25%, 30% 28%, 27% 31%, 24% 35%, 22% 39%, 29% 42%, 11% 46%, 1% 31%)"},aRe={star4:"polygon(50% 0%, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0% 50%, 37% 37%)",star5:"polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)",star6:"polygon(50% 0%, 63% 25%, 93% 7%, 80% 37%, 100% 50%, 80% 63%, 93% 93%, 63% 75%, 50% 100%, 37% 75%, 7% 93%, 20% 63%, 0% 50%, 20% 37%, 7% 7%, 37% 25%)",star7:"polygon(50% 0%, 60% 28%, 89% 11%, 73% 38%, 100% 43%, 78% 58%, 97% 75%, 66% 68%, 65% 97%, 50% 72%, 35% 97%, 34% 68%, 3% 75%, 22% 58%, 0% 43%, 27% 38%, 11% 11%, 40% 28%)",star8:"polygon(50% 0%, 62% 26%, 85% 15%, 74% 38%, 100% 50%, 74% 62%, 85% 85%, 62% 74%, 50% 100%, 38% 74%, 15% 85%, 26% 62%, 0% 50%, 26% 38%, 15% 15%, 38% 26%)",star10:"polygon(50% 0%, 58% 22%, 79% 10%, 71% 31%, 97% 35%, 82% 50%, 97% 65%, 71% 69%, 79% 90%, 58% 78%, 50% 100%, 42% 78%, 21% 90%, 29% 69%, 3% 65%, 18% 50%, 3% 35%, 29% 31%, 21% 10%, 42% 22%)",star12:"polygon(50% 0%, 57% 18%, 75% 7%, 68% 25%, 93% 25%, 82% 38%, 100% 50%, 82% 62%, 93% 75%, 68% 75%, 75% 93%, 57% 82%, 50% 100%, 43% 82%, 25% 93%, 32% 75%, 7% 75%, 18% 62%, 0% 50%, 18% 38%, 7% 25%, 32% 25%, 25% 7%, 43% 18%)",star16:"polygon(50% 0%, 56% 15%, 66% 6%, 65% 22%, 79% 10%, 73% 27%, 90% 20%, 80% 35%, 97% 35%, 85% 44%, 100% 50%, 85% 56%, 97% 65%, 80% 65%, 90% 80%, 73% 73%, 79% 90%, 65% 78%, 66% 94%, 56% 85%, 50% 100%, 44% 85%, 34% 94%, 35% 78%, 21% 90%, 27% 73%, 10% 80%, 20% 65%, 3% 65%, 15% 56%, 0% 50%, 15% 44%, 3% 35%, 20% 35%, 10% 20%, 27% 27%, 21% 10%, 35% 22%, 34% 6%, 44% 15%)",star24:"polygon(50% 0%, 55% 12%, 62% 5%, 61% 17%, 71% 8%, 67% 20%, 79% 15%, 73% 26%, 85% 21%, 78% 32%, 92% 30%, 82% 39%, 97% 38%, 86% 45%, 100% 50%, 86% 55%, 97% 62%, 82% 61%, 92% 70%, 78% 68%, 85% 79%, 73% 74%, 79% 85%, 67% 80%, 71% 92%, 61% 83%, 62% 95%, 55% 88%, 50% 100%, 45% 88%, 38% 95%, 39% 83%, 29% 92%, 33% 80%, 21% 85%, 27% 74%, 15% 79%, 22% 68%, 8% 70%, 18% 61%, 3% 62%, 14% 55%, 0% 50%, 14% 45%, 3% 38%, 18% 39%, 8% 30%, 22% 32%, 15% 21%, 27% 26%, 21% 15%, 33% 20%, 29% 8%, 39% 17%, 38% 5%, 45% 12%)",star32:"polygon(50% 0%, 54% 10%, 59% 3%, 58% 14%, 66% 5%, 63% 16%, 73% 9%, 69% 20%, 79% 14%, 74% 23%, 83% 19%, 78% 29%, 89% 25%, 82% 33%, 93% 32%, 86% 39%, 97% 37%, 88% 44%, 100% 50%, 88% 56%, 97% 63%, 86% 61%, 93% 68%, 82% 67%, 89% 75%, 78% 71%, 83% 81%, 74% 77%, 79% 86%, 69% 80%, 73% 91%, 63% 84%, 66% 95%, 58% 86%, 59% 97%, 54% 90%, 50% 100%, 46% 90%, 41% 97%, 42% 86%, 34% 95%, 37% 84%, 27% 91%, 31% 80%, 21% 86%, 26% 77%, 17% 81%, 22% 71%, 11% 75%, 18% 67%, 7% 68%, 14% 61%, 3% 63%, 12% 56%, 0% 50%, 12% 44%, 3% 37%, 14% 39%, 7% 32%, 18% 33%, 11% 25%, 22% 29%, 17% 19%, 26% 23%, 21% 14%, 31% 20%, 27% 9%, 37% 16%, 34% 5%, 42% 14%, 41% 3%, 46% 10%)",ribbon:"polygon(0% 20%, 15% 20%, 15% 0%, 85% 0%, 85% 20%, 100% 20%, 100% 80%, 85% 70%, 85% 100%, 15% 100%, 15% 70%, 0% 80%)",ribbon2:"polygon(0% 0%, 15% 10%, 15% 0%, 85% 0%, 85% 10%, 100% 0%, 100% 80%, 85% 80%, 85% 100%, 15% 100%, 15% 80%, 0% 80%)",verticalscroll:"polygon(10% 0%, 100% 0%, 100% 90%, 90% 100%, 0% 100%, 0% 10%)",horizontalscroll:"polygon(0% 10%, 90% 0%, 100% 0%, 100% 90%, 10% 100%, 0% 100%)",irregularseal1:"polygon(40% 0%, 65% 15%, 85% 5%, 80% 30%, 100% 35%, 90% 55%, 100% 70%, 75% 75%, 65% 100%, 45% 80%, 20% 95%, 25% 65%, 0% 60%, 15% 40%, 5% 20%, 30% 25%)",irregularseal2:"polygon(50% 0%, 60% 10%, 75% 5%, 70% 20%, 95% 15%, 85% 35%, 100% 40%, 90% 55%, 100% 65%, 80% 70%, 85% 90%, 60% 80%, 50% 100%, 40% 85%, 20% 90%, 25% 70%, 0% 65%, 15% 50%, 5% 35%, 20% 30%, 5% 15%, 30% 15%)",explosion1:"polygon(40% 0%, 65% 15%, 85% 5%, 80% 30%, 100% 35%, 90% 55%, 100% 70%, 75% 75%, 65% 100%, 45% 80%, 20% 95%, 25% 65%, 0% 60%, 15% 40%, 5% 20%, 30% 25%)",explosion2:"polygon(50% 0%, 60% 10%, 75% 5%, 70% 20%, 95% 15%, 85% 35%, 100% 40%, 90% 55%, 100% 65%, 80% 70%, 85% 90%, 60% 80%, 50% 100%, 40% 85%, 20% 90%, 25% 70%, 0% 65%, 15% 50%, 5% 35%, 20% 30%, 5% 15%, 30% 15%)",ellipseribbon:"polygon(0% 60%, 5% 50%, 15% 45%, 50% 40%, 85% 45%, 95% 50%, 100% 60%, 100% 100%, 85% 90%, 50% 85%, 15% 90%, 0% 100%)",ellipseribbon2:"polygon(0% 0%, 15% 10%, 50% 15%, 85% 10%, 100% 0%, 100% 40%, 95% 50%, 85% 55%, 50% 60%, 15% 55%, 5% 50%, 0% 40%)",leftbrace:"polygon(80% 0%, 50% 5%, 45% 15%, 45% 35%, 0% 50%, 45% 65%, 45% 85%, 50% 95%, 80% 100%)",rightbrace:"polygon(20% 0%, 50% 5%, 55% 15%, 55% 35%, 100% 50%, 55% 65%, 55% 85%, 50% 95%, 20% 100%)",leftbracket:"polygon(40% 0%, 10% 0%, 0% 10%, 0% 90%, 10% 100%, 40% 100%)",rightbracket:"polygon(60% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 60% 100%)",bracepair:"polygon(20% 0%, 80% 0%, 80% 5%, 90% 10%, 90% 35%, 100% 50%, 90% 65%, 90% 90%, 80% 95%, 80% 100%, 20% 100%, 20% 95%, 10% 90%, 10% 65%, 0% 50%, 10% 35%, 10% 10%, 20% 5%)",bracketpair:"polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%)",wedgerectcallout:"polygon(0% 0%, 100% 0%, 100% 75%, 50% 75%, 30% 100%, 40% 75%, 0% 75%)",wedgeroundrectcallout:"polygon(5% 0%, 95% 0%, 100% 5%, 100% 70%, 95% 75%, 50% 75%, 30% 100%, 40% 75%, 5% 75%, 0% 70%, 0% 5%)",wedgeellipsecallout:"polygon(98% 40%, 96% 49%, 92% 58%, 84% 65%, 74% 70%, 62% 74%, 50% 75%, 38% 74%, 26% 70%, 16% 65%, 10% 95%, 8% 58%, 4% 49%, 2% 40%, 4% 31%, 8% 22%, 16% 15%, 26% 10%, 38% 6%, 50% 5%, 62% 6%, 74% 10%, 84% 15%, 92% 22%, 96% 31%)",cloudcallout:"polygon(97% 42%, 99% 51%, 92% 57%, 86% 63%, 83% 72%, 74% 75%, 64% 75%, 55% 78%, 45% 79%, 37% 73%, 30% 69%, 18% 70%, 12% 78%, 14% 84%, 8% 92%, 4% 98%, 10% 90%, 16% 86%, 22% 78%, 22% 70%, 20% 66%, 16% 58%, 17% 49%, 13% 42%, 11% 33%, 18% 27%, 24% 21%, 27% 12%, 36% 9%, 46% 9%, 55% 6%, 65% 5%, 73% 11%, 80% 15%, 90% 18%, 94% 26%, 93% 35%)",callout1:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",callout2:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",callout3:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",bordercallout1:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",bordercallout2:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",bordercallout3:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",accentcallout1:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",accentcallout2:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",accentcallout3:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",accentbordercallout1:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",accentbordercallout2:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",accentbordercallout3:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",flowchartprocess:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",flowchartalternateprocess:"inset(0 round 12px)",flowchartdecision:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",flowchartinputoutput:"polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%)",flowchartpredefinedprocess:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",flowchartinternalstorage:"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)",flowchartdocument:"polygon(0% 0%, 100% 0%, 100% 80%, 75% 90%, 50% 80%, 25% 90%, 0% 80%)",flowchartmultidocument:"polygon(10% 10%, 90% 5%, 100% 0%, 100% 70%, 95% 80%, 85% 85%, 85% 75%, 75% 85%, 50% 75%, 25% 85%, 0% 75%, 0% 10%)",flowchartterminator:"inset(0 round 9999px)",flowchartpreparation:"polygon(17% 0%, 83% 0%, 100% 50%, 83% 100%, 17% 100%, 0% 50%)",flowchartmanualinput:"polygon(0% 20%, 100% 0%, 100% 100%, 0% 100%)",flowchartmanualoperation:"polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%)",flowchartconnector:"circle(50% at 50% 50%)",flowchartoffpageconnector:"polygon(0% 0%, 100% 0%, 100% 70%, 50% 100%, 0% 70%)",flowchartpunchedcard:"polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 15%)",flowchartpunchedtape:"polygon(0% 10%, 25% 0%, 50% 10%, 75% 0%, 100% 10%, 100% 90%, 75% 100%, 50% 90%, 25% 100%, 0% 90%)",flowchartsummingjunction:"ellipse(50% 50% at 50% 50%)",flowchartor:"ellipse(50% 50% at 50% 50%)",flowchartcollate:"polygon(0% 0%, 100% 0%, 50% 50%, 100% 100%, 0% 100%, 50% 50%)",flowchartsort:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",flowchartextract:"polygon(50% 0%, 100% 100%, 0% 100%)",flowchartmerge:"polygon(0% 0%, 100% 0%, 50% 100%)",flowchartonlinestorage:"polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%)",flowchartofflinestorage:"polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%)",flowchartmagneticdisk:"ellipse(50% 50% at 50% 50%)",flowchartmagneticdrum:"polygon(0% 0%, 90% 0%, 100% 15%, 100% 85%, 90% 100%, 0% 100%)",flowchartmagnetictape:"polygon(95% 50%, 94% 60%, 91% 70%, 85% 78%, 85% 95%, 100% 95%, 100% 80%, 78% 85%, 70% 91%, 60% 94%, 50% 95%, 40% 94%, 30% 91%, 22% 85%, 15% 78%, 9% 70%, 6% 60%, 5% 50%, 6% 40%, 9% 30%, 15% 22%, 22% 15%, 30% 9%, 40% 6%, 50% 5%, 60% 6%, 70% 9%, 78% 15%, 85% 22%, 91% 30%, 94% 40%)",flowchartdisplay:"polygon(17% 0%, 83% 0%, 100% 50%, 83% 100%, 17% 100%, 0% 50%)",flowchartdelay:"polygon(0% 0%, 60% 0%, 100% 50%, 60% 100%, 0% 100%)",mathdivide:"polygon(38% 0%, 62% 0%, 62% 8%, 38% 8%, 38% 0%, 10% 42%, 90% 42%, 90% 58%, 10% 58%, 10% 42%, 38% 92%, 62% 92%, 62% 100%, 38% 100%, 38% 92%)",mathequal:"polygon(10% 30%, 90% 30%, 90% 42%, 10% 42%, 10% 30%, 10% 58%, 90% 58%, 90% 70%, 10% 70%, 10% 58%)",mathnotequal:"polygon(10% 30%, 90% 30%, 90% 42%, 60% 42%, 52% 58%, 90% 58%, 90% 70%, 48% 70%, 38% 95%, 30% 95%, 38% 70%, 10% 70%, 10% 58%, 42% 58%, 50% 42%, 10% 42%, 10% 30%, 42% 30%, 52% 5%, 60% 5%)",mathplus:"polygon(40% 0%, 60% 0%, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0% 60%, 0% 40%, 40% 40%)",mathminus:"polygon(10% 40%, 90% 40%, 90% 60%, 10% 60%)",mathmultiply:"polygon(20% 5%, 50% 35%, 80% 5%, 95% 20%, 65% 50%, 95% 80%, 80% 95%, 50% 65%, 20% 95%, 5% 80%, 35% 50%, 5% 20%)",actionbuttonblank:"inset(0 round 6px)",actionbuttonhome:"inset(0 round 6px)",actionbuttonhelp:"inset(0 round 6px)",actionbuttoninformation:"inset(0 round 6px)",actionbuttonbackorprevious:"inset(0 round 6px)",actionbuttonbackprevious:"inset(0 round 6px)",actionbuttonforwardornext:"inset(0 round 6px)",actionbuttonforwardnext:"inset(0 round 6px)",actionbuttonbeginning:"inset(0 round 6px)",actionbuttonend:"inset(0 round 6px)",actionbuttonreturn:"inset(0 round 6px)",actionbuttondocument:"inset(0 round 6px)",actionbuttonsound:"inset(0 round 6px)",actionbuttonmovie:"inset(0 round 6px)",flowchartdata:"polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%)",flowchartdirectdata:"polygon(0% 0%, 90% 0%, 100% 15%, 100% 85%, 90% 100%, 0% 100%)",flowchartsequentialaccessstorage:"ellipse(50% 50% at 50% 50%)",flowchartstoreddata:"polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 85%, 8% 50%, 0% 15%)",swoosharrow:"polygon(0% 100%, 8% 81%, 16% 65%, 25% 52%, 33% 41%, 42% 33%, 51% 28%, 60% 25%, 69% 24%, 78% 27%, 88% 32%, 100% 25%, 95% 5%, 78% 22%, 82% 40%, 75% 37%, 67% 37%, 60% 38%, 54% 41%, 47% 46%, 40% 53%, 34% 62%, 27% 73%, 21% 85%, 15% 100%)",leftuparrow:"polygon(50% 0%, 75% 25%, 60% 25%, 60% 60%, 25% 60%, 25% 75%, 0% 50%, 25% 25%, 25% 40%, 40% 40%, 40% 25%)",straightconnector1:void 0,bentconnector2:void 0,bentconnector3:void 0,bentconnector4:void 0,bentconnector5:void 0,curvedconnector2:void 0,curvedconnector3:void 0,curvedconnector4:void 0,curvedconnector5:void 0,chartx:"polygon(20% 5%, 50% 35%, 80% 5%, 95% 20%, 65% 50%, 95% 80%, 80% 95%, 50% 65%, 20% 95%, 5% 80%, 35% 50%, 5% 20%)",chartstar:"polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)",chartplus:"polygon(33% 0%, 67% 0%, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0% 67%, 0% 33%, 33% 33%)",cornertabs:"polygon(0% 0%, 15% 0%, 0% 15%, 0% 0%, 85% 0%, 100% 0%, 100% 15%, 85% 0%, 100% 85%, 100% 100%, 85% 100%, 100% 85%, 0% 85%, 0% 100%, 15% 100%, 0% 85%)",gear6:"polygon(50% 0%, 60% 10%, 70% 5%, 72% 17%, 85% 15%, 82% 28%, 95% 30%, 88% 42%, 100% 50%, 88% 58%, 95% 70%, 82% 72%, 85% 85%, 72% 83%, 70% 95%, 60% 90%, 50% 100%, 40% 90%, 30% 95%, 28% 83%, 15% 85%, 18% 72%, 5% 70%, 12% 58%, 0% 50%, 12% 42%, 5% 30%, 18% 28%, 15% 15%, 28% 17%, 30% 5%, 40% 10%)",gear9:"polygon(50% 0%, 57% 8%, 65% 2%, 65% 13%, 75% 8%, 73% 19%, 83% 15%, 78% 25%, 90% 24%, 83% 33%, 95% 35%, 87% 42%, 100% 50%, 87% 58%, 95% 65%, 83% 67%, 90% 76%, 78% 75%, 83% 85%, 73% 81%, 75% 92%, 65% 87%, 65% 98%, 57% 92%, 50% 100%, 43% 92%, 35% 98%, 35% 87%, 25% 92%, 27% 81%, 17% 85%, 22% 75%, 10% 76%, 17% 67%, 5% 65%, 13% 58%, 0% 50%, 13% 42%, 5% 35%, 17% 33%, 10% 24%, 22% 25%, 17% 15%, 27% 19%, 25% 8%, 35% 13%, 35% 2%, 43% 8%)",leftrightribbon:"polygon(0% 25%, 15% 0%, 15% 15%, 85% 15%, 85% 0%, 100% 25%, 100% 75%, 85% 100%, 85% 85%, 15% 85%, 15% 100%, 0% 75%)"},oL={...sRe,...aRe};lRe=[{name:"line",label:"Line",category:"other"},{name:"lineInv",label:"Line Inverse",category:"other"},{name:"straightConnector1",label:"Straight Connector",category:"other"},{name:"bentConnector2",label:"Elbow Connector (L)",category:"other"},{name:"bentConnector3",label:"Elbow Connector (Z)",category:"other"},{name:"bentConnector4",label:"Elbow Connector (3-Segment)",category:"other"},{name:"bentConnector5",label:"Elbow Connector (4-Segment)",category:"other"},{name:"curvedConnector2",label:"Curved Connector (L)",category:"other"},{name:"curvedConnector3",label:"Curved Connector (2-Segment)",category:"other"},{name:"curvedConnector4",label:"Curved Connector (3-Segment)",category:"other"},{name:"curvedConnector5",label:"Curved Connector (4-Segment)",category:"other"},{name:"rightArrow",label:"Right Arrow",category:"arrows"},{name:"leftArrow",label:"Left Arrow",category:"arrows"},{name:"upArrow",label:"Up Arrow",category:"arrows"},{name:"downArrow",label:"Down Arrow",category:"arrows"},{name:"leftRightArrow",label:"Left-Right Arrow",category:"arrows"},{name:"upDownArrow",label:"Up-Down Arrow",category:"arrows"},{name:"quadArrow",label:"Quad Arrow",category:"arrows"},{name:"leftRightUpArrow",label:"Left-Right-Up Arrow",category:"arrows"},{name:"bentUpArrow",label:"Bent-Up Arrow",category:"arrows"},{name:"bentArrow",label:"Bent Arrow",category:"arrows"},{name:"uturnArrow",label:"U-Turn Arrow",category:"arrows"},{name:"stripedRightArrow",label:"Striped Right Arrow",category:"arrows"},{name:"notchedRightArrow",label:"Notched Right Arrow",category:"arrows"},{name:"homePlate",label:"Home Plate",category:"arrows"},{name:"chevron",label:"Chevron",category:"arrows"},{name:"rightArrowCallout",label:"Right Arrow Callout",category:"arrows"},{name:"leftArrowCallout",label:"Left Arrow Callout",category:"arrows"},{name:"upArrowCallout",label:"Up Arrow Callout",category:"arrows"},{name:"downArrowCallout",label:"Down Arrow Callout",category:"arrows"},{name:"leftRightArrowCallout",label:"Left-Right Arrow Callout",category:"arrows"},{name:"upDownArrowCallout",label:"Up-Down Arrow Callout",category:"arrows"},{name:"quadArrowCallout",label:"Quad Arrow Callout",category:"arrows"},{name:"curvedRightArrow",label:"Curved Right Arrow",category:"arrows"},{name:"curvedLeftArrow",label:"Curved Left Arrow",category:"arrows"},{name:"curvedUpArrow",label:"Curved Up Arrow",category:"arrows"},{name:"curvedDownArrow",label:"Curved Down Arrow",category:"arrows"},{name:"swooshArrow",label:"Swoosh Arrow",category:"arrows"},{name:"leftUpArrow",label:"Left-Up Arrow",category:"arrows"},{name:"circularArrow",label:"Circular Arrow",category:"arrows"},{name:"leftCircularArrow",label:"Left Circular Arrow",category:"arrows"},{name:"leftRightCircularArrow",label:"Left-Right Circular Arrow",category:"arrows"},{name:"wedgeRectCallout",label:"Rectangular Callout",category:"callouts"},{name:"wedgeRoundRectCallout",label:"Rounded Rectangular Callout",category:"callouts"},{name:"wedgeEllipseCallout",label:"Oval Callout",category:"callouts"},{name:"cloudCallout",label:"Cloud Callout",category:"callouts"},{name:"callout1",label:"Line Callout 1",category:"callouts"},{name:"callout2",label:"Line Callout 2",category:"callouts"},{name:"callout3",label:"Line Callout 3",category:"callouts"},{name:"borderCallout1",label:"Border Callout 1",category:"callouts"},{name:"borderCallout2",label:"Border Callout 2",category:"callouts"},{name:"borderCallout3",label:"Border Callout 3",category:"callouts"},{name:"accentCallout1",label:"Accent Callout 1",category:"callouts"},{name:"accentCallout2",label:"Accent Callout 2",category:"callouts"},{name:"accentCallout3",label:"Accent Callout 3",category:"callouts"},{name:"accentBorderCallout1",label:"Accent Border Callout 1",category:"callouts"},{name:"accentBorderCallout2",label:"Accent Border Callout 2",category:"callouts"},{name:"accentBorderCallout3",label:"Accent Border Callout 3",category:"callouts"},{name:"flowChartProcess",label:"Process",category:"flowchart"},{name:"flowChartAlternateProcess",label:"Alternate Process",category:"flowchart"},{name:"flowChartDecision",label:"Decision",category:"flowchart"},{name:"flowChartInputOutput",label:"Input/Output",category:"flowchart"},{name:"flowChartPredefinedProcess",label:"Predefined Process",category:"flowchart"},{name:"flowChartInternalStorage",label:"Internal Storage",category:"flowchart"},{name:"flowChartDocument",label:"Document",category:"flowchart"},{name:"flowChartMultidocument",label:"Multi-Document",category:"flowchart"},{name:"flowChartTerminator",label:"Terminator",category:"flowchart"},{name:"flowChartPreparation",label:"Preparation",category:"flowchart"},{name:"flowChartManualInput",label:"Manual Input",category:"flowchart"},{name:"flowChartManualOperation",label:"Manual Operation",category:"flowchart"},{name:"flowChartConnector",label:"Connector",category:"flowchart"},{name:"flowChartOffpageConnector",label:"Off-Page Connector",category:"flowchart"},{name:"flowChartPunchedCard",label:"Card",category:"flowchart"},{name:"flowChartPunchedTape",label:"Punched Tape",category:"flowchart"},{name:"flowChartSummingJunction",label:"Summing Junction",category:"flowchart"},{name:"flowChartOr",label:"Or",category:"flowchart"},{name:"flowChartCollate",label:"Collate",category:"flowchart"},{name:"flowChartSort",label:"Sort",category:"flowchart"},{name:"flowChartExtract",label:"Extract",category:"flowchart"},{name:"flowChartMerge",label:"Merge",category:"flowchart"},{name:"flowChartOnlineStorage",label:"Online Storage",category:"flowchart"},{name:"flowChartOfflineStorage",label:"Offline Storage",category:"flowchart"},{name:"flowChartMagneticDisk",label:"Magnetic Disk",category:"flowchart"},{name:"flowChartMagneticDrum",label:"Magnetic Drum",category:"flowchart"},{name:"flowChartMagneticTape",label:"Magnetic Tape",category:"flowchart"},{name:"flowChartDisplay",label:"Display",category:"flowchart"},{name:"flowChartDelay",label:"Delay",category:"flowchart"},{name:"flowChartData",label:"Data",category:"flowchart"},{name:"flowChartDirectData",label:"Direct Access Storage",category:"flowchart"},{name:"flowChartSequentialAccessStorage",label:"Sequential Access",category:"flowchart"},{name:"flowChartStoredData",label:"Stored Data",category:"flowchart"},{name:"actionButtonBlank",label:"Action: Blank",category:"action"},{name:"actionButtonHome",label:"Action: Home",category:"action"},{name:"actionButtonHelp",label:"Action: Help",category:"action"},{name:"actionButtonInformation",label:"Action: Information",category:"action"},{name:"actionButtonBackOrPrevious",label:"Action: Back",category:"action"},{name:"actionButtonForwardOrNext",label:"Action: Forward",category:"action"},{name:"actionButtonBeginning",label:"Action: Beginning",category:"action"},{name:"actionButtonEnd",label:"Action: End",category:"action"},{name:"actionButtonReturn",label:"Action: Return",category:"action"},{name:"actionButtonDocument",label:"Action: Document",category:"action"},{name:"actionButtonSound",label:"Action: Sound",category:"action"},{name:"actionButtonMovie",label:"Action: Movie",category:"action"},{name:"actionButtonBackPrevious",label:"Action: Back",category:"action"},{name:"actionButtonForwardNext",label:"Action: Forward",category:"action"}],cRe=[{name:"rect",label:"Rectangle",category:"basic"},{name:"roundRect",label:"Rounded Rectangle",category:"basic"},{name:"ellipse",label:"Ellipse",category:"basic"},{name:"triangle",label:"Triangle",category:"basic"},{name:"rtTriangle",label:"Right Triangle",category:"basic"},{name:"rightTriangle",label:"Right Triangle",category:"basic"},{name:"diamond",label:"Diamond",category:"basic"},{name:"parallelogram",label:"Parallelogram",category:"basic"},{name:"trapezoid",label:"Trapezoid",category:"basic"},{name:"pentagon",label:"Pentagon",category:"basic"},{name:"hexagon",label:"Hexagon",category:"basic"},{name:"heptagon",label:"Heptagon",category:"basic"},{name:"octagon",label:"Octagon",category:"basic"},{name:"decagon",label:"Decagon",category:"basic"},{name:"dodecagon",label:"Dodecagon",category:"basic"},{name:"cross",label:"Cross",category:"basic"},{name:"plus",label:"Plus",category:"basic"},{name:"frame",label:"Frame",category:"basic"},{name:"halfFrame",label:"Half Frame",category:"basic"},{name:"corner",label:"Corner",category:"basic"},{name:"diagStripe",label:"Diagonal Stripe",category:"basic"},{name:"donut",label:"Donut",category:"basic"},{name:"noSmoking",label:"No Symbol",category:"basic"},{name:"blockArc",label:"Block Arc",category:"basic"},{name:"heart",label:"Heart",category:"basic"},{name:"lightningBolt",label:"Lightning Bolt",category:"basic"},{name:"sun",label:"Sun",category:"basic"},{name:"moon",label:"Moon",category:"basic"},{name:"cloud",label:"Cloud",category:"basic"},{name:"smileyFace",label:"Smiley Face",category:"basic"},{name:"foldedCorner",label:"Folded Corner",category:"basic"},{name:"can",label:"Cylinder",category:"basic"},{name:"cube",label:"Cube",category:"basic"},{name:"bevel",label:"Bevel",category:"basic"},{name:"funnel",label:"Funnel",category:"basic"},{name:"teardrop",label:"Teardrop",category:"basic"},{name:"plaque",label:"Plaque",category:"basic"},{name:"arc",label:"Arc",category:"basic"},{name:"chord",label:"Chord",category:"basic"},{name:"wave",label:"Wave",category:"basic"},{name:"doubleWave",label:"Double Wave",category:"basic"},{name:"round1Rect",label:"Round Single Corner",category:"rectangles"},{name:"round2SameRect",label:"Round Same-Side Corners",category:"rectangles"},{name:"round2DiagRect",label:"Round Diagonal Corners",category:"rectangles"},{name:"snip1Rect",label:"Snip Single Corner",category:"rectangles"},{name:"snip2SameRect",label:"Snip Same-Side Corners",category:"rectangles"},{name:"snip2DiagRect",label:"Snip Diagonal Corners",category:"rectangles"},{name:"snipRoundRect",label:"Snip and Round Corner",category:"rectangles"},{name:"nonIsoscelesTrapezoid",label:"Non-Isosceles Trapezoid",category:"rectangles"},{name:"star4",label:"4-Point Star",category:"stars"},{name:"star5",label:"5-Point Star",category:"stars"},{name:"star6",label:"6-Point Star",category:"stars"},{name:"star7",label:"7-Point Star",category:"stars"},{name:"star8",label:"8-Point Star",category:"stars"},{name:"star10",label:"10-Point Star",category:"stars"},{name:"star12",label:"12-Point Star",category:"stars"},{name:"star16",label:"16-Point Star",category:"stars"},{name:"star24",label:"24-Point Star",category:"stars"},{name:"star32",label:"32-Point Star",category:"stars"},{name:"ribbon",label:"Ribbon",category:"stars"},{name:"ribbon2",label:"Ribbon 2",category:"stars"},{name:"verticalScroll",label:"Vertical Scroll",category:"stars"},{name:"horizontalScroll",label:"Horizontal Scroll",category:"stars"},{name:"irregularSeal1",label:"Explosion 1",category:"stars"},{name:"irregularSeal2",label:"Explosion 2",category:"stars"},{name:"ellipseRibbon",label:"Ellipse Ribbon",category:"stars"},{name:"ellipseRibbon2",label:"Ellipse Ribbon 2",category:"stars"},{name:"mathDivide",label:"Division",category:"math"},{name:"mathEqual",label:"Equal",category:"math"},{name:"mathNotEqual",label:"Not Equal",category:"math"},{name:"mathPlus",label:"Plus",category:"math"},{name:"mathMinus",label:"Minus",category:"math"},{name:"mathMultiply",label:"Multiply",category:"math"},{name:"gear6",label:"Gear (6 teeth)",category:"other"},{name:"gear9",label:"Gear (9 teeth)",category:"other"},{name:"leftRightRibbon",label:"Left-Right Ribbon",category:"other"},{name:"pie",label:"Pie",category:"other"},{name:"pieWedge",label:"Pie Wedge",category:"other"},{name:"leftBrace",label:"Left Brace",category:"other"},{name:"rightBrace",label:"Right Brace",category:"other"},{name:"leftBracket",label:"Left Bracket",category:"other"},{name:"rightBracket",label:"Right Bracket",category:"other"},{name:"bracePair",label:"Brace Pair",category:"other"},{name:"bracketPair",label:"Bracket Pair",category:"other"},{name:"cornerTabs",label:"Corner Tabs",category:"other"},{name:"squareTabs",label:"Square Tabs",category:"other"},{name:"plaqueTabs",label:"Plaque Tabs",category:"other"},{name:"chartX",label:"Chart X",category:"other"},{name:"chartStar",label:"Chart Star",category:"other"},{name:"chartPlus",label:"Chart Plus",category:"other"}],dRe=[...cRe,...lRe],uRe={basic:"Basic Shapes",rectangles:"Rectangles",arrows:"Arrows",stars:"Stars & Banners",callouts:"Callouts",flowchart:"Flowchart",math:"Math",action:"Action Buttons",other:"Other Shapes"};no=1e-9;DRe=1e5;LRe=class{points=[];closed=false;smoothed=false;bezierCurves=[];addPoint(t,e){return this.points.push({x:t,y:e}),this.smoothed=false,this.bezierCurves=[],this}close(){return this.closed=true,this}getPoints(){return [...this.points]}isClosed(){return this.closed}isSmoothed(){return this.smoothed}simplify(t=2){return this.points.length>2&&(this.points=T9(this.points,t),this.smoothed=false,this.bezierCurves=[]),this}smooth(t=6){return this.points.length>=2&&(this.bezierCurves=C9(this.points,t),this.smoothed=true),this}toSvgPath(){if(this.points.length===0)return "";let t=[],e=this.points[0];if(t.push(`M ${e.x} ${e.y}`),this.smoothed&&this.bezierCurves.length>0)for(let[n,r,o]of this.bezierCurves)t.push(`C ${n.x} ${n.y} ${r.x} ${r.y} ${o.x} ${o.y}`);else for(let n=1;n<this.points.length;n++)t.push(`L ${this.points[n].x} ${this.points[n].y}`);return this.closed&&t.push("Z"),t.join(" ")}toCustomGeometryPaths(){if(this.points.length===0)return [{width:1,height:1,segments:[]}];let t=0,e=0;for(let s of this.points)s.x>t&&(t=s.x),s.y>e&&(e=s.y);if(this.smoothed)for(let[s,a,l]of this.bezierCurves)for(let c of [s,a,l])c.x>t&&(t=c.x),c.y>e&&(e=c.y);let n=Math.max(t,1),r=Math.max(e,1),o=[],i=this.points[0];if(o.push({type:"moveTo",pt:{x:i.x,y:i.y}}),this.smoothed&&this.bezierCurves.length>0)for(let[s,a,l]of this.bezierCurves)o.push({type:"cubicBezTo",pts:[{x:s.x,y:s.y},{x:a.x,y:a.y},{x:l.x,y:l.y}]});else for(let s=1;s<this.points.length;s++)o.push({type:"lineTo",pt:{x:this.points[s].x,y:this.points[s].y}});return this.closed&&o.push({type:"close"}),[{width:n,height:r,segments:o}]}},S2={adj1:18750,adj2:-8333,adj3:112500,adj4:-38333},Ug={adj1:18750,adj2:-8333,adj3:18750,adj4:-16667,adj5:112500,adj6:-46667},Hu={adj1:18750,adj2:-8333,adj3:18750,adj4:-16667,adj5:1e5,adj6:-16667,adj7:112963,adj8:-8333},FRe=new Set(["callout1","callout2","callout3","bordercallout1","bordercallout2","bordercallout3","accentcallout1","accentcallout2","accentcallout3","accentbordercallout1","accentbordercallout2","accentbordercallout3"]);ORe=new Set(["rawXml","locks","actionClick","actionHover","adjustmentHandles"]),BRe=["backgroundColor","backgroundImage","backgroundGradient","hidden","layoutPath","layoutName","notes","sectionName","sectionId"];U5=0;uv=/\{\{([^}]+)\}\}/g,O9=/^\s*#each\s+([\w.]+)\s*$/,B9=/^\s*\/each\s*$/,U9=/^\s*#if\s+(!?[\w.]+)\s*$/,$9=/^\s*\/if\s*$/;$5=0;Ike=class H5{_handler;_data;_createSlide;constructor(e){this._handler=e.handler,this._data=e.data,this._createSlide=e.createSlide;}static async create(e){let n=await U2.create(e);return new H5(n)}static async load(e){let n=new bd,r=await n.load(e);return new H5({handler:n,data:r,createSlide:o=>{let i=r.slides.length+1;return new iD(i,void 0,o)}})}addSlide(e){return Ske({data:this._data,createSlide:this._createSlide},e)}insertSlide(e,n){return wke({data:this._data,createSlide:this._createSlide},e,n)}duplicateSlide(e){return Tke(this._data,e)}removeSlide(e){return Cke(this._data,e),this}moveSlide(e,n){return Mke(this._data,e,n),this}swapSlides(e,n){return Pke(this._data,e,n),this}reorderSlides(e){return _ke(this._data,e),this}clearSlides(){return Eke(this._data),this}forEachSlide(e){return Rke(this._data,e),this}findSlides(e){return kke(this._data,e)}get slideCount(){return this._data.slides.length}getSlide(e){return Ake(this._data,e)}findText(e){return ike(this._data,e)}replaceText(e,n){return ske(this._data,e,n)}replaceTextOnSlide(e,n,r){return ake(this._data,e,n,r)}addSection(e,n){return lke(this._data,e,n)}removeSection(e){return cke(this._data,e)}reorderSections(e){return dke(this._data,e),this}getSectionForSlide(e){return uke(this._data,e)}moveSlidesToSection(e,n){return pke(this._data,e,n)}get sections(){return this._data.sections??[]}merge(e,n){return hke(this._data,e._data,n)}applyTemplate(e){return fke(this._data,e),this}async mailMerge(e){return mke(this._handler,this._data,e)}diff(e){return gke(this._data,e._data)}get title(){return this._data.coreProperties?.title}get creator(){return this._data.coreProperties?.creator}get width(){return this._data.widthEmu??this._data.width??12192e3}get height(){return this._data.heightEmu??this._data.height??6858e3}xmlBuilder(){return xke(this._data)}get handler(){return this._handler}get data(){return this._data}get slides(){return this._data.slides}async save(){return this._handler.save(this._data.slides)}async saveEncrypted(e){return this._handler.saveEncrypted(this._data.slides,e)}dispose(){this._handler.dispose();}};Kke=9525;cIe=class Q9{_text;_options={};constructor(e){this._text=e;}static create(e){return new Q9(e)}position(e,n){return this._options.x=e,this._options.y=n,this}size(e,n){return this._options.width=e,this._options.height=n,this}bounds(e,n,r,o){return this._options.x=e,this._options.y=n,this._options.width=r,this._options.height=o,this}rotation(e){return this._options.rotation=e,this}opacity(e){return this._options.opacity=e,this}fontSize(e){return this._options.fontSize=e,this}fontFamily(e){return this._options.fontFamily=e,this}bold(e=true){return this._options.bold=e,this}italic(e=true){return this._options.italic=e,this}underline(e=true){return this._options.underline=e,this}strikethrough(e=true){return this._options.strikethrough=e,this}color(e){return this._options.color=e,this}alignment(e){return this._options.alignment=e,this}verticalAlignment(e){return this._options.verticalAlignment=e,this}lineSpacing(e){return this._options.lineSpacing=e,this}fill(e){return this._options.fill=e,this}stroke(e){return this._options.stroke=e,this}shadow(e){return this._options.shadow=e,this}build(){return J5(this._text,this._options)}},dIe=class eY{_shapeType;_options={};constructor(e){this._shapeType=e;}static create(e){return new eY(e)}position(e,n){return this._options.x=e,this._options.y=n,this}size(e,n){return this._options.width=e,this._options.height=n,this}bounds(e,n,r,o){return this._options.x=e,this._options.y=n,this._options.width=r,this._options.height=o,this}rotation(e){return this._options.rotation=e,this}opacity(e){return this._options.opacity=e,this}fill(e){return this._options.fill=e,this}solidFill(e,n){return this._options.fill={type:"solid",color:e,opacity:n},this}noFill(){return this._options.fill={type:"none"},this}gradientFill(e,n){return this._options.fill={type:"gradient",stops:e,angle:n},this}stroke(e){return this._options.stroke=e,this}shadow(e){return this._options.shadow=e,this}text(e){return this._options.text=e,this}textStyle(e){return this._options.textStyle=e,this}adjustments(e){return this._options.adjustments=e,this}build(){return Q5(this._shapeType,this._options)}},uIe=class tY{_source;_options={};constructor(e){this._source=e;}static create(e){return new tY(e)}position(e,n){return this._options.x=e,this._options.y=n,this}size(e,n){return this._options.width=e,this._options.height=n,this}bounds(e,n,r,o){return this._options.x=e,this._options.y=n,this._options.width=r,this._options.height=o,this}rotation(e){return this._options.rotation=e,this}opacity(e){return this._options.opacity=e,this}altText(e){return this._options.altText=e,this}crop(e,n,r,o){return this._options.cropLeft=e,this._options.cropTop=n,this._options.cropRight=r,this._options.cropBottom=o,this}build(){return tD(this._source,this._options)}},pIe=class nY{_input;_options={};constructor(){this._input={rows:[]};}static create(){return new nY}position(e,n){return this._options.x=e,this._options.y=n,this}size(e,n){return this._options.width=e,this._options.height=n,this}bounds(e,n,r,o){return this._options.x=e,this._options.y=n,this._options.width=r,this._options.height=o,this}addRow(e){return this._input.rows.push({cells:e.map(n=>typeof n=="string"?{text:n}:n)}),this}headerRow(e){return this._input.firstRow=true,this.addRow(e)}columnWidths(e){return this._input.columnWidths=e,this}bandRows(e=true){return this._input.bandRows=e,this}bandColumns(e=true){return this._input.bandColumns=e,this}lastRow(e){return this._input.lastRow=e??true,this}firstCol(e){return this._input.firstCol=e??true,this}lastCol(e){return this._input.lastCol=e??true,this}style(e){return this._input.style=e,this}build(){return nD(this._input,this._options)}},hIe=class rY{_chartType;_input;_options={};constructor(e){this._chartType=e,this._input={series:[],categories:[]};}static create(e){return new rY(e)}position(e,n){return this._options.x=e,this._options.y=n,this}size(e,n){return this._options.width=e,this._options.height=n,this}bounds(e,n,r,o){return this._options.x=e,this._options.y=n,this._options.width=r,this._options.height=o,this}categories(e){return this._input.categories=e,this}addSeries(e,n,r){return this._input.series.push({name:e,values:n,color:r}),this}title(e){return this._input.title=e,this}legend(e,n){return this._input.hasLegend=e,n!==void 0&&(this._input.legendPosition=n),this}grouping(e){return this._input.grouping=e,this}build(){return pv(this._chartType,this._input,this._options)}},fIe=class oY{_options={};constructor(){}static create(){return new oY}position(e,n){return this._options.x=e,this._options.y=n,this}size(e,n){return this._options.width=e,this._options.height=n,this}bounds(e,n,r,o){return this._options.x=e,this._options.y=n,this._options.width=r,this._options.height=o,this}rotation(e){return this._options.rotation=e,this}type(e){return this._options.type=e,this}stroke(e){return this._options.stroke=e,this}startArrow(e){return this._options.startArrow=e,this}endArrow(e){return this._options.endArrow=e,this}from(e,n){return this._options.from={elementId:e,site:n},this}to(e,n){return this._options.to={elementId:e,site:n},this}build(){return eD(this._options)}},mIe=class B2{_mediaType;_source;_options={};constructor(e,n){this._mediaType=e,this._source=n;}static video(e){return new B2("video",e)}static audio(e){return new B2("audio",e)}static create(e,n){return new B2(e,n)}position(e,n){return this._options.x=e,this._options.y=n,this}size(e,n){return this._options.width=e,this._options.height=n,this}bounds(e,n,r,o){return this._options.x=e,this._options.y=n,this._options.width=r,this._options.height=o,this}rotation(e){return this._options.rotation=e,this}autoPlay(e){return this._options.autoPlay=e??true,this}loop(e){return this._options.loop=e??true,this}volume(e){return this._options.volume=e,this}trim(e,n){return this._options.trimStartMs=e,this._options.trimEndMs=n,this}posterFrame(e){return this._options.posterFrame=e,this}build(){return rD(this._mediaType,this._source,this._options)}},gIe=class iY{_children=[];_options={};constructor(){}static create(){return new iY}position(e,n){return this._options.x=e,this._options.y=n,this}size(e,n){return this._options.width=e,this._options.height=n,this}bounds(e,n,r,o){return this._options.x=e,this._options.y=n,this._options.width=r,this._options.height=o,this}rotation(e){return this._options.rotation=e,this}addChild(e){return this._children.push(e),this}addChildBuilder(e){return this._children.push(e.build()),this}addChildren(e){return this._children.push(...e),this}build(){return oD(this._children,this._options)}},IM=96,xIe=72,RL=9525,kL=914400,yIe=12700;_Ie={WIDESCREEN_16_9:{width:12192e3,height:6858e3},STANDARD_4_3:{width:9144e3,height:6858e3},WIDESCREEN_16_10:{width:9144e3,height:5715e3},A4_LANDSCAPE:{width:10692e3,height:7560937},A4_PORTRAIT:{width:7560937,height:10692e3},LETTER_LANDSCAPE:{width:10058400,height:7772400},LETTER_PORTRAIT:{width:7772400,height:10058400}},sY={OFFICE:{name:"Office Theme",colors:{dk1:"#000000",lt1:"#FFFFFF",dk2:"#44546A",lt2:"#E7E6E6",accent1:"#4472C4",accent2:"#ED7D31",accent3:"#A5A5A5",accent4:"#FFC000",accent5:"#5B9BD5",accent6:"#70AD47",hlink:"#0563C1",folHlink:"#954F72"},fonts:{majorFont:"Calibri Light",minorFont:"Calibri"}},MODERN_BLUE:{name:"Modern Blue",colors:{dk1:"#1B2A4A",lt1:"#FFFFFF",dk2:"#2C3E6B",lt2:"#F0F4F8",accent1:"#2563EB",accent2:"#3B82F6",accent3:"#60A5FA",accent4:"#93C5FD",accent5:"#1D4ED8",accent6:"#1E40AF",hlink:"#2563EB",folHlink:"#7C3AED"},fonts:{majorFont:"Inter",minorFont:"Inter"}},EARTH:{name:"Earth",colors:{dk1:"#2D1B0E",lt1:"#FFF8F0",dk2:"#4A3728",lt2:"#F5EDE4",accent1:"#B45309",accent2:"#D97706",accent3:"#92400E",accent4:"#78716C",accent5:"#059669",accent6:"#0D9488",hlink:"#B45309",folHlink:"#7C2D12"},fonts:{majorFont:"Georgia",minorFont:"Georgia"}},MONOCHROME:{name:"Monochrome",colors:{dk1:"#000000",lt1:"#FFFFFF",dk2:"#1A1A1A",lt2:"#F5F5F5",accent1:"#333333",accent2:"#555555",accent3:"#777777",accent4:"#999999",accent5:"#BBBBBB",accent6:"#DDDDDD",hlink:"#0066CC",folHlink:"#551A8B"},fonts:{majorFont:"Helvetica Neue",minorFont:"Helvetica Neue"}},VIBRANT:{name:"Vibrant",colors:{dk1:"#1A1A2E",lt1:"#FFFFFF",dk2:"#16213E",lt2:"#F8F9FA",accent1:"#E94560",accent2:"#0F3460",accent3:"#533483",accent4:"#F9A826",accent5:"#2ECC71",accent6:"#3498DB",hlink:"#E94560",folHlink:"#533483"},fonts:{majorFont:"Montserrat",minorFont:"Open Sans"}},CORPORATE:{name:"Corporate",colors:{dk1:"#003366",lt1:"#FFFFFF",dk2:"#1A3A5C",lt2:"#EEF2F7",accent1:"#0056A3",accent2:"#00875A",accent3:"#CF4500",accent4:"#6B778C",accent5:"#004C97",accent6:"#006644",hlink:"#0056A3",folHlink:"#403294"},fonts:{majorFont:"Arial",minorFont:"Arial"}},MINIMAL:{name:"Minimal",colors:{dk1:"#2D3436",lt1:"#FFFFFF",dk2:"#636E72",lt2:"#F9FAFB",accent1:"#6C5CE7",accent2:"#A29BFE",accent3:"#74B9FF",accent4:"#55EFC4",accent5:"#FFEAA7",accent6:"#FAB1A0",hlink:"#6C5CE7",folHlink:"#A29BFE"},fonts:{majorFont:"SF Pro Display",minorFont:"SF Pro Text"}},DARK:{name:"Dark",colors:{dk1:"#E4E4E7",lt1:"#18181B",dk2:"#A1A1AA",lt2:"#27272A",accent1:"#3B82F6",accent2:"#8B5CF6",accent3:"#EC4899",accent4:"#F59E0B",accent5:"#10B981",accent6:"#06B6D4",hlink:"#60A5FA",folHlink:"#A78BFA"},fonts:{majorFont:"Inter",minorFont:"Inter"}}};AIe={"image/png":"png","image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};cY=class{constructor(t,e,n){this.folderName=e,this.fs=n,this.resolvedMediaDir=`${t}/${this.folderName}`;}imageIndex=0;initialized=false;resolvedMediaDir;get totalImages(){return this.imageIndex}get mediaDir(){return this.resolvedMediaDir}async saveImage(t,e){let n=aY(t);return this.saveImageBytes(n.bytes,n.ext,e)}async saveImageBytes(t,e,n){await this.ensureInitialized(),this.imageIndex+=1;let r=lY(this.imageIndex,e),o=n?`${n}-${r}`:r;if(this.fs){let i=`${this.resolvedMediaDir}/${o}`;await this.fs.writeBinaryFile(i,t);}return `./${this.folderName}/${o}`}async ensureInitialized(){this.initialized||(this.fs&&await this.fs.createFolder(this.resolvedMediaDir),this.initialized=true);}};kIe=["http://","https://","mailto:","tel:","#"];dY=class{constructor(t,e,n){this.outputDir=t,this.options=e,this.fs=n,this.mediaContext=new cY(t,e.mediaFolderName,n);}mediaContext;buildFrontMatter(t){let e=["---"];for(let[n,r]of Object.entries(t))if(typeof r=="string"){let o=r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/[-]/g," ");e.push(`${n}: "${o}"`);}else e.push(`${n}: ${r}`);return e.push("---","",""),e.join(`
283
283
  `)}async writeOutput(t,e){if(!this.fs)throw new Error("FileSystemAdapter is required for writing output files. Provide one via the constructor or use convert() without outputPath.");await this.fs.writeFile(e,t);}},LIe=class{supportedTypes=["chart"];async process(t,e){if(t.type!=="chart")return null;let r=t.chartData;if(!r)return "*[Chart: no data]*";let o=[],i=r.title?.trim()||"Untitled Chart",s=this.humanizeType(r.chartType);o.push(`**${i}**`),o.push(`*Type: ${s}*`);let a=this.renderAxes(r.axes);a&&o.push(a);let l=r.chartType==="pie"||r.chartType==="pie3D"||r.chartType==="doughnut";if(r.categories.length>0&&r.series.length>0)o.push(this.renderDataTable(r.categories,r.series,l));else if(r.series.length>0)for(let p of r.series){let h=p.values.map(f=>String(f)).join(", ");o.push(`- **${p.name}**: ${h}`);}let c=this.renderDataLabels(r.series);c&&o.push(c);let d=this.renderErrorBars(r.series);if(d&&o.push(d),r.grouping&&o.push(`*Grouping: ${r.grouping}*`),r.style?.legendPosition&&o.push(`*Legend: ${r.style.legendPosition}*`),r.dataTable){let p=[];r.dataTable.showHorzBorder&&p.push("horizontal borders"),r.dataTable.showVertBorder&&p.push("vertical borders"),r.dataTable.showOutline&&p.push("outline"),r.dataTable.showKeys&&p.push("keys"),p.length>0&&o.push(`*Data table: ${p.join(", ")}*`);}let u=r.series.flatMap(p=>(p.trendlines??[]).map(h=>`${p.name} (${h.trendlineType})`));return u.length>0&&o.push(`*Trendlines: ${u.join(", ")}*`),r.externalData?.targetPath&&o.push(`*External data: ${r.externalData.targetPath}*`),o.join(`
284
284