@bendyline/squisq-react 2.11.21 → 2.11.23
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.
- package/dist/{chunk-DI7CKFRY.js → chunk-5OA2DYA2.js} +0 -2
- package/dist/{chunk-Y4YCIMES.js → chunk-AAZBM5PV.js} +4 -4
- package/dist/{chunk-4HJBKCSY.js → chunk-E7UE2PCJ.js} +1 -1
- package/dist/{chunk-65POMKHR.js → chunk-JP457U6N.js} +51 -21
- package/dist/{chunk-JEEBHC5W.js → chunk-KORFPHSJ.js} +1 -1
- package/dist/{chunk-LCBV2SE4.js → chunk-TN3NQAFM.js} +1 -1
- package/dist/diagram-pictures/index.js +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +6 -6
- package/dist/layers/index.js +1 -1
- package/dist/page/index.js +4 -4
- package/dist/player/index.js +4 -4
- package/dist/squisq-player.full.global.js +5 -5
- package/dist/squisq-player.global.js +5 -5
- package/dist/standalone-player-full.js +1 -1
- package/dist/standalone-source.js +1 -1
- package/package.json +1 -1
|
@@ -748,15 +748,15 @@ ${vE}
|
|
|
748
748
|
${vE}
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
-
`;var BE=[1,1.5,2];function Yg(e){let t=typeof e=="number"?e:typeof e=="string"?Number(e.trim().replace(/%$/,"")):Number.NaN;if(!Number.isFinite(t))return;let n=t>3?t/100:t;return BE.find(r=>Math.abs(r-n)<.001)}var P7=new Set(["content","list","quote","definitionCard","factCard","dateEvent"]),R7=160,N7=360;function $E(e){return !e.template||!P7.has(e.template)?1:e.textLength<R7?2:e.textLength<N7?1.5:1}function HE(e,t){let n=e.map(o=>o.explicit!==void 0?o.explicit:t==="auto"?$E(o):1),r=new Map;if(e.forEach((o,s)=>{let l=n[s];if(l===1)return;let c=o.explicit!==void 0?2:1;r.set(l,(r.get(l)??0)+c);}),r.size<=1)return n;let i=2,a=-1;for(let[o,s]of r)(s>a||s===a&&o>i)&&(i=o,a=s);return e.map((o,s)=>o.explicit!==void 0?o.explicit:n[s]===1?1:i)}var TE=32,SE=64,D7=/^[a-z0-9][a-z0-9-]*$/;function Sr(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(typeof e!="string")return;let t=e.trim().replace(/%$/,"");if(t.length===0)return;let n=Number(t);return Number.isFinite(n)?n:void 0}function Vs(e){return `${Math.round(e*1e3)/1e3}%`}function O7(e,t,n){if(!e||typeof e!="object"){n.push({path:t,message:"cell must be an object"});return}let r=e,i=Sr(r.x),a=Sr(r.y),o=Sr(r.width),s=Sr(r.height);if(i===void 0||i<0||i>100){n.push({path:`${t}.x`,message:"x must be a percent between 0 and 100"});return}if(a===void 0||a<0||a>100){n.push({path:`${t}.y`,message:"y must be a percent between 0 and 100"});return}if(o===void 0||o<=0||o>100){n.push({path:`${t}.width`,message:"width must be a percent greater than 0"});return}if(s===void 0||s<=0||s>100){n.push({path:`${t}.height`,message:"height must be a percent greater than 0"});return}let l={x:Vs(i),y:Vs(a),width:Vs(o),height:Vs(s)};if(r.block!==void 0){let c=typeof r.block=="string"?Number(r.block):r.block;if(typeof c!="number"||!Number.isInteger(c)||c<1||c>SE){n.push({path:`${t}.block`,message:`block must be an integer between 1 and ${SE}`});return}l.block=c;}if(r.zoom!==void 0){let c=Yg(r.zoom);if(c===void 0){n.push({path:`${t}.zoom`,message:"zoom must be 1, 1.5, or 2 (or 100/150/200 percent)"});return}l.zoom=c;}return l}function Pg(e,t,n){if(!Array.isArray(e)){n.push({path:t,message:"must be an array of cells"});return}if(e.length<1||e.length>TE){n.push({path:t,message:`must contain between 1 and ${TE} cells`});return}let r=[];for(let i=0;i<e.length;i++){let a=O7(e[i],`${t}[${i}]`,n);if(!a)return;r.push(a);}return r}function F7(e,t){if(!e||typeof e!="object"){t.push({path:"titleSlot",message:"titleSlot must be an object"});return}let n=e,r=n.placement==="bottom"?"bottom":n.placement==="top"?"top":void 0;if(r===void 0&&n.placement!==void 0){t.push({path:"titleSlot.placement",message:"placement must be 'top' or 'bottom'"});return}let i=Sr(n.height);if(i===void 0||i<=0||i>40){t.push({path:"titleSlot.height",message:"height must be a percent between 0 and 40"});return}return {placement:r??"top",height:Vs(i)}}function Xg(e){let t=[];if(!e||typeof e!="object")return {valid:false,errors:[{path:"",message:"definition must be an object"}]};let n=e,r=typeof n.name=="string"?n.name.trim().toLowerCase():"";D7.test(r)||t.push({path:"name",message:"name must be a slug (lowercase letters, digits, hyphens)"});let i=typeof n.label=="string"?n.label.trim():"";i.length===0&&t.push({path:"label",message:"label must be a non-empty string"});let a=n.cells,o,s,l;!a||typeof a!="object"?t.push({path:"cells",message:"cells must be an object with a landscape array"}):(o=Pg(a.landscape,"cells.landscape",t),a.portrait!==void 0&&(s=Pg(a.portrait,"cells.portrait",t)),a.square!==void 0&&(l=Pg(a.square,"cells.square",t)),o&&(s&&s.length!==o.length&&t.push({path:"cells.portrait",message:"portrait must define the same number of cells as landscape"}),l&&l.length!==o.length&&t.push({path:"cells.square",message:"square must define the same number of cells as landscape"})));let c;if(n.titleSlot!==void 0&&(c=F7(n.titleSlot,t)),t.length>0||!o)return {valid:false,errors:t};let u={name:r,label:i,cells:{landscape:o,...s?{portrait:s}:{},...l?{square:l}:{}}};return typeof n.description=="string"&&n.description.trim()&&(u.description=n.description.trim()),c&&(u.titleSlot=c),n.auto===false&&(u.auto=false),{valid:true,errors:t,layout:u}}function to(e){return e.cells.landscape.length}function zE(e){return e.map(t=>({x:t.y,y:t.x,width:t.height,height:t.width,...t.block!==void 0?{block:t.block}:{},...t.zoom!==void 0?{zoom:t.zoom}:{}}))}function UE(e,t,n){return (t==="portrait"?e.cells.portrait??zE(e.cells.landscape):t==="square"?e.cells.square??e.cells.landscape:e.cells.landscape).map(i=>{let a=Sr(i.x)??0,o=Sr(i.y)??0,s=Sr(i.width)??0,l=Sr(i.height)??0,c={rect:{x:n.x+a/100*n.width,y:n.y+o/100*n.height,width:Math.max(1,s/100*n.width),height:Math.max(1,l/100*n.height)}};i.block!==void 0&&(c.block=i.block);let u=Yg(i.zoom);return u!==void 0&&(c.zoom=u),c})}var jE="squisq-dashboard-layouts",B7={label:"lb",description:"ds",cells:"ce",landscape:"ls",portrait:"pt",square:"sq",width:"wd",height:"hg",block:"bk",zoom:"zo",titleSlot:"ts",placement:"pl",auto:"au"},$7=Object.fromEntries(Object.entries(B7).map(([e,t])=>[t,e]));function Dg(e,t){if(Array.isArray(e))return e.map(n=>Dg(n,t));if(e&&typeof e=="object"){let n={};for(let[r,i]of Object.entries(e))n[t[r]??r]=Dg(i,t);return n}return e}function WE(e){if(!e)return;let t=U7(e[jE]);if(!t)return;let n=[];for(let r of t){let i=Xg(r);i.layout&&n.push(i.layout);}return n.length>0?n:void 0}function VE(e){return Object.entries(e).map(([t,n])=>{let r=Dg(n&&typeof n=="object"?n:{},$7);return {name:t,...r}})}function H7(e){return Array.isArray(e)?e:e&&typeof e=="object"?VE(e):null}function z7(e){try{return JSON.parse(e)}catch{return}}function U7(e){if(e==null)return null;if(Array.isArray(e))return e;if(typeof e=="object")return VE(e);if(typeof e!="string")return null;let t=z7(e.trim());return t!==void 0?H7(t):null}var ud=2;function Ie(e){return `${Math.round(e*1e3)/1e3}%`}function aa(e,t,n=ud){let r=(100-(e-1)*n)/e,i=(100-(t-1)*n)/t,a=[];for(let o=0;o<t;o++)for(let s=0;s<e;s++)a.push({x:Ie(s*(r+n)),y:Ie(o*(i+n)),width:Ie(r),height:Ie(i)});return a}function j7(e,t,n=ud){let r=e+n,i=100-r,a=(100-(t-1)*n)/t,o=[{x:"0%",y:"0%",width:Ie(e),height:"100%"}];for(let s=0;s<t;s++)o.push({x:Ie(r),y:Ie(s*(a+n)),width:Ie(i),height:Ie(a)});return o}function W7(e,t,n=ud){let r=e+n,i=100-r,a=(100-(t-1)*n)/t,o=[{x:"0%",y:"0%",width:"100%",height:Ie(e)}];for(let s=0;s<t;s++)o.push({x:Ie(s*(a+n)),y:Ie(r),width:Ie(a),height:Ie(i)});return o}function V7(e,t=ud){let n=e+t,i=(100-n-t)/2,a=(100-t)/2,o=[{x:"0%",y:"0%",width:Ie(e),height:"100%"}];for(let s=0;s<2;s++)for(let l=0;l<2;l++)o.push({x:Ie(n+l*(i+t)),y:Ie(s*(a+t)),width:Ie(i),height:Ie(a)});return o}var ld=Object.freeze([{name:"focus-1",label:"Focus",description:"One block fills the dashboard.",cells:{landscape:[{x:"0%",y:"0%",width:"100%",height:"100%"}]}},{name:"split-2",label:"Split",description:"Two blocks side by side.",cells:{landscape:aa(2,1)}},{name:"hero-left",label:"Hero + 2",description:"A large lead block with two companions.",cells:{landscape:j7(58,2),portrait:[{x:"0%",y:"0%",width:"100%",height:Ie(46)},{x:"0%",y:Ie(48),width:"100%",height:Ie(25)},{x:"0%",y:Ie(75),width:"100%",height:Ie(25)}]}},{name:"grid-2x2",label:"Grid 2\xD72",description:"Four blocks in a balanced grid.",cells:{landscape:aa(2,2)}},{name:"hero-top",label:"Hero band",description:"A wide lead band with three blocks below.",cells:{landscape:W7(46,3),portrait:[{x:"0%",y:"0%",width:"100%",height:Ie(40)},{x:"0%",y:Ie(42),width:"100%",height:Ie(18)},{x:"0%",y:Ie(62),width:"100%",height:Ie(18)},{x:"0%",y:Ie(82),width:"100%",height:Ie(18)}]},auto:false},{name:"mosaic-5",label:"Mosaic",description:"A hero block beside a 2\xD72 grid.",cells:{landscape:V7(58),portrait:[{x:"0%",y:"0%",width:"100%",height:Ie(40)},{x:"0%",y:Ie(42),width:Ie(49),height:Ie(27)},{x:Ie(51),y:Ie(42),width:Ie(49),height:Ie(27)},{x:"0%",y:Ie(71),width:Ie(49),height:Ie(29)},{x:Ie(51),y:Ie(71),width:Ie(49),height:Ie(29)}]}},{name:"grid-3x2",label:"Grid 3\xD72",description:"Six blocks in three columns.",cells:{landscape:aa(3,2)}},{name:"grid-3x3",label:"Grid 3\xD73",description:"Nine blocks in a square grid.",cells:{landscape:aa(3,3),square:aa(3,3)}},{name:"grid-4x3",label:"Grid 4\xD73",description:"Twelve blocks in four columns.",cells:{landscape:aa(4,3)}},{name:"grid-4x4",label:"Grid 4\xD74",description:"Sixteen blocks \u2014 the densest wall.",cells:{landscape:aa(4,4)}}]);var dd="auto";function GE(e,t){let n=e.trim().toLowerCase();if(n)return t?.find(r=>r.name===n)??ld.find(r=>r.name===n)}function YE(e,t,n){let i=[...[...(n??[]).filter(l=>l.auto!==false),...ld.filter(l=>l.auto!==false)]].sort((l,c)=>to(l)-to(c)),a=Math.max(1,e),o=i.find(l=>to(l)>=a);if(o)return o;let s=i.reduce((l,c)=>Math.max(l,to(c)),0);return i.find(l=>to(l)===s)??ld[0]}var XE=["basic","card","panel","accent"],KE="basic";function Og(e){if(typeof e!="string")return;let t=e.trim().toLowerCase();if(t)return t==="none"||t==="default"||t==="flat"?"basic":t==="cards"?"card":t==="panels"||t==="outline"?"panel":t==="accents"||t==="accent-cards"?"accent":XE.includes(t)?t:void 0}function rd(e,t,n){return Math.min(n,Math.max(t,e))}function Y7(e){return zn(e)>.45}function QE(e,t){let n=t.colors.background;return e==="basic"||e==="panel"?n:Y7(n)?dr(n,.05):_o(n,.04)}function ZE(e,t){let n=Object.values(e.colorSchemes??{});if(n.length===0)return e.colors.primary;let r=n[(t%n.length+n.length)%n.length];return r.accent||r.text||e.colors.primary}function X7(e,t,n){let r=Math.max(1,Math.min(n.width,n.height)),i=t.style?.borderRadius??14;return e==="panel"?{edge:rd(r*.014,3,12),radius:rd(i*.45,0,r*.05)}:{edge:rd(r*.03,6,26),radius:rd(i,6,r*.1)}}function K7(e,t){if(e<=0)return;let n=Math.round(e/Math.max(1,t.width)*1e5)/1e3,r=Math.round(e/Math.max(1,t.height)*1e5)/1e3;return `${n}% / ${r}%`}function JE(e,t){let{theme:n,rect:r,index:i}=t;if(e==="basic")return null;let{edge:a,radius:o}=X7(e,n,r),s={x:r.x+a,y:r.y+a,width:Math.max(1,r.width-a*2),height:Math.max(1,r.height-a*2)},l={x:a,y:a,width:s.width,height:s.height},c=Math.max(1,Math.min(r.width,r.height)),u=Math.max(1,Math.round(c*.004)),d=ZE(n,i),m=[];e!=="panel"&&[{spread:.45,dy:.5,alpha:.05},{spread:.25,dy:.42,alpha:.05},{spread:.08,dy:.3,alpha:.06}].forEach((x,v)=>{let T=a*x.spread,E=a*x.dy;m.push({type:"shape",id:`cell-shadow-${v}`,content:{shape:"rect",fill:le(n.colors.text,x.alpha),borderRadius:o+T},position:{x:l.x-T,y:l.y-T+E,width:l.width+T*2,height:l.height+T*2}});}),m.push({type:"shape",id:"cell-surface",content:{shape:"rect",fill:n.colors.background,borderRadius:o},position:{x:l.x,y:l.y,width:l.width,height:l.height}});let f=[];if(e==="accent"&&f.push({type:"shape",id:"cell-accent-wash",content:{shape:"rect",fill:le(d,.1),borderRadius:o},position:{x:0,y:0,width:"100%",height:"100%"}}),e==="accent"||e==="panel"){let b=Math.max(2,Math.round(c*.014));f.push({type:"shape",id:"cell-accent-bar",content:{shape:"rect",fill:d},position:{x:0,y:0,width:"100%",height:b}});}let h=e==="panel"?u:Math.max(1,u*.6);f.push({type:"shape",id:"cell-border",content:{shape:"rect",fill:"none",stroke:e==="panel"?le(d,.45):le(n.colors.text,.14),strokeWidth:h,borderRadius:o},position:{x:h/2,y:h/2,width:Math.max(1,l.width-h),height:Math.max(1,l.height-h)}});let y={cardRect:s,contentRect:s,layers:m,overlayLayers:f,radius:o},g=K7(o,s);return g&&(y.contentRadiusPct=g),y}function e_(e){return e!=="basic"}function t_(e,t){let n=e[0];if(!n||n.type!=="shape")return [...e];let{content:r,position:i}=n,a=typeof r.fill=="string"?r.fill.trim().toLowerCase():"";return !(r.shape==="rect"&&(i.x===0||i.x==="0%")&&(i.y===0||i.y==="0%")&&i.width==="100%"&&i.height==="100%")||r.gradient||r.pattern?[...e]:a!==t.colors.background.trim().toLowerCase()?[...e]:e.slice(1)}var Gs=Object.freeze({layout:{canonical:"squisq-dashboard-layout",legacy:"dashboard-layout"},showTitle:{canonical:"squisq-dashboard-title",legacy:"dashboard-title"},zoom:{canonical:"squisq-dashboard-zoom",legacy:"dashboard-zoom"},style:{canonical:"squisq-dashboard-style",legacy:"dashboard-style"}}),Ys=Object.freeze({layout:dd,showTitle:true,zoom:"auto",style:KE});function id(e,t){if(e)return Object.prototype.hasOwnProperty.call(e,t.canonical)?e[t.canonical]:e[t.legacy]}function Q7(e){if(typeof e=="boolean")return e;if(typeof e!="string")return;let t=e.trim().toLowerCase();if(["true","yes","on","show","visible"].includes(t))return true;if(["false","no","off","hide","hidden"].includes(t))return false}function EE(e){if(typeof e!="string")return;let t=e.trim().toLowerCase();if(t)return t==="auto"||t==="default"?dd:t}function Z7(e){if(typeof e=="boolean")return e?"auto":"off";if(typeof e!="string")return;let t=e.trim().toLowerCase();if(["auto","on","true","yes"].includes(t))return "auto";if(["off","false","no","none","100","100%","1"].includes(t))return "off"}function n_(e,t={}){let n={layout:EE(id(e,Gs.layout))??Ys.layout,showTitle:Q7(id(e,Gs.showTitle))??Ys.showTitle,zoom:Z7(id(e,Gs.zoom))??Ys.zoom,style:Og(id(e,Gs.style))??Ys.style};return {layout:EE(t.layout)??n.layout,showTitle:t.showTitle??n.showTitle,zoom:t.zoom??n.zoom,style:Og(t.style)??n.style}}var J7={placement:"top",height:"9%"},eU=.015,tU=.02;function nU(e){let t=Number(e.trim().replace(/%$/,""));return Number.isFinite(t)?t:0}function ad(e,t){return `${Math.round(e/Math.max(1,t)*1e5)/1e3}%`}function Rg(e,t){return {left:ad(e.x,t.width),top:ad(e.y,t.height),width:ad(e.width,t.width),height:ad(e.height,t.height)}}function rU(e,t){let n=e.frontmatter?.title;return typeof n=="string"&&n.trim()?n.trim():t?.trim()??""}function iU(e,t){if(e.length===0||!t)return e;let n=e[0],r=typeof n.title=="string"?n.title.trim().toLowerCase():"";if(!r||r!==t.trim().toLowerCase())return e;let i=n.template,a=i==="title"||i==="sectionHeader"||i==="cover",o=Array.isArray(n.contents)&&n.contents.length>0;return a||!o?e.slice(1):e}function aU(e,t,n,r,i,a){let o=Mn(r,0,1,i),s=vo(i),l=Math.min(44*s,t.height*.52),c=Math.max(4,Math.round(6*s)),u=a+c+Math.max(10,Math.round(c*2.5));return [{type:"shape",id:"dashboard-title-accent",content:{shape:"rect",fill:r.colors.primary},position:{x:a,y:"26%",width:c,height:"48%"}},{type:"text",id:"dashboard-title-text",content:{text:e,style:{fontSize:l,fontFamily:ie(o,"title"),fontWeight:"bold",color:r.colors.text,textAlign:"left",verticalAlign:"middle",maxLines:1}},position:{x:u,y:0,width:Math.max(1,t.width-u-a),height:"100%"}},{type:"shape",id:"dashboard-title-rule",content:{shape:"rect",fill:le(r.colors.text,.14)},position:{x:0,y:n.placement==="bottom"?0:t.height-2,width:"100%",height:2}}]}function Kg(e,t={}){let n=t.theme??tt,r=t.viewport??Je.landscape,i=In(r),a=t.customLayouts??WE(e.frontmatter),o=t.customTemplates??e.customTemplates,s=[],l=n_(e.frontmatter,{layout:typeof t.layout=="string"?t.layout:void 0,showTitle:t.showTitle,zoom:t.zoom,...t.style!==void 0?{style:t.style}:{}}),c=l.style,u,d="auto";if(t.layout&&typeof t.layout=="object"){let z=Xg(t.layout);z.layout?(u=z.layout,d="option"):s.push({type:"unknown-layout",message:"Inline dashboard layout definition is invalid; falling back to auto.",requestedLayout:t.layout.name});}else if(l.layout!==dd){let z=GE(l.layout,a);z?(u=z,d=typeof t.layout=="string"&&t.layout.trim()?"option":"frontmatter"):s.push({type:"unknown-layout",message:`Unknown dashboard layout "${l.layout}"; falling back to auto.`,requestedLayout:l.layout});}let f=qE(e,{documentTitle:t.documentTitle,interleaveImages:false}).blocks??[];f.length===0&&s.push({type:"empty-doc",message:"The document has no renderable blocks; the dashboard has no cells."});let h=l.showTitle?rU(e,t.documentTitle):"",y=h.length>0;y&&(f=iU(f,h)),u||(u=YE(f.length,i,a),d="auto");let g=tU*Math.min(r.width,r.height),b={x:g,y:g,width:Math.max(1,r.width-g*2),height:Math.max(1,r.height-g*2)},x=null;if(y){let z=u.titleSlot??J7,H=Math.min(40,Math.max(2,nU(z.height)))/100*r.height,B=eU*r.height,C=z.placement==="bottom"?{x:0,y:r.height-H,width:r.width,height:H}:{x:0,y:0,width:r.width,height:H};b=z.placement==="bottom"?{x:g,y:g,width:Math.max(1,r.width-g*2),height:Math.max(1,r.height-H-B-g)}:{x:g,y:H+B,width:Math.max(1,r.width-g*2),height:Math.max(1,r.height-H-B-g)};let U={width:Math.max(1,Math.round(C.width)),height:Math.max(1,Math.round(C.height)),name:"Dashboard title"};x={text:h,rect:C,rectPct:Rg(C,r),viewport:U,layers:aU(h,U,z,n,r,g)};}let v=UE(u,i,b),T=[],E=new Set;v.forEach((z,$)=>{if(z.block===void 0)return;let H=z.block-1;if(H<0||H>=f.length){s.push({type:"invalid-cell-assignment",message:`Cell ${$+1} of layout "${u.name}" requests block ${z.block}, but the document has ${f.length} block(s); the cell is left empty.`});return}E.add(H),T.push({cellIndex:$,rect:z.rect,candidateIndex:H,explicitZoom:z.zoom});});let k=new Set,S=0;v.forEach((z,$)=>{if(z.block===void 0){for(;S<f.length&&E.has(S);)S++;S>=f.length||(k.add(S),T.push({cellIndex:$,rect:z.rect,candidateIndex:S,explicitZoom:z.zoom}),S++);}});let I=[];for(let z=0;z<f.length;z++)!E.has(z)&&!k.has(z)&&I.push(z);I.length>0&&s.push({type:"overflow",message:`${I.length} block(s) exceed the "${u.name}" layout's ${v.length} cell(s) and are not rendered.`,hiddenBlockIds:I.map(z=>String(f[z].id??z))});let _=T.sort((z,$)=>z.cellIndex-$.cellIndex),A=HE(_.map(({candidateIndex:z,explicitZoom:$})=>{let H=f[z],B=typeof H.title=="string"?H.title:"";return {template:it(H.template??""),textLength:B.length+Ka(H).length,...$!==void 0?{explicit:$}:{}}}),l.zoom),R=o&&o.length>0?Ns(o):ta,F=_.map(({cellIndex:z,rect:$,candidateIndex:H},B)=>{let C=f[H],U=A[B],V=JE(c,{theme:n,rect:$,index:z}),M=V?V.contentRect:$,J={width:Math.max(1,Math.round(M.width)),height:Math.max(1,Math.round(M.height)),name:`Dashboard cell ${z+1}`},we=Mn(n,H,f.length,J);U!==1&&(we.fontScale*=U);let me=ju(C,{theme:n,viewport:J,persistentLayers:false,blockIndex:H,totalBlocks:f.length,failureMode:t.failureMode},{registry:R,templateContext:we}),Y=e_(c)?t_(me.layers,n):me.layers,se;if(V){let ye={width:Math.max(1,Math.round($.width)),height:Math.max(1,Math.round($.height)),name:`Dashboard cell ${z+1} frame`};se={rect:$,rectPct:Rg($,r),viewport:ye,layers:V.layers,overlayLayers:V.overlayLayers,overlayViewport:{width:J.width,height:J.height,name:`Dashboard cell ${z+1} overlay`},...V.contentRadiusPct?{contentRadiusPct:V.contentRadiusPct}:{}};}return {index:z,block:C,blockIndex:H,layers:Y,rect:M,rectPct:Rg(M,r),...se?{frame:se}:{},viewport:J,zoom:U,source:me.source,...me.diagnostic?{diagnostic:me.diagnostic}:{}}}),L=Ls(e,n),D=QE(c,n),P={fill:D,bottomLayers:[{type:"shape",id:"dashboard-backdrop",content:{shape:"rect",fill:D},position:{x:0,y:0,width:"100%",height:"100%"}},...Xr(L?.bottomLayers,n)],topLayers:Xr(L?.topLayers,n)};return {layout:u,layoutSource:d,style:c,viewport:r,cells:F,title:x,backdrop:P,diagnostics:s}}var oU=new Set(["answer","back","solution","explanation","correct answer","correct","distractor","option"]);function r_(e){return typeof e=="string"?e.trim().toLowerCase().replace(/[\s_-]+/g,""):""}function od(e){let t=r_(e);if(t==="flashcard"||t==="card"||t==="basicflashcard")return "basic";if(t==="multiplechoiceflashcard"||t==="multiplechoice"||t==="quiz")return "multiple-choice";if(t==="group"||t==="flashcardgroup"||t==="deck")return "group"}function md(e){let t=od(e.metadata?.study)??od(e.metadata?.["study-mode"]);if(t)return t;for(let n of e.classes??[]){let r=od(n);if(r)return r}return od(e.template)}function no(e){return typeof e.title=="string"&&e.title.trim().length>0}function Ks(e){return (e.contents?.length??0)>0||(e.media?.length??0)>0||(e.layers?.length??0)>0}function ir(e){return no(e)||Ks(e)}function i_(e){return no(e)&&oU.has(e.title.trim().toLowerCase())}function sU(e){let{children:t,...n}=e;return n}function lU(e){let{children:t,contents:n,media:r,layers:i,...a}=e;return a}function a_(e){let{children:t,title:n,...r}=e;return r}function rn(...e){return {blocks:e}}function _E(e){return e===true?true:typeof e!="string"?false:["true","yes","on","1","correct"].includes(e.trim().toLowerCase())}function cU(e){return _E(e.metadata?.correct)||_E(e.metadata?.answer)||(e.classes??[]).some(t=>r_(t)==="correct")}function Fg(e){let t=md(e);if(t==="group")return false;if(t==="basic"||t==="multiple-choice")return true;if(i_(e))return false;let n=e.children??[];return n.length===0?no(e)&&Ks(e):n.length===1?ir(e)&&ir(n[0]):n.every(ir)}function o_(e){for(let t of e.children??[]){let n=md(t);if(n==="basic"||n==="multiple-choice"||o_(t))return true}return false}function uU(e){let t=e.children??[];return t.length===0?false:o_(e)?true:Ks(e)?false:t.length===1?Fg(t[0])&&!i_(t[0]):t.filter(Fg).length>=2}function s_(e){return Ks(e)?rn(a_(e)):void 0}function AE(e,t){let n=e.children??[],r,i,a,o;if(n.length===0?(r=no(e)?rn(lU(e)):rn(),i=Ks(e)?rn(a_(e)):rn()):n.length===1?(r=ir(e)?rn(sU(e)):rn(),i=ir(n[0])?rn(n[0]):rn()):(r=ir(n[0])?rn(n[0]):rn(),i=rn(...n.slice(1).filter(ir)),a=no(e)?e.title.trim():void 0,o=s_(e)),r.blocks.length===0&&t.push({severity:"error",code:"empty-front",message:`Flashcard "${e.id}" has no content for its front`,blockId:e.id}),i.blocks.length===0&&t.push({severity:"error",code:"empty-back",message:`Flashcard "${e.id}" has no content for its answer`,blockId:e.id}),!(r.blocks.length===0||i.blocks.length===0))return {id:e.id,sourceBlockId:e.id,kind:"basic",...a?{label:a}:{},front:r,back:i,...o?{explanation:o}:{}}}function dU(e,t){let n=e.children??[],r=n[0],i=n.slice(1).filter(ir);if((!r||!ir(r))&&t.push({severity:"error",code:"empty-front",message:`Multiple-choice flashcard "${e.id}" has no question block`,blockId:e.id}),i.length===0&&t.push({severity:"error",code:"empty-back",message:`Multiple-choice flashcard "${e.id}" has no answer choices`,blockId:e.id}),!r||!ir(r)||i.length===0)return;let a=i.filter(cU);a.length>1&&t.push({severity:"warning",code:"multiple-correct-answers",message:`Multiple-choice flashcard "${e.id}" marks more than one answer correct; the first marker wins`,blockId:e.id});let o=a[0]??i[0];i.length<2&&t.push({severity:"warning",code:"multiple-choice-needs-distractor",message:`Multiple-choice flashcard "${e.id}" needs at least one distractor`,blockId:e.id});let s=i.map((c,u)=>({id:`${e.id}-choice-${u+1}`,sourceBlockId:c.id,content:rn(c),correct:c===o})),l=s_(e);return {id:e.id,sourceBlockId:e.id,kind:"multiple-choice",...no(e)?{label:e.title.trim()}:{},front:rn(r),back:rn(o),choices:s,...l?{explanation:l}:{}}}function mU(e){let t=e.frontmatter?.title;return typeof t=="string"&&t.trim()?t.trim():e.startBlock?.title?.trim()||void 0}function Qg(e,t={}){let n=t.source??"auto",r=[],i=[],a=u=>{let d=md(u);if(d==="group"){for(let m of u.children??[])a(m);return}if(d==="basic"){let m=AE(u,i);m&&r.push(m);return}if(d==="multiple-choice"){let m=dU(u,i);m&&r.push(m);return}if(n==="explicit"){for(let m of u.children??[])a(m);return}if(uU(u)){for(let m of u.children??[])a(m);return}if(Fg(u)){let m=AE(u,i);m&&r.push(m);return}for(let m of u.children??[])a(m);};for(let u of e.blocks)a(u);let o=mU(e),s=typeof e.frontmatter?.title=="string"?e.frontmatter.title.trim():"",l=r[0]?.front.blocks[0]?.title?.trim(),c=o&&(s||o!==l)?o:void 0;return {...c?{title:c}:{},cards:r,diagnostics:i}}function ke(e,t){return typeof e=="number"?e:e.endsWith("%")?parseFloat(e)/100*t:parseFloat(e)}function Wt(e,t,n){switch(e){case "center":return {x:-t/2,y:-n/2};case "top-right":return {x:-t,y:0};case "bottom-left":return {x:0,y:-n};case "bottom-right":return {x:-t,y:-n};default:return {x:0,y:0}}}function l_({layer:e,basePath:t,viewport:n,blockTime:r,animationsEnabled:i=true}){let{content:a,position:o,animation:s}=e,l=ke(o.x,n.width),c=ke(o.y,n.height),u=o.width?ke(o.width,n.width):n.width,d=o.height?ke(o.height,n.height):n.height,m=Wt(o.anchor,u,d),f=l+m.x,h=c+m.y,y=bt(a.src,t),g=ht(s,r),b=$g(a.treatment,a.blur),x=gU(a.fit),v=a.fit==="cover",T=s&&yU.has(s.type);if(v&&wU(n,u,d,i,s)){let k=kU(s),S=xU(T?s:void 0),I=T?{className:"",style:{}}:g;return w("g",{className:`block-layer block-layer--image ${I.className}`,style:I.style,"data-layer-id":e.id,"data-image-framing":"portrait-pan",children:w("foreignObject",{x:f,y:h,width:u,height:d,children:w("div",{style:{width:`${u}px`,height:`${d}px`,overflow:"hidden"},children:w("img",{src:y,alt:a.alt||"",className:k,style:{width:`${u}px`,height:`${d}px`,objectFit:"cover",objectPosition:"center",display:"block",pointerEvents:"none",...b?{filter:b}:{},...a.blur&&a.blur>0?{transform:"scale(1.06)"}:{},...S}})})})})}if(v&&T&&s){let k=vU(s),S=ht(k,r);return w("g",{className:"block-layer block-layer--image","data-layer-id":e.id,children:w("foreignObject",{x:f,y:h,width:u,height:d,children:w("div",{style:{width:`${u}px`,height:`${d}px`,overflow:"hidden"},children:w("img",{src:y,alt:a.alt||"",className:S.className,style:{width:`${u}px`,height:`${d}px`,objectFit:"cover",objectPosition:"center",display:"block",pointerEvents:"none",transformOrigin:"center center",...b?{filter:b}:{},...S.style}})})})})}return v?w("g",{className:`block-layer block-layer--image ${g.className}`,style:g.style,"data-layer-id":e.id,children:w("foreignObject",{x:f,y:h,width:u,height:d,children:w("img",{src:y,alt:a.alt||"",style:{width:`${u}px`,height:`${d}px`,objectFit:"cover",objectPosition:"center",display:"block",pointerEvents:"none",...b?{filter:b}:{},...a.blur&&a.blur>0?{transform:"scale(1.06)"}:{}}})})}):w("g",{className:`block-layer block-layer--image ${g.className}`,style:g.style,"data-layer-id":e.id,children:w("image",{href:y,x:f,y:h,width:u,height:d,preserveAspectRatio:x,style:{pointerEvents:"none",...b?{filter:b}:{}}})})}function gU(e){switch(e){case "cover":return "xMidYMid slice";case "fill":return "none";default:return "xMidYMid meet"}}var yU=new Set(["panLeft","panRight","slowZoom","zoomIn","zoomOut"]),bU=.83;function wU(e,t,n,r,i){return !r||i?.type==="none"||e.width/e.height>=bU?false:t>=e.width*.7&&n>=e.height*.7}function kU(e){return e?.type==="panRight"||e?.type==="slowZoom"&&e.panDirection==="right"?"squisq-image--portrait-pan-left":"squisq-image--portrait-pan-right"}function xU(e){return {"--portrait-pan-duration":`${e?.duration??12}s`,"--portrait-pan-delay":`${e?.delay??0}s`,"--portrait-pan-easing":e?.easing??"ease-in-out"}}function vU(e){switch(e.type){case "panLeft":return {...e,type:"slowZoom",panDirection:"left"};case "panRight":return {...e,type:"slowZoom",panDirection:"right"};case "zoomIn":return {...e,type:"slowZoom",direction:"in"};case "zoomOut":return {...e,type:"slowZoom",direction:"out"};default:return e}}function io(e,t){let n=`${e}-${t}`,r=n.replace(/[^A-Za-z0-9_-]/g,"_");if(r===n.replace(/:/g,"_"))return r.replace(/^_+/,"d");let i=0;for(let a=0;a<n.length;a++)i=i*31+n.charCodeAt(a)>>>0;return `${r.replace(/^_+/,"d")}-${i.toString(36)}`}function ao(e,t){if(!e||e==="solid")return;let n=Math.max(1,t??1);return e==="dotted"?`${n} ${n*2}`:`${n*3} ${n*2}`}function TU(e=0){let t=e*Math.PI/180,n=Math.sin(t),r=Math.cos(t);return {x1:.5-n/2,y1:.5-r/2,x2:.5+n/2,y2:.5+r/2}}function SU(e){return `squisq-grad-${e}`}function oo(e,t,n,r){if(r){let i=`squisq-pattern-${e}`;return {fill:`url(#${i})`,def:EU(i,r)}}if(n){let i=SU(e),a=TU(n.angle);return {fill:`url(#${i})`,def:w("linearGradient",{id:i,x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2,children:[w("stop",{offset:"0%",stopColor:n.from}),w("stop",{offset:"100%",stopColor:n.to})]})}}return {fill:t,def:null}}function EU(e,t){let n=t.size??24,r=t.opacity??1,i=t.color;return w("pattern",{id:e,width:n,height:n,patternUnits:"userSpaceOnUse",patternTransform:t.kind==="diagonal"?"rotate(45)":void 0,children:[t.kind==="dots"&&w("circle",{cx:n/2,cy:n/2,r:Math.max(1,n/12),fill:i,opacity:r}),t.kind==="grid"&&w("path",{d:`M ${n} 0 L 0 0 0 ${n}`,fill:"none",stroke:i,strokeWidth:1,opacity:r}),t.kind==="diagonal"&&w("line",{x1:0,y1:0,x2:0,y2:n,stroke:i,strokeWidth:1,opacity:r})]})}function c_(e,t){if(!t||t.type!=="noise")return {filterAttr:void 0,def:null};let n=`squisq-noise-${e}`,r=t.opacity??.05;return {filterAttr:`url(#${n})`,def:w("filter",{id:n,x:"0%",y:"0%",width:"100%",height:"100%",children:[w("feTurbulence",{type:"fractalNoise",baseFrequency:t.baseFrequency??.8,numOctaves:2,stitchTiles:"stitch",result:"noise"}),w("feColorMatrix",{in:"noise",type:"saturate",values:"0",result:"mono"}),w("feComponentTransfer",{in:"mono",result:"faded",children:w("feFuncA",{type:"linear",slope:r,intercept:0})}),w("feComposite",{in:"faded",in2:"SourceGraphic",operator:"in"})]})}}function u_(e){return e.layer.content.html?.trim()?w(MU,{...e}):Ig(e.layer.content.text??"")?w(CU,{...e}):w(IU,{...e})}function _U(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function AU(e){return Lg(e).map(t=>t.type==="icon"?`<i class="${qg(t.family,t.name)}" aria-hidden="true"></i>`:_U(t.text).replace(/\n/g,"<br>")).join("")}function CU({layer:e,viewport:t,blockTime:n,textScale:r=1}){let{content:i,position:a,animation:o}=e,{text:s,style:l}=i,c=ke(a.x,t.width),u=ke(a.y,t.height),d=a.width!=null?ke(a.width,t.width):t.width,m=a.anchor??"top-left",f=l.lineHeight||1.4,h=l.fontSize*f,y=l.padding??0,g=Mg(s??""),b=g.split(`
|
|
752
|
-
`).flatMap(_=>d_(_,l.fontSize,d)),x=a.height!=null?ke(a.height,t.height):Math.max(h,b.length*h)+y*2,v=c-ni(m,d,"x"),T=u-ni(m,x,"y"),E=ht(o,n),k=de(()=>AU(s??""),[s]),I={boxSizing:"border-box",width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:l.verticalAlign==="top"?"flex-start":l.verticalAlign==="bottom"?"flex-end":"center",padding:y,color:l.color,fontSize:`${l.fontSize*r}px`,fontFamily:l.fontFamily||So,fontWeight:l.fontWeight||"normal",fontStyle:l.fontStyle||"normal",lineHeight:f,textAlign:l.textAlign??"left",...l.shadow?{textShadow:"0 2px 3px rgba(0,0,0,0.7)"}:{},...E.style};return w("g",{className:`block-layer block-layer--text ${E.className}`,style:E.style,"data-layer-id":e.id,children:w("foreignObject",{x:v,y:T,width:d,height:x,style:{overflow:"visible"},children:w("div",{xmlns:"http://www.w3.org/1999/xhtml","data-squisq-text-fit":"html","data-squisq-base-font-size":l.fontSize,style:I,children:w("div",{"data-squisq-text-content":"true",style:{width:"100%",whiteSpace:"pre-wrap",wordBreak:"break-word"},
|
|
751
|
+
`;var BE=[1,1.5,2];function Yg(e){let t=typeof e=="number"?e:typeof e=="string"?Number(e.trim().replace(/%$/,"")):Number.NaN;if(!Number.isFinite(t))return;let n=t>3?t/100:t;return BE.find(r=>Math.abs(r-n)<.001)}var P7=new Set(["content","list","quote","definitionCard","factCard","dateEvent"]),R7=160,N7=360;function $E(e){return !e.template||!P7.has(e.template)?1:e.textLength<R7?2:e.textLength<N7?1.5:1}function HE(e,t){let n=e.map(o=>o.explicit!==void 0?o.explicit:t==="auto"?$E(o):1),r=new Map;if(e.forEach((o,s)=>{let l=n[s];if(l===1)return;let c=o.explicit!==void 0?2:1;r.set(l,(r.get(l)??0)+c);}),r.size<=1)return n;let i=2,a=-1;for(let[o,s]of r)(s>a||s===a&&o>i)&&(i=o,a=s);return e.map((o,s)=>o.explicit!==void 0?o.explicit:n[s]===1?1:i)}var TE=32,SE=64,D7=/^[a-z0-9][a-z0-9-]*$/;function Sr(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(typeof e!="string")return;let t=e.trim().replace(/%$/,"");if(t.length===0)return;let n=Number(t);return Number.isFinite(n)?n:void 0}function Vs(e){return `${Math.round(e*1e3)/1e3}%`}function O7(e,t,n){if(!e||typeof e!="object"){n.push({path:t,message:"cell must be an object"});return}let r=e,i=Sr(r.x),a=Sr(r.y),o=Sr(r.width),s=Sr(r.height);if(i===void 0||i<0||i>100){n.push({path:`${t}.x`,message:"x must be a percent between 0 and 100"});return}if(a===void 0||a<0||a>100){n.push({path:`${t}.y`,message:"y must be a percent between 0 and 100"});return}if(o===void 0||o<=0||o>100){n.push({path:`${t}.width`,message:"width must be a percent greater than 0"});return}if(s===void 0||s<=0||s>100){n.push({path:`${t}.height`,message:"height must be a percent greater than 0"});return}let l={x:Vs(i),y:Vs(a),width:Vs(o),height:Vs(s)};if(r.block!==void 0){let c=typeof r.block=="string"?Number(r.block):r.block;if(typeof c!="number"||!Number.isInteger(c)||c<1||c>SE){n.push({path:`${t}.block`,message:`block must be an integer between 1 and ${SE}`});return}l.block=c;}if(r.zoom!==void 0){let c=Yg(r.zoom);if(c===void 0){n.push({path:`${t}.zoom`,message:"zoom must be 1, 1.5, or 2 (or 100/150/200 percent)"});return}l.zoom=c;}return l}function Pg(e,t,n){if(!Array.isArray(e)){n.push({path:t,message:"must be an array of cells"});return}if(e.length<1||e.length>TE){n.push({path:t,message:`must contain between 1 and ${TE} cells`});return}let r=[];for(let i=0;i<e.length;i++){let a=O7(e[i],`${t}[${i}]`,n);if(!a)return;r.push(a);}return r}function F7(e,t){if(!e||typeof e!="object"){t.push({path:"titleSlot",message:"titleSlot must be an object"});return}let n=e,r=n.placement==="bottom"?"bottom":n.placement==="top"?"top":void 0;if(r===void 0&&n.placement!==void 0){t.push({path:"titleSlot.placement",message:"placement must be 'top' or 'bottom'"});return}let i=Sr(n.height);if(i===void 0||i<=0||i>40){t.push({path:"titleSlot.height",message:"height must be a percent between 0 and 40"});return}return {placement:r??"top",height:Vs(i)}}function Xg(e){let t=[];if(!e||typeof e!="object")return {valid:false,errors:[{path:"",message:"definition must be an object"}]};let n=e,r=typeof n.name=="string"?n.name.trim().toLowerCase():"";D7.test(r)||t.push({path:"name",message:"name must be a slug (lowercase letters, digits, hyphens)"});let i=typeof n.label=="string"?n.label.trim():"";i.length===0&&t.push({path:"label",message:"label must be a non-empty string"});let a=n.cells,o,s,l;!a||typeof a!="object"?t.push({path:"cells",message:"cells must be an object with a landscape array"}):(o=Pg(a.landscape,"cells.landscape",t),a.portrait!==void 0&&(s=Pg(a.portrait,"cells.portrait",t)),a.square!==void 0&&(l=Pg(a.square,"cells.square",t)),o&&(s&&s.length!==o.length&&t.push({path:"cells.portrait",message:"portrait must define the same number of cells as landscape"}),l&&l.length!==o.length&&t.push({path:"cells.square",message:"square must define the same number of cells as landscape"})));let c;if(n.titleSlot!==void 0&&(c=F7(n.titleSlot,t)),t.length>0||!o)return {valid:false,errors:t};let u={name:r,label:i,cells:{landscape:o,...s?{portrait:s}:{},...l?{square:l}:{}}};return typeof n.description=="string"&&n.description.trim()&&(u.description=n.description.trim()),c&&(u.titleSlot=c),n.auto===false&&(u.auto=false),{valid:true,errors:t,layout:u}}function to(e){return e.cells.landscape.length}function zE(e){return e.map(t=>({x:t.y,y:t.x,width:t.height,height:t.width,...t.block!==void 0?{block:t.block}:{},...t.zoom!==void 0?{zoom:t.zoom}:{}}))}function UE(e,t,n){return (t==="portrait"?e.cells.portrait??zE(e.cells.landscape):t==="square"?e.cells.square??e.cells.landscape:e.cells.landscape).map(i=>{let a=Sr(i.x)??0,o=Sr(i.y)??0,s=Sr(i.width)??0,l=Sr(i.height)??0,c={rect:{x:n.x+a/100*n.width,y:n.y+o/100*n.height,width:Math.max(1,s/100*n.width),height:Math.max(1,l/100*n.height)}};i.block!==void 0&&(c.block=i.block);let u=Yg(i.zoom);return u!==void 0&&(c.zoom=u),c})}var jE="squisq-dashboard-layouts",B7={label:"lb",description:"ds",cells:"ce",landscape:"ls",portrait:"pt",square:"sq",width:"wd",height:"hg",block:"bk",zoom:"zo",titleSlot:"ts",placement:"pl",auto:"au"},$7=Object.fromEntries(Object.entries(B7).map(([e,t])=>[t,e]));function Dg(e,t){if(Array.isArray(e))return e.map(n=>Dg(n,t));if(e&&typeof e=="object"){let n={};for(let[r,i]of Object.entries(e))n[t[r]??r]=Dg(i,t);return n}return e}function WE(e){if(!e)return;let t=U7(e[jE]);if(!t)return;let n=[];for(let r of t){let i=Xg(r);i.layout&&n.push(i.layout);}return n.length>0?n:void 0}function VE(e){return Object.entries(e).map(([t,n])=>{let r=Dg(n&&typeof n=="object"?n:{},$7);return {name:t,...r}})}function H7(e){return Array.isArray(e)?e:e&&typeof e=="object"?VE(e):null}function z7(e){try{return JSON.parse(e)}catch{return}}function U7(e){if(e==null)return null;if(Array.isArray(e))return e;if(typeof e=="object")return VE(e);if(typeof e!="string")return null;let t=z7(e.trim());return t!==void 0?H7(t):null}var ud=2;function Ie(e){return `${Math.round(e*1e3)/1e3}%`}function aa(e,t,n=ud){let r=(100-(e-1)*n)/e,i=(100-(t-1)*n)/t,a=[];for(let o=0;o<t;o++)for(let s=0;s<e;s++)a.push({x:Ie(s*(r+n)),y:Ie(o*(i+n)),width:Ie(r),height:Ie(i)});return a}function j7(e,t,n=ud){let r=e+n,i=100-r,a=(100-(t-1)*n)/t,o=[{x:"0%",y:"0%",width:Ie(e),height:"100%"}];for(let s=0;s<t;s++)o.push({x:Ie(r),y:Ie(s*(a+n)),width:Ie(i),height:Ie(a)});return o}function W7(e,t,n=ud){let r=e+n,i=100-r,a=(100-(t-1)*n)/t,o=[{x:"0%",y:"0%",width:"100%",height:Ie(e)}];for(let s=0;s<t;s++)o.push({x:Ie(s*(a+n)),y:Ie(r),width:Ie(a),height:Ie(i)});return o}function V7(e,t=ud){let n=e+t,i=(100-n-t)/2,a=(100-t)/2,o=[{x:"0%",y:"0%",width:Ie(e),height:"100%"}];for(let s=0;s<2;s++)for(let l=0;l<2;l++)o.push({x:Ie(n+l*(i+t)),y:Ie(s*(a+t)),width:Ie(i),height:Ie(a)});return o}var ld=Object.freeze([{name:"focus-1",label:"Focus",description:"One block fills the dashboard.",cells:{landscape:[{x:"0%",y:"0%",width:"100%",height:"100%"}]}},{name:"split-2",label:"Split",description:"Two blocks side by side.",cells:{landscape:aa(2,1)}},{name:"hero-left",label:"Hero + 2",description:"A large lead block with two companions.",cells:{landscape:j7(58,2),portrait:[{x:"0%",y:"0%",width:"100%",height:Ie(46)},{x:"0%",y:Ie(48),width:"100%",height:Ie(25)},{x:"0%",y:Ie(75),width:"100%",height:Ie(25)}]}},{name:"grid-2x2",label:"Grid 2\xD72",description:"Four blocks in a balanced grid.",cells:{landscape:aa(2,2)}},{name:"hero-top",label:"Hero band",description:"A wide lead band with three blocks below.",cells:{landscape:W7(46,3),portrait:[{x:"0%",y:"0%",width:"100%",height:Ie(40)},{x:"0%",y:Ie(42),width:"100%",height:Ie(18)},{x:"0%",y:Ie(62),width:"100%",height:Ie(18)},{x:"0%",y:Ie(82),width:"100%",height:Ie(18)}]},auto:false},{name:"mosaic-5",label:"Mosaic",description:"A hero block beside a 2\xD72 grid.",cells:{landscape:V7(58),portrait:[{x:"0%",y:"0%",width:"100%",height:Ie(40)},{x:"0%",y:Ie(42),width:Ie(49),height:Ie(27)},{x:Ie(51),y:Ie(42),width:Ie(49),height:Ie(27)},{x:"0%",y:Ie(71),width:Ie(49),height:Ie(29)},{x:Ie(51),y:Ie(71),width:Ie(49),height:Ie(29)}]}},{name:"grid-3x2",label:"Grid 3\xD72",description:"Six blocks in three columns.",cells:{landscape:aa(3,2)}},{name:"grid-3x3",label:"Grid 3\xD73",description:"Nine blocks in a square grid.",cells:{landscape:aa(3,3),square:aa(3,3)}},{name:"grid-4x3",label:"Grid 4\xD73",description:"Twelve blocks in four columns.",cells:{landscape:aa(4,3)}},{name:"grid-4x4",label:"Grid 4\xD74",description:"Sixteen blocks \u2014 the densest wall.",cells:{landscape:aa(4,4)}}]);var dd="auto";function GE(e,t){let n=e.trim().toLowerCase();if(n)return t?.find(r=>r.name===n)??ld.find(r=>r.name===n)}function YE(e,t,n){let i=[...[...(n??[]).filter(l=>l.auto!==false),...ld.filter(l=>l.auto!==false)]].sort((l,c)=>to(l)-to(c)),a=Math.max(1,e),o=i.find(l=>to(l)>=a);if(o)return o;let s=i.reduce((l,c)=>Math.max(l,to(c)),0);return i.find(l=>to(l)===s)??ld[0]}var XE=["basic","card","panel","accent"],KE="basic";function Og(e){if(typeof e!="string")return;let t=e.trim().toLowerCase();if(t)return t==="none"||t==="default"||t==="flat"?"basic":t==="cards"?"card":t==="panels"||t==="outline"?"panel":t==="accents"||t==="accent-cards"?"accent":XE.includes(t)?t:void 0}function rd(e,t,n){return Math.min(n,Math.max(t,e))}function Y7(e){return zn(e)>.45}function QE(e,t){let n=t.colors.background;return e==="basic"||e==="panel"?n:Y7(n)?dr(n,.05):_o(n,.04)}function ZE(e,t){let n=Object.values(e.colorSchemes??{});if(n.length===0)return e.colors.primary;let r=n[(t%n.length+n.length)%n.length];return r.accent||r.text||e.colors.primary}function X7(e,t,n){let r=Math.max(1,Math.min(n.width,n.height)),i=t.style?.borderRadius??14;return e==="panel"?{edge:rd(r*.014,3,12),radius:rd(i*.45,0,r*.05)}:{edge:rd(r*.03,6,26),radius:rd(i,6,r*.1)}}function K7(e,t){if(e<=0)return;let n=Math.round(e/Math.max(1,t.width)*1e5)/1e3,r=Math.round(e/Math.max(1,t.height)*1e5)/1e3;return `${n}% / ${r}%`}function JE(e,t){let{theme:n,rect:r,index:i}=t;if(e==="basic")return null;let{edge:a,radius:o}=X7(e,n,r),s={x:r.x+a,y:r.y+a,width:Math.max(1,r.width-a*2),height:Math.max(1,r.height-a*2)},l={x:a,y:a,width:s.width,height:s.height},c=Math.max(1,Math.min(r.width,r.height)),u=Math.max(1,Math.round(c*.004)),d=ZE(n,i),m=[];e!=="panel"&&[{spread:.45,dy:.5,alpha:.05},{spread:.25,dy:.42,alpha:.05},{spread:.08,dy:.3,alpha:.06}].forEach((x,v)=>{let T=a*x.spread,E=a*x.dy;m.push({type:"shape",id:`cell-shadow-${v}`,content:{shape:"rect",fill:le(n.colors.text,x.alpha),borderRadius:o+T},position:{x:l.x-T,y:l.y-T+E,width:l.width+T*2,height:l.height+T*2}});}),m.push({type:"shape",id:"cell-surface",content:{shape:"rect",fill:n.colors.background,borderRadius:o},position:{x:l.x,y:l.y,width:l.width,height:l.height}});let f=[];if(e==="accent"&&f.push({type:"shape",id:"cell-accent-wash",content:{shape:"rect",fill:le(d,.1),borderRadius:o},position:{x:0,y:0,width:"100%",height:"100%"}}),e==="accent"||e==="panel"){let b=Math.max(2,Math.round(c*.014));f.push({type:"shape",id:"cell-accent-bar",content:{shape:"rect",fill:d},position:{x:0,y:0,width:"100%",height:b}});}let h=e==="panel"?u:Math.max(1,u*.6);f.push({type:"shape",id:"cell-border",content:{shape:"rect",fill:"none",stroke:e==="panel"?le(d,.45):le(n.colors.text,.14),strokeWidth:h,borderRadius:o},position:{x:h/2,y:h/2,width:Math.max(1,l.width-h),height:Math.max(1,l.height-h)}});let y={cardRect:s,contentRect:s,layers:m,overlayLayers:f,radius:o},g=K7(o,s);return g&&(y.contentRadiusPct=g),y}function e_(e){return e!=="basic"}function t_(e,t){let n=e[0];if(!n||n.type!=="shape")return [...e];let{content:r,position:i}=n,a=typeof r.fill=="string"?r.fill.trim().toLowerCase():"";return !(r.shape==="rect"&&(i.x===0||i.x==="0%")&&(i.y===0||i.y==="0%")&&i.width==="100%"&&i.height==="100%")||r.gradient||r.pattern?[...e]:a!==t.colors.background.trim().toLowerCase()?[...e]:e.slice(1)}var Gs=Object.freeze({layout:{canonical:"squisq-dashboard-layout",legacy:"dashboard-layout"},showTitle:{canonical:"squisq-dashboard-title",legacy:"dashboard-title"},zoom:{canonical:"squisq-dashboard-zoom",legacy:"dashboard-zoom"},style:{canonical:"squisq-dashboard-style",legacy:"dashboard-style"}}),Ys=Object.freeze({layout:dd,showTitle:true,zoom:"auto",style:KE});function id(e,t){if(e)return Object.prototype.hasOwnProperty.call(e,t.canonical)?e[t.canonical]:e[t.legacy]}function Q7(e){if(typeof e=="boolean")return e;if(typeof e!="string")return;let t=e.trim().toLowerCase();if(["true","yes","on","show","visible"].includes(t))return true;if(["false","no","off","hide","hidden"].includes(t))return false}function EE(e){if(typeof e!="string")return;let t=e.trim().toLowerCase();if(t)return t==="auto"||t==="default"?dd:t}function Z7(e){if(typeof e=="boolean")return e?"auto":"off";if(typeof e!="string")return;let t=e.trim().toLowerCase();if(["auto","on","true","yes"].includes(t))return "auto";if(["off","false","no","none","100","100%","1"].includes(t))return "off"}function n_(e,t={}){let n={layout:EE(id(e,Gs.layout))??Ys.layout,showTitle:Q7(id(e,Gs.showTitle))??Ys.showTitle,zoom:Z7(id(e,Gs.zoom))??Ys.zoom,style:Og(id(e,Gs.style))??Ys.style};return {layout:EE(t.layout)??n.layout,showTitle:t.showTitle??n.showTitle,zoom:t.zoom??n.zoom,style:Og(t.style)??n.style}}var J7={placement:"top",height:"9%"},eU=.015,tU=.02;function nU(e){let t=Number(e.trim().replace(/%$/,""));return Number.isFinite(t)?t:0}function ad(e,t){return `${Math.round(e/Math.max(1,t)*1e5)/1e3}%`}function Rg(e,t){return {left:ad(e.x,t.width),top:ad(e.y,t.height),width:ad(e.width,t.width),height:ad(e.height,t.height)}}function rU(e,t){let n=e.frontmatter?.title;return typeof n=="string"&&n.trim()?n.trim():t?.trim()??""}function iU(e,t){if(e.length===0||!t)return e;let n=e[0],r=typeof n.title=="string"?n.title.trim().toLowerCase():"";if(!r||r!==t.trim().toLowerCase())return e;let i=n.template,a=i==="title"||i==="sectionHeader"||i==="cover",o=Array.isArray(n.contents)&&n.contents.length>0;return a||!o?e.slice(1):e}function aU(e,t,n,r,i,a){let o=Mn(r,0,1,i),s=vo(i),l=Math.min(44*s,t.height*.52),c=Math.max(4,Math.round(6*s)),u=a+c+Math.max(10,Math.round(c*2.5));return [{type:"shape",id:"dashboard-title-accent",content:{shape:"rect",fill:r.colors.primary},position:{x:a,y:"26%",width:c,height:"48%"}},{type:"text",id:"dashboard-title-text",content:{text:e,style:{fontSize:l,fontFamily:ie(o,"title"),fontWeight:"bold",color:r.colors.text,textAlign:"left",verticalAlign:"middle",maxLines:1}},position:{x:u,y:0,width:Math.max(1,t.width-u-a),height:"100%"}},{type:"shape",id:"dashboard-title-rule",content:{shape:"rect",fill:le(r.colors.text,.14)},position:{x:0,y:n.placement==="bottom"?0:t.height-2,width:"100%",height:2}}]}function Kg(e,t={}){let n=t.theme??tt,r=t.viewport??Je.landscape,i=In(r),a=t.customLayouts??WE(e.frontmatter),o=t.customTemplates??e.customTemplates,s=[],l=n_(e.frontmatter,{layout:typeof t.layout=="string"?t.layout:void 0,showTitle:t.showTitle,zoom:t.zoom,...t.style!==void 0?{style:t.style}:{}}),c=l.style,u,d="auto";if(t.layout&&typeof t.layout=="object"){let z=Xg(t.layout);z.layout?(u=z.layout,d="option"):s.push({type:"unknown-layout",message:"Inline dashboard layout definition is invalid; falling back to auto.",requestedLayout:t.layout.name});}else if(l.layout!==dd){let z=GE(l.layout,a);z?(u=z,d=typeof t.layout=="string"&&t.layout.trim()?"option":"frontmatter"):s.push({type:"unknown-layout",message:`Unknown dashboard layout "${l.layout}"; falling back to auto.`,requestedLayout:l.layout});}let f=qE(e,{documentTitle:t.documentTitle,interleaveImages:false}).blocks??[];f.length===0&&s.push({type:"empty-doc",message:"The document has no renderable blocks; the dashboard has no cells."});let h=l.showTitle?rU(e,t.documentTitle):"",y=h.length>0;y&&(f=iU(f,h)),u||(u=YE(f.length,i,a),d="auto");let g=tU*Math.min(r.width,r.height),b={x:g,y:g,width:Math.max(1,r.width-g*2),height:Math.max(1,r.height-g*2)},x=null;if(y){let z=u.titleSlot??J7,H=Math.min(40,Math.max(2,nU(z.height)))/100*r.height,B=eU*r.height,C=z.placement==="bottom"?{x:0,y:r.height-H,width:r.width,height:H}:{x:0,y:0,width:r.width,height:H};b=z.placement==="bottom"?{x:g,y:g,width:Math.max(1,r.width-g*2),height:Math.max(1,r.height-H-B-g)}:{x:g,y:H+B,width:Math.max(1,r.width-g*2),height:Math.max(1,r.height-H-B-g)};let U={width:Math.max(1,Math.round(C.width)),height:Math.max(1,Math.round(C.height)),name:"Dashboard title"};x={text:h,rect:C,rectPct:Rg(C,r),viewport:U,layers:aU(h,U,z,n,r,g)};}let v=UE(u,i,b),T=[],E=new Set;v.forEach((z,$)=>{if(z.block===void 0)return;let H=z.block-1;if(H<0||H>=f.length){s.push({type:"invalid-cell-assignment",message:`Cell ${$+1} of layout "${u.name}" requests block ${z.block}, but the document has ${f.length} block(s); the cell is left empty.`});return}E.add(H),T.push({cellIndex:$,rect:z.rect,candidateIndex:H,explicitZoom:z.zoom});});let k=new Set,S=0;v.forEach((z,$)=>{if(z.block===void 0){for(;S<f.length&&E.has(S);)S++;S>=f.length||(k.add(S),T.push({cellIndex:$,rect:z.rect,candidateIndex:S,explicitZoom:z.zoom}),S++);}});let I=[];for(let z=0;z<f.length;z++)!E.has(z)&&!k.has(z)&&I.push(z);I.length>0&&s.push({type:"overflow",message:`${I.length} block(s) exceed the "${u.name}" layout's ${v.length} cell(s) and are not rendered.`,hiddenBlockIds:I.map(z=>String(f[z].id??z))});let _=T.sort((z,$)=>z.cellIndex-$.cellIndex),A=HE(_.map(({candidateIndex:z,explicitZoom:$})=>{let H=f[z],B=typeof H.title=="string"?H.title:"";return {template:it(H.template??""),textLength:B.length+Ka(H).length,...$!==void 0?{explicit:$}:{}}}),l.zoom),R=o&&o.length>0?Ns(o):ta,F=_.map(({cellIndex:z,rect:$,candidateIndex:H},B)=>{let C=f[H],U=A[B],V=JE(c,{theme:n,rect:$,index:z}),M=V?V.contentRect:$,J={width:Math.max(1,Math.round(M.width)),height:Math.max(1,Math.round(M.height)),name:`Dashboard cell ${z+1}`},we=Mn(n,H,f.length,J);U!==1&&(we.fontScale*=U);let me=ju(C,{theme:n,viewport:J,persistentLayers:false,blockIndex:H,totalBlocks:f.length,failureMode:t.failureMode},{registry:R,templateContext:we}),Y=e_(c)?t_(me.layers,n):me.layers,se;if(V){let ye={width:Math.max(1,Math.round($.width)),height:Math.max(1,Math.round($.height)),name:`Dashboard cell ${z+1} frame`};se={rect:$,rectPct:Rg($,r),viewport:ye,layers:V.layers,overlayLayers:V.overlayLayers,overlayViewport:{width:J.width,height:J.height,name:`Dashboard cell ${z+1} overlay`},...V.contentRadiusPct?{contentRadiusPct:V.contentRadiusPct}:{}};}return {index:z,block:C,blockIndex:H,layers:Y,rect:M,rectPct:Rg(M,r),...se?{frame:se}:{},viewport:J,zoom:U,source:me.source,...me.diagnostic?{diagnostic:me.diagnostic}:{}}}),L=Ls(e,n),D=QE(c,n),P={fill:D,bottomLayers:[{type:"shape",id:"dashboard-backdrop",content:{shape:"rect",fill:D},position:{x:0,y:0,width:"100%",height:"100%"}},...Xr(L?.bottomLayers,n)],topLayers:Xr(L?.topLayers,n)};return {layout:u,layoutSource:d,style:c,viewport:r,cells:F,title:x,backdrop:P,diagnostics:s}}var oU=new Set(["answer","back","solution","explanation","correct answer","correct","distractor","option"]);function r_(e){return typeof e=="string"?e.trim().toLowerCase().replace(/[\s_-]+/g,""):""}function od(e){let t=r_(e);if(t==="flashcard"||t==="card"||t==="basicflashcard")return "basic";if(t==="multiplechoiceflashcard"||t==="multiplechoice"||t==="quiz")return "multiple-choice";if(t==="group"||t==="flashcardgroup"||t==="deck")return "group"}function md(e){let t=od(e.metadata?.study)??od(e.metadata?.["study-mode"]);if(t)return t;for(let n of e.classes??[]){let r=od(n);if(r)return r}return od(e.template)}function no(e){return typeof e.title=="string"&&e.title.trim().length>0}function Ks(e){return (e.contents?.length??0)>0||(e.media?.length??0)>0||(e.layers?.length??0)>0}function ir(e){return no(e)||Ks(e)}function i_(e){return no(e)&&oU.has(e.title.trim().toLowerCase())}function sU(e){let{children:t,...n}=e;return n}function lU(e){let{children:t,contents:n,media:r,layers:i,...a}=e;return a}function a_(e){let{children:t,title:n,...r}=e;return r}function rn(...e){return {blocks:e}}function _E(e){return e===true?true:typeof e!="string"?false:["true","yes","on","1","correct"].includes(e.trim().toLowerCase())}function cU(e){return _E(e.metadata?.correct)||_E(e.metadata?.answer)||(e.classes??[]).some(t=>r_(t)==="correct")}function Fg(e){let t=md(e);if(t==="group")return false;if(t==="basic"||t==="multiple-choice")return true;if(i_(e))return false;let n=e.children??[];return n.length===0?no(e)&&Ks(e):n.length===1?ir(e)&&ir(n[0]):n.every(ir)}function o_(e){for(let t of e.children??[]){let n=md(t);if(n==="basic"||n==="multiple-choice"||o_(t))return true}return false}function uU(e){let t=e.children??[];return t.length===0?false:o_(e)?true:Ks(e)?false:t.length===1?Fg(t[0])&&!i_(t[0]):t.filter(Fg).length>=2}function s_(e){return Ks(e)?rn(a_(e)):void 0}function AE(e,t){let n=e.children??[],r,i,a,o;if(n.length===0?(r=no(e)?rn(lU(e)):rn(),i=Ks(e)?rn(a_(e)):rn()):n.length===1?(r=ir(e)?rn(sU(e)):rn(),i=ir(n[0])?rn(n[0]):rn()):(r=ir(n[0])?rn(n[0]):rn(),i=rn(...n.slice(1).filter(ir)),a=no(e)?e.title.trim():void 0,o=s_(e)),r.blocks.length===0&&t.push({severity:"error",code:"empty-front",message:`Flashcard "${e.id}" has no content for its front`,blockId:e.id}),i.blocks.length===0&&t.push({severity:"error",code:"empty-back",message:`Flashcard "${e.id}" has no content for its answer`,blockId:e.id}),!(r.blocks.length===0||i.blocks.length===0))return {id:e.id,sourceBlockId:e.id,kind:"basic",...a?{label:a}:{},front:r,back:i,...o?{explanation:o}:{}}}function dU(e,t){let n=e.children??[],r=n[0],i=n.slice(1).filter(ir);if((!r||!ir(r))&&t.push({severity:"error",code:"empty-front",message:`Multiple-choice flashcard "${e.id}" has no question block`,blockId:e.id}),i.length===0&&t.push({severity:"error",code:"empty-back",message:`Multiple-choice flashcard "${e.id}" has no answer choices`,blockId:e.id}),!r||!ir(r)||i.length===0)return;let a=i.filter(cU);a.length>1&&t.push({severity:"warning",code:"multiple-correct-answers",message:`Multiple-choice flashcard "${e.id}" marks more than one answer correct; the first marker wins`,blockId:e.id});let o=a[0]??i[0];i.length<2&&t.push({severity:"warning",code:"multiple-choice-needs-distractor",message:`Multiple-choice flashcard "${e.id}" needs at least one distractor`,blockId:e.id});let s=i.map((c,u)=>({id:`${e.id}-choice-${u+1}`,sourceBlockId:c.id,content:rn(c),correct:c===o})),l=s_(e);return {id:e.id,sourceBlockId:e.id,kind:"multiple-choice",...no(e)?{label:e.title.trim()}:{},front:rn(r),back:rn(o),choices:s,...l?{explanation:l}:{}}}function mU(e){let t=e.frontmatter?.title;return typeof t=="string"&&t.trim()?t.trim():e.startBlock?.title?.trim()||void 0}function Qg(e,t={}){let n=t.source??"auto",r=[],i=[],a=u=>{let d=md(u);if(d==="group"){for(let m of u.children??[])a(m);return}if(d==="basic"){let m=AE(u,i);m&&r.push(m);return}if(d==="multiple-choice"){let m=dU(u,i);m&&r.push(m);return}if(n==="explicit"){for(let m of u.children??[])a(m);return}if(uU(u)){for(let m of u.children??[])a(m);return}if(Fg(u)){let m=AE(u,i);m&&r.push(m);return}for(let m of u.children??[])a(m);};for(let u of e.blocks)a(u);let o=mU(e),s=typeof e.frontmatter?.title=="string"?e.frontmatter.title.trim():"",l=r[0]?.front.blocks[0]?.title?.trim(),c=o&&(s||o!==l)?o:void 0;return {...c?{title:c}:{},cards:r,diagnostics:i}}function ke(e,t){return typeof e=="number"?e:e.endsWith("%")?parseFloat(e)/100*t:parseFloat(e)}function Wt(e,t,n){switch(e){case "center":return {x:-t/2,y:-n/2};case "top-right":return {x:-t,y:0};case "bottom-left":return {x:0,y:-n};case "bottom-right":return {x:-t,y:-n};default:return {x:0,y:0}}}function l_({layer:e,basePath:t,viewport:n,blockTime:r,animationsEnabled:i=true}){let{content:a,position:o,animation:s}=e,l=ke(o.x,n.width),c=ke(o.y,n.height),u=o.width?ke(o.width,n.width):n.width,d=o.height?ke(o.height,n.height):n.height,m=Wt(o.anchor,u,d),f=l+m.x,h=c+m.y,y=bt(a.src,t),g=ht(s,r),b=$g(a.treatment,a.blur),x=gU(a.fit),v=a.fit==="cover",T=s&&yU.has(s.type);if(v&&wU(n,u,d,i,s)){let k=kU(s),S=xU(T?s:void 0),I=T?{className:"",style:{}}:g;return w("g",{className:`block-layer block-layer--image ${I.className}`,style:I.style,"data-layer-id":e.id,"data-image-framing":"portrait-pan",children:w("foreignObject",{x:f,y:h,width:u,height:d,children:w("div",{style:{width:`${u}px`,height:`${d}px`,overflow:"hidden"},children:w("img",{src:y,alt:a.alt||"",className:k,style:{width:`${u}px`,height:`${d}px`,objectFit:"cover",objectPosition:"center",display:"block",pointerEvents:"none",...b?{filter:b}:{},...a.blur&&a.blur>0?{transform:"scale(1.06)"}:{},...S}})})})})}if(v&&T&&s){let k=vU(s),S=ht(k,r);return w("g",{className:"block-layer block-layer--image","data-layer-id":e.id,children:w("foreignObject",{x:f,y:h,width:u,height:d,children:w("div",{style:{width:`${u}px`,height:`${d}px`,overflow:"hidden"},children:w("img",{src:y,alt:a.alt||"",className:S.className,style:{width:`${u}px`,height:`${d}px`,objectFit:"cover",objectPosition:"center",display:"block",pointerEvents:"none",transformOrigin:"center center",...b?{filter:b}:{},...S.style}})})})})}return v?w("g",{className:`block-layer block-layer--image ${g.className}`,style:g.style,"data-layer-id":e.id,children:w("foreignObject",{x:f,y:h,width:u,height:d,children:w("img",{src:y,alt:a.alt||"",style:{width:`${u}px`,height:`${d}px`,objectFit:"cover",objectPosition:"center",display:"block",pointerEvents:"none",...b?{filter:b}:{},...a.blur&&a.blur>0?{transform:"scale(1.06)"}:{}}})})}):w("g",{className:`block-layer block-layer--image ${g.className}`,style:g.style,"data-layer-id":e.id,children:w("image",{href:y,x:f,y:h,width:u,height:d,preserveAspectRatio:x,style:{pointerEvents:"none",...b?{filter:b}:{}}})})}function gU(e){switch(e){case "cover":return "xMidYMid slice";case "fill":return "none";default:return "xMidYMid meet"}}var yU=new Set(["panLeft","panRight","slowZoom","zoomIn","zoomOut"]),bU=.83;function wU(e,t,n,r,i){return !r||i?.type==="none"||e.width/e.height>=bU?false:t>=e.width*.7&&n>=e.height*.7}function kU(e){return e?.type==="panRight"||e?.type==="slowZoom"&&e.panDirection==="right"?"squisq-image--portrait-pan-left":"squisq-image--portrait-pan-right"}function xU(e){return {"--portrait-pan-duration":`${e?.duration??12}s`,"--portrait-pan-delay":`${e?.delay??0}s`,"--portrait-pan-easing":e?.easing??"ease-in-out"}}function vU(e){switch(e.type){case "panLeft":return {...e,type:"slowZoom",panDirection:"left"};case "panRight":return {...e,type:"slowZoom",panDirection:"right"};case "zoomIn":return {...e,type:"slowZoom",direction:"in"};case "zoomOut":return {...e,type:"slowZoom",direction:"out"};default:return e}}function io(e,t){let n=`${e}-${t}`,r=n.replace(/[^A-Za-z0-9_-]/g,"_");if(r===n.replace(/:/g,"_"))return r.replace(/^_+/,"d");let i=0;for(let a=0;a<n.length;a++)i=i*31+n.charCodeAt(a)>>>0;return `${r.replace(/^_+/,"d")}-${i.toString(36)}`}function ao(e,t){if(!e||e==="solid")return;let n=Math.max(1,t??1);return e==="dotted"?`${n} ${n*2}`:`${n*3} ${n*2}`}function TU(e=0){let t=e*Math.PI/180,n=Math.sin(t),r=Math.cos(t);return {x1:.5-n/2,y1:.5-r/2,x2:.5+n/2,y2:.5+r/2}}function SU(e){return `squisq-grad-${e}`}function oo(e,t,n,r){if(r){let i=`squisq-pattern-${e}`;return {fill:`url(#${i})`,def:EU(i,r)}}if(n){let i=SU(e),a=TU(n.angle);return {fill:`url(#${i})`,def:w("linearGradient",{id:i,x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2,children:[w("stop",{offset:"0%",stopColor:n.from}),w("stop",{offset:"100%",stopColor:n.to})]})}}return {fill:t,def:null}}function EU(e,t){let n=t.size??24,r=t.opacity??1,i=t.color;return w("pattern",{id:e,width:n,height:n,patternUnits:"userSpaceOnUse",patternTransform:t.kind==="diagonal"?"rotate(45)":void 0,children:[t.kind==="dots"&&w("circle",{cx:n/2,cy:n/2,r:Math.max(1,n/12),fill:i,opacity:r}),t.kind==="grid"&&w("path",{d:`M ${n} 0 L 0 0 0 ${n}`,fill:"none",stroke:i,strokeWidth:1,opacity:r}),t.kind==="diagonal"&&w("line",{x1:0,y1:0,x2:0,y2:n,stroke:i,strokeWidth:1,opacity:r})]})}function c_(e,t){if(!t||t.type!=="noise")return {filterAttr:void 0,def:null};let n=`squisq-noise-${e}`,r=t.opacity??.05;return {filterAttr:`url(#${n})`,def:w("filter",{id:n,x:"0%",y:"0%",width:"100%",height:"100%",children:[w("feTurbulence",{type:"fractalNoise",baseFrequency:t.baseFrequency??.8,numOctaves:2,stitchTiles:"stitch",result:"noise"}),w("feColorMatrix",{in:"noise",type:"saturate",values:"0",result:"mono"}),w("feComponentTransfer",{in:"mono",result:"faded",children:w("feFuncA",{type:"linear",slope:r,intercept:0})}),w("feComposite",{in:"faded",in2:"SourceGraphic",operator:"in"})]})}}function u_(e){return e.layer.content.html?.trim()?w(MU,{...e}):Ig(e.layer.content.text??"")?w(CU,{...e}):w(IU,{...e})}function _U(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function AU(e){return Lg(e).map(t=>t.type==="icon"?`<i class="${qg(t.family,t.name)}" aria-hidden="true"></i>`:_U(t.text).replace(/\n/g,"<br>")).join("")}function CU({layer:e,viewport:t,blockTime:n,textScale:r=1}){let{content:i,position:a,animation:o}=e,{text:s,style:l}=i,c=ke(a.x,t.width),u=ke(a.y,t.height),d=a.width!=null?ke(a.width,t.width):t.width,m=a.anchor??"top-left",f=l.lineHeight||1.4,h=l.fontSize*f,y=l.padding??0,b=Mg(s??"").split(`
|
|
752
|
+
`).flatMap(_=>d_(_,l.fontSize,d)),x=a.height!=null?ke(a.height,t.height):Math.max(h,b.length*h)+y*2,v=c-ni(m,d,"x"),T=u-ni(m,x,"y"),E=ht(o,n),k=de(()=>AU(s??""),[s]),I={boxSizing:"border-box",width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:l.verticalAlign==="top"?"flex-start":l.verticalAlign==="bottom"?"flex-end":"center",padding:y,color:l.color,fontSize:`${l.fontSize*r}px`,fontFamily:l.fontFamily||So,fontWeight:l.fontWeight||"normal",fontStyle:l.fontStyle||"normal",lineHeight:f,textAlign:l.textAlign??"left",...l.shadow?{textShadow:"0 2px 3px rgba(0,0,0,0.7)"}:{},...E.style};return w("g",{className:`block-layer block-layer--text ${E.className}`,style:E.style,"data-layer-id":e.id,children:w("foreignObject",{x:v,y:T,width:d,height:x,style:{overflow:"visible"},children:w("div",{xmlns:"http://www.w3.org/1999/xhtml","data-squisq-text-fit":"html","data-squisq-base-font-size":l.fontSize,style:I,children:w("div",{"data-squisq-text-content":"true",style:{width:"100%",whiteSpace:"pre-wrap",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:k}})})})})}function IU({layer:e,viewport:t,blockTime:n,textScale:r=1}){let i=io(Xt(),e.id),{content:a,position:o,animation:s}=e,{text:l,style:c}=a,u=ke(o.x,t.width),d=ke(o.y,t.height),m=o.width!=null?ke(o.width,t.width):void 0,f=o.height!=null?ke(o.height,t.height):void 0,h=m,y=PU(c.textAlign,o.anchor),g=RU(c.verticalAlign,o.anchor),b=o.anchor??"top-left",x=NU(u,m,b,y),v=DU(d,f,b,g),T=m??(y==="middle"?Math.max(0,Math.min(x,t.width-x)*2):y==="end"?Math.max(0,x):Math.max(0,t.width-x)),E=f??(g==="middle"?Math.max(0,Math.min(v,t.height-v)*2):g==="text-after-edge"?Math.max(0,v):Math.max(0,t.height-v)),k=ht(s,n),S=s?.type==="countUp",I=s?.type==="wordReveal",A=((S&&s?ng(l??"",s,n):l)??"").split(`
|
|
753
753
|
`),R=h?A.reduce((me,Y)=>me.concat(d_(Y,c.fontSize,h)),[]):A;if(c.maxLines&&R.length>c.maxLines){R=R.slice(0,c.maxLines);let me=R[R.length-1];R[R.length-1]=me.replace(/\s*$/,"")+"...";}let F=c.lineHeight||1.4,L=c.fontSize*F,D=c.shrinkToFit===true,z=D&&g==="middle"?-((R.length-1)/2)*L:0,$=ue(null),[H,B]=ge(null),C=R.join(`
|
|
754
|
-
`);kn(()=>{if(!D){B(null);return}let me=$.current;if(!me||typeof me.getBBox!="function")return;let Y=()=>{try{let ye=me.getBBox();if(ye.width<=0||ye.height<=0)return;let fe=m??t.width,ce=f??t.height,K=Math.min(1,fe/ye.width,ce/ye.height);B(K<.995?{scale:K,cx:ye.x+ye.width/2,cy:ye.y+ye.height/2}:null);}catch{}};Y();let se=me.ownerDocument?.fonts;if(se&&se.status!=="loaded"){let ye=false;return se.ready.then(()=>{ye||Y();}),()=>{ye=true;}}},[D,C,m,f,t.width,t.height,c.fontSize,c.fontFamily,c.fontWeight]);let U=H?`translate(${H.cx} ${H.cy}) scale(${H.scale}) translate(${-H.cx} ${-H.cy})`:void 0,V={fontSize:`${c.fontSize}px`,fontFamily:c.fontFamily||So,fontWeight:c.fontWeight||"normal",fontStyle:c.fontStyle||"normal",fill:c.color,...k.style},M=c.shadow?`shadow-${i}`:void 0,J=0,we=me=>!I||!s||!me?me||"\xA0":me.split(" ").map((se,ye)=>{let fe=Bg(s,J++);return w(Pe,{children:[ye>0?" ":null,w("tspan",{className:"anim-word",style:{"--anim-delay":`${fe}s`},children:se})]},ye)});return w("g",{className:`block-layer block-layer--text ${k.className}`,style:k.style,"data-layer-id":e.id,children:[c.shadow&&w("defs",{children:w("filter",{id:M,x:"-20%",y:"-20%",width:"140%",height:"140%",children:w("feDropShadow",{dx:"0",dy:"2",stdDeviation:"3",floodColor:"rgba(0,0,0,0.7)"})})}),w(qU,{layerId:i,style:c,box:m!=null&&f!=null?{x:u-ni(b,m,"x"),y:d-ni(b,f,"y"),width:m,height:f}:{x:x-(c.padding||16),y:v-c.fontSize-(c.padding||16),width:OU(R,c)+(c.padding||16)*2,height:R.length*L+(c.padding||16)*2}}),w("g",{"data-squisq-text-fit":"svg","data-squisq-fit-width":T,"data-squisq-fit-height":E,style:{transform:`scale(${r})`,transformOrigin:`${x}px ${v}px`,transformBox:"view-box"},children:w("text",{ref:$,"data-squisq-text-content":"true",x,y:v,textAnchor:y,dominantBaseline:g,style:V,filter:M?`url(#${M})`:void 0,transform:U,children:R.map((me,Y)=>w("tspan",{x,dy:Y===0?z:L,children:[we(me)," "]},Y))})})]})}function MU({layer:e,viewport:t,blockTime:n,textScale:r=1}){let{content:i,position:a,animation:o}=e,{html:s,style:l}=i,c=ke(a.x,t.width),u=ke(a.y,t.height),d=a.width!=null?ke(a.width,t.width):t.width,m=a.height!=null?ke(a.height,t.height):l.fontSize*(l.lineHeight||1.4)*2,f=a.anchor??"top-left",h=c-ni(f,d,"x"),y=u-ni(f,m,"y"),g=de(()=>ki(_a(wi(s??""))),[s]),b=ht(o,n),x=l.verticalAlign==="middle"?"center":l.verticalAlign==="bottom"?"flex-end":"flex-start",v=!!(l.borderColor&&(l.borderWidth??0)>0),T={boxSizing:"border-box",width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:x,padding:l.padding??0,color:l.color,fontSize:`${l.fontSize*r}px`,fontFamily:l.fontFamily||So,fontWeight:l.fontWeight||"normal",fontStyle:l.fontStyle||"normal",lineHeight:l.lineHeight||1.4,textAlign:l.textAlign??"left",overflow:"hidden",...l.background?{background:l.background}:{},...v?{border:`${l.borderWidth}px ${l.borderStyle??"solid"} ${l.borderColor}`,borderRadius:4}:{},...l.shadow?{textShadow:"0 2px 3px rgba(0,0,0,0.7)"}:{},...b.style},E=`squisq-rich-text-${LU(e.id)}`,k=l.textAlign==="center"||l.textAlign==="right"?"inside":"outside",S=_=>{_.target?.closest?.("[data-squisq-table-scroll]")&&_.stopPropagation();},I=`.${E}{margin:0}.${E} p{margin:0 0 .4em}.${E} h1,.${E} h2,.${E} h3,.${E} h4,.${E} h5,.${E} h6{margin:0 0 .3em;line-height:1.2}.${E} ul,.${E} ol{margin:0 0 .7em;padding-left:1.2em;list-style-position:${k}}.${E} li{margin:0}.${E} li>p{display:inline;margin:0}.${E} [data-squisq-table-scroll]{width:100%;max-height:20em;margin:.35em 0;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}.${E} table{width:100%;min-width:48em;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:.76em;line-height:1.2}.${E} th,.${E} td{box-sizing:border-box;padding:.28em .45em;border:1px solid rgba(127,127,127,.55);border-color:color-mix(in srgb,currentColor 32%,transparent);vertical-align:top;white-space:normal;overflow-wrap:anywhere}.${E} th{position:sticky;top:0;z-index:1;background:rgba(127,127,127,.16);background:color-mix(in srgb,currentColor 12%,transparent);font-weight:600}.${E} tbody tr:nth-child(even){background:rgba(127,127,127,.07);background:color-mix(in srgb,currentColor 5%,transparent)}.${E} *:first-child{margin-top:0}.${E} *:last-child{margin-bottom:0}.${E} a{color:inherit;text-decoration:underline}`;return w("g",{className:`block-layer block-layer--text ${b.className}`,style:b.style,"data-layer-id":e.id,children:w("foreignObject",{x:h,y,width:d,height:m,color:l.color,style:{color:l.color},children:w("div",{xmlns:"http://www.w3.org/1999/xhtml","data-squisq-text-fit":"html","data-squisq-base-font-size":l.fontSize,style:T,onPointerDown:S,onClick:S,onWheel:S,onKeyDown:S,children:[w("style",{children:I}),w("div",{"data-squisq-text-content":"true",className:E,"aria-label":i.text,style:{width:"100%",color:l.color,whiteSpace:"pre-wrap",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:g}})]})})})}function LU(e){return e.replace(/[^a-zA-Z0-9_-]/g,"-")}function qU({layerId:e,style:t,box:n}){let r=!!(t.background||t.backgroundGradient),i=!!(t.borderColor&&(t.borderWidth??0)>0);if(!r&&!i)return null;let{fill:a,def:o}=oo(e,t.background,t.backgroundGradient),s=ao(t.borderStyle,t.borderWidth);return w(Pe,{children:[o&&w("defs",{children:o}),w("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:r?a:"none",fillOpacity:r?t.backgroundOpacity:void 0,stroke:i?t.borderColor:void 0,strokeWidth:i?t.borderWidth:void 0,strokeDasharray:i?s:void 0,rx:4,ry:4})]})}function PU(e,t){return e==="center"?"middle":e==="right"?"end":e==="left"?"start":t?.includes("right")?"end":t==="center"?"middle":"start"}function RU(e,t){return e==="top"?"text-before-edge":e==="middle"?"middle":e==="bottom"||t?.includes("bottom")?"text-after-edge":t==="center"?"middle":"text-before-edge"}function NU(e,t,n,r){if(t==null)return e;let i=e-ni(n,t,"x");return r==="middle"?i+t/2:r==="end"?i+t:i}function DU(e,t,n,r){if(t==null)return e;let i=e-ni(n,t,"y");return r==="middle"?i+t/2:r==="text-after-edge"?i+t:i}function ni(e,t,n){return e==="center"?t/2:n==="x"?e.includes("right")?t:0:e.includes("bottom")?t:0}function OU(e,t){return Math.max(...e.map(r=>r.length))*t.fontSize*.55}function d_(e,t,n){if(!e.trim())return [""];let r=t*.5,i=Math.floor(n/r);if(i<=0)return [e];let a=e.split(/\s+/),o=[],s="";for(let l of a){let c=s?`${s} ${l}`:l;if(c.length<=i)s=c;else if(s&&o.push(s),l.length>i){let u=l;for(;u.length>i;)o.push(u.slice(0,i)),u=u.slice(i);s=u;}else s=l;}return s&&o.push(s),o.length>0?o:[""]}var FU=1;function m_({layer:e,viewport:t,blockTime:n}){let{content:r,position:i,animation:a}=e,o=io(Xt(),e.id),s=ke(i.x,t.width),l=ke(i.y,t.height),c=i.width?ke(i.width,t.width):100,u=i.height?ke(i.height,t.height):100,d=Wt(i.anchor,c,u),m=s+d.x,f=l+d.y,y=r.shape==="rect"&&m===0&&f===0&&c===t.width&&u===t.height&&!r.stroke&&!r.borderRadius?FU:0,g=m-y,b=f-y,x=c+y*2,v=u+y*2,T=ht(a,n),E=r.fill||"none",k=typeof E=="string"&&E.includes("gradient(");if(r.shape==="rect"&&k&&!r.gradient)return w("g",{className:`block-layer block-layer--shape ${T.className}`,style:T.style,"data-layer-id":e.id,pointerEvents:"none",children:w("foreignObject",{x:g,y:b,width:x,height:v,children:w("div",{style:{width:`${x}px`,height:`${v}px`,background:E,borderRadius:r.borderRadius?`${r.borderRadius}px`:void 0,pointerEvents:"none"}})})});let{fill:S,def:I}=oo(o,E,r.gradient,r.pattern),{filterAttr:_,def:A}=c_(o,r.filter),R=ao(r.borderStyle,r.strokeWidth),F={fill:S,fillOpacity:r.fillOpacity,stroke:r.stroke,strokeWidth:r.strokeWidth,strokeDasharray:R,..._?{filter:_}:{}};return w("g",{className:`block-layer block-layer--shape ${T.className}`,style:T.style,"data-layer-id":e.id,pointerEvents:"none",children:[(I||A)&&w("defs",{children:[I,A]}),r.shape==="rect"&&w("rect",{x:g,y:b,width:x,height:v,rx:r.borderRadius,ry:r.borderRadius,...F}),r.shape==="circle"&&w("circle",{cx:m+c/2,cy:f+u/2,r:Math.min(c,u)/2,...F}),r.shape==="line"&&w("line",{x1:m,y1:f,x2:m+c,y2:f+u,stroke:r.stroke||"#ffffff",strokeWidth:r.strokeWidth||2,strokeDasharray:R})]})}function BU(e,t){let{content:n,position:r}=e;if(!n.shapeKind)return n.d;let i=r.width?ke(r.width,t.width):0,a=r.height?ke(r.height,t.height):0,o=ke(r.x,t.width),s=ke(r.y,t.height),l=Wt(r.anchor,i,a);return Wi(n.shapeKind,o+l.x,s+l.y,i,a)??n.d}function $U(e){return e.arrow}function f_(e,t,n){return e||(t==="both"||t===n?"arrow":"none")}function h_({layer:e,viewport:t,blockTime:n}){let{content:r,animation:i,id:a}=e,o=io(Xt(),a),s=BU(e,t),l=r.stroke??"#1e293b",c=r.strokeWidth??2,{fill:u,def:d}=oo(o,r.fill??"none",r.gradient),m=r.borderStyle?ao(r.borderStyle,c):r.dasharray,f=ht(i,n),h=`marker-start-${o}`,y=`marker-end-${o}`,g=$U(r),b=Ts(f_(r.startMarker,g,"start"),"start"),x=Ts(f_(r.endMarker,g,"end"),"end"),v=b?`url(#${h})`:void 0,T=x?`url(#${y})`:void 0,E=i?.type==="drawOn";return w("g",{className:`block-layer block-layer--path ${f.className}`,style:f.style,"data-layer-id":a,children:[w("defs",{children:[d,x&&w(p_,{id:y,dir:"end",d:x.d,filled:x.filled,stroke:l}),b&&w(p_,{id:h,dir:"start",d:b.d,filled:b.filled,stroke:l})]}),w("path",{d:s,stroke:l,strokeWidth:c,fill:u,fillOpacity:r.fillOpacity,strokeDasharray:E?void 0:m,pathLength:E?1:void 0,"data-squisq-draw":E?"stroke":void 0,markerStart:E?void 0:v,markerEnd:E?void 0:T}),E&&(v||T)&&w("path",{d:s,stroke:l,strokeWidth:c,strokeOpacity:0,fill:"none","data-squisq-draw":"markers",markerStart:v,markerEnd:T})]})}function p_({id:e,dir:t,d:n,filled:r,stroke:i}){return w("marker",{id:e,viewBox:"0 0 10 10",refX:t==="end"?9:1,refY:5,markerWidth:4,markerHeight:4,orient:"auto-start-reverse",markerUnits:"strokeWidth",children:w("path",{d:n,fill:r?i:"none",stroke:r?"none":i,strokeWidth:r?void 0:1.5})})}var HU={terrain:{url:"https://tile.opentopomap.org/{z}/{x}/{y}.png",attribution:"Map: OpenTopoMap (CC-BY-SA)",maxZoom:17},road:{url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"\xA9 OpenStreetMap contributors",maxZoom:19},satellite:{url:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",attribution:"Imagery: Esri, Maxar, Earthstar",maxZoom:18},toner:{url:"https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png",attribution:"Map: Stadia Maps, Stamen Design",maxZoom:20},watercolor:{url:"https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg",attribution:"Map: Stadia Maps, Stamen Design",maxZoom:16}};function Zg(e,t,n){let r=Math.pow(2,n),i=Math.floor((t+180)/360*r),a=e*Math.PI/180,o=Math.floor((1-Math.log(Math.tan(a)+1/Math.cos(a))/Math.PI)/2*r);return {x:i,y:o}}function Jg(e,t,n,r=256){let i=Math.pow(2,n),a=(t+180)/360*i,o=e*Math.PI/180,s=(1-Math.log(Math.tan(o)+1/Math.cos(o))/Math.PI)/2*i;return {x:(a-Math.floor(a))*r,y:(s-Math.floor(s))*r}}function zU(e,t,n,r,i,a=256){let o=Zg(e,t,n),s=Jg(e,t,n,a),l=Math.ceil(r/a)+1,c=Math.ceil(i/a)+1,u=o.x-Math.floor(l/2),d=o.y-Math.floor(c/2),m=r/2-s.x,f=i/2-s.y,h=[];for(let y=0;y<c;y++)for(let g=0;g<l;g++){let b=u+g,x=d+y,v=m+(b-o.x)*a,T=f+(x-o.y)*a;h.push({x:b,y:x,screenX:v,screenY:T});}return h}function g_(e,t,n,r){return e.url.replace("{z}",String(r)).replace("{x}",String(t)).replace("{y}",String(n))}async function UU(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="anonymous",r.onload=()=>t(r),r.onerror=()=>n(new Error(`Failed to load tile: ${e}`)),r.src=e;})}async function y_(e){let{center:t,zoom:n,style:r,width:i,height:a,markers:o=[],showAttribution:s=true}=e,l=HU[r],c=l.tileSize||256,u=Math.min(n,l.maxZoom),d=g_(l,0,0,u);if(!ln(d,e.policy))throw new Zn("RESOURCE_BLOCKED",`Map tiles for style "${r}" are blocked by the resource policy (${l.url}). Composing a map contacts the tile host; supply the map as \`staticSrc\` to render it without any remote request.`);let m=document.createElement("canvas");m.width=i,m.height=a;let f=m.getContext("2d");if(!f)throw new Error("Failed to get canvas context");f.fillStyle=r==="toner"?"#ffffff":"#e5e7eb",f.fillRect(0,0,i,a);let y=zU(t.lat,t.lng,u,i,a,c).map(async g=>{let b=g_(l,g.x,g.y,u);try{let x=await UU(b);f.drawImage(x,g.screenX,g.screenY,c,c);}catch(x){console.warn(`Tile load failed: ${b}`,x);}});await Promise.all(y);for(let g of o)jU(f,g,t,u,i,a,c);return s&&VU(f,l.attribution,i,a),m.toDataURL("image/png")}function jU(e,t,n,r,i,a,o){let s=Zg(n.lat,n.lng,r),l=Zg(t.lat,t.lng,r),c=Jg(n.lat,n.lng,r,o),u=Jg(t.lat,t.lng,r,o),d=(l.x-s.x)*o+(u.x-c.x),m=(l.y-s.y)*o+(u.y-c.y),f=i/2+d,h=a/2+m,y=t.color||"#ef4444",g=t.icon||"pin";e.save(),g==="pin"?(e.fillStyle=y,e.beginPath(),e.arc(f,h-12,8,Math.PI,0,false),e.lineTo(f,h),e.closePath(),e.fill(),e.fillStyle="#ffffff",e.beginPath(),e.arc(f,h-12,3,0,Math.PI*2),e.fill()):g==="circle"?(e.fillStyle=y,e.beginPath(),e.arc(f,h,8,0,Math.PI*2),e.fill(),e.strokeStyle="#ffffff",e.lineWidth=2,e.stroke()):g==="star"&&(e.fillStyle=y,WU(e,f,h,5,10,5),e.fill()),t.label&&(e.fillStyle="#1f2937",e.font="bold 12px system-ui, sans-serif",e.textAlign="center",e.fillText(t.label,f,h+20)),e.restore();}function WU(e,t,n,r,i,a){let o=Math.PI/2*3,s=Math.PI/r;e.beginPath(),e.moveTo(t,n-i);for(let l=0;l<r;l++)e.lineTo(t+Math.cos(o)*i,n+Math.sin(o)*i),o+=s,e.lineTo(t+Math.cos(o)*a,n+Math.sin(o)*a),o+=s;e.lineTo(t,n-i),e.closePath();}function VU(e,t,n,r){e.save(),e.fillStyle="rgba(255, 255, 255, 0.8)";let i=4;e.font="10px system-ui, sans-serif";let a=e.measureText(t).width;e.fillRect(n-a-i*2-4,r-16,a+i*2,14),e.fillStyle="#374151",e.textAlign="right",e.fillText(t,n-i-4,r-5),e.restore();}function b_({layer:e,basePath:t,viewport:n,blockTime:r}){let{content:i,position:a,animation:o}=e,s=`map-clip-${Xt().replace(/:/g,"")}-${e.id}`,l=bt(i.staticSrc??"",t),[c,u]=ge(()=>i.staticSrc&&l||null),[d,m]=ge(!i.staticSrc),[f,h]=ge(null),[y,g]=ge(false),b=ke(a.x,n.width),x=ke(a.y,n.height),v=a.width?ke(a.width,n.width):n.width,T=a.height?ke(a.height,n.height):n.height,E=Wt(a.anchor,v,T),k=b+E.x,S=x+E.y,I=kr();he(()=>{let A=false;if(i.staticSrc){u(l||null),m(false);return}return m(true),h(null),g(false),y_({center:i.center,zoom:i.zoom,style:i.style,width:v,height:T,markers:i.markers,showAttribution:i.showAttribution!==false,policy:I}).then(R=>{A||(u(R),m(false));}).catch(R=>{if(!A){let F=R instanceof Zn;F||console.error("Failed to compose map:",R),h(R instanceof Error?R.message:String(R)),g(F),m(false);}}),()=>{A=true;}},[i.center,i.zoom,i.style,i.staticSrc,l,i.markers,i.showAttribution,v,T,t,I]);let _=ht(o,r);return d?w("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[w("rect",{x:k,y:S,width:v,height:T,fill:"#e5e7eb"}),w("text",{x:k+v/2,y:S+T/2,textAnchor:"middle",dominantBaseline:"middle",fill:"#9ca3af",fontSize:"24",fontFamily:"system-ui, sans-serif",children:"Loading map..."})]}):f||!c?w("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[w("rect",{x:k,y:S,width:v,height:T,fill:y?"#f3f4f6":"#fef2f2"}),w("text",{x:k+v/2,y:S+T/2,textAnchor:"middle",dominantBaseline:"middle",fill:y?"#6b7280":"#dc2626",fontSize:"18",fontFamily:"system-ui, sans-serif",children:y?"Map unavailable offline":"Map failed to load"})]}):w("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[w("defs",{children:w("clipPath",{id:s,children:w("rect",{x:k,y:S,width:v,height:T})})}),w("g",{clipPath:`url(#${s})`,children:w("image",{href:c,x:k,y:S,width:v,height:T,preserveAspectRatio:"xMidYMid slice",style:{pointerEvents:"none"}})})]})}var GU=.2;function w_({layer:e,basePath:t,viewport:n,blockTime:r,isPlaying:i,muted:a=false}){let{content:o,position:s}=e,l=ue(null),c=ue(false),u=o.startAt??0,d=r<u,m=ke(s.x,n.width),f=ke(s.y,n.height),h=s.width?ke(s.width,n.width):n.width,y=s.height?ke(s.height,n.height):n.height,g=Wt(s.anchor,h,y),b=m+g.x,x=f+g.y,v=bt(o.src,t),T=bt(o.posterSrc||"",t),E=o.posterSrc?T:void 0;return he(()=>{let k=l.current;if(!k)return;if(k.currentTime=o.clipStart,c.current=true,i){let I=k.play();I&&I.catch(()=>{});}let S=()=>{k.currentTime>=o.clipEnd&&(k.pause(),k.currentTime=o.clipEnd);};return k.addEventListener("timeupdate",S),()=>{k.removeEventListener("timeupdate",S),k.pause();}},[v,o.clipStart,o.clipEnd]),he(()=>{let k=l.current;if(!k||!c.current)return;let S=d?o.clipStart:Math.min(o.clipEnd,o.clipStart+Math.max(0,r-u));if(!fi(k)&&Math.abs(k.currentTime-S)>GU&&(k.currentTime=S),d){k.pause();return}if(S>=o.clipEnd){k.pause();return}if(i){let I=k.play();I&&I.catch(()=>{});}else fi(k)||k.pause();},[i,d,r,u,v,o.clipStart,o.clipEnd]),w("g",{className:"block-layer block-layer--video","data-layer-id":e.id,children:w("foreignObject",{x:b,y:x,width:h,height:y,children:w("video",{ref:l,src:v,poster:E,muted:a,playsInline:true,preload:"auto","data-clip-start":o.clipStart,"data-clip-end":o.clipEnd,"data-start-at":u,style:{width:`${h}px`,height:`${y}px`,objectFit:o.fit||"cover",objectPosition:"center",display:"block",pointerEvents:"none"}})})})}function YU(e,t){let n=Math.min(e.width,e.height*t),r=n/t;return {x:e.x+(e.width-n)/2,y:e.y+(e.height-r)/2,width:n,height:r}}function XU(e,t){return e.length>t?`${e.slice(0,t-1).trimEnd()}\u2026`:e}function KU({box:e,embed:t,title:n,showThumbnail:r}){let i=Math.min(e.width,e.height),a=i*.3,o=a*.7,s=e.x+e.width/2,l=e.y+e.height/2,c=o*.42,u=Math.max(10,i*.055),d=Math.max(4,i*.02);return w(Pe,{children:[w("rect",{x:e.x,y:e.y,width:e.width,height:e.height,rx:d,fill:"#111318"}),r&&t.thumbnailUrl?w("image",{href:t.thumbnailUrl,x:e.x,y:e.y,width:e.width,height:e.height,preserveAspectRatio:"xMidYMid slice",opacity:.85}):null,w("rect",{x:s-a/2,y:l-o/2,width:a,height:o,rx:o*.24,fill:"rgba(0, 0, 0, 0.55)",stroke:"rgba(255, 255, 255, 0.35)",strokeWidth:Math.max(1,i*.004)}),w("path",{d:`M ${s-c*.36} ${l-c/2} L ${s+c*.54} ${l} L ${s-c*.36} ${l+c/2} Z`,fill:"#ffffff"}),w("text",{x:e.x+u*.9,y:e.y+e.height-u*.9,fill:"#ffffff",fontSize:u,fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:600,style:{paintOrder:"stroke"},stroke:"rgba(0, 0, 0, 0.6)",strokeWidth:u*.12,children:XU(n?`${n} \xB7 ${t.providerName}`:t.providerName,70)})]})}function k_({layer:e,viewport:t,mode:n="poster"}){let r=hn(e.content.url);if(!r)return null;let{position:i}=e,a=i.width?ke(i.width,t.width):t.width,o=i.height?ke(i.height,t.height):t.height,s=Wt(i.anchor,a,o),l=YU({x:ke(i.x,t.width)+s.x,y:ke(i.y,t.height)+s.y,width:a,height:o},r.aspectRatio),c=e.content.title?.trim()??"";if(n!=="player")return w("g",{className:"block-layer block-layer--video-embed","data-layer-id":e.id,"data-provider":r.provider,role:"img","aria-label":c?`${c} (${r.providerName} video)`:`${r.providerName} video`,children:w(KU,{box:l,embed:r,title:c,showThumbnail:n==="poster"})});let u=xi(r,c);return w("g",{className:"block-layer block-layer--video-embed","data-layer-id":e.id,"data-provider":r.provider,children:w("foreignObject",{x:l.x,y:l.y,width:l.width,height:l.height,children:w("iframe",{"data-no-swipe":"",src:u.src,title:u.title,allow:u.allow,allowFullScreen:true,referrerPolicy:"strict-origin-when-cross-origin",loading:"lazy",style:{display:"block",width:`${l.width}px`,height:`${l.height}px`,border:0,background:"#000"}})})})}function x_({block:e,layer:t,viewport:n,blockTime:r,contentRenderer:i}){let{content:a,position:o,animation:s}=t,{align:l,style:c}=a,u=Array.isArray(a.headers)?a.headers:[],d=Array.isArray(a.rows)?a.rows:[],m=ke(o.x,n.width),f=ke(o.y,n.height),h=o.width?ke(o.width,n.width):n.width,y=o.height?ke(o.height,n.height):n.height,g=Wt(o.anchor,h,y),b=m+g.x,x=f+g.y,v=ht(s,r),T=A=>{let R=l?.[A];return R?{textAlign:R}:void 0},E=c.borderRadius??8,k=c.fontSize*.6,S=c.fontSize*.75,I=w("table",{style:{width:"max-content",minWidth:"100%",borderCollapse:"separate",borderSpacing:0,fontSize:`${c.fontSize}px`,fontFamily:c.fontFamily??"system-ui, sans-serif",lineHeight:1.2},children:[u.length>0&&w("thead",{children:w("tr",{children:u.map((A,R)=>w("th",{style:{background:c.headerBackground,color:c.headerColor,fontFamily:c.headerFontFamily??c.fontFamily??"system-ui, sans-serif",fontWeight:600,padding:`${k}px ${S}px`,position:"sticky",top:0,zIndex:1,whiteSpace:"nowrap",borderBottom:`2px solid ${c.borderColor}`,borderRight:R<u.length-1?`1px solid ${c.borderColor}`:void 0,...T(R)},children:A},R))})}),d.length>0&&w("tbody",{children:d.map((A,R)=>w("tr",{children:A.map((F,L)=>w("td",{style:{background:c.cellBackground,color:c.cellColor,padding:`${k}px ${S}px`,whiteSpace:"nowrap",borderBottom:R<d.length-1?`1px solid ${c.borderColor}`:void 0,borderRight:L<A.length-1?`1px solid ${c.borderColor}`:void 0,...T(L)},children:F},L))},R))})]}),_=e?i:void 0;return w("g",{className:`block-layer block-layer--table ${v.className}`,style:v.style,"data-layer-id":t.id,children:w("foreignObject",{x:b,y:x,width:h,height:y,children:w("div",{xmlns:"http://www.w3.org/1999/xhtml",className:"squisq-table-scroll",role:"region","aria-label":"Scrollable data table",tabIndex:0,onPointerDown:A=>A.stopPropagation(),onClick:A=>A.stopPropagation(),onWheel:A=>A.stopPropagation(),onKeyDown:A=>A.stopPropagation(),style:{width:`${h}px`,height:`${y}px`,boxSizing:"border-box",overflow:_?"hidden":"auto",overscrollBehavior:"contain",scrollbarGutter:"stable",border:_?void 0:`1px solid ${c.borderColor}`,borderRadius:`${E}px`,background:_?"transparent":c.cellBackground},children:_?w(_,{block:e,layer:t,width:h,height:y,fallback:I}):I})})})}function v_(e,t){let n=e&&e.trim()?e.trim():t,r=n.indexOf(":");return r>0?`fa-${n.slice(0,r).replace(/^fa-/,"")} fa-${n.slice(r+1)}`:`fa-solid fa-${n}`}function T_({layer:e,viewport:t,blockTime:n}){let{content:r,position:i,animation:a}=e,{items:o,style:s}=r,l=ke(i.x,t.width),c=ke(i.y,t.height),u=i.width?ke(i.width,t.width):t.width,d=i.height?ke(i.height,t.height):t.height,m=Wt(i.anchor,u,d),f=ht(a,n);return w("g",{className:`block-layer block-layer--tree ${f.className}`,style:f.style,"data-layer-id":e.id,children:w("foreignObject",{x:l+m.x,y:c+m.y,width:u,height:d,children:w("div",{xmlns:"http://www.w3.org/1999/xhtml",className:"squisq-treelayer",style:{width:`${u}px`,height:`${d}px`,display:"flex",flexDirection:"column",justifyContent:"center",padding:"24px 32px",boxSizing:"border-box",fontFamily:s.fontFamily??"system-ui, sans-serif",fontSize:`${s.fontSize}px`,lineHeight:1.7,overflow:"hidden"},children:w(S_,{items:o,depth:0,style:s})})})})}function S_({items:e,depth:t,style:n}){return w("ul",{style:{listStyle:"none",margin:0,padding:0,paddingLeft:t===0?0:`${n.indentPx}px`,borderLeft:t===0?"none":`1px solid ${n.connectorColor}`},children:e.map(r=>w(QU,{item:r,style:n},r.id))})}function QU({item:e,style:t}){let n=e.children.length>0,[r,i]=ge(false),a=e.isDir||n,o=a?v_(t.folderIcon,r?"folder":"folder-open"):v_(t.fileIcon,"file");return w("li",{style:{position:"relative"},children:[w("div",{style:{display:"flex",alignItems:"baseline",gap:"8px",padding:"1px 0"},children:[n?w("button",{type:"button","aria-label":r?"Expand":"Collapse",onClick:()=>i(s=>!s),style:{flex:"0 0 auto",width:"1em",border:"none",background:"transparent",cursor:"pointer",color:t.connectorColor,padding:0,fontSize:"0.8em"},children:w("i",{className:`fa-solid ${r?"fa-chevron-right":"fa-chevron-down"}`,"aria-hidden":"true"})}):w("span",{style:{flex:"0 0 auto",width:"1em"}}),w("i",{className:o,"aria-hidden":"true",style:{flex:"0 0 auto",color:t.iconColor,width:"1.2em",textAlign:"center"}}),w("span",{style:{color:a?t.dirColor:t.rowColor,fontWeight:a?600:400},children:e.label}),e.comment?w("span",{style:{color:t.commentColor,fontSize:"0.85em",fontStyle:"italic"},children:e.comment}):null]}),n&&!r?w(S_,{items:e.children,depth:1,style:t}):null]})}var fd=null,ej={startOnLoad:false,securityLevel:"strict",suppressErrorRendering:true,deterministicIds:false,logLevel:"error"};async function tj(){return fd||(fd=Promise.resolve().then(()=>(__(),E_)).then(({default:e})=>e).catch(e=>{throw fd=null,e})),fd}function nj(e){let t=globalThis,r=(t.__squisqMermaidWorkQueue??Promise.resolve()).then(e,e);return t.__squisqMermaidWorkQueue=r.then(()=>{},()=>{}),r}function pd(e,t,n,r=tt){return nj(async()=>{let i=await tj();i.initialize({...ej,theme:"base",themeVariables:Cm(r)});let{svg:a,diagramType:o}=await i.render(e,t,n);return {svg:a,diagramType:o}})}function A_(e){return (e instanceof Error?e.message:String(e)).split(/\r?\n/).map(n=>n.trimEnd()).filter(Boolean).slice(0,6).join(`
|
|
754
|
+
`);kn(()=>{if(!D){B(null);return}let me=$.current;if(!me||typeof me.getBBox!="function")return;let Y=()=>{try{let ye=me.getBBox();if(ye.width<=0||ye.height<=0)return;let fe=m??t.width,ce=f??t.height,K=Math.min(1,fe/ye.width,ce/ye.height);B(K<.995?{scale:K,cx:ye.x+ye.width/2,cy:ye.y+ye.height/2}:null);}catch{}};Y();let se=me.ownerDocument?.fonts;if(se&&se.status!=="loaded"){let ye=false;return se.ready.then(()=>{ye||Y();}),()=>{ye=true;}}},[D,C,m,f,t.width,t.height,c.fontSize,c.fontFamily,c.fontWeight]);let U=H?`translate(${H.cx} ${H.cy}) scale(${H.scale}) translate(${-H.cx} ${-H.cy})`:void 0,V={fontSize:`${c.fontSize}px`,fontFamily:c.fontFamily||So,fontWeight:c.fontWeight||"normal",fontStyle:c.fontStyle||"normal",fill:c.color,...k.style},M=c.shadow?`shadow-${i}`:void 0,J=0,we=me=>!I||!s||!me?me||"\xA0":me.split(" ").map((se,ye)=>{let fe=Bg(s,J++);return w(Pe,{children:[ye>0?" ":null,w("tspan",{className:"anim-word",style:{"--anim-delay":`${fe}s`},children:se})]},ye)});return w("g",{className:`block-layer block-layer--text ${k.className}`,style:k.style,"data-layer-id":e.id,children:[c.shadow&&w("defs",{children:w("filter",{id:M,x:"-20%",y:"-20%",width:"140%",height:"140%",children:w("feDropShadow",{dx:"0",dy:"2",stdDeviation:"3",floodColor:"rgba(0,0,0,0.7)"})})}),w(qU,{layerId:i,style:c,box:m!=null&&f!=null?{x:u-ni(b,m,"x"),y:d-ni(b,f,"y"),width:m,height:f}:{x:x-(c.padding||16),y:v-c.fontSize-(c.padding||16),width:OU(R,c)+(c.padding||16)*2,height:R.length*L+(c.padding||16)*2}}),w("g",{"data-squisq-text-fit":"svg","data-squisq-fit-width":T,"data-squisq-fit-height":E,style:{transform:`scale(${r})`,transformOrigin:`${x}px ${v}px`,transformBox:"view-box"},children:w("text",{ref:$,"data-squisq-text-content":"true",x,y:v,textAnchor:y,dominantBaseline:g,style:V,filter:M?`url(#${M})`:void 0,transform:U,children:R.map((me,Y)=>w("tspan",{x,dy:Y===0?z:L,children:[we(me)," "]},Y))})})]})}function MU({layer:e,viewport:t,blockTime:n,textScale:r=1}){let{content:i,position:a,animation:o}=e,{html:s,style:l}=i,c=ke(a.x,t.width),u=ke(a.y,t.height),d=a.width!=null?ke(a.width,t.width):t.width,m=a.height!=null?ke(a.height,t.height):l.fontSize*(l.lineHeight||1.4)*2,f=a.anchor??"top-left",h=c-ni(f,d,"x"),y=u-ni(f,m,"y"),g=de(()=>ki(_a(wi(s??""))),[s]),b=ht(o,n),x=l.verticalAlign==="middle"?"center":l.verticalAlign==="bottom"?"flex-end":"flex-start",v=!!(l.borderColor&&(l.borderWidth??0)>0),T={boxSizing:"border-box",width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:x,padding:l.padding??0,color:l.color,fontSize:`${l.fontSize*r}px`,fontFamily:l.fontFamily||So,fontWeight:l.fontWeight||"normal",fontStyle:l.fontStyle||"normal",lineHeight:l.lineHeight||1.4,textAlign:l.textAlign??"left",overflow:"hidden",...l.background?{background:l.background}:{},...v?{border:`${l.borderWidth}px ${l.borderStyle??"solid"} ${l.borderColor}`,borderRadius:4}:{},...l.shadow?{textShadow:"0 2px 3px rgba(0,0,0,0.7)"}:{},...b.style},E=`squisq-rich-text-${LU(e.id)}`,k=l.textAlign==="center"||l.textAlign==="right"?"inside":"outside",S=_=>{_.target?.closest?.("[data-squisq-table-scroll]")&&_.stopPropagation();},I=`.${E}{margin:0}.${E} p{margin:0 0 .4em}.${E} h1,.${E} h2,.${E} h3,.${E} h4,.${E} h5,.${E} h6{margin:0 0 .3em;line-height:1.2}.${E} ul,.${E} ol{margin:0 0 .7em;padding-left:1.2em;list-style-position:${k}}.${E} li{margin:0}.${E} li>p{display:inline;margin:0}.${E} [data-squisq-table-scroll]{width:100%;max-height:20em;margin:.35em 0;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}.${E} table{width:100%;min-width:48em;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:.76em;line-height:1.2}.${E} th,.${E} td{box-sizing:border-box;padding:.28em .45em;border:1px solid rgba(127,127,127,.55);border-color:color-mix(in srgb,currentColor 32%,transparent);vertical-align:top;white-space:normal;overflow-wrap:anywhere}.${E} th{position:sticky;top:0;z-index:1;background:rgba(127,127,127,.16);background:color-mix(in srgb,currentColor 12%,transparent);font-weight:600}.${E} tbody tr:nth-child(even){background:rgba(127,127,127,.07);background:color-mix(in srgb,currentColor 5%,transparent)}.${E} *:first-child{margin-top:0}.${E} *:last-child{margin-bottom:0}.${E} a{color:inherit;text-decoration:underline}`;return w("g",{className:`block-layer block-layer--text ${b.className}`,style:b.style,"data-layer-id":e.id,children:w("foreignObject",{x:h,y,width:d,height:m,color:l.color,style:{color:l.color},children:w("div",{xmlns:"http://www.w3.org/1999/xhtml","data-squisq-text-fit":"html","data-squisq-base-font-size":l.fontSize,style:T,onPointerDown:S,onClick:S,onWheel:S,onKeyDown:S,children:[w("style",{children:I}),w("div",{"data-squisq-text-content":"true",className:E,style:{width:"100%",color:l.color,whiteSpace:"pre-wrap",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:g}})]})})})}function LU(e){return e.replace(/[^a-zA-Z0-9_-]/g,"-")}function qU({layerId:e,style:t,box:n}){let r=!!(t.background||t.backgroundGradient),i=!!(t.borderColor&&(t.borderWidth??0)>0);if(!r&&!i)return null;let{fill:a,def:o}=oo(e,t.background,t.backgroundGradient),s=ao(t.borderStyle,t.borderWidth);return w(Pe,{children:[o&&w("defs",{children:o}),w("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:r?a:"none",fillOpacity:r?t.backgroundOpacity:void 0,stroke:i?t.borderColor:void 0,strokeWidth:i?t.borderWidth:void 0,strokeDasharray:i?s:void 0,rx:4,ry:4})]})}function PU(e,t){return e==="center"?"middle":e==="right"?"end":e==="left"?"start":t?.includes("right")?"end":t==="center"?"middle":"start"}function RU(e,t){return e==="top"?"text-before-edge":e==="middle"?"middle":e==="bottom"||t?.includes("bottom")?"text-after-edge":t==="center"?"middle":"text-before-edge"}function NU(e,t,n,r){if(t==null)return e;let i=e-ni(n,t,"x");return r==="middle"?i+t/2:r==="end"?i+t:i}function DU(e,t,n,r){if(t==null)return e;let i=e-ni(n,t,"y");return r==="middle"?i+t/2:r==="text-after-edge"?i+t:i}function ni(e,t,n){return e==="center"?t/2:n==="x"?e.includes("right")?t:0:e.includes("bottom")?t:0}function OU(e,t){return Math.max(...e.map(r=>r.length))*t.fontSize*.55}function d_(e,t,n){if(!e.trim())return [""];let r=t*.5,i=Math.floor(n/r);if(i<=0)return [e];let a=e.split(/\s+/),o=[],s="";for(let l of a){let c=s?`${s} ${l}`:l;if(c.length<=i)s=c;else if(s&&o.push(s),l.length>i){let u=l;for(;u.length>i;)o.push(u.slice(0,i)),u=u.slice(i);s=u;}else s=l;}return s&&o.push(s),o.length>0?o:[""]}var FU=1;function m_({layer:e,viewport:t,blockTime:n}){let{content:r,position:i,animation:a}=e,o=io(Xt(),e.id),s=ke(i.x,t.width),l=ke(i.y,t.height),c=i.width?ke(i.width,t.width):100,u=i.height?ke(i.height,t.height):100,d=Wt(i.anchor,c,u),m=s+d.x,f=l+d.y,y=r.shape==="rect"&&m===0&&f===0&&c===t.width&&u===t.height&&!r.stroke&&!r.borderRadius?FU:0,g=m-y,b=f-y,x=c+y*2,v=u+y*2,T=ht(a,n),E=r.fill||"none",k=typeof E=="string"&&E.includes("gradient(");if(r.shape==="rect"&&k&&!r.gradient)return w("g",{className:`block-layer block-layer--shape ${T.className}`,style:T.style,"data-layer-id":e.id,pointerEvents:"none",children:w("foreignObject",{x:g,y:b,width:x,height:v,children:w("div",{style:{width:`${x}px`,height:`${v}px`,background:E,borderRadius:r.borderRadius?`${r.borderRadius}px`:void 0,pointerEvents:"none"}})})});let{fill:S,def:I}=oo(o,E,r.gradient,r.pattern),{filterAttr:_,def:A}=c_(o,r.filter),R=ao(r.borderStyle,r.strokeWidth),F={fill:S,fillOpacity:r.fillOpacity,stroke:r.stroke,strokeWidth:r.strokeWidth,strokeDasharray:R,..._?{filter:_}:{}};return w("g",{className:`block-layer block-layer--shape ${T.className}`,style:T.style,"data-layer-id":e.id,pointerEvents:"none",children:[(I||A)&&w("defs",{children:[I,A]}),r.shape==="rect"&&w("rect",{x:g,y:b,width:x,height:v,rx:r.borderRadius,ry:r.borderRadius,...F}),r.shape==="circle"&&w("circle",{cx:m+c/2,cy:f+u/2,r:Math.min(c,u)/2,...F}),r.shape==="line"&&w("line",{x1:m,y1:f,x2:m+c,y2:f+u,stroke:r.stroke||"#ffffff",strokeWidth:r.strokeWidth||2,strokeDasharray:R})]})}function BU(e,t){let{content:n,position:r}=e;if(!n.shapeKind)return n.d;let i=r.width?ke(r.width,t.width):0,a=r.height?ke(r.height,t.height):0,o=ke(r.x,t.width),s=ke(r.y,t.height),l=Wt(r.anchor,i,a);return Wi(n.shapeKind,o+l.x,s+l.y,i,a)??n.d}function $U(e){return e.arrow}function f_(e,t,n){return e||(t==="both"||t===n?"arrow":"none")}function h_({layer:e,viewport:t,blockTime:n}){let{content:r,animation:i,id:a}=e,o=io(Xt(),a),s=BU(e,t),l=r.stroke??"#1e293b",c=r.strokeWidth??2,{fill:u,def:d}=oo(o,r.fill??"none",r.gradient),m=r.borderStyle?ao(r.borderStyle,c):r.dasharray,f=ht(i,n),h=`marker-start-${o}`,y=`marker-end-${o}`,g=$U(r),b=Ts(f_(r.startMarker,g,"start"),"start"),x=Ts(f_(r.endMarker,g,"end"),"end"),v=b?`url(#${h})`:void 0,T=x?`url(#${y})`:void 0,E=i?.type==="drawOn";return w("g",{className:`block-layer block-layer--path ${f.className}`,style:f.style,"data-layer-id":a,children:[w("defs",{children:[d,x&&w(p_,{id:y,dir:"end",d:x.d,filled:x.filled,stroke:l}),b&&w(p_,{id:h,dir:"start",d:b.d,filled:b.filled,stroke:l})]}),w("path",{d:s,stroke:l,strokeWidth:c,fill:u,fillOpacity:r.fillOpacity,strokeDasharray:E?void 0:m,pathLength:E?1:void 0,"data-squisq-draw":E?"stroke":void 0,markerStart:E?void 0:v,markerEnd:E?void 0:T}),E&&(v||T)&&w("path",{d:s,stroke:l,strokeWidth:c,strokeOpacity:0,fill:"none","data-squisq-draw":"markers",markerStart:v,markerEnd:T})]})}function p_({id:e,dir:t,d:n,filled:r,stroke:i}){return w("marker",{id:e,viewBox:"0 0 10 10",refX:t==="end"?9:1,refY:5,markerWidth:4,markerHeight:4,orient:"auto-start-reverse",markerUnits:"strokeWidth",children:w("path",{d:n,fill:r?i:"none",stroke:r?"none":i,strokeWidth:r?void 0:1.5})})}var HU={terrain:{url:"https://tile.opentopomap.org/{z}/{x}/{y}.png",attribution:"Map: OpenTopoMap (CC-BY-SA)",maxZoom:17},road:{url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"\xA9 OpenStreetMap contributors",maxZoom:19},satellite:{url:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",attribution:"Imagery: Esri, Maxar, Earthstar",maxZoom:18},toner:{url:"https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png",attribution:"Map: Stadia Maps, Stamen Design",maxZoom:20},watercolor:{url:"https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg",attribution:"Map: Stadia Maps, Stamen Design",maxZoom:16}};function Zg(e,t,n){let r=Math.pow(2,n),i=Math.floor((t+180)/360*r),a=e*Math.PI/180,o=Math.floor((1-Math.log(Math.tan(a)+1/Math.cos(a))/Math.PI)/2*r);return {x:i,y:o}}function Jg(e,t,n,r=256){let i=Math.pow(2,n),a=(t+180)/360*i,o=e*Math.PI/180,s=(1-Math.log(Math.tan(o)+1/Math.cos(o))/Math.PI)/2*i;return {x:(a-Math.floor(a))*r,y:(s-Math.floor(s))*r}}function zU(e,t,n,r,i,a=256){let o=Zg(e,t,n),s=Jg(e,t,n,a),l=Math.ceil(r/a)+1,c=Math.ceil(i/a)+1,u=o.x-Math.floor(l/2),d=o.y-Math.floor(c/2),m=r/2-s.x,f=i/2-s.y,h=[];for(let y=0;y<c;y++)for(let g=0;g<l;g++){let b=u+g,x=d+y,v=m+(b-o.x)*a,T=f+(x-o.y)*a;h.push({x:b,y:x,screenX:v,screenY:T});}return h}function g_(e,t,n,r){return e.url.replace("{z}",String(r)).replace("{x}",String(t)).replace("{y}",String(n))}async function UU(e){return new Promise((t,n)=>{let r=new Image;r.crossOrigin="anonymous",r.onload=()=>t(r),r.onerror=()=>n(new Error(`Failed to load tile: ${e}`)),r.src=e;})}async function y_(e){let{center:t,zoom:n,style:r,width:i,height:a,markers:o=[],showAttribution:s=true}=e,l=HU[r],c=l.tileSize||256,u=Math.min(n,l.maxZoom),d=g_(l,0,0,u);if(!ln(d,e.policy))throw new Zn("RESOURCE_BLOCKED",`Map tiles for style "${r}" are blocked by the resource policy (${l.url}). Composing a map contacts the tile host; supply the map as \`staticSrc\` to render it without any remote request.`);let m=document.createElement("canvas");m.width=i,m.height=a;let f=m.getContext("2d");if(!f)throw new Error("Failed to get canvas context");f.fillStyle=r==="toner"?"#ffffff":"#e5e7eb",f.fillRect(0,0,i,a);let y=zU(t.lat,t.lng,u,i,a,c).map(async g=>{let b=g_(l,g.x,g.y,u);try{let x=await UU(b);f.drawImage(x,g.screenX,g.screenY,c,c);}catch(x){console.warn(`Tile load failed: ${b}`,x);}});await Promise.all(y);for(let g of o)jU(f,g,t,u,i,a,c);return s&&VU(f,l.attribution,i,a),m.toDataURL("image/png")}function jU(e,t,n,r,i,a,o){let s=Zg(n.lat,n.lng,r),l=Zg(t.lat,t.lng,r),c=Jg(n.lat,n.lng,r,o),u=Jg(t.lat,t.lng,r,o),d=(l.x-s.x)*o+(u.x-c.x),m=(l.y-s.y)*o+(u.y-c.y),f=i/2+d,h=a/2+m,y=t.color||"#ef4444",g=t.icon||"pin";e.save(),g==="pin"?(e.fillStyle=y,e.beginPath(),e.arc(f,h-12,8,Math.PI,0,false),e.lineTo(f,h),e.closePath(),e.fill(),e.fillStyle="#ffffff",e.beginPath(),e.arc(f,h-12,3,0,Math.PI*2),e.fill()):g==="circle"?(e.fillStyle=y,e.beginPath(),e.arc(f,h,8,0,Math.PI*2),e.fill(),e.strokeStyle="#ffffff",e.lineWidth=2,e.stroke()):g==="star"&&(e.fillStyle=y,WU(e,f,h,5,10,5),e.fill()),t.label&&(e.fillStyle="#1f2937",e.font="bold 12px system-ui, sans-serif",e.textAlign="center",e.fillText(t.label,f,h+20)),e.restore();}function WU(e,t,n,r,i,a){let o=Math.PI/2*3,s=Math.PI/r;e.beginPath(),e.moveTo(t,n-i);for(let l=0;l<r;l++)e.lineTo(t+Math.cos(o)*i,n+Math.sin(o)*i),o+=s,e.lineTo(t+Math.cos(o)*a,n+Math.sin(o)*a),o+=s;e.lineTo(t,n-i),e.closePath();}function VU(e,t,n,r){e.save(),e.fillStyle="rgba(255, 255, 255, 0.8)";let i=4;e.font="10px system-ui, sans-serif";let a=e.measureText(t).width;e.fillRect(n-a-i*2-4,r-16,a+i*2,14),e.fillStyle="#374151",e.textAlign="right",e.fillText(t,n-i-4,r-5),e.restore();}function b_({layer:e,basePath:t,viewport:n,blockTime:r}){let{content:i,position:a,animation:o}=e,s=`map-clip-${Xt().replace(/:/g,"")}-${e.id}`,l=bt(i.staticSrc??"",t),[c,u]=ge(()=>i.staticSrc&&l||null),[d,m]=ge(!i.staticSrc),[f,h]=ge(null),[y,g]=ge(false),b=ke(a.x,n.width),x=ke(a.y,n.height),v=a.width?ke(a.width,n.width):n.width,T=a.height?ke(a.height,n.height):n.height,E=Wt(a.anchor,v,T),k=b+E.x,S=x+E.y,I=kr();he(()=>{let A=false;if(i.staticSrc){u(l||null),m(false);return}return m(true),h(null),g(false),y_({center:i.center,zoom:i.zoom,style:i.style,width:v,height:T,markers:i.markers,showAttribution:i.showAttribution!==false,policy:I}).then(R=>{A||(u(R),m(false));}).catch(R=>{if(!A){let F=R instanceof Zn;F||console.error("Failed to compose map:",R),h(R instanceof Error?R.message:String(R)),g(F),m(false);}}),()=>{A=true;}},[i.center,i.zoom,i.style,i.staticSrc,l,i.markers,i.showAttribution,v,T,t,I]);let _=ht(o,r);return d?w("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[w("rect",{x:k,y:S,width:v,height:T,fill:"#e5e7eb"}),w("text",{x:k+v/2,y:S+T/2,textAnchor:"middle",dominantBaseline:"middle",fill:"#9ca3af",fontSize:"24",fontFamily:"system-ui, sans-serif",children:"Loading map..."})]}):f||!c?w("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[w("rect",{x:k,y:S,width:v,height:T,fill:y?"#f3f4f6":"#fef2f2"}),w("text",{x:k+v/2,y:S+T/2,textAnchor:"middle",dominantBaseline:"middle",fill:y?"#6b7280":"#dc2626",fontSize:"18",fontFamily:"system-ui, sans-serif",children:y?"Map unavailable offline":"Map failed to load"})]}):w("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[w("defs",{children:w("clipPath",{id:s,children:w("rect",{x:k,y:S,width:v,height:T})})}),w("g",{clipPath:`url(#${s})`,children:w("image",{href:c,x:k,y:S,width:v,height:T,preserveAspectRatio:"xMidYMid slice",style:{pointerEvents:"none"}})})]})}var GU=.2;function w_({layer:e,basePath:t,viewport:n,blockTime:r,isPlaying:i,muted:a=false}){let{content:o,position:s}=e,l=ue(null),c=ue(false),u=o.startAt??0,d=r<u,m=ke(s.x,n.width),f=ke(s.y,n.height),h=s.width?ke(s.width,n.width):n.width,y=s.height?ke(s.height,n.height):n.height,g=Wt(s.anchor,h,y),b=m+g.x,x=f+g.y,v=bt(o.src,t),T=bt(o.posterSrc||"",t),E=o.posterSrc?T:void 0;return he(()=>{let k=l.current;if(!k)return;if(k.currentTime=o.clipStart,c.current=true,i){let I=k.play();I&&I.catch(()=>{});}let S=()=>{k.currentTime>=o.clipEnd&&(k.pause(),k.currentTime=o.clipEnd);};return k.addEventListener("timeupdate",S),()=>{k.removeEventListener("timeupdate",S),k.pause();}},[v,o.clipStart,o.clipEnd]),he(()=>{let k=l.current;if(!k||!c.current)return;let S=d?o.clipStart:Math.min(o.clipEnd,o.clipStart+Math.max(0,r-u));if(!fi(k)&&Math.abs(k.currentTime-S)>GU&&(k.currentTime=S),d){k.pause();return}if(S>=o.clipEnd){k.pause();return}if(i){let I=k.play();I&&I.catch(()=>{});}else fi(k)||k.pause();},[i,d,r,u,v,o.clipStart,o.clipEnd]),w("g",{className:"block-layer block-layer--video","data-layer-id":e.id,children:w("foreignObject",{x:b,y:x,width:h,height:y,children:w("video",{ref:l,src:v,poster:E,muted:a,playsInline:true,preload:"auto","data-clip-start":o.clipStart,"data-clip-end":o.clipEnd,"data-start-at":u,style:{width:`${h}px`,height:`${y}px`,objectFit:o.fit||"cover",objectPosition:"center",display:"block",pointerEvents:"none"}})})})}function YU(e,t){let n=Math.min(e.width,e.height*t),r=n/t;return {x:e.x+(e.width-n)/2,y:e.y+(e.height-r)/2,width:n,height:r}}function XU(e,t){return e.length>t?`${e.slice(0,t-1).trimEnd()}\u2026`:e}function KU({box:e,embed:t,title:n,showThumbnail:r}){let i=Math.min(e.width,e.height),a=i*.3,o=a*.7,s=e.x+e.width/2,l=e.y+e.height/2,c=o*.42,u=Math.max(10,i*.055),d=Math.max(4,i*.02);return w(Pe,{children:[w("rect",{x:e.x,y:e.y,width:e.width,height:e.height,rx:d,fill:"#111318"}),r&&t.thumbnailUrl?w("image",{href:t.thumbnailUrl,x:e.x,y:e.y,width:e.width,height:e.height,preserveAspectRatio:"xMidYMid slice",opacity:.85}):null,w("rect",{x:s-a/2,y:l-o/2,width:a,height:o,rx:o*.24,fill:"rgba(0, 0, 0, 0.55)",stroke:"rgba(255, 255, 255, 0.35)",strokeWidth:Math.max(1,i*.004)}),w("path",{d:`M ${s-c*.36} ${l-c/2} L ${s+c*.54} ${l} L ${s-c*.36} ${l+c/2} Z`,fill:"#ffffff"}),w("text",{x:e.x+u*.9,y:e.y+e.height-u*.9,fill:"#ffffff",fontSize:u,fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:600,style:{paintOrder:"stroke"},stroke:"rgba(0, 0, 0, 0.6)",strokeWidth:u*.12,children:XU(n?`${n} \xB7 ${t.providerName}`:t.providerName,70)})]})}function k_({layer:e,viewport:t,mode:n="poster"}){let r=hn(e.content.url);if(!r)return null;let{position:i}=e,a=i.width?ke(i.width,t.width):t.width,o=i.height?ke(i.height,t.height):t.height,s=Wt(i.anchor,a,o),l=YU({x:ke(i.x,t.width)+s.x,y:ke(i.y,t.height)+s.y,width:a,height:o},r.aspectRatio),c=e.content.title?.trim()??"";if(n!=="player")return w("g",{className:"block-layer block-layer--video-embed","data-layer-id":e.id,"data-provider":r.provider,role:"img","aria-label":c?`${c} (${r.providerName} video)`:`${r.providerName} video`,children:w(KU,{box:l,embed:r,title:c,showThumbnail:n==="poster"})});let u=xi(r,c);return w("g",{className:"block-layer block-layer--video-embed","data-layer-id":e.id,"data-provider":r.provider,children:w("foreignObject",{x:l.x,y:l.y,width:l.width,height:l.height,children:w("iframe",{"data-no-swipe":"",src:u.src,title:u.title,allow:u.allow,allowFullScreen:true,referrerPolicy:"strict-origin-when-cross-origin",loading:"lazy",style:{display:"block",width:`${l.width}px`,height:`${l.height}px`,border:0,background:"#000"}})})})}function x_({block:e,layer:t,viewport:n,blockTime:r,contentRenderer:i}){let{content:a,position:o,animation:s}=t,{align:l,style:c}=a,u=Array.isArray(a.headers)?a.headers:[],d=Array.isArray(a.rows)?a.rows:[],m=ke(o.x,n.width),f=ke(o.y,n.height),h=o.width?ke(o.width,n.width):n.width,y=o.height?ke(o.height,n.height):n.height,g=Wt(o.anchor,h,y),b=m+g.x,x=f+g.y,v=ht(s,r),T=A=>{let R=l?.[A];return R?{textAlign:R}:void 0},E=c.borderRadius??8,k=c.fontSize*.6,S=c.fontSize*.75,I=w("table",{style:{width:"max-content",minWidth:"100%",borderCollapse:"separate",borderSpacing:0,fontSize:`${c.fontSize}px`,fontFamily:c.fontFamily??"system-ui, sans-serif",lineHeight:1.2},children:[u.length>0&&w("thead",{children:w("tr",{children:u.map((A,R)=>w("th",{style:{background:c.headerBackground,color:c.headerColor,fontFamily:c.headerFontFamily??c.fontFamily??"system-ui, sans-serif",fontWeight:600,padding:`${k}px ${S}px`,position:"sticky",top:0,zIndex:1,whiteSpace:"nowrap",borderBottom:`2px solid ${c.borderColor}`,borderRight:R<u.length-1?`1px solid ${c.borderColor}`:void 0,...T(R)},children:A},R))})}),d.length>0&&w("tbody",{children:d.map((A,R)=>w("tr",{children:A.map((F,L)=>w("td",{style:{background:c.cellBackground,color:c.cellColor,padding:`${k}px ${S}px`,whiteSpace:"nowrap",borderBottom:R<d.length-1?`1px solid ${c.borderColor}`:void 0,borderRight:L<A.length-1?`1px solid ${c.borderColor}`:void 0,...T(L)},children:F},L))},R))})]}),_=e?i:void 0;return w("g",{className:`block-layer block-layer--table ${v.className}`,style:v.style,"data-layer-id":t.id,children:w("foreignObject",{x:b,y:x,width:h,height:y,children:w("div",{xmlns:"http://www.w3.org/1999/xhtml",className:"squisq-table-scroll",role:"region","aria-label":"Scrollable data table",tabIndex:0,onPointerDown:A=>A.stopPropagation(),onClick:A=>A.stopPropagation(),onWheel:A=>A.stopPropagation(),onKeyDown:A=>A.stopPropagation(),style:{width:`${h}px`,height:`${y}px`,boxSizing:"border-box",overflow:_?"hidden":"auto",overscrollBehavior:"contain",scrollbarGutter:"stable",border:_?void 0:`1px solid ${c.borderColor}`,borderRadius:`${E}px`,background:_?"transparent":c.cellBackground},children:_?w(_,{block:e,layer:t,width:h,height:y,fallback:I}):I})})})}function v_(e,t){let n=e&&e.trim()?e.trim():t,r=n.indexOf(":");return r>0?`fa-${n.slice(0,r).replace(/^fa-/,"")} fa-${n.slice(r+1)}`:`fa-solid fa-${n}`}function T_({layer:e,viewport:t,blockTime:n}){let{content:r,position:i,animation:a}=e,{items:o,style:s}=r,l=ke(i.x,t.width),c=ke(i.y,t.height),u=i.width?ke(i.width,t.width):t.width,d=i.height?ke(i.height,t.height):t.height,m=Wt(i.anchor,u,d),f=ht(a,n);return w("g",{className:`block-layer block-layer--tree ${f.className}`,style:f.style,"data-layer-id":e.id,children:w("foreignObject",{x:l+m.x,y:c+m.y,width:u,height:d,children:w("div",{xmlns:"http://www.w3.org/1999/xhtml",className:"squisq-treelayer",style:{width:`${u}px`,height:`${d}px`,display:"flex",flexDirection:"column",justifyContent:"center",padding:"24px 32px",boxSizing:"border-box",fontFamily:s.fontFamily??"system-ui, sans-serif",fontSize:`${s.fontSize}px`,lineHeight:1.7,overflow:"hidden"},children:w(S_,{items:o,depth:0,style:s})})})})}function S_({items:e,depth:t,style:n}){return w("ul",{style:{listStyle:"none",margin:0,padding:0,paddingLeft:t===0?0:`${n.indentPx}px`,borderLeft:t===0?"none":`1px solid ${n.connectorColor}`},children:e.map(r=>w(QU,{item:r,style:n},r.id))})}function QU({item:e,style:t}){let n=e.children.length>0,[r,i]=ge(false),a=e.isDir||n,o=a?v_(t.folderIcon,r?"folder":"folder-open"):v_(t.fileIcon,"file");return w("li",{style:{position:"relative"},children:[w("div",{style:{display:"flex",alignItems:"baseline",gap:"8px",padding:"1px 0"},children:[n?w("button",{type:"button","aria-label":r?"Expand":"Collapse",onClick:()=>i(s=>!s),style:{flex:"0 0 auto",width:"1em",border:"none",background:"transparent",cursor:"pointer",color:t.connectorColor,padding:0,fontSize:"0.8em"},children:w("i",{className:`fa-solid ${r?"fa-chevron-right":"fa-chevron-down"}`,"aria-hidden":"true"})}):w("span",{style:{flex:"0 0 auto",width:"1em"}}),w("i",{className:o,"aria-hidden":"true",style:{flex:"0 0 auto",color:t.iconColor,width:"1.2em",textAlign:"center"}}),w("span",{style:{color:a?t.dirColor:t.rowColor,fontWeight:a?600:400},children:e.label}),e.comment?w("span",{style:{color:t.commentColor,fontSize:"0.85em",fontStyle:"italic"},children:e.comment}):null]}),n&&!r?w(S_,{items:e.children,depth:1,style:t}):null]})}var fd=null,ej={startOnLoad:false,securityLevel:"strict",suppressErrorRendering:true,deterministicIds:false,logLevel:"error"};async function tj(){return fd||(fd=Promise.resolve().then(()=>(__(),E_)).then(({default:e})=>e).catch(e=>{throw fd=null,e})),fd}function nj(e){let t=globalThis,r=(t.__squisqMermaidWorkQueue??Promise.resolve()).then(e,e);return t.__squisqMermaidWorkQueue=r.then(()=>{},()=>{}),r}function pd(e,t,n,r=tt){return nj(async()=>{let i=await tj();i.initialize({...ej,theme:"base",themeVariables:Cm(r)});let{svg:a,diagramType:o}=await i.render(e,t,n);return {svg:a,diagramType:o}})}function A_(e){return (e instanceof Error?e.message:String(e)).split(/\r?\n/).map(n=>n.trimEnd()).filter(Boolean).slice(0,6).join(`
|
|
755
755
|
`)||"Unknown Mermaid rendering error."}var rj=0;function hd({source:e,className:t,ariaLabel:n="Mermaid diagram",theme:r=tt}){let[i,a]=ge(""),[o,s]=ge(""),[l,c]=ge(true);he(()=>{let d=true,m=`squisq-rich-mermaid-${++rj}`;return c(true),s(""),pd(m,e,void 0,r).then(f=>{d&&a(f.svg);}).catch(f=>{d&&(a(""),s(A_(f)));}).finally(()=>{d&&c(false);}),()=>{d=false;}},[e,r]);let u=["squisq-mermaid-rendered",t].filter(Boolean).join(" ");return w("div",{className:u,role:"img","aria-label":n,style:{background:r.colors.backgroundLight,color:r.colors.text},children:[l&&w("div",{className:"squisq-mermaid-render-status",children:"Rendering diagram\u2026"}),!l&&o&&w("div",{className:"squisq-mermaid-render-error",role:"alert",children:[w("strong",{children:"Mermaid could not render this diagram."}),w("pre",{children:o})]}),!l&&!o&&i&&w("div",{className:"squisq-mermaid-render-svg",dangerouslySetInnerHTML:{__html:i}})]})}function C_({layer:e,viewport:t,blockTime:n,theme:r}){let{position:i,content:a,animation:o}=e,s=ke(i.width??t.width,t.width),l=ke(i.height??t.height,t.height),c=ke(i.x,t.width),u=ke(i.y,t.height),d=i.anchor??"top-left";d==="center"?(c-=s/2,u-=l/2):(d.endsWith("right")&&(c-=s),d.startsWith("bottom")&&(u-=l));let m=ht(o,n),f={boxSizing:"border-box",width:"100%",height:"100%",padding:a.padding??16,borderRadius:16,background:a.background,color:a.foreground,overflow:"hidden"};return w("g",{className:`block-layer block-layer--mermaid ${m.className}`,"data-layer-id":e.id,style:m.style,children:w("foreignObject",{x:c,y:u,width:s,height:l,children:w("div",{xmlns:"http://www.w3.org/1999/xhtml",className:"squisq-mermaid-layer-frame",style:f,children:w(hd,{source:a.source,ariaLabel:"Mermaid diagram on slide",theme:r})})})})}function I_(e,t=2){if(t<=1||!e(1))return 1;if(e(t))return t;let n=1,r=t;for(let i=0;i<10;i+=1){let a=(n+r)/2;e(a)?n=a:r=a;}return Math.max(1,Math.floor(n*100)/100)}var ij={width:1920,height:1080},ar=1;function gd(e,t){for(let n of e)if(n.dataset.squisqTextFit==="html"){let r=Number(n.dataset.squisqBaseFontSize);Number.isFinite(r)&&(n.style.fontSize=`${r*t}px`);}else n.style.transform=`scale(${t})`;}function ri(e){let t=parseFloat(e);return Number.isFinite(t)?t:0}function aj(e){let t=e.querySelector('[data-squisq-text-content="true"]');if(!t||t.scrollWidth<=0||t.scrollHeight<=0)return false;let r=e.ownerDocument.defaultView?.getComputedStyle(e),i=r?ri(r.paddingLeft)+ri(r.paddingRight)+ri(r.borderLeftWidth)+ri(r.borderRightWidth):0,a=r?ri(r.paddingTop)+ri(r.paddingBottom)+ri(r.borderTopWidth)+ri(r.borderBottomWidth):0,o=Math.max(0,e.clientWidth-i),s=Math.max(0,e.clientHeight-a);if(t.scrollWidth>o+ar||t.scrollHeight>s+ar)return false;for(let l of t.querySelectorAll("[data-squisq-table-scroll]"))if(l.clientWidth>0&&l.scrollWidth>l.clientWidth+ar||l.clientHeight>0&&l.scrollHeight>l.clientHeight+ar)return false;return true}function oj(e,t){let n=e.querySelector('[data-squisq-text-content="true"]');if(!n||typeof n.getBBox!="function")return false;try{let r=n.getBBox(),i=Number(e.dataset.squisqFitWidth),a=Number(e.dataset.squisqFitHeight);return r.width>0&&r.height>0&&r.width*t<=i+ar&&r.height*t<=a+ar}catch{return false}}function M_(e){return e.map(t=>t.querySelector('[data-squisq-text-content="true"]')?.getBoundingClientRect()).filter(t=>!!t&&t.width>0&&t.height>0)}function L_(e){let t=new Set;for(let n=0;n<e.length;n+=1)for(let r=n+1;r<e.length;r+=1){let i=e[n],a=e[r];i.left<a.right-ar&&i.right>a.left+ar&&i.top<a.bottom-ar&&i.bottom>a.top+ar&&t.add(`${n}:${r}`);}return t}function an({block:e,blockTime:t,basePath:n,isEntering:r=false,isExiting:i=false,transition:a,viewport:o=ij,isPlaying:s,muted:l=false,animationsEnabled:c=true,theme:u,tableContentRenderer:d,growTextToFit:m=false,videoEmbeds:f="poster"}){let h="",y={},g=c?a??e.transition:void 0;g&&r?(h=Xs(g.type,true,g.direction),y["--transition-duration"]=`${ba(g)}s`):g&&i&&(h=Xs(g.type,false,g.direction),y["--transition-duration"]=`${ba(g)}s`);let x=`vb-clip-${Xt().replace(/:/g,"")}-${e.id}`,v=ue(null),[T,E]=ge(1),k=m&&!mg(e.template);return kn(()=>{let S=v.current,I=false;if(!S)return;let _=()=>{if(I)return;let R=Array.from(S.querySelectorAll("[data-squisq-text-fit]"));if(!k||R.length===0){gd(R,1),E(1);return}gd(R,1);let F=L_(M_(R)),D=I_(P=>{if(gd(R,P),R.some($=>$.dataset.squisqTextFit==="html"?!aj($):!oj($,P)))return false;let z=L_(M_(R));for(let $ of z)if(!F.has($))return false;return true});gd(R,D),E(P=>P===D?P:D);};_();let A=S.ownerDocument?.fonts;return A&&A.status!=="loaded"&&A.ready.then(_),()=>{I=true;}},[e.layers,k,o.height,o.width]),w("svg",{ref:v,className:`block-svg ${h}`,style:y,viewBox:`0 0 ${o.width} ${o.height}`,preserveAspectRatio:"xMidYMid meet",overflow:"hidden","data-block-id":e.id,"data-squisq-text-scale":k?T:void 0,children:[w("defs",{children:w("clipPath",{id:x,children:w("rect",{x:"0",y:"0",width:o.width,height:o.height})})}),w("g",{clipPath:`url(#${x})`,children:(e.layers??[]).map(S=>w(sj,{block:e,layer:S,basePath:n,viewport:o,blockTime:t,isPlaying:s,muted:l,animationsEnabled:c,theme:u,tableContentRenderer:d,textScale:T,videoEmbeds:f},S.id))})]})}function sj({block:e,layer:t,basePath:n,viewport:r,blockTime:i,isPlaying:a,muted:o,animationsEnabled:s,theme:l,tableContentRenderer:c,textScale:u,videoEmbeds:d}){let m=s||!t.animation?t:{...t,animation:void 0};switch(m.type){case "image":return w(l_,{layer:m,basePath:n,viewport:r,blockTime:i,animationsEnabled:s});case "text":return w(u_,{layer:m,viewport:r,blockTime:i,textScale:u});case "shape":return w(m_,{layer:m,viewport:r,blockTime:i});case "path":return w(h_,{layer:m,viewport:r,blockTime:i});case "map":return w(b_,{layer:m,basePath:n,viewport:r,blockTime:i});case "video":return w(w_,{layer:m,basePath:n,viewport:r,blockTime:i,isPlaying:a,muted:o});case "videoEmbed":return w(k_,{layer:m,viewport:r,mode:d});case "table":return w(x_,{block:e,layer:m,viewport:r,blockTime:i,contentRenderer:c});case "tree":return w(T_,{layer:m,viewport:r,blockTime:i});case "mermaid":return w(C_,{layer:m,viewport:r,blockTime:i,theme:l});default:return console.warn(`Unknown layer type: ${m.type}`),null}}function q_(e,t){switch(e){case "top":return {top:t?"12%":"8%"};case "center":return {top:"50%",transform:"translateY(-50%)"};default:return {bottom:t?"24%":"16%"}}}function lj(e){let t=/^#?([0-9a-f]{6})$/i.exec(e.trim());if(!t)return "#ffffff";let n=parseInt(t[1],16),r=n>>16&255,i=n>>8&255,a=n&255;return .2126*r+.7152*i+.0722*a>150?"#111111":"#ffffff"}var cj=4,P_=2,uj=6;function dj(e){if(e.words&&e.words.length>0)return e.words.map(i=>({text:i.text,startTime:i.startTime,endTime:i.endTime}));let t=e.text.split(/\s+/).filter(i=>i.length>0);if(t.length===0)return [];let r=(e.endTime-e.startTime)/t.length;return t.map((i,a)=>({text:i,startTime:e.startTime+a*r,endTime:e.startTime+(a+1)*r}))}function mj(e){let t=[];for(let i of e.phrases)t.push(...dj(i));if(t.length===0)return {words:[],chunks:[]};let n=cj;if(t.length>n){let i=Math.ceil(t.length/n);n=Math.ceil(t.length/i),n=Math.min(uj,Math.max(P_,n));}else n=Math.max(P_,t.length);let r=[];for(let i=0;i<t.length;i+=n){let a=t.slice(i,i+n);r.push({words:a,startTime:a[0].startTime,endTime:a[a.length-1].endTime});}return {words:t,chunks:r}}function R_({captions:e,currentTime:t,enabled:n=true,theme:r,viewport:i,position:a="bottom"}){let{chunks:o}=de(()=>e?mj(e):{words:[],chunks:[]},[e]);if(!n||o.length===0)return w("div",{className:"social-caption-overlay",style:{position:"absolute",...q_(a,(i?.height??0)>(i?.width??1)),left:0,right:0,zIndex:50,pointerEvents:"none",opacity:0,transition:"opacity 0.15s ease-in-out"}});let s=null,l=-1;for(let g of o)if(t>=g.startTime&&t<g.endTime){s=g;break}if(!s){for(let g=0;g<o.length-1;g++)if(t>=o[g].endTime&&t<o[g+1].startTime){s=o[g],l=s.words.length-1;break}!s&&o.length>0&&t>=o[o.length-1].startTime&&(s=o[o.length-1],l=s.words.length-1);}if(!s)return null;if(l===-1){for(let g=0;g<s.words.length;g++){let b=s.words[g];if(t>=b.startTime&&t<b.endTime){l=g;break}}if(l===-1){for(let g=s.words.length-1;g>=0;g--)if(t>=s.words[g].startTime){l=g;break}}l===-1&&(l=0);}let c=r?.colors?.primary??"#5b9bd5",u=r?.typography?.titleFont?xt(r.typography.titleFont,'"PT Serif", Georgia, serif'):'"PT Serif", Georgia, serif',d=i?.width??1280,m=i?.height??720,f=m>d,h=Math.min(m*.055,d*.082),y=Math.max(22,Math.min(96,Math.round(h)));return w("div",{className:"social-caption-overlay",style:{position:"absolute",...q_(a,f),left:0,right:0,zIndex:50,pointerEvents:"none",display:"flex",justifyContent:"center",padding:f?"0 7%":"0 10%",boxSizing:"border-box",opacity:1,transition:"opacity 0.15s ease-in-out"},children:w("div",{className:"social-caption-overlay__chunk",style:{display:"inline-flex",flexWrap:"wrap",justifyContent:"center",alignItems:"baseline",maxWidth:"100%",rowGap:"0.12em",columnGap:"0.28em",padding:"0.22em 0.55em",borderRadius:"0.4em",background:"rgba(10, 10, 12, 0.42)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",fontFamily:u,fontSize:`${y}px`,lineHeight:1.18,textTransform:"uppercase",letterSpacing:"0.01em",whiteSpace:"normal"},children:s.words.map((g,b)=>{let x=b===l;return w("span",{className:x?"social-caption-overlay__word is-active":"social-caption-overlay__word",style:{display:"inline-block",whiteSpace:"nowrap",padding:"0 0.16em",borderRadius:"0.18em",fontWeight:800,color:x?lj(c):"rgba(255, 255, 255, 0.95)",background:x?c:"transparent",textShadow:x?"none":"0 2px 6px rgba(0,0,0,0.75), 0 0 18px rgba(0,0,0,0.45)",transform:x?"scale(1.05)":"none",transition:"color 0.1s ease, background-color 0.1s ease, transform 0.1s ease"},children:g.text},`${g.startTime}-${b}`)})})})}function fj(e){switch(e){case "bottom":return {bottom:"6px",left:"50%",transform:"translateX(-50%)"};case "center":return {top:"50%",left:"50%",transform:"translate(-50%, -50%)"};default:return {top:"6px",left:"50%",transform:"translateX(-50%)"}}}function N_({captions:e,currentTime:t,enabled:n=true,fontSize:r=16,captionStyle:i="standard",captionPosition:a,theme:o,viewport:s}){if(i==="social")return w(R_,{captions:e,currentTime:t,enabled:n,theme:o,viewport:s,position:a??"bottom"});let c=(n&&e?Io(e,t):null)?.text??null;return w("div",{className:"caption-overlay",style:{position:"absolute",...fj(a??"top"),zIndex:50,pointerEvents:"none",maxWidth:"100%",width:"100%",textAlign:"center",opacity:c?1:0,transition:"opacity 0.15s ease-in-out",padding:"0 4px",boxSizing:"border-box"},children:c&&w("div",{style:{display:"inline-block",padding:"3px 10px",background:"rgba(0, 0, 0, 0.65)",borderRadius:"4px",backdropFilter:"blur(4px)"},children:w("span",{style:{color:"#ffffff",fontSize:`${r}px`,fontFamily:"'Hanken Grotesk', system-ui, sans-serif",fontWeight:500,lineHeight:1.25,textShadow:"0 1px 3px rgba(0,0,0,0.5)",whiteSpace:"pre-wrap",wordWrap:"break-word"},children:c})})})}var pj="(prefers-color-scheme: dark)";function yd(e){let t=de(()=>e&&typeof window<"u"?window.matchMedia(pj):null,[e]),n=ve(i=>t?(t.addEventListener("change",i),()=>t.removeEventListener("change",i)):()=>{},[t]),r=ve(()=>t?.matches?Tm:Xl,[t]);return kb(n,r)}function ey(e){if(!e?.length)return {segmentStarts:[],totalDuration:0};let t=0;return {segmentStarts:e.map(r=>{let i=t;return t+=r.duration,i}),totalDuration:t}}function D_(e,t,n){if(!t?.length)return {segmentIndex:0,segmentStart:0};let r=0,i=0;for(let a=0;a<t.length;a++){let o=n[a]+t[a].duration;if(e<o){r=a,i=n[a];break}a===t.length-1&&(r=a,i=n[a]);}return {segmentIndex:r,segmentStart:i}}var gj=15e3,O_="Audio could not be loaded. Check that the media file is available.";function yj(e,t){return !e||/^(?:[a-z][a-z0-9+.-]*:|\/\/|\/)/i.test(e)||!t?e:`${t.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}function F_(e,t,n="",r=true,i="media",a=0){let o=de(()=>i!=="synthetic"||t?.segments?.length||a<=0?t:{...t,segments:[{src:"",name:"synthetic",duration:a,startTime:0}]},[t,i,a]),s=kr(),[l,c]=ge(0),[u,d]=ge(false),[m,f]=ge(0),[h,y]=ge(false),[g,b]=ge(false),[x,v]=ge(0),[T,E]=ge(true),[k,S]=ge(),I=ue([]),_=ue(null),A=ue(null),R=ue(false),F=ue(new Map),L=ue(new Map),D=ue(new Set),P=ue(0),z=ue(void 0);z.current=o?.segments[m]?.src;let $=ue(null),H=ue(0);H.current=m;let B=ue(false);he(()=>{if(P.current+=1,_.current=null,A.current?.(),A.current=null,R.current=false,B.current=false,$.current=null,c(0),f(0),d(false),y(false),b(false),E(true),S(void 0),!r||!o?.segments){I.current=[],v(0);return}let Y=ey(o.segments);I.current=Y.segmentStarts,v(Y.totalDuration),i==="synthetic"&&b(true);},[o,r,i]);let C=ve(async Y=>{let se=yj(Y,n);if(!ln(se,s))return "";if(F.current.has(Y)){let K=F.current.get(Y);return F.current.delete(Y),F.current.set(Y,K),K}if(L.current.has(Y))return L.current.get(Y);let ye=new AbortController;D.current.add(ye);let fe=P.current,ce=(async()=>{try{let K=await nh(se,{policy:s,signal:ye.signal,contentTypePrefixes:["audio/","video/","application/octet-stream"]}),oe=new Blob([K.bytes.slice().buffer],{type:K.contentType||"application/octet-stream"}),Te=URL.createObjectURL(oe);if(ye.signal.aborted||fe!==P.current)return URL.revokeObjectURL(Te),se;for(F.current.set(Y,Te);F.current.size>2;){let Le=[...F.current.entries()].find(([De])=>De!==z.current)??F.current.entries().next().value;if(!Le)break;F.current.delete(Le[0]),URL.revokeObjectURL(Le[1]);}return Te}catch{return ""}})();return L.current.set(Y,ce),ce.then(()=>{D.current.delete(ye),L.current.get(Y)===ce&&L.current.delete(Y);}),ce},[n,s]);he(()=>{if(!r||!o?.segments)return;let Y=F.current,se=D.current,ye=L.current;return ()=>{P.current+=1,se.forEach(fe=>fe.abort()),se.clear(),ye.clear(),Y.forEach(fe=>{URL.revokeObjectURL(fe);}),Y.clear();}},[o,C,r]),he(()=>{if(!r||i==="synthetic")return;let Y=o?.segments[m];Y&&C(Y.src);},[o,m,r,i,C]),he(()=>{if(!r||i==="synthetic")return;let Y=e.current;if(!Y)return;let se=()=>{if(B.current)return;let Te=(I.current[m]||0)+Y.currentTime;c(Te);},ye=()=>{d(true);},fe=()=>d(false),ce=()=>{b(true),d(false),E(false),S(O_),R.current=false,_.current!==null&&(c(_.current),_.current=null),A.current?.(),A.current=null;},K=()=>{o&&m<o.segments.length-1?(R.current=true,f(oe=>oe+1)):(y(true),d(false));};return Y.addEventListener("timeupdate",se),Y.addEventListener("play",ye),Y.addEventListener("pause",fe),Y.addEventListener("ended",K),Y.addEventListener("error",ce),()=>{Y.removeEventListener("timeupdate",se),Y.removeEventListener("play",ye),Y.removeEventListener("pause",fe),Y.removeEventListener("ended",K),Y.removeEventListener("error",ce);}},[e,m,o,r,i]),he(()=>{if(!r||i==="synthetic")return;let Y=e.current;if(!Y||!o?.segments)return;let se=o.segments[m];if(!se)return;let ye=()=>{if(_.current!==null){let Le=I.current[m]||0,De=_.current-Le;Y.currentTime=Math.max(0,De),c(_.current),_.current=null,A.current?.(),A.current=null;}R.current&&(Y.play().catch(Le=>{d(false),Le instanceof Error&&Le.name==="NotAllowedError"||(E(false),S("Audio playback failed. Check that the media file is supported and available."));}),R.current=false);},fe=Y.src,ce=$.current,K=!!fe&&ce?.key===se.src&&ce.url===fe,oe=false,Te=null;return K?ye():(async()=>{let De=await C(se.src);if(!oe){if(!De){Y.removeAttribute("src"),Y.load(),$.current=null,R.current=false,b(true),d(false),E(false),S(O_),_.current!==null&&(c(_.current),_.current=null),A.current?.(),A.current=null;return}Te=()=>{oe||(b(true),ye(),Te&&Y.removeEventListener("canplay",Te));},Y.addEventListener("canplay",Te),Y.src=De,$.current={key:se.src,url:Y.src},Y.load(),await Promise.resolve(),Y.readyState>=3&&(Te&&Y.removeEventListener("canplay",Te),b(true),ye());}})(),()=>{oe=true,Te&&Y.removeEventListener("canplay",Te);}},[e,m,o,C,r,i]);let U=ve(async Y=>{let se=e.current;if(!o?.segments)return;let ye=x>0?Math.max(0,Math.min(Y,x)):Math.max(0,Y),fe=I.current.length===o.segments.length?I.current:ey(o.segments).segmentStarts,{segmentIndex:ce,segmentStart:K}=D_(ye,o.segments,fe),oe=i==="synthetic"?u:!se?.paused;if(y(false),!se&&i==="media"){f(ce),c(ye);return}if(ce!==H.current){_.current=ye,R.current=oe;let Te=new Promise(Le=>{A.current?.();let De=false,Ke=()=>{De||(De=true,clearTimeout(gt),A.current===Ke&&(A.current=null),Le());},gt=setTimeout(Ke,gj);A.current=Ke;});f(ce),i==="synthetic"&&(c(ye),_.current=null,A.current?.(),A.current=null),await Te;}else {let Te=ye-K;se&&i==="media"&&(se.currentTime=Math.max(0,Te)),c(ye);}},[e,o,u,i,x]),V=ve(async()=>{if(i==="synthetic"){B.current=true,d(true);return}let Y=e.current;if(Y){h&&await U(0);try{await Y.play(),B.current=!1,E(!0),S(void 0);}catch(se){B.current=false,d(false),(se instanceof Error?se.name:"")!=="NotAllowedError"&&(E(false),S("Audio playback failed. Check that the media file is supported and available."));}}},[e,h,i,U]),M=ve(()=>{let Y=e.current;Y&&Y.pause(),d(false);},[e]),J=ve(()=>{!e.current&&i==="media"||(u?M():V());},[e,u,i,V,M]),we=ve(Y=>{!o?.segments||Y<0||Y>=o.segments.length||(f(Y),y(false));},[o]),me=ve(async()=>{await U(0),await V();},[U,V]);return he(()=>{if(!u||!B.current||!x)return;let Y=performance.now(),se,ye=fe=>{if(!B.current)return;let ce=(fe-Y)/1e3;Y=fe,c(K=>{let oe=K+ce;return oe>=x?(B.current=false,y(true),d(false),x):oe}),se=requestAnimationFrame(ye);};return se=requestAnimationFrame(ye),()=>cancelAnimationFrame(se)},[u,x]),{currentTime:l,isPlaying:u,currentSegment:m,totalDuration:x,isEnded:h,isReady:g,isAvailable:T,unavailableMessage:k,play:V,pause:async()=>M(),toggle:async()=>J(),seekTo:U,skipToSegment:async Y=>we(Y),restart:me}}var bj={},B_=new Map,wj=0;function kj(e,t,n){let r,i;if(e==="image"){let u=new Image;r=u,i=()=>[u.naturalWidth,u.naturalHeight];}else {let u=document.createElement("video");u.preload="metadata",u.muted=true,r=u,i=()=>[u.videoWidth,u.videoHeight];}let a=e==="image"?"load":"loadedmetadata",o=false,s=()=>{o||(o=true,clearTimeout(c),r.removeEventListener(a,l),r.removeEventListener("error",s),r.removeAttribute("src"),r instanceof HTMLVideoElement&&r.load());},l=()=>{let[u,d]=i();u>0&&d>0&&n(u/d),s();},c=setTimeout(s,8e3);return r.addEventListener(a,l),r.addEventListener("error",s),r.src=t,s}function $_(e,t,n){let r=Oi(),i=kr(),a=de(()=>{let c=new Map;for(let u of En(e??[]))if(u.summaryLayout==="feature"){for(let d of Qr(u.contents))c.set(d.src,{kind:"image",source:d.src});for(let d of Zr(u.contents))c.set(d.src,{kind:"video",source:d.src});for(let d of u.contents??[])d.type==="code"&&d.lang?.trim().toLowerCase()==="mermaid"&&c.set(d.value,{kind:"mermaid",source:d.value});}return JSON.stringify([...c.values()])},[e]),o=de(()=>({sourceKey:a,provider:r,policy:i,basePath:t,theme:n}),[a,r,i,t,n]),[s,l]=ge();return he(()=>{if(typeof document>"u")return;let c=true,u=[],d={},m=(h,y)=>{!c||!Number.isFinite(y)||y<=0||(d[h]=y,l({scope:o,ratios:{...d}}));},f=JSON.parse(a);for(let{kind:h,source:y}of f){if(h==="mermaid"){pd(`squisq-feature-measure-${++wj}`,y,void 0,n).then(({svg:b})=>{if(!c)return;let x=new DOMParser().parseFromString(b,"image/svg+xml").documentElement.getAttribute("viewBox")?.trim().split(/[\s,]+/).map(Number);x?.length===4&&x[2]>0&&x[3]>0&&m(y,x[2]/x[3]);}).catch(()=>{});continue}(async()=>{let b=/^(?:[a-z][a-z0-9+.-]*:|\/\/|\/)/i.test(y),v=b?y:`${t.replace(/\/$/,"")}/${y}`;if(!b&&r)try{v=await r.resolveUrl(y);}catch{}if(!c||!ln(v,i))return;let T=`${h}:${v}`,E=B_.get(T);if(E!==void 0){m(y,E);return}u.push(kj(h,v,k=>{c&&(B_.set(T,k),m(y,k));}));})();}return ()=>{c=false,u.forEach(h=>h());}},[a,r,i,t,n,o]),s?.scope===o?s.ratios:bj}function H_(e,t,n={}){let{viewport:r=Je.landscape,theme:i,onSeek:a,useAudioSegmentTiming:o=true,deterministicTransitions:s=false,motion:l,basePath:c="."}=n,u=$_(e?.blocks,c,i??tt),d=de(()=>{if(!e?.blocks)return [];let P=e.blocks.some(B=>B.children&&B.children.length>0)?En(e.blocks):e.blocks,z=P.some(rt),$=i??tt,H=Ls({persistentLayers:e.persistentLayers},$);if(z){let B=o?e.audio?.segments?.map(U=>({startTime:U.startTime,duration:U.duration})):void 0;return pg(P,{audioSegments:B,viewport:r,mediaAspectRatios:u,persistentLayers:H,theme:i,motion:wa({motion:e.motion,frontmatter:e.frontmatter},$,l),customTemplates:e.customTemplates})}return P.map((B,C)=>{let U=xo(B,$,C);return U!==B.transition?{...B,transition:U}:B})},[e?.blocks,e?.audio?.segments,e?.persistentLayers,e?.customTemplates,e?.motion,e?.frontmatter,l,u,r,i,o]),m=de(()=>_m(d,t),[d,t]),f=de(()=>m?d.indexOf(m):-1,[d,m]),h=de(()=>m?Math.max(0,t-m.startTime):0,[m,t]),y=de(()=>!m||m.duration===0?0:Math.min(1,h/m.duration),[m,h]),g=de(()=>!e||e.duration===0?0:Math.min(1,t/e.duration),[e,t]),b=ue(null),x=ue(null),v=ue(null),T=ue(null),E=ve(D=>{if(x.current===D){b.current=null,T.current=null;return}T.current=D;},[]);if(m&&m.id!==x.current){let D=T.current===m.id;b.current=D?null:v.current,T.current=null,x.current=m.id;}v.current=m;let k=m?.transition?ba(m.transition):0,S=!!m&&k>0&&h<k,I=s?f>0?d[f-1]??null:null:b.current,_=S&&I!=null&&I.id!==m?.id,A=_?I:null,R=ve(D=>{if(!e||D<0||D>=d.length)return;let P=d[D];P&&a?.(P.startTime);},[e,d,a]),F=ve(()=>{if(f<d.length-1)return R(f+1)},[f,d.length,R]),L=ve(()=>{if(f>0)return R(f-1)},[f,R]);return {currentBlock:m,currentBlockIndex:f,previousBlock:A,isEntering:S,isExiting:_,blockTime:h,blockProgress:y,docProgress:g,nextBlock:F,prevBlock:L,goToBlock:R,suppressOutgoingForNextBlock:E,blocks:d}}function xj(e,t){let n=e/t;return n>1.2?"landscape":n<.83?"portrait":"square"}function vj(e){switch(e){case "portrait":return Je.portrait;case "square":return Je.square;default:return Je.landscape}}function z_(){let[e,t]=ge(()=>({width:typeof window<"u"?window.innerWidth:1920,height:typeof window<"u"?window.innerHeight:1080}));he(()=>{if(typeof window>"u")return;let i=()=>{t({width:window.innerWidth,height:window.innerHeight});},a,o=()=>{clearTimeout(a),a=setTimeout(i,100);};return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),clearTimeout(a);}},[]);let n=de(()=>xj(e.width,e.height),[e.width,e.height]);return {viewport:de(()=>vj(n),[n]),orientation:n,windowSize:e}}var Tj=.3,Sj=.5,Ej=12,_j=.35,Aj=260;function Cj({dx:e,width:t,elapsedMs:n,canNext:r,canPrev:i}){let a=t>0?t*Tj:1/0,o=n>0?Math.abs(e)/n:0,s=Math.abs(e)>=a,l=o>=Sj&&Math.abs(e)>=Ej;return !s&&!l?"snap":e<0?r?"next":"snap":e>0&&i?"prev":"snap"}function U_(e){let t=e.settleMs??Aj,[n,r]=ge(0),[i,a]=ge("idle"),o=ue(e);o.current=e;let s=ue(null),l=ue("idle");l.current=i;let c=ue(null),u=ue(null),d=ve(()=>{c.current!=null&&(clearTimeout(c.current),c.current=null),u.current!=null&&(cancelAnimationFrame(u.current),u.current=null);},[]),m=ve(f=>{if(!o.current.enabled||l.current==="settling"||f.pointerType==="mouse"&&f.button!==0)return;let y=f.target;if(!y.closest?.("button, a, input, textarea, select, [data-no-swipe]")){s.current={pointerId:f.pointerId,startX:f.clientX,startTime:performance.now(),target:y};try{y.setPointerCapture?.(f.pointerId);}catch{}a("dragging"),r(0);}},[]);return he(()=>{function f(){return o.current.containerRef.current?.getBoundingClientRect().width??0}function h(v){s.current=null;try{v.target.releasePointerCapture?.(v.pointerId);}catch{}}function y(v,T){a("settling"),u.current=requestAnimationFrame(()=>{u.current=null,r(v),c.current=setTimeout(()=>{c.current=null,T?.(),r(0),a("idle");},t);});}function g(v){let T=s.current;if(!T||v.pointerId!==T.pointerId)return;let E=o.current,k=v.clientX-T.startX,S=k>0&&!E.canGoPrev||k<0&&!E.canGoNext;r(S?k*_j:k);}function b(v){let T=s.current;if(!T||v.pointerId!==T.pointerId)return;h(T);let E=o.current,k=v.clientX-T.startX,S=f(),I=performance.now()-T.startTime,_=Cj({dx:k,width:S,elapsedMs:I,canNext:E.canGoNext,canPrev:E.canGoPrev});if(_==="snap"){y(0);return}let A=Math.max(S,Math.abs(k)),R=_==="next"?-A:A;y(R,_==="next"?E.onNext:E.onPrev);}function x(v){let T=s.current;!T||v.pointerId!==T.pointerId||(h(T),y(0));}return window.addEventListener("pointermove",g),window.addEventListener("pointerup",b),window.addEventListener("pointercancel",x),()=>{window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",x);}},[t]),he(()=>{e.enabled||(s.current=null,d(),a("idle"),r(0));},[e.enabled,d]),he(()=>d,[d]),{offsetPx:n,phase:i,onPointerDown:m}}function ca(e){let t=Math.floor(e/60),n=Math.floor(e%60);return `${t}:${n.toString().padStart(2,"0")}`}function bd({state:e,actions:t,blockMarkers:n,expandedBlocks:r,getBlockTitle:i}){let a=ue(null),[o,s]=ge(null),l=e.totalDuration>0?Math.max(0,Math.min(1,e.currentTime/e.totalDuration)):0,c=ve(h=>{let y=a.current;if(!y)return;let g=y.getBoundingClientRect(),b=h.clientX-g.left,x=Math.max(0,Math.min(1,b/g.width));s(x);},[]),u=ve(()=>{s(null);},[]),d=ve(h=>{let y=null;switch(h.key){case "ArrowLeft":case "ArrowDown":y=e.currentTime-5;break;case "ArrowRight":case "ArrowUp":y=e.currentTime+5;break;case "Home":y=0;break;case "End":y=e.totalDuration;break}y!=null&&(h.preventDefault(),t.seekTo(Math.max(0,Math.min(e.totalDuration,y))));},[t,e.currentTime,e.totalDuration]),m=ve(h=>{for(let y=r.length-1;y>=0;y--){let g=r[y];if(h>=g.startTime)return {block:g,index:y}}return r.length>0?{block:r[0],index:0}:null},[r]),f=-1;for(let h of n)h.isSectionStart&&h.block.startTime<=e.currentTime&&(f=h.index);return w("div",{ref:a,role:"group","aria-label":"Playback timeline",style:{flex:1,height:"24px",cursor:"pointer",position:"relative",display:"flex",alignItems:"center"},onClick:h=>{let y=h.currentTarget.getBoundingClientRect(),b=(h.clientX-y.left)/y.width;t.seekTo(b*e.totalDuration);},onMouseMove:c,onMouseLeave:u,children:[w("div",{role:"slider",tabIndex:0,"aria-label":"Playback position","aria-valuemin":0,"aria-valuemax":e.totalDuration,"aria-valuenow":Math.max(0,Math.min(e.totalDuration,e.currentTime)),"aria-valuetext":`${ca(e.currentTime)} of ${ca(e.totalDuration)}`,onKeyDown:d,style:{position:"absolute",left:0,right:0,height:"6px",background:"rgba(255,255,255,0.2)",borderRadius:"3px"}}),w("div",{"data-testid":"doc-progress-fill",style:{position:"absolute",left:0,width:`${l*100}%`,height:"6px",background:"#5b9bd5",borderRadius:"3px"}}),n.map((h,y)=>{let g=h.isSectionStart,b=g?h.index===f:h.index===e.currentBlockIndex;return w("button",{type:"button","data-marker":g?"chapter":"slide",tabIndex:g?0:-1,style:{position:"absolute",left:`${h.position}%`,transform:"translateX(-50%)",boxSizing:"border-box",borderRadius:"50%",cursor:"pointer",transition:"transform 0.15s, background-color 0.15s",...g?{width:"14px",height:"14px",padding:0,backgroundColor:b?"#ffffff":"rgba(255,255,255,0.75)",border:"2px solid #5b9bd5",boxShadow:"0 1px 3px rgba(0,0,0,0.5)",zIndex:3}:{width:"12px",height:"12px",padding:"3px",backgroundClip:"content-box",backgroundColor:b?"#ffffff":"rgba(255,255,255,0.55)",border:"none",zIndex:2}},title:h.title,"aria-label":`Seek to ${h.title}`,onClick:x=>{x.stopPropagation(),t.seekTo(h.block.startTime);},onMouseEnter:x=>{x.currentTarget.style.transform="translateX(-50%) scale(1.3)";},onMouseLeave:x=>{x.currentTarget.style.transform="translateX(-50%)";}},`${h.block.id}-${y}`)}),o!==null&&w("div",{style:{position:"absolute",left:`${o*100}%`,bottom:"100%",transform:"translateX(-50%)",marginBottom:"8px",padding:"6px 10px",background:"rgba(0,0,0,0.9)",borderRadius:"4px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10},children:[w("div",{style:{color:"white",fontSize:"12px",fontFamily:"monospace"},children:ca(o*e.totalDuration)}),(()=>{let h=o*e.totalDuration,y=m(h);return y&&i?w("div",{style:{color:"rgba(255,255,255,0.7)",fontSize:"11px",marginTop:"2px"},children:i(y.block)}):null})()]}),o!==null&&w("div",{style:{position:"absolute",left:`${o*100}%`,top:"50%",transform:"translate(-50%, -50%)",width:"2px",height:"16px",background:"rgba(255,255,255,0.6)",pointerEvents:"none",zIndex:1}})]})}function j_({state:e,actions:t,blockMarkers:n,expandedBlocks:r,getBlockTitle:i}){return w("div",{className:"doc-player__controls",style:{position:"absolute",bottom:0,left:0,right:0,padding:"12px 16px",background:"linear-gradient(transparent, rgba(0,0,0,0.8))",display:"flex",alignItems:"center",gap:"8px",zIndex:100},children:[w("button",{onClick:t.restart,style:{background:"none",border:"none",color:"rgba(255,255,255,0.7)",cursor:"pointer",padding:"8px",fontSize:"14px",display:"flex",alignItems:"center"},title:"Restart","aria-label":"Restart from beginning",children:w("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:w("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"})})}),w("button",{onClick:t.toggle,style:{background:"rgba(255,255,255,0.2)",border:"none",borderRadius:"50%",color:"white",cursor:"pointer",padding:"10px",fontSize:"16px",display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px"},"aria-label":e.isPlaying?"Pause":"Play",children:e.isPlaying?w("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:w("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})}):w("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20",children:w("path",{d:"M8 5v14l11-7z"})})}),w("span",{style:{color:"white",fontSize:"12px",minWidth:"80px",fontFamily:"monospace"},children:[ca(e.currentTime)," / ",ca(e.totalDuration)]}),w(bd,{state:e,actions:t,blockMarkers:n,expandedBlocks:r,getBlockTitle:i}),w("span",{style:{color:"rgba(255,255,255,0.5)",fontSize:"11px",whiteSpace:"nowrap"},children:[e.currentBlockIndex+1,"/",e.totalBlocks]}),e.hasCaptions&&w("button",{onClick:()=>t.cycleCaptionMode(),style:{background:e.captionMode!=="off"?"rgba(255,255,255,0.2)":"none",border:"none",color:e.captionMode!=="off"?"white":"rgba(255,255,255,0.5)",cursor:"pointer",padding:"8px",fontSize:"12px",display:"flex",alignItems:"center",gap:"4px",borderRadius:"4px"},title:e.captionMode==="off"?"Captions: Off (click for Standard)":e.captionMode==="standard"?"Captions: Standard (click for Social)":"Captions: Social (click to turn off)","aria-label":"Cycle caption style",children:[w("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:w("path",{d:"M19 4H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-4a1 1 0 011-1h3a1 1 0 011 1v1zm7 0h-1.5v-.5h-2v3h2V13H18v1a1 1 0 01-1 1h-3a1 1 0 01-1-1v-4a1 1 0 011-1h3a1 1 0 011 1v1z"})}),e.captionMode!=="off"&&w("span",{style:{fontSize:"10px",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.captionMode==="standard"?"CC":"SM"})]}),t.toggleFullscreen&&w("button",{onClick:t.toggleFullscreen,style:{background:e.isFullscreen?"rgba(255,255,255,0.2)":"none",border:"none",color:e.isFullscreen?"white":"rgba(255,255,255,0.5)",cursor:"pointer",padding:"8px",display:"flex",alignItems:"center",borderRadius:"4px"},title:e.isFullscreen?"Exit fullscreen (F)":"Fullscreen (F)","aria-label":e.isFullscreen?"Exit fullscreen":"Enter fullscreen",children:e.isFullscreen?w("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:w("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}):w("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:w("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})})})]})}function W_({state:e,slideNav:t,slides:n=[],pickerOpen:r,onPickerOpenChange:i}){let[a,o]=ge(false),s=r??a,l=ve(I=>{r===void 0&&o(I),i?.(I);},[r,i]),[c,u]=ge(280),d=ue(null),m=ue(null),f=ue(null),h=Xt(),{currentBlockIndex:y,currentSlideLabel:g,currentSlideNumber:b,totalBlocks:x,totalSlideNumber:v}=e,T=y<=0,E=y>=x-1,k=x>0?g??`${b??y+1} / ${v??x}`:"\u2014";he(()=>{if(!s)return;let I=A=>{d.current?.contains(A.target)||l(false);},_=A=>{A.key==="Escape"&&(A.preventDefault(),l(false),m.current?.focus());};return document.addEventListener("pointerdown",I),document.addEventListener("keydown",_),()=>{document.removeEventListener("pointerdown",I),document.removeEventListener("keydown",_);}},[s,l]),kn(()=>{if(!s)return;let I=d.current,_=I?.closest(".doc-player")??I?.parentElement;if(!I||!_)return;let A=()=>{let F=I.getBoundingClientRect(),L=_.getBoundingClientRect(),D=Math.floor(F.top-L.top-8-16);u(Math.max(72,D));};A();let R=typeof ResizeObserver>"u"?null:new ResizeObserver(A);return R?.observe(_),R?.observe(I),window.addEventListener("resize",A),()=>{R?.disconnect(),window.removeEventListener("resize",A);}},[s]),he(()=>{s&&f.current?.querySelector('[aria-current="true"]')?.focus();},[s]);let S=I=>{if(!["ArrowDown","ArrowUp","Home","End"].includes(I.key))return;let _=Array.from(f.current?.querySelectorAll('[role="menuitem"]')??[]);if(_.length===0)return;I.preventDefault();let A=_.indexOf(document.activeElement),R=A;I.key==="Home"?R=0:I.key==="End"?R=_.length-1:I.key==="ArrowDown"?R=(A+1)%_.length:R=(A-1+_.length)%_.length,_[R]?.focus();};return w("div",{ref:d,className:"doc-controls-slideshow","data-testid":"slideshow-controls",style:{position:"absolute",bottom:"16px",right:"16px",display:"flex",alignItems:"center",gap:"2px",background:"rgba(0, 0, 0, 0.65)",borderRadius:"8px",padding:"4px 6px",zIndex:100,userSelect:"none",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},children:[w("button",{onClick:I=>{I.stopPropagation(),t.prevSlide();},disabled:T,"data-testid":"slide-prev","aria-label":"Previous slide",title:"Previous slide",style:{background:"none",border:"none",color:T?"rgba(255,255,255,0.3)":"rgba(255,255,255,0.9)",cursor:T?"default":"pointer",padding:"6px 8px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",transition:"background 0.15s"},onMouseEnter:I=>{T||(I.currentTarget.style.background="rgba(255,255,255,0.1)");},onMouseLeave:I=>{I.currentTarget.style.background="none";},children:w("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:w("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})}),w("button",{ref:m,type:"button","data-testid":"slide-counter","aria-label":`Choose slide, current ${k}`,"aria-haspopup":"menu","aria-expanded":s,"aria-controls":s?h:void 0,title:"Choose slide",disabled:n.length===0,onClick:I=>{I.stopPropagation(),l(!s);},style:{background:s?"rgba(255,255,255,0.12)":"none",border:"none",color:"rgba(255,255,255,0.9)",cursor:n.length>0?"pointer":"default",fontSize:"13px",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',fontVariantNumeric:"tabular-nums",minWidth:"48px",textAlign:"center",padding:"6px 4px",letterSpacing:"0.02em",borderRadius:"4px",transition:"background 0.15s"},children:k}),s&&w("div",{ref:f,id:h,role:"menu","aria-label":"Choose a slide","data-testid":"slide-picker",onClick:I=>I.stopPropagation(),onKeyDown:S,style:{position:"absolute",right:0,bottom:"calc(100% + 8px)",width:"min(280px, calc(100vw - 32px))",maxHeight:`${c}px`,overflowY:"auto",padding:"6px",background:"rgba(20, 20, 20, 0.94)",border:"1px solid rgba(255,255,255,0.14)",borderRadius:"8px",boxShadow:"0 10px 30px rgba(0,0,0,0.38)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},children:n.map((I,_)=>{let A=_===y;return w("button",{type:"button",role:"menuitem","aria-current":A?"true":void 0,"data-testid":`slide-picker-item-${_}`,onClick:()=>{t.goToSlide(_),l(false);},style:{display:"grid",gridTemplateColumns:"42px minmax(0, 1fr)",alignItems:"center",gap:"8px",width:"100%",padding:"8px 10px",background:A?"rgba(255,255,255,0.14)":"transparent",border:"none",borderRadius:"5px",color:"rgba(255,255,255,0.94)",cursor:"pointer",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',textAlign:"left"},onMouseEnter:R=>{R.currentTarget.style.background="rgba(255,255,255,0.1)";},onMouseLeave:R=>{R.currentTarget.style.background=A?"rgba(255,255,255,0.14)":"transparent";},children:[w("span",{style:{color:A?"#fff":"rgba(255,255,255,0.58)",fontSize:"12px",fontVariantNumeric:"tabular-nums",textAlign:"right"},children:I.label}),w("span",{style:{minWidth:0,overflow:"hidden",color:A?"#fff":"rgba(255,255,255,0.82)",fontSize:"13px",lineHeight:1.3,textOverflow:"ellipsis",whiteSpace:"nowrap"},children:I.summary})]},`${I.id}-${_}`)})}),w("button",{onClick:I=>{I.stopPropagation(),t.nextSlide();},disabled:E,"data-testid":"slide-next","aria-label":"Next slide",title:"Next slide",style:{background:"none",border:"none",color:E?"rgba(255,255,255,0.3)":"rgba(255,255,255,0.9)",cursor:E?"default":"pointer",padding:"6px 8px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",transition:"background 0.15s"},onMouseEnter:I=>{E||(I.currentTarget.style.background="rgba(255,255,255,0.1)");},onMouseLeave:I=>{I.currentTarget.style.background="none";},children:w("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:w("path",{d:"M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"})})})]})}function ty(e){return e?Object.keys(e).map(t=>t.trim().toLowerCase()):[]}var Ij={theme:tt,pageStyle:la(tt),basePath:"/",viewport:Je.landscape,renderContext:{theme:tt},animationsEnabled:true,imageDisplayMode:"inline",showCodeCopyButton:false},ny=ur(Ij);function _n(){return Lr(ny)}function V_({section:e}){let{renderContext:t,basePath:n,animationsEnabled:r,theme:i}=_n(),a=e.slots.media,o=a?.type==="canvas"?a:void 0,s=de(()=>{if(!o)return null;let{layers:d}=Ds(o.block,{...t,blockIndex:e.index});return {...o.block,layers:d}},[o,t,e.index]);if(!o||!s)return null;let l=o.aspect,u=e.hints?.frame==="terminal"?" squisq-page-canvas--terminal squisq-page-canvas--framed":" squisq-page-canvas--framed";return w("div",{className:`squisq-page-canvas${u}`,style:{aspectRatio:`${l.width} / ${l.height}`,maxHeight:"min(70vh, 720px)",maxWidth:`calc(min(70vh, 720px) * ${(l.width/Math.max(1,l.height)).toFixed(4)})`},children:w(an,{block:s,blockTime:0,basePath:n,viewport:{width:l.width,height:l.height},animationsEnabled:r,theme:i})})}new TextDecoder;new TextEncoder;new TextDecoder;new TextEncoder;new TextDecoder;new TextEncoder;var Mj=10,Lj=100;function iy(e){let t=e instanceof Uint8Array?e:new Uint8Array(e);return Pj(t)??Rj(t)??Nj(t)}var qj=new Set(["gif","webp","apng"]),G_=/^image\/(?:gif|webp|apng)(?=$|[;,\s])/i;function Zs(e){let t=e.trim();if(!t)return false;if(/^data:/i.test(t))return G_.test(t.slice(5));if(G_.test(t))return true;let n=t.split(/[?#]/,1)[0]??"",r=n.lastIndexOf(".");return r<0||r<n.lastIndexOf("/")?false:qj.has(n.slice(r+1).toLowerCase())}function Pj(e){if(e.length<13||e[0]!==71||e[1]!==73||e[2]!==70||e[3]!==56||e[4]!==55&&e[4]!==57||e[5]!==97)return null;let t=13+Y_(e[10]),n=0,r=0,i=0,a=1;for(;t<e.length;){let o=e[t++];if(o===59)break;if(o===33){if(t>=e.length)break;let s=e[t++];if(s===249&&t+3<e.length&&e[t]>=4)i=(e[t+2]|e[t+3]<<8)*10;else if(s===255&&e[t]===11&&t+12<=e.length){let l=Qs(e,t+1,11),c=t+12;if((l==="NETSCAPE2.0"||l==="ANIMEXTS1.0")&&c+3<e.length&&e[c]>=3&&e[c+1]===1){let u=e[c+2]|e[c+3]<<8;a=u===0?0:u+1;}}if(t=X_(e,t),t<0)break;continue}if(o===44){if(t+9>e.length)break;let s=e[t+8];if(t+=9+Y_(s),t+=1,n++,r+=oy(i),i=0,t=X_(e,t),t<0)break;continue}break}return ay("gif",n,r,a)}function Y_(e){return e&128?3*(1<<(e&7)+1):0}function X_(e,t){let n=t;for(;n<e.length;){let r=e[n];if(n+=1,r===0)return n;n+=r;}return -1}var wd=[137,80,78,71,13,10,26,10];function Rj(e){if(e.length<wd.length)return null;for(let o=0;o<wd.length;o++)if(e[o]!==wd[o])return null;let t=wd.length,n=false,r=1,i=1,a=0;for(;t+8<=e.length;){let o=ry(e,t),s=Qs(e,t+4,4),l=t+8;if(s==="acTL"&&o>=8&&l+8<=e.length)n=true,r=ry(e,l),i=ry(e,l+4);else if(s==="fcTL"&&o>=26&&l+26<=e.length){let c=K_(e,l+20),u=K_(e,l+22)||100;a+=oy(c*1e3/u);}else {if(s==="IDAT"&&!n)break;if(s==="IEND")break}t=l+o+4;}return ay("png",n?r:1,a,i)}function Nj(e){if(e.length<12||Qs(e,0,4)!=="RIFF"||Qs(e,8,4)!=="WEBP")return null;let t=12,n=false,r=0,i=0,a=null;for(;t+8<=e.length;){let s=Qs(e,t,4),l=Dj(e,t+4),c=t+8;if(s==="VP8X"&&l>=10&&c<e.length){if(n=(e[c]&2)!==0,!n)break}else if(s==="ANIM"&&l>=6&&c+6<=e.length)a=e[c+4]|e[c+5]<<8;else if(s==="ANMF"&&l>=16&&c+15<=e.length)r++,i+=oy(e[c+12]|e[c+13]<<8|e[c+14]<<16);else if((s==="VP8 "||s==="VP8L")&&!n)break;t=c+l+(l&1);}return ay("webp",n?r:1,i,a??0)}function ay(e,t,n,r){let i=t>1;return {format:e,animated:i,frameCount:Math.max(t,1),durationMs:i?Math.round(n):0,playCount:i?r:1}}function oy(e){return e<=Mj?Lj:e}function Qs(e,t,n){let r="";for(let i=t;i<t+n&&i<e.length;i++)r+=String.fromCharCode(e[i]);return r}function K_(e,t){return e[t]<<8|e[t+1]}function ry(e,t){return (e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function Dj(e,t){return (e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}var Oj=ur(null);function Z_(){return Lr(Oj)}function Js({src:e,basePath:t="",width:n,height:r,poster:i,controls:a=true,preload:o="metadata",className:s,label:l}){let c=bt(e,t),u=bt(i??"",t),d=i?u:void 0;return c?w("span",{className:`squisq-inline-video-player ${s??""}`.trim(),children:w("video",{src:c,poster:d,controls:a,preload:o,width:n,height:r,playsInline:true,"aria-label":l,title:l})}):null}function sy({src:e,basePath:t="",controls:n=true,preload:r="metadata",className:i,label:a}){let o=bt(e,t);return o?w("span",{className:`squisq-inline-audio-player ${i??""}`.trim(),children:w("audio",{src:o,controls:n,preload:r,"aria-label":a,title:a})}):null}var Fj={position:"absolute",inset:0,width:"100%",height:"100%",border:0};function so({embed:e,title:t,showCaption:n=true,inline:r=false,className:i}){let a=xi(e,t),o=e.aspectRatio<1,s=n&&!r?t?.trim():"";return w(r?"span":"figure",{className:`squisq-video-embed ${i??""}`.trim(),"data-provider":e.provider,"data-orientation":o?"portrait":"landscape",children:[w("span",{className:"squisq-video-embed-frame",style:{position:"relative",display:"block",aspectRatio:String(e.aspectRatio)},children:w("iframe",{src:a.src,title:a.title,allow:a.allow,allowFullScreen:true,referrerPolicy:"strict-origin-when-cross-origin",loading:"lazy",style:Fj})}),s?w("figcaption",{className:"squisq-video-embed-caption",children:w("a",{href:e.watchUrl,target:"_blank",rel:"noopener noreferrer",children:s})}):null]})}var Bj={gif:"GIF",webp:"WEBP",png:"APNG"};function J_({playback:e,imageRef:t}){let n=ue(null),{info:r,status:i,displaySrc:a}=e,o=i==="paused",s=r?.animated??false;if(kn(()=>{if(!o||!s)return;let c=t.current,u=n.current;if(!c||!u)return;let d=()=>{!c.naturalWidth||!c.naturalHeight||(u.width=c.naturalWidth,u.height=c.naturalHeight,u.getContext("2d")?.drawImage(c,0,0));};if(c.complete&&c.naturalWidth){d();return}return c.addEventListener("load",d,{once:true}),()=>c.removeEventListener("load",d)},[o,s,a,t]),!r||!s)return null;let l=i==="playing"?"Pause animation":i==="ended"?"Replay animation":"Play animation";return w(Pe,{children:[o&&w("canvas",{ref:n,className:"squisq-animated-image-still","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:"100%",pointerEvents:"none"}}),w("button",{type:"button",className:"squisq-animated-image-toggle","data-status":i,"aria-label":l,title:l,style:{position:"absolute",top:8,left:8},onMouseDown:c=>c.preventDefault(),onClick:c=>{c.preventDefault(),c.stopPropagation(),i==="playing"?e.pause():e.play();},children:[w($j,{status:i}),w("span",{className:"squisq-animated-image-format",children:Bj[r.format]})]})]})}function $j({status:e}){return w("svg",{viewBox:"0 0 12 12","aria-hidden":"true",focusable:"false",children:w("path",{d:e==="playing"?"M2.5 1.5h2.75v9H2.5zM6.75 1.5H9.5v9H6.75z":e==="ended"?"M6 1.5V0L3.5 2.25 6 4.5V3a3 3 0 1 1-3 3H1.5A4.5 4.5 0 1 0 6 1.5z":"M3 1.5v9l7.5-4.5z"})})}var Hj=64,el=new Map;function zj(e){let t=el.get(e);if(t)return t;let n=fetch(e).then(r=>r.ok?r.arrayBuffer():null).then(r=>r?iy(r):null).catch(()=>null);if(!/^data:/i.test(e)&&(el.set(e,n),el.size>Hj)){let r=el.keys().next().value;r!==void 0&&el.delete(r);}return n}function Uj(e){if(/^(?:blob|data):/i.test(e))return e;if(typeof document>"u")return null;try{let t=new URL(e,document.baseURI);return t.protocol!=="http:"&&t.protocol!=="https:"?null:t.origin===window.location.origin?t.href:null}catch{return null}}function jj(){return typeof window>"u"||typeof window.matchMedia!="function"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function eA(){return jj()?"paused":"playing"}function tA(e,t){let[n,r]=ge(null),[i,a]=ge(eA),[o,s]=ge(null),[l,c]=ge(0),u=ue(0),d=ue(null),m=ve(y=>{d.current&&URL.revokeObjectURL(d.current),d.current=y,s(y);},[]);he(()=>{r(null);let y=t&&Zs(e)?Uj(t):null;if(!y)return;let g=false;return zj(y).then(b=>{g||r(b);}),()=>{g=true;}},[e,t]),he(()=>{u.current++,m(null),a(eA());},[t,m]),he(()=>()=>{d.current&&URL.revokeObjectURL(d.current);},[]),he(()=>{if(i!=="playing"||!n?.animated||n.playCount===0)return;let y=setTimeout(()=>a("ended"),n.durationMs*n.playCount);return ()=>clearTimeout(y)},[i,n,l]);let f=ve(()=>{let y=++u.current,g=b=>{if(y!==u.current){b&&URL.revokeObjectURL(b);return}b&&m(b),a("playing"),c(x=>x+1);};fetch(o??t).then(b=>b.blob()).then(b=>g(URL.createObjectURL(b)),()=>g(null));},[o,t,m]),h=ve(()=>{u.current++,a("paused");},[]);return {info:n,animated:n?.animated??false,displaySrc:o??t,status:i,play:f,pause:h}}var co={htmlPolicy:"sanitize"};function tl(e){return e.nested?e:{...e,nested:true}}var Wj={idle:"Copy",copying:"Copying\u2026",copied:"Copied",failed:"Copy failed"};async function Vj(e,t,n){if(n){await n(e,t===void 0?{}:{language:t});return}if(typeof navigator>"u"||!navigator.clipboard?.writeText)throw new Error("Clipboard access is unavailable in this host");await navigator.clipboard.writeText(e);}function nA({value:e,language:t,ctx:n}){let[r,i]=ge("idle"),a=ue();he(()=>()=>{a.current!==void 0&&clearTimeout(a.current);},[]);let o=w("pre",{className:"squisq-md-code-block",children:w("code",{className:t?`language-${t}`:void 0,children:e})});if(!n.showCodeCopyButton)return o;let s=async()=>{if(r!=="copying"){i("copying");try{await Vj(e,t??void 0,n.onCopyCode),i("copied");}catch{i("failed");}a.current!==void 0&&clearTimeout(a.current),a.current=setTimeout(()=>i("idle"),1600);}};return w("div",{className:"squisq-md-code-frame",children:[o,w("button",{type:"button",className:"squisq-md-code-copy","data-copy-state":r,disabled:r==="copying",onClick:()=>{s();},"aria-label":"Copy code to clipboard",children:Wj[r]})]})}var ly=class extends fn{constructor(){super(...arguments);this.state={failed:false};}static getDerivedStateFromError(){return {failed:true}}render(){return this.state.failed?this.props.fallback:this.props.children}};function Gj({node:e,lang:t,ctx:n}){let r=n.fenceRenderers?.[t];return r?w("div",{className:`squisq-md-fence-widget squisq-md-fence-widget-${t}`,"data-fence-lang":t,children:r({lang:t,...e.meta!=null?{meta:e.meta}:{},value:e.value,...n.theme?{theme:n.theme}:{},mode:"read"})}):null}function Vt(e,t="",n=co){return e.map((r,i)=>{let a=`${t}i${i}`;switch(r.type){case "text":{if(!r.value.includes(`
|
|
756
756
|
`))return w(Pe,{children:r.value},a);let o=r.value.split(`
|
|
757
757
|
`);return w(Pe,{children:o.map((s,l)=>w(Pe,{children:[l>0&&w("br",{}),s]},l))},a)}case "emphasis":return w("em",{className:"squisq-md-em",children:Vt(r.children,a,n)},a);case "strong":return w("strong",{className:"squisq-md-strong",children:Vt(r.children,a,n)},a);case "delete":return w("del",{className:"squisq-md-del",children:Vt(r.children,a,n)},a);case "superscript":return w("sup",{className:"squisq-md-sup",children:Vt(r.children,a,n)},a);case "subscript":return w("sub",{className:"squisq-md-sub",children:Vt(r.children,a,n)},a);case "inlineCode":return w("code",{className:"squisq-md-inline-code",children:r.value},a);case "link":{if(n.accessoryPaths?.has(r.url))return w("span",{className:"squisq-md-attachment","data-attachment-path":r.url,title:r.title??`Attachment: ${r.url}`,children:[w("i",{className:"fa-solid fa-paperclip","aria-hidden":"true"}),w("span",{className:"squisq-md-attachment-label",children:Vt(r.children,a,n)})]},a);let o=Ct(r.url,"link",{extraLinkSchemes:n.linkSchemes});return o?w("a",{className:"squisq-md-link",href:o,title:r.title??void 0,target:"_blank",rel:"noopener noreferrer",children:Vt(r.children,a,n)},a):w("span",{className:"squisq-md-link squisq-md-link--blocked",children:Vt(r.children,a,n)},a)}case "image":{let o=Fr(r.url);if(o){let s=Ct(r.url,"media");if(!s)return null;let l=r.alt||r.title||void 0;return o==="video"?w(Js,{src:s,basePath:".",label:l},a):w(sy,{src:s,basePath:".",label:l},a)}return w(Kj,{src:r.url,alt:r.alt??"",title:r.title??void 0},a)}case "break":return w("br",{},a);case "inlineMath":return w("code",{className:"squisq-md-inline-math",children:r.value},a);case "inlineIcon":return w("i",{className:`fa-${r.family} fa-${r.name}`,"data-icon":r.token,"aria-hidden":"true"},a);case "htmlInline":return n.htmlPolicy==="strip"?null:w("span",{className:"squisq-md-html-inline",children:cy(aA(r.htmlChildren,n.htmlPolicy),`${a}h`,n)},a);case "footnoteReference":return w("sup",{className:"squisq-md-footnote-ref",children:w("a",{href:`#fn-${r.identifier}`,children:["[",r.label??r.identifier,"]"]})},a);case "linkReference":return w("span",{className:"squisq-md-link-ref",children:Vt(r.children,a,n)},a);case "imageReference":return w("span",{className:"squisq-md-image-ref",children:["[",r.alt??r.identifier,"]"]},a);case "textDirective":return w("span",{className:"squisq-md-text-directive","data-directive":r.name,children:Vt(r.children,a,n)},a);case "mention":return w("span",{className:"squisq-md-mention mention","data-mention":"true","data-kind":r.targetKind,"data-id":r.targetId,"data-label":r.displayName,children:["@",r.displayName]},a);default:return null}})}function Yj(e,t,n=co){switch(e.type){case "paragraph":{let r=n.nested?null:Wn(e);return r?w(so,{embed:r.embed,title:r.title},t):w("p",{className:"squisq-md-p",children:Vt(e.children,t,n)},t)}case "heading":{let r=`h${e.depth}`;return w(r,{className:`squisq-md-heading squisq-md-h${e.depth}`,children:Vt(e.children,t,n)},t)}case "blockquote":return w("blockquote",{className:"squisq-md-blockquote",children:lo(e.children,t,tl(n))},t);case "list":return e.ordered?w("ol",{className:"squisq-md-list squisq-md-ol",start:e.start??void 0,children:e.children.map((r,i)=>rA(r,`${t}li${i}`,n))},t):w("ul",{className:"squisq-md-list squisq-md-ul",children:e.children.map((r,i)=>rA(r,`${t}li${i}`,n))},t);case "code":{let r=e.lang?.trim().toLowerCase();return r&&n.fenceRenderers?.[r]?w(ly,{fallback:w(nA,{value:e.value,language:e.lang,ctx:n}),children:w(Gj,{node:e,lang:r,ctx:n})},t):r==="mermaid"?w(hd,{source:e.value,className:"squisq-md-mermaid",ariaLabel:"Mermaid diagram",theme:n.theme},t):w(nA,{value:e.value,language:e.lang,ctx:n},t)}case "thematicBreak":return w("hr",{className:"squisq-md-hr"},t);case "table":return Xj(e.children,e.align,t,n);case "htmlBlock":{if(n.htmlPolicy==="strip")return null;let r=Wn(e);return r?w(so,{embed:r.embed,title:r.title},t):w("div",{className:"squisq-md-html-block",children:cy(aA(e.htmlChildren,n.htmlPolicy),`${t}h`,n)},t)}case "math":return w("pre",{className:"squisq-md-math-block",children:w("code",{children:e.value})},t);case "definition":return null;case "footnoteDefinition":return w("div",{className:"squisq-md-footnote-def",id:`fn-${e.identifier}`,children:[w("sup",{children:e.label??e.identifier}),lo(e.children,t,tl(n))]},t);case "containerDirective":return w("div",{className:`squisq-md-directive squisq-md-directive-${e.name}`,"data-directive":e.name,children:[e.label&&w("div",{className:"squisq-md-directive-label",children:e.label}),lo(e.children,t,tl(n))]},t);case "leafDirective":return w("div",{className:`squisq-md-directive squisq-md-directive-${e.name}`,"data-directive":e.name,children:Vt(e.children,t,n)},t);case "definitionList":return w("dl",{className:"squisq-md-dl",children:e.children.map((r,i)=>r.type==="definitionTerm"?w("dt",{className:"squisq-md-dt",children:Vt(r.children,`${t}dt${i}`,n)},`${t}dt${i}`):w("dd",{className:"squisq-md-dd",children:lo(r.children,`${t}dd${i}`,tl(n))},`${t}dd${i}`))},t);default:return null}}function rA(e,t,n=co){let r=e.checked!==null&&e.checked!==void 0;return w("li",{className:`squisq-md-li${r?" squisq-md-task":""}`,children:[r&&w("input",{type:"checkbox",checked:!!e.checked,readOnly:true,className:"squisq-md-checkbox"}),lo(e.children,t,tl(n))]},t)}function Xj(e,t,n,r=co){let[i,...a]=e;return w("table",{className:"squisq-md-table",children:[i&&w("thead",{children:w("tr",{children:i.children.map((o,s)=>w("th",{className:"squisq-md-th",style:t?.[s]?{textAlign:t[s]}:void 0,children:Vt(o.children,`${n}th${s}`,r)},`${n}th${s}`))})}),a.length>0&&w("tbody",{children:a.map((o,s)=>w("tr",{children:o.children.map((l,c)=>w("td",{className:"squisq-md-td",style:t?.[c]?{textAlign:t[c]}:void 0,children:Vt(l.children,`${n}td${s}-${c}`,r)},`${n}td${s}-${c}`))},`${n}tr${s}`))})]},n)}function lo(e,t="",n=co){return e.map((r,i)=>Yj(r,`${t}b${i}`,n))}function Kj({src:e,alt:t,title:n}){let r=Ct(e,"media"),i=bt(r??"","."),a=ue(null),o=tA(r??"",i);return r?Zs(r)?w("span",{className:"squisq-animated-image","data-animated":o.animated?"true":void 0,style:{position:"relative",display:"inline-block",maxWidth:"100%"},children:[w("img",{ref:a,className:"squisq-md-image",src:o.displaySrc,alt:t,title:n,style:{display:"block",maxWidth:"100%"}}),w(J_,{playback:o,imageRef:a})]}):w("img",{className:"squisq-md-image",src:i,alt:t,title:n}):null}function aA(e,t){return t==="strip"?[]:t==="trusted"?e:_a(e)}var Qj=new Set(["base","embed","iframe","link","meta","object","script","style","title"]),Zj={class:"className",id:"id",title:"title",style:"style",width:"width",height:"height",src:"src",alt:"alt",loading:"loading",decoding:"decoding",href:"href",target:"target",rel:"rel"},Jj=new Set(["","_self","_parent","_top"]);function eW(e,t){let n={};for(let[r,i]of Object.entries(e)){let a=Zj[r];if(a){if(a==="style"){n["data-style"]=i;continue}if(a==="href"){let o=Ct(i,"link",{extraLinkSchemes:t.linkSchemes});o&&(n.href=o);continue}if(a==="src"){let o=Ct(i,"media");o&&(n.src=o);continue}n[a]=i;}}if(typeof n.target=="string"&&!Jj.has(n.target.toLowerCase())){let i=(typeof n.rel=="string"?n.rel:"").split(/\s+/).filter(a=>a&&a.toLowerCase()!=="opener");i.some(a=>a.toLowerCase()==="noopener")||i.push("noopener"),n.rel=i.join(" ");}return n}function tW(e,t,n){let r=e.tagName.toLowerCase();if(r==="iframe"){let o=Jo(e);return o?w(so,{embed:o.embed,title:o.title,inline:true},t):null}if(Qj.has(r))return null;if(r==="video"){let o=Ct(e.attributes.src??"","media")??"",s=Ct(e.attributes.poster??"","media")??void 0;return w(Js,{src:o,width:e.attributes.width,height:e.attributes.height,poster:s,controls:"controls"in e.attributes,preload:e.attributes.preload==="none"||e.attributes.preload==="metadata"||e.attributes.preload==="auto"?e.attributes.preload:void 0},t)}if(r==="audio"){let o=Ct(e.attributes.src??"","media")??"";return w(sy,{src:o,controls:"controls"in e.attributes,preload:e.attributes.preload==="none"||e.attributes.preload==="metadata"||e.attributes.preload==="auto"?e.attributes.preload:void 0},t)}let i=r,a=eW(e.attributes,n);return e.selfClosing?w(i,{...a},t):w(i,{...a,children:cy(e.children,`${t}c`,n)},t)}function cy(e,t,n=co){return e.map((r,i)=>{let a=`${t}${i}`;switch(r.type){case "htmlElement":return tW(r,a,n);case "htmlText":return w(Pe,{children:r.value},a);case "htmlComment":return null;default:return null}})}var oA=new Set,iA=e=>e.size===0?e:oA;function ii({nodes:e,className:t,htmlPolicy:n="sanitize",linkSchemes:r,theme:i,showCodeCopyButton:a=false,onCopyCode:o,fenceRenderers:s}){let l=Z_(),c=Oi(),[u,d]=ge(oA);return he(()=>{if(!c){d(iA);return}let m=false;return c.listMedia().then(f=>{m||d(new Set(f.map(h=>h.name)));},()=>{m||d(iA);}),()=>{m=true;}},[c]),!e||e.length===0?null:w("div",{className:`squisq-md ${t||""}`,children:lo(e,"",{htmlPolicy:n,linkSchemes:r,theme:i,showCodeCopyButton:a,onCopyCode:o,accessoryPaths:u,fenceRenderers:s??l??void 0})})}function ai({media:e,eager:t,className:n}){let{basePath:r}=_n(),i=Ct(e.src,"media"),a=bt(i??"",r);return i?w("img",{className:n,src:a,alt:e.alt,loading:t?"eager":"lazy",decoding:"async",width:e.width,height:e.height}):null}function nW({media:e}){let{basePath:t}=_n(),n=Ct(e.src,"media"),r=bt(n??"",t),i=e.posterSrc?Ct(e.posterSrc,"media"):void 0,a=bt(i??"",t);return n?w("video",{src:r,poster:i?a:void 0,muted:true,loop:true,autoPlay:true,playsInline:true,preload:"metadata"}):null}function rW({media:e}){let t=hn(e.url);return t?w(so,{embed:t,title:e.title,showCaption:false}):null}function nl({section:e}){return e.slots.eyebrow?w("span",{className:"squisq-page-eyebrow",children:e.slots.eyebrow}):null}function uy({media:e}){return !e||e.type==="canvas"||e.type==="videoEmbed"||!e.credit?null:w("span",{className:"squisq-page-media-credit",children:[e.credit,e.license?` \xB7 ${e.license}`:""]})}function sA({section:e}){let{pageStyle:t}=_n(),n=e.slots.media,r=n?.type==="image"?n:void 0,i=t.tokens.heroStyle,a=w("div",{className:"squisq-page-hero-body",children:[w(nl,{section:e}),w("h1",{className:"squisq-page-hero-title",children:e.slots.title}),e.slots.subtitle&&w("p",{className:"squisq-page-hero-subtitle",children:e.slots.subtitle})]});return r&&i==="split"?w("div",{className:"squisq-page-hero-grid",children:[a,w("div",{className:"squisq-page-hero-media squisq-page-media-frame",children:[w(ai,{media:r,eager:true}),w(uy,{media:r})]})]}):w(Pe,{children:[r&&e.background==="media"&&w("div",{className:"squisq-page-hero-backdrop",children:w(ai,{media:r,eager:true})}),a]})}function lA({section:e}){let t=e.slots.media,n=t?.type==="image"?t:void 0;return w(Pe,{children:[n&&e.background==="media"&&w("div",{className:"squisq-page-hero-backdrop",children:w(ai,{media:n})}),w("div",{className:"squisq-page-banner-body",children:[w(nl,{section:e}),w("h2",{className:"squisq-page-section-title squisq-page-banner-title",children:e.slots.title})]})]})}function cA({section:e}){let t=e.slots.items??[],n=e.variant==="comparison",r=t.map(a=>typeof a.value=="number"?a.value:Number.parseFloat(String(a.value??""))),i=Math.max(1,...r.filter(a=>Number.isFinite(a)));return w(Pe,{children:[w("div",{className:"squisq-page-stats",children:t.map((a,o)=>w("div",{className:`squisq-page-stat${n?" squisq-page-stat--bars":""}`,children:[w("span",{className:"squisq-page-stat-value",children:a.value}),n&&Number.isFinite(r[o])&&w("div",{className:"squisq-page-stat-bar",style:{width:`${Math.max(4,r[o]/i*100)}%`}}),a.title&&w("span",{className:"squisq-page-stat-title",children:a.title}),a.body&&w("span",{className:"squisq-page-stat-body",children:a.body})]},o))}),e.slots.meta&&w("div",{className:"squisq-page-stat-meta",children:e.slots.meta})]})}function uA({section:e}){let t=e.slots.media,n=e.background==="media"&&t&&t.type!=="canvas"&&t.type!=="videoEmbed";return w(Pe,{children:[n&&w("div",{className:"squisq-page-quote-backdrop",children:t.type==="image"?w(ai,{media:t}):w(nW,{media:t})}),e.slots.title&&w("h2",{className:"squisq-page-section-title",children:e.slots.title}),w("figure",{className:"squisq-page-quote-figure",style:{margin:0},children:[w("blockquote",{className:"squisq-page-quote",children:e.slots.body?.text}),e.slots.attribution&&w("figcaption",{className:"squisq-page-quote-attribution",children:e.slots.attribution})]})]})}function dA({section:e,flip:t}){let n=e.slots.media,r=n?.type==="image"?n:void 0,i=t?e.variant!=="media-right":e.variant==="media-right";return w("div",{className:`squisq-page-feature${i?" squisq-page-feature--media-right":""}`,children:[w("div",{className:"squisq-page-feature-media squisq-page-media-frame",children:[r&&w(ai,{media:r}),w(uy,{media:r})]}),w("div",{className:"squisq-page-feature-text",children:[w(nl,{section:e}),e.slots.title&&w("h3",{className:"squisq-page-section-title squisq-page-feature-title",children:e.slots.title}),e.slots.body?.text&&w("p",{className:"squisq-page-feature-body",children:e.slots.body.text})]})]})}function mA({section:e}){let{basePath:t}=_n(),n=e.slots.media;return !n||n.type==="canvas"?null:w("figure",{className:"squisq-page-figure",children:[w("div",{className:"squisq-page-media-frame",children:n.type==="image"?w(ai,{media:n}):n.type==="videoEmbed"?w(rW,{media:n}):w(Js,{src:n.src,poster:n.posterSrc,basePath:t})}),(e.slots.caption||n.type!=="videoEmbed"&&n.credit)&&w("figcaption",{children:[e.slots.caption,n.type!=="videoEmbed"&&n.credit&&w(Pe,{children:[e.slots.caption?" ":"",w(uy,{media:n})]})]})]})}function fA({section:e}){let t=e.slots.items??[];return t.length===0?w("div",{className:"squisq-page-gallery-empty",children:[e.slots.title&&w("h2",{className:"squisq-page-section-title",children:e.slots.title}),e.slots.body?.text&&w("p",{children:e.slots.body.text}),e.slots.caption&&w("div",{className:"squisq-page-gallery-caption",children:e.slots.caption})]}):w(Pe,{children:[w("div",{className:"squisq-page-gallery",children:t.map((n,r)=>n.media?.type==="image"?w("div",{className:"squisq-page-media-frame",children:w(ai,{media:n.media})},r):null)}),e.slots.caption&&w("div",{className:"squisq-page-gallery-caption",children:e.slots.caption})]})}function pA({section:e}){let t=e.slots.media,n=t?.type==="image"?t:void 0,r=e.hints?.framing;return w("div",{className:"squisq-page-callout","data-hint-framing":typeof r=="string"?r:void 0,children:[n&&w("div",{className:"squisq-page-media-frame",children:w(ai,{media:n})}),w("div",{children:[w(nl,{section:e}),e.slots.title&&w("h3",{className:"squisq-page-callout-title",children:e.slots.title}),e.slots.body?.text&&w("p",{className:"squisq-page-callout-body",children:e.slots.body.text}),e.slots.meta&&w("div",{className:"squisq-page-callout-meta",children:e.slots.meta})]})]})}function hA({section:e}){let{theme:t}=_n(),n=e.slots.items??[];return w(Pe,{children:[e.slots.title&&w("h2",{className:"squisq-page-section-title squisq-page-cards-title",children:e.slots.title}),w("div",{className:"squisq-page-cards",children:n.map((r,i)=>{let a=r.accentScheme?t.colorSchemes?.[r.accentScheme]:void 0;return w("div",{className:"squisq-page-card",style:a?{"--squisq-page-card-accent":a.accent}:void 0,children:[r.title&&w("h3",{className:"squisq-page-card-title",children:r.title}),r.body&&w("p",{className:"squisq-page-card-body",children:r.body})]},i)})})]})}function gA({section:e}){let{theme:t,showCodeCopyButton:n,onCopyCode:r,fenceRenderers:i,htmlPolicy:a,linkSchemes:o}=_n(),s=e.slots.items??[];return w(Pe,{children:[e.slots.title&&w("h2",{className:"squisq-page-section-title squisq-page-items-title",children:e.slots.title}),w("ol",{className:"squisq-page-items",children:s.map((l,c)=>w("li",{children:w("div",{className:"squisq-page-item-body",children:l.markdown?w(ii,{nodes:l.markdown,theme:t,showCodeCopyButton:n,onCopyCode:r,fenceRenderers:i,htmlPolicy:a,linkSchemes:o}):l.body})},c))})]})}function yA({section:e}){let t=e.slots.milestone;return t?w("div",{className:"squisq-page-milestone","data-mood":t.mood,children:[w("div",{className:"squisq-page-milestone-date",children:t.date}),w("div",{className:"squisq-page-milestone-rail","aria-hidden":"true"}),w("div",{className:"squisq-page-milestone-body",children:[t.description,t.footer&&w("div",{className:"squisq-page-milestone-footer",children:t.footer})]})]}):null}function bA({section:e}){let t=e.slots.table;if(!t)return null;let n=r=>t.align?.[r]??void 0;return w(Pe,{children:[e.slots.title&&w("h2",{className:"squisq-page-section-title squisq-page-table-title",children:e.slots.title}),w("div",{className:"squisq-page-table-scroll",children:w("table",{className:"squisq-page-table",children:[w("thead",{children:w("tr",{children:t.headers.map((r,i)=>w("th",{style:{textAlign:n(i)},children:r},i))})}),w("tbody",{children:t.rows.map((r,i)=>w("tr",{children:r.map((a,o)=>w("td",{style:{textAlign:n(o)},children:a},o))},i))})]})})]})}function wA({section:e,block:t}){let{theme:n,showCodeCopyButton:r,onCopyCode:i,fenceRenderers:a,htmlPolicy:o,linkSchemes:s}=_n(),l=e.slots.title!==void 0&&t?.sourceHeading?w(ii,{nodes:[t.sourceHeading],theme:n,showCodeCopyButton:r,onCopyCode:i,htmlPolicy:o,linkSchemes:s}):null,c=e.slots.body?.markdown??t?.contents;return w("div",{className:"squisq-page-prose",children:[l,c&&c.length>0&&w(ii,{nodes:c,theme:n,showCodeCopyButton:r,onCopyCode:i,fenceRenderers:a,htmlPolicy:o,linkSchemes:s})]})}function kA({section:e}){return w("div",{children:[w(nl,{section:e}),e.slots.title&&w("h2",{className:"squisq-page-section-title",children:e.slots.title}),e.slots.body?.text&&w("p",{children:e.slots.body.text})]})}function iW(e,t){return e.kind==="hero"&&e.background==="media"&&e.slots.media?.type==="image"&&t!=="split"}function aW(e){let t=e.accent.scheme;if(t)return {"--squisq-page-accent":t.accent,"--squisq-page-accent-bg":t.bg,"--squisq-page-accent-text":t.text}}function oW(e,t){let{section:n,block:r}=e;switch(n.kind){case "hero":return w(sA,{section:n,block:r});case "banner":return w(lA,{section:n,block:r});case "stat-band":return w(cA,{section:n,block:r});case "quote-band":return w(uA,{section:n,block:r});case "feature-split":return w(dA,{section:n,block:r,flip:t});case "media-figure":return w(mA,{section:n,block:r});case "gallery":return w(fA,{section:n,block:r});case "callout":return w(pA,{section:n,block:r});case "card-grid":return w(hA,{section:n,block:r});case "item-list":return w(gA,{section:n,block:r});case "timeline-rail":return w(yA,{section:n,block:r});case "table-section":return w(bA,{section:n,block:r});case "canvas-embed":return w(V_,{section:n});case "footer":return w(kA,{section:n,block:r});default:return w(wA,{section:n,block:r})}}function xA({entry:e,featureFlip:t,isLeadProse:n}){let{pageStyle:r,theme:i,showCodeCopyButton:a,onCopyCode:o,fenceRenderers:s,htmlPolicy:l,linkSchemes:c}=_n(),{section:u}=e,d=u.slots.richContent?.markdown,m=["squisq-linear-section","squisq-page-section",`squisq-page-section--${u.kind}`,`squisq-page-section--bg-${u.background}`,`squisq-page-section--em-${u.emphasis}`];u.variant&&m.push(`squisq-page-section--v-${u.variant}`),iW(u,r.tokens.heroStyle)&&m.push("squisq-page-section--hero-media");let f={};u.hints?.vignette&&(f["data-hint-vignette"]=""),u.hints?.dropCap&&n&&(f["data-hint-drop-cap"]="");let h=u.kind!=="hero"&&u.slots.title!==void 0?u.slots.headingLevel??e.block?.sourceHeading?.depth:void 0;return h!==void 0&&(f["data-heading-level"]=String(h)),w("section",{className:m.join(" "),"data-section-kind":u.kind,"data-block-id":u.blockId,"data-block-index":u.index,"data-template":u.template,style:aW(u),...f,children:w("div",{className:"squisq-page-section-inner",children:[oW(e,t),d&&d.length>0&&w("div",{className:"squisq-page-rich-content",children:w(ii,{nodes:d,theme:i,showCodeCopyButton:a,onCopyCode:o,fenceRenderers:s,htmlPolicy:l,linkSchemes:c})})]})})}function kd({doc:e,markdown:t,basePath:n="/",viewport:r,className:i,theme:a,surface:o,animationsEnabled:s=true,thinMargins:l=false,imageDisplayMode:c="inline",globalKeyboardShortcuts:u=false,showCover:d=true,variant:m="page",transformPage:f,showCodeCopyButton:h=false,onCopyCode:y,fenceRenderers:g,htmlPolicy:b,linkSchemes:x}){let v=ue(null),T=r??Je.landscape,E=de(()=>!e&&t!==void 0?Jr(Jt(t)):void 0,[e,t]),k=e??E,S=yd(o==="auto"),I=o==="auto"?S:o,_=de(()=>{let we=a??tt;return I?Co(we,I):we},[a,I]),A=de(()=>la(_,f,m),[_,f,m]),R=de(()=>ty(g),[g]),F=de(()=>k?jg(k,{theme:_,viewport:T,customTemplates:k.customTemplates,cover:d!==false?k.startBlock:false,transformPage:f,variant:m,...R.length>0?{widgetFenceLangs:R}:{}}):[],[k,_,T,d,f,m,R]),L=de(()=>({theme:_,viewport:T,totalBlocks:F.length,persistentLayers:_.persistentLayers,customTemplates:k?.customTemplates}),[_,T,F.length,k?.customTemplates]),D=de(()=>({theme:_,pageStyle:A,basePath:n,viewport:T,renderContext:L,animationsEnabled:s,imageDisplayMode:c,showCodeCopyButton:h,onCopyCode:y,fenceRenderers:g,htmlPolicy:b,linkSchemes:x}),[_,A,n,T,L,s,c,h,y,g,b,x]),{featureOrdinals:P,leadProseIndex:z}=de(()=>{let we=new Map,me=0,Y=-1;for(let se of F)se.section.kind==="feature-split"&&we.set(se.section.index,me++),m!=="document"&&Y<0&&se.section.kind==="prose"&&(Y=se.section.index);return {featureOrdinals:we,leadProseIndex:Y}},[F,m]);if(he(()=>{if(!u)return;let we=me=>{if(me.defaultPrevented||me.altKey||me.ctrlKey||me.metaKey||me.shiftKey||me.key!=="ArrowDown"&&me.key!=="ArrowUp"||(me.target instanceof Element?me.target:null)?.closest('input, textarea, select, [contenteditable]:not([contenteditable="false"]), [role="textbox"], [role="combobox"], [role="listbox"], [role="menu"], [role="dialog"], [aria-modal="true"], .monaco-editor'))return;let se=v.current;if(!se)return;me.preventDefault();let ye=Math.max(64,Math.round(se.clientHeight*.12));se.scrollBy({top:me.key==="ArrowDown"?ye:-ye,behavior:"smooth"});};return document.addEventListener("keydown",we),()=>document.removeEventListener("keydown",we)},[u]),!k)return w("div",{ref:v,className:`squisq-linear squisq-linear--empty ${i||""}`});let $=_.colors.background,H=_.colors.text,B=_.colors.textMuted,C=_.colors.primary,U=xt(_.typography.bodyFont,"system-ui, sans-serif"),V=xt(_.typography.titleFont,"Georgia, serif"),M=_.typography.lineHeight??1.65,J=["squisq-linear-content","squisq-md","squisq-page",l?"squisq-linear-content--thin squisq-page--thin":"",m==="document"?"squisq-linear-content--document squisq-page--document":"",c==="thumbnail"?"squisq-linear-content--thumbnail-images squisq-page--thumbnail-images":""].filter(Boolean).join(" ");return w("div",{ref:v,className:`squisq-linear ${i||""}`,role:"region","aria-label":"Document page",tabIndex:l?void 0:0,style:{width:"100%",height:l?"auto":"100%",overflowY:l?"visible":"auto",overflowX:"hidden",background:$,containerType:"inline-size",containerName:"squisq-page"},children:w("div",{className:J,...Vg(A),style:{lineHeight:M,fontSize:m==="document"?"15px":"16px",fontFamily:U,color:H,...Wg(_,A),"--squisq-linear-title-font":V,"--squisq-linear-body-font":U,"--squisq-linear-text":H,"--squisq-linear-muted":B,"--squisq-linear-primary":C,"--squisq-linear-bg":$},children:[w("style",{"data-squisq-page":"",children:Gg}),w(ny.Provider,{value:D,children:F.map(we=>{let me=P.get(we.section.index)??0,Y=!!we.section.hints?.alternate&&me%2===1;return w(xA,{entry:we,featureFlip:Y,isLeadProse:we.section.index===z},`${we.section.blockId}-${we.section.index}`)})})]})})}async function sW(e){if(typeof document<"u"&&document.fonts?.ready)try{await document.fonts.ready;}catch{}let t=Array.from(e.querySelectorAll("img"));await Promise.allSettled(t.map(n=>n.complete?Promise.resolve():typeof n.decode=="function"?n.decode().catch(()=>{}):new Promise(r=>{n.addEventListener("load",()=>r(),{once:true}),n.addEventListener("error",()=>r(),{once:true});}))),await new Promise(n=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>requestAnimationFrame(()=>n())):setTimeout(n,0);});}function rl(e,t){return {id:e,startTime:0,duration:0,audioSegment:0,layers:t}}function vA({doc:e,theme:t,viewport:n,layout:r,showTitle:i,style:a,documentTitle:o,basePath:s=".",animationsEnabled:l=true,muted:c=true,renderMode:u=false,onRenderAPIReady:d,className:m}){let f=ue(null),h=de(()=>t??oa(e),[t,e]),y=n??Je.landscape,g=de(()=>Kg(e,{theme:h,viewport:y,layout:r,showTitle:i,style:a,documentTitle:o}),[e,h,y,r,i,a,o]),b=de(()=>rl("dashboard-backdrop-bottom",g.backdrop.bottomLayers),[g]),x=de(()=>g.backdrop.topLayers.length>0?rl("dashboard-backdrop-top",g.backdrop.topLayers):null,[g]),v=de(()=>g.title?rl("dashboard-title-band",g.title.layers):null,[g]);he(()=>!u||!d?void 0:(d({seekTo:async()=>{let I=f.current;I&&await sW(I);},getRenderedTime:()=>0,getDuration:()=>0,getViewport:()=>({width:y.width,height:y.height}),getBlocks:()=>g.cells.map(I=>({id:String(I.block.id),template:I.block.template??"content",startTime:0,duration:0})),getAudioSegments:()=>[],getCaptions:()=>[],getChapters:()=>[],showCover:async()=>{},hideCover:async()=>{},hasCoverBlock:()=>false}),()=>d(null)),[y,u,d,g]);let T={width:y.width,height:y.height},E={position:"absolute",inset:0},k={position:"relative",width:"var(--squisq-dashboard-fit-width, 100%)",aspectRatio:`${y.width} / ${y.height}`,overflow:"hidden",background:g.backdrop.fill,margin:"0 auto","--squisq-dashboard-aspect":(y.width/y.height).toFixed(6)};return w("div",{ref:f,className:m?`squisq-dashboard ${m}`:"squisq-dashboard","data-dashboard-layout":g.layout.name,"data-dashboard-style":g.style,style:k,children:[w("div",{style:E,"aria-hidden":"true",children:w(an,{block:b,blockTime:0,basePath:s,viewport:T,isPlaying:false,muted:true,animationsEnabled:l,theme:h})}),g.cells.map(S=>w(Pe,{children:[S.frame&&w("div",{className:"squisq-dashboard__frame","data-cell-index":S.index,"aria-hidden":"true",style:{position:"absolute",left:S.frame.rectPct.left,top:S.frame.rectPct.top,width:S.frame.rectPct.width,height:S.frame.rectPct.height,pointerEvents:"none"},children:w(an,{block:rl(`dashboard-frame-${S.index}`,S.frame.layers),blockTime:0,basePath:s,viewport:{width:S.frame.viewport.width,height:S.frame.viewport.height},isPlaying:false,muted:true,animationsEnabled:l,theme:h})}),w("div",{className:"squisq-dashboard__cell","data-cell-index":S.index,style:{position:"absolute",left:S.rectPct.left,top:S.rectPct.top,width:S.rectPct.width,height:S.rectPct.height,...S.frame?.contentRadiusPct?{borderRadius:S.frame.contentRadiusPct,overflow:"hidden"}:{}},children:[w(an,{block:{...S.block,layers:S.layers},blockTime:0,basePath:s,viewport:{width:S.viewport.width,height:S.viewport.height},isPlaying:false,muted:c,animationsEnabled:l,theme:h,videoEmbeds:u?"placeholder":"player"}),S.frame&&S.frame.overlayLayers.length>0&&w("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:w(an,{block:rl(`dashboard-frame-overlay-${S.index}`,S.frame.overlayLayers),blockTime:0,basePath:s,viewport:{width:S.frame.overlayViewport.width,height:S.frame.overlayViewport.height},isPlaying:false,muted:true,animationsEnabled:l,theme:h})})]})]},`${S.index}-${S.block.id}`)),g.title&&v&&w("div",{className:"squisq-dashboard__title",style:{position:"absolute",left:g.title.rectPct.left,top:g.title.rectPct.top,width:g.title.rectPct.width,height:g.title.rectPct.height},children:w(an,{block:v,blockTime:0,basePath:s,viewport:{width:g.title.viewport.width,height:g.title.viewport.height},isPlaying:false,muted:true,animationsEnabled:l,theme:h})}),x&&w("div",{style:{...E,pointerEvents:"none"},"aria-hidden":"true",children:w(an,{block:x,blockTime:0,basePath:s,viewport:T,isPlaying:false,muted:true,animationsEnabled:l,theme:h})})]})}var lW=new Set(["diagram","tree","timeline","map","drawing","layout","barChart","columnChart","pieChart","donutChart","lineChart","areaChart","scatterChart"]);function cW(e,t,n,r){let i=cd(e);if(!(!!i.templateName&&(lW.has(i.templateName)||!!r?.some(c=>c.name===i.templateName))))return null;let o=i.templateBlock??e,{layers:s,source:l}=Ds(o,{theme:t,viewport:n,customTemplates:r,persistentLayers:false});return s.length===0||l==="fallback"?null:{...o,layers:s}}function SA({block:e,depth:t,theme:n,basePath:r,showCodeCopyButton:i,onCopyCode:a,fenceRenderers:o,viewport:s,customTemplates:l}){let c=t===0?"h2":t===1?"h3":"h4",u=de(()=>cW(e,n,s,l),[e,l,n,s]);return w("section",{className:"squisq-flashcards__content-block","data-source-block-id":e.id,children:[!u&&e.title&&w(c,{className:"squisq-flashcards__content-title",children:e.title}),!u&&e.contents&&e.contents.length>0&&w(ii,{nodes:e.contents,theme:n,showCodeCopyButton:i,onCopyCode:a,fenceRenderers:o}),(u||e.layers&&e.layers.length>0)&&w("div",{className:"squisq-flashcards__canvas",style:{aspectRatio:`${s.width} / ${s.height}`},children:w(an,{block:u??e,blockTime:Math.max(0,e.duration??0),basePath:r,viewport:s,animationsEnabled:false,theme:n,muted:true})}),!u&&e.children?.map(d=>w(SA,{block:d,depth:t+1,theme:n,basePath:r,showCodeCopyButton:i,onCopyCode:a,fenceRenderers:o,viewport:s,customTemplates:l},d.id))]})}function il(e){return w("div",{className:"squisq-flashcards__face-content",children:e.face.blocks.map(t=>w(SA,{block:t,depth:0,...e},t.id))})}function uW(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function TA(e,t){let n=[...e],r=uW(t)||1,i=()=>{r+=1831565813;let a=r;return a=Math.imul(a^a>>>15,a|1),a^=a+Math.imul(a^a>>>7,a|61),((a^a>>>14)>>>0)/4294967296};for(let a=n.length-1;a>0;a--){let o=Math.floor(i()*(a+1));[n[a],n[o]]=[n[o],n[a]];}return n}function dW(e){return w(il,{...e,face:e.choice.content})}function mW(e){return e instanceof Element&&!!e.closest('button, a, input, select, textarea, [contenteditable="true"]')}function EA({doc:e,theme:t,basePath:n=".",source:r="auto",shuffle:i=false,globalKeyboardShortcuts:a=false,showCodeCopyButton:o=false,onCopyCode:s,fenceRenderers:l,viewport:c=Je.landscape,className:u}){let d=de(()=>t??oa(e),[e,t]),m=de(()=>Qg(e,{source:r}),[e,r]),[f,h]=ge(i),[y,g]=ge(1),[b,x]=ge(0),[v,T]=ge(false),[E,k]=ge(null),[S,I]=ge({}),[_,A]=ge(null),R=ue(null),F=de(()=>f?TA(m.cards,`${e.articleId}:${y}`):[...m.cards],[m.cards,e.articleId,y,f]),L=de(()=>_?_.map(K=>F.find(oe=>oe.id===K)).filter(K=>!!K):F,[F,_]),D=L[b],P=L.length>0&&b>=L.length,z=ve(()=>{x(0),T(false),k(null);},[]),$=ve(()=>{I({}),A(null),z(),g(K=>K+1);},[z]);he(()=>{I({}),A(null),z();},[m,z]),he(()=>{R.current&&(R.current.scrollTop=0);},[b,_]);let H=ve(()=>{D&&(T(true),D.kind==="multiple-choice"&&E===null&&I(K=>({...K,[D.id]:"again"})));},[D,E]),B=ve(()=>{if(D){if(!v){H();return}x(K=>K+1),T(false),k(null);}},[D,H,v]),C=ve(()=>{if(P){x(Math.max(0,L.length-1)),T(true);return}if(v){T(false),k(null);return}b>0&&(x(K=>K-1),T(true),k(null));},[b,P,v,L.length]),U=ve(K=>{!D||v||(k(K.id),T(true),I(oe=>({...oe,[D.id]:K.correct?"got-it":"again"})));},[D,v]),V=ve(K=>{D&&(I(oe=>({...oe,[D.id]:K})),x(oe=>oe+1),T(false),k(null));},[D]),M=ve(K=>{if(!(K.defaultPrevented||mW(K.target))){if(/^[1-9]$/.test(K.key)&&D?.kind==="multiple-choice"&&!v){let oe=D.choices?.[Number(K.key)-1];oe&&(K.preventDefault(),U(oe));return}K.key==="ArrowLeft"?(K.preventDefault(),C()):(K.key==="ArrowRight"||K.key===" "||K.key==="Enter")&&(K.preventDefault(),B());}},[U,D,B,C,v]);he(()=>{if(!a)return;let K=oe=>M(oe);return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[a,M]);let J={theme:d,basePath:n,showCodeCopyButton:o,onCopyCode:s,fenceRenderers:l,viewport:c,customTemplates:e.customTemplates},we=xt(d.typography.titleFont,"Georgia, serif"),me=xt(d.typography.bodyFont,"system-ui, sans-serif"),Y={"--squisq-flashcards-bg":d.colors.background,"--squisq-flashcards-surface":d.colors.backgroundLight,"--squisq-flashcards-text":d.colors.text,"--squisq-flashcards-muted":d.colors.textMuted,"--squisq-flashcards-primary":d.colors.primary,"--squisq-flashcards-secondary":d.colors.secondary,"--squisq-flashcards-highlight":d.colors.highlight,"--squisq-flashcards-warning":d.colors.warning,"--squisq-flashcards-radius":`${d.style.borderRadius??18}px`,"--squisq-flashcards-title-font":we,"--squisq-flashcards-body-font":me},se=m.cards.filter(K=>S[K.id]==="again").map(K=>K.id),ye=m.cards.filter(K=>S[K.id]==="got-it").length;if(m.cards.length===0)return w("div",{className:`squisq-flashcards squisq-flashcards--empty${u?` ${u}`:""}`,style:Y,role:"region","aria-label":"Flashcards",children:w("div",{className:"squisq-flashcards__empty-card",children:[w("h2",{children:"No complete flashcards yet"}),w("p",{children:"Add an answer beneath a heading, or nest an answer block under a question."}),m.diagnostics.length>0&&w("ul",{children:m.diagnostics.map((K,oe)=>w("li",{children:K.message},`${K.blockId}-${K.code}-${oe}`))})]})});if(P)return w("div",{className:`squisq-flashcards${u?` ${u}`:""}`,style:Y,role:"region","aria-label":"Flashcard session summary",tabIndex:0,onKeyDown:a?void 0:M,children:w("div",{className:"squisq-flashcards__summary",children:[w("span",{className:"squisq-flashcards__eyebrow",children:"Session complete"}),w("h2",{children:[ye," remembered"]}),w("p",{children:se.length===0?`You completed all ${m.cards.length} cards.`:`${se.length} ${se.length===1?"card needs":"cards need"} another look.`}),w("div",{className:"squisq-flashcards__summary-actions",children:[se.length>0&&w("button",{type:"button",className:"squisq-flashcards__button squisq-flashcards__button--primary",onClick:()=>{A(se),z();},children:"Retry missed"}),w("button",{type:"button",className:"squisq-flashcards__button",onClick:$,children:"Study again"}),w("button",{type:"button",className:"squisq-flashcards__button",onClick:C,children:"Previous card"})]})]})});let fe=D?.choices?TA(D.choices,`${D.id}:${y}`):[],ce=fe.find(K=>K.id===E);return w("div",{className:`squisq-flashcards${u?` ${u}`:""}`,style:Y,role:"region","aria-label":"Flashcards",tabIndex:0,onKeyDown:a?void 0:M,children:[w("header",{className:"squisq-flashcards__header",children:[w("div",{className:"squisq-flashcards__deck-copy",children:[w("span",{className:"squisq-flashcards__eyebrow",children:"Flashcards"}),m.title&&w("h1",{children:m.title})]}),w("div",{className:"squisq-flashcards__tools",children:[w("button",{type:"button",className:"squisq-flashcards__tool","aria-pressed":f,onClick:()=>{h(K=>!K),$();},children:"Shuffle"}),w("button",{type:"button",className:"squisq-flashcards__tool",onClick:$,children:"Restart"})]})]}),w("div",{className:"squisq-flashcards__progress-row",children:[w("span",{children:["Card ",b+1," of ",L.length]}),w("span",{children:v?"Answer revealed":"Question"})]}),w("div",{className:"squisq-flashcards__progress","aria-hidden":"true",children:w("span",{style:{width:`${(b+(v?1:0))/L.length*100}%`}})}),w("main",{ref:R,className:"squisq-flashcards__card","data-card-kind":D.kind,"aria-label":"Scrollable flashcard content",tabIndex:0,children:[D.label&&w("div",{className:"squisq-flashcards__label",children:D.label}),w("section",{className:"squisq-flashcards__front","aria-label":"Question",children:w(il,{...J,face:D.front})}),D.kind==="multiple-choice"&&w("div",{className:"squisq-flashcards__choices",role:"group","aria-label":"Answer choices",children:fe.map((K,oe)=>{let Te=E===K.id,Le=v?K.correct?"correct":Te?"incorrect":"idle":"idle";return w("button",{type:"button",className:"squisq-flashcards__choice","data-choice-status":Le,"aria-pressed":Te,disabled:v,onClick:()=>U(K),children:[w("span",{className:"squisq-flashcards__choice-key","aria-hidden":"true",children:oe+1}),w(dW,{...J,choice:K})]},K.id)})}),v&&D.kind==="basic"&&w("section",{className:"squisq-flashcards__answer","aria-label":"Answer",children:[w("span",{className:"squisq-flashcards__answer-label",children:"Answer"}),w(il,{...J,face:D.back})]}),v&&D.kind==="multiple-choice"&&w("div",{className:"squisq-flashcards__feedback","data-correct":ce?.correct===true,"aria-live":"polite",children:[w("strong",{children:ce===void 0?"Answer revealed":ce.correct?"Correct":"Not quite"}),!ce?.correct&&w("div",{className:"squisq-flashcards__correct-answer",children:[w("span",{children:"The correct answer is"}),w(il,{...J,face:D.back})]})]}),v&&D.explanation&&w("section",{className:"squisq-flashcards__explanation","aria-label":"Explanation",children:[w("span",{className:"squisq-flashcards__answer-label",children:"Explanation"}),w(il,{...J,face:D.explanation})]})]}),w("footer",{className:"squisq-flashcards__footer",children:[w("button",{type:"button",className:"squisq-flashcards__button",disabled:b===0&&!v,onClick:C,children:"Previous"}),w("div",{className:"squisq-flashcards__primary-actions",children:v&&D.kind==="basic"?w(Pe,{children:[w("button",{type:"button",className:"squisq-flashcards__button",onClick:()=>V("again"),children:"Again"}),w("button",{type:"button",className:"squisq-flashcards__button squisq-flashcards__button--primary",onClick:()=>V("got-it"),children:"Got it"})]}):w("button",{type:"button",className:"squisq-flashcards__button squisq-flashcards__button--primary",onClick:B,children:v?b===L.length-1?"Finish":"Next card":"Reveal answer"})})]}),w("p",{className:"squisq-flashcards__shortcut-hint",children:["Use \u2190 and \u2192 to navigate, Space to reveal",D.kind==="multiple-choice"?", or 1\u20139 to answer":"","."]})]})}var fW=new Set(["a","an","the","and","but","or","for","nor","on","at","to","in","of","by","is"]);function dy(e){let t=new Map;for(let n of e.blocks)if(rt(n)&&n.template==="sectionHeader"&&"title"in n){let r=n.audioSegment;t.has(r)||t.set(r,n.title);}for(let n=0;n<e.audio.segments.length;n++){if(t.has(n))continue;let r=e.audio.segments[n].name;if(r.includes("intro"))t.set(n,"Introduction");else if(r.includes("flight-context"))t.set(n,"Flight Context");else {let i=r.split("-").map((a,o)=>o===0||!fW.has(a)?a.charAt(0).toUpperCase()+a.slice(1):a).join(" ");t.set(n,i);}}return t}function xd(e,t,n){if(e)return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[n]}function pW(e){if(typeof e!="string")return;let t=e.trim().toLowerCase();if(t==="background"||t==="behind")return "background";if(t==="full-frame"||t==="fullscreen"||t==="full")return "full-frame";if(t==="picture-in-picture"||t==="pip"||t==="overlay")return "picture-in-picture"}function hW(e){if(typeof e!="string")return;let t=e.trim().toLowerCase();if(t==="small"||t==="sm"||t==="pip-small")return "small";if(t==="large"||t==="lg"||t==="big"||t==="pip-large")return "large"}function gW(e){if(typeof e!="string")return;let t=e.trim().toLowerCase();if(t==="square"||t==="1:1")return "square";if(t==="wide"||t==="16:9"||t==="widescreen")return "wide"}function yW(e){if(typeof e!="string")return;let t=e.trim().toLowerCase().replace(/[_\s]+/g,"-");return {"top-left":"top-left","upper-left":"top-left","top-right":"top-right","upper-right":"top-right","bottom-left":"bottom-left","lower-left":"bottom-left","bottom-right":"bottom-right","lower-right":"bottom-right"}[t]}function _A(e,t={}){let n=e.frontmatter,r=Hg(n,{...t.showCoverSlide!==void 0?{enabled:t.showCoverSlide}:{},...t.coverSlideTemplate!==void 0?{template:t.coverSlideTemplate}:{},...t.coverSlideDuration!==void 0?{duration:t.coverSlideDuration}:{},...t.coverSlidePlayback!==void 0?{playback:t.coverSlidePlayback}:{}});return {theme:t.theme??oa(e),videoPresentation:t.videoPresentation??pW(xd(n,"squisq-video-presentation","video-presentation"))??"background",pipSize:t.pipSize??hW(xd(n,"squisq-pip-size","pip-size"))??"small",pipShape:t.pipShape??gW(xd(n,"squisq-pip-shape","pip-shape"))??"square",pipPosition:t.pipPosition??yW(xd(n,"squisq-pip-position","pip-position"))??"bottom-right",showCoverSlide:r.enabled,coverSlideTemplate:r.template,coverSlideDuration:r.duration,coverSlidePlayback:r.playback}}function bW(){try{return typeof process<"u"&&!1}catch{return false}}var AA=false,wW=100,CA=1e-6;function my(){return new Promise(e=>{let t=false,n=null,r=()=>{t||(t=true,window.clearTimeout(i),n!==null&&window.cancelAnimationFrame(n),e());},i=window.setTimeout(r,document.visibilityState==="visible"?wW:0);document.visibilityState==="visible"&&(n=window.requestAnimationFrame(r));})}function IA(e){let{doc:t,markdown:n}=e,r=de(()=>!t&&n!==void 0?Jr(Jt(n)):void 0,[t,n]),i=t??r;return i?e.displayMode==="flashcards"?w("div",{className:"doc-player doc-player--flashcards",children:w(EA,{doc:i,basePath:e.basePath,theme:e.theme,globalKeyboardShortcuts:e.globalKeyboardShortcuts,showCodeCopyButton:e.showCodeCopyButton,onCopyCode:e.onCopyCode,fenceRenderers:e.fenceRenderers,viewport:e.forceViewport})}):w(kW,{...e,doc:i}):w("div",{className:"doc-player doc-player--empty"})}function kW({doc:e,basePath:t=".",renderMode:n=false,animationsEnabled:r=true,autoPlay:i=false,loop:a=false,onEnded:o,onTimeUpdate:s,audioController:l,audioMode:c="media",showControls:u=true,showScrubber:d=false,muted:m=false,captionsEnabled:f,onCaptionsToggle:h,onPlaybackStateChange:y,onControlsReady:g,onRenderAPIReady:b,renderVideoFrameSelector:x,processedAudio:v,isFullscreen:T=false,onFullscreenToggle:E,onBlockMarkers:k,forceViewport:S,displayMode:I="video",dashboardLayout:_,dashboardShowTitle:A,dashboardStyle:R,dashboardDocumentTitle:F,showCoverSlide:L,coverSlideTemplate:D,coverSlideDuration:P,coverSlidePlayback:z,coverVisible:$,theme:H,motion:B,surface:C,captionStyle:U="standard",captionPosition:V,videoPresentation:M,pipSize:J,pipShape:we,pipPosition:me,enableSwipe:Y=true,globalKeyboardShortcuts:se=false,showCodeCopyButton:ye=false,onCopyCode:fe,fenceRenderers:ce,tableContentRenderer:K}){let oe=I==="slideshow",Te=I==="linear",Le=I==="dashboard",De=ue(null),Ke=ue(null),gt=`squisq-player-${Xt().replace(/:/g,"")}`,[Gt,on]=ge(null),Tt=ue(),{viewport:un}=z_(),$e=S||(n?Je.landscape:un),dn=$e.height>$e.width?"portrait":"landscape",ut=de(()=>typeof window>"u"?false:new URLSearchParams(window.location.search).get("debug")==="true",[]),G=de(()=>c==="synthetic"?Dl(e):0,[c,e]),re=F_(De,e.audio,t,!l,c,G),_e=l||re;he(()=>{if(AA||!bW())return;let X=Ke.current;if(!X||typeof getComputedStyle!="function")return;getComputedStyle(X).getPropertyValue("--squisq-styles-loaded").trim()||(AA=true,console.warn('[squisq] @bendyline/squisq-react/styles is not loaded \u2014 import "@bendyline/squisq-react/styles"'));},[]);let{currentTime:Me,isPlaying:Ee,currentSegment:st,totalDuration:Ye,isEnded:Yt,isReady:Bn,isAvailable:An,unavailableMessage:wt,play:Nt,pause:lt,toggle:fy,seekTo:Mt,skipToSegment:AW,restart:al}=_e,[py,qA]=ge(null),PA=py?.doc===e?py.time:null,dt=n?PA??Me:Me,RA=de(()=>ya(e),[e]),hy=Xx(RA,t),NA=de(()=>ya(e,{intrinsicDuration:X=>hy.get(X.src),...v?{processedAudio:v}:{}}),[e,hy,v]),ol=ve(()=>{if(n)return;let X=Ke.current;if(!X)return;X.querySelectorAll('.doc-player__block--active video[data-clip-start], [data-clip-id][data-active="true"]').forEach(Re=>{let mt=Re.play();mt&&mt.catch(()=>{});});},[n]),sl=ve(()=>(ol(),Nt()),[Nt,ol]),ua=ve(()=>(Ee||ol(),fy()),[Ee,ol,fy]),Td=ue(dt);Td.current=dt;let Sd=ue(dt),ll=ue([]),gy=ue(x);gy.current=x;let yy=ue(null),by=ue(Ye);by.current=Ye;let wy=ue(0);kn(()=>{Sd.current=dt;let X=ll.current;ll.current=X.filter(xe=>Math.abs(xe.time-dt)>CA?true:(xe.resolve(),false));},[dt]),he(()=>()=>{let X=new Error("DocPlayer unmounted before the requested frame committed.");ll.current.splice(0).forEach(xe=>xe.reject(X));},[]);let ky=ve(X=>Math.abs(Sd.current-X)<=CA?Promise.resolve():new Promise((xe,Re)=>{ll.current.push({time:X,resolve:xe,reject:Re});}),[]),DA=ve(X=>{if(n||Te)return;let xe=X.target;if(oe){xe.closest('button, a, input, textarea, select, [contenteditable="true"]')||Ke.current?.focus({preventScroll:true});return}if(xe.closest('button, a, input, textarea, select, [contenteditable="true"], .doc-player__controls, .doc-player__scrubber, .doc-controls-sidebar, .doc-controls-slideshow'))return;Ke.current?.focus({preventScroll:true}),ua(),on(Ee?"pause":"play"),clearTimeout(Tt.current),Tt.current=setTimeout(()=>on(null),600);},[n,ua,Ee,oe,Te]),OA=yd(C==="auto"),Ed=C==="auto"?OA:C,wn=de(()=>_A(e,{theme:H,videoPresentation:M,pipSize:J,pipShape:we,pipPosition:me,showCoverSlide:L,coverSlideTemplate:D,coverSlideDuration:P,coverSlidePlayback:z}),[e,H,M,J,we,me,L,D,P,z]),$n=de(()=>{let X=wn.theme;return Ed?Co(X,Ed):X},[wn.theme,Ed]),mo=de(()=>Am($n),[$n]),FA=mo,BA=de(()=>({border:mo["--squisq-pip-border"],borderRadius:mo["--squisq-pip-radius"],boxShadow:mo["--squisq-pip-shadow"]}),[mo]),$A=de(()=>e.blocks.some(X=>typeof X.sourceStartTime=="number"),[e.blocks]),{currentBlock:or,currentBlockIndex:Cn,previousBlock:cl,isEntering:HA,isExiting:zA,blockTime:xy,docProgress:_d,blocks:We,suppressOutgoingForNextBlock:vy}=H_(e,dt,{basePath:t,viewport:$e,theme:$n,motion:B,onSeek:Mt,deterministicTransitions:n,useAudioSegmentTiming:c!=="synthetic"||n&&$A}),Lt=de(()=>{let X=e.startBlock;if(!wn.showCoverSlide||!X)return null;let xe=Mn($n,0,1,$e,{motion:wa(e,$n,B)});return {id:"cover-block",startTime:-1,duration:0,audioSegment:-1,layers:fg(X,xe,wn.coverSlideTemplate)}},[e,B,$e,$n,wn.showCoverSlide,wn.coverSlideTemplate]),Ad=!!Lt,[ul,Er]=ge(false),[UA,Ty]=ge(false),Sy=ue("");he(()=>{let X=`${e.articleId}:${oe}:${Ad}:${n}`;Sy.current!==X&&(Sy.current=X,oe&&Ad&&!n?(Er(true),lt()):Er(false));},[e.articleId,oe,Ad,n,lt]);let[jA,Cd]=ge(false),[WA,Id]=ge(false),Md=ue(),dl=ue(false),ml=ue(false);he(()=>{ml.current=false,dl.current=false,clearTimeout(Md.current),Id(false),Cd(false);},[e]),Lt&&!oe&&!Ee&&dt===0&&!ml.current&&!n&&!i&&(dl.current=true),he(()=>{Ee&&dl.current&&Lt&&!n&&!oe&&(dl.current=false,ml.current=true,Id(true),Md.current=setTimeout(()=>Id(false),wn.coverSlideDuration*1e3));},[Ee,Lt,n,oe,wn.coverSlideDuration]),he(()=>()=>clearTimeout(Md.current),[]),he(()=>()=>clearTimeout(Tt.current),[]);let VA=!Te&&!!Lt&&(jA||!oe&&(WA||!Ee&&dt===0&&!ml.current&&!n&&!i)),Ey=$??ul,fo=!!(oe&&!Te&&!n&&Lt&&Ey),_r=$===void 0?VA||fo:!!Lt&&$,mn=!!(oe&&!n&&Lt),Ar=mn?Ey?0:Cn+1:Cn,fl=mn?We.length+1:We.length,Ld=ue(false);he(()=>{Ld.current=false;},[e]),he(()=>{Bn&&i&&!Ld.current&&(Ld.current=true,sl());},[Bn,i,sl]),he(()=>{s?.(dt);},[dt,s]),he(()=>{Yt&&(o?.(),a&&!oe&&!Te&&!Le&&al());},[Yt,Le,Te,oe,a,o,al]);let da=ue(null),qd=ue(null);if(!qd.current){let X=()=>{let xe=da.current;if(!xe)throw new Error("Squisq render API is not currently available.");return xe};qd.current={seekTo:xe=>X().seekTo(xe),getRenderedTime:()=>X().getRenderedTime(),getDuration:()=>X().getDuration(),getViewport:()=>X().getViewport(),getBlocks:()=>X().getBlocks(),getAudioSegments:()=>X().getAudioSegments(),getCaptions:()=>X().getCaptions(),getChapters:()=>X().getChapters(),showCover:()=>X().showCover(),hideCover:()=>X().hideCover(),hasCoverBlock:()=>X().hasCoverBlock()};}let _y=qd.current;he(()=>{if(Le||!n&&!ut){da.current=null;return}let X=Ke.current;if(!X){da.current=null;return}let qy={seekTo:async He=>{if(n){let Qe=ky(He);Ab(()=>qA({doc:e,time:He})),l&&Mt(He).catch(()=>{}),await Qe;}else await Mt(He);let sr=-1;for(let Qe=We.length-1;Qe>=0;Qe--)if(He>=We[Qe].startTime){sr=Qe;break}let go=sr>=0?We[sr].startTime:0,JA=sr>0?We[sr-1].startTime:go,Py=(He-go)*1e3,e5=(He-JA)*1e3,Ry=async(Qe,kt)=>{let qt=n?gy.current:void 0;qt&&await qt(Qe,kt)||await y0(Qe,kt);},Ny=0;(X.getAnimations?.({subtree:true})??[]).forEach(Qe=>{let kt=Qe.effect?.target;if(!kt)return;let qt;kt.closest(".doc-player__block--previous")?qt=kt.classList.contains("block-svg")?Py:e5:kt.closest(".doc-player__block--active")?qt=Py:kt.closest(".doc-player__block--cover")?qt=0:qt=He*1e3,n&&typeof Qe.pause=="function"&&Qe.playState!=="paused"&&Qe.pause(),Qe.currentTime=Math.max(0,qt);let pa=Qe.effect?.getComputedTiming?.().endTime;(typeof pa!="number"||qt<pa)&&(Ny+=1);});let t5=He-go,Nd=[],Dy=X.querySelector(".doc-player__block--active");Dy&&Dy.querySelectorAll("video[data-clip-start]").forEach(kt=>{let qt=kt,pa=parseFloat(qt.dataset.clipStart||"0"),Od=parseFloat(qt.dataset.clipEnd||"0"),Fd=parseFloat(qt.dataset.startAt||"0"),r5=Math.min(pa+Math.max(0,t5-Fd),Od);Nd.push(Ry(qt,r5));}),X.querySelectorAll("video[data-clip-id]").forEach(Qe=>{let kt=Qe,qt=parseFloat(kt.dataset.absStart||"0"),pa=parseFloat(kt.dataset.absEnd||"0"),Od=parseFloat(kt.dataset.sourceIn||"0");if(kt.pause(),He<qt||He>=pa)return;let Fd=Od+(He-qt);Nd.push(Ry(kt,Fd));}),await Promise.all(Nd);let Dd=Array.from(X.querySelectorAll(".doc-player__block"),Qe=>({element:Qe,className:Qe.className})),wl=yy.current;yy.current=Dd;let n5=wl!==null&&wl.length===Dd.length&&Dd.every((Qe,kt)=>Qe.element===wl[kt].element&&Qe.className===wl[kt].className);(!n||!n5||Ny>0)&&await my();},getRenderedTime:()=>Sd.current,getDuration:()=>{let He=Dl(e);return Ye>0?Math.max(Ye,He):He},getViewport:()=>({width:$e.width,height:$e.height}),getBlocks:()=>We.map(He=>({id:He.id,template:He.template??"raw",startTime:He.startTime,duration:He.duration})),getAudioSegments:()=>e.audio.segments.map(He=>({src:He.src,name:He.name,duration:He.duration,startTime:He.startTime})),getCaptions:()=>e.captions?.phrases?.map(He=>({text:He.text,startTime:He.startTime,endTime:He.endTime}))||[],getChapters:()=>{let He=dy(e);return e.audio.segments.map((sr,go)=>({title:He.get(go)||sr.name,startTime:sr.startTime,duration:sr.duration}))},showCover:()=>(Cd(true),my()),hideCover:()=>(Cd(false),my()),hasCoverBlock:()=>!!Lt};return da.current=qy,()=>{da.current===qy&&(da.current=null);}},[n,ut,Mt,Ye,We,Lt,e,l,ky,Le,$e]),he(()=>{if(!Le){if(!n&&!ut||!Ke.current){b?.(null);return}return b?.(_y),()=>b?.(null)}},[n,ut,Le,b,_y]);let Pd=f===false?"off":U||"standard",[pl,Rd]=ge(Pd);he(()=>{Rd(Pd);},[Pd]);let oi=pl!=="off",GA=pl==="social"?"social":"standard",Ay=ve(X=>{Rd(X?U||"standard":"off"),h?.(X);},[h,U]),Cy=ve(()=>{Rd(X=>{let xe=X==="off"?"standard":X==="standard"?"social":"off";return h?.(xe!=="off"),xe});},[h]),ma=e.captions&&e.captions.phrases.length>0,[Iy,YA]=ge(null);he(()=>{let X=Ke.current;if(!X||n||!ma)return;let xe=()=>{let mt=X.offsetWidth,fa=X.offsetHeight;mt<=0||fa<=0||YA(li=>li&&li.width===mt&&li.height===fa?li:{width:mt,height:fa});};xe();let Re=typeof ResizeObserver>"u"?null:new ResizeObserver(xe);return Re?.observe(X),window.addEventListener("resize",xe),()=>{Re?.disconnect(),window.removeEventListener("resize",xe);}},[n,ma,Te,Le]);let My=!n&&Iy?{...$e,...Iy}:$e,Ly=de(()=>dy(e),[e]),po=de(()=>({isPlaying:Ee,currentTime:dt,totalDuration:Ye,isCoverVisible:_r,currentBlockIndex:Ar,totalBlocks:fl,docProgress:_d,hasCaptions:!!ma,captionsEnabled:oi,captionMode:pl,isFullscreen:T,currentSegmentIndex:st,currentSegmentName:Ly.get(st)??e.audio.segments[st]?.name??null,currentBlock:fo?Lt:or??null,currentSlideLabel:fo?"Cover":void 0,currentSlideNumber:mn&&!fo?Cn+1:void 0,totalSlideNumber:mn?We.length:void 0}),[Ee,dt,Ye,_r,Ar,fl,_d,ma,oi,pl,T,st,Ly,or,Cn,fo,Lt,mn,We.length]),hl=de(()=>({toggle:ua,restart:al,seekTo:Mt,setCaptionsEnabled:Ay,cycleCaptionMode:Cy,toggleFullscreen:E}),[ua,al,Mt,Ay,Cy,E]),Hn=de(()=>({nextSlide:()=>{if(mn&&ul){let X=We[0];X&&(Er(false),Mt(X.startTime),lt());return}if(Cn<We.length-1){let X=We[Cn+1];X&&(Er(false),Mt(X.startTime),lt());}},prevSlide:()=>{if(mn&&!ul&&Cn<=0){Er(true),Mt(0),lt();return}if(Cn>0){let X=We[Cn-1];X&&(Er(false),Mt(X.startTime),lt());}},goToSlide:X=>{if(mn){if(X===0){Er(true),Mt(0),lt();return}let xe=We[X-1];xe&&(Er(false),Mt(xe.startTime),lt());return}if(X>=0&&X<We.length){let xe=We[X];xe&&(Mt(xe.startTime),lt());}}}),[Cn,We,Mt,lt,mn,ul]),gl=oe&&!Te&&!n&&Y,yl=ve(X=>{let xe=X-(mn?1:0),Re=We[xe];Re&&vy(Re.id);},[We,mn,vy]),XA=ve(()=>{yl(Ar+1),Hn.nextSlide();},[yl,Ar,Hn]),KA=ve(()=>{yl(Ar-1),Hn.prevSlide();},[yl,Ar,Hn]),Cr=U_({enabled:gl,containerRef:Ke,canGoNext:Ar<fl-1,canGoPrev:Ar>0,onNext:XA,onPrev:KA});he(()=>{y?.(po);},[po,y]),he(()=>{g?.({play:sl,pause:lt,...hl});},[sl,lt,hl,g]);let si=ve(X=>{let xe=X;if(rt(xe)){let Re=xe;if(typeof Re.title=="string")return Re.title;if(typeof Re.stat=="string")return Re.stat;if(typeof Re.quote=="string"){let mt=Re.quote.split(`
|
|
758
758
|
`)[0];return mt.length<=30?mt:mt.slice(0,27)+"..."}if(typeof Re.date=="string")return Re.date;if(typeof Re.fact=="string")return Re.fact}if(X.layers&&Array.isArray(X.layers)){let Re=X.layers.find(mt=>mt.type==="text");if(Re?.content?.text){let mt=Re.content.text.split(`
|
|
759
|
-
`)[0];return mt.length<=30?mt:mt.slice(0,27)+"..."}}return X.id.replace(/-/g," ").replace(/\b\w/g,Re=>Re.toUpperCase())},[]),QA=de(()=>{let X=We.map((xe,Re)=>({id:xe.id,label:String(Re+1),summary:si(xe)}));return !mn||!Lt?X:[{id:"__cover__",label:"Cover",summary:si(Lt)},...X]},[Lt,We,si,mn]),ho=de(()=>{if(!Ye||!We.length)return [];let X=-1;return We.map((xe,Re)=>{let mt=xe.audioSegment!==X;return X=xe.audioSegment,{block:xe,index:Re,position:xe.startTime/Ye*100,title:si(xe),isSectionStart:mt}})},[We,Ye,si]);he(()=>{ho.length>0&&k?.(ho);},[ho,k]),wy.current=oe?fl:We.length;let bl=ve((X,xe)=>{if(X.defaultPrevented||X.altKey||X.ctrlKey||X.metaKey||X.shiftKey)return;let Re=X.target instanceof Element?X.target:null,mt=!!Re?.closest('input, textarea, select, [contenteditable]:not([contenteditable="false"]), [role="textbox"], [role="combobox"], [role="listbox"], [role="slider"], [role="spinbutton"], .monaco-editor'),fa=!!Re?.closest('[role="menu"], [role="dialog"], [aria-modal="true"]'),li=oe&&!!Re?.closest(".doc-controls-slideshow")&&!Re.closest('[role="menu"]');if(!(mt||xe&&fa||!xe&&Re?.closest('input, textarea, select, button, a, [contenteditable]:not([contenteditable="false"]), [role="textbox"]')&&!li)&&!(Te||Le)){if(X.key==="f"||X.key==="F"){if(!E)return;X.preventDefault(),E();return}if(oe)switch(X.key){case "ArrowRight":case "ArrowDown":case " ":X.preventDefault(),Hn.nextSlide();break;case "ArrowLeft":X.preventDefault(),Hn.prevSlide();break;case "ArrowUp":X.preventDefault(),Ty(true);break;case "Home":X.preventDefault(),Hn.goToSlide(0);break;case "End":X.preventDefault(),Hn.goToSlide(wy.current-1);break}else switch(X.key){case " ":X.preventDefault(),ua();break;case "ArrowRight":X.preventDefault(),Mt(Math.min(Td.current+10,by.current));break;case "ArrowLeft":X.preventDefault(),Mt(Math.max(Td.current-10,0));break}}},[oe,Te,Le,ua,Mt,Hn,E]),ZA=ve(X=>bl(X,false),[bl]);return he(()=>{if(!se||n||Te||Le)return;let X=xe=>{bl(xe,true);};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[se,bl,Le,Te,n]),Te?w("div",{ref:Ke,"data-player-id":gt,className:"doc-player doc-player--linear",style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},children:w(kd,{doc:e,basePath:t,viewport:$e,theme:H,surface:C,animationsEnabled:r,showCodeCopyButton:ye,onCopyCode:fe,fenceRenderers:ce})}):Le?w("div",{ref:Ke,"data-player-id":gt,className:"doc-player doc-player--dashboard",style:{position:"relative",width:"100%",aspectRatio:`${$e.width} / ${$e.height}`,margin:"0 auto",overflow:"hidden"},children:w(vA,{doc:e,theme:H,viewport:$e,layout:_,showTitle:A,style:R,documentTitle:F,basePath:t,animationsEnabled:r,muted:n||m,renderMode:n||ut,onRenderAPIReady:b})}):w("div",{ref:Ke,"data-player-id":gt,"data-orientation":dn,"data-playback-state":Ee?"playing":"paused","data-swipe-phase":Cr.phase,tabIndex:n?-1:0,role:"region","aria-label":"Document player",onKeyDown:n?void 0:ZA,className:`doc-player${n?" doc-player--render-mode":""}${gl?" doc-player--swipe":""}${Cr.phase==="dragging"?" doc-player--grabbing":""}`,onClick:DA,onPointerDown:Cr.onPointerDown,style:{...FA,position:"relative",width:"100%",aspectRatio:`${$e.width} / ${$e.height}`,margin:"0 auto",overflow:"hidden",cursor:n||gl?void 0:"pointer",touchAction:gl?"pan-y":void 0},children:[w("audio",{ref:De,preload:"auto",muted:m}),w(Gx,{schedule:NA,currentTime:dt,isPlaying:Ee,basePath:t,renderMode:n,muted:m,presentation:wn.videoPresentation,pipSize:wn.pipSize,pipShape:wn.pipShape,pipPosition:wn.pipPosition,pipOrientation:dn,pipFrameStyle:BA}),w("div",{className:"doc-player__viewport",children:[_r&&Lt&&w("div",{className:"doc-player__block doc-player__block--cover",children:w(an,{block:Lt,blockTime:0,basePath:t,isEntering:false,viewport:$e,muted:n||m,animationsEnabled:r,theme:$n,tableContentRenderer:K,growTextToFit:oe,videoEmbeds:n?"placeholder":"poster"})}),r&&!_r&&cl&&zA&&w("div",{className:"doc-player__block doc-player__block--previous",children:w(an,{block:cl,blockTime:Math.max(0,dt-cl.startTime),basePath:t,isExiting:true,transition:or?.transition,viewport:$e,muted:n||m,animationsEnabled:r,theme:$n,tableContentRenderer:K,growTextToFit:oe,videoEmbeds:n?"placeholder":"poster"})},cl.id),or&&w("div",{className:`doc-player__block doc-player__block--active${Cr.phase!=="idle"?` doc-player__block--${Cr.phase}`:""}`,"aria-hidden":_r||void 0,style:_r||Cr.phase!=="idle"?{...Cr.phase!=="idle"?{transform:`translateX(${Cr.offsetPx}px)`}:{},..._r?{opacity:0,pointerEvents:"none"}:{}}:void 0,children:w(an,{block:or,blockTime:xy,basePath:t,isEntering:r&&HA,viewport:$e,isPlaying:Ee,muted:n||m,animationsEnabled:r,theme:$n,tableContentRenderer:K,growTextToFit:oe,videoEmbeds:n?"placeholder":"player"})},or.id),ma&&(n?oi:true)&&w(N_,{captions:e.captions,currentTime:dt,enabled:oi&&(n||Ee||dt>0),fontSize:Math.min(34,Math.max(16,Math.round(My.height*.026))),captionStyle:GA,captionPosition:V,theme:$n,viewport:My}),ut&&w("div",{className:"doc-player__debug",style:{position:"absolute",top:"8px",right:"8px",padding:"8px 12px",background:"rgba(0, 0, 0, 0.85)",borderRadius:"6px",color:"#00ff00",fontFamily:"monospace",fontSize:"11px",lineHeight:"1.5",zIndex:200,maxWidth:"280px",pointerEvents:"none",textAlign:"left"},children:[w("div",{style:{color:"#ffcc00",fontWeight:"bold",marginBottom:"4px"},children:"DEBUG MODE"}),w("div",{children:[w("span",{style:{color:"#888"},children:"template:"})," ",w("span",{style:{color:"#ff6b6b"},children:or?.template??"raw"})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"block:"})," ",Cn+1,"/",We.length," ",w("span",{style:{color:"#666"},children:["(",or?.id||"none",")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"time:"})," ",dt.toFixed(2),"s /"," ",Ye.toFixed(1),"s"," ",w("span",{style:{color:"#666"},children:["(progress: ",(_d*100).toFixed(1),"%, scriptDur: ",e.duration.toFixed(1),")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"blockTime:"})," ",xy.toFixed(2),"s /"," ",(or?.duration||0).toFixed(1),"s"]}),w("div",{children:[w("span",{style:{color:"#888"},children:"segment:"})," ",st,"/",e.audio.segments.length-1," ",w("span",{style:{color:"#666"},children:["(",e.audio.segments[st]?.name||"none",")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"viewport:"})," ",$e.name||`${$e.width}x${$e.height}`," ",w("span",{style:{color:"#666"},children:["(",dn,")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"playing:"})," ",w("span",{style:{color:Ee?"#4ade80":"#f87171"},children:Ee?"yes":"no"}),_r&&w("span",{style:{color:"#60a5fa"},children:" (cover)"})]}),ma&&(()=>{let X=Io(e.captions,dt),xe=oi&&(Ee||dt>0);return w(Pe,{children:[w("div",{children:[w("span",{style:{color:"#888"},children:"captions:"})," ",e.captions?.phrases.length||0," phrases"," ",w("span",{style:{color:oi?"#4ade80":"#666"},children:["(",oi?"on":"off",")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"cc.enabled:"})," ",w("span",{style:{color:xe?"#4ade80":"#f87171"},children:String(xe)})," ",w("span",{style:{color:"#666"},children:["(playing=",String(Ee)," t>0=",String(dt>0),")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"cc.phrase:"})," ",w("span",{style:{color:X?"#4ade80":"#f87171"},children:X?`"${X.text.slice(0,30)}..."`:"null"})]}),X&&w("div",{children:[w("span",{style:{color:"#888"},children:"cc.range:"})," ",w("span",{style:{color:"#60a5fa"},children:[X.startTime.toFixed(2),"-",X.endTime.toFixed(2)]})]})]})})()]})]}),!n&&!An&&wt&&w("div",{className:"doc-player__unavailable",style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"16px",background:"rgba(0, 0, 0, 0.7)",color:"rgba(255, 255, 255, 0.9)",fontSize:"14px",zIndex:50},children:[w("span",{style:{fontSize:"32px"},children:"\u{1F50A}"}),w("span",{children:wt})]}),!n&&!oe&&u&&w(j_,{state:po,actions:hl,blockMarkers:ho,expandedBlocks:We,getBlockTitle:si}),!n&&!oe&&!u&&d&&w("div",{className:"doc-player__scrubber",style:{position:"absolute",bottom:0,left:0,right:0,padding:"12px 16px 8px",background:"linear-gradient(transparent, rgba(0,0,0,0.6))",display:"flex",alignItems:"center",zIndex:100},children:w(bd,{state:po,actions:hl,blockMarkers:ho,expandedBlocks:We,getBlockTitle:si})}),!n&&oe&&u&&w(W_,{state:po,slideNav:Hn,slides:QA,pickerOpen:UA,onPickerOpenChange:Ty}),!oe&&Gt&&w("div",{className:"doc-player__tap-feedback",children:w("svg",{viewBox:"0 0 24 24",fill:"white",width:"48",height:"48",children:Gt==="pause"?w("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}):w("path",{d:"M8 5v14l11-7z"})})},Gt)]})}var MA=`.squisq-md-attachment{display:inline-flex;align-items:center;gap:.35em;max-width:100%;border:1px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:999px;padding:.1em .5em;background:color-mix(in srgb,currentColor 8%,transparent);font-size:.86em;line-height:1.35;vertical-align:middle}.squisq-md-attachment>.fa-paperclip{flex:0 0 auto;opacity:.72}.squisq-md-attachment-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes slowZoomIn{0%{transform:scale(1)}to{transform:scale(1.15)}}.squisq-flashcards{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;min-height:420px;overflow:hidden;padding:clamp(18px,4vw,48px);color:var(--squisq-flashcards-text);background:radial-gradient(circle at 12% 5%,color-mix(in srgb,var(--squisq-flashcards-primary) 22%,transparent),transparent 34%),var(--squisq-flashcards-bg);font-family:var(--squisq-flashcards-body-font);outline:none}.squisq-flashcards *,.squisq-flashcards *:before,.squisq-flashcards *:after{box-sizing:border-box}.squisq-flashcards__header,.squisq-flashcards__progress-row,.squisq-flashcards__progress,.squisq-flashcards__card,.squisq-flashcards__footer,.squisq-flashcards__shortcut-hint,.squisq-flashcards__summary,.squisq-flashcards__empty-card{width:min(920px,100%);margin-inline:auto}.squisq-flashcards__header,.squisq-flashcards__footer,.squisq-flashcards__progress-row,.squisq-flashcards__tools,.squisq-flashcards__primary-actions,.squisq-flashcards__summary-actions{display:flex;align-items:center;gap:10px}.squisq-flashcards__header,.squisq-flashcards__footer,.squisq-flashcards__progress-row{justify-content:space-between}.squisq-flashcards__header{flex:0 0 auto;margin-bottom:22px}.squisq-flashcards__deck-copy h1,.squisq-flashcards__summary h2,.squisq-flashcards__empty-card h2{margin:2px 0 0;font:700 clamp(22px,3vw,34px) / 1.1 var(--squisq-flashcards-title-font)}.squisq-flashcards__eyebrow,.squisq-flashcards__answer-label,.squisq-flashcards__label{color:var(--squisq-flashcards-primary);font-size:12px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.squisq-flashcards__tool,.squisq-flashcards__button{min-height:40px;border:1px solid color-mix(in srgb,var(--squisq-flashcards-text) 22%,transparent);border-radius:999px;padding:8px 16px;color:var(--squisq-flashcards-text);background:color-mix(in srgb,var(--squisq-flashcards-surface) 88%,transparent);font:700 14px/1 var(--squisq-flashcards-body-font);cursor:pointer}.squisq-flashcards__tool:hover,.squisq-flashcards__button:hover:not(:disabled){border-color:var(--squisq-flashcards-primary)}.squisq-flashcards__tool:focus-visible,.squisq-flashcards__button:focus-visible,.squisq-flashcards__choice:focus-visible{outline:3px solid color-mix(in srgb,var(--squisq-flashcards-primary) 45%,transparent);outline-offset:2px}.squisq-flashcards__tool[aria-pressed=true],.squisq-flashcards__button--primary{border-color:var(--squisq-flashcards-primary);color:var(--squisq-flashcards-bg);background:var(--squisq-flashcards-primary)}.squisq-flashcards__button:disabled{opacity:.38;cursor:default}.squisq-flashcards__progress-row{flex:0 0 auto;color:var(--squisq-flashcards-muted);font-size:13px}.squisq-flashcards__progress{flex:0 0 auto;height:5px;margin-top:8px;margin-bottom:18px;overflow:hidden;border-radius:999px;background:color-mix(in srgb,var(--squisq-flashcards-text) 12%,transparent)}.squisq-flashcards__progress>span{display:block;height:100%;border-radius:inherit;background:var(--squisq-flashcards-primary);transition:width .22s ease}.squisq-flashcards__card,.squisq-flashcards__summary,.squisq-flashcards__empty-card{border:1px solid color-mix(in srgb,var(--squisq-flashcards-text) 16%,transparent);border-radius:var(--squisq-flashcards-radius);padding:clamp(24px,5vw,58px);background:color-mix(in srgb,var(--squisq-flashcards-surface) 94%,var(--squisq-flashcards-bg));box-shadow:0 28px 80px color-mix(in srgb,#000 26%,transparent)}.squisq-flashcards__card{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.squisq-flashcards__label{margin-bottom:18px}.squisq-flashcards__content-block+.squisq-flashcards__content-block{margin-top:24px}.squisq-flashcards__content-title{margin:0 0 .45em;color:inherit;font-family:var(--squisq-flashcards-title-font);font-size:clamp(24px,4vw,46px);line-height:1.12}.squisq-flashcards__content-block .squisq-flashcards__content-block .squisq-flashcards__content-title{font-size:clamp(19px,2.7vw,30px)}.squisq-flashcards .squisq-md{font-size:clamp(16px,2vw,21px);line-height:1.55}.squisq-flashcards .squisq-md>:first-child{margin-top:0}.squisq-flashcards .squisq-md>:last-child{margin-bottom:0}.squisq-flashcards .squisq-md img,.squisq-flashcards .squisq-md video{max-width:100%;max-height:42vh;border-radius:calc(var(--squisq-flashcards-radius) * .65);object-fit:contain}.squisq-flashcards__canvas{width:min(720px,100%);aspect-ratio:16 / 9;margin-top:18px;overflow:hidden;border-radius:calc(var(--squisq-flashcards-radius) * .65)}.squisq-flashcards__answer,.squisq-flashcards__explanation,.squisq-flashcards__feedback{margin-top:28px;border-top:1px solid color-mix(in srgb,var(--squisq-flashcards-text) 18%,transparent);padding-top:24px;animation:squisq-flashcard-reveal .18s ease-out both}.squisq-flashcards__answer-label{display:block;margin-bottom:12px}.squisq-flashcards__choices{display:grid;gap:12px;margin-top:28px}.squisq-flashcards__choice{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:14px;width:100%;border:1px solid color-mix(in srgb,var(--squisq-flashcards-text) 18%,transparent);border-radius:calc(var(--squisq-flashcards-radius) * .72);padding:14px 18px;color:var(--squisq-flashcards-text);background:color-mix(in srgb,var(--squisq-flashcards-bg) 32%,transparent);text-align:left;cursor:pointer}.squisq-flashcards__choice:not(:disabled):hover{border-color:var(--squisq-flashcards-primary);transform:translateY(-1px)}.squisq-flashcards__choice[data-choice-status=correct]{border-color:var(--squisq-flashcards-highlight);background:color-mix(in srgb,var(--squisq-flashcards-highlight) 14%,transparent)}.squisq-flashcards__choice[data-choice-status=incorrect]{border-color:var(--squisq-flashcards-warning);background:color-mix(in srgb,var(--squisq-flashcards-warning) 14%,transparent)}.squisq-flashcards__choice-key{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;color:var(--squisq-flashcards-muted);background:color-mix(in srgb,var(--squisq-flashcards-text) 10%,transparent);font-weight:800}.squisq-flashcards__choice .squisq-flashcards__content-title{margin:0;font:700 clamp(16px,2vw,20px) / 1.3 var(--squisq-flashcards-body-font)}.squisq-flashcards__choice .squisq-md{font-size:16px}.squisq-flashcards__feedback>strong{color:var(--squisq-flashcards-warning);font:700 20px/1.2 var(--squisq-flashcards-title-font)}.squisq-flashcards__feedback[data-correct=true]>strong{color:var(--squisq-flashcards-highlight)}.squisq-flashcards__correct-answer>span{display:block;margin:12px 0 8px;color:var(--squisq-flashcards-muted);font-size:13px}.squisq-flashcards__footer{flex:0 0 auto;margin-top:18px}.squisq-flashcards__shortcut-hint{flex:0 0 auto;margin-top:12px;color:var(--squisq-flashcards-muted);font-size:12px;text-align:center}.squisq-flashcards__summary,.squisq-flashcards__empty-card{margin-top:min(12vh,120px);text-align:center}.squisq-flashcards__summary p,.squisq-flashcards__empty-card p,.squisq-flashcards__empty-card ul{color:var(--squisq-flashcards-muted)}.squisq-flashcards__summary-actions{justify-content:center;flex-wrap:wrap;margin-top:24px}@keyframes squisq-flashcard-reveal{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:640px){.squisq-flashcards__header,.squisq-flashcards__footer{align-items:stretch;flex-direction:column}.squisq-flashcards__tools,.squisq-flashcards__primary-actions,.squisq-flashcards__footer>.squisq-flashcards__button{width:100%}.squisq-flashcards__tools>*,.squisq-flashcards__primary-actions>*{flex:1}}@media(prefers-reduced-motion:reduce){.squisq-flashcards__progress>span,.squisq-flashcards__answer,.squisq-flashcards__explanation,.squisq-flashcards__feedback{animation:none;transition:none}}@keyframes slowZoomOut{0%{transform:scale(1.15)}to{transform:scale(1)}}@keyframes slowZoomPanLeft{0%{transform:translate(0) scale(1.1)}to{transform:translate(-8%) scale(1.1)}}@keyframes slowZoomPanRight{0%{transform:translate(-8%) scale(1.1)}to{transform:translate(0) scale(1.1)}}@keyframes slowZoomPanUp{0%{transform:translateY(0) scale(1.1)}to{transform:translateY(-8%) scale(1.1)}}@keyframes slowZoomPanDown{0%{transform:translateY(-8%) scale(1.1)}to{transform:translateY(0) scale(1.1)}}@keyframes slowZoomCombinedPanLeft{0%{transform:translate(0) scale(1)}to{transform:translate(-5%) scale(1.12)}}@keyframes slowZoomCombinedPanRight{0%{transform:translate(-5%) scale(1.12)}to{transform:translate(0) scale(1)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes layerSlideInLeft{0%{opacity:0;transform:translate(-40px)}to{opacity:1;transform:translate(0)}}@keyframes layerSlideInRight{0%{opacity:0;transform:translate(40px)}to{opacity:1;transform:translate(0)}}@keyframes layerSlideInTop{0%{opacity:0;transform:translateY(-40px)}to{opacity:1;transform:translateY(0)}}@keyframes layerSlideInBottom{0%{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}@keyframes growIn{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@keyframes growX{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes growY{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes drawOn{0%{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes drawOnMarkers{0%,82%{opacity:0}to{opacity:1}}@keyframes revealFromLeft{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}@keyframes revealFromRight{0%{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0 0 0 0)}}@keyframes revealFromTop{0%{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}@keyframes revealFromBottom{0%{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0 0 0 0)}}@keyframes revealIris{0%{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(75% at 50% 50%)}}@keyframes wordIn{0%{opacity:0}to{opacity:1}}@keyframes drift{0%{transform:translate(0)}50%{transform:translate(var(--drift-x, 12px),var(--drift-y, -10px))}to{transform:translate(0)}}@keyframes tween{0%{opacity:var(--tween-from-opacity, 1);transform:var(--tween-from-transform, none)}to{opacity:var(--tween-to-opacity, 1);transform:var(--tween-to-transform, none)}}@keyframes zoomIn{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes zoomOut{0%{transform:scale(1);opacity:1}to{transform:scale(.9);opacity:0}}@keyframes panLeft{0%{transform:translate(0)}to{transform:translate(-10%)}}@keyframes panRight{0%{transform:translate(-10%)}to{transform:translate(0)}}@keyframes portraitCoverPanRight{0%{object-position:left center}to{object-position:right center}}@keyframes portraitCoverPanLeft{0%{object-position:right center}to{object-position:left center}}@keyframes slideInLeft{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slideOutLeft{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes slideOutRight{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes slideInTop{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes slideInBottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideOutTop{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes slideOutBottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes transitionZoomIn{0%{opacity:0;transform:scale(.82)}to{opacity:1;transform:scale(1)}}@keyframes transitionZoomOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.08)}}@keyframes transitionFlipIn{0%{opacity:0;transform:perspective(1400px) rotateY(-72deg) scale(.96)}to{opacity:1;transform:perspective(1400px) rotateY(0) scale(1)}}@keyframes transitionFlipOut{0%{opacity:1;transform:perspective(1400px) rotateY(0) scale(1)}to{opacity:0;transform:perspective(1400px) rotateY(56deg) scale(.96)}}@keyframes transitionRotateIn{0%{opacity:0;transform:rotate(-8deg) scale(.88)}to{opacity:1;transform:rotate(0) scale(1)}}@keyframes transitionRotateOut{0%{opacity:1;transform:rotate(0) scale(1)}to{opacity:0;transform:rotate(8deg) scale(1.04)}}@keyframes transitionDissolveIn{0%{opacity:0;filter:blur(10px)}60%{opacity:.72}to{opacity:1;filter:blur(0)}}@keyframes transitionDissolveOut{0%{opacity:1;filter:blur(0)}to{opacity:0;filter:blur(12px)}}@keyframes transitionMorphIn{0%{opacity:0;filter:blur(16px) saturate(.8);transform:scale(1.025)}to{opacity:1;filter:blur(0) saturate(1);transform:scale(1)}}@keyframes transitionMorphOut{0%{opacity:1;filter:blur(0) saturate(1);transform:scale(1)}to{opacity:0;filter:blur(16px) saturate(.85);transform:scale(.985)}}@keyframes transitionHold{0%,to{opacity:1;transform:none}}@keyframes transitionWipeLeftIn{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}@keyframes transitionWipeLeftOut{0%{clip-path:inset(0)}to{clip-path:inset(0 0 0 100%)}}@keyframes transitionWipeRightIn{0%{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0)}}@keyframes transitionWipeRightOut{0%{clip-path:inset(0)}to{clip-path:inset(0 100% 0 0)}}@keyframes transitionWipeUpIn{0%{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0)}}@keyframes transitionWipeUpOut{0%{clip-path:inset(0)}to{clip-path:inset(0 0 100% 0)}}@keyframes transitionWipeDownIn{0%{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}@keyframes transitionWipeDownOut{0%{clip-path:inset(0)}to{clip-path:inset(100% 0 0 0)}}@keyframes transitionSplitHorizontalIn{0%{clip-path:inset(0 50% 0 50%)}to{clip-path:inset(0)}}@keyframes transitionSplitHorizontalOut{0%{clip-path:inset(0)}to{clip-path:inset(0 50% 0 50%)}}@keyframes transitionSplitVerticalIn{0%{clip-path:inset(50% 0 50% 0)}to{clip-path:inset(0)}}@keyframes transitionSplitVerticalOut{0%{clip-path:inset(0)}to{clip-path:inset(50% 0 50% 0)}}@keyframes transitionCircleIn{0%{clip-path:circle(0% at 50% 50%);opacity:.4}to{clip-path:circle(75% at 50% 50%);opacity:1}}@keyframes transitionCircleOut{0%{clip-path:circle(75% at 50% 50%);opacity:1}to{clip-path:circle(0% at 50% 50%);opacity:0}}@keyframes transitionDiamondIn{0%{clip-path:polygon(50% 50%,50% 50%,50% 50%,50% 50%);opacity:.35}to{clip-path:polygon(50% -30%,130% 50%,50% 130%,-30% 50%);opacity:1}}@keyframes transitionDiamondOut{0%{clip-path:polygon(50% -30%,130% 50%,50% 130%,-30% 50%);opacity:1}to{clip-path:polygon(50% 50%,50% 50%,50% 50%,50% 50%);opacity:0}}@keyframes transitionPlusIn{0%{clip-path:polygon(50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%);opacity:.45}70%{clip-path:polygon(43% 0,57% 0,57% 43%,100% 43%,100% 57%,57% 57%,57% 100%,43% 100%,43% 57%,0 57%,0 43%,43% 43%);opacity:1}to{clip-path:inset(0);opacity:1}}@keyframes transitionPlusOut{0%{clip-path:inset(0);opacity:1}to{clip-path:polygon(50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%);opacity:0}}@keyframes transitionFlashIn{0%{opacity:0;filter:brightness(2.8) contrast(1.5);transform:scale(1.04)}42%{opacity:1;filter:brightness(3.5) contrast(1.8)}to{opacity:1;filter:brightness(1) contrast(1);transform:scale(1)}}@keyframes transitionFlashOut{0%{opacity:1;filter:brightness(1) contrast(1)}55%{opacity:.9;filter:brightness(3) contrast(1.6)}to{opacity:0;filter:brightness(.4) contrast(1)}}@keyframes transitionNewsflashIn{0%{opacity:0;filter:brightness(3) contrast(1.8);transform:scale(.72) rotate(-2deg)}45%{opacity:1;filter:brightness(2.8) contrast(1.6);transform:scale(1.08) rotate(1deg)}to{opacity:1;filter:brightness(1) contrast(1);transform:scale(1) rotate(0)}}@keyframes transitionNewsflashOut{0%{opacity:1;filter:brightness(1) contrast(1);transform:scale(1)}to{opacity:0;filter:brightness(2.4) contrast(1.6);transform:scale(1.18) rotate(2deg)}}@keyframes transitionFallOverIn{0%{opacity:0;transform:perspective(1200px) rotateX(-72deg) translateY(-8%);transform-origin:50% 100%}to{opacity:1;transform:perspective(1200px) rotateX(0) translateY(0);transform-origin:50% 100%}}@keyframes transitionFallOverOut{0%{opacity:1;transform:perspective(1200px) rotateX(0) translateY(0);transform-origin:50% 100%}to{opacity:0;transform:perspective(1200px) rotateX(76deg) translateY(8%);transform-origin:50% 100%}}@keyframes transitionDrapeIn{0%{opacity:0;transform:perspective(1200px) rotateX(-42deg) skew(-8deg) scaleY(.82);transform-origin:50% 0}to{opacity:1;transform:perspective(1200px) rotateX(0) skew(0) scaleY(1);transform-origin:50% 0}}@keyframes transitionDrapeOut{0%{opacity:1;transform:perspective(1200px) rotateX(0) skew(0) scaleY(1);transform-origin:50% 0}to{opacity:0;transform:perspective(1200px) rotateX(48deg) skew(7deg) scaleY(.74);transform-origin:50% 0}}@keyframes transitionCurtainsIn{0%{opacity:.4;transform:scaleX(.04);filter:brightness(.75)}to{opacity:1;transform:scaleX(1);filter:brightness(1)}}@keyframes transitionCurtainsOut{0%{opacity:1;transform:scaleX(1);filter:brightness(1)}to{opacity:.35;transform:scaleX(.04);filter:brightness(.55)}}@keyframes transitionWindIn{0%{opacity:0;filter:blur(14px);transform:translate(24%) skew(-14deg)}to{opacity:1;filter:blur(0);transform:translate(0) skew(0)}}@keyframes transitionWindOut{0%{opacity:1;filter:blur(0);transform:translate(0) skew(0)}to{opacity:0;filter:blur(14px);transform:translate(-24%) skew(14deg)}}@keyframes transitionPrestigeIn{0%{opacity:0;filter:brightness(1.8) saturate(.7);transform:perspective(1200px) translateZ(-180px) scale(.82)}to{opacity:1;filter:brightness(1) saturate(1);transform:perspective(1200px) translateZ(0) scale(1)}}@keyframes transitionPrestigeOut{0%{opacity:1;filter:brightness(1) saturate(1);transform:perspective(1200px) translateZ(0) scale(1)}to{opacity:0;filter:brightness(1.6) saturate(.75);transform:perspective(1200px) translateZ(140px) scale(1.06)}}@keyframes transitionFractureIn{0%{opacity:0;filter:contrast(1.8) brightness(1.4);clip-path:polygon(0 0,48% 0,52% 24%,100% 0,100% 100%,55% 78%,45% 100%,0 100%);transform:skew(-6deg) scale(1.03)}to{opacity:1;filter:contrast(1) brightness(1);clip-path:inset(0);transform:skew(0) scale(1)}}@keyframes transitionFractureOut{0%{opacity:1;filter:contrast(1) brightness(1);clip-path:inset(0);transform:skew(0) scale(1)}to{opacity:0;filter:contrast(1.8) brightness(1.2);clip-path:polygon(0 0,42% 8%,56% 28%,100% 0,100% 100%,58% 72%,40% 94%,0 100%);transform:skew(8deg) scale(1.05)}}@keyframes transitionCrushIn{0%{opacity:0;transform:scaleX(1.22) scaleY(.08);filter:contrast(1.4)}to{opacity:1;transform:scaleX(1) scaleY(1);filter:contrast(1)}}@keyframes transitionCrushOut{0%{opacity:1;transform:scaleX(1) scaleY(1);filter:contrast(1)}to{opacity:0;transform:scaleX(1.28) scaleY(.04);filter:contrast(1.5)}}@keyframes transitionPeelIn{0%{opacity:0;transform:perspective(1400px) rotateY(-78deg) skewY(8deg);transform-origin:0 50%}to{opacity:1;transform:perspective(1400px) rotateY(0) skewY(0);transform-origin:0 50%}}@keyframes transitionPeelOut{0%{opacity:1;transform:perspective(1400px) rotateY(0) skewY(0);transform-origin:100% 50%}to{opacity:0;transform:perspective(1400px) rotateY(82deg) skewY(-8deg);transform-origin:100% 50%}}@keyframes transitionPageCurlIn{0%{opacity:0;transform:perspective(1400px) rotateY(-64deg) rotate(-2deg);transform-origin:0 50%;filter:brightness(.85)}to{opacity:1;transform:perspective(1400px) rotateY(0) rotate(0);transform-origin:0 50%;filter:brightness(1)}}@keyframes transitionPageCurlOut{0%{opacity:1;transform:perspective(1400px) rotateY(0) rotate(0);transform-origin:100% 50%;filter:brightness(1)}to{opacity:0;transform:perspective(1400px) rotateY(68deg) rotate(2deg);transform-origin:100% 50%;filter:brightness(.8)}}@keyframes transitionAirplaneIn{0%{opacity:0;transform:translate(-40%,30%) rotate(-18deg) scale(.72);filter:blur(2px)}to{opacity:1;transform:translate(0) rotate(0) scale(1);filter:blur(0)}}@keyframes transitionAirplaneOut{0%{opacity:1;transform:translate(0) rotate(0) scale(1);filter:blur(0)}to{opacity:0;transform:translate(42%,-28%) rotate(18deg) scale(.72);filter:blur(2px)}}@keyframes transitionOrigamiIn{0%{opacity:0;transform:perspective(1400px) rotateX(58deg) rotateY(-42deg) scale(.86);filter:brightness(.85)}to{opacity:1;transform:perspective(1400px) rotateX(0) rotateY(0) scale(1);filter:brightness(1)}}@keyframes transitionOrigamiOut{0%{opacity:1;transform:perspective(1400px) rotateX(0) rotateY(0) scale(1);filter:brightness(1)}to{opacity:0;transform:perspective(1400px) rotateX(-58deg) rotateY(42deg) scale(.82);filter:brightness(.82)}}@keyframes transitionRippleIn{0%{opacity:0;filter:blur(10px);transform:scale(.86);clip-path:circle(0% at 50% 50%)}60%{opacity:.88;filter:blur(3px);transform:scale(1.035);clip-path:circle(65% at 50% 50%)}to{opacity:1;filter:blur(0);transform:scale(1);clip-path:circle(75% at 50% 50%)}}@keyframes transitionRippleOut{0%{opacity:1;filter:blur(0);transform:scale(1);clip-path:circle(75% at 50% 50%)}to{opacity:0;filter:blur(10px);transform:scale(1.08);clip-path:circle(0% at 50% 50%)}}@keyframes transitionTexturedIn{0%{opacity:.12;filter:contrast(1.6)}88%{opacity:1;filter:contrast(1.05)}to{opacity:1;filter:contrast(1);-webkit-mask-image:none;mask-image:none}}@keyframes transitionTexturedOut{0%{opacity:1;filter:contrast(1)}to{opacity:0;filter:contrast(1.7)}}@keyframes transitionVortexIn{0%{opacity:0;transform:rotate(-110deg) scale(.28);filter:blur(8px)}to{opacity:1;transform:rotate(0) scale(1);filter:blur(0)}}@keyframes transitionVortexOut{0%{opacity:1;transform:rotate(0) scale(1);filter:blur(0)}to{opacity:0;transform:rotate(120deg) scale(.2);filter:blur(10px)}}@keyframes transitionShredIn{0%{opacity:0;clip-path:inset(0 42% 0 42%);transform:translateY(-9%) skew(-8deg);filter:contrast(1.7)}to{opacity:1;clip-path:inset(0);transform:translateY(0) skew(0);filter:contrast(1)}}@keyframes transitionShredOut{0%{opacity:1;clip-path:inset(0);transform:translateY(0) skew(0);filter:contrast(1)}to{opacity:0;clip-path:inset(0 44% 0 44%);transform:translateY(11%) skew(8deg);filter:contrast(1.8)}}@keyframes transitionSwitchIn{0%{opacity:0;transform:perspective(1400px) rotateY(-48deg) translate(18%)}to{opacity:1;transform:perspective(1400px) rotateY(0) translate(0)}}@keyframes transitionSwitchOut{0%{opacity:1;transform:perspective(1400px) rotateY(0) translate(0)}to{opacity:0;transform:perspective(1400px) rotateY(48deg) translate(-18%)}}@keyframes transitionCubeIn{0%{opacity:0;transform:perspective(1200px) rotateY(-86deg) translate(44%);transform-origin:0 50%}to{opacity:1;transform:perspective(1200px) rotateY(0) translate(0);transform-origin:0 50%}}@keyframes transitionCubeOut{0%{opacity:1;transform:perspective(1200px) rotateY(0) translate(0);transform-origin:100% 50%}to{opacity:0;transform:perspective(1200px) rotateY(86deg) translate(-44%);transform-origin:100% 50%}}@keyframes transitionDoorsIn{0%{opacity:.2;transform:perspective(1200px) scaleX(.04);filter:brightness(.7)}to{opacity:1;transform:perspective(1200px) scaleX(1);filter:brightness(1)}}@keyframes transitionDoorsOut{0%{opacity:1;transform:perspective(1200px) scaleX(1);filter:brightness(1)}to{opacity:.2;transform:perspective(1200px) scaleX(.04);filter:brightness(.65)}}@keyframes transitionBoxIn{0%{opacity:.2;transform:scale(.18);clip-path:inset(38%)}to{opacity:1;transform:scale(1);clip-path:inset(0)}}@keyframes transitionBoxOut{0%{opacity:1;transform:scale(1);clip-path:inset(0)}to{opacity:0;transform:scale(.18);clip-path:inset(38%)}}@keyframes transitionGalleryIn{0%{opacity:0;transform:translate(28%) scale(.84);filter:brightness(.82)}to{opacity:1;transform:translate(0) scale(1);filter:brightness(1)}}@keyframes transitionGalleryOut{0%{opacity:1;transform:translate(0) scale(1);filter:brightness(1)}to{opacity:0;transform:translate(-28%) scale(.84);filter:brightness(.82)}}@keyframes transitionFerrisIn{0%{opacity:0;transform:translateY(42%) rotate(-34deg) scale(.78);transform-origin:50% 140%}to{opacity:1;transform:translateY(0) rotate(0) scale(1);transform-origin:50% 140%}}@keyframes transitionFerrisOut{0%{opacity:1;transform:translateY(0) rotate(0) scale(1);transform-origin:50% 140%}to{opacity:0;transform:translateY(-42%) rotate(34deg) scale(.78);transform-origin:50% 140%}}@keyframes transitionWindowIn{0%{opacity:.35;clip-path:inset(50% 50% 50% 50%);transform:scale(1.08)}to{opacity:1;clip-path:inset(0);transform:scale(1)}}@keyframes transitionWindowOut{0%{opacity:1;clip-path:inset(0);transform:scale(1)}to{opacity:0;clip-path:inset(50% 50% 50% 50%);transform:scale(1.08)}}@keyframes transitionOrbitIn{0%{opacity:0;transform:rotate(-42deg) translate(18%) scale(.76);transform-origin:50% 50%}to{opacity:1;transform:rotate(0) translate(0) scale(1);transform-origin:50% 50%}}@keyframes transitionOrbitOut{0%{opacity:1;transform:rotate(0) translate(0) scale(1);transform-origin:50% 50%}to{opacity:0;transform:rotate(42deg) translate(-18%) scale(.76);transform-origin:50% 50%}}@keyframes transitionFlyThroughIn{0%{opacity:0;transform:perspective(1200px) translateZ(-520px) scale(.56);filter:blur(4px)}to{opacity:1;transform:perspective(1200px) translateZ(0) scale(1);filter:blur(0)}}@keyframes transitionFlyThroughOut{0%{opacity:1;transform:perspective(1200px) translateZ(0) scale(1);filter:blur(0)}to{opacity:0;transform:perspective(1200px) translateZ(420px) scale(1.28);filter:blur(5px)}}@keyframes transitionWheelIn{0%{opacity:0;transform:rotate(-58deg) scale(.7);clip-path:circle(0% at 50% 50%)}to{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}}@keyframes transitionWheelOut{0%{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}to{opacity:0;transform:rotate(58deg) scale(.7);clip-path:circle(0% at 50% 50%)}}@keyframes transitionWheelReverseIn{0%{opacity:0;transform:rotate(58deg) scale(.7);clip-path:circle(0% at 50% 50%)}to{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}}@keyframes transitionWheelReverseOut{0%{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}to{opacity:0;transform:rotate(-58deg) scale(.7);clip-path:circle(0% at 50% 50%)}}@keyframes transitionWedgeIn{0%{opacity:.4;clip-path:polygon(50% 50%,50% 0,50% 0)}to{opacity:1;clip-path:polygon(50% 50%,-30% -30%,130% -30%,130% 130%,-30% 130%)}}@keyframes transitionWedgeOut{0%{opacity:1;clip-path:polygon(50% 50%,-30% -30%,130% -30%,130% 130%,-30% 130%)}to{opacity:0;clip-path:polygon(50% 50%,50% 0,50% 0)}}@keyframes transitionPrismIn{0%{opacity:0;transform:perspective(1200px) rotateY(-28deg) skew(-12deg) scale(.9);filter:hue-rotate(24deg) saturate(1.6)}to{opacity:1;transform:perspective(1200px) rotateY(0) skew(0) scale(1);filter:hue-rotate(0deg) saturate(1)}}@keyframes transitionPrismOut{0%{opacity:1;transform:perspective(1200px) rotateY(0) skew(0) scale(1);filter:hue-rotate(0deg) saturate(1)}to{opacity:0;transform:perspective(1200px) rotateY(28deg) skew(12deg) scale(.9);filter:hue-rotate(-24deg) saturate(1.6)}}@keyframes transitionWarpIn{0%{opacity:0;transform:scaleX(.72) scaleY(1.18) skew(-14deg);filter:blur(8px)}to{opacity:1;transform:scaleX(1) scaleY(1) skew(0);filter:blur(0)}}@keyframes transitionWarpOut{0%{opacity:1;transform:scaleX(1) scaleY(1) skew(0);filter:blur(0)}to{opacity:0;transform:scaleX(1.2) scaleY(.72) skew(14deg);filter:blur(8px)}}@keyframes transitionClockIn{0%{opacity:.35;transform:rotate(-90deg) scale(.84);clip-path:circle(0% at 50% 50%)}to{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}}@keyframes transitionClockOut{0%{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}to{opacity:0;transform:rotate(90deg) scale(.84);clip-path:circle(0% at 50% 50%)}}@keyframes typewriter{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}@keyframes typewriterFallback{0%{width:0;overflow:hidden}to{width:100%;overflow:hidden}}.transition-fade-enter{animation:fadeIn var(--transition-duration, 1.5s) ease-out forwards}.transition-fade-exit{animation:fadeOut var(--transition-duration, 1.5s) ease-out forwards}.transition-dissolve-enter{animation:transitionDissolveIn var(--transition-duration, .8s) ease-in-out forwards}.transition-dissolve-exit{animation:transitionDissolveOut var(--transition-duration, .8s) ease-in-out forwards}.transition-morph-enter{animation:transitionMorphIn var(--transition-duration, .9s) ease-in-out forwards}.transition-morph-exit{animation:transitionMorphOut var(--transition-duration, .9s) ease-in-out forwards}.transition-pushLeft-enter,.transition-slideLeft-enter{animation:slideInRight var(--transition-duration, .8s) ease-out forwards}.transition-pushLeft-exit,.transition-slideLeft-exit{animation:slideOutLeft var(--transition-duration, .8s) ease-out forwards}.transition-pushRight-enter,.transition-slideRight-enter{animation:slideInLeft var(--transition-duration, .8s) ease-out forwards}.transition-pushRight-exit,.transition-slideRight-exit{animation:slideOutRight var(--transition-duration, .8s) ease-out forwards}.transition-pushUp-enter,.transition-slideUp-enter{animation:slideInBottom var(--transition-duration, .8s) ease-out forwards}.transition-pushUp-exit,.transition-slideUp-exit{animation:slideOutTop var(--transition-duration, .8s) ease-out forwards}.transition-pushDown-enter,.transition-slideDown-enter{animation:slideInTop var(--transition-duration, .8s) ease-out forwards}.transition-pushDown-exit,.transition-slideDown-exit{animation:slideOutBottom var(--transition-duration, .8s) ease-out forwards}.transition-zoom-enter{animation:transitionZoomIn var(--transition-duration, .7s) ease-out forwards}.transition-zoom-exit{animation:transitionZoomOut var(--transition-duration, .7s) ease-in forwards}.transition-flip-enter{animation:transitionFlipIn var(--transition-duration, .8s) ease-out forwards}.transition-flip-exit{animation:transitionFlipOut var(--transition-duration, .8s) ease-in forwards}.transition-rotate-enter{animation:transitionRotateIn var(--transition-duration, .8s) ease-out forwards}.transition-rotate-exit{animation:transitionRotateOut var(--transition-duration, .8s) ease-in forwards}.transition-wipeLeft-enter,.transition-revealLeft-enter{animation:transitionWipeLeftIn var(--transition-duration, .75s) ease-out forwards}.transition-wipeLeft-exit{animation:transitionWipeLeftOut var(--transition-duration, .75s) ease-in forwards}.transition-wipeRight-enter,.transition-revealRight-enter{animation:transitionWipeRightIn var(--transition-duration, .75s) ease-out forwards}.transition-wipeRight-exit{animation:transitionWipeRightOut var(--transition-duration, .75s) ease-in forwards}.transition-wipeUp-enter,.transition-revealUp-enter{animation:transitionWipeUpIn var(--transition-duration, .75s) ease-out forwards}.transition-wipeUp-exit{animation:transitionWipeUpOut var(--transition-duration, .75s) ease-in forwards}.transition-wipeDown-enter,.transition-revealDown-enter{animation:transitionWipeDownIn var(--transition-duration, .75s) ease-out forwards}.transition-wipeDown-exit{animation:transitionWipeDownOut var(--transition-duration, .75s) ease-in forwards}.transition-revealLeft-exit,.transition-revealRight-exit,.transition-revealUp-exit,.transition-revealDown-exit{animation:fadeOut var(--transition-duration, .75s) ease-in forwards}.transition-splitHorizontal-enter{animation:transitionSplitHorizontalIn var(--transition-duration, .8s) ease-out forwards}.transition-splitHorizontal-exit{animation:transitionSplitHorizontalOut var(--transition-duration, .8s) ease-in forwards}.transition-splitVertical-enter{animation:transitionSplitVerticalIn var(--transition-duration, .8s) ease-out forwards}.transition-splitVertical-exit{animation:transitionSplitVerticalOut var(--transition-duration, .8s) ease-in forwards}.transition-coverLeft-enter,.transition-pullLeft-enter{animation:slideInRight var(--transition-duration, .75s) ease-out forwards}.transition-coverRight-enter,.transition-pullRight-enter{animation:slideInLeft var(--transition-duration, .75s) ease-out forwards}.transition-coverUp-enter,.transition-pullUp-enter{animation:slideInBottom var(--transition-duration, .75s) ease-out forwards}.transition-coverDown-enter,.transition-pullDown-enter{animation:slideInTop var(--transition-duration, .75s) ease-out forwards}.transition-coverLeft-exit,.transition-coverRight-exit,.transition-coverUp-exit,.transition-coverDown-exit,.transition-pullLeft-exit,.transition-pullRight-exit,.transition-pullUp-exit,.transition-pullDown-exit{animation:transitionHold var(--transition-duration, .75s) linear forwards}.transition-uncoverLeft-enter,.transition-uncoverRight-enter,.transition-uncoverUp-enter,.transition-uncoverDown-enter{animation:fadeIn var(--transition-duration, .75s) ease-out forwards}.transition-uncoverLeft-exit{animation:slideOutLeft var(--transition-duration, .75s) ease-in forwards}.transition-uncoverRight-exit{animation:slideOutRight var(--transition-duration, .75s) ease-in forwards}.transition-uncoverUp-exit{animation:slideOutTop var(--transition-duration, .75s) ease-in forwards}.transition-uncoverDown-exit{animation:slideOutBottom var(--transition-duration, .75s) ease-in forwards}.transition-shapeCircle-enter{animation:transitionCircleIn var(--transition-duration, .75s) ease-out forwards}.transition-shapeCircle-exit{animation:transitionCircleOut var(--transition-duration, .75s) ease-in forwards}.transition-shapeDiamond-enter{animation:transitionDiamondIn var(--transition-duration, .75s) ease-out forwards}.transition-shapeDiamond-exit{animation:transitionDiamondOut var(--transition-duration, .75s) ease-in forwards}.transition-shapePlus-enter{animation:transitionPlusIn var(--transition-duration, .8s) ease-out forwards}.transition-shapePlus-exit{animation:transitionPlusOut var(--transition-duration, .8s) ease-in forwards}.transition-flash-enter{animation:transitionFlashIn var(--transition-duration, .7s) ease-out forwards}.transition-flash-exit{animation:transitionFlashOut var(--transition-duration, .7s) ease-in forwards}.transition-newsflash-enter{animation:transitionNewsflashIn var(--transition-duration, .75s) ease-out forwards}.transition-newsflash-exit{animation:transitionNewsflashOut var(--transition-duration, .75s) ease-in forwards}.transition-fallOver-enter{animation:transitionFallOverIn var(--transition-duration, .85s) ease-out forwards}.transition-fallOver-exit{animation:transitionFallOverOut var(--transition-duration, .85s) ease-in forwards}.transition-drape-enter{animation:transitionDrapeIn var(--transition-duration, .85s) ease-out forwards}.transition-drape-exit{animation:transitionDrapeOut var(--transition-duration, .85s) ease-in forwards}.transition-curtains-enter{animation:transitionCurtainsIn var(--transition-duration, .85s) ease-out forwards}.transition-curtains-exit{animation:transitionCurtainsOut var(--transition-duration, .85s) ease-in forwards}.transition-wind-enter{animation:transitionWindIn var(--transition-duration, .8s) ease-out forwards}.transition-wind-exit{animation:transitionWindOut var(--transition-duration, .8s) ease-in forwards}.transition-prestige-enter{animation:transitionPrestigeIn var(--transition-duration, .85s) ease-out forwards}.transition-prestige-exit{animation:transitionPrestigeOut var(--transition-duration, .85s) ease-in forwards}.transition-fracture-enter{animation:transitionFractureIn var(--transition-duration, .8s) ease-out forwards}.transition-fracture-exit{animation:transitionFractureOut var(--transition-duration, .8s) ease-in forwards}.transition-crush-enter{animation:transitionCrushIn var(--transition-duration, .75s) ease-out forwards}.transition-crush-exit{animation:transitionCrushOut var(--transition-duration, .75s) ease-in forwards}.transition-peelOff-enter{animation:transitionPeelIn var(--transition-duration, .85s) ease-out forwards}.transition-peelOff-exit{animation:transitionPeelOut var(--transition-duration, .85s) ease-in forwards}.transition-pageCurl-enter,.transition-pageCurlDouble-enter,.transition-pageCurlSingle-enter{animation:transitionPageCurlIn var(--transition-duration, .9s) ease-out forwards}.transition-pageCurl-exit,.transition-pageCurlDouble-exit,.transition-pageCurlSingle-exit{animation:transitionPageCurlOut var(--transition-duration, .9s) ease-in forwards}.transition-airplane-enter{animation:transitionAirplaneIn var(--transition-duration, .85s) ease-out forwards}.transition-airplane-exit{animation:transitionAirplaneOut var(--transition-duration, .85s) ease-in forwards}.transition-origami-enter{animation:transitionOrigamiIn var(--transition-duration, .85s) ease-out forwards}.transition-origami-exit{animation:transitionOrigamiOut var(--transition-duration, .85s) ease-in forwards}.transition-ripple-enter{animation:transitionRippleIn var(--transition-duration, .85s) ease-out forwards}.transition-ripple-exit{animation:transitionRippleOut var(--transition-duration, .85s) ease-in forwards}.transition-checkerboard-enter,.transition-random-enter{-webkit-mask-image:linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%),linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%);-webkit-mask-size:12% 12%;-webkit-mask-position:0 0,6% 6%;mask-image:linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%),linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%);mask-size:12% 12%;mask-position:0 0,6% 6%;animation:transitionTexturedIn var(--transition-duration, .85s) steps(8,end) forwards}.transition-checkerboard-exit,.transition-random-exit{-webkit-mask-image:linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%),linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%);-webkit-mask-size:12% 12%;-webkit-mask-position:0 0,6% 6%;mask-image:linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%),linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%);mask-size:12% 12%;mask-position:0 0,6% 6%;animation:transitionTexturedOut var(--transition-duration, .85s) steps(8,end) forwards}.transition-randomBarsHorizontal-enter,.transition-blindsHorizontal-enter,.transition-combHorizontal-enter,.transition-stripsLeft-enter,.transition-stripsRight-enter{-webkit-mask-image:repeating-linear-gradient(0deg,#000 0 6%,transparent 6% 12%);mask-image:repeating-linear-gradient(0deg,#000 0 6%,transparent 6% 12%);animation:transitionTexturedIn var(--transition-duration, .8s) steps(9,end) forwards}.transition-randomBarsHorizontal-exit,.transition-blindsHorizontal-exit,.transition-combHorizontal-exit,.transition-stripsLeft-exit,.transition-stripsRight-exit{-webkit-mask-image:repeating-linear-gradient(0deg,#000 0 6%,transparent 6% 12%);mask-image:repeating-linear-gradient(0deg,#000 0 6%,transparent 6% 12%);animation:transitionTexturedOut var(--transition-duration, .8s) steps(9,end) forwards}.transition-randomBarsVertical-enter,.transition-blindsVertical-enter,.transition-combVertical-enter,.transition-stripsUp-enter,.transition-stripsDown-enter{-webkit-mask-image:repeating-linear-gradient(90deg,#000 0 6%,transparent 6% 12%);mask-image:repeating-linear-gradient(90deg,#000 0 6%,transparent 6% 12%);animation:transitionTexturedIn var(--transition-duration, .8s) steps(9,end) forwards}.transition-randomBarsVertical-exit,.transition-blindsVertical-exit,.transition-combVertical-exit,.transition-stripsUp-exit,.transition-stripsDown-exit{-webkit-mask-image:repeating-linear-gradient(90deg,#000 0 6%,transparent 6% 12%);mask-image:repeating-linear-gradient(90deg,#000 0 6%,transparent 6% 12%);animation:transitionTexturedOut var(--transition-duration, .8s) steps(9,end) forwards}.transition-honeycomb-enter{-webkit-mask-image:radial-gradient(circle,#000 0 34%,transparent 35% 48%,#000 49%);-webkit-mask-size:10% 17%;mask-image:radial-gradient(circle,#000 0 34%,transparent 35% 48%,#000 49%);mask-size:10% 17%;animation:transitionTexturedIn var(--transition-duration, .85s) steps(8,end) forwards}.transition-honeycomb-exit{-webkit-mask-image:radial-gradient(circle,#000 0 34%,transparent 35% 48%,#000 49%);-webkit-mask-size:10% 17%;mask-image:radial-gradient(circle,#000 0 34%,transparent 35% 48%,#000 49%);mask-size:10% 17%;animation:transitionTexturedOut var(--transition-duration, .85s) steps(8,end) forwards}.transition-glitter-enter{-webkit-mask-image:radial-gradient(circle,#000 0 18%,transparent 20% 36%,#000 38%);-webkit-mask-size:7% 7%;mask-image:radial-gradient(circle,#000 0 18%,transparent 20% 36%,#000 38%);mask-size:7% 7%;animation:transitionFlashIn var(--transition-duration, .85s) steps(10,end) forwards}.transition-glitter-exit{-webkit-mask-image:radial-gradient(circle,#000 0 18%,transparent 20% 36%,#000 38%);-webkit-mask-size:7% 7%;mask-image:radial-gradient(circle,#000 0 18%,transparent 20% 36%,#000 38%);mask-size:7% 7%;animation:transitionFlashOut var(--transition-duration, .85s) steps(10,end) forwards}.transition-vortex-enter{animation:transitionVortexIn var(--transition-duration, .85s) ease-out forwards}.transition-vortex-exit{animation:transitionVortexOut var(--transition-duration, .85s) ease-in forwards}.transition-shred-enter{-webkit-mask-image:repeating-linear-gradient(90deg,#000 0 5%,transparent 5% 8%);mask-image:repeating-linear-gradient(90deg,#000 0 5%,transparent 5% 8%);animation:transitionShredIn var(--transition-duration, .85s) ease-out forwards}.transition-shred-exit{-webkit-mask-image:repeating-linear-gradient(90deg,#000 0 5%,transparent 5% 8%);mask-image:repeating-linear-gradient(90deg,#000 0 5%,transparent 5% 8%);animation:transitionShredOut var(--transition-duration, .85s) ease-in forwards}.transition-switch-enter{animation:transitionSwitchIn var(--transition-duration, .8s) ease-out forwards}.transition-switch-exit{animation:transitionSwitchOut var(--transition-duration, .8s) ease-in forwards}.transition-cube-enter{animation:transitionCubeIn var(--transition-duration, .85s) ease-out forwards}.transition-cube-exit{animation:transitionCubeOut var(--transition-duration, .85s) ease-in forwards}.transition-doors-enter{animation:transitionDoorsIn var(--transition-duration, .85s) ease-out forwards}.transition-doors-exit{animation:transitionDoorsOut var(--transition-duration, .85s) ease-in forwards}.transition-box-enter{animation:transitionBoxIn var(--transition-duration, .75s) ease-out forwards}.transition-box-exit{animation:transitionBoxOut var(--transition-duration, .75s) ease-in forwards}.transition-gallery-enter{animation:transitionGalleryIn var(--transition-duration, .8s) ease-out forwards}.transition-gallery-exit{animation:transitionGalleryOut var(--transition-duration, .8s) ease-in forwards}.transition-conveyor-enter,.transition-panLeft-enter{animation:slideInRight var(--transition-duration, .8s) ease-out forwards}.transition-conveyor-exit,.transition-panLeft-exit{animation:slideOutLeft var(--transition-duration, .8s) ease-in forwards}.transition-panRight-enter{animation:slideInLeft var(--transition-duration, .8s) ease-out forwards}.transition-panRight-exit{animation:slideOutRight var(--transition-duration, .8s) ease-in forwards}.transition-panUp-enter{animation:slideInBottom var(--transition-duration, .8s) ease-out forwards}.transition-panUp-exit{animation:slideOutTop var(--transition-duration, .8s) ease-in forwards}.transition-panDown-enter{animation:slideInTop var(--transition-duration, .8s) ease-out forwards}.transition-panDown-exit{animation:slideOutBottom var(--transition-duration, .8s) ease-in forwards}.transition-ferrisWheel-enter{animation:transitionFerrisIn var(--transition-duration, .85s) ease-out forwards}.transition-ferrisWheel-exit{animation:transitionFerrisOut var(--transition-duration, .85s) ease-in forwards}.transition-window-enter{animation:transitionWindowIn var(--transition-duration, .8s) ease-out forwards}.transition-window-exit{animation:transitionWindowOut var(--transition-duration, .8s) ease-in forwards}.transition-orbit-enter{animation:transitionOrbitIn var(--transition-duration, .85s) ease-out forwards}.transition-orbit-exit{animation:transitionOrbitOut var(--transition-duration, .85s) ease-in forwards}.transition-flyThrough-enter{animation:transitionFlyThroughIn var(--transition-duration, .85s) ease-out forwards}.transition-flyThrough-exit{animation:transitionFlyThroughOut var(--transition-duration, .85s) ease-in forwards}.transition-wheel-enter{animation:transitionWheelIn var(--transition-duration, .85s) ease-out forwards}.transition-wheel-exit{animation:transitionWheelOut var(--transition-duration, .85s) ease-in forwards}.transition-wheelReverse-enter{animation:transitionWheelReverseIn var(--transition-duration, .85s) ease-out forwards}.transition-wheelReverse-exit{animation:transitionWheelReverseOut var(--transition-duration, .85s) ease-in forwards}.transition-wedge-enter{animation:transitionWedgeIn var(--transition-duration, .8s) ease-out forwards}.transition-wedge-exit{animation:transitionWedgeOut var(--transition-duration, .8s) ease-in forwards}.transition-prism-enter{animation:transitionPrismIn var(--transition-duration, .85s) ease-out forwards}.transition-prism-exit{animation:transitionPrismOut var(--transition-duration, .85s) ease-in forwards}.transition-warp-enter{animation:transitionWarpIn var(--transition-duration, .85s) ease-out forwards}.transition-warp-exit{animation:transitionWarpOut var(--transition-duration, .85s) ease-in forwards}.transition-clock-enter{animation:transitionClockIn var(--transition-duration, .8s) ease-out forwards}.transition-clock-exit{animation:transitionClockOut var(--transition-duration, .8s) ease-in forwards}.anim-none{animation:none}.anim-fadeIn{animation:fadeIn var(--anim-duration, 1s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-fadeOut{animation:fadeOut var(--anim-duration, 1s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-fadeInUp{animation:fadeInUp var(--anim-duration, .6s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-slowZoom-in{animation:slowZoomIn var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.anim-slowZoom-out{animation:slowZoomOut var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.anim-slowZoom-panLeft{animation:slowZoomCombinedPanLeft var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.anim-slowZoom-panRight{animation:slowZoomCombinedPanRight var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.anim-zoomIn{animation:zoomIn var(--anim-duration, .5s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-zoomOut{animation:zoomOut var(--anim-duration, .5s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-panLeft{animation:panLeft var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.anim-panRight{animation:panRight var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.squisq-image--portrait-pan-right{animation:portraitCoverPanRight var(--portrait-pan-duration, 12s) var(--portrait-pan-easing, ease-in-out) var(--portrait-pan-delay, 0s) both;will-change:object-position}.squisq-image--portrait-pan-left{animation:portraitCoverPanLeft var(--portrait-pan-duration, 12s) var(--portrait-pan-easing, ease-in-out) var(--portrait-pan-delay, 0s) both;will-change:object-position}.anim-typewriter{animation:typewriter var(--anim-duration, 2s) var(--anim-easing, steps(40, end)) var(--anim-delay, 0s) both}.block-layer.anim-zoomIn,.block-layer.anim-zoomOut,.block-layer.anim-grow,.block-layer.anim-grow-x,.block-layer.anim-grow-y,.block-layer.anim-tween,.block-layer.anim-drift{transform-box:fill-box;transform-origin:var(--anim-origin, center center)}.anim-slideIn-left{animation:layerSlideInLeft var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-slideIn-right{animation:layerSlideInRight var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-slideIn-top{animation:layerSlideInTop var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-slideIn-bottom{animation:layerSlideInBottom var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-grow{animation:growIn var(--anim-duration, 1s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-grow-x{animation:growX var(--anim-duration, 1s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-grow-y{animation:growY var(--anim-duration, 1s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-drawOn [data-squisq-draw=stroke]{stroke-dasharray:1;animation:drawOn var(--anim-duration, 1s) var(--anim-easing, ease-in-out) var(--anim-delay, 0s) both}.anim-drawOn [data-squisq-draw=markers]{animation:drawOnMarkers var(--anim-duration, 1s) linear var(--anim-delay, 0s) both}.anim-reveal-left{animation:revealFromLeft var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-reveal-right{animation:revealFromRight var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-reveal-top{animation:revealFromTop var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-reveal-bottom{animation:revealFromBottom var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-reveal-iris{animation:revealIris var(--anim-duration, .9s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-wordReveal .anim-word{animation:wordIn var(--anim-duration, .4s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-countUp{animation:fadeIn .3s ease-out var(--anim-delay, 0s) both}.anim-drift{animation:drift var(--anim-duration, 12s) ease-in-out var(--anim-delay, 0s) infinite}.anim-tween{animation:tween var(--anim-duration, 1s) var(--anim-easing, ease-in-out) var(--anim-delay, 0s) both}.doc-player--render-mode,.doc-player--render-mode *,.doc-player--render-mode *:before,.doc-player--render-mode *:after{transition:none!important}.doc-player{position:relative;overflow:hidden;clip-path:inset(0);background:#000;max-width:100%;max-height:100%}.doc-player__media-clips{position:absolute;inset:0;z-index:0;pointer-events:none}.doc-player__media-clips--full-frame,.doc-player__media-clips--picture-in-picture{z-index:10}.doc-player__media-video{position:absolute;display:block;object-fit:cover;opacity:0;visibility:hidden}.doc-player__media-video--active{opacity:1;visibility:visible}.doc-player__media-clips--background .doc-player__media-video,.doc-player__media-clips--full-frame .doc-player__media-video{inset:0;width:100%;height:100%}.doc-player__media-clips--picture-in-picture .doc-player__media-video{width:22%;aspect-ratio:1;border:var(--squisq-pip-border, max(1px, .12vw) solid rgba(255, 255, 255, .72));border-radius:var(--squisq-pip-radius, 14%);box-shadow:var(--squisq-pip-shadow, 0 .75em 2em rgba(0, 0, 0, .34))}.doc-player__media-clips--picture-in-picture[data-pip-shape=wide] .doc-player__media-video{aspect-ratio:16 / 9}.doc-player__media-clips--picture-in-picture[data-pip-size=small] .doc-player__media-video{width:9%}.doc-player__media-clips--picture-in-picture[data-pip-size=large] .doc-player__media-video{width:15%}.doc-player[data-orientation=portrait] .doc-player__media-clips--picture-in-picture .doc-player__media-video{width:34%}.doc-player[data-orientation=portrait] .doc-player__media-clips--picture-in-picture[data-pip-size=small] .doc-player__media-video{width:15%}.doc-player[data-orientation=portrait] .doc-player__media-clips--picture-in-picture[data-pip-size=large] .doc-player__media-video{width:23%}.doc-player__media-clips--picture-in-picture[data-pip-position=top-left] .doc-player__media-video{top:4%;left:3%}.doc-player__media-clips--picture-in-picture[data-pip-position=top-right] .doc-player__media-video{top:4%;right:3%}.doc-player__media-clips--picture-in-picture[data-pip-position=bottom-left] .doc-player__media-video{bottom:6%;left:3%}.doc-player__media-clips--picture-in-picture[data-pip-position=bottom-right] .doc-player__media-video{right:3%;bottom:6%}.doc-player__viewport,.doc-player__block{position:absolute;top:0;left:0;width:100%;height:100%}.doc-player__block--active{z-index:2}.doc-player__block--previous{z-index:1}.doc-player__block--active.doc-player__block--dragging{transition:none}.doc-player__block--active.doc-player__block--settling{transition:transform .26s cubic-bezier(.22,1,.36,1)}.doc-player--swipe{cursor:grab;-webkit-user-select:none;user-select:none}.doc-player--swipe.doc-player--grabbing{cursor:grabbing}.doc-player__tap-feedback{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:150;pointer-events:none;display:flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:#00000073;animation:tap-feedback-fade .6s ease-out forwards}@keyframes tap-feedback-fade{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-50%) scale(1.3)}}.block-svg{width:100%;height:100%;display:block;transform-origin:center;transform-box:fill-box}.block-svg[class*=transition-]{backface-visibility:hidden;will-change:transform,opacity,filter,clip-path}.block-layer{overflow:hidden}.block-layer--image{overflow:visible}.squisq-mermaid-rendered{position:relative;display:flex;box-sizing:border-box;width:100%;min-height:260px;align-items:center;justify-content:center;color:inherit;overflow:hidden}.squisq-mermaid-render-svg{display:flex;width:100%;height:100%;min-height:0;align-items:center;justify-content:center}.squisq-mermaid-render-svg>svg{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%}.squisq-mermaid-render-status,.squisq-mermaid-render-error{padding:1rem;color:inherit;font:500 .9rem/1.4 system-ui,sans-serif;text-align:center}.squisq-mermaid-render-error pre{max-height:8em;margin:.5rem 0 0;overflow:auto;font:400 .75rem/1.35 ui-monospace,monospace;text-align:left;white-space:pre-wrap}.squisq-md-mermaid{min-height:min(460px,60vh);margin:1.25rem 0;padding:1rem;border:1px solid color-mix(in srgb,currentcolor 18%,transparent);border-radius:10px;background:color-mix(in srgb,currentcolor 4%,transparent)}.squisq-md-code-frame{position:relative;margin:1em 0}.squisq-md-code-frame>.squisq-md-code-block{margin:0;padding-right:5rem}.squisq-md-code-copy{position:absolute;z-index:1;top:.55rem;right:.55rem;min-width:3.7rem;padding:.28rem .5rem;border:1px solid color-mix(in srgb,currentcolor 20%,transparent);border-radius:5px;background:color-mix(in srgb,Canvas 90%,transparent);color:inherit;font:500 .72rem/1.2 system-ui,sans-serif;cursor:pointer;opacity:.58;transition:opacity .12s ease,background-color .12s ease}.squisq-md-code-frame:hover>.squisq-md-code-copy,.squisq-md-code-copy:focus-visible,.squisq-md-code-copy[data-copy-state=copied],.squisq-md-code-copy[data-copy-state=failed]{opacity:1}.squisq-md-code-copy:hover{background:Canvas}.squisq-md-code-copy:disabled{cursor:wait}.squisq-md-fence-widget{margin:.75rem 0}.squisq-json-fence-error{margin-top:.3rem;font-size:.78rem;opacity:.7}.squisq-json-fence-actions{display:flex;gap:.45rem;margin-top:.55rem}.squisq-json-fence-action{padding:.32rem .75rem;border:1px solid color-mix(in srgb,currentcolor 25%,transparent);border-radius:6px;background:color-mix(in srgb,Canvas 92%,transparent);color:inherit;font:500 .8rem/1.2 system-ui,sans-serif;cursor:pointer;transition:background-color .12s ease}.squisq-json-fence-action:hover{background:Canvas}.squisq-json-fence-action--primary{border-color:color-mix(in srgb,currentcolor 45%,transparent);font-weight:600}.squisq-mermaid-layer-frame{width:100%;height:100%}.squisq-mermaid-layer-frame .squisq-mermaid-rendered{height:100%;min-height:0}.squisq-mermaid-rendered :is(path.flowchart-link,.edgePath .path,.relationshipLine,.messageLine0,.messageLine1):not([style*="stroke:"]){stroke:currentcolor!important}.squisq-mermaid-rendered marker :is(path,polygon):not([fill=none]){fill:currentcolor!important;stroke:currentcolor!important}.text-shadow{text-shadow:0 2px 4px rgba(0,0,0,.8),0 4px 8px rgba(0,0,0,.4)}.text-shadow-light{text-shadow:0 1px 2px rgba(0,0,0,.6)}.text-box{background:#0009;padding:16px 24px;border-radius:4px}.text-box--light{background:#ffffffe6;color:#1a1a1a}.squisq-inline-video-player{display:inline-block;max-width:480px;width:100%;margin:.5em 0}.squisq-inline-video-player video{display:block;width:100%;max-width:100%;height:auto;border-radius:4px;background:#000}.squisq-inline-audio-player{display:inline-block;max-width:360px;width:100%;margin:.25em 0;vertical-align:middle}.squisq-inline-audio-player audio{display:block;width:100%}.squisq-video-embed{display:block;width:100%;max-width:720px;margin:1em 0}.squisq-video-embed[data-orientation=portrait]{max-width:340px}.squisq-video-embed-frame{overflow:hidden;border-radius:6px;background:#000}.squisq-video-embed-caption{margin-top:.4em;font-size:.875em;opacity:.75}.squisq-video-embed-caption a{color:inherit}.squisq-animated-image-toggle{display:inline-flex;align-items:center;gap:5px;padding:4px 8px 4px 7px;font:600 10px/1 var(--squisq-ux-font, system-ui, -apple-system, sans-serif);letter-spacing:.06em;color:var(--squisq-animated-image-control-text, #fff);background:var(--squisq-animated-image-control-bg, rgba(0, 0, 0, .62));border:0;border-radius:999px;cursor:pointer;z-index:3;opacity:.85;transition:opacity .12s ease;user-select:none}.squisq-animated-image-toggle:hover,.squisq-animated-image-toggle:focus-visible{opacity:1}.squisq-animated-image-toggle:focus-visible{outline:2px solid var(--squisq-animated-image-control-text, #fff);outline-offset:2px}.squisq-animated-image-toggle svg{width:10px;height:10px;fill:currentColor}@media(prefers-reduced-motion:reduce){.anim-slowZoom-in,.anim-slowZoom-out,.anim-slowZoom-panLeft,.anim-slowZoom-panRight,.anim-panLeft,.anim-panRight,.squisq-image--portrait-pan-left,.squisq-image--portrait-pan-right,.anim-drift{animation:none}}.doc-player--empty{min-height:120px;width:100%;background:#f0f0f0}.doc-player{--squisq-styles-loaded: 1}
|
|
759
|
+
`)[0];return mt.length<=30?mt:mt.slice(0,27)+"..."}}return X.id.replace(/-/g," ").replace(/\b\w/g,Re=>Re.toUpperCase())},[]),QA=de(()=>{let X=We.map((xe,Re)=>({id:xe.id,label:String(Re+1),summary:si(xe)}));return !mn||!Lt?X:[{id:"__cover__",label:"Cover",summary:si(Lt)},...X]},[Lt,We,si,mn]),ho=de(()=>{if(!Ye||!We.length)return [];let X=-1;return We.map((xe,Re)=>{let mt=xe.audioSegment!==X;return X=xe.audioSegment,{block:xe,index:Re,position:xe.startTime/Ye*100,title:si(xe),isSectionStart:mt}})},[We,Ye,si]);he(()=>{ho.length>0&&k?.(ho);},[ho,k]),wy.current=oe?fl:We.length;let bl=ve((X,xe)=>{if(X.defaultPrevented||X.altKey||X.ctrlKey||X.metaKey||X.shiftKey)return;let Re=X.target instanceof Element?X.target:null,mt=!!Re?.closest('input, textarea, select, [contenteditable]:not([contenteditable="false"]), [role="textbox"], [role="combobox"], [role="listbox"], [role="slider"], [role="spinbutton"], .monaco-editor'),fa=!!Re?.closest('[role="menu"], [role="dialog"], [aria-modal="true"]'),li=oe&&!!Re?.closest(".doc-controls-slideshow")&&!Re.closest('[role="menu"]');if(!(mt||xe&&fa||!xe&&Re?.closest('input, textarea, select, button, a, [contenteditable]:not([contenteditable="false"]), [role="textbox"]')&&!li)&&!(Te||Le)){if(X.key==="f"||X.key==="F"){if(!E)return;X.preventDefault(),E();return}if(oe)switch(X.key){case "ArrowRight":case "ArrowDown":case " ":X.preventDefault(),Hn.nextSlide();break;case "ArrowLeft":X.preventDefault(),Hn.prevSlide();break;case "ArrowUp":X.preventDefault(),Ty(true);break;case "Home":X.preventDefault(),Hn.goToSlide(0);break;case "End":X.preventDefault(),Hn.goToSlide(wy.current-1);break}else switch(X.key){case " ":X.preventDefault(),ua();break;case "ArrowRight":X.preventDefault(),Mt(Math.min(Td.current+10,by.current));break;case "ArrowLeft":X.preventDefault(),Mt(Math.max(Td.current-10,0));break}}},[oe,Te,Le,ua,Mt,Hn,E]),ZA=ve(X=>bl(X,false),[bl]);return he(()=>{if(!se||n||Te||Le)return;let X=xe=>{bl(xe,true);};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[se,bl,Le,Te,n]),Te?w("div",{ref:Ke,"data-player-id":gt,className:"doc-player doc-player--linear",style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},children:w(kd,{doc:e,basePath:t,viewport:$e,theme:H,surface:C,animationsEnabled:r,showCodeCopyButton:ye,onCopyCode:fe,fenceRenderers:ce})}):Le?w("div",{ref:Ke,"data-player-id":gt,className:"doc-player doc-player--dashboard",style:{position:"relative",width:"100%",aspectRatio:`${$e.width} / ${$e.height}`,margin:"0 auto",overflow:"hidden"},children:w(vA,{doc:e,theme:H,viewport:$e,layout:_,showTitle:A,style:R,documentTitle:F,basePath:t,animationsEnabled:r,muted:n||m,renderMode:n||ut,onRenderAPIReady:b})}):w("div",{ref:Ke,"data-player-id":gt,"data-orientation":dn,"data-playback-state":Ee?"playing":"paused","data-swipe-phase":Cr.phase,tabIndex:n?-1:0,role:"region","aria-label":"Document player",onKeyDown:n?void 0:ZA,className:`doc-player${n?" doc-player--render-mode":""}${gl?" doc-player--swipe":""}${Cr.phase==="dragging"?" doc-player--grabbing":""}`,onClick:DA,onPointerDown:Cr.onPointerDown,style:{...FA,position:"relative",width:"100%",aspectRatio:`${$e.width} / ${$e.height}`,margin:"0 auto",overflow:"hidden",cursor:n||gl?void 0:"pointer",touchAction:gl?"pan-y":void 0},children:[w("audio",{ref:De,preload:"auto",muted:m}),w(Gx,{schedule:NA,currentTime:dt,isPlaying:Ee,basePath:t,renderMode:n,muted:m,presentation:wn.videoPresentation,pipSize:wn.pipSize,pipShape:wn.pipShape,pipPosition:wn.pipPosition,pipOrientation:dn,pipFrameStyle:BA}),w("div",{className:"doc-player__viewport",children:[_r&&Lt&&w("div",{className:"doc-player__block doc-player__block--cover",children:w(an,{block:Lt,blockTime:0,basePath:t,isEntering:false,viewport:$e,muted:n||m,animationsEnabled:r&&!n,theme:$n,tableContentRenderer:K,growTextToFit:oe,videoEmbeds:n?"placeholder":"poster"})}),r&&!_r&&cl&&zA&&w("div",{className:"doc-player__block doc-player__block--previous",children:w(an,{block:cl,blockTime:Math.max(0,dt-cl.startTime),basePath:t,isExiting:true,transition:or?.transition,viewport:$e,muted:n||m,animationsEnabled:r,theme:$n,tableContentRenderer:K,growTextToFit:oe,videoEmbeds:n?"placeholder":"poster"})},cl.id),or&&w("div",{className:`doc-player__block doc-player__block--active${Cr.phase!=="idle"?` doc-player__block--${Cr.phase}`:""}`,"aria-hidden":_r||void 0,style:_r||Cr.phase!=="idle"?{...Cr.phase!=="idle"?{transform:`translateX(${Cr.offsetPx}px)`}:{},..._r?{opacity:0,pointerEvents:"none"}:{}}:void 0,children:w(an,{block:or,blockTime:xy,basePath:t,isEntering:r&&HA,viewport:$e,isPlaying:Ee,muted:n||m,animationsEnabled:r,theme:$n,tableContentRenderer:K,growTextToFit:oe,videoEmbeds:n?"placeholder":"player"})},or.id),ma&&(n?oi:true)&&w(N_,{captions:e.captions,currentTime:dt,enabled:oi&&(n||Ee||dt>0),fontSize:Math.min(34,Math.max(16,Math.round(My.height*.026))),captionStyle:GA,captionPosition:V,theme:$n,viewport:My}),ut&&w("div",{className:"doc-player__debug",style:{position:"absolute",top:"8px",right:"8px",padding:"8px 12px",background:"rgba(0, 0, 0, 0.85)",borderRadius:"6px",color:"#00ff00",fontFamily:"monospace",fontSize:"11px",lineHeight:"1.5",zIndex:200,maxWidth:"280px",pointerEvents:"none",textAlign:"left"},children:[w("div",{style:{color:"#ffcc00",fontWeight:"bold",marginBottom:"4px"},children:"DEBUG MODE"}),w("div",{children:[w("span",{style:{color:"#888"},children:"template:"})," ",w("span",{style:{color:"#ff6b6b"},children:or?.template??"raw"})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"block:"})," ",Cn+1,"/",We.length," ",w("span",{style:{color:"#666"},children:["(",or?.id||"none",")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"time:"})," ",dt.toFixed(2),"s /"," ",Ye.toFixed(1),"s"," ",w("span",{style:{color:"#666"},children:["(progress: ",(_d*100).toFixed(1),"%, scriptDur: ",e.duration.toFixed(1),")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"blockTime:"})," ",xy.toFixed(2),"s /"," ",(or?.duration||0).toFixed(1),"s"]}),w("div",{children:[w("span",{style:{color:"#888"},children:"segment:"})," ",st,"/",e.audio.segments.length-1," ",w("span",{style:{color:"#666"},children:["(",e.audio.segments[st]?.name||"none",")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"viewport:"})," ",$e.name||`${$e.width}x${$e.height}`," ",w("span",{style:{color:"#666"},children:["(",dn,")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"playing:"})," ",w("span",{style:{color:Ee?"#4ade80":"#f87171"},children:Ee?"yes":"no"}),_r&&w("span",{style:{color:"#60a5fa"},children:" (cover)"})]}),ma&&(()=>{let X=Io(e.captions,dt),xe=oi&&(Ee||dt>0);return w(Pe,{children:[w("div",{children:[w("span",{style:{color:"#888"},children:"captions:"})," ",e.captions?.phrases.length||0," phrases"," ",w("span",{style:{color:oi?"#4ade80":"#666"},children:["(",oi?"on":"off",")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"cc.enabled:"})," ",w("span",{style:{color:xe?"#4ade80":"#f87171"},children:String(xe)})," ",w("span",{style:{color:"#666"},children:["(playing=",String(Ee)," t>0=",String(dt>0),")"]})]}),w("div",{children:[w("span",{style:{color:"#888"},children:"cc.phrase:"})," ",w("span",{style:{color:X?"#4ade80":"#f87171"},children:X?`"${X.text.slice(0,30)}..."`:"null"})]}),X&&w("div",{children:[w("span",{style:{color:"#888"},children:"cc.range:"})," ",w("span",{style:{color:"#60a5fa"},children:[X.startTime.toFixed(2),"-",X.endTime.toFixed(2)]})]})]})})()]})]}),!n&&!An&&wt&&w("div",{className:"doc-player__unavailable",style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"16px",background:"rgba(0, 0, 0, 0.7)",color:"rgba(255, 255, 255, 0.9)",fontSize:"14px",zIndex:50},children:[w("span",{style:{fontSize:"32px"},children:"\u{1F50A}"}),w("span",{children:wt})]}),!n&&!oe&&u&&w(j_,{state:po,actions:hl,blockMarkers:ho,expandedBlocks:We,getBlockTitle:si}),!n&&!oe&&!u&&d&&w("div",{className:"doc-player__scrubber",style:{position:"absolute",bottom:0,left:0,right:0,padding:"12px 16px 8px",background:"linear-gradient(transparent, rgba(0,0,0,0.6))",display:"flex",alignItems:"center",zIndex:100},children:w(bd,{state:po,actions:hl,blockMarkers:ho,expandedBlocks:We,getBlockTitle:si})}),!n&&oe&&u&&w(W_,{state:po,slideNav:Hn,slides:QA,pickerOpen:UA,onPickerOpenChange:Ty}),!oe&&Gt&&w("div",{className:"doc-player__tap-feedback",children:w("svg",{viewBox:"0 0 24 24",fill:"white",width:"48",height:"48",children:Gt==="pause"?w("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}):w("path",{d:"M8 5v14l11-7z"})})},Gt)]})}var MA=`.squisq-md-attachment{display:inline-flex;align-items:center;gap:.35em;max-width:100%;border:1px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:999px;padding:.1em .5em;background:color-mix(in srgb,currentColor 8%,transparent);font-size:.86em;line-height:1.35;vertical-align:middle}.squisq-md-attachment>.fa-paperclip{flex:0 0 auto;opacity:.72}.squisq-md-attachment-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes slowZoomIn{0%{transform:scale(1)}to{transform:scale(1.15)}}.squisq-flashcards{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;min-height:420px;overflow:hidden;padding:clamp(18px,4vw,48px);color:var(--squisq-flashcards-text);background:radial-gradient(circle at 12% 5%,color-mix(in srgb,var(--squisq-flashcards-primary) 22%,transparent),transparent 34%),var(--squisq-flashcards-bg);font-family:var(--squisq-flashcards-body-font);outline:none}.squisq-flashcards *,.squisq-flashcards *:before,.squisq-flashcards *:after{box-sizing:border-box}.squisq-flashcards__header,.squisq-flashcards__progress-row,.squisq-flashcards__progress,.squisq-flashcards__card,.squisq-flashcards__footer,.squisq-flashcards__shortcut-hint,.squisq-flashcards__summary,.squisq-flashcards__empty-card{width:min(920px,100%);margin-inline:auto}.squisq-flashcards__header,.squisq-flashcards__footer,.squisq-flashcards__progress-row,.squisq-flashcards__tools,.squisq-flashcards__primary-actions,.squisq-flashcards__summary-actions{display:flex;align-items:center;gap:10px}.squisq-flashcards__header,.squisq-flashcards__footer,.squisq-flashcards__progress-row{justify-content:space-between}.squisq-flashcards__header{flex:0 0 auto;margin-bottom:22px}.squisq-flashcards__deck-copy h1,.squisq-flashcards__summary h2,.squisq-flashcards__empty-card h2{margin:2px 0 0;font:700 clamp(22px,3vw,34px) / 1.1 var(--squisq-flashcards-title-font)}.squisq-flashcards__eyebrow,.squisq-flashcards__answer-label,.squisq-flashcards__label{color:var(--squisq-flashcards-primary);font-size:12px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.squisq-flashcards__tool,.squisq-flashcards__button{min-height:40px;border:1px solid color-mix(in srgb,var(--squisq-flashcards-text) 22%,transparent);border-radius:999px;padding:8px 16px;color:var(--squisq-flashcards-text);background:color-mix(in srgb,var(--squisq-flashcards-surface) 88%,transparent);font:700 14px/1 var(--squisq-flashcards-body-font);cursor:pointer}.squisq-flashcards__tool:hover,.squisq-flashcards__button:hover:not(:disabled){border-color:var(--squisq-flashcards-primary)}.squisq-flashcards__tool:focus-visible,.squisq-flashcards__button:focus-visible,.squisq-flashcards__choice:focus-visible{outline:3px solid color-mix(in srgb,var(--squisq-flashcards-primary) 45%,transparent);outline-offset:2px}.squisq-flashcards__tool[aria-pressed=true],.squisq-flashcards__button--primary{border-color:var(--squisq-flashcards-primary);color:var(--squisq-flashcards-bg);background:var(--squisq-flashcards-primary)}.squisq-flashcards__button:disabled{opacity:.38;cursor:default}.squisq-flashcards__progress-row{flex:0 0 auto;color:var(--squisq-flashcards-muted);font-size:13px}.squisq-flashcards__progress{flex:0 0 auto;height:5px;margin-top:8px;margin-bottom:18px;overflow:hidden;border-radius:999px;background:color-mix(in srgb,var(--squisq-flashcards-text) 12%,transparent)}.squisq-flashcards__progress>span{display:block;height:100%;border-radius:inherit;background:var(--squisq-flashcards-primary);transition:width .22s ease}.squisq-flashcards__card,.squisq-flashcards__summary,.squisq-flashcards__empty-card{border:1px solid color-mix(in srgb,var(--squisq-flashcards-text) 16%,transparent);border-radius:var(--squisq-flashcards-radius);padding:clamp(24px,5vw,58px);background:color-mix(in srgb,var(--squisq-flashcards-surface) 94%,var(--squisq-flashcards-bg));box-shadow:0 28px 80px color-mix(in srgb,#000 26%,transparent)}.squisq-flashcards__card{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.squisq-flashcards__label{margin-bottom:18px}.squisq-flashcards__content-block+.squisq-flashcards__content-block{margin-top:24px}.squisq-flashcards__content-title{margin:0 0 .45em;color:inherit;font-family:var(--squisq-flashcards-title-font);font-size:clamp(24px,4vw,46px);line-height:1.12}.squisq-flashcards__content-block .squisq-flashcards__content-block .squisq-flashcards__content-title{font-size:clamp(19px,2.7vw,30px)}.squisq-flashcards .squisq-md{font-size:clamp(16px,2vw,21px);line-height:1.55}.squisq-flashcards .squisq-md>:first-child{margin-top:0}.squisq-flashcards .squisq-md>:last-child{margin-bottom:0}.squisq-flashcards .squisq-md img,.squisq-flashcards .squisq-md video{max-width:100%;max-height:42vh;border-radius:calc(var(--squisq-flashcards-radius) * .65);object-fit:contain}.squisq-flashcards__canvas{width:min(720px,100%);aspect-ratio:16 / 9;margin-top:18px;overflow:hidden;border-radius:calc(var(--squisq-flashcards-radius) * .65)}.squisq-flashcards__answer,.squisq-flashcards__explanation,.squisq-flashcards__feedback{margin-top:28px;border-top:1px solid color-mix(in srgb,var(--squisq-flashcards-text) 18%,transparent);padding-top:24px;animation:squisq-flashcard-reveal .18s ease-out both}.squisq-flashcards__answer-label{display:block;margin-bottom:12px}.squisq-flashcards__choices{display:grid;gap:12px;margin-top:28px}.squisq-flashcards__choice{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:14px;width:100%;border:1px solid color-mix(in srgb,var(--squisq-flashcards-text) 18%,transparent);border-radius:calc(var(--squisq-flashcards-radius) * .72);padding:14px 18px;color:var(--squisq-flashcards-text);background:color-mix(in srgb,var(--squisq-flashcards-bg) 32%,transparent);text-align:left;cursor:pointer}.squisq-flashcards__choice:not(:disabled):hover{border-color:var(--squisq-flashcards-primary);transform:translateY(-1px)}.squisq-flashcards__choice[data-choice-status=correct]{border-color:var(--squisq-flashcards-highlight);background:color-mix(in srgb,var(--squisq-flashcards-highlight) 14%,transparent)}.squisq-flashcards__choice[data-choice-status=incorrect]{border-color:var(--squisq-flashcards-warning);background:color-mix(in srgb,var(--squisq-flashcards-warning) 14%,transparent)}.squisq-flashcards__choice-key{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;color:var(--squisq-flashcards-muted);background:color-mix(in srgb,var(--squisq-flashcards-text) 10%,transparent);font-weight:800}.squisq-flashcards__choice .squisq-flashcards__content-title{margin:0;font:700 clamp(16px,2vw,20px) / 1.3 var(--squisq-flashcards-body-font)}.squisq-flashcards__choice .squisq-md{font-size:16px}.squisq-flashcards__feedback>strong{color:var(--squisq-flashcards-warning);font:700 20px/1.2 var(--squisq-flashcards-title-font)}.squisq-flashcards__feedback[data-correct=true]>strong{color:var(--squisq-flashcards-highlight)}.squisq-flashcards__correct-answer>span{display:block;margin:12px 0 8px;color:var(--squisq-flashcards-muted);font-size:13px}.squisq-flashcards__footer{flex:0 0 auto;margin-top:18px}.squisq-flashcards__shortcut-hint{flex:0 0 auto;margin-top:12px;color:var(--squisq-flashcards-muted);font-size:12px;text-align:center}.squisq-flashcards__summary,.squisq-flashcards__empty-card{margin-top:min(12vh,120px);text-align:center}.squisq-flashcards__summary p,.squisq-flashcards__empty-card p,.squisq-flashcards__empty-card ul{color:var(--squisq-flashcards-muted)}.squisq-flashcards__summary-actions{justify-content:center;flex-wrap:wrap;margin-top:24px}@keyframes squisq-flashcard-reveal{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:640px){.squisq-flashcards__header,.squisq-flashcards__footer{align-items:stretch;flex-direction:column}.squisq-flashcards__tools,.squisq-flashcards__primary-actions,.squisq-flashcards__footer>.squisq-flashcards__button{width:100%}.squisq-flashcards__tools>*,.squisq-flashcards__primary-actions>*{flex:1}}@media(prefers-reduced-motion:reduce){.squisq-flashcards__progress>span,.squisq-flashcards__answer,.squisq-flashcards__explanation,.squisq-flashcards__feedback{animation:none;transition:none}}@keyframes slowZoomOut{0%{transform:scale(1.15)}to{transform:scale(1)}}@keyframes slowZoomPanLeft{0%{transform:translate(0) scale(1.1)}to{transform:translate(-8%) scale(1.1)}}@keyframes slowZoomPanRight{0%{transform:translate(-8%) scale(1.1)}to{transform:translate(0) scale(1.1)}}@keyframes slowZoomPanUp{0%{transform:translateY(0) scale(1.1)}to{transform:translateY(-8%) scale(1.1)}}@keyframes slowZoomPanDown{0%{transform:translateY(-8%) scale(1.1)}to{transform:translateY(0) scale(1.1)}}@keyframes slowZoomCombinedPanLeft{0%{transform:translate(0) scale(1)}to{transform:translate(-5%) scale(1.12)}}@keyframes slowZoomCombinedPanRight{0%{transform:translate(-5%) scale(1.12)}to{transform:translate(0) scale(1)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes layerSlideInLeft{0%{opacity:0;transform:translate(-40px)}to{opacity:1;transform:translate(0)}}@keyframes layerSlideInRight{0%{opacity:0;transform:translate(40px)}to{opacity:1;transform:translate(0)}}@keyframes layerSlideInTop{0%{opacity:0;transform:translateY(-40px)}to{opacity:1;transform:translateY(0)}}@keyframes layerSlideInBottom{0%{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}@keyframes growIn{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@keyframes growX{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes growY{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes drawOn{0%{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes drawOnMarkers{0%,82%{opacity:0}to{opacity:1}}@keyframes revealFromLeft{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}@keyframes revealFromRight{0%{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0 0 0 0)}}@keyframes revealFromTop{0%{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}@keyframes revealFromBottom{0%{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0 0 0 0)}}@keyframes revealIris{0%{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(75% at 50% 50%)}}@keyframes wordIn{0%{opacity:0}to{opacity:1}}@keyframes drift{0%{transform:translate(0)}50%{transform:translate(var(--drift-x, 12px),var(--drift-y, -10px))}to{transform:translate(0)}}@keyframes tween{0%{opacity:var(--tween-from-opacity, 1);transform:var(--tween-from-transform, none)}to{opacity:var(--tween-to-opacity, 1);transform:var(--tween-to-transform, none)}}@keyframes zoomIn{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}@keyframes zoomOut{0%{transform:scale(1);opacity:1}to{transform:scale(.9);opacity:0}}@keyframes panLeft{0%{transform:translate(0)}to{transform:translate(-10%)}}@keyframes panRight{0%{transform:translate(-10%)}to{transform:translate(0)}}@keyframes portraitCoverPanRight{0%{object-position:left center}to{object-position:right center}}@keyframes portraitCoverPanLeft{0%{object-position:right center}to{object-position:left center}}@keyframes slideInLeft{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slideOutLeft{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes slideOutRight{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes slideInTop{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes slideInBottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideOutTop{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes slideOutBottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes transitionZoomIn{0%{opacity:0;transform:scale(.82)}to{opacity:1;transform:scale(1)}}@keyframes transitionZoomOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.08)}}@keyframes transitionFlipIn{0%{opacity:0;transform:perspective(1400px) rotateY(-72deg) scale(.96)}to{opacity:1;transform:perspective(1400px) rotateY(0) scale(1)}}@keyframes transitionFlipOut{0%{opacity:1;transform:perspective(1400px) rotateY(0) scale(1)}to{opacity:0;transform:perspective(1400px) rotateY(56deg) scale(.96)}}@keyframes transitionRotateIn{0%{opacity:0;transform:rotate(-8deg) scale(.88)}to{opacity:1;transform:rotate(0) scale(1)}}@keyframes transitionRotateOut{0%{opacity:1;transform:rotate(0) scale(1)}to{opacity:0;transform:rotate(8deg) scale(1.04)}}@keyframes transitionDissolveIn{0%{opacity:0;filter:blur(10px)}60%{opacity:.72}to{opacity:1;filter:blur(0)}}@keyframes transitionDissolveOut{0%{opacity:1;filter:blur(0)}to{opacity:0;filter:blur(12px)}}@keyframes transitionMorphIn{0%{opacity:0;filter:blur(16px) saturate(.8);transform:scale(1.025)}to{opacity:1;filter:blur(0) saturate(1);transform:scale(1)}}@keyframes transitionMorphOut{0%{opacity:1;filter:blur(0) saturate(1);transform:scale(1)}to{opacity:0;filter:blur(16px) saturate(.85);transform:scale(.985)}}@keyframes transitionHold{0%,to{opacity:1;transform:none}}@keyframes transitionWipeLeftIn{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}@keyframes transitionWipeLeftOut{0%{clip-path:inset(0)}to{clip-path:inset(0 0 0 100%)}}@keyframes transitionWipeRightIn{0%{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0)}}@keyframes transitionWipeRightOut{0%{clip-path:inset(0)}to{clip-path:inset(0 100% 0 0)}}@keyframes transitionWipeUpIn{0%{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0)}}@keyframes transitionWipeUpOut{0%{clip-path:inset(0)}to{clip-path:inset(0 0 100% 0)}}@keyframes transitionWipeDownIn{0%{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}@keyframes transitionWipeDownOut{0%{clip-path:inset(0)}to{clip-path:inset(100% 0 0 0)}}@keyframes transitionSplitHorizontalIn{0%{clip-path:inset(0 50% 0 50%)}to{clip-path:inset(0)}}@keyframes transitionSplitHorizontalOut{0%{clip-path:inset(0)}to{clip-path:inset(0 50% 0 50%)}}@keyframes transitionSplitVerticalIn{0%{clip-path:inset(50% 0 50% 0)}to{clip-path:inset(0)}}@keyframes transitionSplitVerticalOut{0%{clip-path:inset(0)}to{clip-path:inset(50% 0 50% 0)}}@keyframes transitionCircleIn{0%{clip-path:circle(0% at 50% 50%);opacity:.4}to{clip-path:circle(75% at 50% 50%);opacity:1}}@keyframes transitionCircleOut{0%{clip-path:circle(75% at 50% 50%);opacity:1}to{clip-path:circle(0% at 50% 50%);opacity:0}}@keyframes transitionDiamondIn{0%{clip-path:polygon(50% 50%,50% 50%,50% 50%,50% 50%);opacity:.35}to{clip-path:polygon(50% -30%,130% 50%,50% 130%,-30% 50%);opacity:1}}@keyframes transitionDiamondOut{0%{clip-path:polygon(50% -30%,130% 50%,50% 130%,-30% 50%);opacity:1}to{clip-path:polygon(50% 50%,50% 50%,50% 50%,50% 50%);opacity:0}}@keyframes transitionPlusIn{0%{clip-path:polygon(50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%);opacity:.45}70%{clip-path:polygon(43% 0,57% 0,57% 43%,100% 43%,100% 57%,57% 57%,57% 100%,43% 100%,43% 57%,0 57%,0 43%,43% 43%);opacity:1}to{clip-path:inset(0);opacity:1}}@keyframes transitionPlusOut{0%{clip-path:inset(0);opacity:1}to{clip-path:polygon(50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%,50% 50%);opacity:0}}@keyframes transitionFlashIn{0%{opacity:0;filter:brightness(2.8) contrast(1.5);transform:scale(1.04)}42%{opacity:1;filter:brightness(3.5) contrast(1.8)}to{opacity:1;filter:brightness(1) contrast(1);transform:scale(1)}}@keyframes transitionFlashOut{0%{opacity:1;filter:brightness(1) contrast(1)}55%{opacity:.9;filter:brightness(3) contrast(1.6)}to{opacity:0;filter:brightness(.4) contrast(1)}}@keyframes transitionNewsflashIn{0%{opacity:0;filter:brightness(3) contrast(1.8);transform:scale(.72) rotate(-2deg)}45%{opacity:1;filter:brightness(2.8) contrast(1.6);transform:scale(1.08) rotate(1deg)}to{opacity:1;filter:brightness(1) contrast(1);transform:scale(1) rotate(0)}}@keyframes transitionNewsflashOut{0%{opacity:1;filter:brightness(1) contrast(1);transform:scale(1)}to{opacity:0;filter:brightness(2.4) contrast(1.6);transform:scale(1.18) rotate(2deg)}}@keyframes transitionFallOverIn{0%{opacity:0;transform:perspective(1200px) rotateX(-72deg) translateY(-8%);transform-origin:50% 100%}to{opacity:1;transform:perspective(1200px) rotateX(0) translateY(0);transform-origin:50% 100%}}@keyframes transitionFallOverOut{0%{opacity:1;transform:perspective(1200px) rotateX(0) translateY(0);transform-origin:50% 100%}to{opacity:0;transform:perspective(1200px) rotateX(76deg) translateY(8%);transform-origin:50% 100%}}@keyframes transitionDrapeIn{0%{opacity:0;transform:perspective(1200px) rotateX(-42deg) skew(-8deg) scaleY(.82);transform-origin:50% 0}to{opacity:1;transform:perspective(1200px) rotateX(0) skew(0) scaleY(1);transform-origin:50% 0}}@keyframes transitionDrapeOut{0%{opacity:1;transform:perspective(1200px) rotateX(0) skew(0) scaleY(1);transform-origin:50% 0}to{opacity:0;transform:perspective(1200px) rotateX(48deg) skew(7deg) scaleY(.74);transform-origin:50% 0}}@keyframes transitionCurtainsIn{0%{opacity:.4;transform:scaleX(.04);filter:brightness(.75)}to{opacity:1;transform:scaleX(1);filter:brightness(1)}}@keyframes transitionCurtainsOut{0%{opacity:1;transform:scaleX(1);filter:brightness(1)}to{opacity:.35;transform:scaleX(.04);filter:brightness(.55)}}@keyframes transitionWindIn{0%{opacity:0;filter:blur(14px);transform:translate(24%) skew(-14deg)}to{opacity:1;filter:blur(0);transform:translate(0) skew(0)}}@keyframes transitionWindOut{0%{opacity:1;filter:blur(0);transform:translate(0) skew(0)}to{opacity:0;filter:blur(14px);transform:translate(-24%) skew(14deg)}}@keyframes transitionPrestigeIn{0%{opacity:0;filter:brightness(1.8) saturate(.7);transform:perspective(1200px) translateZ(-180px) scale(.82)}to{opacity:1;filter:brightness(1) saturate(1);transform:perspective(1200px) translateZ(0) scale(1)}}@keyframes transitionPrestigeOut{0%{opacity:1;filter:brightness(1) saturate(1);transform:perspective(1200px) translateZ(0) scale(1)}to{opacity:0;filter:brightness(1.6) saturate(.75);transform:perspective(1200px) translateZ(140px) scale(1.06)}}@keyframes transitionFractureIn{0%{opacity:0;filter:contrast(1.8) brightness(1.4);clip-path:polygon(0 0,48% 0,52% 24%,100% 0,100% 100%,55% 78%,45% 100%,0 100%);transform:skew(-6deg) scale(1.03)}to{opacity:1;filter:contrast(1) brightness(1);clip-path:inset(0);transform:skew(0) scale(1)}}@keyframes transitionFractureOut{0%{opacity:1;filter:contrast(1) brightness(1);clip-path:inset(0);transform:skew(0) scale(1)}to{opacity:0;filter:contrast(1.8) brightness(1.2);clip-path:polygon(0 0,42% 8%,56% 28%,100% 0,100% 100%,58% 72%,40% 94%,0 100%);transform:skew(8deg) scale(1.05)}}@keyframes transitionCrushIn{0%{opacity:0;transform:scaleX(1.22) scaleY(.08);filter:contrast(1.4)}to{opacity:1;transform:scaleX(1) scaleY(1);filter:contrast(1)}}@keyframes transitionCrushOut{0%{opacity:1;transform:scaleX(1) scaleY(1);filter:contrast(1)}to{opacity:0;transform:scaleX(1.28) scaleY(.04);filter:contrast(1.5)}}@keyframes transitionPeelIn{0%{opacity:0;transform:perspective(1400px) rotateY(-78deg) skewY(8deg);transform-origin:0 50%}to{opacity:1;transform:perspective(1400px) rotateY(0) skewY(0);transform-origin:0 50%}}@keyframes transitionPeelOut{0%{opacity:1;transform:perspective(1400px) rotateY(0) skewY(0);transform-origin:100% 50%}to{opacity:0;transform:perspective(1400px) rotateY(82deg) skewY(-8deg);transform-origin:100% 50%}}@keyframes transitionPageCurlIn{0%{opacity:0;transform:perspective(1400px) rotateY(-64deg) rotate(-2deg);transform-origin:0 50%;filter:brightness(.85)}to{opacity:1;transform:perspective(1400px) rotateY(0) rotate(0);transform-origin:0 50%;filter:brightness(1)}}@keyframes transitionPageCurlOut{0%{opacity:1;transform:perspective(1400px) rotateY(0) rotate(0);transform-origin:100% 50%;filter:brightness(1)}to{opacity:0;transform:perspective(1400px) rotateY(68deg) rotate(2deg);transform-origin:100% 50%;filter:brightness(.8)}}@keyframes transitionAirplaneIn{0%{opacity:0;transform:translate(-40%,30%) rotate(-18deg) scale(.72);filter:blur(2px)}to{opacity:1;transform:translate(0) rotate(0) scale(1);filter:blur(0)}}@keyframes transitionAirplaneOut{0%{opacity:1;transform:translate(0) rotate(0) scale(1);filter:blur(0)}to{opacity:0;transform:translate(42%,-28%) rotate(18deg) scale(.72);filter:blur(2px)}}@keyframes transitionOrigamiIn{0%{opacity:0;transform:perspective(1400px) rotateX(58deg) rotateY(-42deg) scale(.86);filter:brightness(.85)}to{opacity:1;transform:perspective(1400px) rotateX(0) rotateY(0) scale(1);filter:brightness(1)}}@keyframes transitionOrigamiOut{0%{opacity:1;transform:perspective(1400px) rotateX(0) rotateY(0) scale(1);filter:brightness(1)}to{opacity:0;transform:perspective(1400px) rotateX(-58deg) rotateY(42deg) scale(.82);filter:brightness(.82)}}@keyframes transitionRippleIn{0%{opacity:0;filter:blur(10px);transform:scale(.86);clip-path:circle(0% at 50% 50%)}60%{opacity:.88;filter:blur(3px);transform:scale(1.035);clip-path:circle(65% at 50% 50%)}to{opacity:1;filter:blur(0);transform:scale(1);clip-path:circle(75% at 50% 50%)}}@keyframes transitionRippleOut{0%{opacity:1;filter:blur(0);transform:scale(1);clip-path:circle(75% at 50% 50%)}to{opacity:0;filter:blur(10px);transform:scale(1.08);clip-path:circle(0% at 50% 50%)}}@keyframes transitionTexturedIn{0%{opacity:.12;filter:contrast(1.6)}88%{opacity:1;filter:contrast(1.05)}to{opacity:1;filter:contrast(1);-webkit-mask-image:none;mask-image:none}}@keyframes transitionTexturedOut{0%{opacity:1;filter:contrast(1)}to{opacity:0;filter:contrast(1.7)}}@keyframes transitionVortexIn{0%{opacity:0;transform:rotate(-110deg) scale(.28);filter:blur(8px)}to{opacity:1;transform:rotate(0) scale(1);filter:blur(0)}}@keyframes transitionVortexOut{0%{opacity:1;transform:rotate(0) scale(1);filter:blur(0)}to{opacity:0;transform:rotate(120deg) scale(.2);filter:blur(10px)}}@keyframes transitionShredIn{0%{opacity:0;clip-path:inset(0 42% 0 42%);transform:translateY(-9%) skew(-8deg);filter:contrast(1.7)}to{opacity:1;clip-path:inset(0);transform:translateY(0) skew(0);filter:contrast(1)}}@keyframes transitionShredOut{0%{opacity:1;clip-path:inset(0);transform:translateY(0) skew(0);filter:contrast(1)}to{opacity:0;clip-path:inset(0 44% 0 44%);transform:translateY(11%) skew(8deg);filter:contrast(1.8)}}@keyframes transitionSwitchIn{0%{opacity:0;transform:perspective(1400px) rotateY(-48deg) translate(18%)}to{opacity:1;transform:perspective(1400px) rotateY(0) translate(0)}}@keyframes transitionSwitchOut{0%{opacity:1;transform:perspective(1400px) rotateY(0) translate(0)}to{opacity:0;transform:perspective(1400px) rotateY(48deg) translate(-18%)}}@keyframes transitionCubeIn{0%{opacity:0;transform:perspective(1200px) rotateY(-86deg) translate(44%);transform-origin:0 50%}to{opacity:1;transform:perspective(1200px) rotateY(0) translate(0);transform-origin:0 50%}}@keyframes transitionCubeOut{0%{opacity:1;transform:perspective(1200px) rotateY(0) translate(0);transform-origin:100% 50%}to{opacity:0;transform:perspective(1200px) rotateY(86deg) translate(-44%);transform-origin:100% 50%}}@keyframes transitionDoorsIn{0%{opacity:.2;transform:perspective(1200px) scaleX(.04);filter:brightness(.7)}to{opacity:1;transform:perspective(1200px) scaleX(1);filter:brightness(1)}}@keyframes transitionDoorsOut{0%{opacity:1;transform:perspective(1200px) scaleX(1);filter:brightness(1)}to{opacity:.2;transform:perspective(1200px) scaleX(.04);filter:brightness(.65)}}@keyframes transitionBoxIn{0%{opacity:.2;transform:scale(.18);clip-path:inset(38%)}to{opacity:1;transform:scale(1);clip-path:inset(0)}}@keyframes transitionBoxOut{0%{opacity:1;transform:scale(1);clip-path:inset(0)}to{opacity:0;transform:scale(.18);clip-path:inset(38%)}}@keyframes transitionGalleryIn{0%{opacity:0;transform:translate(28%) scale(.84);filter:brightness(.82)}to{opacity:1;transform:translate(0) scale(1);filter:brightness(1)}}@keyframes transitionGalleryOut{0%{opacity:1;transform:translate(0) scale(1);filter:brightness(1)}to{opacity:0;transform:translate(-28%) scale(.84);filter:brightness(.82)}}@keyframes transitionFerrisIn{0%{opacity:0;transform:translateY(42%) rotate(-34deg) scale(.78);transform-origin:50% 140%}to{opacity:1;transform:translateY(0) rotate(0) scale(1);transform-origin:50% 140%}}@keyframes transitionFerrisOut{0%{opacity:1;transform:translateY(0) rotate(0) scale(1);transform-origin:50% 140%}to{opacity:0;transform:translateY(-42%) rotate(34deg) scale(.78);transform-origin:50% 140%}}@keyframes transitionWindowIn{0%{opacity:.35;clip-path:inset(50% 50% 50% 50%);transform:scale(1.08)}to{opacity:1;clip-path:inset(0);transform:scale(1)}}@keyframes transitionWindowOut{0%{opacity:1;clip-path:inset(0);transform:scale(1)}to{opacity:0;clip-path:inset(50% 50% 50% 50%);transform:scale(1.08)}}@keyframes transitionOrbitIn{0%{opacity:0;transform:rotate(-42deg) translate(18%) scale(.76);transform-origin:50% 50%}to{opacity:1;transform:rotate(0) translate(0) scale(1);transform-origin:50% 50%}}@keyframes transitionOrbitOut{0%{opacity:1;transform:rotate(0) translate(0) scale(1);transform-origin:50% 50%}to{opacity:0;transform:rotate(42deg) translate(-18%) scale(.76);transform-origin:50% 50%}}@keyframes transitionFlyThroughIn{0%{opacity:0;transform:perspective(1200px) translateZ(-520px) scale(.56);filter:blur(4px)}to{opacity:1;transform:perspective(1200px) translateZ(0) scale(1);filter:blur(0)}}@keyframes transitionFlyThroughOut{0%{opacity:1;transform:perspective(1200px) translateZ(0) scale(1);filter:blur(0)}to{opacity:0;transform:perspective(1200px) translateZ(420px) scale(1.28);filter:blur(5px)}}@keyframes transitionWheelIn{0%{opacity:0;transform:rotate(-58deg) scale(.7);clip-path:circle(0% at 50% 50%)}to{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}}@keyframes transitionWheelOut{0%{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}to{opacity:0;transform:rotate(58deg) scale(.7);clip-path:circle(0% at 50% 50%)}}@keyframes transitionWheelReverseIn{0%{opacity:0;transform:rotate(58deg) scale(.7);clip-path:circle(0% at 50% 50%)}to{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}}@keyframes transitionWheelReverseOut{0%{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}to{opacity:0;transform:rotate(-58deg) scale(.7);clip-path:circle(0% at 50% 50%)}}@keyframes transitionWedgeIn{0%{opacity:.4;clip-path:polygon(50% 50%,50% 0,50% 0)}to{opacity:1;clip-path:polygon(50% 50%,-30% -30%,130% -30%,130% 130%,-30% 130%)}}@keyframes transitionWedgeOut{0%{opacity:1;clip-path:polygon(50% 50%,-30% -30%,130% -30%,130% 130%,-30% 130%)}to{opacity:0;clip-path:polygon(50% 50%,50% 0,50% 0)}}@keyframes transitionPrismIn{0%{opacity:0;transform:perspective(1200px) rotateY(-28deg) skew(-12deg) scale(.9);filter:hue-rotate(24deg) saturate(1.6)}to{opacity:1;transform:perspective(1200px) rotateY(0) skew(0) scale(1);filter:hue-rotate(0deg) saturate(1)}}@keyframes transitionPrismOut{0%{opacity:1;transform:perspective(1200px) rotateY(0) skew(0) scale(1);filter:hue-rotate(0deg) saturate(1)}to{opacity:0;transform:perspective(1200px) rotateY(28deg) skew(12deg) scale(.9);filter:hue-rotate(-24deg) saturate(1.6)}}@keyframes transitionWarpIn{0%{opacity:0;transform:scaleX(.72) scaleY(1.18) skew(-14deg);filter:blur(8px)}to{opacity:1;transform:scaleX(1) scaleY(1) skew(0);filter:blur(0)}}@keyframes transitionWarpOut{0%{opacity:1;transform:scaleX(1) scaleY(1) skew(0);filter:blur(0)}to{opacity:0;transform:scaleX(1.2) scaleY(.72) skew(14deg);filter:blur(8px)}}@keyframes transitionClockIn{0%{opacity:.35;transform:rotate(-90deg) scale(.84);clip-path:circle(0% at 50% 50%)}to{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}}@keyframes transitionClockOut{0%{opacity:1;transform:rotate(0) scale(1);clip-path:circle(75% at 50% 50%)}to{opacity:0;transform:rotate(90deg) scale(.84);clip-path:circle(0% at 50% 50%)}}@keyframes typewriter{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}@keyframes typewriterFallback{0%{width:0;overflow:hidden}to{width:100%;overflow:hidden}}.transition-fade-enter{animation:fadeIn var(--transition-duration, 1.5s) ease-out forwards}.transition-fade-exit{animation:fadeOut var(--transition-duration, 1.5s) ease-out forwards}.transition-dissolve-enter{animation:transitionDissolveIn var(--transition-duration, .8s) ease-in-out forwards}.transition-dissolve-exit{animation:transitionDissolveOut var(--transition-duration, .8s) ease-in-out forwards}.transition-morph-enter{animation:transitionMorphIn var(--transition-duration, .9s) ease-in-out forwards}.transition-morph-exit{animation:transitionMorphOut var(--transition-duration, .9s) ease-in-out forwards}.transition-pushLeft-enter,.transition-slideLeft-enter{animation:slideInRight var(--transition-duration, .8s) ease-out forwards}.transition-pushLeft-exit,.transition-slideLeft-exit{animation:slideOutLeft var(--transition-duration, .8s) ease-out forwards}.transition-pushRight-enter,.transition-slideRight-enter{animation:slideInLeft var(--transition-duration, .8s) ease-out forwards}.transition-pushRight-exit,.transition-slideRight-exit{animation:slideOutRight var(--transition-duration, .8s) ease-out forwards}.transition-pushUp-enter,.transition-slideUp-enter{animation:slideInBottom var(--transition-duration, .8s) ease-out forwards}.transition-pushUp-exit,.transition-slideUp-exit{animation:slideOutTop var(--transition-duration, .8s) ease-out forwards}.transition-pushDown-enter,.transition-slideDown-enter{animation:slideInTop var(--transition-duration, .8s) ease-out forwards}.transition-pushDown-exit,.transition-slideDown-exit{animation:slideOutBottom var(--transition-duration, .8s) ease-out forwards}.transition-zoom-enter{animation:transitionZoomIn var(--transition-duration, .7s) ease-out forwards}.transition-zoom-exit{animation:transitionZoomOut var(--transition-duration, .7s) ease-in forwards}.transition-flip-enter{animation:transitionFlipIn var(--transition-duration, .8s) ease-out forwards}.transition-flip-exit{animation:transitionFlipOut var(--transition-duration, .8s) ease-in forwards}.transition-rotate-enter{animation:transitionRotateIn var(--transition-duration, .8s) ease-out forwards}.transition-rotate-exit{animation:transitionRotateOut var(--transition-duration, .8s) ease-in forwards}.transition-wipeLeft-enter,.transition-revealLeft-enter{animation:transitionWipeLeftIn var(--transition-duration, .75s) ease-out forwards}.transition-wipeLeft-exit{animation:transitionWipeLeftOut var(--transition-duration, .75s) ease-in forwards}.transition-wipeRight-enter,.transition-revealRight-enter{animation:transitionWipeRightIn var(--transition-duration, .75s) ease-out forwards}.transition-wipeRight-exit{animation:transitionWipeRightOut var(--transition-duration, .75s) ease-in forwards}.transition-wipeUp-enter,.transition-revealUp-enter{animation:transitionWipeUpIn var(--transition-duration, .75s) ease-out forwards}.transition-wipeUp-exit{animation:transitionWipeUpOut var(--transition-duration, .75s) ease-in forwards}.transition-wipeDown-enter,.transition-revealDown-enter{animation:transitionWipeDownIn var(--transition-duration, .75s) ease-out forwards}.transition-wipeDown-exit{animation:transitionWipeDownOut var(--transition-duration, .75s) ease-in forwards}.transition-revealLeft-exit,.transition-revealRight-exit,.transition-revealUp-exit,.transition-revealDown-exit{animation:fadeOut var(--transition-duration, .75s) ease-in forwards}.transition-splitHorizontal-enter{animation:transitionSplitHorizontalIn var(--transition-duration, .8s) ease-out forwards}.transition-splitHorizontal-exit{animation:transitionSplitHorizontalOut var(--transition-duration, .8s) ease-in forwards}.transition-splitVertical-enter{animation:transitionSplitVerticalIn var(--transition-duration, .8s) ease-out forwards}.transition-splitVertical-exit{animation:transitionSplitVerticalOut var(--transition-duration, .8s) ease-in forwards}.transition-coverLeft-enter,.transition-pullLeft-enter{animation:slideInRight var(--transition-duration, .75s) ease-out forwards}.transition-coverRight-enter,.transition-pullRight-enter{animation:slideInLeft var(--transition-duration, .75s) ease-out forwards}.transition-coverUp-enter,.transition-pullUp-enter{animation:slideInBottom var(--transition-duration, .75s) ease-out forwards}.transition-coverDown-enter,.transition-pullDown-enter{animation:slideInTop var(--transition-duration, .75s) ease-out forwards}.transition-coverLeft-exit,.transition-coverRight-exit,.transition-coverUp-exit,.transition-coverDown-exit,.transition-pullLeft-exit,.transition-pullRight-exit,.transition-pullUp-exit,.transition-pullDown-exit{animation:transitionHold var(--transition-duration, .75s) linear forwards}.transition-uncoverLeft-enter,.transition-uncoverRight-enter,.transition-uncoverUp-enter,.transition-uncoverDown-enter{animation:fadeIn var(--transition-duration, .75s) ease-out forwards}.transition-uncoverLeft-exit{animation:slideOutLeft var(--transition-duration, .75s) ease-in forwards}.transition-uncoverRight-exit{animation:slideOutRight var(--transition-duration, .75s) ease-in forwards}.transition-uncoverUp-exit{animation:slideOutTop var(--transition-duration, .75s) ease-in forwards}.transition-uncoverDown-exit{animation:slideOutBottom var(--transition-duration, .75s) ease-in forwards}.transition-shapeCircle-enter{animation:transitionCircleIn var(--transition-duration, .75s) ease-out forwards}.transition-shapeCircle-exit{animation:transitionCircleOut var(--transition-duration, .75s) ease-in forwards}.transition-shapeDiamond-enter{animation:transitionDiamondIn var(--transition-duration, .75s) ease-out forwards}.transition-shapeDiamond-exit{animation:transitionDiamondOut var(--transition-duration, .75s) ease-in forwards}.transition-shapePlus-enter{animation:transitionPlusIn var(--transition-duration, .8s) ease-out forwards}.transition-shapePlus-exit{animation:transitionPlusOut var(--transition-duration, .8s) ease-in forwards}.transition-flash-enter{animation:transitionFlashIn var(--transition-duration, .7s) ease-out forwards}.transition-flash-exit{animation:transitionFlashOut var(--transition-duration, .7s) ease-in forwards}.transition-newsflash-enter{animation:transitionNewsflashIn var(--transition-duration, .75s) ease-out forwards}.transition-newsflash-exit{animation:transitionNewsflashOut var(--transition-duration, .75s) ease-in forwards}.transition-fallOver-enter{animation:transitionFallOverIn var(--transition-duration, .85s) ease-out forwards}.transition-fallOver-exit{animation:transitionFallOverOut var(--transition-duration, .85s) ease-in forwards}.transition-drape-enter{animation:transitionDrapeIn var(--transition-duration, .85s) ease-out forwards}.transition-drape-exit{animation:transitionDrapeOut var(--transition-duration, .85s) ease-in forwards}.transition-curtains-enter{animation:transitionCurtainsIn var(--transition-duration, .85s) ease-out forwards}.transition-curtains-exit{animation:transitionCurtainsOut var(--transition-duration, .85s) ease-in forwards}.transition-wind-enter{animation:transitionWindIn var(--transition-duration, .8s) ease-out forwards}.transition-wind-exit{animation:transitionWindOut var(--transition-duration, .8s) ease-in forwards}.transition-prestige-enter{animation:transitionPrestigeIn var(--transition-duration, .85s) ease-out forwards}.transition-prestige-exit{animation:transitionPrestigeOut var(--transition-duration, .85s) ease-in forwards}.transition-fracture-enter{animation:transitionFractureIn var(--transition-duration, .8s) ease-out forwards}.transition-fracture-exit{animation:transitionFractureOut var(--transition-duration, .8s) ease-in forwards}.transition-crush-enter{animation:transitionCrushIn var(--transition-duration, .75s) ease-out forwards}.transition-crush-exit{animation:transitionCrushOut var(--transition-duration, .75s) ease-in forwards}.transition-peelOff-enter{animation:transitionPeelIn var(--transition-duration, .85s) ease-out forwards}.transition-peelOff-exit{animation:transitionPeelOut var(--transition-duration, .85s) ease-in forwards}.transition-pageCurl-enter,.transition-pageCurlDouble-enter,.transition-pageCurlSingle-enter{animation:transitionPageCurlIn var(--transition-duration, .9s) ease-out forwards}.transition-pageCurl-exit,.transition-pageCurlDouble-exit,.transition-pageCurlSingle-exit{animation:transitionPageCurlOut var(--transition-duration, .9s) ease-in forwards}.transition-airplane-enter{animation:transitionAirplaneIn var(--transition-duration, .85s) ease-out forwards}.transition-airplane-exit{animation:transitionAirplaneOut var(--transition-duration, .85s) ease-in forwards}.transition-origami-enter{animation:transitionOrigamiIn var(--transition-duration, .85s) ease-out forwards}.transition-origami-exit{animation:transitionOrigamiOut var(--transition-duration, .85s) ease-in forwards}.transition-ripple-enter{animation:transitionRippleIn var(--transition-duration, .85s) ease-out forwards}.transition-ripple-exit{animation:transitionRippleOut var(--transition-duration, .85s) ease-in forwards}.transition-checkerboard-enter,.transition-random-enter{-webkit-mask-image:linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%),linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%);-webkit-mask-size:12% 12%;-webkit-mask-position:0 0,6% 6%;mask-image:linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%),linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%);mask-size:12% 12%;mask-position:0 0,6% 6%;animation:transitionTexturedIn var(--transition-duration, .85s) steps(8,end) forwards}.transition-checkerboard-exit,.transition-random-exit{-webkit-mask-image:linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%),linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%);-webkit-mask-size:12% 12%;-webkit-mask-position:0 0,6% 6%;mask-image:linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%),linear-gradient(45deg,#000 25%,transparent 25%,transparent 75%,#000 75%);mask-size:12% 12%;mask-position:0 0,6% 6%;animation:transitionTexturedOut var(--transition-duration, .85s) steps(8,end) forwards}.transition-randomBarsHorizontal-enter,.transition-blindsHorizontal-enter,.transition-combHorizontal-enter,.transition-stripsLeft-enter,.transition-stripsRight-enter{-webkit-mask-image:repeating-linear-gradient(0deg,#000 0 6%,transparent 6% 12%);mask-image:repeating-linear-gradient(0deg,#000 0 6%,transparent 6% 12%);animation:transitionTexturedIn var(--transition-duration, .8s) steps(9,end) forwards}.transition-randomBarsHorizontal-exit,.transition-blindsHorizontal-exit,.transition-combHorizontal-exit,.transition-stripsLeft-exit,.transition-stripsRight-exit{-webkit-mask-image:repeating-linear-gradient(0deg,#000 0 6%,transparent 6% 12%);mask-image:repeating-linear-gradient(0deg,#000 0 6%,transparent 6% 12%);animation:transitionTexturedOut var(--transition-duration, .8s) steps(9,end) forwards}.transition-randomBarsVertical-enter,.transition-blindsVertical-enter,.transition-combVertical-enter,.transition-stripsUp-enter,.transition-stripsDown-enter{-webkit-mask-image:repeating-linear-gradient(90deg,#000 0 6%,transparent 6% 12%);mask-image:repeating-linear-gradient(90deg,#000 0 6%,transparent 6% 12%);animation:transitionTexturedIn var(--transition-duration, .8s) steps(9,end) forwards}.transition-randomBarsVertical-exit,.transition-blindsVertical-exit,.transition-combVertical-exit,.transition-stripsUp-exit,.transition-stripsDown-exit{-webkit-mask-image:repeating-linear-gradient(90deg,#000 0 6%,transparent 6% 12%);mask-image:repeating-linear-gradient(90deg,#000 0 6%,transparent 6% 12%);animation:transitionTexturedOut var(--transition-duration, .8s) steps(9,end) forwards}.transition-honeycomb-enter{-webkit-mask-image:radial-gradient(circle,#000 0 34%,transparent 35% 48%,#000 49%);-webkit-mask-size:10% 17%;mask-image:radial-gradient(circle,#000 0 34%,transparent 35% 48%,#000 49%);mask-size:10% 17%;animation:transitionTexturedIn var(--transition-duration, .85s) steps(8,end) forwards}.transition-honeycomb-exit{-webkit-mask-image:radial-gradient(circle,#000 0 34%,transparent 35% 48%,#000 49%);-webkit-mask-size:10% 17%;mask-image:radial-gradient(circle,#000 0 34%,transparent 35% 48%,#000 49%);mask-size:10% 17%;animation:transitionTexturedOut var(--transition-duration, .85s) steps(8,end) forwards}.transition-glitter-enter{-webkit-mask-image:radial-gradient(circle,#000 0 18%,transparent 20% 36%,#000 38%);-webkit-mask-size:7% 7%;mask-image:radial-gradient(circle,#000 0 18%,transparent 20% 36%,#000 38%);mask-size:7% 7%;animation:transitionFlashIn var(--transition-duration, .85s) steps(10,end) forwards}.transition-glitter-exit{-webkit-mask-image:radial-gradient(circle,#000 0 18%,transparent 20% 36%,#000 38%);-webkit-mask-size:7% 7%;mask-image:radial-gradient(circle,#000 0 18%,transparent 20% 36%,#000 38%);mask-size:7% 7%;animation:transitionFlashOut var(--transition-duration, .85s) steps(10,end) forwards}.transition-vortex-enter{animation:transitionVortexIn var(--transition-duration, .85s) ease-out forwards}.transition-vortex-exit{animation:transitionVortexOut var(--transition-duration, .85s) ease-in forwards}.transition-shred-enter{-webkit-mask-image:repeating-linear-gradient(90deg,#000 0 5%,transparent 5% 8%);mask-image:repeating-linear-gradient(90deg,#000 0 5%,transparent 5% 8%);animation:transitionShredIn var(--transition-duration, .85s) ease-out forwards}.transition-shred-exit{-webkit-mask-image:repeating-linear-gradient(90deg,#000 0 5%,transparent 5% 8%);mask-image:repeating-linear-gradient(90deg,#000 0 5%,transparent 5% 8%);animation:transitionShredOut var(--transition-duration, .85s) ease-in forwards}.transition-switch-enter{animation:transitionSwitchIn var(--transition-duration, .8s) ease-out forwards}.transition-switch-exit{animation:transitionSwitchOut var(--transition-duration, .8s) ease-in forwards}.transition-cube-enter{animation:transitionCubeIn var(--transition-duration, .85s) ease-out forwards}.transition-cube-exit{animation:transitionCubeOut var(--transition-duration, .85s) ease-in forwards}.transition-doors-enter{animation:transitionDoorsIn var(--transition-duration, .85s) ease-out forwards}.transition-doors-exit{animation:transitionDoorsOut var(--transition-duration, .85s) ease-in forwards}.transition-box-enter{animation:transitionBoxIn var(--transition-duration, .75s) ease-out forwards}.transition-box-exit{animation:transitionBoxOut var(--transition-duration, .75s) ease-in forwards}.transition-gallery-enter{animation:transitionGalleryIn var(--transition-duration, .8s) ease-out forwards}.transition-gallery-exit{animation:transitionGalleryOut var(--transition-duration, .8s) ease-in forwards}.transition-conveyor-enter,.transition-panLeft-enter{animation:slideInRight var(--transition-duration, .8s) ease-out forwards}.transition-conveyor-exit,.transition-panLeft-exit{animation:slideOutLeft var(--transition-duration, .8s) ease-in forwards}.transition-panRight-enter{animation:slideInLeft var(--transition-duration, .8s) ease-out forwards}.transition-panRight-exit{animation:slideOutRight var(--transition-duration, .8s) ease-in forwards}.transition-panUp-enter{animation:slideInBottom var(--transition-duration, .8s) ease-out forwards}.transition-panUp-exit{animation:slideOutTop var(--transition-duration, .8s) ease-in forwards}.transition-panDown-enter{animation:slideInTop var(--transition-duration, .8s) ease-out forwards}.transition-panDown-exit{animation:slideOutBottom var(--transition-duration, .8s) ease-in forwards}.transition-ferrisWheel-enter{animation:transitionFerrisIn var(--transition-duration, .85s) ease-out forwards}.transition-ferrisWheel-exit{animation:transitionFerrisOut var(--transition-duration, .85s) ease-in forwards}.transition-window-enter{animation:transitionWindowIn var(--transition-duration, .8s) ease-out forwards}.transition-window-exit{animation:transitionWindowOut var(--transition-duration, .8s) ease-in forwards}.transition-orbit-enter{animation:transitionOrbitIn var(--transition-duration, .85s) ease-out forwards}.transition-orbit-exit{animation:transitionOrbitOut var(--transition-duration, .85s) ease-in forwards}.transition-flyThrough-enter{animation:transitionFlyThroughIn var(--transition-duration, .85s) ease-out forwards}.transition-flyThrough-exit{animation:transitionFlyThroughOut var(--transition-duration, .85s) ease-in forwards}.transition-wheel-enter{animation:transitionWheelIn var(--transition-duration, .85s) ease-out forwards}.transition-wheel-exit{animation:transitionWheelOut var(--transition-duration, .85s) ease-in forwards}.transition-wheelReverse-enter{animation:transitionWheelReverseIn var(--transition-duration, .85s) ease-out forwards}.transition-wheelReverse-exit{animation:transitionWheelReverseOut var(--transition-duration, .85s) ease-in forwards}.transition-wedge-enter{animation:transitionWedgeIn var(--transition-duration, .8s) ease-out forwards}.transition-wedge-exit{animation:transitionWedgeOut var(--transition-duration, .8s) ease-in forwards}.transition-prism-enter{animation:transitionPrismIn var(--transition-duration, .85s) ease-out forwards}.transition-prism-exit{animation:transitionPrismOut var(--transition-duration, .85s) ease-in forwards}.transition-warp-enter{animation:transitionWarpIn var(--transition-duration, .85s) ease-out forwards}.transition-warp-exit{animation:transitionWarpOut var(--transition-duration, .85s) ease-in forwards}.transition-clock-enter{animation:transitionClockIn var(--transition-duration, .8s) ease-out forwards}.transition-clock-exit{animation:transitionClockOut var(--transition-duration, .8s) ease-in forwards}.anim-none{animation:none}.anim-fadeIn{animation:fadeIn var(--anim-duration, 1s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-fadeOut{animation:fadeOut var(--anim-duration, 1s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-fadeInUp{animation:fadeInUp var(--anim-duration, .6s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-slowZoom-in{animation:slowZoomIn var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.anim-slowZoom-out{animation:slowZoomOut var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.anim-slowZoom-panLeft{animation:slowZoomCombinedPanLeft var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.anim-slowZoom-panRight{animation:slowZoomCombinedPanRight var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.anim-zoomIn{animation:zoomIn var(--anim-duration, .5s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-zoomOut{animation:zoomOut var(--anim-duration, .5s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-panLeft{animation:panLeft var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.anim-panRight{animation:panRight var(--anim-duration, 8s) var(--anim-easing, linear) var(--anim-delay, 0s) both}.squisq-image--portrait-pan-right{animation:portraitCoverPanRight var(--portrait-pan-duration, 12s) var(--portrait-pan-easing, ease-in-out) var(--portrait-pan-delay, 0s) both;will-change:object-position}.squisq-image--portrait-pan-left{animation:portraitCoverPanLeft var(--portrait-pan-duration, 12s) var(--portrait-pan-easing, ease-in-out) var(--portrait-pan-delay, 0s) both;will-change:object-position}.anim-typewriter{animation:typewriter var(--anim-duration, 2s) var(--anim-easing, steps(40, end)) var(--anim-delay, 0s) both}.block-layer.anim-zoomIn,.block-layer.anim-zoomOut,.block-layer.anim-grow,.block-layer.anim-grow-x,.block-layer.anim-grow-y,.block-layer.anim-tween,.block-layer.anim-drift{transform-box:fill-box;transform-origin:var(--anim-origin, center center)}.anim-slideIn-left{animation:layerSlideInLeft var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-slideIn-right{animation:layerSlideInRight var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-slideIn-top{animation:layerSlideInTop var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-slideIn-bottom{animation:layerSlideInBottom var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-grow{animation:growIn var(--anim-duration, 1s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-grow-x{animation:growX var(--anim-duration, 1s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-grow-y{animation:growY var(--anim-duration, 1s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-drawOn [data-squisq-draw=stroke]{stroke-dasharray:1;animation:drawOn var(--anim-duration, 1s) var(--anim-easing, ease-in-out) var(--anim-delay, 0s) both}.anim-drawOn [data-squisq-draw=markers]{animation:drawOnMarkers var(--anim-duration, 1s) linear var(--anim-delay, 0s) both}.anim-reveal-left{animation:revealFromLeft var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-reveal-right{animation:revealFromRight var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-reveal-top{animation:revealFromTop var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-reveal-bottom{animation:revealFromBottom var(--anim-duration, .7s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-reveal-iris{animation:revealIris var(--anim-duration, .9s) var(--anim-easing, cubic-bezier(.22, 1, .36, 1)) var(--anim-delay, 0s) both}.anim-wordReveal .anim-word{animation:wordIn var(--anim-duration, .4s) var(--anim-easing, ease-out) var(--anim-delay, 0s) both}.anim-countUp{animation:fadeIn .3s ease-out var(--anim-delay, 0s) both}.anim-drift{animation:drift var(--anim-duration, 12s) ease-in-out var(--anim-delay, 0s) infinite}.anim-tween{animation:tween var(--anim-duration, 1s) var(--anim-easing, ease-in-out) var(--anim-delay, 0s) both}.doc-player--render-mode,.doc-player--render-mode *,.doc-player--render-mode *:before,.doc-player--render-mode *:after{transition:none!important}.doc-player{position:relative;overflow:hidden;clip-path:inset(0);background:#000;max-width:100%;max-height:100%}.doc-player__media-clips{position:absolute;inset:0;z-index:0;pointer-events:none}.doc-player__media-clips--full-frame,.doc-player__media-clips--picture-in-picture{z-index:10}.doc-player__media-video{position:absolute;display:block;object-fit:cover;opacity:0;visibility:hidden}.doc-player__media-video--active{opacity:1;visibility:visible}.doc-player__media-clips--background .doc-player__media-video,.doc-player__media-clips--full-frame .doc-player__media-video{inset:0;width:100%;height:100%}.doc-player__media-clips--picture-in-picture .doc-player__media-video{width:22%;aspect-ratio:1;border:var(--squisq-pip-border, max(1px, .12vw) solid rgba(255, 255, 255, .72));border-radius:var(--squisq-pip-radius, 14%);box-shadow:var(--squisq-pip-shadow, 0 .75em 2em rgba(0, 0, 0, .34))}.doc-player__media-clips--picture-in-picture[data-pip-shape=wide] .doc-player__media-video{aspect-ratio:16 / 9}.doc-player__media-clips--picture-in-picture[data-pip-size=small] .doc-player__media-video{width:9%}.doc-player__media-clips--picture-in-picture[data-pip-size=large] .doc-player__media-video{width:15%}.doc-player[data-orientation=portrait] .doc-player__media-clips--picture-in-picture .doc-player__media-video{width:34%}.doc-player[data-orientation=portrait] .doc-player__media-clips--picture-in-picture[data-pip-size=small] .doc-player__media-video{width:15%}.doc-player[data-orientation=portrait] .doc-player__media-clips--picture-in-picture[data-pip-size=large] .doc-player__media-video{width:23%}.doc-player__media-clips--picture-in-picture[data-pip-position=top-left] .doc-player__media-video{top:4%;left:3%}.doc-player__media-clips--picture-in-picture[data-pip-position=top-right] .doc-player__media-video{top:4%;right:3%}.doc-player__media-clips--picture-in-picture[data-pip-position=bottom-left] .doc-player__media-video{bottom:6%;left:3%}.doc-player__media-clips--picture-in-picture[data-pip-position=bottom-right] .doc-player__media-video{right:3%;bottom:6%}.doc-player__viewport,.doc-player__block{position:absolute;top:0;left:0;width:100%;height:100%}.doc-player__block--active{z-index:2}.doc-player__block--previous{z-index:1}.doc-player__block--active.doc-player__block--dragging{transition:none}.doc-player__block--active.doc-player__block--settling{transition:transform .26s cubic-bezier(.22,1,.36,1)}.doc-player--swipe{cursor:grab;-webkit-user-select:none;user-select:none}.doc-player--swipe.doc-player--grabbing{cursor:grabbing}.doc-player__tap-feedback{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:150;pointer-events:none;display:flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:#00000073;animation:tap-feedback-fade .6s ease-out forwards}@keyframes tap-feedback-fade{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-50%) scale(1.3)}}.block-svg{width:100%;height:100%;display:block;transform-origin:center;transform-box:fill-box}.block-svg[class*=transition-]{backface-visibility:hidden;will-change:transform,opacity,filter,clip-path}.block-layer{overflow:hidden}.block-layer--image{overflow:visible}.squisq-mermaid-rendered{position:relative;display:flex;box-sizing:border-box;width:100%;min-height:260px;align-items:center;justify-content:center;color:inherit;overflow:hidden}.squisq-mermaid-render-svg{display:flex;width:100%;height:100%;min-height:0;align-items:center;justify-content:center}.squisq-mermaid-render-svg>svg{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%}.squisq-mermaid-render-status,.squisq-mermaid-render-error{padding:1rem;color:inherit;font:500 .9rem/1.4 system-ui,sans-serif;text-align:center}.squisq-mermaid-render-error pre{max-height:8em;margin:.5rem 0 0;overflow:auto;font:400 .75rem/1.35 ui-monospace,monospace;text-align:left;white-space:pre-wrap}.squisq-md-mermaid{min-height:min(460px,60vh);margin:1.25rem 0;padding:1rem;border:1px solid color-mix(in srgb,currentcolor 18%,transparent);border-radius:10px;background:color-mix(in srgb,currentcolor 4%,transparent)}.squisq-md-code-frame{position:relative;margin:1em 0}.squisq-md-code-frame>.squisq-md-code-block{margin:0;padding-right:5rem}.squisq-md-code-copy{position:absolute;z-index:1;top:.55rem;right:.55rem;min-width:3.7rem;padding:.28rem .5rem;border:1px solid color-mix(in srgb,currentcolor 20%,transparent);border-radius:5px;background:color-mix(in srgb,Canvas 90%,transparent);color:inherit;font:500 .72rem/1.2 system-ui,sans-serif;cursor:pointer;opacity:.58;transition:opacity .12s ease,background-color .12s ease}.squisq-md-code-frame:hover>.squisq-md-code-copy,.squisq-md-code-copy:focus-visible,.squisq-md-code-copy[data-copy-state=copied],.squisq-md-code-copy[data-copy-state=failed]{opacity:1}.squisq-md-code-copy:hover{background:Canvas}.squisq-md-code-copy:disabled{cursor:wait}.squisq-md-fence-widget{margin:.75rem 0}.squisq-json-fence-error{margin-top:.3rem;font-size:.78rem;opacity:.7}.squisq-json-fence-actions{display:flex;gap:.45rem;margin-top:.55rem}.squisq-json-fence-action{padding:.32rem .75rem;border:1px solid color-mix(in srgb,currentcolor 25%,transparent);border-radius:6px;background:color-mix(in srgb,Canvas 92%,transparent);color:inherit;font:500 .8rem/1.2 system-ui,sans-serif;cursor:pointer;transition:background-color .12s ease}.squisq-json-fence-action:hover{background:Canvas}.squisq-json-fence-action--primary{border-color:color-mix(in srgb,currentcolor 45%,transparent);font-weight:600}.squisq-mermaid-layer-frame{width:100%;height:100%}.squisq-mermaid-layer-frame .squisq-mermaid-rendered{height:100%;min-height:0}.squisq-mermaid-rendered :is(path.flowchart-link,.edgePath .path,.relationshipLine,.messageLine0,.messageLine1):not([style*="stroke:"]){stroke:currentcolor!important}.squisq-mermaid-rendered marker :is(path,polygon):not([fill=none]){fill:currentcolor!important;stroke:currentcolor!important}.text-shadow{text-shadow:0 2px 4px rgba(0,0,0,.8),0 4px 8px rgba(0,0,0,.4)}.text-shadow-light{text-shadow:0 1px 2px rgba(0,0,0,.6)}.text-box{background:#0009;padding:16px 24px;border-radius:4px}.text-box--light{background:#ffffffe6;color:#1a1a1a}.squisq-inline-video-player{display:inline-block;max-width:480px;width:100%;margin:.5em 0}.squisq-inline-video-player video{display:block;width:100%;max-width:100%;height:auto;border-radius:4px;background:#000}.squisq-inline-audio-player{display:inline-block;max-width:360px;width:100%;margin:.25em 0;vertical-align:middle}.squisq-inline-audio-player audio{display:block;width:100%}.squisq-video-embed{display:block;width:100%;max-width:720px;margin:1em 0}.squisq-video-embed[data-orientation=portrait]{max-width:340px}.squisq-video-embed-frame{overflow:hidden;border-radius:6px;background:#000}.squisq-video-embed-caption{margin-top:.4em;font-size:.875em;opacity:.75}.squisq-video-embed-caption a{color:inherit}.squisq-animated-image-toggle{display:inline-flex;align-items:center;gap:5px;padding:4px 8px 4px 7px;font:600 10px/1 var(--squisq-ux-font, system-ui, -apple-system, sans-serif);letter-spacing:.06em;color:var(--squisq-animated-image-control-text, #fff);background:var(--squisq-animated-image-control-bg, rgba(0, 0, 0, .62));border:0;border-radius:999px;cursor:pointer;z-index:3;opacity:.85;transition:opacity .12s ease;user-select:none}.squisq-animated-image-toggle:hover,.squisq-animated-image-toggle:focus-visible{opacity:1}.squisq-animated-image-toggle:focus-visible{outline:2px solid var(--squisq-animated-image-control-text, #fff);outline-offset:2px}.squisq-animated-image-toggle svg{width:10px;height:10px;fill:currentColor}@media(prefers-reduced-motion:reduce){.anim-slowZoom-in,.anim-slowZoom-out,.anim-slowZoom-panLeft,.anim-slowZoom-panRight,.anim-panLeft,.anim-panRight,.squisq-image--portrait-pan-left,.squisq-image--portrait-pan-right,.anim-drift{animation:none}}.doc-player--empty{min-height:120px;width:100%;background:#f0f0f0}.doc-player{--squisq-styles-loaded: 1}
|
|
760
760
|
`;var LA=false;function xW(){if(LA||typeof document>"u")return;let e=document.createElement("style");e.setAttribute("data-squisq-player","animations");let t=globalThis.__SQUISQ_PLAYER_ICON_STYLES__;e.textContent=MA,t&&(e.textContent+=`
|
|
761
|
-
${t}`),document.head.appendChild(e),LA=true;}function vW(e,t){let n={};for(let r of Object.keys(e)){let i=r.split("/").pop();n[i]=e[r];}return {async resolveUrl(r){if(r in e)return e[r];let i=r.replace(/^\.\//,"");if(i!==r&&i in e)return e[i];let a=r.split("/").pop();return a in n?n[a]:r.startsWith("http")||r.startsWith("data:")||r.startsWith("blob:")?r:`${t}/${r}`},async listMedia(){return Object.keys(e).map(r=>({name:r,mimeType:TW(r),size:0}))},async addMedia(){throw new Error("Standalone player is read-only")},async removeMedia(){throw new Error("Standalone player is read-only")},dispose(){}}}function TW(e){let t=e.split(".").pop()?.toLowerCase()??"";return {jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",mp3:"audio/mpeg",mp4:"video/mp4",webm:"video/webm"}[t]??"application/octet-stream"}function SW(e,t){if(!e.audio?.segments?.length)return e;let n=e.audio.segments.map(r=>{let i=t[r.name]??t[r.src]??r.src;return {...r,src:i}});return {...e,audio:{...e.audio,segments:n}}}var vd=new WeakMap,uo=new WeakMap;function EW(e,t){let n=null,r=true,i=false,a,o=new Promise(c=>{a=c;}),s=c=>{i||(i=true,a(c));};t||s(null);let l={element:e,renderAPI:o,getRenderAPI:()=>n,unmount:()=>{uo.get(e)===l&&_W(e);},setRenderAPI(c){r&&(n=c,c&&s(c));},cancel(){r=false,n=null,s(null);}};return l}function ehe(e,t,n={}){xW();let{mode:r="slideshow",dashboard:i,basePath:a=".",images:o,audio:s,autoPlay:l=false,loop:c=false,theme:u,videoPresentation:d,pipSize:m,pipShape:f,pipPosition:h,renderMode:y=false,viewport:g,motion:b,animationsEnabled:x=true,captionStyle:v,captionPosition:T,globalKeyboardShortcuts:E=true,showCodeCopyButton:k=false,onCopyCode:S}=n,I=s?SW(t,s):t,_=o?vW(o,a):null;uo.get(e)?.cancel();let A=EW(e,(r==="slideshow"||r==="video"||r==="dashboard")&&y);uo.set(e,A);let R;if(r==="static")R=cr(kd,{doc:I,basePath:a,theme:u,animationsEnabled:x,globalKeyboardShortcuts:E,showCodeCopyButton:k,onCopyCode:S});else {let L=r==="dashboard"||y?e.getBoundingClientRect():void 0,D=L&&L.width>0&&L.height>0?{width:Math.round(L.width),height:Math.round(L.height),name:"Host viewport"}:void 0,P=g&&g.width>0&&g.height>0?{width:Math.round(g.width),height:Math.round(g.height),name:g.name??"Render viewport"}:void 0,z=r==="dashboard"?D??P:P??D;R=cr(IA,{doc:I,basePath:a,audioMode:!y&&I.audio?.segments?.length?"media":"synthetic",displayMode:r==="dashboard"?"dashboard":r==="flashcards"?"flashcards":r==="video"?"video":"slideshow",loop:r==="video"?c:void 0,dashboardLayout:i?.layout,dashboardShowTitle:i?.title,dashboardStyle:i?.style,dashboardDocumentTitle:i?.documentTitle,forceViewport:z,autoPlay:y?false:l,showControls:!y,renderMode:y,animationsEnabled:x,theme:u,motion:b,videoPresentation:d,pipSize:m,pipShape:f,pipPosition:h,captionsEnabled:!!v,captionStyle:v??"standard",captionPosition:T,globalKeyboardShortcuts:E,onRenderAPIReady:$=>A.setRenderAPI($)});}_&&(R=cr(rh.Provider,{value:_},R));let F=vd.get(e);return F||(F=Cb(e),vd.set(e,F)),F.render(R),A}function the(e){return uo.get(e)}function _W(e){uo.get(e)?.cancel(),uo.delete(e);let n=vd.get(e);n&&(n.unmount(),vd.delete(e));}var nhe="2.11.
|
|
761
|
+
${t}`),document.head.appendChild(e),LA=true;}function vW(e,t){let n={};for(let r of Object.keys(e)){let i=r.split("/").pop();n[i]=e[r];}return {async resolveUrl(r){if(r in e)return e[r];let i=r.replace(/^\.\//,"");if(i!==r&&i in e)return e[i];let a=r.split("/").pop();return a in n?n[a]:r.startsWith("http")||r.startsWith("data:")||r.startsWith("blob:")?r:`${t}/${r}`},async listMedia(){return Object.keys(e).map(r=>({name:r,mimeType:TW(r),size:0}))},async addMedia(){throw new Error("Standalone player is read-only")},async removeMedia(){throw new Error("Standalone player is read-only")},dispose(){}}}function TW(e){let t=e.split(".").pop()?.toLowerCase()??"";return {jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",mp3:"audio/mpeg",mp4:"video/mp4",webm:"video/webm"}[t]??"application/octet-stream"}function SW(e,t){if(!e.audio?.segments?.length)return e;let n=e.audio.segments.map(r=>{let i=t[r.name]??t[r.src]??r.src;return {...r,src:i}});return {...e,audio:{...e.audio,segments:n}}}var vd=new WeakMap,uo=new WeakMap;function EW(e,t){let n=null,r=true,i=false,a,o=new Promise(c=>{a=c;}),s=c=>{i||(i=true,a(c));};t||s(null);let l={element:e,renderAPI:o,getRenderAPI:()=>n,unmount:()=>{uo.get(e)===l&&_W(e);},setRenderAPI(c){r&&(n=c,c&&s(c));},cancel(){r=false,n=null,s(null);}};return l}function ehe(e,t,n={}){xW();let{mode:r="slideshow",dashboard:i,basePath:a=".",images:o,audio:s,autoPlay:l=false,loop:c=false,theme:u,videoPresentation:d,pipSize:m,pipShape:f,pipPosition:h,renderMode:y=false,viewport:g,motion:b,animationsEnabled:x=true,captionStyle:v,captionPosition:T,globalKeyboardShortcuts:E=true,showCodeCopyButton:k=false,onCopyCode:S}=n,I=s?SW(t,s):t,_=o?vW(o,a):null;uo.get(e)?.cancel();let A=EW(e,(r==="slideshow"||r==="video"||r==="dashboard")&&y);uo.set(e,A);let R;if(r==="static")R=cr(kd,{doc:I,basePath:a,theme:u,animationsEnabled:x,globalKeyboardShortcuts:E,showCodeCopyButton:k,onCopyCode:S});else {let L=r==="dashboard"||y?e.getBoundingClientRect():void 0,D=L&&L.width>0&&L.height>0?{width:Math.round(L.width),height:Math.round(L.height),name:"Host viewport"}:void 0,P=g&&g.width>0&&g.height>0?{width:Math.round(g.width),height:Math.round(g.height),name:g.name??"Render viewport"}:void 0,z=r==="dashboard"?D??P:P??D;R=cr(IA,{doc:I,basePath:a,audioMode:!y&&I.audio?.segments?.length?"media":"synthetic",displayMode:r==="dashboard"?"dashboard":r==="flashcards"?"flashcards":r==="video"?"video":"slideshow",loop:r==="video"?c:void 0,dashboardLayout:i?.layout,dashboardShowTitle:i?.title,dashboardStyle:i?.style,dashboardDocumentTitle:i?.documentTitle,forceViewport:z,autoPlay:y?false:l,showControls:!y,renderMode:y,animationsEnabled:x,theme:u,motion:b,videoPresentation:d,pipSize:m,pipShape:f,pipPosition:h,captionsEnabled:!!v,captionStyle:v??"standard",captionPosition:T,globalKeyboardShortcuts:E,onRenderAPIReady:$=>A.setRenderAPI($)});}_&&(R=cr(rh.Provider,{value:_},R));let F=vd.get(e);return F||(F=Cb(e),vd.set(e,F)),F.render(R),A}function the(e){return uo.get(e)}function _W(e){uo.get(e)?.cancel(),uo.delete(e);let n=vd.get(e);n&&(n.unmount(),vd.delete(e));}var nhe="2.11.22";
|
|
762
762
|
exports.getHandle=the;exports.mount=ehe;exports.unmount=_W;exports.version=nhe;return exports;})({});
|