@bendyline/squisq-cli 2.9.19 → 2.9.21

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.
@@ -1,4 +1,4 @@
1
- var SquisqPlayer=(function(exports){'use strict';var $I=Object.create;var Ym=Object.defineProperty;var HI=Object.getOwnPropertyDescriptor;var zI=Object.getOwnPropertyNames;var UI=Object.getPrototypeOf,jI=Object.prototype.hasOwnProperty;var WI=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var bb=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},Xm=(e,t)=>{for(var n in t)Ym(e,n,{get:t[n],enumerable:true});},VI=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zI(t))!jI.call(e,i)&&i!==n&&Ym(e,i,{get:()=>t[i],enumerable:!(r=HI(t,i))||r.enumerable});return e};var wb=(e,t,n)=>(n=e!=null?$I(UI(e)):{},VI(Ym(n,"default",{value:e,enumerable:true}),e));var yS=bb((hee,gS)=>{"use strict";var wd=Object.prototype.hasOwnProperty,hS=Object.prototype.toString,cS=Object.defineProperty,uS=Object.getOwnPropertyDescriptor,dS=function(t){return typeof Array.isArray=="function"?Array.isArray(t):hS.call(t)==="[object Array]"},mS=function(t){if(!t||hS.call(t)!=="[object Object]")return !1;var n=wd.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&wd.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return !1;var i;for(i in t);return typeof i>"u"||wd.call(t,i)},fS=function(t,n){cS&&n.name==="__proto__"?cS(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue;},pS=function(t,n){if(n==="__proto__")if(wd.call(t,n)){if(uS)return uS(t,n).value}else return;return t[n]};gS.exports=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=pS(s,n),i=pS(t,n),s!==i&&(u&&i&&(mS(i)||(a=dS(i)))?(a?(a=!1,o=r&&dS(r)?r:[]):o=r&&mS(r)?r:{},fS(s,{name:n,newValue:e(u,o,i)})):typeof i<"u"&&fS(s,{name:n,newValue:i}));return s};});var i_=bb((Cce,ky)=>{"use strict";(function(){var e;typeof ky<"u"?e=ky.exports=r:e=(function(){return this||(0,eval)("this")})(),e.format=r,e.vsprintf=n,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(r.apply(null,arguments));}function n(i,a){return r.apply(null,[i].concat(a))}function r(i){for(var a=1,o=[].slice.call(arguments),s=0,l=i.length,c="",u,d=!1,m,f,p=!1,g,h=function(){return o[a++]},b=function(){for(var w="";/\d/.test(i[s]);)w+=i[s++],u=i[s];return w.length>0?parseInt(w):null};s<l;++s)if(u=i[s],d)switch(d=!1,u=="."?(p=!1,u=i[++s]):u=="0"&&i[s+1]=="."?(p=!0,s+=2,u=i[s]):p=!0,g=b(),u){case "b":c+=parseInt(h(),10).toString(2);break;case "c":m=h(),typeof m=="string"||m instanceof String?c+=m:c+=String.fromCharCode(parseInt(m,10));break;case "d":c+=parseInt(h(),10);break;case "f":f=String(parseFloat(h()).toFixed(g||6)),c+=p?f:f.replace(/^0/,"");break;case "j":c+=JSON.stringify(h());break;case "o":c+="0"+parseInt(h(),10).toString(8);break;case "s":c+=h();break;case "x":c+="0x"+parseInt(h(),10).toString(16);break;case "X":c+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:c+=u;break}else u==="%"?d=!0:c+=u;return c}})();});var ZC={};Xm(ZC,{default:()=>SY});var TY,SY,JC=WI(()=>{"use strict";TY={initialize(){},async render(){throw new Error("Mermaid rendering is not included in the light standalone player. Use the /standalone/full export.")}},SY=TY;});var pc,qe,Tb,zr,kb,Sb,Eb,Km,cc,Wo,_b,ef,Qm,Zm,Ab,dc={},mc=[],YI=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vo=Array.isArray;function br(e,t){for(var n in t)e[n]=t[n];return e}function tf(e){e&&e.parentNode&&e.parentNode.removeChild(e);}function wr(e,t,n){var r,i,a,o={};for(a in t)a=="key"?r=t[a]:a=="ref"?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?pc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return uc(e,o,r,i,null)}function uc(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Tb,__i:-1,__u:0};return i==null&&qe.vnode!=null&&qe.vnode(a),a}function Fe(e){return e.children}function gn(e,t){this.props=e,this.context=t;}function Li(e,t){if(t==null)return e.__?Li(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Li(e):null}function XI(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],a=br({},t);a.__v=t.__v+1,qe.vnode&&qe.vnode(a),nf(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Li(t),!!(32&t.__u),i),a.__v=t.__v,a.__.__k[a.__i]=a,Lb(r,a,i),t.__e=t.__=null,a.__e!=n&&Cb(a);}}function Cb(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Cb(e)}function Jm(e){(!e.__d&&(e.__d=true)&&zr.push(e)&&!fc.__r++||kb!=qe.debounceRendering)&&((kb=qe.debounceRendering)||Sb)(fc);}function fc(){try{for(var e,t=1;zr.length;)zr.length>t&&zr.sort(Eb),e=zr.shift(),t=zr.length,XI(e);}finally{zr.length=fc.__r=0;}}function Ib(e,t,n,r,i,a,o,s,l,c,u){var d,m,f,p,g,h,b=r&&r.__k||mc,w=t.length;for(l=KI(n,t,b,l,w),d=0;d<w;d++)(f=n.__k[d])!=null&&(m=f.__i!=-1&&b[f.__i]||dc,f.__i=d,h=nf(e,f,m,i,a,o,s,l,c,u),p=f.__e,f.ref&&m.ref!=f.ref&&(m.ref&&rf(m.ref,null,f),u.push(f.ref,f.__c||p,f)),g==null&&p!=null&&(g=p),4&f.__u?(l=Mb(f,l,e),m.__e&&(m.__e=null)):typeof f.type=="function"&&h!==void 0?l=h:p&&(l=p.nextSibling),f.__u&=-7);return n.__e=g,l}function KI(e,t,n,r,i){var a,o,s,l,c,u=n.length,d=u,m=0;for(e.__k=new Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!="boolean"&&typeof o!="function"?(typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?o=e.__k[a]=uc(null,o,null,null,null):Vo(o)?o=e.__k[a]=uc(Fe,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[a]=uc(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,l=a+m,o.__=e,o.__b=e.__b+1,s=null,(c=o.__i=QI(o,n,l,d))!=-1&&(d--,(s=n[c])&&(s.__u|=2)),s==null||s.__v==null?(c==-1&&(i>u?m--:i<u&&m++),typeof o.type!="function"&&(o.__u|=4)):c!=l&&(c==l-1?m--:c==l+1?m++:(c>l?m--:m++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=Li(s)),Rb(s,s));return r}function Mb(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Mb(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=Li(e)),t=n.insertBefore(e.__e,t||null));do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Go(e,t){return t=t||[],e==null||typeof e=="boolean"||(Vo(e)?e.some(function(n){Go(n,t);}):t.push(e)),t}function QI(e,t,n,r){var i,a,o,s=e.key,l=e.type,c=t[n],u=c!=null&&(2&c.__u)==0;if(c===null&&s==null||u&&s==c.key&&l==c.type)return n;if(r>(u?1:0)){for(i=n-1,a=n+1;i>=0||a<t.length;)if((c=t[o=i>=0?i--:a++])!=null&&(2&c.__u)==0&&s==c.key&&l==c.type)return o}return -1}function xb(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||YI.test(t)?n:n+"px";}function lc(e,t,n,r,i){var a,o;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else {if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||xb(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||xb(e.style,t,n[t]);}else if(t[0]=="o"&&t[1]=="n")a=t!=(t=t.replace(_b,"$1")),o=t.toLowerCase(),t=o in e||t=="onFocusOut"||t=="onFocusIn"?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n[Wo]=r[Wo]:(n[Wo]=ef,e.addEventListener(t,a?Zm:Qm,a)):e.removeEventListener(t,a?Zm:Qm,a);else {if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===false&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n));}}function vb(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[cc]==null)t[cc]=ef++;else if(t[cc]<n[Wo])return;return n(qe.event?qe.event(t):t)}}}function nf(e,t,n,r,i,a,o,s,l,c){var u,d,m,f,p,g,h,b,w,x,T,S,v,E,I,_,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=qe.__b)&&u(t);e:if(typeof A=="function"){d=o.length;try{if(w=t.props,x=A.prototype&&A.prototype.render,T=(u=A.contextType)&&r[u.__c],S=u?T?T.props.value:u.__:r,n.__c?b=(m=t.__c=n.__c).__=m.__E:(x?t.__c=m=new A(w,S):(t.__c=m=new gn(w,S),m.constructor=A,m.render=JI),T&&T.sub(m),m.state||(m.state={}),m.__n=r,f=m.__d=!0,m.__h=[],m._sb=[]),x&&m.__s==null&&(m.__s=m.state),x&&A.getDerivedStateFromProps!=null&&(m.__s==m.state&&(m.__s=br({},m.__s)),br(m.__s,A.getDerivedStateFromProps(w,m.__s))),p=m.props,g=m.state,m.__v=t,f)x&&A.getDerivedStateFromProps==null&&m.componentWillMount!=null&&m.componentWillMount(),x&&m.componentDidMount!=null&&m.__h.push(m.componentDidMount);else {if(x&&A.getDerivedStateFromProps==null&&w!==p&&m.componentWillReceiveProps!=null&&m.componentWillReceiveProps(w,S),t.__v==n.__v||!m.__e&&m.shouldComponentUpdate!=null&&m.shouldComponentUpdate(w,m.__s,S)===!1){t.__v!=n.__v&&(m.props=w,m.state=m.__s,m.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(P){P&&(P.__=t);}),mc.push.apply(m.__h,m._sb),m._sb=[],m.__h.length&&o.push(m),s=Li(n);break e}m.componentWillUpdate!=null&&m.componentWillUpdate(w,m.__s,S),x&&m.componentDidUpdate!=null&&m.__h.push(function(){m.componentDidUpdate(p,g,h);});}if(m.context=S,m.props=w,m.__P=e,m.__e=!1,v=qe.__r,E=0,x)m.state=m.__s,m.__d=!1,v&&v(t),u=m.render(m.props,m.state,m.context),mc.push.apply(m.__h,m._sb),m._sb=[];else do m.__d=!1,v&&v(t),u=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++E<25);m.state=m.__s,m.getChildContext!=null&&(r=br(br({},r),m.getChildContext())),x&&!f&&m.getSnapshotBeforeUpdate!=null&&(h=m.getSnapshotBeforeUpdate(p,g)),I=u!=null&&u.type===Fe&&u.key==null?Pb(u.props.children):u,s=Ib(e,Vo(I)?I:[I],t,n,r,i,a,o,s,l,c),m.base=t.__e,t.__u&=-161,m.__h.length&&o.push(m),b&&(m.__E=m.__=null);}catch(P){if(o.length=d,t.__v=null,l||a!=null){if(P.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a!=null&&(a[a.indexOf(s)]=null),t.__e=s;}else if(a!=null)for(_=a.length;_--;)tf(a[_]);}else t.__e=n.__e;t.__k==null&&(t.__k=n.__k||[]),P.then||qb(t),qe.__e(P,t,n);}}else a==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=ZI(n.__e,t,n,r,i,a,o,l,c);return (u=qe.diffed)&&u(t),128&t.__u?void 0:s}function qb(e){e&&(e.__c&&(e.__c.__e=true),e.__k&&e.__k.some(qb));}function Lb(e,t,n){for(var r=0;r<n.length;r++)rf(n[r],n[++r],n[++r]);qe.__c&&qe.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(a){a.call(i);});}catch(a){qe.__e(a,i.__v);}});}function Pb(e){return typeof e!="object"||e==null||e.__b>0?e:Vo(e)?e.map(Pb):e.constructor!==void 0?null:br({},e)}function ZI(e,t,n,r,i,a,o,s,l){var c,u,d,m,f,p,g,h=n.props||dc,b=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),a!=null){for(c=0;c<a.length;c++)if((f=a[c])&&"setAttribute"in f==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,a[c]=null;break}}if(e==null){if(w==null)return document.createTextNode(b);e=document.createElementNS(i,w,b.is&&b),s&&(qe.__m&&qe.__m(t,a),s=false),a=null;}if(w==null)h===b||s&&e.data==b||(e.data=b);else {if(a=w=="textarea"&&b.defaultValue!=null?null:a&&pc.call(e.childNodes),!s&&a!=null)for(h={},c=0;c<e.attributes.length;c++)h[(f=e.attributes[c]).name]=f.value;for(c in h)f=h[c],c=="dangerouslySetInnerHTML"?d=f:c=="children"||c in b||c=="value"&&"defaultValue"in b||c=="checked"&&"defaultChecked"in b||lc(e,c,null,f,i);for(c in b)f=b[c],c=="children"?m=f:c=="dangerouslySetInnerHTML"?u=f:c=="value"?p=f:c=="checked"?g=f:s&&typeof f!="function"||h[c]===f||lc(e,c,f,h[c],i);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Ib(t.type=="template"?e.content:e,Vo(m)?m:[m],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,a,o,a?a[0]:n.__k&&Li(n,0),s,l),a!=null)for(c=a.length;c--;)tf(a[c]);s&&w!="textarea"||(c="value",w=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[c]||w=="progress"&&!p||w=="option"&&p!=h[c])&&lc(e,c,p,h[c],i),c="checked",g!=null&&g!=e[c]&&lc(e,c,g,h[c],i));}return e}function rf(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t));}else e.current=t;}catch(i){qe.__e(i,n);}}function Rb(e,t,n){var r,i;if(qe.unmount&&qe.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||rf(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount();}catch(a){qe.__e(a,t);}r.base=r.__P=r.__n=null;}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Rb(r[i],t,n||typeof e.type!="function");n||tf(e.__e),e.__c=e.__=e.__e=void 0;}function JI(e,t,n){return this.constructor(e,n)}function af(e,t,n){var r,i,a,o;t==document&&(t=document.documentElement),qe.__&&qe.__(e,t),i=(r="undefined"=="function")?null:t.__k,a=[],o=[],nf(t,e=(t).__k=wr(Fe,null,[e]),i||dc,dc,t.namespaceURI,i?null:t.firstChild?pc.call(t.childNodes):null,a,i?i.__e:t.firstChild,r,o),Lb(a,e,o),e.props.children=null;}function kr(e){function t(n){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null;},this.shouldComponentUpdate=function(a){this.props.value!=a.value&&r.forEach(function(o){o.__e=true,Jm(o);});},this.sub=function(a){r.add(a);var o=a.componentWillUnmount;a.componentWillUnmount=function(){r&&r.delete(a),o&&o.call(a);};}),n.children}return t.__c="__cC"+Ab++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}pc=mc.slice,qe={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(s){e=s;}throw e}},Tb=0,gn.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=br({},this.state),typeof e=="function"&&(e=e(br({},n),this.props)),e&&br(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Jm(this));},gn.prototype.forceUpdate=function(e){this.__v&&(this.__e=true,e&&this.__h.push(e),Jm(this));},gn.prototype.render=Fe,zr=[],Sb=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Eb=function(e,t){return e.__v.__b-t.__v.__b},fc.__r=0,Km=Math.random().toString(8),cc="__d"+Km,Wo="__a"+Km,_b=/(PointerCapture)$|Capture$/i,ef=0,Qm=vb(false),Zm=vb(true),Ab=0;var Ur,lt,of,Nb,Yo=0,Ub=[],wt=qe,Db=wt.__b,Ob=wt.__r,Fb=wt.diffed,Bb=wt.__c,$b=wt.unmount,Hb=wt.__;function Ha(e,t){wt.__h&&wt.__h(lt,e,Yo||t),Yo=0;var n=lt.__H||(lt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ye(e){return Yo=1,jb(Wb,e)}function jb(e,t,n){var r=Ha(Ur++,2);if(r.t=e,!r.__c&&(r.__=[Wb(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,s);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}));}],r.__c=lt,!lt.__f)){var i=function(s,l,c){if(!r.__c.__H)return true;var u=false,d=r.__c.props!==s;if(r.__c.__H.__.some(function(f){if(f.__N){u=true;var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=true);}}),a){var m=a.call(this,s,l,c);return u?m||d:m}return !u||d};lt.__f=true;var a=lt.shouldComponentUpdate,o=lt.componentWillUpdate;lt.componentWillUpdate=function(s,l,c){if(this.__e){var u=a;a=void 0,i(s,l,c),a=u;}o&&o.call(this,s,l,c);},lt.shouldComponentUpdate=i;}return r.__N||r.__}function xe(e,t){var n=Ha(Ur++,3);!wt.__s&&lf(n.__H,t)&&(n.__=e,n.u=t,lt.__H.__h.push(n));}function $t(e,t){var n=Ha(Ur++,4);!wt.__s&&lf(n.__H,t)&&(n.__=e,n.u=t,lt.__h.push(n));}function we(e){return Yo=5,he(function(){return {current:e}},[])}function he(e,t){var n=Ha(Ur++,7);return lf(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ee(e,t){return Yo=8,he(function(){return e},t)}function jr(e){var t=lt.context[e.__c],n=Ha(Ur++,9);return n.c=e,t?(n.__==null&&(n.__=true,t.sub(lt)),t.props.value):e.__}function tn(){var e=Ha(Ur++,11);if(!e.__){for(var t=lt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++;}return e.__}function eM(){for(var e;e=Ub.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(hc),t.__h.some(sf),t.__h=[];}catch(n){t.__h=[],wt.__e(n,e.__v);}}}wt.__b=function(e){lt=null,Db&&Db(e);},wt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Hb&&Hb(e,t);},wt.__r=function(e){Ob&&Ob(e),Ur=0;var t=(lt=e.__c).__H;t&&(of===lt?(t.__h=[],lt.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0;})):(t.__h.some(hc),t.__h.some(sf),t.__h=[],Ur=0)),of=lt;},wt.diffed=function(e){Fb&&Fb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ub.push(t)!==1&&Nb===wt.requestAnimationFrame||((Nb=wt.requestAnimationFrame)||tM)(eM)),t.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0);})),of=lt=null;},wt.__c=function(e,t){t.some(function(n){try{n.__h.some(hc),n.__h=n.__h.filter(function(r){return !r.__||sf(r)});}catch(r){t.some(function(i){i.__h&&(i.__h=[]);}),t=[],wt.__e(r,n.__v);}}),Bb&&Bb(e,t);},wt.unmount=function(e){$b&&$b(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{hc(r);}catch(i){t=i;}}),n.__H=void 0,t&&wt.__e(t,n.__v));};var zb=typeof requestAnimationFrame=="function";function tM(e){var t,n=function(){clearTimeout(r),zb&&cancelAnimationFrame(t),setTimeout(e);},r=setTimeout(n,35);zb&&(t=requestAnimationFrame(n));}function hc(e){var t=lt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),lt=t;}function sf(e){var t=lt;e.__c=e.__(),lt=t;}function lf(e,t){return !e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Wb(e,t){return typeof t=="function"?t(e):t}function rM(e,t){for(var n in t)e[n]=t[n];return e}function Vb(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return true;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return true;return false}function tw(e,t){var n=t(),r=ye({t:{__:n,u:t}}),i=r[0].t,a=r[1];return $t(function(){i.__=n,i.u=t,cf(i)&&a({t:i});},[e,n,t]),xe(function(){return cf(i)&&a({t:i}),e(function(){cf(i)&&a({t:i});})},[e]),n}function cf(e){try{return !((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return true}var t,n;}function Gb(e,t){this.props=e,this.context=t;}(Gb.prototype=new gn).isPureReactComponent=true,Gb.prototype.shouldComponentUpdate=function(e,t){return Vb(this.props,e)||Vb(this.state,t)};var Yb=qe.__b;qe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Yb&&Yb(e);};var iM=qe.__e;qe.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k||[]),i.__c(e,t)}iM(e,t,n,r);};var Xb=qe.unmount;function nw(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c();}),e.__c.__H=null),(e=rM({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=true,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return nw(r,t,n)})),e}function rw(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return rw(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=true,e.__c.__P=n)),e}function uf(){this.__u=0,this.o=null,this.__b=null;}function iw(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function gc(){this.i=null,this.l=null;}qe.unmount=function(e){var t=e.__c;t&&(t.__z=true),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Xb&&Xb(e);},(uf.prototype=new gn).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=iw(r.__v),a=false,o=function(){a||r.__z||(a=true,n.__R=null,i?i(l):l());};n.__R=o;var s=n.__P;n.__P=null;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=rw(c,c.__c.__P,c.__c.__O);}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.__P=s,u.forceUpdate();}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o);},uf.prototype.componentWillUnmount=function(){this.o=[];},uf.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=nw(this.__b,n,r.__O=r.__P);}this.__b=null;}var i=t.__a&&wr(Fe,null,e.fallback);return i&&(i.__u&=-33),[wr(Fe,null,t.__a?null:e.children),i]};var Kb=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2];}};(gc.prototype=new gn).__a=function(e){var t=this,n=iw(t.__v),r=t.l.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),Kb(t,e,r)):i();};n?n(a):a();}},gc.prototype.render=function(e){this.i=null,this.l=new Map;var t=Go(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},gc.prototype.componentDidUpdate=gc.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Kb(e,n,t);});};var aM=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,oM=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,sM=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,lM=/[A-Z0-9]/g,cM=typeof document<"u",uM=function(e){return (typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function aw(e,t,n){return t.__k==null&&(t.textContent=""),af(e,t),e?e.__c:null}gn.prototype.isReactComponent=true,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(gn.prototype,e,{configurable:true,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:true,writable:true,value:t});}});});var Qb=qe.event;qe.event=function(e){return Qb&&(e=Qb(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var dM={configurable:true,get:function(){return this.class}},Zb=qe.vnode;qe.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,i={},a=r.indexOf("-")==-1;for(var o in n){var s=n[o];if(!(o==="value"&&"defaultValue"in n&&s==null||cM&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===true?s="":l==="translate"&&s==="no"?s=false:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||uM(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":sM.test(o)&&(o=l):l=o="oninput":a&&oM.test(o)?o=o.replace(lM,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[o=l]&&(o="oninputCapture"),i[o]=s;}}r=="select"&&(i.multiple&&Array.isArray(i.value)&&(i.value=Go(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1;})),i.defaultValue!=null&&(i.value=Go(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value;}))),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",dM)):n.className&&(i.class=i.className=n.className),t.props=i;})(e),e.$$typeof=aM,Zb&&Zb(e);};var Jb=qe.__r;qe.__r=function(e){Jb&&Jb(e),e.__c;};var ew=qe.diffed;qe.diffed=function(e){ew&&ew(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value);};function sw(e){return !!e.__k&&(af(null,e),true)}var lw=function(e,t){var n,r=qe.debounceRendering;qe.debounceRendering=function(a){n=a;};try{var i=e(t);return n&&n(),i}finally{qe.debounceRendering=r;}};function cw(e){return {render:function(t){aw(t,e);},unmount:function(){sw(e);}}}var yc=["off","items","branches","chunks"],bc=["appear","fadeIn","fadeInUp","slideIn"],wc=["keep","dim"];function kc(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e;if(!(Object.keys(t).some(n=>!["mode","effect","duration","previous"].includes(n))||!yc.includes(t.mode)||t.effect!==void 0&&!bc.includes(t.effect)||t.previous!==void 0&&!wc.includes(t.previous)||t.duration!==void 0&&(typeof t.duration!="number"||!Number.isFinite(t.duration)||t.duration<0)))return {...t}}var Pi=Object.freeze({maxSourceBytes:512*1024,maxElements:2e4,maxDepth:200,maxExpandedElements:5e4}),uw=.7,xc=["cut","fade","dissolve","push","wipe","split","reveal","randomBars","shape","uncover","cover","zoom","pan","flash","fallOver","drape","curtains","wind","prestige","fracture","crush","peelOff","pageCurl","airplane","origami","checkerboard","blinds","clock","ripple","honeycomb","glitter","vortex","shred","switch","flip","gallery","cube","doors","box","ferrisWheel","conveyor","rotate","window","orbit","flyThrough","morph","checker","circle","comb","diamond","newsflash","plus","pull","random","randomBar","strips","wedge","wheel","prism","warp","ferris","flythrough","wheelReverse","pageCurlDouble","pageCurlSingle","slideLeft","slideRight","slideUp","slideDown"];var mM=new Set(xc),fM={none:"cut",randombars:"randomBars",randombar:"randomBar",checkerboards:"checkerboard",shapes:"shape",ferris:"ferrisWheel",ferriswheel:"ferrisWheel",flythrough:"flyThrough",flythru:"flyThrough",pagecurl:"pageCurl",pagecurldouble:"pageCurlDouble",pagecurlsingle:"pageCurlSingle",wheelreverse:"wheelReverse",slideleft:"slideLeft",slideright:"slideRight",slideup:"slideUp",slidedown:"slideDown"},pM=new Map(xc.map(e=>[ff(e),e]));function vc(e){return mM.has(e)}function df(e){let t=e.trim();if(!t)return null;if(vc(t))return t;let n=ff(t);return fM[n]??pM.get(n)??null}function mf(e){switch(ff(e)){case "left":case "l":return "left";case "right":case "r":return "right";case "up":case "u":return "up";case "down":case "d":return "down";case "in":return "in";case "out":return "out";case "horizontal":case "horz":case "h":return "horizontal";case "vertical":case "vert":case "v":return "vertical";default:return null}}function za(e,t=uw){let n=e?.duration;return n!=null&&Number.isFinite(n)&&n>0?n:t}function Xo(e,t,n){if(e.transition)return e.transition;if(n!==0)return t.renderStyle.defaultTransition}function ff(e){return e.toLowerCase().replace(/[\s_-]+/g,"")}var pf=["highpass","denoise","debreath","loudness"],fw=Object.freeze({highpass:{defaultValue:80,min:20,max:300},denoise:{defaultValue:.8,min:0,max:1},debreath:{defaultValue:-15,min:-40,max:0},loudness:{defaultValue:-16,min:-31,max:-5}}),Ec=[{key:"fx",htmlSuffix:"fx"},{key:"cuts",htmlSuffix:"cuts"},{key:"gain",htmlSuffix:"gain"},{key:"fadeIn",htmlSuffix:"fade-in"},{key:"fadeOut",htmlSuffix:"fade-out"},{key:"crop",htmlSuffix:"crop"},{key:"group",htmlSuffix:"group"}];function pw(e,t){let n=Ec.find(r=>r.key===t);return `data-squisq-${e}-${n?.htmlSuffix??t}`}function hw(e,t=3){let n=Number(e.toFixed(t));return Object.is(n,-0)?"0":String(n)}function _c(e){if(e==null)return null;let t=e.trim();if(!/^[-+]?(\d+(\.\d*)?|\.\d+)$/.test(t))return null;let n=Number(t);return Number.isFinite(n)?n:null}function Ua(e,t,n){return Math.min(n,Math.max(t,e))}function Sc(e){let t=e.trim(),n=_c(t);if(n!=null)return n>=0?n:null;let r=t.match(/^(\d+(?:\.\d+)?)ms$/i);if(r)return Number(r[1])/1e3;let i=t.match(/^(\d+):([0-5]?\d)(?:\.(\d+))?$/);return i?Number(i[1])*60+Number(i[2])+ +`0.${i[3]??"0"}`:null}function gM(e){return pf.includes(e)}function gw(e){if(e==null)return null;let t=e.split(/[\s,]+/).filter(Boolean);if(t.length===0)return null;let n=new Map,r=[];for(let a of t){let o=a.indexOf(":"),s=(o===-1?a:a.slice(0,o)).toLowerCase();if(!gM(s)){r.push(a);continue}let l=fw[s],c=l.defaultValue;if(o!==-1&&(c=_c(a.slice(o+1)),c!=null&&s==="debreath"&&(c=-Math.abs(c))),c==null){r.push(a);continue}n.set(s,Ua(c,l.min,l.max));}return {ops:pf.filter(a=>n.has(a)).map(a=>({id:a,value:n.get(a)})),unknown:r}}var dw=.001;function Ac(e,t=0,n=Number.POSITIVE_INFINITY){let r=e.filter(a=>Number.isFinite(a.start)&&Number.isFinite(a.end)).map(a=>({start:Math.max(t,Math.min(a.start,a.end)),end:Math.min(n,Math.max(a.start,a.end))})).filter(a=>a.end-a.start>=dw).sort((a,o)=>a.start-o.start),i=[];for(let a of r){let o=i[i.length-1];o&&a.start<=o.end+dw?o.end=Math.max(o.end,a.end):i.push({...a});}return i}function yw(e){if(e==null)return null;let t=[];for(let r of e.split(/[\s,]+/).filter(Boolean)){let i=r.indexOf("-",1);if(i===-1)continue;let a=Sc(r.slice(0,i)),o=Sc(r.slice(i+1));a==null||o==null||o<=a||t.push({start:a,end:o});}let n=Ac(t);return n.length>0?n:null}var Tc=.02;function bw(e){if(e==null)return null;let t=e.split(/[\s,]+/).filter(Boolean).map(n=>_c(n));return t.length!==4||t.some(n=>n==null)?null:ww({x:t[0],y:t[1],w:t[2],h:t[3]})}function ww(e){let t=Ua(e.x,0,1-Tc),n=Ua(e.y,0,1-Tc),r=Ua(e.w,Tc,1-t),i=Ua(e.h,Tc,1-n);return t<1e-4&&n<1e-4&&r>1-1e-4&&i>1-1e-4?null:{x:t,y:n,w:r,h:i}}function hf(e){return [e.x,e.y,e.w,e.h].map(t=>hw(t,4)).join(" ")}var mw={min:-60,max:24},yM=/^[A-Za-z0-9_-]{1,64}$/;function Cc(e){let t={},n=gw(e.fx);n&&(n.ops.length>0||n.unknown.length>0)&&(t.fx=n);let r=yw(e.cuts);r&&(t.cuts=r);let i=_c(e.gain);i!=null&&i!==0&&(t.gain=Ua(i,mw.min,mw.max));let a=e.fadeIn==null?null:Sc(e.fadeIn);a!=null&&a>0&&(t.fadeIn=a);let o=e.fadeOut==null?null:Sc(e.fadeOut);o!=null&&o>0&&(t.fadeOut=o);let s=bw(e.crop);s&&(t.crop=s);let l=e.group?.trim();return l&&yM.test(l)&&(t.group=l),Object.keys(t).length>0?t:void 0}function gf(e){let t={};for(let{key:n}of Ec)e[n]!=null&&(t[n]=e[n]);return t}function yf(e,t){let n={};for(let{key:r}of Ec){let i=t[pw(e,r)];i!=null&&(n[r]=i);}return n}var xr=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r);}};xr.prototype.normal={};xr.prototype.property={};xr.prototype.space=void 0;function bf(e,t){let n={},r={};for(let i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new xr(n,r,t)}function vr(e){return e.toLowerCase()}var Mt=class{constructor(t,n){this.attribute=n,this.property=t;}};Mt.prototype.attribute="";Mt.prototype.booleanish=false;Mt.prototype.boolean=false;Mt.prototype.commaOrSpaceSeparated=false;Mt.prototype.commaSeparated=false;Mt.prototype.defined=false;Mt.prototype.mustUseProperty=false;Mt.prototype.number=false;Mt.prototype.overloadedBoolean=false;Mt.prototype.property="";Mt.prototype.spaceSeparated=false;Mt.prototype.space=void 0;var Ko={};Xm(Ko,{boolean:()=>De,booleanish:()=>yt,commaOrSpaceSeparated:()=>fn,commaSeparated:()=>Wr,number:()=>de,overloadedBoolean:()=>Ic,spaceSeparated:()=>Ze});var bM=0,De=Ri(),yt=Ri(),Ic=Ri(),de=Ri(),Ze=Ri(),Wr=Ri(),fn=Ri();function Ri(){return 2**++bM}var wf=Object.keys(Ko),Ni=class extends Mt{constructor(t,n,r,i){let a=-1;if(super(t,n),kw(this,"space",i),typeof r=="number")for(;++a<wf.length;){let o=wf[a];kw(this,wf[a],(r&Ko[o])===Ko[o]);}}};Ni.prototype.defined=true;function kw(e,t,n){n&&(e[t]=n);}function An(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Ni(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=true),t[r]=a,n[vr(r)]=r,n[vr(a.attribute)]=r;}return new xr(t,n,e.space)}var kf=An({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:Ze,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:de,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:Ze,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:yt,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Mc(e,t){return t in e?e[t]:t}function qc(e,t){return Mc(e,t.toLowerCase())}var xw=An({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wr,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:Ze,autoFocus:De,autoPlay:De,blocking:Ze,capture:null,charSet:null,checked:De,cite:null,className:Ze,cols:de,colSpan:null,content:null,contentEditable:yt,controls:De,controlsList:Ze,coords:de|Wr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:Ic,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:Ze,height:de,hidden:Ic,high:de,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:De,itemType:Ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:De,optimum:de,pattern:null,ping:Ze,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:Ze,required:De,reversed:De,rows:de,rowSpan:de,sandbox:Ze,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:yt,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:de,security:null,unselectable:null},space:"html",transform:qc});var vw=An({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:fn,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:Ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wr,g2:Wr,glyphName:Wr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:fn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:de,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fn,rev:fn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fn,requiredFeatures:fn,requiredFonts:fn,requiredFormats:fn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:fn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fn,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Mc});var xf=An({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return "xlink:"+t.slice(5).toLowerCase()}});var vf=An({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qc});var Tf=An({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return "xml:"+t.slice(3).toLowerCase()}});var wM=/[A-Z]/g,Tw=/-[a-z]/g,kM=/^data[-\w.:]+$/i;function Qo(e,t){let n=vr(t),r=t,i=Mt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&kM.test(t)){if(t.charAt(4)==="-"){let a=t.slice(5).replace(Tw,vM);r="data"+a.charAt(0).toUpperCase()+a.slice(1);}else {let a=t.slice(4);if(!Tw.test(a)){let o=a.replace(wM,xM);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o;}}i=Ni;}return new i(r,t)}function xM(e){return "-"+e.toLowerCase()}function vM(e){return e.charAt(1).toUpperCase()}var Zo=bf([kf,xw,xf,vf,Tf],"html"),Jo=bf([kf,vw,xf,vf,Tf],"svg");function Sf(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=false;for(;!a;){r===-1&&(r=n.length,a=true);let o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i);}return t}var Sw=/[#.]/g;function Ef(e,t){let n=e||"",r={},i=0,a,o;for(;i<n.length;){Sw.lastIndex=i;let s=Sw.exec(n),l=n.slice(i,s?s.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:o=l,i+=l.length),s&&(a=s[0],i++);}return {type:"element",tagName:o||t||"div",properties:r,children:[]}}function _f(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Cf(e,t,n){let r=n?_M(n):void 0;function i(a,o,...s){let l;if(a==null){l={type:"root",children:[]};let c=o;s.unshift(c);}else {l=Ef(a,t);let c=l.tagName.toLowerCase(),u=r?r.get(c):void 0;if(l.tagName=u||c,TM(o))s.unshift(o);else for(let[d,m]of Object.entries(o))SM(e,l.properties,d,m);}for(let c of s)Af(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function TM(e){if(e===null||typeof e!="object"||Array.isArray(e))return true;if(typeof e.type!="string")return false;let t=e,n=Object.keys(e);for(let r of n){let i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return true;let a=i;for(let o of a)if(typeof o!="number"&&typeof o!="string")return true}}return !!("children"in e&&Array.isArray(e.children))}function SM(e,t,n,r){let i=Qo(e,n),a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r;}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=_f(r):i.commaSeparated?a=Sf(r):i.commaOrSpaceSeparated?a=_f(Sf(r).join(" ")):a=Ew(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?EM(r):String(r);if(Array.isArray(a)){let o=[];for(let s of a)o.push(Ew(i,i.property,s));a=o;}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a;}}function Af(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(let n of t)Af(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Af(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ew(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||vr(n)===vr(t)))return true}return n}function EM(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function _M(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var _w=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];var If=Cf(Zo,"div"),Mf=Cf(Jo,"g",_w);function qf(e){let t=String(e),n=[];return {toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let o=0;for(;;){let s=n[o];if(s===void 0){let l=Aw(t,n[o-1]);s=l===-1?t.length+1:l+1,n[o]=s;}if(s>a)return {line:o+1,column:a-(o>0?n[o-1]:0)+1,offset:a};o++;}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){let s=n[n.length-1],l=Aw(t,s),c=l===-1?t.length+1:l+1;if(s===c)break;n.push(c);}let o=(a.line>1?n[a.line-2]:0)+a.column-1;if(o<n[a.line-1])return o}}}function Aw(e,t){let n=e.indexOf("\r",t),r=e.indexOf(`
1
+ var SquisqPlayer=(function(exports){'use strict';var $I=Object.create;var Ym=Object.defineProperty;var HI=Object.getOwnPropertyDescriptor;var zI=Object.getOwnPropertyNames;var UI=Object.getPrototypeOf,jI=Object.prototype.hasOwnProperty;var WI=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var bb=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}},Xm=(e,t)=>{for(var n in t)Ym(e,n,{get:t[n],enumerable:true});},VI=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zI(t))!jI.call(e,i)&&i!==n&&Ym(e,i,{get:()=>t[i],enumerable:!(r=HI(t,i))||r.enumerable});return e};var wb=(e,t,n)=>(n=e!=null?$I(UI(e)):{},VI(Ym(n,"default",{value:e,enumerable:true}),e));var yS=bb((yee,gS)=>{"use strict";var wd=Object.prototype.hasOwnProperty,hS=Object.prototype.toString,cS=Object.defineProperty,uS=Object.getOwnPropertyDescriptor,dS=function(t){return typeof Array.isArray=="function"?Array.isArray(t):hS.call(t)==="[object Array]"},mS=function(t){if(!t||hS.call(t)!=="[object Object]")return !1;var n=wd.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&wd.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return !1;var i;for(i in t);return typeof i>"u"||wd.call(t,i)},fS=function(t,n){cS&&n.name==="__proto__"?cS(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue;},pS=function(t,n){if(n==="__proto__")if(wd.call(t,n)){if(uS)return uS(t,n).value}else return;return t[n]};gS.exports=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=pS(s,n),i=pS(t,n),s!==i&&(u&&i&&(mS(i)||(a=dS(i)))?(a?(a=!1,o=r&&dS(r)?r:[]):o=r&&mS(r)?r:{},fS(s,{name:n,newValue:e(u,o,i)})):typeof i<"u"&&fS(s,{name:n,newValue:i}));return s};});var i_=bb((Mce,ky)=>{"use strict";(function(){var e;typeof ky<"u"?e=ky.exports=r:e=(function(){return this||(0,eval)("this")})(),e.format=r,e.vsprintf=n,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(r.apply(null,arguments));}function n(i,a){return r.apply(null,[i].concat(a))}function r(i){for(var a=1,o=[].slice.call(arguments),s=0,l=i.length,c="",u,d=!1,m,f,p=!1,g,h=function(){return o[a++]},b=function(){for(var w="";/\d/.test(i[s]);)w+=i[s++],u=i[s];return w.length>0?parseInt(w):null};s<l;++s)if(u=i[s],d)switch(d=!1,u=="."?(p=!1,u=i[++s]):u=="0"&&i[s+1]=="."?(p=!0,s+=2,u=i[s]):p=!0,g=b(),u){case "b":c+=parseInt(h(),10).toString(2);break;case "c":m=h(),typeof m=="string"||m instanceof String?c+=m:c+=String.fromCharCode(parseInt(m,10));break;case "d":c+=parseInt(h(),10);break;case "f":f=String(parseFloat(h()).toFixed(g||6)),c+=p?f:f.replace(/^0/,"");break;case "j":c+=JSON.stringify(h());break;case "o":c+="0"+parseInt(h(),10).toString(8);break;case "s":c+=h();break;case "x":c+="0x"+parseInt(h(),10).toString(16);break;case "X":c+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:c+=u;break}else u==="%"?d=!0:c+=u;return c}})();});var ZC={};Xm(ZC,{default:()=>SY});var TY,SY,JC=WI(()=>{"use strict";TY={initialize(){},async render(){throw new Error("Mermaid rendering is not included in the light standalone player. Use the /standalone/full export.")}},SY=TY;});var pc,qe,Tb,zr,kb,Sb,Eb,Km,cc,Wo,_b,ef,Qm,Zm,Ab,dc={},mc=[],YI=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vo=Array.isArray;function br(e,t){for(var n in t)e[n]=t[n];return e}function tf(e){e&&e.parentNode&&e.parentNode.removeChild(e);}function wr(e,t,n){var r,i,a,o={};for(a in t)a=="key"?r=t[a]:a=="ref"?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?pc.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return uc(e,o,r,i,null)}function uc(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Tb,__i:-1,__u:0};return i==null&&qe.vnode!=null&&qe.vnode(a),a}function Fe(e){return e.children}function gn(e,t){this.props=e,this.context=t;}function Li(e,t){if(t==null)return e.__?Li(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Li(e):null}function XI(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],a=br({},t);a.__v=t.__v+1,qe.vnode&&qe.vnode(a),nf(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Li(t),!!(32&t.__u),i),a.__v=t.__v,a.__.__k[a.__i]=a,Lb(r,a,i),t.__e=t.__=null,a.__e!=n&&Cb(a);}}function Cb(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Cb(e)}function Jm(e){(!e.__d&&(e.__d=true)&&zr.push(e)&&!fc.__r++||kb!=qe.debounceRendering)&&((kb=qe.debounceRendering)||Sb)(fc);}function fc(){try{for(var e,t=1;zr.length;)zr.length>t&&zr.sort(Eb),e=zr.shift(),t=zr.length,XI(e);}finally{zr.length=fc.__r=0;}}function Ib(e,t,n,r,i,a,o,s,l,c,u){var d,m,f,p,g,h,b=r&&r.__k||mc,w=t.length;for(l=KI(n,t,b,l,w),d=0;d<w;d++)(f=n.__k[d])!=null&&(m=f.__i!=-1&&b[f.__i]||dc,f.__i=d,h=nf(e,f,m,i,a,o,s,l,c,u),p=f.__e,f.ref&&m.ref!=f.ref&&(m.ref&&rf(m.ref,null,f),u.push(f.ref,f.__c||p,f)),g==null&&p!=null&&(g=p),4&f.__u?(l=Mb(f,l,e),m.__e&&(m.__e=null)):typeof f.type=="function"&&h!==void 0?l=h:p&&(l=p.nextSibling),f.__u&=-7);return n.__e=g,l}function KI(e,t,n,r,i){var a,o,s,l,c,u=n.length,d=u,m=0;for(e.__k=new Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!="boolean"&&typeof o!="function"?(typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?o=e.__k[a]=uc(null,o,null,null,null):Vo(o)?o=e.__k[a]=uc(Fe,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[a]=uc(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,l=a+m,o.__=e,o.__b=e.__b+1,s=null,(c=o.__i=QI(o,n,l,d))!=-1&&(d--,(s=n[c])&&(s.__u|=2)),s==null||s.__v==null?(c==-1&&(i>u?m--:i<u&&m++),typeof o.type!="function"&&(o.__u|=4)):c!=l&&(c==l-1?m--:c==l+1?m++:(c>l?m--:m++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=Li(s)),Rb(s,s));return r}function Mb(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Mb(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=Li(e)),t=n.insertBefore(e.__e,t||null));do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Go(e,t){return t=t||[],e==null||typeof e=="boolean"||(Vo(e)?e.some(function(n){Go(n,t);}):t.push(e)),t}function QI(e,t,n,r){var i,a,o,s=e.key,l=e.type,c=t[n],u=c!=null&&(2&c.__u)==0;if(c===null&&s==null||u&&s==c.key&&l==c.type)return n;if(r>(u?1:0)){for(i=n-1,a=n+1;i>=0||a<t.length;)if((c=t[o=i>=0?i--:a++])!=null&&(2&c.__u)==0&&s==c.key&&l==c.type)return o}return -1}function xb(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||YI.test(t)?n:n+"px";}function lc(e,t,n,r,i){var a,o;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else {if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||xb(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||xb(e.style,t,n[t]);}else if(t[0]=="o"&&t[1]=="n")a=t!=(t=t.replace(_b,"$1")),o=t.toLowerCase(),t=o in e||t=="onFocusOut"||t=="onFocusIn"?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n[Wo]=r[Wo]:(n[Wo]=ef,e.addEventListener(t,a?Zm:Qm,a)):e.removeEventListener(t,a?Zm:Qm,a);else {if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===false&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n));}}function vb(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[cc]==null)t[cc]=ef++;else if(t[cc]<n[Wo])return;return n(qe.event?qe.event(t):t)}}}function nf(e,t,n,r,i,a,o,s,l,c){var u,d,m,f,p,g,h,b,w,x,T,S,v,E,I,_,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=qe.__b)&&u(t);e:if(typeof A=="function"){d=o.length;try{if(w=t.props,x=A.prototype&&A.prototype.render,T=(u=A.contextType)&&r[u.__c],S=u?T?T.props.value:u.__:r,n.__c?b=(m=t.__c=n.__c).__=m.__E:(x?t.__c=m=new A(w,S):(t.__c=m=new gn(w,S),m.constructor=A,m.render=JI),T&&T.sub(m),m.state||(m.state={}),m.__n=r,f=m.__d=!0,m.__h=[],m._sb=[]),x&&m.__s==null&&(m.__s=m.state),x&&A.getDerivedStateFromProps!=null&&(m.__s==m.state&&(m.__s=br({},m.__s)),br(m.__s,A.getDerivedStateFromProps(w,m.__s))),p=m.props,g=m.state,m.__v=t,f)x&&A.getDerivedStateFromProps==null&&m.componentWillMount!=null&&m.componentWillMount(),x&&m.componentDidMount!=null&&m.__h.push(m.componentDidMount);else {if(x&&A.getDerivedStateFromProps==null&&w!==p&&m.componentWillReceiveProps!=null&&m.componentWillReceiveProps(w,S),t.__v==n.__v||!m.__e&&m.shouldComponentUpdate!=null&&m.shouldComponentUpdate(w,m.__s,S)===!1){t.__v!=n.__v&&(m.props=w,m.state=m.__s,m.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(P){P&&(P.__=t);}),mc.push.apply(m.__h,m._sb),m._sb=[],m.__h.length&&o.push(m),s=Li(n);break e}m.componentWillUpdate!=null&&m.componentWillUpdate(w,m.__s,S),x&&m.componentDidUpdate!=null&&m.__h.push(function(){m.componentDidUpdate(p,g,h);});}if(m.context=S,m.props=w,m.__P=e,m.__e=!1,v=qe.__r,E=0,x)m.state=m.__s,m.__d=!1,v&&v(t),u=m.render(m.props,m.state,m.context),mc.push.apply(m.__h,m._sb),m._sb=[];else do m.__d=!1,v&&v(t),u=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++E<25);m.state=m.__s,m.getChildContext!=null&&(r=br(br({},r),m.getChildContext())),x&&!f&&m.getSnapshotBeforeUpdate!=null&&(h=m.getSnapshotBeforeUpdate(p,g)),I=u!=null&&u.type===Fe&&u.key==null?Pb(u.props.children):u,s=Ib(e,Vo(I)?I:[I],t,n,r,i,a,o,s,l,c),m.base=t.__e,t.__u&=-161,m.__h.length&&o.push(m),b&&(m.__E=m.__=null);}catch(P){if(o.length=d,t.__v=null,l||a!=null){if(P.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a!=null&&(a[a.indexOf(s)]=null),t.__e=s;}else if(a!=null)for(_=a.length;_--;)tf(a[_]);}else t.__e=n.__e;t.__k==null&&(t.__k=n.__k||[]),P.then||qb(t),qe.__e(P,t,n);}}else a==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=ZI(n.__e,t,n,r,i,a,o,l,c);return (u=qe.diffed)&&u(t),128&t.__u?void 0:s}function qb(e){e&&(e.__c&&(e.__c.__e=true),e.__k&&e.__k.some(qb));}function Lb(e,t,n){for(var r=0;r<n.length;r++)rf(n[r],n[++r],n[++r]);qe.__c&&qe.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(a){a.call(i);});}catch(a){qe.__e(a,i.__v);}});}function Pb(e){return typeof e!="object"||e==null||e.__b>0?e:Vo(e)?e.map(Pb):e.constructor!==void 0?null:br({},e)}function ZI(e,t,n,r,i,a,o,s,l){var c,u,d,m,f,p,g,h=n.props||dc,b=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),a!=null){for(c=0;c<a.length;c++)if((f=a[c])&&"setAttribute"in f==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,a[c]=null;break}}if(e==null){if(w==null)return document.createTextNode(b);e=document.createElementNS(i,w,b.is&&b),s&&(qe.__m&&qe.__m(t,a),s=false),a=null;}if(w==null)h===b||s&&e.data==b||(e.data=b);else {if(a=w=="textarea"&&b.defaultValue!=null?null:a&&pc.call(e.childNodes),!s&&a!=null)for(h={},c=0;c<e.attributes.length;c++)h[(f=e.attributes[c]).name]=f.value;for(c in h)f=h[c],c=="dangerouslySetInnerHTML"?d=f:c=="children"||c in b||c=="value"&&"defaultValue"in b||c=="checked"&&"defaultChecked"in b||lc(e,c,null,f,i);for(c in b)f=b[c],c=="children"?m=f:c=="dangerouslySetInnerHTML"?u=f:c=="value"?p=f:c=="checked"?g=f:s&&typeof f!="function"||h[c]===f||lc(e,c,f,h[c],i);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Ib(t.type=="template"?e.content:e,Vo(m)?m:[m],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,a,o,a?a[0]:n.__k&&Li(n,0),s,l),a!=null)for(c=a.length;c--;)tf(a[c]);s&&w!="textarea"||(c="value",w=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[c]||w=="progress"&&!p||w=="option"&&p!=h[c])&&lc(e,c,p,h[c],i),c="checked",g!=null&&g!=e[c]&&lc(e,c,g,h[c],i));}return e}function rf(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t));}else e.current=t;}catch(i){qe.__e(i,n);}}function Rb(e,t,n){var r,i;if(qe.unmount&&qe.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||rf(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount();}catch(a){qe.__e(a,t);}r.base=r.__P=r.__n=null;}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Rb(r[i],t,n||typeof e.type!="function");n||tf(e.__e),e.__c=e.__=e.__e=void 0;}function JI(e,t,n){return this.constructor(e,n)}function af(e,t,n){var r,i,a,o;t==document&&(t=document.documentElement),qe.__&&qe.__(e,t),i=(r="undefined"=="function")?null:t.__k,a=[],o=[],nf(t,e=(t).__k=wr(Fe,null,[e]),i||dc,dc,t.namespaceURI,i?null:t.firstChild?pc.call(t.childNodes):null,a,i?i.__e:t.firstChild,r,o),Lb(a,e,o),e.props.children=null;}function kr(e){function t(n){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null;},this.shouldComponentUpdate=function(a){this.props.value!=a.value&&r.forEach(function(o){o.__e=true,Jm(o);});},this.sub=function(a){r.add(a);var o=a.componentWillUnmount;a.componentWillUnmount=function(){r&&r.delete(a),o&&o.call(a);};}),n.children}return t.__c="__cC"+Ab++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}pc=mc.slice,qe={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(s){e=s;}throw e}},Tb=0,gn.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=br({},this.state),typeof e=="function"&&(e=e(br({},n),this.props)),e&&br(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Jm(this));},gn.prototype.forceUpdate=function(e){this.__v&&(this.__e=true,e&&this.__h.push(e),Jm(this));},gn.prototype.render=Fe,zr=[],Sb=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Eb=function(e,t){return e.__v.__b-t.__v.__b},fc.__r=0,Km=Math.random().toString(8),cc="__d"+Km,Wo="__a"+Km,_b=/(PointerCapture)$|Capture$/i,ef=0,Qm=vb(false),Zm=vb(true),Ab=0;var Ur,lt,of,Nb,Yo=0,Ub=[],wt=qe,Db=wt.__b,Ob=wt.__r,Fb=wt.diffed,Bb=wt.__c,$b=wt.unmount,Hb=wt.__;function Ha(e,t){wt.__h&&wt.__h(lt,e,Yo||t),Yo=0;var n=lt.__H||(lt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ye(e){return Yo=1,jb(Wb,e)}function jb(e,t,n){var r=Ha(Ur++,2);if(r.t=e,!r.__c&&(r.__=[Wb(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,s);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}));}],r.__c=lt,!lt.__f)){var i=function(s,l,c){if(!r.__c.__H)return true;var u=false,d=r.__c.props!==s;if(r.__c.__H.__.some(function(f){if(f.__N){u=true;var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=true);}}),a){var m=a.call(this,s,l,c);return u?m||d:m}return !u||d};lt.__f=true;var a=lt.shouldComponentUpdate,o=lt.componentWillUpdate;lt.componentWillUpdate=function(s,l,c){if(this.__e){var u=a;a=void 0,i(s,l,c),a=u;}o&&o.call(this,s,l,c);},lt.shouldComponentUpdate=i;}return r.__N||r.__}function xe(e,t){var n=Ha(Ur++,3);!wt.__s&&lf(n.__H,t)&&(n.__=e,n.u=t,lt.__H.__h.push(n));}function $t(e,t){var n=Ha(Ur++,4);!wt.__s&&lf(n.__H,t)&&(n.__=e,n.u=t,lt.__h.push(n));}function we(e){return Yo=5,he(function(){return {current:e}},[])}function he(e,t){var n=Ha(Ur++,7);return lf(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ee(e,t){return Yo=8,he(function(){return e},t)}function jr(e){var t=lt.context[e.__c],n=Ha(Ur++,9);return n.c=e,t?(n.__==null&&(n.__=true,t.sub(lt)),t.props.value):e.__}function tn(){var e=Ha(Ur++,11);if(!e.__){for(var t=lt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++;}return e.__}function eM(){for(var e;e=Ub.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(hc),t.__h.some(sf),t.__h=[];}catch(n){t.__h=[],wt.__e(n,e.__v);}}}wt.__b=function(e){lt=null,Db&&Db(e);},wt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Hb&&Hb(e,t);},wt.__r=function(e){Ob&&Ob(e),Ur=0;var t=(lt=e.__c).__H;t&&(of===lt?(t.__h=[],lt.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0;})):(t.__h.some(hc),t.__h.some(sf),t.__h=[],Ur=0)),of=lt;},wt.diffed=function(e){Fb&&Fb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ub.push(t)!==1&&Nb===wt.requestAnimationFrame||((Nb=wt.requestAnimationFrame)||tM)(eM)),t.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0);})),of=lt=null;},wt.__c=function(e,t){t.some(function(n){try{n.__h.some(hc),n.__h=n.__h.filter(function(r){return !r.__||sf(r)});}catch(r){t.some(function(i){i.__h&&(i.__h=[]);}),t=[],wt.__e(r,n.__v);}}),Bb&&Bb(e,t);},wt.unmount=function(e){$b&&$b(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{hc(r);}catch(i){t=i;}}),n.__H=void 0,t&&wt.__e(t,n.__v));};var zb=typeof requestAnimationFrame=="function";function tM(e){var t,n=function(){clearTimeout(r),zb&&cancelAnimationFrame(t),setTimeout(e);},r=setTimeout(n,35);zb&&(t=requestAnimationFrame(n));}function hc(e){var t=lt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),lt=t;}function sf(e){var t=lt;e.__c=e.__(),lt=t;}function lf(e,t){return !e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Wb(e,t){return typeof t=="function"?t(e):t}function rM(e,t){for(var n in t)e[n]=t[n];return e}function Vb(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return true;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return true;return false}function tw(e,t){var n=t(),r=ye({t:{__:n,u:t}}),i=r[0].t,a=r[1];return $t(function(){i.__=n,i.u=t,cf(i)&&a({t:i});},[e,n,t]),xe(function(){return cf(i)&&a({t:i}),e(function(){cf(i)&&a({t:i});})},[e]),n}function cf(e){try{return !((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return true}var t,n;}function Gb(e,t){this.props=e,this.context=t;}(Gb.prototype=new gn).isPureReactComponent=true,Gb.prototype.shouldComponentUpdate=function(e,t){return Vb(this.props,e)||Vb(this.state,t)};var Yb=qe.__b;qe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Yb&&Yb(e);};var iM=qe.__e;qe.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k||[]),i.__c(e,t)}iM(e,t,n,r);};var Xb=qe.unmount;function nw(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c();}),e.__c.__H=null),(e=rM({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=true,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return nw(r,t,n)})),e}function rw(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return rw(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=true,e.__c.__P=n)),e}function uf(){this.__u=0,this.o=null,this.__b=null;}function iw(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function gc(){this.i=null,this.l=null;}qe.unmount=function(e){var t=e.__c;t&&(t.__z=true),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Xb&&Xb(e);},(uf.prototype=new gn).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=iw(r.__v),a=false,o=function(){a||r.__z||(a=true,n.__R=null,i?i(l):l());};n.__R=o;var s=n.__P;n.__P=null;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=rw(c,c.__c.__P,c.__c.__O);}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.__P=s,u.forceUpdate();}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o);},uf.prototype.componentWillUnmount=function(){this.o=[];},uf.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=nw(this.__b,n,r.__O=r.__P);}this.__b=null;}var i=t.__a&&wr(Fe,null,e.fallback);return i&&(i.__u&=-33),[wr(Fe,null,t.__a?null:e.children),i]};var Kb=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2];}};(gc.prototype=new gn).__a=function(e){var t=this,n=iw(t.__v),r=t.l.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),Kb(t,e,r)):i();};n?n(a):a();}},gc.prototype.render=function(e){this.i=null,this.l=new Map;var t=Go(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},gc.prototype.componentDidUpdate=gc.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Kb(e,n,t);});};var aM=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,oM=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,sM=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,lM=/[A-Z0-9]/g,cM=typeof document<"u",uM=function(e){return (typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function aw(e,t,n){return t.__k==null&&(t.textContent=""),af(e,t),e?e.__c:null}gn.prototype.isReactComponent=true,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(gn.prototype,e,{configurable:true,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:true,writable:true,value:t});}});});var Qb=qe.event;qe.event=function(e){return Qb&&(e=Qb(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var dM={configurable:true,get:function(){return this.class}},Zb=qe.vnode;qe.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,i={},a=r.indexOf("-")==-1;for(var o in n){var s=n[o];if(!(o==="value"&&"defaultValue"in n&&s==null||cM&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var l=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===true?s="":l==="translate"&&s==="no"?s=false:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?o="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||uM(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":sM.test(o)&&(o=l):l=o="oninput":a&&oM.test(o)?o=o.replace(lM,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[o=l]&&(o="oninputCapture"),i[o]=s;}}r=="select"&&(i.multiple&&Array.isArray(i.value)&&(i.value=Go(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1;})),i.defaultValue!=null&&(i.value=Go(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value;}))),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",dM)):n.className&&(i.class=i.className=n.className),t.props=i;})(e),e.$$typeof=aM,Zb&&Zb(e);};var Jb=qe.__r;qe.__r=function(e){Jb&&Jb(e),e.__c;};var ew=qe.diffed;qe.diffed=function(e){ew&&ew(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value);};function sw(e){return !!e.__k&&(af(null,e),true)}var lw=function(e,t){var n,r=qe.debounceRendering;qe.debounceRendering=function(a){n=a;};try{var i=e(t);return n&&n(),i}finally{qe.debounceRendering=r;}};function cw(e){return {render:function(t){aw(t,e);},unmount:function(){sw(e);}}}var yc=["off","items","branches","chunks"],bc=["appear","fadeIn","fadeInUp","slideIn"],wc=["keep","dim"];function kc(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e;if(!(Object.keys(t).some(n=>!["mode","effect","duration","previous"].includes(n))||!yc.includes(t.mode)||t.effect!==void 0&&!bc.includes(t.effect)||t.previous!==void 0&&!wc.includes(t.previous)||t.duration!==void 0&&(typeof t.duration!="number"||!Number.isFinite(t.duration)||t.duration<0)))return {...t}}var Pi=Object.freeze({maxSourceBytes:512*1024,maxElements:2e4,maxDepth:200,maxExpandedElements:5e4}),uw=.7,xc=["cut","fade","dissolve","push","wipe","split","reveal","randomBars","shape","uncover","cover","zoom","pan","flash","fallOver","drape","curtains","wind","prestige","fracture","crush","peelOff","pageCurl","airplane","origami","checkerboard","blinds","clock","ripple","honeycomb","glitter","vortex","shred","switch","flip","gallery","cube","doors","box","ferrisWheel","conveyor","rotate","window","orbit","flyThrough","morph","checker","circle","comb","diamond","newsflash","plus","pull","random","randomBar","strips","wedge","wheel","prism","warp","ferris","flythrough","wheelReverse","pageCurlDouble","pageCurlSingle","slideLeft","slideRight","slideUp","slideDown"];var mM=new Set(xc),fM={none:"cut",randombars:"randomBars",randombar:"randomBar",checkerboards:"checkerboard",shapes:"shape",ferris:"ferrisWheel",ferriswheel:"ferrisWheel",flythrough:"flyThrough",flythru:"flyThrough",pagecurl:"pageCurl",pagecurldouble:"pageCurlDouble",pagecurlsingle:"pageCurlSingle",wheelreverse:"wheelReverse",slideleft:"slideLeft",slideright:"slideRight",slideup:"slideUp",slidedown:"slideDown"},pM=new Map(xc.map(e=>[ff(e),e]));function vc(e){return mM.has(e)}function df(e){let t=e.trim();if(!t)return null;if(vc(t))return t;let n=ff(t);return fM[n]??pM.get(n)??null}function mf(e){switch(ff(e)){case "left":case "l":return "left";case "right":case "r":return "right";case "up":case "u":return "up";case "down":case "d":return "down";case "in":return "in";case "out":return "out";case "horizontal":case "horz":case "h":return "horizontal";case "vertical":case "vert":case "v":return "vertical";default:return null}}function za(e,t=uw){let n=e?.duration;return n!=null&&Number.isFinite(n)&&n>0?n:t}function Xo(e,t,n){if(e.transition)return e.transition;if(n!==0)return t.renderStyle.defaultTransition}function ff(e){return e.toLowerCase().replace(/[\s_-]+/g,"")}var pf=["highpass","denoise","debreath","loudness"],fw=Object.freeze({highpass:{defaultValue:80,min:20,max:300},denoise:{defaultValue:.8,min:0,max:1},debreath:{defaultValue:-15,min:-40,max:0},loudness:{defaultValue:-16,min:-31,max:-5}}),Ec=[{key:"fx",htmlSuffix:"fx"},{key:"cuts",htmlSuffix:"cuts"},{key:"gain",htmlSuffix:"gain"},{key:"fadeIn",htmlSuffix:"fade-in"},{key:"fadeOut",htmlSuffix:"fade-out"},{key:"crop",htmlSuffix:"crop"},{key:"group",htmlSuffix:"group"}];function pw(e,t){let n=Ec.find(r=>r.key===t);return `data-squisq-${e}-${n?.htmlSuffix??t}`}function hw(e,t=3){let n=Number(e.toFixed(t));return Object.is(n,-0)?"0":String(n)}function _c(e){if(e==null)return null;let t=e.trim();if(!/^[-+]?(\d+(\.\d*)?|\.\d+)$/.test(t))return null;let n=Number(t);return Number.isFinite(n)?n:null}function Ua(e,t,n){return Math.min(n,Math.max(t,e))}function Sc(e){let t=e.trim(),n=_c(t);if(n!=null)return n>=0?n:null;let r=t.match(/^(\d+(?:\.\d+)?)ms$/i);if(r)return Number(r[1])/1e3;let i=t.match(/^(\d+):([0-5]?\d)(?:\.(\d+))?$/);return i?Number(i[1])*60+Number(i[2])+ +`0.${i[3]??"0"}`:null}function gM(e){return pf.includes(e)}function gw(e){if(e==null)return null;let t=e.split(/[\s,]+/).filter(Boolean);if(t.length===0)return null;let n=new Map,r=[];for(let a of t){let o=a.indexOf(":"),s=(o===-1?a:a.slice(0,o)).toLowerCase();if(!gM(s)){r.push(a);continue}let l=fw[s],c=l.defaultValue;if(o!==-1&&(c=_c(a.slice(o+1)),c!=null&&s==="debreath"&&(c=-Math.abs(c))),c==null){r.push(a);continue}n.set(s,Ua(c,l.min,l.max));}return {ops:pf.filter(a=>n.has(a)).map(a=>({id:a,value:n.get(a)})),unknown:r}}var dw=.001;function Ac(e,t=0,n=Number.POSITIVE_INFINITY){let r=e.filter(a=>Number.isFinite(a.start)&&Number.isFinite(a.end)).map(a=>({start:Math.max(t,Math.min(a.start,a.end)),end:Math.min(n,Math.max(a.start,a.end))})).filter(a=>a.end-a.start>=dw).sort((a,o)=>a.start-o.start),i=[];for(let a of r){let o=i[i.length-1];o&&a.start<=o.end+dw?o.end=Math.max(o.end,a.end):i.push({...a});}return i}function yw(e){if(e==null)return null;let t=[];for(let r of e.split(/[\s,]+/).filter(Boolean)){let i=r.indexOf("-",1);if(i===-1)continue;let a=Sc(r.slice(0,i)),o=Sc(r.slice(i+1));a==null||o==null||o<=a||t.push({start:a,end:o});}let n=Ac(t);return n.length>0?n:null}var Tc=.02;function bw(e){if(e==null)return null;let t=e.split(/[\s,]+/).filter(Boolean).map(n=>_c(n));return t.length!==4||t.some(n=>n==null)?null:ww({x:t[0],y:t[1],w:t[2],h:t[3]})}function ww(e){let t=Ua(e.x,0,1-Tc),n=Ua(e.y,0,1-Tc),r=Ua(e.w,Tc,1-t),i=Ua(e.h,Tc,1-n);return t<1e-4&&n<1e-4&&r>1-1e-4&&i>1-1e-4?null:{x:t,y:n,w:r,h:i}}function hf(e){return [e.x,e.y,e.w,e.h].map(t=>hw(t,4)).join(" ")}var mw={min:-60,max:24},yM=/^[A-Za-z0-9_-]{1,64}$/;function Cc(e){let t={},n=gw(e.fx);n&&(n.ops.length>0||n.unknown.length>0)&&(t.fx=n);let r=yw(e.cuts);r&&(t.cuts=r);let i=_c(e.gain);i!=null&&i!==0&&(t.gain=Ua(i,mw.min,mw.max));let a=e.fadeIn==null?null:Sc(e.fadeIn);a!=null&&a>0&&(t.fadeIn=a);let o=e.fadeOut==null?null:Sc(e.fadeOut);o!=null&&o>0&&(t.fadeOut=o);let s=bw(e.crop);s&&(t.crop=s);let l=e.group?.trim();return l&&yM.test(l)&&(t.group=l),Object.keys(t).length>0?t:void 0}function gf(e){let t={};for(let{key:n}of Ec)e[n]!=null&&(t[n]=e[n]);return t}function yf(e,t){let n={};for(let{key:r}of Ec){let i=t[pw(e,r)];i!=null&&(n[r]=i);}return n}var xr=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r);}};xr.prototype.normal={};xr.prototype.property={};xr.prototype.space=void 0;function bf(e,t){let n={},r={};for(let i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new xr(n,r,t)}function vr(e){return e.toLowerCase()}var Mt=class{constructor(t,n){this.attribute=n,this.property=t;}};Mt.prototype.attribute="";Mt.prototype.booleanish=false;Mt.prototype.boolean=false;Mt.prototype.commaOrSpaceSeparated=false;Mt.prototype.commaSeparated=false;Mt.prototype.defined=false;Mt.prototype.mustUseProperty=false;Mt.prototype.number=false;Mt.prototype.overloadedBoolean=false;Mt.prototype.property="";Mt.prototype.spaceSeparated=false;Mt.prototype.space=void 0;var Ko={};Xm(Ko,{boolean:()=>De,booleanish:()=>yt,commaOrSpaceSeparated:()=>fn,commaSeparated:()=>Wr,number:()=>de,overloadedBoolean:()=>Ic,spaceSeparated:()=>Ze});var bM=0,De=Ri(),yt=Ri(),Ic=Ri(),de=Ri(),Ze=Ri(),Wr=Ri(),fn=Ri();function Ri(){return 2**++bM}var wf=Object.keys(Ko),Ni=class extends Mt{constructor(t,n,r,i){let a=-1;if(super(t,n),kw(this,"space",i),typeof r=="number")for(;++a<wf.length;){let o=wf[a];kw(this,wf[a],(r&Ko[o])===Ko[o]);}}};Ni.prototype.defined=true;function kw(e,t,n){n&&(e[t]=n);}function An(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Ni(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=true),t[r]=a,n[vr(r)]=r,n[vr(a.attribute)]=r;}return new xr(t,n,e.space)}var kf=An({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:Ze,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:de,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:Ze,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:yt,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Mc(e,t){return t in e?e[t]:t}function qc(e,t){return Mc(e,t.toLowerCase())}var xw=An({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wr,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:Ze,autoFocus:De,autoPlay:De,blocking:Ze,capture:null,charSet:null,checked:De,cite:null,className:Ze,cols:de,colSpan:null,content:null,contentEditable:yt,controls:De,controlsList:Ze,coords:de|Wr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:Ic,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:Ze,height:de,hidden:Ic,high:de,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:De,itemType:Ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:De,optimum:de,pattern:null,ping:Ze,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:Ze,required:De,reversed:De,rows:de,rowSpan:de,sandbox:Ze,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:yt,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:de,security:null,unselectable:null},space:"html",transform:qc});var vw=An({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:fn,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:Ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wr,g2:Wr,glyphName:Wr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:fn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:de,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fn,rev:fn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fn,requiredFeatures:fn,requiredFonts:fn,requiredFormats:fn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:fn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fn,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Mc});var xf=An({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return "xlink:"+t.slice(5).toLowerCase()}});var vf=An({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qc});var Tf=An({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return "xml:"+t.slice(3).toLowerCase()}});var wM=/[A-Z]/g,Tw=/-[a-z]/g,kM=/^data[-\w.:]+$/i;function Qo(e,t){let n=vr(t),r=t,i=Mt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&kM.test(t)){if(t.charAt(4)==="-"){let a=t.slice(5).replace(Tw,vM);r="data"+a.charAt(0).toUpperCase()+a.slice(1);}else {let a=t.slice(4);if(!Tw.test(a)){let o=a.replace(wM,xM);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o;}}i=Ni;}return new i(r,t)}function xM(e){return "-"+e.toLowerCase()}function vM(e){return e.charAt(1).toUpperCase()}var Zo=bf([kf,xw,xf,vf,Tf],"html"),Jo=bf([kf,vw,xf,vf,Tf],"svg");function Sf(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=false;for(;!a;){r===-1&&(r=n.length,a=true);let o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i);}return t}var Sw=/[#.]/g;function Ef(e,t){let n=e||"",r={},i=0,a,o;for(;i<n.length;){Sw.lastIndex=i;let s=Sw.exec(n),l=n.slice(i,s?s.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:o=l,i+=l.length),s&&(a=s[0],i++);}return {type:"element",tagName:o||t||"div",properties:r,children:[]}}function _f(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Cf(e,t,n){let r=n?_M(n):void 0;function i(a,o,...s){let l;if(a==null){l={type:"root",children:[]};let c=o;s.unshift(c);}else {l=Ef(a,t);let c=l.tagName.toLowerCase(),u=r?r.get(c):void 0;if(l.tagName=u||c,TM(o))s.unshift(o);else for(let[d,m]of Object.entries(o))SM(e,l.properties,d,m);}for(let c of s)Af(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function TM(e){if(e===null||typeof e!="object"||Array.isArray(e))return true;if(typeof e.type!="string")return false;let t=e,n=Object.keys(e);for(let r of n){let i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return true;let a=i;for(let o of a)if(typeof o!="number"&&typeof o!="string")return true}}return !!("children"in e&&Array.isArray(e.children))}function SM(e,t,n,r){let i=Qo(e,n),a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r;}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=_f(r):i.commaSeparated?a=Sf(r):i.commaOrSpaceSeparated?a=_f(Sf(r).join(" ")):a=Ew(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?EM(r):String(r);if(Array.isArray(a)){let o=[];for(let s of a)o.push(Ew(i,i.property,s));a=o;}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a;}}function Af(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(let n of t)Af(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Af(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ew(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||vr(n)===vr(t)))return true}return n}function EM(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function _M(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var _w=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];var If=Cf(Zo,"div"),Mf=Cf(Jo,"g",_w);function qf(e){let t=String(e),n=[];return {toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let o=0;for(;;){let s=n[o];if(s===void 0){let l=Aw(t,n[o-1]);s=l===-1?t.length+1:l+1,n[o]=s;}if(s>a)return {line:o+1,column:a-(o>0?n[o-1]:0)+1,offset:a};o++;}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){let s=n[n.length-1],l=Aw(t,s),c=l===-1?t.length+1:l+1;if(s===c)break;n.push(c);}let o=(a.line>1?n[a.line-2]:0)+a.column-1;if(o<n[a.line-1])return o}}}function Aw(e,t){let n=e.indexOf("\r",t),r=e.indexOf(`
2
2
  `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}var Cw={svg:"http://www.w3.org/2000/svg"};var Mw={}.hasOwnProperty,AM=Object.prototype;function Lf(e,t){let n=t||{};return Pf({file:n.file||void 0,location:false,schema:n.space==="svg"?Jo:Zo,verbose:n.verbose||false},e)}function Pf(e,t){let n;switch(t.nodeName){case "#comment":{let r=t;return n={type:"comment",value:r.data},Lc(e,r,n),n}case "#document":case "#document-fragment":{let r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":false;if(n={type:"root",children:qw(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){let a=String(e.file),o=qf(a),s=o.toPoint(0),l=o.toPoint(a.length);n.position={start:s,end:l};}return n}case "#documentType":{let r=t;return n={type:"doctype"},Lc(e,r,n),n}case "#text":{let r=t;return n={type:"text",value:r.value},Lc(e,r,n),n}default:return n=CM(e,t),n}}function qw(e,t){let n=-1,r=[];for(;++n<t.length;){let i=Pf(e,t[n]);r.push(i);}return r}function CM(e,t){let n=e.schema;e.schema=t.namespaceURI===Cw.svg?Jo:Zo;let r=-1,i={};for(;++r<t.attrs.length;){let s=t.attrs[r],l=(s.prefix?s.prefix+":":"")+s.name;Mw.call(AM,l)||(i[l]=s.value);}let o=(e.schema.space==="svg"?Mf:If)(t.tagName,i,qw(e,t.childNodes));if(Lc(e,t,o),o.tagName==="template"){let s=t,l=s.sourceCodeLocation,c=l&&l.startTag&&ja(l.startTag),u=l&&l.endTag&&ja(l.endTag),d=Pf(e,s.content);c&&u&&e.file&&(d.position={start:c.end,end:u.start}),o.content=d;}return e.schema=n,o}function Lc(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=IM(e,n,t.sourceCodeLocation);r&&(e.location=true,n.position=r);}}function IM(e,t,n){let r=ja(n);if(t.type==="element"){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let a={},o;if(n.attrs)for(o in n.attrs)Mw.call(n.attrs,o)&&(a[Qo(e.schema,o).property]=ja(n.attrs[o]));n.startTag;let s=ja(n.startTag),l=n.endTag?ja(n.endTag):void 0,c={opening:s};l&&(c.closing=l),c.properties=a,t.data={position:c};}}return r}function ja(e){let t=Iw({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Iw({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Iw(e){return e.line&&e.column?e:void 0}var MM=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),at="\uFFFD",N;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";})(N||(N={}));var nn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Pc(e){return e>=55296&&e<=57343}function Lw(e){return e>=56320&&e<=57343}function Pw(e,t){return (e-55296)*1024+9216+t}function Rc(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Nc(e){return e>=64976&&e<=65007||MM.has(e)}var J;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";})(J||(J={}));var LM=65536,Dc=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=false,this.lastChunkWritten=false,this.endOfChunkHit=false,this.bufferWaterline=LM,this.isEol=false,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1;}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){let{line:r,col:i,offset:a}=this,o=i+n,s=a+n;return {code:t,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)));}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos;}_processSurrogate(t){if(this.pos!==this.html.length-1){let n=this.html.charCodeAt(this.pos+1);if(Lw(n))return this.pos++,this._addGap(),Pw(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=true,N.EOF;return this._err(J.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0);}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=false,this.lastChunkWritten=n;}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=false;}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,false;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return false;return true}peek(t){let n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,N.EOF;let r=this.html.charCodeAt(n);return r===N.CARRIAGE_RETURN?N.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=false,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,N.EOF;let t=this.html.charCodeAt(this.pos);return t===N.CARRIAGE_RETURN?(this.isEol=true,this.skipNextNewLine=true,N.LINE_FEED):t===N.LINE_FEED&&(this.isEol=true,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=false,this._addGap(),this.advance()):(this.skipNextNewLine=false,Pc(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===N.LINE_FEED||t===N.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Rc(t)?this._err(J.controlCharacterInInputStream):Nc(t)&&this._err(J.noncharacterInInputStream);}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=false;}};var Ve;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION";})(Ve||(Ve={}));function Oc(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var Fc=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var RM=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Nf(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=RM.get(e))!==null&&t!==void 0?t:e}var Lt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z";})(Lt||(Lt={}));var DM=32,Vr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE";})(Vr||(Vr={}));function Df(e){return e>=Lt.ZERO&&e<=Lt.NINE}function OM(e){return e>=Lt.UPPER_A&&e<=Lt.UPPER_F||e>=Lt.LOWER_A&&e<=Lt.LOWER_F}function FM(e){return e>=Lt.UPPER_A&&e<=Lt.UPPER_Z||e>=Lt.LOWER_A&&e<=Lt.LOWER_Z||Df(e)}function BM(e){return e===Lt.EQUALS||FM(e)}var qt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity";})(qt||(qt={}));var Zn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute";})(Zn||(Zn={}));var Bc=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=qt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Zn.Strict;}startEntity(t){this.decodeMode=t,this.state=qt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1;}write(t,n){switch(this.state){case qt.EntityStart:return t.charCodeAt(n)===Lt.NUM?(this.state=qt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=qt.NamedEntity,this.stateNamedEntity(t,n));case qt.NumericStart:return this.stateNumericStart(t,n);case qt.NumericDecimal:return this.stateNumericDecimal(t,n);case qt.NumericHex:return this.stateNumericHex(t,n);case qt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|DM)===Lt.LOWER_X?(this.state=qt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=qt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){let a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a;}}stateNumericHex(t,n){let r=n;for(;n<t.length;){let i=t.charCodeAt(n);if(Df(i)||OM(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){let r=n;for(;n<t.length;){let i=t.charCodeAt(n);if(Df(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return (r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Lt.SEMI)this.consumed+=1;else if(this.decodeMode===Zn.Strict)return 0;return this.emitCodePoint(Nf(this.result),this.consumed),this.errors&&(t!==Lt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){let{decodeTree:r}=this,i=r[this.treeIndex],a=(i&Vr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){let o=t.charCodeAt(n);if(this.treeIndex=$M(r,i,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return this.result===0||this.decodeMode===Zn.Attribute&&(a===0||BM(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&Vr.VALUE_LENGTH)>>14,a!==0){if(o===Lt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Zn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0);}}return -1}emitNotTerminatedNamedEntity(){var t;let{result:n,decodeTree:r}=this,i=(r[n]&Vr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){let{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Vr.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case qt.NamedEntity:return this.result!==0&&(this.decodeMode!==Zn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case qt.NumericDecimal:return this.emitNumericEntity(0,2);case qt.NumericHex:return this.emitNumericEntity(0,3);case qt.NumericStart:return (t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case qt.EntityStart:return 0}}};function $M(e,t,n,r){let i=(t&Vr.BRANCH_LENGTH)>>7,a=t&Vr.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let l=r-a;return l<0||l>=i?-1:e[n+l]-1}let o=n,s=o+i-1;for(;o<=s;){let l=o+s>>>1,c=e[l];if(c<r)o=l+1;else if(c>r)s=l-1;else return e[l+i]}return -1}var le;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/";})(le||(le={}));var Tr;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size";})(Tr||(Tr={}));var rn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks";})(rn||(rn={}));var Y;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp";})(Y||(Y={}));var y;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP";})(y||(y={}));var HM=new Map([[Y.A,y.A],[Y.ADDRESS,y.ADDRESS],[Y.ANNOTATION_XML,y.ANNOTATION_XML],[Y.APPLET,y.APPLET],[Y.AREA,y.AREA],[Y.ARTICLE,y.ARTICLE],[Y.ASIDE,y.ASIDE],[Y.B,y.B],[Y.BASE,y.BASE],[Y.BASEFONT,y.BASEFONT],[Y.BGSOUND,y.BGSOUND],[Y.BIG,y.BIG],[Y.BLOCKQUOTE,y.BLOCKQUOTE],[Y.BODY,y.BODY],[Y.BR,y.BR],[Y.BUTTON,y.BUTTON],[Y.CAPTION,y.CAPTION],[Y.CENTER,y.CENTER],[Y.CODE,y.CODE],[Y.COL,y.COL],[Y.COLGROUP,y.COLGROUP],[Y.DD,y.DD],[Y.DESC,y.DESC],[Y.DETAILS,y.DETAILS],[Y.DIALOG,y.DIALOG],[Y.DIR,y.DIR],[Y.DIV,y.DIV],[Y.DL,y.DL],[Y.DT,y.DT],[Y.EM,y.EM],[Y.EMBED,y.EMBED],[Y.FIELDSET,y.FIELDSET],[Y.FIGCAPTION,y.FIGCAPTION],[Y.FIGURE,y.FIGURE],[Y.FONT,y.FONT],[Y.FOOTER,y.FOOTER],[Y.FOREIGN_OBJECT,y.FOREIGN_OBJECT],[Y.FORM,y.FORM],[Y.FRAME,y.FRAME],[Y.FRAMESET,y.FRAMESET],[Y.H1,y.H1],[Y.H2,y.H2],[Y.H3,y.H3],[Y.H4,y.H4],[Y.H5,y.H5],[Y.H6,y.H6],[Y.HEAD,y.HEAD],[Y.HEADER,y.HEADER],[Y.HGROUP,y.HGROUP],[Y.HR,y.HR],[Y.HTML,y.HTML],[Y.I,y.I],[Y.IMG,y.IMG],[Y.IMAGE,y.IMAGE],[Y.INPUT,y.INPUT],[Y.IFRAME,y.IFRAME],[Y.KEYGEN,y.KEYGEN],[Y.LABEL,y.LABEL],[Y.LI,y.LI],[Y.LINK,y.LINK],[Y.LISTING,y.LISTING],[Y.MAIN,y.MAIN],[Y.MALIGNMARK,y.MALIGNMARK],[Y.MARQUEE,y.MARQUEE],[Y.MATH,y.MATH],[Y.MENU,y.MENU],[Y.META,y.META],[Y.MGLYPH,y.MGLYPH],[Y.MI,y.MI],[Y.MO,y.MO],[Y.MN,y.MN],[Y.MS,y.MS],[Y.MTEXT,y.MTEXT],[Y.NAV,y.NAV],[Y.NOBR,y.NOBR],[Y.NOFRAMES,y.NOFRAMES],[Y.NOEMBED,y.NOEMBED],[Y.NOSCRIPT,y.NOSCRIPT],[Y.OBJECT,y.OBJECT],[Y.OL,y.OL],[Y.OPTGROUP,y.OPTGROUP],[Y.OPTION,y.OPTION],[Y.P,y.P],[Y.PARAM,y.PARAM],[Y.PLAINTEXT,y.PLAINTEXT],[Y.PRE,y.PRE],[Y.RB,y.RB],[Y.RP,y.RP],[Y.RT,y.RT],[Y.RTC,y.RTC],[Y.RUBY,y.RUBY],[Y.S,y.S],[Y.SCRIPT,y.SCRIPT],[Y.SEARCH,y.SEARCH],[Y.SECTION,y.SECTION],[Y.SELECT,y.SELECT],[Y.SOURCE,y.SOURCE],[Y.SMALL,y.SMALL],[Y.SPAN,y.SPAN],[Y.STRIKE,y.STRIKE],[Y.STRONG,y.STRONG],[Y.STYLE,y.STYLE],[Y.SUB,y.SUB],[Y.SUMMARY,y.SUMMARY],[Y.SUP,y.SUP],[Y.TABLE,y.TABLE],[Y.TBODY,y.TBODY],[Y.TEMPLATE,y.TEMPLATE],[Y.TEXTAREA,y.TEXTAREA],[Y.TFOOT,y.TFOOT],[Y.TD,y.TD],[Y.TH,y.TH],[Y.THEAD,y.THEAD],[Y.TITLE,y.TITLE],[Y.TR,y.TR],[Y.TRACK,y.TRACK],[Y.TT,y.TT],[Y.U,y.U],[Y.UL,y.UL],[Y.SVG,y.SVG],[Y.VAR,y.VAR],[Y.WBR,y.WBR],[Y.XMP,y.XMP]]);function Di(e){var t;return (t=HM.get(e))!==null&&t!==void 0?t:y.UNKNOWN}var ue=y,Nw={[le.HTML]:new Set([ue.ADDRESS,ue.APPLET,ue.AREA,ue.ARTICLE,ue.ASIDE,ue.BASE,ue.BASEFONT,ue.BGSOUND,ue.BLOCKQUOTE,ue.BODY,ue.BR,ue.BUTTON,ue.CAPTION,ue.CENTER,ue.COL,ue.COLGROUP,ue.DD,ue.DETAILS,ue.DIR,ue.DIV,ue.DL,ue.DT,ue.EMBED,ue.FIELDSET,ue.FIGCAPTION,ue.FIGURE,ue.FOOTER,ue.FORM,ue.FRAME,ue.FRAMESET,ue.H1,ue.H2,ue.H3,ue.H4,ue.H5,ue.H6,ue.HEAD,ue.HEADER,ue.HGROUP,ue.HR,ue.HTML,ue.IFRAME,ue.IMG,ue.INPUT,ue.LI,ue.LINK,ue.LISTING,ue.MAIN,ue.MARQUEE,ue.MENU,ue.META,ue.NAV,ue.NOEMBED,ue.NOFRAMES,ue.NOSCRIPT,ue.OBJECT,ue.OL,ue.P,ue.PARAM,ue.PLAINTEXT,ue.PRE,ue.SCRIPT,ue.SECTION,ue.SELECT,ue.SOURCE,ue.STYLE,ue.SUMMARY,ue.TABLE,ue.TBODY,ue.TD,ue.TEMPLATE,ue.TEXTAREA,ue.TFOOT,ue.TH,ue.THEAD,ue.TITLE,ue.TR,ue.TRACK,ue.UL,ue.WBR,ue.XMP]),[le.MATHML]:new Set([ue.MI,ue.MO,ue.MN,ue.MS,ue.MTEXT,ue.ANNOTATION_XML]),[le.SVG]:new Set([ue.TITLE,ue.FOREIGN_OBJECT,ue.DESC]),[le.XLINK]:new Set,[le.XML]:new Set,[le.XMLNS]:new Set},es=new Set([ue.H1,ue.H2,ue.H3,ue.H4,ue.H5,ue.H6]);new Set([Y.STYLE,Y.SCRIPT,Y.XMP,Y.IFRAME,Y.NOEMBED,Y.NOFRAMES,Y.PLAINTEXT]);var F;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";})(F||(F={}));var Ut={DATA:F.DATA,RCDATA:F.RCDATA,RAWTEXT:F.RAWTEXT,SCRIPT_DATA:F.SCRIPT_DATA,PLAINTEXT:F.PLAINTEXT,CDATA_SECTION:F.CDATA_SECTION};function UM(e){return e>=N.DIGIT_0&&e<=N.DIGIT_9}function ts(e){return e>=N.LATIN_CAPITAL_A&&e<=N.LATIN_CAPITAL_Z}function jM(e){return e>=N.LATIN_SMALL_A&&e<=N.LATIN_SMALL_Z}function Gr(e){return jM(e)||ts(e)}function Dw(e){return Gr(e)||UM(e)}function $c(e){return e+32}function Fw(e){return e===N.SPACE||e===N.LINE_FEED||e===N.TABULATION||e===N.FORM_FEED}function Ow(e){return Fw(e)||e===N.SOLIDUS||e===N.GREATER_THAN_SIGN}function WM(e){return e===N.NULL?J.nullCharacterReference:e>1114111?J.characterReferenceOutsideUnicodeRange:Pc(e)?J.surrogateCharacterReference:Nc(e)?J.noncharacterCharacterReference:Rc(e)||e===N.CARRIAGE_RETURN?J.controlCharacterReference:null}var ns=class{constructor(t,n){this.options=t,this.handler=n,this.paused=false,this.inLoop=false,this.inForeignNode=false,this.lastStartTagName="",this.active=false,this.state=F.DATA,this.returnState=F.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Dc(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Bc(Fc,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r);},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(J.missingSemicolonAfterCharacterReference,1);},absenceOfDigitsInNumericCharacterReference:r=>{this._err(J.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r);},validateNumericCharacterReference:r=>{let i=WM(r);i&&this._err(i,1);}}:void 0);}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n));}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=true;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let t=this._consume();this._ensureHibernation()||this._callState(t);}this.inLoop=false;}}pause(){this.paused=true;}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=false,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.());}write(t,n,r){this.active=true,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.();}insertHtmlAtCurrentPos(t){this.active=true,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop();}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=false,true):false}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance();}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),true):false}_createStartTagToken(){this.currentToken={type:Ve.START_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(1)};}_createEndTagToken(){this.currentToken={type:Ve.END_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:false,ackSelfClosing:false,attrs:[],location:this.getCurrentLocation(2)};}_createCommentToken(t){this.currentToken={type:Ve.COMMENT,data:"",location:this.getCurrentLocation(t)};}_createDoctypeToken(t){this.currentToken={type:Ve.DOCTYPE,name:t,forceQuirks:false,publicId:null,systemId:null,location:this.currentLocation};}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation};}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0);}_leaveAttrName(){var t,n;let r=this.currentToken;if(Oc(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){let i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue();}}else this._err(J.duplicateAttribute);}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset);}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1);}emitCurrentTagToken(){let t=this.currentToken;this.prepareToken(t),t.tagID=Di(t.tagName),t.type===Ve.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(J.endTagWithAttributes),t.selfClosing&&this._err(J.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk();}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk();}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk();}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ve.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ve.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ve.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null;}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ve.EOF,location:t}),this.active=false;}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n);}_emitCodePoint(t){let n=Fw(t)?Ve.WHITESPACE_CHARACTER:t===N.NULL?Ve.NULL_CHARACTER:Ve.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t));}_emitChars(t){this._appendCharToCurrentCharacterToken(Ve.CHARACTER,t);}_startCharacterReference(){this.returnState=this.state,this.state=F.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Zn.Attribute:Zn.Legacy);}_isCharacterReferenceInAttribute(){return this.returnState===F.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t);}_callState(t){switch(this.state){case F.DATA:{this._stateData(t);break}case F.RCDATA:{this._stateRcdata(t);break}case F.RAWTEXT:{this._stateRawtext(t);break}case F.SCRIPT_DATA:{this._stateScriptData(t);break}case F.PLAINTEXT:{this._statePlaintext(t);break}case F.TAG_OPEN:{this._stateTagOpen(t);break}case F.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case F.TAG_NAME:{this._stateTagName(t);break}case F.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case F.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case F.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case F.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case F.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case F.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case F.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case F.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case F.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case F.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case F.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case F.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case F.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case F.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case F.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case F.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case F.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case F.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case F.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case F.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case F.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case F.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case F.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case F.BOGUS_COMMENT:{this._stateBogusComment(t);break}case F.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case F.COMMENT_START:{this._stateCommentStart(t);break}case F.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case F.COMMENT:{this._stateComment(t);break}case F.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case F.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case F.COMMENT_END:{this._stateCommentEnd(t);break}case F.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case F.DOCTYPE:{this._stateDoctype(t);break}case F.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case F.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case F.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case F.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case F.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case F.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case F.CDATA_SECTION:{this._stateCdataSection(t);break}case F.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case F.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case F.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case F.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=F.TAG_OPEN;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(J.unexpectedNullCharacter),this._emitCodePoint(t);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t);}}_stateRcdata(t){switch(t){case N.AMPERSAND:{this._startCharacterReference();break}case N.LESS_THAN_SIGN:{this.state=F.RCDATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(at);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t);}}_stateRawtext(t){switch(t){case N.LESS_THAN_SIGN:{this.state=F.RAWTEXT_LESS_THAN_SIGN;break}case N.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(at);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t);}}_stateScriptData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(at);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t);}}_statePlaintext(t){switch(t){case N.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(at);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t);}}_stateTagOpen(t){if(Gr(t))this._createStartTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case N.EXCLAMATION_MARK:{this.state=F.MARKUP_DECLARATION_OPEN;break}case N.SOLIDUS:{this.state=F.END_TAG_OPEN;break}case N.QUESTION_MARK:{this._err(J.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t);break}case N.EOF:{this._err(J.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(J.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=F.DATA,this._stateData(t);}}_stateEndTagOpen(t){if(Gr(t))this._createEndTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case N.GREATER_THAN_SIGN:{this._err(J.missingEndTagName),this.state=F.DATA;break}case N.EOF:{this._err(J.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(J.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t);}}_stateTagName(t){let n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=F.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(J.unexpectedNullCharacter),n.tagName+=at;break}case N.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ts(t)?$c(t):t);}}_stateRcdataLessThanSign(t){t===N.SOLIDUS?this.state=F.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RCDATA,this._stateRcdata(t));}_stateRcdataEndTagOpen(t){Gr(t)?(this.state=F.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t));}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,false))return !this._ensureHibernation();this._createEndTagToken();let n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=F.BEFORE_ATTRIBUTE_NAME,false;case N.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=F.SELF_CLOSING_START_TAG,false;case N.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=F.DATA,false;default:return !this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t));}_stateRawtextLessThanSign(t){t===N.SOLIDUS?this.state=F.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RAWTEXT,this._stateRawtext(t));}_stateRawtextEndTagOpen(t){Gr(t)?(this.state=F.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t));}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t));}_stateScriptDataLessThanSign(t){switch(t){case N.SOLIDUS:{this.state=F.SCRIPT_DATA_END_TAG_OPEN;break}case N.EXCLAMATION_MARK:{this.state=F.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=F.SCRIPT_DATA,this._stateScriptData(t);}}_stateScriptDataEndTagOpen(t){Gr(t)?(this.state=F.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t));}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t));}_stateScriptDataEscapeStart(t){t===N.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t));}_stateScriptDataEscapeStartDash(t){t===N.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t));}_stateScriptDataEscaped(t){switch(t){case N.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(at);break}case N.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t);}}_stateScriptDataEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(J.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(at);break}case N.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t);}}_stateScriptDataEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(J.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(at);break}case N.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t);}}_stateScriptDataEscapedLessThanSign(t){t===N.SOLIDUS?this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Gr(t)?(this._emitChars("<"),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t));}_stateScriptDataEscapedEndTagOpen(t){Gr(t)?(this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t));}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t));}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(nn.SCRIPT,false)&&Ow(this.preprocessor.peek(nn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<nn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED;}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t));}_stateScriptDataDoubleEscaped(t){switch(t){case N.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(J.unexpectedNullCharacter),this._emitChars(at);break}case N.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t);}}_stateScriptDataDoubleEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(J.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(at);break}case N.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t);}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(J.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(at);break}case N.EOF:{this._err(J.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t);}}_stateScriptDataDoubleEscapedLessThanSign(t){t===N.SOLIDUS?(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t));}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(nn.SCRIPT,false)&&Ow(this.preprocessor.peek(nn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<nn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_ESCAPED;}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t));}_stateBeforeAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._err(J.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=F.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t);}}_stateAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this._leaveAttrName(),this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._leaveAttrName(),this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:{this._err(J.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case N.NULL:{this._err(J.unexpectedNullCharacter),this.currentAttr.name+=at;break}default:this.currentAttr.name+=String.fromCodePoint(ts(t)?$c(t):t);}}_stateAfterAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case N.EQUALS_SIGN:{this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case N.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t);}}_stateBeforeAttributeValue(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{this.state=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this.state=F.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(J.missingAttributeValue),this.state=F.DATA,this.emitCurrentTagToken();break}default:this.state=F.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t);}}_stateAttributeValueDoubleQuoted(t){switch(t){case N.QUOTATION_MARK:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(J.unexpectedNullCharacter),this.currentAttr.value+=at;break}case N.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t);}}_stateAttributeValueSingleQuoted(t){switch(t){case N.APOSTROPHE:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(J.unexpectedNullCharacter),this.currentAttr.value+=at;break}case N.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t);}}_stateAttributeValueUnquoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(J.unexpectedNullCharacter),this.currentAttr.value+=at;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:case N.EQUALS_SIGN:case N.GRAVE_ACCENT:{this._err(J.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case N.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t);}}_stateAfterAttributeValueQuoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this._leaveAttrValue(),this.state=F.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this._err(J.missingWhitespaceBetweenAttributes),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t);}}_stateSelfClosingStartTag(t){switch(t){case N.GREATER_THAN_SIGN:{let n=this.currentToken;n.selfClosing=true,this.state=F.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(J.eofInTag),this._emitEOFToken();break}default:this._err(J.unexpectedSolidusInTag),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t);}}_stateBogusComment(t){let n=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(n);break}case N.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case N.NULL:{this._err(J.unexpectedNullCharacter),n.data+=at;break}default:n.data+=String.fromCodePoint(t);}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(nn.DASH_DASH,true)?(this._createCommentToken(nn.DASH_DASH.length+1),this.state=F.COMMENT_START):this._consumeSequenceIfMatch(nn.DOCTYPE,false)?(this.currentLocation=this.getCurrentLocation(nn.DOCTYPE.length+1),this.state=F.DOCTYPE):this._consumeSequenceIfMatch(nn.CDATA_START,true)?this.inForeignNode?this.state=F.CDATA_SECTION:(this._err(J.cdataInHtmlContent),this._createCommentToken(nn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=F.BOGUS_COMMENT):this._ensureHibernation()||(this._err(J.incorrectlyOpenedComment),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t));}_stateCommentStart(t){switch(t){case N.HYPHEN_MINUS:{this.state=F.COMMENT_START_DASH;break}case N.GREATER_THAN_SIGN:{this._err(J.abruptClosingOfEmptyComment),this.state=F.DATA;let n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=F.COMMENT,this._stateComment(t);}}_stateCommentStartDash(t){let n=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case N.GREATER_THAN_SIGN:{this._err(J.abruptClosingOfEmptyComment),this.state=F.DATA,this.emitCurrentComment(n);break}case N.EOF:{this._err(J.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=F.COMMENT,this._stateComment(t);}}_stateComment(t){let n=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=F.COMMENT_END_DASH;break}case N.LESS_THAN_SIGN:{n.data+="<",this.state=F.COMMENT_LESS_THAN_SIGN;break}case N.NULL:{this._err(J.unexpectedNullCharacter),n.data+=at;break}case N.EOF:{this._err(J.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t);}}_stateCommentLessThanSign(t){let n=this.currentToken;switch(t){case N.EXCLAMATION_MARK:{n.data+="!",this.state=F.COMMENT_LESS_THAN_SIGN_BANG;break}case N.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=F.COMMENT,this._stateComment(t);}}_stateCommentLessThanSignBang(t){t===N.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=F.COMMENT,this._stateComment(t));}_stateCommentLessThanSignBangDash(t){t===N.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=F.COMMENT_END_DASH,this._stateCommentEndDash(t));}_stateCommentLessThanSignBangDashDash(t){t!==N.GREATER_THAN_SIGN&&t!==N.EOF&&this._err(J.nestedComment),this.state=F.COMMENT_END,this._stateCommentEnd(t);}_stateCommentEndDash(t){let n=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case N.EOF:{this._err(J.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=F.COMMENT,this._stateComment(t);}}_stateCommentEnd(t){let n=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(n);break}case N.EXCLAMATION_MARK:{this.state=F.COMMENT_END_BANG;break}case N.HYPHEN_MINUS:{n.data+="-";break}case N.EOF:{this._err(J.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=F.COMMENT,this._stateComment(t);}}_stateCommentEndBang(t){let n=this.currentToken;switch(t){case N.HYPHEN_MINUS:{n.data+="--!",this.state=F.COMMENT_END_DASH;break}case N.GREATER_THAN_SIGN:{this._err(J.incorrectlyClosedComment),this.state=F.DATA,this.emitCurrentComment(n);break}case N.EOF:{this._err(J.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=F.COMMENT,this._stateComment(t);}}_stateDoctype(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case N.EOF:{this._err(J.eofInDoctype),this._createDoctypeToken(null);let n=this.currentToken;n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingWhitespaceBeforeDoctypeName),this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);}}_stateBeforeDoctypeName(t){if(ts(t))this._createDoctypeToken(String.fromCharCode($c(t))),this.state=F.DOCTYPE_NAME;else switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.NULL:{this._err(J.unexpectedNullCharacter),this._createDoctypeToken(at),this.state=F.DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this._err(J.missingDoctypeName),this._createDoctypeToken(null);let n=this.currentToken;n.forceQuirks=true,this.emitCurrentDoctype(n),this.state=F.DATA;break}case N.EOF:{this._err(J.eofInDoctype),this._createDoctypeToken(null);let n=this.currentToken;n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=F.DOCTYPE_NAME;}}_stateDoctypeName(t){let n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=F.AFTER_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case N.NULL:{this._err(J.unexpectedNullCharacter),n.name+=at;break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ts(t)?$c(t):t);}}_stateAfterDoctypeName(t){let n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(nn.PUBLIC,false)?this.state=F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(nn.SYSTEM,false)?this.state=F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(J.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=true,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t));}}_stateAfterDoctypePublicKeyword(t){let n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(J.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(J.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(J.missingDoctypePublicIdentifier),n.forceQuirks=true,this.state=F.DATA,this.emitCurrentDoctype(n);break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=true,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t);}}_stateBeforeDoctypePublicIdentifier(t){let n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(J.missingDoctypePublicIdentifier),n.forceQuirks=true,this.state=F.DATA,this.emitCurrentDoctype(n);break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=true,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t);}}_stateDoctypePublicIdentifierDoubleQuoted(t){let n=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(J.unexpectedNullCharacter),n.publicId+=at;break}case N.GREATER_THAN_SIGN:{this._err(J.abruptDoctypePublicIdentifier),n.forceQuirks=true,this.emitCurrentDoctype(n),this.state=F.DATA;break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t);}}_stateDoctypePublicIdentifierSingleQuoted(t){let n=this.currentToken;switch(t){case N.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(J.unexpectedNullCharacter),n.publicId+=at;break}case N.GREATER_THAN_SIGN:{this._err(J.abruptDoctypePublicIdentifier),n.forceQuirks=true,this.emitCurrentDoctype(n),this.state=F.DATA;break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t);}}_stateAfterDoctypePublicIdentifier(t){let n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case N.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case N.QUOTATION_MARK:{this._err(J.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(J.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=true,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t);}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case N.QUOTATION_MARK:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=true,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t);}}_stateAfterDoctypeSystemKeyword(t){let n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(J.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(J.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(J.missingDoctypeSystemIdentifier),n.forceQuirks=true,this.state=F.DATA,this.emitCurrentDoctype(n);break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=true,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t);}}_stateBeforeDoctypeSystemIdentifier(t){let n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(J.missingDoctypeSystemIdentifier),n.forceQuirks=true,this.state=F.DATA,this.emitCurrentDoctype(n);break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=true,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t);}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let n=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(J.unexpectedNullCharacter),n.systemId+=at;break}case N.GREATER_THAN_SIGN:{this._err(J.abruptDoctypeSystemIdentifier),n.forceQuirks=true,this.emitCurrentDoctype(n),this.state=F.DATA;break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t);}}_stateDoctypeSystemIdentifierSingleQuoted(t){let n=this.currentToken;switch(t){case N.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(J.unexpectedNullCharacter),n.systemId+=at;break}case N.GREATER_THAN_SIGN:{this._err(J.abruptDoctypeSystemIdentifier),n.forceQuirks=true,this.emitCurrentDoctype(n),this.state=F.DATA;break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t);}}_stateAfterDoctypeSystemIdentifier(t){let n=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case N.EOF:{this._err(J.eofInDoctype),n.forceQuirks=true,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(J.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t);}}_stateBogusDoctype(t){let n=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case N.NULL:{this._err(J.unexpectedNullCharacter);break}case N.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case N.RIGHT_SQUARE_BRACKET:{this.state=F.CDATA_SECTION_BRACKET;break}case N.EOF:{this._err(J.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t);}}_stateCdataSectionBracket(t){t===N.RIGHT_SQUARE_BRACKET?this.state=F.CDATA_SECTION_END:(this._emitChars("]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t));}_stateCdataSectionEnd(t){switch(t){case N.GREATER_THAN_SIGN:{this.state=F.DATA;break}case N.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t);}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else {this.active=false,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=true;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(N.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Dw(this.preprocessor.peek(1))?F.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState;}_stateAmbiguousAmpersand(t){Dw(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===N.SEMICOLON&&this._err(J.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t));}};var zw=new Set([y.DD,y.DT,y.LI,y.OPTGROUP,y.OPTION,y.P,y.RB,y.RP,y.RT,y.RTC]),Bw=new Set([...zw,y.CAPTION,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]),Hc=new Set([y.APPLET,y.CAPTION,y.HTML,y.MARQUEE,y.OBJECT,y.TABLE,y.TD,y.TEMPLATE,y.TH]),VM=new Set([...Hc,y.OL,y.UL]),GM=new Set([...Hc,y.BUTTON]),$w=new Set([y.ANNOTATION_XML,y.MI,y.MN,y.MO,y.MS,y.MTEXT]),Hw=new Set([y.DESC,y.FOREIGN_OBJECT,y.TITLE]),YM=new Set([y.TR,y.TEMPLATE,y.HTML]),XM=new Set([y.TBODY,y.TFOOT,y.THEAD,y.TEMPLATE,y.HTML]),KM=new Set([y.TABLE,y.TEMPLATE,y.HTML]),QM=new Set([y.TD,y.TH]),zc=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=y.UNKNOWN,this.current=t;}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===y.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===le.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop];}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,true);}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,true);}replace(t,n){let r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n);}insertAfter(t,n,r){let i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop);}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==le.HTML);this.shortenToLength(Math.max(n,0));}shortenToLength(t){for(;this.stackTop>=t;){let n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t);}}popUntilElementPopped(t){let n=this._indexOf(t);this.shortenToLength(Math.max(n,0));}popUntilPopped(t,n){let r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0));}popUntilNumberedHeaderPopped(){this.popUntilPopped(es,le.HTML);}popUntilTableCellPopped(){this.popUntilPopped(QM,le.HTML);}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1);}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return -1}clearBackTo(t,n){let r=this._indexOfTagNames(t,n);this.shortenToLength(r+1);}clearBackToTableContext(){this.clearBackTo(KM,le.HTML);}clearBackToTableBodyContext(){this.clearBackTo(XM,le.HTML);}clearBackToTableRowContext(){this.clearBackTo(YM,le.HTML);}remove(t){let n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,false)));}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===y.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===y.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case le.HTML:{if(i===t)return true;if(n.has(i))return false;break}case le.SVG:{if(Hw.has(i))return false;break}case le.MATHML:{if($w.has(i))return false;break}}}return true}hasInScope(t){return this.hasInDynamicScope(t,Hc)}hasInListItemScope(t){return this.hasInDynamicScope(t,VM)}hasInButtonScope(t){return this.hasInDynamicScope(t,GM)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case le.HTML:{if(es.has(n))return true;if(Hc.has(n))return false;break}case le.SVG:{if(Hw.has(n))return false;break}case le.MATHML:{if($w.has(n))return false;break}}}return true}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===le.HTML)switch(this.tagIDs[n]){case t:return true;case y.TABLE:case y.HTML:return false}return true}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===le.HTML)switch(this.tagIDs[t]){case y.TBODY:case y.THEAD:case y.TFOOT:return true;case y.TABLE:case y.HTML:return false}return true}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===le.HTML)switch(this.tagIDs[n]){case t:return true;case y.OPTION:case y.OPTGROUP:break;default:return false}return true}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&zw.has(this.currentTagId);)this.pop();}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Bw.has(this.currentTagId);)this.pop();}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Bw.has(this.currentTagId);)this.pop();}};var Nn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element";})(Nn||(Nn={}));var Uw={type:Nn.Marker},Uc=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null;}_getNoahArkConditionCandidates(t,n){let r=[],i=n.length,a=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let s=0;s<this.entries.length;s++){let l=this.entries[s];if(l.type===Nn.Marker)break;let{element:c}=l;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===o){let u=this.treeAdapter.getAttrList(c);u.length===i&&r.push({idx:s,attrs:u});}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<3)return;let i=new Map(n.map(o=>[o.name,o.value])),a=0;for(let o=0;o<r.length;o++){let s=r[o];s.attrs.every(l=>i.get(l.name)===l.value)&&(a+=1,a>=3&&this.entries.splice(s.idx,1));}}insertMarker(){this.entries.unshift(Uw);}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Nn.Element,element:t,token:n});}insertElementAfterBookmark(t,n){let r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Nn.Element,element:t,token:n});}removeEntry(t){let n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1);}clearToLastMarker(){let t=this.entries.indexOf(Uw);t===-1?this.entries.length=0:this.entries.splice(0,t+1);}getElementEntryInScopeWithTagName(t){let n=this.entries.find(r=>r.type===Nn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Nn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Nn.Element&&n.element===t)}};var Dn={createDocument(){return {nodeName:"#document",mode:rn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return {nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return {nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return {nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return {nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e;},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e;},setTemplateContent(e,t){e.content=t;},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else {let a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Dn.appendChild(e,a);}},setDocumentMode(e,t){e.mode=t;},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null;}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(Dn.isTextNode(n)){n.value+=t;return}}Dn.appendChild(e,Dn.createTextNode(t));},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Dn.isTextNode(r)?r.value+=t:Dn.insertBefore(e,Dn.createTextNode(t),n);},adoptAttributes(e,t){let n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r]);},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t;},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t};}};var Ww="html",ZM="about:legacy-compat",JM="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Vw=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],eq=[...Vw,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],tq=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Gw=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],nq=[...Gw,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function jw(e,t){return t.some(n=>e.startsWith(n))}function Yw(e){return e.name===Ww&&e.publicId===null&&(e.systemId===null||e.systemId===ZM)}function Xw(e){if(e.name!==Ww)return rn.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===JM)return rn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),tq.has(n))return rn.QUIRKS;let r=t===null?eq:Vw;if(jw(n,r))return rn.QUIRKS;if(r=t===null?Gw:nq,jw(n,r))return rn.LIMITED_QUIRKS}return rn.NO_QUIRKS}var Kw={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},iq="definitionurl",aq="definitionURL",oq=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),sq=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:le.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:le.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:le.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:le.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:le.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:le.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:le.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:le.XML}],["xml:space",{prefix:"xml",name:"space",namespace:le.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:le.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:le.XMLNS}]]),lq=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),cq=new Set([y.B,y.BIG,y.BLOCKQUOTE,y.BODY,y.BR,y.CENTER,y.CODE,y.DD,y.DIV,y.DL,y.DT,y.EM,y.EMBED,y.H1,y.H2,y.H3,y.H4,y.H5,y.H6,y.HEAD,y.HR,y.I,y.IMG,y.LI,y.LISTING,y.MENU,y.META,y.NOBR,y.OL,y.P,y.PRE,y.RUBY,y.S,y.SMALL,y.SPAN,y.STRONG,y.STRIKE,y.SUB,y.SUP,y.TABLE,y.TT,y.U,y.UL,y.VAR]);function Qw(e){let t=e.tagID;return t===y.FONT&&e.attrs.some(({name:r})=>r===Tr.COLOR||r===Tr.SIZE||r===Tr.FACE)||cq.has(t)}function Of(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===iq){e.attrs[t].name=aq;break}}function Ff(e){for(let t=0;t<e.attrs.length;t++){let n=oq.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n);}}function jc(e){for(let t=0;t<e.attrs.length;t++){let n=sq.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace);}}function Zw(e){let t=lq.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Di(e.tagName));}function uq(e,t){return t===le.MATHML&&(e===y.MI||e===y.MO||e===y.MN||e===y.MS||e===y.MTEXT)}function dq(e,t,n){if(t===le.MATHML&&e===y.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Tr.ENCODING){let i=n[r].value.toLowerCase();return i===Kw.TEXT_HTML||i===Kw.APPLICATION_XML}}return t===le.SVG&&(e===y.FOREIGN_OBJECT||e===y.DESC||e===y.TITLE)}function Jw(e,t,n,r){return (!r||r===le.HTML)&&dq(e,t,n)||(!r||r===le.MATHML)&&uq(e,t)}var mq="hidden",fq=8,pq=3,H;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";})(H||(H={}));var hq={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ik=new Set([y.TABLE,y.TBODY,y.TFOOT,y.THEAD,y.TR]),tk={scriptingEnabled:true,sourceCodeLocationInfo:false,treeAdapter:Dn,onParseError:null},Wa=class{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=false,this.insertionMode=H.INITIAL,this.originalInsertionMode=H.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=false,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=false,this.framesetOk=true,this.skipNextNewLine=false,this.fosterParentingEnabled=false,this.options={...tk,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=true),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new ns(this.options,this),this.activeFormattingElements=new Uc(this.treeAdapter),this.fragmentContextID=r?Di(this.treeAdapter.getTagName(r)):y.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new zc(this.document,this.treeAdapter,this);}static parse(t,n){let r=new this(n);return r.tokenizer.write(t,true),r.document}static getFragmentParser(t,n){let r={...tk,...n};t??(t=r.treeAdapter.createElement(Y.TEMPLATE,le.HTML,[]));let i=r.treeAdapter.createElement("documentmock",le.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===y.TEMPLATE&&a.tmplInsertionModeStack.unshift(H.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;let a=(i=t.location)!==null&&i!==void 0?i:hq,o={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(o);}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n);}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,o;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,o=this.fragmentContextID):{current:a,currentTagId:o}=this.openElements,this._setContextModes(a,o);}}_setContextModes(t,n){let r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===le.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t);}_switchToTextParsing(t,n){this._insertElement(t,le.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=H.TEXT;}switchToPlaintextParsing(){this.insertionMode=H.TEXT,this.originalInsertionMode=H.IN_BODY,this.tokenizer.state=Ut.PLAINTEXT;}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Y.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t);}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==le.HTML))switch(this.fragmentContextID){case y.TITLE:case y.TEXTAREA:{this.tokenizer.state=Ut.RCDATA;break}case y.STYLE:case y.XMP:case y.IFRAME:case y.NOEMBED:case y.NOFRAMES:case y.NOSCRIPT:{this.tokenizer.state=Ut.RAWTEXT;break}case y.SCRIPT:{this.tokenizer.state=Ut.SCRIPT_DATA;break}case y.PLAINTEXT:{this.tokenizer.state=Ut.PLAINTEXT;break}}}_setDocumentType(t){let n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){let o=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location);}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){let r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r);}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else {let r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t);}}_appendElement(t,n){let r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location);}_insertElement(t,n){let r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID);}_insertFakeElement(t,n){let r=this.treeAdapter.createElement(t,le.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n);}_insertTemplate(t){let n=this.treeAdapter.createElement(t.tagName,le.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null);}_insertFakeRootElement(){let t=this.treeAdapter.createElement(Y.HTML,le.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,y.HTML);}_appendCommentNode(t,n){let r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location);}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;let i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,o=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){let{endLine:l,endCol:c,endOffset:u}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:l,endCol:c,endOffset:u});}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location);}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r);}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){let r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Ve.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a);}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return false;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===y.SVG&&this.treeAdapter.getTagName(n)===Y.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===le.MATHML?false:this.tokenizer.inForeignNode||(t.tagID===y.MGLYPH||t.tagID===y.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,le.HTML)}_processToken(t){switch(t.type){case Ve.CHARACTER:{this.onCharacter(t);break}case Ve.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ve.COMMENT:{this.onComment(t);break}case Ve.DOCTYPE:{this.onDoctype(t);break}case Ve.START_TAG:{this._processStartTag(t);break}case Ve.END_TAG:{this.onEndTag(t);break}case Ve.EOF:{this.onEof(t);break}case Ve.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){let i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Jw(t,i,a,r)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let n=this.activeFormattingElements.entries.findIndex(i=>i.type===Nn.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){let a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current;}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=H.IN_ROW;}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(y.P),this.openElements.popUntilTagNamePopped(y.P);}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case y.TR:{this.insertionMode=H.IN_ROW;return}case y.TBODY:case y.THEAD:case y.TFOOT:{this.insertionMode=H.IN_TABLE_BODY;return}case y.CAPTION:{this.insertionMode=H.IN_CAPTION;return}case y.COLGROUP:{this.insertionMode=H.IN_COLUMN_GROUP;return}case y.TABLE:{this.insertionMode=H.IN_TABLE;return}case y.BODY:{this.insertionMode=H.IN_BODY;return}case y.FRAMESET:{this.insertionMode=H.IN_FRAMESET;return}case y.SELECT:{this._resetInsertionModeForSelect(t);return}case y.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case y.HTML:{this.insertionMode=this.headElement?H.AFTER_HEAD:H.BEFORE_HEAD;return}case y.TD:case y.TH:{if(t>0){this.insertionMode=H.IN_CELL;return}break}case y.HEAD:{if(t>0){this.insertionMode=H.IN_HEAD;return}break}}this.insertionMode=H.IN_BODY;}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){let r=this.openElements.tagIDs[n];if(r===y.TEMPLATE)break;if(r===y.TABLE){this.insertionMode=H.IN_SELECT_IN_TABLE;return}}this.insertionMode=H.IN_SELECT;}_isElementCausesFosterParenting(t){return ik.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case y.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===le.HTML)return {parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case y.TABLE:{let r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return {parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t);}_isSpecialElement(t,n){let r=this.treeAdapter.getNamespaceURI(t);return Nw[r].has(n)}onCharacter(t){if(this.skipNextNewLine=false,this.tokenizer.inForeignNode){WL(this,t);return}switch(this.insertionMode){case H.INITIAL:{rs(this,t);break}case H.BEFORE_HTML:{as(this,t);break}case H.BEFORE_HEAD:{os(this,t);break}case H.IN_HEAD:{ss(this,t);break}case H.IN_HEAD_NO_SCRIPT:{ls(this,t);break}case H.AFTER_HEAD:{cs(this,t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:{ok(this,t);break}case H.TEXT:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Bf(this,t);break}case H.IN_TABLE_TEXT:{mk(this,t);break}case H.IN_COLUMN_GROUP:{Vc(this,t);break}case H.AFTER_BODY:{Gc(this,t);break}case H.AFTER_AFTER_BODY:{Wc(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=false,this.tokenizer.inForeignNode){jL(this,t);return}switch(this.insertionMode){case H.INITIAL:{rs(this,t);break}case H.BEFORE_HTML:{as(this,t);break}case H.BEFORE_HEAD:{os(this,t);break}case H.IN_HEAD:{ss(this,t);break}case H.IN_HEAD_NO_SCRIPT:{ls(this,t);break}case H.AFTER_HEAD:{cs(this,t);break}case H.TEXT:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Bf(this,t);break}case H.IN_COLUMN_GROUP:{Vc(this,t);break}case H.AFTER_BODY:{Gc(this,t);break}case H.AFTER_AFTER_BODY:{Wc(this,t);break}}}onComment(t){if(this.skipNextNewLine=false,this.currentNotInHTML){$f(this,t);return}switch(this.insertionMode){case H.INITIAL:case H.BEFORE_HTML:case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_TEMPLATE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{$f(this,t);break}case H.IN_TABLE_TEXT:{is(this,t);break}case H.AFTER_BODY:{vq(this,t);break}case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{Tq(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=false,this.insertionMode){case H.INITIAL:{Sq(this,t);break}case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:{this._err(t,J.misplacedDoctype);break}case H.IN_TABLE_TEXT:{is(this,t);break}}}onStartTag(t){this.skipNextNewLine=false,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,J.nonVoidHtmlElementStartTagWithTrailingSolidus);}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?VL(this,t):this._startTagOutsideForeignContent(t);}_startTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{rs(this,t);break}case H.BEFORE_HTML:{Eq(this,t);break}case H.BEFORE_HEAD:{Aq(this,t);break}case H.IN_HEAD:{On(this,t);break}case H.IN_HEAD_NO_SCRIPT:{Mq(this,t);break}case H.AFTER_HEAD:{Lq(this,t);break}case H.IN_BODY:{jt(this,t);break}case H.IN_TABLE:{Va(this,t);break}case H.IN_TABLE_TEXT:{is(this,t);break}case H.IN_CAPTION:{CL(this,t);break}case H.IN_COLUMN_GROUP:{jf(this,t);break}case H.IN_TABLE_BODY:{Kc(this,t);break}case H.IN_ROW:{Qc(this,t);break}case H.IN_CELL:{qL(this,t);break}case H.IN_SELECT:{hk(this,t);break}case H.IN_SELECT_IN_TABLE:{PL(this,t);break}case H.IN_TEMPLATE:{NL(this,t);break}case H.AFTER_BODY:{OL(this,t);break}case H.IN_FRAMESET:{FL(this,t);break}case H.AFTER_FRAMESET:{$L(this,t);break}case H.AFTER_AFTER_BODY:{zL(this,t);break}case H.AFTER_AFTER_FRAMESET:{UL(this,t);break}}}onEndTag(t){this.skipNextNewLine=false,this.currentToken=t,this.currentNotInHTML?GL(this,t):this._endTagOutsideForeignContent(t);}_endTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{rs(this,t);break}case H.BEFORE_HTML:{_q(this,t);break}case H.BEFORE_HEAD:{Cq(this,t);break}case H.IN_HEAD:{Iq(this,t);break}case H.IN_HEAD_NO_SCRIPT:{qq(this,t);break}case H.AFTER_HEAD:{Pq(this,t);break}case H.IN_BODY:{Xc(this,t);break}case H.TEXT:{bL(this,t);break}case H.IN_TABLE:{us(this,t);break}case H.IN_TABLE_TEXT:{is(this,t);break}case H.IN_CAPTION:{IL(this,t);break}case H.IN_COLUMN_GROUP:{ML(this,t);break}case H.IN_TABLE_BODY:{Hf(this,t);break}case H.IN_ROW:{pk(this,t);break}case H.IN_CELL:{LL(this,t);break}case H.IN_SELECT:{gk(this,t);break}case H.IN_SELECT_IN_TABLE:{RL(this,t);break}case H.IN_TEMPLATE:{DL(this,t);break}case H.AFTER_BODY:{bk(this,t);break}case H.IN_FRAMESET:{BL(this,t);break}case H.AFTER_FRAMESET:{HL(this,t);break}case H.AFTER_AFTER_BODY:{Wc(this,t);break}}}onEof(t){switch(this.insertionMode){case H.INITIAL:{rs(this,t);break}case H.BEFORE_HTML:{as(this,t);break}case H.BEFORE_HEAD:{os(this,t);break}case H.IN_HEAD:{ss(this,t);break}case H.IN_HEAD_NO_SCRIPT:{ls(this,t);break}case H.AFTER_HEAD:{cs(this,t);break}case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{uk(this,t);break}case H.TEXT:{wL(this,t);break}case H.IN_TABLE_TEXT:{is(this,t);break}case H.IN_TEMPLATE:{yk(this,t);break}case H.AFTER_BODY:case H.IN_FRAMESET:case H.AFTER_FRAMESET:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{Uf(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=false,t.chars.charCodeAt(0)===N.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1);}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.TEXT:case H.IN_COLUMN_GROUP:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{this._insertCharacters(t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:case H.AFTER_BODY:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{ak(this,t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Bf(this,t);break}case H.IN_TABLE_TEXT:{dk(this,t);break}}}};function gq(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ck(e,t),n}function yq(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i);}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function bq(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let s=e.activeFormattingElements.getElementEntry(o),l=s&&a>=pq;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=wq(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o);}return r}function wq(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function kq(e,t,n){let r=e.treeAdapter.getTagName(t),i=Di(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else {let a=e.treeAdapter.getNamespaceURI(t);i===y.TEMPLATE&&a===le.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n);}}function xq(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID);}function zf(e,t){for(let n=0;n<fq;n++){let r=gq(e,t);if(!r)break;let i=yq(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;let a=bq(e,i,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),o&&kq(e,o,a),xq(e,i,r);}}function $f(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode);}function vq(e,t){e._appendCommentNode(t,e.openElements.items[0]);}function Tq(e,t){e._appendCommentNode(t,e.document);}function Uf(e,t){if(e.stopped=true,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){let a=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(a);o&&!o.endTag&&e._setEndLocation(a,t);}}}}function Sq(e,t){e._setDocumentType(t);let n=t.forceQuirks?rn.QUIRKS:Xw(t);Yw(t)||e._err(t,J.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=H.BEFORE_HTML;}function rs(e,t){e._err(t,J.missingDoctype,true),e.treeAdapter.setDocumentMode(e.document,rn.QUIRKS),e.insertionMode=H.BEFORE_HTML,e._processToken(t);}function Eq(e,t){t.tagID===y.HTML?(e._insertElement(t,le.HTML),e.insertionMode=H.BEFORE_HEAD):as(e,t);}function _q(e,t){let n=t.tagID;(n===y.HTML||n===y.HEAD||n===y.BODY||n===y.BR)&&as(e,t);}function as(e,t){e._insertFakeRootElement(),e.insertionMode=H.BEFORE_HEAD,e._processToken(t);}function Aq(e,t){switch(t.tagID){case y.HTML:{jt(e,t);break}case y.HEAD:{e._insertElement(t,le.HTML),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD;break}default:os(e,t);}}function Cq(e,t){let n=t.tagID;n===y.HEAD||n===y.BODY||n===y.HTML||n===y.BR?os(e,t):e._err(t,J.endTagWithoutMatchingOpenElement);}function os(e,t){e._insertFakeElement(Y.HEAD,y.HEAD),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD,e._processToken(t);}function On(e,t){switch(t.tagID){case y.HTML:{jt(e,t);break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:{e._appendElement(t,le.HTML),t.ackSelfClosing=true;break}case y.TITLE:{e._switchToTextParsing(t,Ut.RCDATA);break}case y.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ut.RAWTEXT):(e._insertElement(t,le.HTML),e.insertionMode=H.IN_HEAD_NO_SCRIPT);break}case y.NOFRAMES:case y.STYLE:{e._switchToTextParsing(t,Ut.RAWTEXT);break}case y.SCRIPT:{e._switchToTextParsing(t,Ut.SCRIPT_DATA);break}case y.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=false,e.insertionMode=H.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(H.IN_TEMPLATE);break}case y.HEAD:{e._err(t,J.misplacedStartTagForHeadElement);break}default:ss(e,t);}}function Iq(e,t){switch(t.tagID){case y.HEAD:{e.openElements.pop(),e.insertionMode=H.AFTER_HEAD;break}case y.BODY:case y.BR:case y.HTML:{ss(e,t);break}case y.TEMPLATE:{Oi(e,t);break}default:e._err(t,J.endTagWithoutMatchingOpenElement);}}function Oi(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==y.TEMPLATE&&e._err(t,J.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,J.endTagWithoutMatchingOpenElement);}function ss(e,t){e.openElements.pop(),e.insertionMode=H.AFTER_HEAD,e._processToken(t);}function Mq(e,t){switch(t.tagID){case y.HTML:{jt(e,t);break}case y.BASEFONT:case y.BGSOUND:case y.HEAD:case y.LINK:case y.META:case y.NOFRAMES:case y.STYLE:{On(e,t);break}case y.NOSCRIPT:{e._err(t,J.nestedNoscriptInHead);break}default:ls(e,t);}}function qq(e,t){switch(t.tagID){case y.NOSCRIPT:{e.openElements.pop(),e.insertionMode=H.IN_HEAD;break}case y.BR:{ls(e,t);break}default:e._err(t,J.endTagWithoutMatchingOpenElement);}}function ls(e,t){let n=t.type===Ve.EOF?J.openElementsLeftAfterEof:J.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=H.IN_HEAD,e._processToken(t);}function Lq(e,t){switch(t.tagID){case y.HTML:{jt(e,t);break}case y.BODY:{e._insertElement(t,le.HTML),e.framesetOk=false,e.insertionMode=H.IN_BODY;break}case y.FRAMESET:{e._insertElement(t,le.HTML),e.insertionMode=H.IN_FRAMESET;break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{e._err(t,J.abandonedHeadElementChild),e.openElements.push(e.headElement,y.HEAD),On(e,t),e.openElements.remove(e.headElement);break}case y.HEAD:{e._err(t,J.misplacedStartTagForHeadElement);break}default:cs(e,t);}}function Pq(e,t){switch(t.tagID){case y.BODY:case y.HTML:case y.BR:{cs(e,t);break}case y.TEMPLATE:{Oi(e,t);break}default:e._err(t,J.endTagWithoutMatchingOpenElement);}}function cs(e,t){e._insertFakeElement(Y.BODY,y.BODY),e.insertionMode=H.IN_BODY,Yc(e,t);}function Yc(e,t){switch(t.type){case Ve.CHARACTER:{ok(e,t);break}case Ve.WHITESPACE_CHARACTER:{ak(e,t);break}case Ve.COMMENT:{$f(e,t);break}case Ve.START_TAG:{jt(e,t);break}case Ve.END_TAG:{Xc(e,t);break}case Ve.EOF:{uk(e,t);break}}}function ak(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t);}function ok(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=false;}function Rq(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);}function Nq(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=false,e.treeAdapter.adoptAttributes(n,t.attrs));}function Dq(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,le.HTML),e.insertionMode=H.IN_FRAMESET);}function Oq(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML);}function Fq(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&es.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,le.HTML);}function Bq(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.skipNextNewLine=true,e.framesetOk=false;}function $q(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),n||(e.formElement=e.openElements.current));}function Hq(e,t){e.framesetOk=false;let n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){let i=e.openElements.tagIDs[r];if(n===y.LI&&i===y.LI||(n===y.DD||n===y.DT)&&(i===y.DD||i===y.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==y.ADDRESS&&i!==y.DIV&&i!==y.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML);}function zq(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.tokenizer.state=Ut.PLAINTEXT;}function Uq(e,t){e.openElements.hasInScope(y.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.framesetOk=false;}function jq(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y.A);n&&(zf(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function Wq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function Vq(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(y.NOBR)&&(zf(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);}function Gq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=false;}function Yq(e,t){e.treeAdapter.getDocumentMode(e.document)!==rn.QUIRKS&&e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.framesetOk=false,e.insertionMode=H.IN_TABLE;}function sk(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,le.HTML),e.framesetOk=false,t.ackSelfClosing=true;}function lk(e){let t=Oc(e,Tr.TYPE);return t!=null&&t.toLowerCase()===mq}function Xq(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,le.HTML),lk(t)||(e.framesetOk=false),t.ackSelfClosing=true;}function Kq(e,t){e._appendElement(t,le.HTML),t.ackSelfClosing=true;}function Qq(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._appendElement(t,le.HTML),e.framesetOk=false,t.ackSelfClosing=true;}function Zq(e,t){t.tagName=Y.IMG,t.tagID=y.IMG,sk(e,t);}function Jq(e,t){e._insertElement(t,le.HTML),e.skipNextNewLine=true,e.tokenizer.state=Ut.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=false,e.insertionMode=H.TEXT;}function eL(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=false,e._switchToTextParsing(t,Ut.RAWTEXT);}function tL(e,t){e.framesetOk=false,e._switchToTextParsing(t,Ut.RAWTEXT);}function nk(e,t){e._switchToTextParsing(t,Ut.RAWTEXT);}function nL(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.framesetOk=false,e.insertionMode=e.insertionMode===H.IN_TABLE||e.insertionMode===H.IN_CAPTION||e.insertionMode===H.IN_TABLE_BODY||e.insertionMode===H.IN_ROW||e.insertionMode===H.IN_CELL?H.IN_SELECT_IN_TABLE:H.IN_SELECT;}function rL(e,t){e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML);}function iL(e,t){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,le.HTML);}function aL(e,t){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(y.RTC),e._insertElement(t,le.HTML);}function oL(e,t){e._reconstructActiveFormattingElements(),Of(t),jc(t),t.selfClosing?e._appendElement(t,le.MATHML):e._insertElement(t,le.MATHML),t.ackSelfClosing=true;}function sL(e,t){e._reconstructActiveFormattingElements(),Ff(t),jc(t),t.selfClosing?e._appendElement(t,le.SVG):e._insertElement(t,le.SVG),t.ackSelfClosing=true;}function rk(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML);}function jt(e,t){switch(t.tagID){case y.I:case y.S:case y.B:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.SMALL:case y.STRIKE:case y.STRONG:{Wq(e,t);break}case y.A:{jq(e,t);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{Fq(e,t);break}case y.P:case y.DL:case y.OL:case y.UL:case y.DIV:case y.DIR:case y.NAV:case y.MAIN:case y.MENU:case y.ASIDE:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.DETAILS:case y.ADDRESS:case y.ARTICLE:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{Oq(e,t);break}case y.LI:case y.DD:case y.DT:{Hq(e,t);break}case y.BR:case y.IMG:case y.WBR:case y.AREA:case y.EMBED:case y.KEYGEN:{sk(e,t);break}case y.HR:{Qq(e,t);break}case y.RB:case y.RTC:{iL(e,t);break}case y.RT:case y.RP:{aL(e,t);break}case y.PRE:case y.LISTING:{Bq(e,t);break}case y.XMP:{eL(e,t);break}case y.SVG:{sL(e,t);break}case y.HTML:{Rq(e,t);break}case y.BASE:case y.LINK:case y.META:case y.STYLE:case y.TITLE:case y.SCRIPT:case y.BGSOUND:case y.BASEFONT:case y.TEMPLATE:{On(e,t);break}case y.BODY:{Nq(e,t);break}case y.FORM:{$q(e,t);break}case y.NOBR:{Vq(e,t);break}case y.MATH:{oL(e,t);break}case y.TABLE:{Yq(e,t);break}case y.INPUT:{Xq(e,t);break}case y.PARAM:case y.TRACK:case y.SOURCE:{Kq(e,t);break}case y.IMAGE:{Zq(e,t);break}case y.BUTTON:{Uq(e,t);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{Gq(e,t);break}case y.IFRAME:{tL(e,t);break}case y.SELECT:{nL(e,t);break}case y.OPTION:case y.OPTGROUP:{rL(e,t);break}case y.NOEMBED:case y.NOFRAMES:{nk(e,t);break}case y.FRAMESET:{Dq(e,t);break}case y.TEXTAREA:{Jq(e,t);break}case y.NOSCRIPT:{e.options.scriptingEnabled?nk(e,t):rk(e,t);break}case y.PLAINTEXT:{zq(e,t);break}case y.COL:case y.TH:case y.TD:case y.TR:case y.HEAD:case y.FRAME:case y.TBODY:case y.TFOOT:case y.THEAD:case y.CAPTION:case y.COLGROUP:break;default:rk(e,t);}}function lL(e,t){if(e.openElements.hasInScope(y.BODY)&&(e.insertionMode=H.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t);}}function cL(e,t){e.openElements.hasInScope(y.BODY)&&(e.insertionMode=H.AFTER_BODY,bk(e,t));}function uL(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));}function dL(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(y.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(y.FORM):n&&e.openElements.remove(n));}function mL(e){e.openElements.hasInButtonScope(y.P)||e._insertFakeElement(Y.P,y.P),e._closePElement();}function fL(e){e.openElements.hasInListItemScope(y.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(y.LI),e.openElements.popUntilTagNamePopped(y.LI));}function pL(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n));}function hL(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());}function gL(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker());}function yL(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y.BR,y.BR),e.openElements.pop(),e.framesetOk=false;}function ck(e,t){let n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){let a=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==y.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,o))break}}function Xc(e,t){switch(t.tagID){case y.A:case y.B:case y.I:case y.S:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.NOBR:case y.SMALL:case y.STRIKE:case y.STRONG:{zf(e,t);break}case y.P:{mL(e);break}case y.DL:case y.UL:case y.OL:case y.DIR:case y.DIV:case y.NAV:case y.PRE:case y.MAIN:case y.MENU:case y.ASIDE:case y.BUTTON:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.ADDRESS:case y.ARTICLE:case y.DETAILS:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.LISTING:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{uL(e,t);break}case y.LI:{fL(e);break}case y.DD:case y.DT:{pL(e,t);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{hL(e);break}case y.BR:{yL(e);break}case y.BODY:{lL(e,t);break}case y.HTML:{cL(e,t);break}case y.FORM:{dL(e);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{gL(e,t);break}case y.TEMPLATE:{Oi(e,t);break}default:ck(e,t);}}function uk(e,t){e.tmplInsertionModeStack.length>0?yk(e,t):Uf(e,t);}function bL(e,t){var n;t.tagID===y.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode;}function wL(e,t){e._err(t,J.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t);}function Bf(e,t){if(e.openElements.currentTagId!==void 0&&ik.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=false,e.originalInsertionMode=e.insertionMode,e.insertionMode=H.IN_TABLE_TEXT,t.type){case Ve.CHARACTER:{mk(e,t);break}case Ve.WHITESPACE_CHARACTER:{dk(e,t);break}}else ds(e,t);}function kL(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,le.HTML),e.insertionMode=H.IN_CAPTION;}function xL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,le.HTML),e.insertionMode=H.IN_COLUMN_GROUP;}function vL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.COLGROUP,y.COLGROUP),e.insertionMode=H.IN_COLUMN_GROUP,jf(e,t);}function TL(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,le.HTML),e.insertionMode=H.IN_TABLE_BODY;}function SL(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.TBODY,y.TBODY),e.insertionMode=H.IN_TABLE_BODY,Kc(e,t);}function EL(e,t){e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode(),e._processStartTag(t));}function _L(e,t){lk(t)?e._appendElement(t,le.HTML):ds(e,t),t.ackSelfClosing=true;}function AL(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,le.HTML),e.formElement=e.openElements.current,e.openElements.pop());}function Va(e,t){switch(t.tagID){case y.TD:case y.TH:case y.TR:{SL(e,t);break}case y.STYLE:case y.SCRIPT:case y.TEMPLATE:{On(e,t);break}case y.COL:{vL(e,t);break}case y.FORM:{AL(e,t);break}case y.TABLE:{EL(e,t);break}case y.TBODY:case y.TFOOT:case y.THEAD:{TL(e,t);break}case y.INPUT:{_L(e,t);break}case y.CAPTION:{kL(e,t);break}case y.COLGROUP:{xL(e,t);break}default:ds(e,t);}}function us(e,t){switch(t.tagID){case y.TABLE:{e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode());break}case y.TEMPLATE:{Oi(e,t);break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:ds(e,t);}}function ds(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=true,Yc(e,t),e.fosterParentingEnabled=n;}function dk(e,t){e.pendingCharacterTokens.push(t);}function mk(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=true;}function is(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ds(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t);}var fk=new Set([y.CAPTION,y.COL,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]);function CL(e,t){let n=t.tagID;fk.has(n)?e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,Va(e,t)):jt(e,t);}function IL(e,t){let n=t.tagID;switch(n){case y.CAPTION:case y.TABLE:{e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,n===y.TABLE&&us(e,t));break}case y.BODY:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:Xc(e,t);}}function jf(e,t){switch(t.tagID){case y.HTML:{jt(e,t);break}case y.COL:{e._appendElement(t,le.HTML),t.ackSelfClosing=true;break}case y.TEMPLATE:{On(e,t);break}default:Vc(e,t);}}function ML(e,t){switch(t.tagID){case y.COLGROUP:{e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case y.TEMPLATE:{Oi(e,t);break}case y.COL:break;default:Vc(e,t);}}function Vc(e,t){e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE,e._processToken(t));}function Kc(e,t){switch(t.tagID){case y.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,le.HTML),e.insertionMode=H.IN_ROW;break}case y.TH:case y.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Y.TR,y.TR),e.insertionMode=H.IN_ROW,Qc(e,t);break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,Va(e,t));break}default:Va(e,t);}}function Hf(e,t){let n=t.tagID;switch(t.tagID){case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case y.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,us(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:case y.TR:break;default:us(e,t);}}function Qc(e,t){switch(t.tagID){case y.TH:case y.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,le.HTML),e.insertionMode=H.IN_CELL,e.activeFormattingElements.insertMarker();break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,Kc(e,t));break}default:Va(e,t);}}function pk(e,t){switch(t.tagID){case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY);break}case y.TABLE:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,Hf(e,t));break}case y.TBODY:case y.TFOOT:case y.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(y.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,Hf(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:break;default:us(e,t);}}function qL(e,t){let n=t.tagID;fk.has(n)?(e.openElements.hasInTableScope(y.TD)||e.openElements.hasInTableScope(y.TH))&&(e._closeTableCell(),Qc(e,t)):jt(e,t);}function LL(e,t){let n=t.tagID;switch(n){case y.TD:case y.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_ROW);break}case y.TABLE:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),pk(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:break;default:Xc(e,t);}}function hk(e,t){switch(t.tagID){case y.HTML:{jt(e,t);break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._insertElement(t,le.HTML);break}case y.OPTGROUP:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._insertElement(t,le.HTML);break}case y.HR:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._appendElement(t,le.HTML),t.ackSelfClosing=true;break}case y.INPUT:case y.KEYGEN:case y.TEXTAREA:case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),t.tagID!==y.SELECT&&e._processStartTag(t));break}case y.SCRIPT:case y.TEMPLATE:{On(e,t);break}}}function gk(e,t){switch(t.tagID){case y.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===y.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===y.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop();break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop();break}case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode());break}case y.TEMPLATE:{Oi(e,t);break}}}function PL(e,t){let n=t.tagID;n===y.CAPTION||n===y.TABLE||n===y.TBODY||n===y.TFOOT||n===y.THEAD||n===y.TR||n===y.TD||n===y.TH?(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e._processStartTag(t)):hk(e,t);}function RL(e,t){let n=t.tagID;n===y.CAPTION||n===y.TABLE||n===y.TBODY||n===y.TFOOT||n===y.THEAD||n===y.TR||n===y.TD||n===y.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e.onEndTag(t)):gk(e,t);}function NL(e,t){switch(t.tagID){case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{On(e,t);break}case y.CAPTION:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.tmplInsertionModeStack[0]=H.IN_TABLE,e.insertionMode=H.IN_TABLE,Va(e,t);break}case y.COL:{e.tmplInsertionModeStack[0]=H.IN_COLUMN_GROUP,e.insertionMode=H.IN_COLUMN_GROUP,jf(e,t);break}case y.TR:{e.tmplInsertionModeStack[0]=H.IN_TABLE_BODY,e.insertionMode=H.IN_TABLE_BODY,Kc(e,t);break}case y.TD:case y.TH:{e.tmplInsertionModeStack[0]=H.IN_ROW,e.insertionMode=H.IN_ROW,Qc(e,t);break}default:e.tmplInsertionModeStack[0]=H.IN_BODY,e.insertionMode=H.IN_BODY,jt(e,t);}}function DL(e,t){t.tagID===y.TEMPLATE&&Oi(e,t);}function yk(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Uf(e,t);}function OL(e,t){t.tagID===y.HTML?jt(e,t):Gc(e,t);}function bk(e,t){var n;if(t.tagID===y.HTML){if(e.fragmentContext||(e.insertionMode=H.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===y.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t);}}else Gc(e,t);}function Gc(e,t){e.insertionMode=H.IN_BODY,Yc(e,t);}function FL(e,t){switch(t.tagID){case y.HTML:{jt(e,t);break}case y.FRAMESET:{e._insertElement(t,le.HTML);break}case y.FRAME:{e._appendElement(t,le.HTML),t.ackSelfClosing=true;break}case y.NOFRAMES:{On(e,t);break}}}function BL(e,t){t.tagID===y.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==y.FRAMESET&&(e.insertionMode=H.AFTER_FRAMESET));}function $L(e,t){switch(t.tagID){case y.HTML:{jt(e,t);break}case y.NOFRAMES:{On(e,t);break}}}function HL(e,t){t.tagID===y.HTML&&(e.insertionMode=H.AFTER_AFTER_FRAMESET);}function zL(e,t){t.tagID===y.HTML?jt(e,t):Wc(e,t);}function Wc(e,t){e.insertionMode=H.IN_BODY,Yc(e,t);}function UL(e,t){switch(t.tagID){case y.HTML:{jt(e,t);break}case y.NOFRAMES:{On(e,t);break}}}function jL(e,t){t.chars=at,e._insertCharacters(t);}function WL(e,t){e._insertCharacters(t),e.framesetOk=false;}function wk(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==le.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop();}function VL(e,t){if(Qw(t))wk(e),e._startTagOutsideForeignContent(t);else {let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===le.MATHML?Of(t):r===le.SVG&&(Zw(t),Ff(t)),jc(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=true;}}function GL(e,t){if(t.tagID===y.P||t.tagID===y.BR){wk(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===le.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}new Set([Y.AREA,Y.BASE,Y.BASEFONT,Y.BGSOUND,Y.BR,Y.COL,Y.EMBED,Y.FRAME,Y.HR,Y.IMG,Y.INPUT,Y.KEYGEN,Y.LINK,Y.META,Y.PARAM,Y.SOURCE,Y.TRACK,Y.WBR]);function kk(e,t){return Wa.parse(e,t)}function xk(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);let r=Wa.getFragmentParser(e,n);return r.tokenizer.write(t,true),r.getFragment()}function Yr(e){return !e||typeof e!="object"?"":"position"in e||"type"in e?vk(e.position):"start"in e||"end"in e?vk(e):"line"in e||"column"in e?Wf(e):""}function Wf(e){return Tk(e&&e.line)+":"+Tk(e&&e.column)}function vk(e){return Wf(e&&e.start)+"-"+Wf(e&&e.end)}function Tk(e){return e&&typeof e=="number"?e:1}var vt=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=false;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=true,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){let l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1));}if(!a.place&&a.ancestors&&a.ancestors){let l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position);}let s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Yr(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0;}};vt.prototype.file="";vt.prototype.name="";vt.prototype.reason="";vt.prototype.message="";vt.prototype.stack="";vt.prototype.column=void 0;vt.prototype.line=void 0;vt.prototype.ancestors=void 0;vt.prototype.cause=void 0;vt.prototype.fatal=void 0;vt.prototype.place=void 0;vt.prototype.ruleId=void 0;vt.prototype.source=void 0;var Fn={basename:YL,dirname:XL,extname:KL,join:QL,sep:"/"};function YL(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ms(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=true,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return "";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=true,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function XL(e){if(ms(e),e.length===0)return ".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=true);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function KL(e){ms(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=true,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1);}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function QL(...e){let t=-1,n;for(;++t<e.length;)ms(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ZL(n)}function ZL(e){ms(e);let t=e.codePointAt(0)===47,n=JL(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function JL(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else {if(s===47)break;s=47;}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2);}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0;}else s===46&&a>-1?a++:a=-1;}return n}function ms(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var Sk={cwd:eP};function eP(){return "/"}function Ga(e){return !!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ek(e){if(typeof e=="string")e=new URL(e);else if(!Ga(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return tP(e)}function tP(e){if(e.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let r=t.codePointAt(n+2);if(r===70||r===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var Vf=["history","path","basename","stem","extname","dirname"],Xr=class{constructor(t){let n;t?Ga(t)?n={path:t}:typeof t=="string"||nP(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Sk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Vf.length;){let a=Vf[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a]);}let i;for(i in n)Vf.includes(i)||(this[i]=n[i]);}get basename(){return typeof this.path=="string"?Fn.basename(this.path):void 0}set basename(t){Yf(t,"basename"),Gf(t,"basename"),this.path=Fn.join(this.dirname||"",t);}get dirname(){return typeof this.path=="string"?Fn.dirname(this.path):void 0}set dirname(t){_k(this.basename,"dirname"),this.path=Fn.join(t||"",this.basename);}get extname(){return typeof this.path=="string"?Fn.extname(this.path):void 0}set extname(t){if(Gf(t,"extname"),_k(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fn.join(this.dirname,this.stem+(t||""));}get path(){return this.history[this.history.length-1]}set path(t){Ga(t)&&(t=Ek(t)),Yf(t,"path"),this.path!==t&&this.history.push(t);}get stem(){return typeof this.path=="string"?Fn.basename(this.path,this.extname):void 0}set stem(t){Yf(t,"stem"),Gf(t,"stem"),this.path=Fn.join(this.dirname||"",t+(this.extname||""));}fail(t,n,r){let i=this.message(t,n,r);throw i.fatal=true,i}info(t,n,r){let i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){let i=new vt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=false,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Gf(e,t){if(e&&e.includes(Fn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fn.sep+"`")}function Yf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _k(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function nP(e){return !!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var Ak={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:false},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:false},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:false},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:false},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:false},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:false},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:false},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:false},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:false},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:false},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:false},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}};var rP="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",iP=/-[a-z]/g,aP=/%c(?:([-+])(\d+))?/g,oP=/%x/g,sP={2:true,1:false,0:null},lP={};function fs(e,t){let n=t||lP,r=n.onerror,i=e instanceof Xr?e:new Xr(e),a=n.fragment?xk:kk,o=String(i),s=a(o,{sourceCodeLocationInfo:true,onParseError:n.onerror?l:null,scriptingEnabled:false});return Lf(s,{file:i,space:n.space,verbose:n.verbose});function l(c){let u=c.code,d=cP(u),m=n[d],f=m??true,p=typeof f=="number"?f:f?1:0;if(p){let h=Ak[d];let b=new vt(g(h.reason),{place:{start:{line:c.startLine,column:c.startCol,offset:c.startOffset},end:{line:c.endLine,column:c.endCol,offset:c.endOffset}},ruleId:u,source:"hast-util-from-html"});i.path&&(b.file=i.path,b.name=i.path+":"+b.name),b.fatal=sP[p],b.note=g(h.description),b.url=h.url===false?void 0:rP+u,r(b);}function g(h){return h.replace(aP,b).replace(oP,w);function b(x,T,S){let v=(S?Number.parseInt(S,10):0)*(T==="-"?-1:1),E=o.charAt(c.startOffset+v);return dP(E)}function w(){return mP(o.charCodeAt(c.startOffset))}}}}function cP(e){return e.replace(iP,uP)}function uP(e){return e.charAt(1).toUpperCase()}function dP(e){return e==="`"?"` ` `":e}function mP(e){return "0x"+e.toString(16).toUpperCase()}var pP=new Set(["mp4","m4v","mov","webm","ogv"]),hP=new Set(["mp3","m4a","aac","wav","ogg","oga","opus","flac"]),gP=new Set(["webm","mp4"]);function _r(e){let t=e.split(/[?#]/,1)[0]??"",n=t.slice(t.lastIndexOf("/")+1),r=n.lastIndexOf(".");if(r<=0)return null;let i=n.slice(r+1).toLowerCase();return hP.has(i)||gP.has(i)&&/^(?:\.\/)?audio\//i.test(t)?"audio":pP.has(i)?"video":null}var Ck={className:"class",htmlFor:"for",httpEquiv:"http-equiv",acceptCharset:"accept-charset"},yP=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function bP(e){return Ck[e]?Ck[e]:e.length>4&&e.startsWith("data")&&e[4]>="A"&&e[4]<="Z"?"data-"+e.slice(4).replace(/[A-Z]/g,t=>"-"+t.toLowerCase()).replace(/^-/,""):e.length>4&&e.startsWith("aria")&&e[4]>="A"&&e[4]<="Z"?"aria-"+e.slice(4).replace(/[A-Z]/g,t=>"-"+t.toLowerCase()).replace(/^-/,""):e.toLowerCase()}function wP(e){let t={};for(let[n,r]of Object.entries(e)){if(r===false||r===void 0||r===null)continue;let i=bP(n);r===true?t[i]="":Array.isArray(r)?t[i]=r.join(" "):t[i]=String(r);}return t}function Fk(e){let t=[];for(let n of e){let r=kP(n);r&&t.push(r);}return t}function kP(e){switch(e.type){case "element":{let t=e.tagName,n=e.properties??{},r=e.children??[];return {type:"htmlElement",tagName:t,attributes:wP(n),children:Fk(r),selfClosing:yP.has(t)&&r.length===0}}case "text":return {type:"htmlText",value:e.value};case "comment":return {type:"htmlComment",value:e.value};case "doctype":return null;default:return null}}function Qr(e){if(!e||!e.trim())return [];try{let t=fs(e,{fragment:!0});return Fk(t.children)}catch{return [{type:"htmlText",value:e}]}}function xP(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function vP(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var TP=new Set(["script","style"]);function Bk(e,t=false){switch(e.type){case "htmlElement":{let n=Object.entries(e.attributes).map(([o,s])=>s===""?o:`${o}="${xP(s)}"`).join(" "),r=n?`<${e.tagName} ${n}>`:`<${e.tagName}>`;if(e.selfClosing)return r;let i=TP.has(e.tagName.toLowerCase()),a=e.children.map(o=>Bk(o,i)).join("");return `${r}${a}</${e.tagName}>`}case "htmlText":return t?e.value:vP(e.value);case "htmlComment":return `<!--${e.value}-->`}}function $i(e){return e.map(t=>Bk(t)).join("")}function Wt(e){return "children"in e&&Array.isArray(e.children)?e.children:[]}function Zr(e,t,n){if(t(e,n)===true)return;let i=Wt(e);for(let a of i)Zr(a,t,e);}function Bn(e,t){let n=[];return Zr(e,r=>{r.type===t&&n.push(r);}),n}function $k(e){return /^<br\s*\/?>$/i.test(e.trim())}function Ie(e){if("value"in e&&typeof e.value=="string")return e.value;if(e.type==="break"||e.type==="htmlInline"&&$k(e.rawHtml))return `
3
3
  `;let t=Wt(e),n=e.type==="list"||e.type==="listItem"||e.type==="table"?`
4
4
  `:e.type==="tableRow"?" ":"";return t.map(Ie).join(n)}var Hk=new Set(["true","True","TRUE"]),zk=new Set(["false","False","FALSE"]),Uk=new Set(["null","Null","NULL","~"]),SP=/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:e[+-][0-9]+)?$/;function EP(e){return SP.test(e)&&String(Number(e))===e}function jk(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});}function Kr(e){return e.length-e.trimStart().length}function Wk(e){let t=e.trim();return t===""||t.startsWith("#")}function ys(e){let t=e.i;for(;t<e.lines.length&&Wk(e.lines[t]);)t++;return t}function eu(e){return e==="-"||e.startsWith("- ")}function Vk(e){let t=e[0];if(t==='"'){for(let n=1;n<e.length;n++){if(e[n]==="\\"){n++;continue}if(e[n]!=='"')continue;let r=e.slice(0,n+1);try{return {value:JSON.parse(r),rest:e.slice(n+1)}}catch{return {value:r.slice(1,-1),rest:e.slice(n+1)}}}return null}if(t==="'"){let n="";for(let r=1;r<e.length;r++){if(e[r]!=="'"){n+=e[r];continue}if(e[r+1]==="'"){n+="'",r++;continue}return {value:n,rest:e.slice(r+1)}}return null}return null}function tu(e){if(e.startsWith("{")||e.startsWith("["))return null;if(e.startsWith('"')||e.startsWith("'")){let n=Vk(e);if(!n)return null;let r=n.rest;return r===":"||r.startsWith(": ")||r.startsWith(": ")?{key:n.value,rest:r.slice(1).trim()}:null}for(let n=0;n<e.length;n++){if(e[n]!==":")continue;let r=e[n+1];if(r!==void 0&&r!==" "&&r!==" ")continue;let i=e.slice(0,n).trim();return i?{key:i,rest:e.slice(n+1).trim()}:null}let t=e.indexOf(":");if(t>0&&e[t+1]!=="/"){let n=e.slice(0,t).trim();if(n&&!n.includes(" "))return {key:n,rest:e.slice(t+1).trim()}}return null}function _P(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===""){t.push(`
@@ -760,12 +760,12 @@ ${fA}
760
760
  `):[];if(c.length===0){l(f=>f.size===0?f:new Map);return}let u=false,d=new Map,m=()=>{u||l(new Map(d));};for(let f of c)BG(f,i,t,a).then(p=>{if(u||!p)return;let g=LC.get(p);if(g!=null){d.set(f,g),m();return}$G(p).then(h=>{u||h==null||(LC.set(p,h),d.set(f,h),m());});});return ()=>{u=true;}},[o,i,t,a]),s}function Se(e,t){return typeof e=="number"?e:e.endsWith("%")?parseFloat(e)/100*t:parseFloat(e)}function Dt(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 RC({layer:e,basePath:t,viewport:n,blockTime:r,animationsEnabled:i=true,isStatic:a=false}){let{content:o,position:s,animation:l}=e,c=Se(s.x,n.width),u=Se(s.y,n.height),d=s.width?Se(s.width,n.width):n.width,m=s.height?Se(s.height,n.height):n.height,f=Dt(s.anchor,d,m),p=c+f.x,g=u+f.y,h=Tt(o.src,t,{staticSvg:a}),b=gt(l,r),w=r0(o.treatment,o.blur),x=HG(o.fit),T=o.fit==="cover",S=l&&zG.has(l.type);if(T&&jG(n,d,m,i,l)){let E=WG(l),I=VG(S?l:void 0),_=S?{className:"",style:{}}:b;return k("g",{className:`block-layer block-layer--image ${_.className}`,style:_.style,"data-layer-id":e.id,"data-image-framing":"portrait-pan",children:k("foreignObject",{x:p,y:g,width:d,height:m,children:k("div",{style:{width:`${d}px`,height:`${m}px`,overflow:"hidden"},children:k("img",{src:h,alt:o.alt||"",className:E,style:{width:`${d}px`,height:`${m}px`,objectFit:"cover",objectPosition:"center",display:"block",pointerEvents:"none",...w?{filter:w}:{},...o.blur&&o.blur>0?{transform:"scale(1.06)"}:{},...I}})})})})}if(T&&S&&l){let E=GG(l),I=gt(E,r);return k("g",{className:"block-layer block-layer--image","data-layer-id":e.id,children:k("foreignObject",{x:p,y:g,width:d,height:m,children:k("div",{style:{width:`${d}px`,height:`${m}px`,overflow:"hidden"},children:k("img",{src:h,alt:o.alt||"",className:I.className,style:{width:`${d}px`,height:`${m}px`,objectFit:"cover",objectPosition:"center",display:"block",pointerEvents:"none",transformOrigin:"center center",...w?{filter:w}:{},...I.style}})})})})}return T?k("g",{className:`block-layer block-layer--image ${b.className}`,style:b.style,"data-layer-id":e.id,children:k("foreignObject",{x:p,y:g,width:d,height:m,children:k("img",{src:h,alt:o.alt||"",style:{width:`${d}px`,height:`${m}px`,objectFit:"cover",objectPosition:"center",display:"block",pointerEvents:"none",...w?{filter:w}:{},...o.blur&&o.blur>0?{transform:"scale(1.06)"}:{}}})})}):k("g",{className:`block-layer block-layer--image ${b.className}`,style:b.style,"data-layer-id":e.id,children:k("image",{href:h,x:p,y:g,width:d,height:m,preserveAspectRatio:x,style:{pointerEvents:"none",...w?{filter:w}:{}}})})}function HG(e){switch(e){case "cover":return "xMidYMid slice";case "fill":return "none";default:return "xMidYMid meet"}}var zG=new Set(["panLeft","panRight","slowZoom","zoomIn","zoomOut"]),UG=.83;function jG(e,t,n,r,i){return !r||i?.type==="none"||e.width/e.height>=UG?false:t>=e.width*.7&&n>=e.height*.7}function WG(e){return e?.type==="panRight"||e?.type==="slowZoom"&&e.panDirection==="right"?"squisq-image--portrait-pan-left":"squisq-image--portrait-pan-right"}function VG(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 GG(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 Po(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 Ro(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 YG(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 XG(e){return `squisq-grad-${e}`}function No(e,t,n,r){if(r){let i=`squisq-pattern-${e}`;return {fill:`url(#${i})`,def:KG(i,r)}}if(n){let i=XG(e),a=YG(n.angle);return {fill:`url(#${i})`,def:k("linearGradient",{id:i,x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2,children:[k("stop",{offset:"0%",stopColor:n.from}),k("stop",{offset:"100%",stopColor:n.to})]})}}return {fill:t,def:null}}function KG(e,t){let n=t.size??24,r=t.opacity??1,i=t.color;return k("pattern",{id:e,width:n,height:n,patternUnits:"userSpaceOnUse",patternTransform:t.kind==="diagonal"?"rotate(45)":void 0,children:[t.kind==="dots"&&k("circle",{cx:n/2,cy:n/2,r:Math.max(1,n/12),fill:i,opacity:r}),t.kind==="grid"&&k("path",{d:`M ${n} 0 L 0 0 0 ${n}`,fill:"none",stroke:i,strokeWidth:1,opacity:r}),t.kind==="diagonal"&&k("line",{x1:0,y1:0,x2:0,y2:n,stroke:i,strokeWidth:1,opacity:r})]})}function NC(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:k("filter",{id:n,x:"0%",y:"0%",width:"100%",height:"100%",children:[k("feTurbulence",{type:"fractalNoise",baseFrequency:t.baseFrequency??.8,numOctaves:2,stitchTiles:"stitch",result:"noise"}),k("feColorMatrix",{in:"noise",type:"saturate",values:"0",result:"mono"}),k("feComponentTransfer",{in:"mono",result:"faded",children:k("feFuncA",{type:"linear",slope:r,intercept:0})}),k("feComposite",{in:"faded",in2:"SourceGraphic",operator:"in"})]})}}function DC(e){return e.layer.content.html?.trim()?k(tY,{...e}):jy(e.layer.content.text??"")?k(JG,{...e}):k(eY,{...e})}function QG(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ZG(e){return Vy(e).map(t=>t.type==="icon"?`<i class="${Gy(t.family,t.name)}" aria-hidden="true"></i>`:QG(t.text).replace(/\n/g,"<br>")).join("")}function JG({layer:e,viewport:t,blockTime:n,textScale:r=1}){let{content:i,position:a,animation:o}=e,{text:s,style:l}=i,c=Se(a.x,t.width),u=Se(a.y,t.height),d=a.width!=null?Se(a.width,t.width):t.width,m=a.anchor??"top-left",f=l.lineHeight||1.4,p=l.fontSize*f,g=l.padding??0,b=Wy(s??"").split(`
761
761
  `).flatMap(_=>FC(_,l.fontSize,d)),w=a.height!=null?Se(a.height,t.height):Math.max(p,b.length*p)+g*2,x=c-Si(m,d,"x"),T=u-Si(m,w,"y"),S=gt(o,n),v=he(()=>ZG(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:g,color:l.color,fontSize:`${l.fontSize*r}px`,fontFamily:l.fontFamily||Ds,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)"}:{},...S.style};return k("g",{className:`block-layer block-layer--text ${S.className}`,style:S.style,"data-layer-id":e.id,children:k("foreignObject",{x,y:T,width:d,height:w,style:{overflow:"visible"},children:k("div",{xmlns:"http://www.w3.org/1999/xhtml","data-squisq-text-fit":"html","data-squisq-base-font-size":l.fontSize,style:I,children:k("div",{"data-squisq-text-content":"true",style:{width:"100%",whiteSpace:"pre-wrap",wordBreak:"break-word",...OC(l.baselineShift)},dangerouslySetInnerHTML:{__html:v}})})})})}function eY({layer:e,viewport:t,blockTime:n,textScale:r=1}){let i=Po(tn(),e.id),{content:a,position:o,animation:s}=e,{text:l,style:c}=a,u=Se(o.x,t.width),d=Se(o.y,t.height),m=o.width!=null?Se(o.width,t.width):void 0,f=o.height!=null?Se(o.height,t.height):void 0,p=m,g=iY(c.textAlign,o.anchor),h=aY(c.verticalAlign,o.anchor),b=o.anchor??"top-left",w=oY(u,m,b,g),x=sY(d,f,b,h),T=m??(g==="middle"?Math.max(0,Math.min(w,t.width-w)*2):g==="end"?Math.max(0,w):Math.max(0,t.width-w)),S=f??(h==="middle"?Math.max(0,Math.min(x,t.height-x)*2):h==="text-after-edge"?Math.max(0,x):Math.max(0,t.height-x)),v=gt(s,n),E=s?.type==="countUp",I=s?.type==="wordReveal",A=((E&&s?Mh(l??"",s,n):l)??"").split(`
762
762
  `),P=p?A.reduce((G,ae)=>G.concat(FC(ae,c.fontSize,p)),[]):A;if(c.maxLines&&P.length>c.maxLines){P=P.slice(0,c.maxLines);let G=P[P.length-1];P[P.length-1]=G.replace(/\s*$/,"")+"...";}let D=c.lineHeight||1.4,M=c.fontSize*D,B=c.shrinkToFit===true,z=B&&h==="middle"?-((P.length-1)/2)*M:0,$=(c.baselineShift??0)*c.fontSize,O=we(null),[R,C]=ye(null),U=P.join(`
763
- `);$t(()=>{if(!B){C(null);return}let G=O.current;if(!G||typeof G.getBBox!="function")return;let ae=()=>{try{let W=G.getBBox();if(W.width<=0||W.height<=0)return;let Q=m??t.width,te=f??t.height,V=Math.min(1,Q/W.width,te/W.height),ne=h==="middle"?W.y+W.height/2:h==="text-after-edge"?W.y+W.height:W.y;C(V<.995?{scale:V,cx:w,cy:ne}:null);}catch{}};ae();let ke=G.ownerDocument?.fonts;if(ke&&ke.status!=="loaded"){let W=false;return ke.ready.then(()=>{W||ae();}),()=>{W=true;}}},[B,U,w,h,m,f,t.width,t.height,c.fontSize,c.fontFamily,c.fontWeight]);let ee=R?`translate(${R.cx} ${R.cy}) scale(${R.scale}) translate(${-R.cx} ${-R.cy})`:void 0,q={fontSize:`${c.fontSize}px`,fontFamily:c.fontFamily||Ds,fontWeight:c.fontWeight||"normal",fontStyle:c.fontStyle||"normal",fill:c.color,...v.style},j=c.shadow?`shadow-${i}`:void 0,X=0,K=G=>!I||!s||!G?G||"\xA0":G.split(" ").map((ke,W)=>{let Q=n0(s,X++);return k(Fe,{children:[W>0?" ":null,k("tspan",{className:"anim-word",style:{"--anim-delay":`${Q}s`},children:ke})]},W)});return k("g",{className:`block-layer block-layer--text ${v.className}`,style:v.style,"data-layer-id":e.id,children:[c.shadow&&k("defs",{children:k("filter",{id:j,x:"-20%",y:"-20%",width:"140%",height:"140%",children:k("feDropShadow",{dx:"0",dy:"2",stdDeviation:"3",floodColor:"rgba(0,0,0,0.7)"})})}),k(rY,{layerId:i,style:c,box:m!=null&&f!=null?{x:u-Si(b,m,"x"),y:d-Si(b,f,"y"),width:m,height:f}:{x:w-(c.padding||16),y:x-c.fontSize-(c.padding||16),width:lY(P,c)+(c.padding||16)*2,height:P.length*M+(c.padding||16)*2}}),k("g",{"data-squisq-text-fit":"svg","data-squisq-fit-width":T,"data-squisq-fit-height":S,style:{transform:`scale(${r})`,transformOrigin:`${w}px ${x}px`,transformBox:"view-box"},children:k("text",{ref:O,"data-squisq-text-content":"true",x:w,y:x,textAnchor:g,dominantBaseline:h,style:q,filter:j?`url(#${j})`:void 0,transform:ee,children:P.map((G,ae)=>k("tspan",{x:w,dy:ae===0?z+$:M,children:[K(G),ae<P.length-1&&k("tspan",{style:{fontSize:0},children:" "})]},ae))})})]})}function tY({layer:e,viewport:t,blockTime:n,textScale:r=1}){let{content:i,position:a,animation:o}=e,{html:s,style:l}=i,c=Se(a.x,t.width),u=Se(a.y,t.height),d=a.width!=null?Se(a.width,t.width):t.width,m=a.height!=null?Se(a.height,t.height):l.fontSize*(l.lineHeight||1.4)*2,f=a.anchor??"top-left",p=c-Si(f,d,"x"),g=u-Si(f,m,"y"),h=he(()=>$i(Ka(Qr(s??""))),[s]),b=gt(o,n),w=l.verticalAlign==="middle"?"center":l.verticalAlign==="bottom"?"flex-end":"flex-start",x=!!(l.borderColor&&(l.borderWidth??0)>0),T={boxSizing:"border-box",width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:w,padding:l.padding??0,color:l.color,fontSize:`${l.fontSize*r}px`,fontFamily:l.fontFamily||Ds,fontWeight:l.fontWeight||"normal",fontStyle:l.fontStyle||"normal",lineHeight:l.lineHeight||1.4,textAlign:l.textAlign??"left",overflow:"hidden",...l.background?{background:l.background}:{},...x?{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},S=`squisq-rich-text-${nY(e.id)}`,v=l.textAlign==="center"||l.textAlign==="right"?"inside":"outside",E=_=>{_.target?.closest?.("[data-squisq-table-scroll]")&&_.stopPropagation();},I=`.${S}{margin:0}.${S} p{margin:0 0 .4em}.${S} h1,.${S} h2,.${S} h3,.${S} h4,.${S} h5,.${S} h6{margin:0 0 .3em;line-height:1.2}.${S} ul,.${S} ol{margin:0 0 .7em;padding-left:1.2em;list-style-position:${v}}.${S} li{margin:0}.${S} li[data-squisq-build-item]{list-style:none}.${S} [data-squisq-build-row]{display:flex;gap:.35em}.${S} [data-squisq-build-row]>span{flex:0 0 1.4em;text-align:right;margin-left:-1.75em}.${S} [data-squisq-build-row]>div{min-width:0;flex:1}.${S} li>p{display:inline;margin:0}.${S} [data-squisq-table-scroll]{width:100%;max-height:20em;margin:.35em 0;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}.${S} table{width:100%;min-width:48em;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:.76em;line-height:1.2}.${S} th,.${S} 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}.${S} 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}.${S} tbody tr:nth-child(even){background:rgba(127,127,127,.07);background:color-mix(in srgb,currentColor 5%,transparent)}.${S} *:first-child{margin-top:0}.${S} *:last-child{margin-bottom:0}.${S} a{color:inherit;text-decoration:underline}`;return k("g",{className:`block-layer block-layer--text ${b.className}`,style:b.style,"data-layer-id":e.id,children:k("foreignObject",{x:p,y:g,width:d,height:m,color:l.color,style:{color:l.color},children:k("div",{xmlns:"http://www.w3.org/1999/xhtml","data-squisq-text-fit":"html","data-squisq-base-font-size":l.fontSize,style:T,onPointerDown:E,onClick:E,onWheel:E,onKeyDown:E,children:[k("style",{children:I}),k("div",{"data-squisq-text-content":"true",className:S,style:{width:"100%",color:l.color,whiteSpace:"pre-wrap",wordBreak:"break-word",...OC(l.baselineShift)},dangerouslySetInnerHTML:{__html:h}})]})})})}function nY(e){return e.replace(/[^a-zA-Z0-9_-]/g,"-")}function rY({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}=No(e,t.background,t.backgroundGradient),s=Ro(t.borderStyle,t.borderWidth);return k(Fe,{children:[o&&k("defs",{children:o}),k("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 iY(e,t){return e==="center"?"middle":e==="right"?"end":e==="left"?"start":t?.includes("right")?"end":t==="center"?"middle":"start"}function OC(e){return e?{position:"relative",top:`${e}em`}:{}}function aY(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 oY(e,t,n,r){if(t==null)return e;let i=e-Si(n,t,"x");return r==="middle"?i+t/2:r==="end"?i+t:i}function sY(e,t,n,r){if(t==null)return e;let i=e-Si(n,t,"y");return r==="middle"?i+t/2:r==="text-after-edge"?i+t:i}function Si(e,t,n){return e==="center"?t/2:n==="x"?e.includes("right")?t:0:e.includes("bottom")?t:0}function lY(e,t){return Math.max(...e.map(r=>r.length))*t.fontSize*.55}function FC(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 cY=1;function BC({layer:e,viewport:t,blockTime:n}){let{content:r,position:i,animation:a}=e,o=Po(tn(),e.id),s=Se(i.x,t.width),l=Se(i.y,t.height),c=i.width?Se(i.width,t.width):100,u=i.height?Se(i.height,t.height):100,d=Dt(i.anchor,c,u),m=s+d.x,f=l+d.y,g=r.shape==="rect"&&m===0&&f===0&&c===t.width&&u===t.height&&!r.stroke&&!r.borderRadius?cY:0,h=m-g,b=f-g,w=c+g*2,x=u+g*2,T=gt(a,n),S=r.fill||"none",v=typeof S=="string"&&S.includes("gradient("),E=r.shape==="rect"?[r.backdropBlur?`blur(${r.backdropBlur}px)`:"",r.backdropContrast!==void 0?`contrast(${r.backdropContrast})`:""].filter(Boolean).join(" "):"";if(r.shape==="rect"&&(v&&!r.gradient||E))return k("g",{className:`block-layer block-layer--shape ${T.className}`,style:T.style,"data-layer-id":e.id,pointerEvents:"none",children:k("foreignObject",{x:h,y:b,width:w,height:x,children:k("div",{style:{width:`${w}px`,height:`${x}px`,background:S,borderRadius:r.borderRadius?`${r.borderRadius}px`:void 0,...E?{backdropFilter:E,WebkitBackdropFilter:E}:{},pointerEvents:"none"}})})});let{fill:I,def:_}=No(o,S,r.gradient,r.pattern),{filterAttr:A,def:P}=NC(o,r.filter),D=Ro(r.borderStyle,r.strokeWidth),M={fill:I,fillOpacity:r.fillOpacity,stroke:r.stroke,strokeWidth:r.strokeWidth,strokeDasharray:D,...A?{filter:A}:{}};return k("g",{className:`block-layer block-layer--shape ${T.className}`,style:T.style,"data-layer-id":e.id,pointerEvents:"none",children:[(_||P)&&k("defs",{children:[_,P]}),r.shape==="rect"&&k("rect",{x:h,y:b,width:w,height:x,rx:r.borderRadius,ry:r.borderRadius,...M}),r.shape==="circle"&&k("circle",{cx:m+c/2,cy:f+u/2,r:Math.min(c,u)/2,...M}),r.shape==="line"&&k("line",{x1:m,y1:f,x2:m+c,y2:f+u,stroke:r.stroke||"#ffffff",strokeWidth:r.strokeWidth||2,strokeDasharray:D})]})}function uY(e,t){let{content:n,position:r}=e;if(!n.shapeKind)return n.d;let i=r.width?Se(r.width,t.width):0,a=r.height?Se(r.height,t.height):0,o=Se(r.x,t.width),s=Se(r.y,t.height),l=Dt(r.anchor,i,a);return Ji(n.shapeKind,o+l.x,s+l.y,i,a)??n.d}function dY(e){return e.arrow}function $C(e,t,n){return e||(t==="both"||t===n?"arrow":"none")}function zC({layer:e,viewport:t,blockTime:n}){let{content:r,animation:i,id:a}=e,o=Po(tn(),a),s=uY(e,t),l=r.stroke??"#1e293b",c=r.strokeWidth??2,{fill:u,def:d}=No(o,r.fill??"none",r.gradient),m=r.borderStyle?Ro(r.borderStyle,c):r.dasharray,f=gt(i,n),p=`marker-start-${o}`,g=`marker-end-${o}`,h=dY(r),b=Ps($C(r.startMarker,h,"start"),"start"),w=Ps($C(r.endMarker,h,"end"),"end"),x=b?`url(#${p})`:void 0,T=w?`url(#${g})`:void 0,S=i?.type==="drawOn";return k("g",{className:`block-layer block-layer--path ${f.className}`,style:f.style,"data-layer-id":a,children:[k("defs",{children:[d,w&&k(HC,{id:g,dir:"end",d:w.d,filled:w.filled,stroke:l}),b&&k(HC,{id:p,dir:"start",d:b.d,filled:b.filled,stroke:l})]}),k("path",{d:s,stroke:l,strokeWidth:c,fill:u,fillOpacity:r.fillOpacity,strokeDasharray:S?void 0:m,pathLength:S?1:void 0,"data-squisq-draw":S?"stroke":void 0,markerStart:S?void 0:x,markerEnd:S?void 0:T}),S&&(x||T)&&k("path",{d:s,stroke:l,strokeWidth:c,strokeOpacity:0,fill:"none","data-squisq-draw":"markers",markerStart:x,markerEnd:T})]})}function HC({id:e,dir:t,d:n,filled:r,stroke:i}){return k("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:k("path",{d:n,fill:r?i:"none",stroke:r?"none":i,strokeWidth:r?void 0:1.5})})}var mY={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 C0(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 I0(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 fY(e,t,n,r,i,a=256){let o=C0(e,t,n),s=I0(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,p=[];for(let g=0;g<c;g++)for(let h=0;h<l;h++){let b=u+h,w=d+g,x=m+(b-o.x)*a,T=f+(w-o.y)*a;p.push({x:b,y:w,screenX:x,screenY:T});}return p}function UC(e,t,n,r){return e.url.replace("{z}",String(r)).replace("{x}",String(t)).replace("{y}",String(n))}async function pY(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 jC(e){let{center:t,zoom:n,style:r,width:i,height:a,markers:o=[],showAttribution:s=true}=e,l=mY[r],c=l.tileSize||256,u=Math.min(n,l.maxZoom),d=UC(l,0,0,u);if(!vn(d,e.policy))throw new pr("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 g=fY(t.lat,t.lng,u,i,a,c).map(async h=>{let b=UC(l,h.x,h.y,u);try{let w=await pY(b);f.drawImage(w,h.screenX,h.screenY,c,c);}catch(w){console.warn(`Tile load failed: ${b}`,w);}});await Promise.all(g);for(let h of o)hY(f,h,t,u,i,a,c);return s&&yY(f,l.attribution,i,a),m.toDataURL("image/png")}function hY(e,t,n,r,i,a,o){let s=C0(n.lat,n.lng,r),l=C0(t.lat,t.lng,r),c=I0(n.lat,n.lng,r,o),u=I0(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,p=a/2+m,g=t.color||"#ef4444",h=t.icon||"pin";e.save(),h==="pin"?(e.fillStyle=g,e.beginPath(),e.arc(f,p-12,8,Math.PI,0,false),e.lineTo(f,p),e.closePath(),e.fill(),e.fillStyle="#ffffff",e.beginPath(),e.arc(f,p-12,3,0,Math.PI*2),e.fill()):h==="circle"?(e.fillStyle=g,e.beginPath(),e.arc(f,p,8,0,Math.PI*2),e.fill(),e.strokeStyle="#ffffff",e.lineWidth=2,e.stroke()):h==="star"&&(e.fillStyle=g,gY(e,f,p,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,p+20)),e.restore();}function gY(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 yY(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 WC({layer:e,basePath:t,viewport:n,blockTime:r}){let{content:i,position:a,animation:o}=e,s=`map-clip-${tn().replace(/:/g,"")}-${e.id}`,l=Tt(i.staticSrc??"",t),[c,u]=ye(()=>i.staticSrc&&l||null),[d,m]=ye(!i.staticSrc),[f,p]=ye(null),[g,h]=ye(false),b=Se(a.x,n.width),w=Se(a.y,n.height),x=a.width?Se(a.width,n.width):n.width,T=a.height?Se(a.height,n.height):n.height,S=Dt(a.anchor,x,T),v=b+S.x,E=w+S.y,I=Fr();xe(()=>{let A=false;if(i.staticSrc){u(l||null),m(false);return}return m(true),p(null),h(false),jC({center:i.center,zoom:i.zoom,style:i.style,width:x,height:T,markers:i.markers,showAttribution:i.showAttribution!==false,policy:I}).then(P=>{A||(u(P),m(false));}).catch(P=>{if(!A){let D=P instanceof pr;D||console.error("Failed to compose map:",P),p(P instanceof Error?P.message:String(P)),h(D),m(false);}}),()=>{A=true;}},[i.center,i.zoom,i.style,i.staticSrc,l,i.markers,i.showAttribution,x,T,t,I]);let _=gt(o,r);return d?k("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[k("rect",{x:v,y:E,width:x,height:T,fill:"#e5e7eb"}),k("text",{x:v+x/2,y:E+T/2,textAnchor:"middle",dominantBaseline:"middle",fill:"#9ca3af",fontSize:"24",fontFamily:"system-ui, sans-serif",children:"Loading map..."})]}):f||!c?k("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[k("rect",{x:v,y:E,width:x,height:T,fill:g?"#f3f4f6":"#fef2f2"}),k("text",{x:v+x/2,y:E+T/2,textAnchor:"middle",dominantBaseline:"middle",fill:g?"#6b7280":"#dc2626",fontSize:"18",fontFamily:"system-ui, sans-serif",children:g?"Map unavailable offline":"Map failed to load"})]}):k("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[k("defs",{children:k("clipPath",{id:s,children:k("rect",{x:v,y:E,width:x,height:T})})}),k("g",{clipPath:`url(#${s})`,children:k("image",{href:c,x:v,y:E,width:x,height:T,preserveAspectRatio:"xMidYMid slice",style:{pointerEvents:"none"}})})]})}var bY=.2;function VC({layer:e,basePath:t,viewport:n,blockTime:r,isPlaying:i,muted:a=false,mode:o="timed"}){let{content:s,position:l}=e,c=we(null),u=we(false),d=o==="player",m=s.startAt??0,f=r<m,p=Se(l.x,n.width),g=Se(l.y,n.height),h=l.width?Se(l.width,n.width):n.width,b=l.height?Se(l.height,n.height):n.height,w=Dt(l.anchor,h,b),x=p+w.x,T=g+w.y,S=Tt(s.src,t),v=Tt(s.posterSrc||"",t),E=s.posterSrc?v:void 0;return xe(()=>{let I=c.current;if(!I)return;if(I.currentTime=s.clipStart,u.current=true,d)return ()=>I.pause();if(i){let A=I.play();A&&A.catch(()=>{});}let _=()=>{I.currentTime>=s.clipEnd&&(I.pause(),I.currentTime=s.clipEnd);};return I.addEventListener("timeupdate",_),()=>{I.removeEventListener("timeupdate",_),I.pause();}},[S,s.clipStart,s.clipEnd,d]),xe(()=>{let I=c.current;if(!I||!u.current||d)return;let _=f?s.clipStart:Math.min(s.clipEnd,s.clipStart+Math.max(0,r-m));if(!Ma(I)&&Math.abs(I.currentTime-_)>bY&&(I.currentTime=_),f){I.pause();return}if(_>=s.clipEnd){I.pause();return}if(i){let A=I.play();A&&A.catch(()=>{});}else Ma(I)||I.pause();},[i,f,r,m,S,s.clipStart,s.clipEnd,d]),k("g",{className:"block-layer block-layer--video","data-layer-id":e.id,children:k("foreignObject",{x,y:T,width:h,height:b,children:k("video",{ref:c,src:S,poster:E,muted:a,playsInline:true,...d?{controls:true,preload:"metadata","aria-label":s.alt||void 0,"data-no-swipe":""}:{preload:"auto","data-clip-start":s.clipStart,"data-clip-end":s.clipEnd,"data-start-at":m},style:{width:`${h}px`,height:`${b}px`,objectFit:s.fit||"cover",objectPosition:"center",display:"block",pointerEvents:d?void 0:"none"}})})})}function wY(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 kY(e,t){return e.length>t?`${e.slice(0,t-1).trimEnd()}\u2026`:e}function xY({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 k(Fe,{children:[k("rect",{x:e.x,y:e.y,width:e.width,height:e.height,rx:d,fill:"#111318"}),r&&t.thumbnailUrl?k("image",{href:t.thumbnailUrl,x:e.x,y:e.y,width:e.width,height:e.height,preserveAspectRatio:"xMidYMid slice",opacity:.85}):null,k("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)}),k("path",{d:`M ${s-c*.36} ${l-c/2} L ${s+c*.54} ${l} L ${s-c*.36} ${l+c/2} Z`,fill:"#ffffff"}),k("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:kY(n?`${n} \xB7 ${t.providerName}`:t.providerName,70)})]})}function GC({layer:e,viewport:t,mode:n="poster"}){let r=yn(e.content.url);if(!r)return null;let{position:i}=e,a=i.width?Se(i.width,t.width):t.width,o=i.height?Se(i.height,t.height):t.height,s=Dt(i.anchor,a,o),l=wY({x:Se(i.x,t.width)+s.x,y:Se(i.y,t.height)+s.y,width:a,height:o},r.aspectRatio),c=e.content.title?.trim()??"";if(n!=="player")return k("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:k(xY,{box:l,embed:r,title:c,showThumbnail:n==="poster"})});let u=Xa(r,c);return k("g",{className:"block-layer block-layer--video-embed","data-layer-id":e.id,"data-provider":r.provider,children:k("foreignObject",{x:l.x,y:l.y,width:l.width,height:l.height,children:k("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 YC({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=Se(o.x,n.width),f=Se(o.y,n.height),p=o.width?Se(o.width,n.width):n.width,g=o.height?Se(o.height,n.height):n.height,h=Dt(o.anchor,p,g),b=m+h.x,w=f+h.y,x=gt(s,r),T=A=>{let P=l?.[A];return P?{textAlign:P}:void 0},S=c.borderRadius??8,v=c.fontSize*.6,E=c.fontSize*.75,I=k("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&&k("thead",{children:k("tr",{children:u.map((A,P)=>k("th",{style:{background:c.headerBackground,color:c.headerColor,fontFamily:c.headerFontFamily??c.fontFamily??"system-ui, sans-serif",fontWeight:600,padding:`${v}px ${E}px`,position:"sticky",top:0,zIndex:1,whiteSpace:"nowrap",borderBottom:`2px solid ${c.borderColor}`,borderRight:P<u.length-1?`1px solid ${c.borderColor}`:void 0,...T(P)},children:A},P))})}),d.length>0&&k("tbody",{children:d.map((A,P)=>k("tr",{children:A.map((D,M)=>k("td",{style:{background:c.cellBackground,color:c.cellColor,padding:`${v}px ${E}px`,whiteSpace:"nowrap",borderBottom:P<d.length-1?`1px solid ${c.borderColor}`:void 0,borderRight:M<A.length-1?`1px solid ${c.borderColor}`:void 0,...T(M)},children:D},M))},P))})]}),_=e?i:void 0;return k("g",{className:`block-layer block-layer--table ${x.className}`,style:x.style,"data-layer-id":t.id,children:k("foreignObject",{x:b,y:w,width:p,height:g,children:k("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:`${p}px`,height:`${g}px`,boxSizing:"border-box",overflow:_?"hidden":"auto",overscrollBehavior:"contain",scrollbarGutter:"stable",border:_?void 0:`1px solid ${c.borderColor}`,borderRadius:`${S}px`,background:_?"transparent":c.cellBackground},children:_?k(_,{block:e,layer:t,width:p,height:g,fallback:I}):I})})})}function XC(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 KC({layer:e,viewport:t,blockTime:n}){let{content:r,position:i,animation:a}=e,{items:o,style:s}=r,l=Se(i.x,t.width),c=Se(i.y,t.height),u=i.width?Se(i.width,t.width):t.width,d=i.height?Se(i.height,t.height):t.height,m=Dt(i.anchor,u,d),f=gt(a,n);return k("g",{className:`block-layer block-layer--tree ${f.className}`,style:f.style,"data-layer-id":e.id,children:k("foreignObject",{x:l+m.x,y:c+m.y,width:u,height:d,children:k("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:k(QC,{items:o,depth:0,style:s})})})})}function QC({items:e,depth:t,style:n}){return k("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=>k(vY,{item:r,style:n},r.id))})}function vY({item:e,style:t}){let n=e.children.length>0,[r,i]=ye(false),a=e.isDir||n,o=a?XC(t.folderIcon,r?"folder":"folder-open"):XC(t.fileIcon,"file");return k("li",{style:{position:"relative"},children:[k("div",{style:{display:"flex",alignItems:"baseline",gap:"8px",padding:"1px 0"},children:[n?k("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:k("i",{className:`fa-solid ${r?"fa-chevron-right":"fa-chevron-down"}`,"aria-hidden":"true"})}):k("span",{style:{flex:"0 0 auto",width:"1em"}}),k("i",{className:o,"aria-hidden":"true",style:{flex:"0 0 auto",color:t.iconColor,width:"1.2em",textAlign:"center"}}),k("span",{style:{color:a?t.dirColor:t.rowColor,fontWeight:a?600:400},children:e.label}),e.comment?k("span",{style:{color:t.commentColor,fontSize:"0.85em",fontStyle:"italic"},children:e.comment}):null]}),n&&!r?k(QC,{items:e.children,depth:1,style:t}):null]})}var xm=null,EY={startOnLoad:false,securityLevel:"strict",suppressErrorRendering:true,deterministicIds:false,logLevel:"error"};async function _Y(){return xm||(xm=Promise.resolve().then(()=>(JC(),ZC)).then(({default:e})=>e).catch(e=>{throw xm=null,e})),xm}function AY(e){let t=globalThis,r=(t.__squisqMermaidWorkQueue??Promise.resolve()).then(e,e);return t.__squisqMermaidWorkQueue=r.then(()=>{},()=>{}),r}function vm(e,t,n,r=dt){return AY(async()=>{let i=await _Y();i.initialize({...EY,theme:"base",themeVariables:y0(r)});let{svg:a,diagramType:o}=await i.render(e,t,n);return {svg:a,diagramType:o}})}function e5(e){return (e instanceof Error?e.message:String(e)).split(/\r?\n/).map(n=>n.trimEnd()).filter(Boolean).slice(0,6).join(`
764
- `)||"Unknown Mermaid rendering error."}var CY=0;function Tm({source:e,className:t,ariaLabel:n="Mermaid diagram",theme:r=dt}){let[i,a]=ye(""),[o,s]=ye(""),[l,c]=ye(true);xe(()=>{let d=true,m=`squisq-rich-mermaid-${++CY}`;return c(true),s(""),vm(m,e,void 0,r).then(f=>{d&&a(f.svg);}).catch(f=>{d&&(a(""),s(e5(f)));}).finally(()=>{d&&c(false);}),()=>{d=false;}},[e,r]);let u=["squisq-mermaid-rendered",t].filter(Boolean).join(" ");return k("div",{className:u,role:"img","aria-label":n,style:{background:r.colors.backgroundLight,color:r.colors.text},children:[l&&k("div",{className:"squisq-mermaid-render-status",children:"Rendering diagram\u2026"}),!l&&o&&k("div",{className:"squisq-mermaid-render-error",role:"alert",children:[k("strong",{children:"Mermaid could not render this diagram."}),k("pre",{children:o})]}),!l&&!o&&i&&k("div",{className:"squisq-mermaid-render-svg",dangerouslySetInnerHTML:{__html:i}})]})}function t5({layer:e,viewport:t,blockTime:n,theme:r}){let{position:i,content:a,animation:o}=e,s=Se(i.width??t.width,t.width),l=Se(i.height??t.height,t.height),c=Se(i.x,t.width),u=Se(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=gt(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 k("g",{className:`block-layer block-layer--mermaid ${m.className}`,"data-layer-id":e.id,style:m.style,children:k("foreignObject",{x:c,y:u,width:s,height:l,children:k("div",{xmlns:"http://www.w3.org/1999/xhtml",className:"squisq-mermaid-layer-frame",style:f,children:k(Tm,{source:a.source,ariaLabel:"Mermaid diagram on slide",theme:r})})})})}function n5({layer:e,viewport:t,blockTime:n,isStatic:r=false}){let{position:i,content:a,animation:o}=e,s=Se(i.width??t.width,t.width),l=Se(i.height??t.height,t.height),c=Dt(i.anchor,s,l),u=Se(i.x,t.width)+c.x,d=Se(i.y,t.height)+c.y,m=he(()=>er(a.source,{static:r}),[a.source,r]),f=he(()=>m.ok?Hi(m.island,{color:a.color}):null,[m,a.color]),p=gt(o,n),g=a.alt??(m.ok?m.island.title:void 0)??"Illustration";return k("g",{className:`block-layer block-layer--svg ${p.className}`,"data-layer-id":e.id,style:p.style,children:f?k("image",{href:f,x:u,y:d,width:s,height:l,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":g,style:{pointerEvents:"none"}}):k("g",{role:"img","aria-label":"SVG that could not be rendered",children:[k("rect",{x:u,y:d,width:s,height:l,rx:Math.min(s,l)*.04,fill:"none",stroke:a.color??"currentColor",strokeOpacity:.35,strokeWidth:2,strokeDasharray:"8 6"}),k("text",{x:u+s/2,y:d+l/2,textAnchor:"middle",dominantBaseline:"middle",fill:a.color??"currentColor",fillOpacity:.6,fontSize:Math.max(12,Math.min(s,l)*.06),children:"Couldn\u2019t render this SVG"})]})})}function r5(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 IY={width:1920,height:1080},hr=1;function Sm(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 Ei(e){let t=parseFloat(e);return Number.isFinite(t)?t:0}function MY(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?Ei(r.paddingLeft)+Ei(r.paddingRight)+Ei(r.borderLeftWidth)+Ei(r.borderRightWidth):0,a=r?Ei(r.paddingTop)+Ei(r.paddingBottom)+Ei(r.borderTopWidth)+Ei(r.borderBottomWidth):0,o=Math.max(0,e.clientWidth-i),s=Math.max(0,e.clientHeight-a);if(t.scrollWidth>o+hr||t.scrollHeight>s+hr)return false;for(let l of t.querySelectorAll("[data-squisq-table-scroll]"))if(l.clientWidth>0&&l.scrollWidth>l.clientWidth+hr||l.clientHeight>0&&l.scrollHeight>l.clientHeight+hr)return false;return true}function qY(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+hr&&r.height*t<=a+hr}catch{return false}}function i5(e){return e.map(t=>t.querySelector('[data-squisq-text-content="true"]')?.getBoundingClientRect()).filter(t=>!!t&&t.width>0&&t.height>0)}function a5(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-hr&&i.right>a.left+hr&&i.top<a.bottom-hr&&i.bottom>a.top+hr&&t.add(`${n}:${r}`);}return t}function mn({block:e,buildPlayback:t="all",respectReducedMotion:n=true,blockTime:r,basePath:i,isEntering:a=false,isExiting:o=false,transition:s,viewport:l=IY,isPlaying:c,muted:u=false,animationsEnabled:d=true,theme:m,tableContentRenderer:f,growTextToFit:p=false,videoEmbeds:g="poster",videoClips:h="timed",staticMedia:b=false}){let w="",x={},T=d?s??e.transition:void 0;T&&a?(w=Ml(T.type,true,T.direction),x["--transition-duration"]=`${za(T)}s`):T&&o&&(w=Ml(T.type,false,T.direction),x["--transition-duration"]=`${za(T)}s`);let v=`vb-clip-${tn().replace(/:/g,"")}-${e.id}`,E=we(null),[I,_]=ye(1),A=he(()=>Pr(e),[e]),P=he(()=>e.build?gd(A,e.build,e.duration,e.buildTiming):void 0,[A,e.build,e.duration,e.buildTiming]),[D,M]=ye(false);xe(()=>{if(!n){M(false);return}let L=window.matchMedia?.("(prefers-reduced-motion: reduce)");if(!L)return;let z=()=>M(L.matches);return z(),L.addEventListener?.("change",z),()=>L.removeEventListener?.("change",z)},[n]),$t(()=>{let L=E.current;if(!L)return;let z=t==="all"||!P?{revealed:A.length,progress:1}:t==="timed"?Vh(P,r):t;L.dataset.buildRevealed=String(z.revealed),L.dataset.buildCount=String(A.length);for(let $ of L.querySelectorAll("[data-squisq-build-step]")){let O=Number($.dataset.squisqBuildStep);if(!Number.isInteger(O)||O<0||O>=A.length||!e.build){$.style.visibility="visible",$.style.opacity="1",$.style.transform="",$.style.pointerEvents="",$.removeAttribute("aria-hidden"),$.removeAttribute("inert");continue}let R=Gh(O,A,z,t==="all"?{...e.build,previous:"keep"}:e.build,d&&!D);$.style.visibility=R.hidden?"hidden":"visible",$.style.opacity=String(R.opacity),$.style.transform=`translate(${R.x}px, ${R.y}px)`,$.style.pointerEvents=R.hidden?"none":"",$.setAttribute("aria-hidden",String(R.hidden)),$.toggleAttribute("inert",R.hidden);}},[e.build,A,P,r,t,d,D]);let B=p&&!Hh(e.template);return $t(()=>{let L=E.current,z=false;if(!L)return;let $=()=>{if(z)return;let R=Array.from(L.querySelectorAll("[data-squisq-text-fit]"));if(!B||R.length===0){Sm(R,1),_(1);return}Sm(R,1);let C=a5(i5(R)),ee=r5(q=>{if(Sm(R,q),R.some(X=>X.dataset.squisqTextFit==="html"?!MY(X):!qY(X,q)))return false;let j=a5(i5(R));for(let X of j)if(!C.has(X))return false;return true});Sm(R,ee),_(q=>q===ee?q:ee);};$();let O=L.ownerDocument?.fonts;return O&&O.status!=="loaded"&&O.ready.then($),()=>{z=true;}},[e.layers,B,l.height,l.width]),k("svg",{ref:E,className:`block-svg ${w}`,style:x,viewBox:`0 0 ${l.width} ${l.height}`,preserveAspectRatio:"xMidYMid meet",overflow:"hidden","data-block-id":e.id,"data-squisq-text-scale":B?I:void 0,children:[k("defs",{children:k("clipPath",{id:v,children:k("rect",{x:"0",y:"0",width:l.width,height:l.height})})}),k("g",{clipPath:`url(#${v})`,children:(e.layers??[]).map(L=>k(LY,{block:e,layer:L,basePath:i,viewport:l,blockTime:r,isPlaying:c,muted:u,animationsEnabled:d,theme:m,tableContentRenderer:f,textScale:I,videoEmbeds:g,videoClips:h,staticMedia:b||D||!d},L.id))})]})}function LY({block:e,layer:t,basePath:n,viewport:r,blockTime:i,isPlaying:a,muted:o,animationsEnabled:s,theme:l,tableContentRenderer:c,textScale:u,videoEmbeds:d,videoClips:m,staticMedia:f}){let p=s||!t.animation?t:{...t,animation:void 0};switch(p.type){case "image":return k(RC,{layer:p,basePath:n,viewport:r,blockTime:i,animationsEnabled:s,isStatic:f});case "text":return k(DC,{layer:p,viewport:r,blockTime:i,textScale:u});case "shape":return k(BC,{layer:p,viewport:r,blockTime:i});case "path":return k(zC,{layer:p,viewport:r,blockTime:i});case "map":return k(WC,{layer:p,basePath:n,viewport:r,blockTime:i});case "video":return k(VC,{layer:p,basePath:n,viewport:r,blockTime:i,isPlaying:a,muted:o,mode:m});case "videoEmbed":return k(GC,{layer:p,viewport:r,mode:d});case "table":return k(YC,{block:e,layer:p,viewport:r,blockTime:i,contentRenderer:c});case "tree":return k(KC,{layer:p,viewport:r,blockTime:i});case "mermaid":return k(t5,{layer:p,viewport:r,blockTime:i,theme:l});case "svg":return k(n5,{layer:p,viewport:r,blockTime:i,isStatic:f});default:return console.warn(`Unknown layer type: ${p.type}`),null}}var o5={wordPadEm:.16,columnGapEm:.28,chunkPadXEm:.55,letterSpacingEm:.01};function Em(e="upper"){return e==="upper"?o5:{...o5,columnGapEm:.16}}var PY={A:.76,B:.76,C:.72,D:.83,E:.72,F:.67,G:.81,H:.91,I:.45,J:.6,K:.82,L:.69,M:1.02,N:.84,O:.82,P:.7,Q:.82,R:.8,S:.65,T:.68,U:.83,V:.76,W:1.13,X:.81,Y:.73,Z:.69,0:.7,1:.5,2:.63,3:.62,4:.65,5:.6,6:.65,7:.55,8:.68,9:.65,"'":.28,"\u2019":.33,".":.33,",":.33,";":.37,":":.37,"!":.38,"?":.55,"-":.38,"\u2013":.7,"\u2014":1,'"':.56,"\u201C":.52,"\u201D":.52,"(":.45,")":.45,"%":1,"&":.83,"/":.47,"\xB0":.42,$:.64},RY={A:.76,B:.76,C:.74,D:.83,E:.72,F:.67,G:.81,H:.91,I:.45,J:.6,K:.82,L:.69,M:1.02,N:.84,O:.82,P:.7,Q:.82,R:.8,S:.67,T:.68,U:.83,V:.76,W:1.13,X:.81,Y:.73,Z:.69,a:.6,b:.65,c:.57,d:.66,e:.57,f:.39,g:.61,h:.68,i:.35,j:.35,k:.63,l:.34,m:1.02,n:.69,o:.64,p:.66,q:.65,r:.52,s:.56,t:.4,u:.68,v:.57,w:.86,x:.59,y:.56,z:.53,0:.7,1:.57,2:.63,3:.62,4:.65,5:.6,6:.65,7:.57,8:.68,9:.65,"'":.28,"\u2019":.31,".":.33,",":.33,";":.37,":":.37,"!":.38,"?":.61,"-":.41,"\u2013":.7,"\u2014":1,'"':.51,"\u201C":.52,"\u201D":.52,"(":.45,")":.45,"%":1,"&":.9,"/":.47,"\xB0":.44,$:.64},NY=.9,DY=1.06;function M0(e,t="upper"){let n=t==="upper",r=n?PY:RY,i=0,a=0;for(let l of (n?e.toUpperCase():e).normalize("NFD").replace(/\p{M}/gu,""))i+=r[l]??NY,a++;let{letterSpacingEm:o,wordPadEm:s}=Em(t);return (i+a*o)*DY+2*s}function OY(e,t,n="upper"){let{columnGapEm:r}=Em(n),i=0,a=0;for(let o of e){let s=M0(o,n);i===0?(i=1,a=s):a+r+s<=t?a+=r+s:(i++,a=s);}return i}function FY(e){return /[.!?…]["'”’»)\]]*$/.test(e)}function BY(e){if(e.words&&e.words.length>0)return e.words.map(i=>({text:i.text,startTime:i.startTime,endTime:i.endTime,...i.paragraphEnd?{paragraphEnd:true}:{}}));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 s5(e,t=Number.POSITIVE_INFINITY,n="upper"){let r=[];for(let l of e.phrases)for(let c of BY(l))r.push({...c,segment:l.audioSegment});if(r.length===0)return {words:[],chunks:[]};let i=4;if(r.length>i){let l=Math.ceil(r.length/i);i=Math.ceil(r.length/l),i=Math.min(6,Math.max(2,i));}else i=Math.max(2,r.length);let a=[],o=[],s=()=>{o.length!==0&&(a.push({words:o,startTime:o[0].startTime,endTime:o[o.length-1].endTime}),o=[]);};for(let l of r)o.length>0&&(o.length>=i||l.segment!==o[0].segment||o[o.length-1].paragraphEnd||o.length>=2&&FY(o[o.length-1].text)||OY([...o.map(c=>c.text),l.text],t,n)>2)&&s(),o.push(l);return s(),{words:r,chunks:a}}function l5(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 $Y(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 HY=1;function c5({captions:e,currentTime:t,enabled:n=true,theme:r,viewport:i,position:a="bottom"}){let o=i?.width??1280,s=i?.height??720,l=s>o,c=Math.min(s*.055,o*.068),u=Math.max(22,Math.min(96,Math.round(c))),d=l?.07:.1,m=r?.typography?.captionCase??"upper",{wordPadEm:f,columnGapEm:p,chunkPadXEm:g,letterSpacingEm:h}=Em(m),b=o*(1-2*d)/u-2*g,{chunks:w}=he(()=>e?s5(e,b,m):{words:[],chunks:[]},[e,b,m]);if(!n||w.length===0)return k("div",{className:"social-caption-overlay",style:{position:"absolute",...l5(a,l),left:0,right:0,zIndex:50,pointerEvents:"none",opacity:0,transition:"opacity 0.15s ease-in-out"}});let x=null,T=-1;for(let A of w)if(t>=A.startTime&&t<A.endTime){x=A;break}if(!x){for(let A=w.length-1;A>=0;A--)if(t>=w[A].endTime){t<w[A].endTime+HY&&(x=w[A],T=x.words.length-1);break}}if(!x)return null;if(T===-1){for(let A=0;A<x.words.length;A++){let P=x.words[A];if(t>=P.startTime&&t<P.endTime){T=A;break}}if(T===-1){for(let A=x.words.length-1;A>=0;A--)if(t>=x.words[A].startTime){T=A;break}}T===-1&&(T=0);}let S=r?.colors?.primary??"#5b9bd5",v=r?.typography?.captionFont??r?.typography?.titleFont,E=v?Ct(v,'"PT Serif", Georgia, serif'):'"PT Serif", Georgia, serif',I=Math.max(...x.words.map(A=>M0(A.text,m))),_=I>b?Math.max(16,Math.floor(u*b/I)):u;return k("div",{className:"social-caption-overlay",style:{position:"absolute",...l5(a,l),left:0,right:0,zIndex:50,pointerEvents:"none",display:"flex",justifyContent:"center",padding:`0 ${d*100}%`,boxSizing:"border-box",opacity:1,transition:"opacity 0.15s ease-in-out"},children:k("div",{className:"social-caption-overlay__chunk",style:{display:"inline-flex",flexWrap:"wrap",justifyContent:"center",alignItems:"baseline",maxWidth:"100%",rowGap:"0.12em",columnGap:`${p}em`,padding:`0.22em ${g}em`,borderRadius:"0.4em",background:"rgba(10, 10, 12, 0.42)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",fontFamily:E,fontSize:`${_}px`,lineHeight:1.18,textTransform:m==="upper"?"uppercase":"none",letterSpacing:`${h}em`,whiteSpace:"normal"},children:x.words.map((A,P)=>{let D=P===T;return k("span",{className:D?"social-caption-overlay__word is-active":"social-caption-overlay__word",style:{display:"inline-block",whiteSpace:"nowrap",padding:`0 ${f}em`,borderRadius:"0.18em",fontWeight:800,color:D?$Y(S):"rgba(255, 255, 255, 0.95)",background:D?S:"transparent",textShadow:D?"none":"0 2px 6px rgba(0,0,0,0.75), 0 0 18px rgba(0,0,0,0.45)",transform:D?"scale(1.05)":"none",transition:"color 0.1s ease, background-color 0.1s ease, transform 0.1s ease"},children:A.text},`${A.startTime}-${P}`)})})})}function zY(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 u5({captions:e,currentTime:t,enabled:n=true,fontSize:r=16,captionStyle:i="standard",captionPosition:a,theme:o,viewport:s}){if(i==="social")return k(c5,{captions:e,currentTime:t,enabled:n,theme:o,viewport:s,position:a??"bottom"});let c=(n&&e?Ll(e,t):null)?.text??null;return k("div",{className:"caption-overlay",style:{position:"absolute",...zY(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&&k("div",{style:{display:"inline-block",padding:"3px 10px",background:"rgba(0, 0, 0, 0.65)",borderRadius:"4px",backdropFilter:"blur(4px)"},children:k("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 UY="(prefers-color-scheme: dark)";function _m(e){let t=he(()=>e&&typeof window<"u"?window.matchMedia(UY):null,[e]),n=Ee(i=>t?(t.addEventListener("change",i),()=>t.removeEventListener("change",i)):()=>{},[t]),r=Ee(()=>t?.matches?Hp:$u,[t]);return tw(n,r)}function q0(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 d5(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 WY=15e3,m5="Audio could not be loaded. Check that the media file is available.",f5="Audio playback failed. Check that the media file is supported and available.",VY=30;function p5(e){return e instanceof Error?e.name==="NotAllowedError"||e.name==="AbortError":false}function GY(e,t){return !e||/^(?:[a-z][a-z0-9+.-]*:|\/\/|\/)/i.test(e)||!t?e:`${t.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}function h5(e,t,n="",r=true,i="media",a=0){let o=he(()=>i!=="synthetic"||t?.segments?.length||a<=0?t:{...t,segments:[{src:"",name:"synthetic",duration:a,startTime:0}]},[t,i,a]),s=Fr(),[l,c]=ye(0),[u,d]=ye(false),[m,f]=ye(0),[p,g]=ye(false),[h,b]=ye(false),[w,x]=ye(0),[T,S]=ye(true),[v,E]=ye(),[I,_]=ye(false),A=we([]),P=we(null),D=we(null),M=we(null),B=we(false),L=we(new Map),z=we(new Map),$=we(new Set),O=we(0),R=we(void 0);R.current=o?.segments[m]?.src;let C=we(null),U=we(null),ee=we(null),q=we(0);q.current=m;let j=we(false);xe(()=>{if(O.current+=1,P.current=null,D.current?.(),D.current=null,B.current=false,j.current=false,C.current=null,U.current=null,ee.current=null,c(0),f(0),d(false),g(false),b(false),S(true),E(void 0),_(false),!r||!o?.segments){A.current=[],x(0);return}let V=q0(o.segments);A.current=V.segmentStarts,x(V.totalDuration),i==="synthetic"&&b(true);},[o,r,i]);let X=Ee(async V=>{let ne=GY(V,n);if(!vn(ne,s))return "";if(L.current.has(V)){let _e=L.current.get(V);return L.current.delete(V),L.current.set(V,_e),_e}if(z.current.has(V))return z.current.get(V);let re=new AbortController;$.current.add(re);let ge=O.current,Me=(async()=>{try{let _e=await E0(ne,{policy:s,signal:re.signal,contentTypePrefixes:["audio/","video/","application/octet-stream"]}),Re=new Blob([_e.bytes.slice().buffer],{type:_e.contentType||"application/octet-stream"}),Oe=URL.createObjectURL(Re);if(re.signal.aborted||ge!==O.current)return URL.revokeObjectURL(Oe),ne;for(L.current.set(V,Oe);L.current.size>2;){let Ge=[...L.current.entries()].find(([tt])=>tt!==R.current)??L.current.entries().next().value;if(!Ge)break;L.current.delete(Ge[0]),URL.revokeObjectURL(Ge[1]);}return Oe}catch{return ""}})();return z.current.set(V,Me),Me.then(()=>{$.current.delete(re),z.current.get(V)===Me&&z.current.delete(V);}),Me},[n,s]);xe(()=>{if(!r||!o?.segments)return;let V=L.current,ne=$.current,re=z.current;return ()=>{O.current+=1,ne.forEach(ge=>ge.abort()),ne.clear(),re.clear(),V.forEach(ge=>{URL.revokeObjectURL(ge);}),V.clear();}},[o,X,r]),xe(()=>{if(!r||i==="synthetic")return;let V=o?.segments[m];V&&X(V.src);},[o,m,r,i,X]),xe(()=>{if(!r||i==="synthetic")return;let V=e.current;if(!V)return;ee.current=null;let ne=()=>{if(j.current)return;let tt=(A.current[m]||0)+V.currentTime;c(tt);let ot=o?.segments[m],Ne=o?.segments[m+1];ot&&Ne&&ee.current!==Ne.src&&ot.duration-V.currentTime<=VY&&(ee.current=Ne.src,X(Ne.src));},re=()=>{d(true);},ge=()=>{d(false),_(false);},Me=()=>_(true),_e=()=>_(false),Re=()=>{b(true),d(false),_(false),S(false),E(m5),B.current=false,P.current!==null&&(c(P.current),P.current=null),D.current?.(),D.current=null;},Oe=()=>{o&&m<o.segments.length-1?(B.current=true,f(Ge=>Ge+1)):(g(true),d(false));};return V.addEventListener("timeupdate",ne),V.addEventListener("play",re),V.addEventListener("playing",Me),V.addEventListener("waiting",_e),V.addEventListener("pause",ge),V.addEventListener("ended",Oe),V.addEventListener("error",Re),()=>{V.removeEventListener("timeupdate",ne),V.removeEventListener("play",re),V.removeEventListener("playing",Me),V.removeEventListener("waiting",_e),V.removeEventListener("pause",ge),V.removeEventListener("ended",Oe),V.removeEventListener("error",Re);}},[e,m,o,r,i,X]);let K=Ee((V,ne)=>{let re=C.current;return !!V.src&&re?.key===ne&&re.url===V.src},[]);xe(()=>{if(!r||i==="synthetic")return;let V=e.current;if(!V||!o?.segments)return;let ne=o.segments[m];if(!ne)return;let re=()=>{if(P.current!==null){let Re=A.current[m]||0,Oe=P.current-Re;V.currentTime=Math.max(0,Oe),c(P.current),P.current=null,D.current?.(),D.current=null;}B.current&&(V.play().then(()=>{S(true),E(void 0);},Re=>{Re instanceof Error&&Re.name==="AbortError"||(d(false),p5(Re)||(S(false),E(f5)));}),B.current=false);},ge=K(V,ne.src),Me=false,_e=null;return ge?(U.current===ne.src&&(U.current=null),re()):(async()=>{U.current=ne.src;let Oe=await X(ne.src);if(!Me){if(U.current=null,!Oe){V.removeAttribute("src"),V.load(),C.current=null,B.current=false,b(true),d(false),S(false),E(m5),P.current!==null&&(c(P.current),P.current=null),D.current?.(),D.current=null;return}_e=()=>{Me||(b(true),re(),_e&&V.removeEventListener("canplay",_e));},V.addEventListener("canplay",_e),V.src=Oe,C.current={key:ne.src,url:V.src},V.load(),_(false),B.current||d(false),await Promise.resolve(),V.readyState>=3&&(_e&&V.removeEventListener("canplay",_e),b(true),re());}})(),()=>{Me=true,_e&&V.removeEventListener("canplay",_e);}},[e,m,o,X,r,i,K]);let G=Ee(async V=>{let ne=e.current;if(!o?.segments)return;let re=w>0?Math.max(0,Math.min(V,w)):Math.max(0,V),ge=A.current.length===o.segments.length?A.current:q0(o.segments).segmentStarts,{segmentIndex:Me,segmentStart:_e}=d5(re,o.segments,ge),Re=i==="synthetic"?u:!ne?.paused;if(g(false),!ne&&i==="media"){f(Me),c(re);return}if(Me!==q.current){P.current=re,B.current=Re,i==="media"&&r&&(U.current=o.segments[Me].src);let Oe=new Promise(Ge=>{D.current?.();let tt=false,ot=()=>{tt||(tt=true,clearTimeout(Ne),D.current===ot&&(D.current=null),Ge());},Ne=setTimeout(ot,WY);D.current=ot;});M.current=Oe,f(Me),i==="synthetic"&&(c(re),P.current=null,D.current?.(),D.current=null),await Oe;}else if(P.current!==null&&i==="media"&&r)P.current=re,c(re),await M.current;else {let Oe=re-_e;ne&&i==="media"&&(ne.currentTime=Math.max(0,Oe)),c(re);}},[e,o,r,u,i,w]),ae=Ee(async()=>{if(i==="synthetic"){j.current=true,d(true);return}let V=e.current;if(V){p&&await G(0);let ne=o?.segments[q.current];if(ne&&U.current===ne.src&&!K(V,ne.src)){B.current=true,d(true),V.getAttribute("src")||V.play().catch(()=>{});return}try{await V.play(),j.current=!1,S(!0),E(void 0);}catch(re){if(j.current=false,re instanceof Error&&re.name==="AbortError"){B.current||d(false);return}d(false),p5(re)||(S(false),E(f5));}}},[e,o,p,K,i,G]),ke=Ee(()=>{B.current=false;let V=e.current;V&&V.pause(),d(false);},[e]),W=Ee(()=>{!e.current&&i==="media"||(u?ke():ae());},[e,u,i,ae,ke]),Q=Ee(V=>{!o?.segments||V<0||V>=o.segments.length||(f(V),g(false));},[o]),te=Ee(async()=>{await G(0),await ae();},[G,ae]);return xe(()=>{if(!u||!j.current||!w)return;let V=performance.now(),ne,re=ge=>{if(!j.current)return;let Me=(ge-V)/1e3;V=ge,c(_e=>{let Re=_e+Me;return Re>=w?(j.current=false,g(true),d(false),w):Re}),ne=requestAnimationFrame(re);};return ne=requestAnimationFrame(re),()=>cancelAnimationFrame(ne)},[u,w]),{currentTime:l,isPlaying:u,currentSegment:m,totalDuration:w,isEnded:p,isReady:h,isBuffering:i==="media"&&u&&!I,isAvailable:T,unavailableMessage:v,play:ae,pause:async()=>ke(),toggle:async()=>W(),seekTo:G,skipToSegment:async V=>Q(V),restart:te}}var YY={},g5=new Map,XY=0;function KY(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 y5(e,t,n){let r=La(),i=Fr(),a=he(()=>{let c=new Map;for(let u of zt(e??[])){let d=!!u.template&&dd(ut(u.template))?.ownership==="native-slot";if(!(u.summaryLayout!=="feature"&&!d)){for(let m of wn(u.contents))c.set(m.src,{kind:"image",source:m.src});for(let m of Un(u.contents))c.set(m.src,{kind:"video",source:m.src});for(let m of u.contents??[])m.type==="code"&&m.lang?.trim().toLowerCase()==="mermaid"&&c.set(m.value,{kind:"mermaid",source:m.value});}}return JSON.stringify([...c.values()])},[e]),o=he(()=>({sourceKey:a,provider:r,policy:i,basePath:t,theme:n}),[a,r,i,t,n]),[s,l]=ye();return xe(()=>{if(typeof document>"u")return;let c=true,u=[],d={},m=(p,g)=>{!c||!Number.isFinite(g)||g<=0||(d[p]=g,l({scope:o,ratios:{...d}}));},f=JSON.parse(a);for(let{kind:p,source:g}of f){if(p==="mermaid"){vm(`squisq-feature-measure-${++XY}`,g,void 0,n).then(({svg:b})=>{if(!c)return;let w=new DOMParser().parseFromString(b,"image/svg+xml").documentElement.getAttribute("viewBox")?.trim().split(/[\s,]+/).map(Number);w?.length===4&&w[2]>0&&w[3]>0&&m(g,w[2]/w[3]);}).catch(()=>{});continue}(async()=>{let b=/^(?:[a-z][a-z0-9+.-]*:|\/\/|\/)/i.test(g),x=b?g:`${t.replace(/\/$/,"")}/${g}`;if(!b&&r)try{if(x=await r.resolveUrl(g),!x||x===g)return}catch{return}if(!c||!vn(x,i))return;let T=`${p}:${x}`,S=g5.get(T);if(S!==void 0){m(g,S);return}u.push(KY(p,x,v=>{c&&(g5.set(T,v),m(g,v));}));})();}return ()=>{c=false,u.forEach(p=>p());}},[a,r,i,t,n,o]),s?.scope===o?s.ratios:YY}function b5(e,t,n={}){let{viewport:r=ct.landscape,theme:i,onSeek:a,useAudioSegmentTiming:o=true,deterministicTransitions:s=false,motion:l,basePath:c="."}=n,u=y5(e?.blocks,c,i??dt),d=he(()=>{if(!e?.blocks)return [];let L=e.blocks.some(R=>R.children&&R.children.length>0)?zt(e.blocks):e.blocks,z=L.some(ft),$=i??dt,O=Qs({persistentLayers:e.persistentLayers},$);if(z){let R=o?e.audio?.segments?.map(U=>({startTime:U.startTime,duration:U.duration})):void 0,C=Uh(L,{audioSegments:R,viewport:r,mediaAspectRatios:u,persistentLayers:O,theme:i,motion:oo({motion:e.motion,frontmatter:e.frontmatter},$,l),customTemplates:e.customTemplates});return Yh(e,C)}return L.map((R,C)=>{let U=Xo(R,$,C);return U!==R.transition?{...R,transition:U}:R})},[e,l,u,r,i,o]),m=he(()=>h0(d,t),[d,t]),f=he(()=>m?d.indexOf(m):-1,[d,m]),p=he(()=>m?Math.max(0,t-m.startTime):0,[m,t]),g=he(()=>!m||m.duration===0?0:Math.min(1,p/m.duration),[m,p]),h=he(()=>!e||e.duration===0?0:Math.min(1,t/e.duration),[e,t]),b=we(null),w=we(null),x=we(null),T=we(null),S=Ee(B=>{if(w.current===B){b.current=null,T.current=null;return}T.current=B;},[]);if(m&&m.id!==w.current){let B=T.current===m.id;b.current=B?null:x.current,T.current=null,w.current=m.id;}x.current=m;let v=m?.transition?za(m.transition):0,E=!!m&&v>0&&p<v,I=s?f>0?d[f-1]??null:null:b.current,_=E&&I!=null&&I.id!==m?.id,A=_?I:null,P=Ee(B=>{if(!e||B<0||B>=d.length)return;let L=d[B];L&&a?.(L.startTime);},[e,d,a]),D=Ee(()=>{if(f<d.length-1)return P(f+1)},[f,d.length,P]),M=Ee(()=>{if(f>0)return P(f-1)},[f,P]);return {currentBlock:m,currentBlockIndex:f,previousBlock:A,isEntering:E,isExiting:_,blockTime:p,blockProgress:g,docProgress:h,nextBlock:D,prevBlock:M,goToBlock:P,suppressOutgoingForNextBlock:S,blocks:d}}function QY(e,t){let n=e/t;return n>1.2?"landscape":n<.83?"portrait":"square"}function ZY(e){switch(e){case "portrait":return ct.portrait;case "square":return ct.square;default:return ct.landscape}}function w5(){let[e,t]=ye(()=>({width:typeof window<"u"?window.innerWidth:1920,height:typeof window<"u"?window.innerHeight:1080}));xe(()=>{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=he(()=>QY(e.width,e.height),[e.width,e.height]);return {viewport:he(()=>ZY(n),[n]),orientation:n,windowSize:e}}var JY=.3,eX=.5,tX=12,nX=.35,rX=260;function iX({dx:e,width:t,elapsedMs:n,canNext:r,canPrev:i}){let a=t>0?t*JY:1/0,o=n>0?Math.abs(e)/n:0,s=Math.abs(e)>=a,l=o>=eX&&Math.abs(e)>=tX;return !s&&!l?"snap":e<0?r?"next":"snap":e>0&&i?"prev":"snap"}function k5(e){let t=e.settleMs??rX,[n,r]=ye(0),[i,a]=ye("idle"),o=we(e);o.current=e;let s=we(null),l=we("idle");l.current=i;let c=we(null),u=we(null),d=Ee(()=>{c.current!=null&&(clearTimeout(c.current),c.current=null),u.current!=null&&(cancelAnimationFrame(u.current),u.current=null);},[]),m=Ee(f=>{if(!o.current.enabled||l.current==="settling"||f.pointerType==="mouse"&&f.button!==0)return;let g=f.target;if(!g.closest?.("button, a, input, textarea, select, [data-no-swipe]")){s.current={pointerId:f.pointerId,startX:f.clientX,startTime:performance.now(),target:g};try{g.setPointerCapture?.(f.pointerId);}catch{}a("dragging"),r(0);}},[]);return xe(()=>{function f(){return o.current.containerRef.current?.getBoundingClientRect().width??0}function p(x){s.current=null;try{x.target.releasePointerCapture?.(x.pointerId);}catch{}}function g(x,T){a("settling"),u.current=requestAnimationFrame(()=>{u.current=null,r(x),c.current=setTimeout(()=>{c.current=null,T?.(),r(0),a("idle");},t);});}function h(x){let T=s.current;if(!T||x.pointerId!==T.pointerId)return;let S=o.current,v=x.clientX-T.startX,E=v>0&&!S.canGoPrev||v<0&&!S.canGoNext;r(E?v*nX:v);}function b(x){let T=s.current;if(!T||x.pointerId!==T.pointerId)return;p(T);let S=o.current,v=x.clientX-T.startX,E=f(),I=performance.now()-T.startTime,_=iX({dx:v,width:E,elapsedMs:I,canNext:S.canGoNext,canPrev:S.canGoPrev});if(_==="snap"){g(0);return}let A=Math.max(E,Math.abs(v)),P=_==="next"?-A:A;g(P,_==="next"?S.onNext:S.onPrev);}function w(x){let T=s.current;!T||x.pointerId!==T.pointerId||(p(T),g(0));}return window.addEventListener("pointermove",h),window.addEventListener("pointerup",b),window.addEventListener("pointercancel",w),()=>{window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",w);}},[t]),xe(()=>{e.enabled||(s.current=null,d(),a("idle"),r(0));},[e.enabled,d]),xe(()=>d,[d]),{offsetPx:n,phase:i,onPointerDown:m}}function Ra(e){let t=Math.floor(e/60),n=Math.floor(e%60);return `${t}:${n.toString().padStart(2,"0")}`}var x5="var(--squisq-player-accent, #5b9bd5)";function Am({state:e,actions:t,blockMarkers:n,expandedBlocks:r,getBlockTitle:i}){let a=we(null),[o,s]=ye(null),l=e.totalDuration>0?Math.max(0,Math.min(1,e.currentTime/e.totalDuration)):0,c=Ee(p=>{let g=a.current;if(!g)return;let h=g.getBoundingClientRect(),b=p.clientX-h.left,w=Math.max(0,Math.min(1,b/h.width));s(w);},[]),u=Ee(()=>{s(null);},[]),d=Ee(p=>{let g=null;switch(p.key){case "ArrowLeft":case "ArrowDown":g=e.currentTime-5;break;case "ArrowRight":case "ArrowUp":g=e.currentTime+5;break;case "Home":g=0;break;case "End":g=e.totalDuration;break}g!=null&&(p.preventDefault(),t.seekTo(Math.max(0,Math.min(e.totalDuration,g))));},[t,e.currentTime,e.totalDuration]),m=Ee(p=>{for(let g=r.length-1;g>=0;g--){let h=r[g];if(p>=h.startTime)return {block:h,index:g}}return r.length>0?{block:r[0],index:0}:null},[r]),f=-1;for(let p of n)p.isSectionStart&&p.block.startTime<=e.currentTime&&(f=p.index);return k("div",{ref:a,role:"group","aria-label":"Playback timeline",style:{flex:1,height:"24px",cursor:"pointer",position:"relative",display:"flex",alignItems:"center"},onClick:p=>{let g=p.currentTarget.getBoundingClientRect(),b=(p.clientX-g.left)/g.width;t.seekTo(b*e.totalDuration);},onMouseMove:c,onMouseLeave:u,children:[k("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":`${Ra(e.currentTime)} of ${Ra(e.totalDuration)}`,onKeyDown:d,style:{position:"absolute",left:0,right:0,height:"6px",background:"rgba(255,255,255,0.2)",borderRadius:"3px"}}),k("div",{"data-testid":"doc-progress-fill",style:{position:"absolute",left:0,width:`${l*100}%`,height:"6px",background:x5,borderRadius:"3px"}}),n.map((p,g)=>{let h=p.isSectionStart,b=h?p.index===f:p.index===e.currentBlockIndex;return k("button",{type:"button","data-marker":h?"chapter":"slide",tabIndex:h?0:-1,style:{position:"absolute",left:`${p.position}%`,transform:"translateX(-50%)",boxSizing:"border-box",borderRadius:"50%",cursor:"pointer",transition:"transform 0.15s, background-color 0.15s",...h?{width:"14px",height:"14px",padding:0,backgroundColor:b?"#ffffff":"rgba(255,255,255,0.75)",border:`2px solid ${x5}`,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:p.title,"aria-label":`Seek to ${p.title}`,onClick:w=>{w.stopPropagation(),t.seekTo(p.block.startTime);},onMouseEnter:w=>{w.currentTarget.style.transform="translateX(-50%) scale(1.3)";},onMouseLeave:w=>{w.currentTarget.style.transform="translateX(-50%)";}},`${p.block.id}-${g}`)}),o!==null&&k("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:[k("div",{style:{color:"white",fontSize:"12px",fontFamily:"monospace"},children:Ra(o*e.totalDuration)}),(()=>{let p=o*e.totalDuration,g=m(p);return g&&i?k("div",{style:{color:"rgba(255,255,255,0.7)",fontSize:"11px",marginTop:"2px"},children:i(g.block)}):null})()]}),o!==null&&k("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}})]})}var v5={pointerEvents:"none"},T5=2*Math.PI*10.5;function aX(){return typeof window>"u"||typeof window.matchMedia!="function"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function S5({isPlaying:e,isBuffering:t=false,size:n}){if(e&&t){let r=T5/4;return k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:n,height:n,"aria-hidden":"true",style:v5,"data-testid":"play-pause-buffering",children:[k("path",{d:"M9 8h2v8H9zm4 0h2v8h-2z"}),k("g",{opacity:"0",children:[k("animate",{attributeName:"opacity",from:"0",to:"1",begin:`${.15}s`,dur:"0.2s",fill:"freeze"}),k("circle",{cx:"12",cy:"12",r:"10.5",fill:"none",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2"}),k("circle",{cx:"12",cy:"12",r:"10.5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:`${r} ${T5-r}`,children:!aX()&&k("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"0.9s",repeatCount:"indefinite"})})]})]},"buffering")}return k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:n,height:n,"aria-hidden":"true",style:v5,children:e?k("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}):k("path",{d:"M8 5v14l11-7z"})},e?"pause":"play")}function E5({state:e,actions:t,blockMarkers:n,expandedBlocks:r,getBlockTitle:i}){return k("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:[k("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:k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("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"})})}),k("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","aria-busy":e.isPlaying&&e.isBuffering?true:void 0,title:e.isPlaying&&e.isBuffering?"Loading audio\u2026":void 0,children:k(S5,{isPlaying:e.isPlaying,isBuffering:e.isBuffering,size:20})}),k("span",{style:{color:"white",fontSize:"12px",minWidth:"80px",fontFamily:"monospace"},children:[Ra(e.currentTime)," / ",Ra(e.totalDuration)]}),k(Am,{state:e,actions:t,blockMarkers:n,expandedBlocks:r,getBlockTitle:i}),k("span",{style:{color:"rgba(255,255,255,0.5)",fontSize:"11px",whiteSpace:"nowrap"},children:[e.currentBlockIndex+1,"/",e.totalBlocks]}),e.hasCaptions&&k("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:[k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("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"&&k("span",{style:{fontSize:"10px",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.captionMode==="standard"?"CC":"SM"})]}),t.toggleFullscreen&&k("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?k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}):k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})})})]})}function _5({state:e,slideNav:t,slides:n=[],pickerOpen:r,onPickerOpenChange:i}){let[a,o]=ye(false),s=r??a,l=Ee(I=>{r===void 0&&o(I),i?.(I);},[r,i]),[c,u]=ye(280),d=we(null),m=we(null),f=we(null),p=tn(),{currentBlockIndex:g,currentSlideLabel:h,currentSlideNumber:b,totalBlocks:w,totalSlideNumber:x}=e,T=g<=0&&!(e.buildStep&&e.buildStep>0),S=g>=w-1&&(e.buildStep??0)>=(e.buildCount??0)&&!e.isBuilding,v=w>0?h??`${b??g+1} / ${x??w}`:"\u2014";xe(()=>{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]),$t(()=>{if(!s)return;let I=d.current,_=I?.closest(".doc-player")??I?.parentElement;if(!I||!_)return;let A=()=>{let D=I.getBoundingClientRect(),M=_.getBoundingClientRect(),B=Math.floor(D.top-M.top-8-16);u(Math.max(72,B));};A();let P=typeof ResizeObserver>"u"?null:new ResizeObserver(A);return P?.observe(_),P?.observe(I),window.addEventListener("resize",A),()=>{P?.disconnect(),window.removeEventListener("resize",A);}},[s]),xe(()=>{s&&f.current?.querySelector('[aria-current="true"]')?.focus();},[s]);let E=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),P=A;I.key==="Home"?P=0:I.key==="End"?P=_.length-1:I.key==="ArrowDown"?P=(A+1)%_.length:P=(A-1+_.length)%_.length,_[P]?.focus();};return k("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:[k("button",{onClick:I=>{I.stopPropagation(),(t.prevStep??t.prevSlide)();},disabled:T,"data-testid":"slide-prev","aria-label":e.buildCount?"Previous build or slide":"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:k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})}),k("button",{ref:m,type:"button","data-testid":"slide-counter","aria-label":`Choose slide, current ${v}`,"aria-haspopup":"menu","aria-expanded":s,"aria-controls":s?p: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:v}),s&&k("div",{ref:f,id:p,role:"menu","aria-label":"Choose a slide","data-testid":"slide-picker",onClick:I=>I.stopPropagation(),onKeyDown:E,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=_===g;return k("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:P=>{P.currentTarget.style.background="rgba(255,255,255,0.1)";},onMouseLeave:P=>{P.currentTarget.style.background=A?"rgba(255,255,255,0.14)":"transparent";},children:[k("span",{style:{color:A?"#fff":"rgba(255,255,255,0.58)",fontSize:"12px",fontVariantNumeric:"tabular-nums",textAlign:"right"},children:I.label}),k("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}-${_}`)})}),!!e.buildCount&&k(Fe,{children:[k("span",{role:"status",style:{color:"inherit",fontSize:12},children:["Build ",e.buildStep??0," of ",e.buildCount]}),k("button",{type:"button",onClick:I=>{I.stopPropagation(),t.showAllBuilds?.();},"aria-label":"Show all build steps",style:{background:"none",color:"inherit",border:"1px solid currentColor",borderRadius:4,padding:"4px 8px",cursor:"pointer",font:"inherit",fontSize:12},children:"Show all"})]}),k("button",{onClick:I=>{I.stopPropagation(),(t.nextStep??t.nextSlide)();},disabled:S,"data-testid":"slide-next","aria-label":e.buildCount?"Next build or slide":"Next slide",title:"Next slide",style:{background:"none",border:"none",color:S?"rgba(255,255,255,0.3)":"rgba(255,255,255,0.9)",cursor:S?"default":"pointer",padding:"6px 8px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",transition:"background 0.15s"},onMouseEnter:I=>{S||(I.currentTarget.style.background="rgba(255,255,255,0.1)");},onMouseLeave:I=>{I.currentTarget.style.background="none";},children:k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("path",{d:"M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"})})})]})}function L0(e){return e?Object.keys(e).map(t=>t.trim().toLowerCase()):[]}var oX={theme:dt,pageStyle:Ia(dt),basePath:"/",viewport:ct.landscape,renderContext:{theme:dt},animationsEnabled:true,imageDisplayMode:"inline",showCodeCopyButton:false},P0=kr(oX);function qn(){return jr(P0)}function A5({section:e}){let{renderContext:t,basePath:n,animationsEnabled:r,theme:i}=qn(),a=e.slots.media,o=a?.type==="canvas"?a:void 0,s=he(()=>{if(!o)return null;let{layers:d}=nl(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 k("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:k(mn,{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 sX=10,lX=100;function N0(e){let t=e instanceof Uint8Array?e:new Uint8Array(e);return uX(t)??dX(t)??mX(t)}var cX=new Set(["gif","webp","apng"]),C5=/^image\/(?:gif|webp|apng)(?=$|[;,\s])/i;function Ol(e){let t=e.trim();if(!t)return false;if(/^data:/i.test(t))return C5.test(t.slice(5));if(C5.test(t))return true;let n=t.split(/[?#]/,1)[0]??"",r=n.lastIndexOf(".");return r<0||r<n.lastIndexOf("/")?false:cX.has(n.slice(r+1).toLowerCase())}function uX(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+I5(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=Dl(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=M5(e,t),t<0)break;continue}if(o===44){if(t+9>e.length)break;let s=e[t+8];if(t+=9+I5(s),t+=1,n++,r+=O0(i),i=0,t=M5(e,t),t<0)break;continue}break}return D0("gif",n,r,a)}function I5(e){return e&128?3*(1<<(e&7)+1):0}function M5(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 Cm=[137,80,78,71,13,10,26,10];function dX(e){if(e.length<Cm.length)return null;for(let o=0;o<Cm.length;o++)if(e[o]!==Cm[o])return null;let t=Cm.length,n=false,r=1,i=1,a=0;for(;t+8<=e.length;){let o=R0(e,t),s=Dl(e,t+4,4),l=t+8;if(s==="acTL"&&o>=8&&l+8<=e.length)n=true,r=R0(e,l),i=R0(e,l+4);else if(s==="fcTL"&&o>=26&&l+26<=e.length){let c=q5(e,l+20),u=q5(e,l+22)||100;a+=O0(c*1e3/u);}else {if(s==="IDAT"&&!n)break;if(s==="IEND")break}t=l+o+4;}return D0("png",n?r:1,a,i)}function mX(e){if(e.length<12||Dl(e,0,4)!=="RIFF"||Dl(e,8,4)!=="WEBP")return null;let t=12,n=false,r=0,i=0,a=null;for(;t+8<=e.length;){let s=Dl(e,t,4),l=fX(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+=O0(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 D0("webp",n?r:1,i,a??0)}function D0(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 O0(e){return e<=sX?lX:e}function Dl(e,t,n){let r="";for(let i=t;i<t+n&&i<e.length;i++)r+=String.fromCharCode(e[i]);return r}function q5(e,t){return e[t]<<8|e[t+1]}function R0(e,t){return (e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function fX(e,t){return (e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}var pX=kr(null);function P5(){return jr(pX)}function Fl({src:e,basePath:t="",width:n,height:r,poster:i,controls:a=true,preload:o="metadata",className:s,label:l}){let c=Tt(e,t),u=Tt(i??"",t),d=i?u:void 0;return c?k("span",{className:`squisq-inline-video-player ${s??""}`.trim(),children:k("video",{src:c,poster:d,controls:a,preload:o,width:n,height:r,playsInline:true,"aria-label":l,title:l})}):null}function F0({src:e,basePath:t="",controls:n=true,preload:r="metadata",className:i,label:a}){let o=Tt(e,t);return o?k("span",{className:`squisq-inline-audio-player ${i??""}`.trim(),children:k("audio",{src:o,controls:n,preload:r,"aria-label":a,title:a})}):null}var hX={position:"absolute",inset:0,width:"100%",height:"100%",border:0};function Do({embed:e,title:t,showCaption:n=true,inline:r=false,className:i}){let a=Xa(e,t),o=e.aspectRatio<1,s=n&&!r?t?.trim():"";return k(r?"span":"figure",{className:`squisq-video-embed ${i??""}`.trim(),"data-provider":e.provider,"data-orientation":o?"portrait":"landscape",children:[k("span",{className:"squisq-video-embed-frame",style:{position:"relative",display:"block",aspectRatio:String(e.aspectRatio)},children:k("iframe",{src:a.src,title:a.title,allow:a.allow,allowFullScreen:true,referrerPolicy:"strict-origin-when-cross-origin",loading:"lazy",style:hX})}),s?k("figcaption",{className:"squisq-video-embed-caption",children:k("a",{href:e.watchUrl,target:"_blank",rel:"noopener noreferrer",children:s})}):null]})}var gX={gif:"GIF",webp:"WEBP",png:"APNG"};function R5({playback:e,imageRef:t}){let n=we(null),{info:r,status:i,displaySrc:a}=e,o=i==="paused",s=r?.animated??false;if($t(()=>{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 k(Fe,{children:[o&&k("canvas",{ref:n,className:"squisq-animated-image-still","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:"100%",pointerEvents:"none"}}),k("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:[k(yX,{status:i}),k("span",{className:"squisq-animated-image-format",children:gX[r.format]})]})]})}function yX({status:e}){return k("svg",{viewBox:"0 0 12 12","aria-hidden":"true",focusable:"false",children:k("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 bX=64,Bl=new Map;function wX(e){let t=Bl.get(e);if(t)return t;let n=fetch(e).then(r=>r.ok?r.arrayBuffer():null).then(r=>r?N0(r):null).catch(()=>null);if(!/^data:/i.test(e)&&(Bl.set(e,n),Bl.size>bX)){let r=Bl.keys().next().value;r!==void 0&&Bl.delete(r);}return n}function kX(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 xX(){return typeof window>"u"||typeof window.matchMedia!="function"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function N5(){return xX()?"paused":"playing"}function D5(e,t){let[n,r]=ye(null),[i,a]=ye(N5),[o,s]=ye(null),[l,c]=ye(0),u=we(0),d=we(null),m=Ee(g=>{d.current&&URL.revokeObjectURL(d.current),d.current=g,s(g);},[]);xe(()=>{r(null);let g=t&&Ol(e)?kX(t):null;if(!g)return;let h=false;return wX(g).then(b=>{h||r(b);}),()=>{h=true;}},[e,t]),xe(()=>{u.current++,m(null),a(N5());},[t,m]),xe(()=>()=>{d.current&&URL.revokeObjectURL(d.current);},[]),xe(()=>{if(i!=="playing"||!n?.animated||n.playCount===0)return;let g=setTimeout(()=>a("ended"),n.durationMs*n.playCount);return ()=>clearTimeout(g)},[i,n,l]);let f=Ee(()=>{let g=++u.current,h=b=>{if(g!==u.current){b&&URL.revokeObjectURL(b);return}b&&m(b),a("playing"),c(w=>w+1);};fetch(o??t).then(b=>b.blob()).then(b=>h(URL.createObjectURL(b)),()=>h(null));},[o,t,m]),p=Ee(()=>{u.current++,a("paused");},[]);return {info:n,animated:n?.animated??false,displaySrc:o??t,status:i,play:f,pause:p}}function vX(){return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}function O5({source:e,fallback:t,isStatic:n,color:r,className:i}){let a=we(null),[o,s]=ye(void 0),[l]=ye(vX),c=n??l,u=he(()=>er(e,{static:c}),[e,c]);$t(()=>{if(r!==void 0||!a.current)return;let p=getComputedStyle(a.current).color;p&&s(p);},[r,u]);let d=r??o,m=he(()=>u.ok?Hi(u.island,{color:d}):null,[u,d]);if(!u.ok||!m)return k("div",{className:["squisq-md-svg-error",i].filter(Boolean).join(" "),children:[k("p",{className:"squisq-md-svg-error-note",role:"note",children:["Couldn\u2019t render this SVG: ",u.ok?"unknown error":u.message]}),t]});let{island:f}=u;return k("figure",{ref:a,className:["squisq-md-svg",i].filter(Boolean).join(" "),"data-svg-island":"",children:k("img",{src:m,alt:f.title??"Illustration",width:f.width,height:f.height,decoding:"sync",draggable:false})})}var Fo={htmlPolicy:"sanitize"};function $l(e){return e.nested?e:{...e,nested:true}}var TX={idle:"Copy",copying:"Copying\u2026",copied:"Copied",failed:"Copy failed"};async function SX(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 B0({value:e,language:t,ctx:n}){let[r,i]=ye("idle"),a=we();xe(()=>()=>{a.current!==void 0&&clearTimeout(a.current);},[]);let o=k("pre",{className:"squisq-md-code-block",children:k("code",{className:t?`language-${t}`:void 0,children:e})});if(!n.showCodeCopyButton)return o;let s=async()=>{if(r!=="copying"){i("copying");try{await SX(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 k("div",{className:"squisq-md-code-frame",children:[o,k("button",{type:"button",className:"squisq-md-code-copy","data-copy-state":r,disabled:r==="copying",onClick:()=>{s();},"aria-label":"Copy code to clipboard",children:TX[r]})]})}var $0=class extends gn{constructor(){super(...arguments);this.state={failed:false};}static getDerivedStateFromError(){return {failed:true}}render(){return this.state.failed?this.props.fallback:this.props.children}};function EX({node:e,lang:t,ctx:n}){let r=n.fenceRenderers?.[t];return r?k("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 Jt(e,t="",n=Fo){return e.map((r,i)=>{let a=`${t}i${i}`;switch(r.type){case "text":{if(!r.value.includes(`
763
+ `);$t(()=>{if(!B){C(null);return}let G=O.current;if(!G||typeof G.getBBox!="function")return;let ae=()=>{try{let W=G.getBBox();if(W.width<=0||W.height<=0)return;let Q=m??t.width,te=f??t.height,V=Math.min(1,Q/W.width,te/W.height),ne=h==="middle"?W.y+W.height/2:h==="text-after-edge"?W.y+W.height:W.y;C(V<.995?{scale:V,cx:w,cy:ne}:null);}catch{}};ae();let ke=G.ownerDocument?.fonts;if(ke&&ke.status!=="loaded"){let W=false;return ke.ready.then(()=>{W||ae();}),()=>{W=true;}}},[B,U,w,h,m,f,t.width,t.height,c.fontSize,c.fontFamily,c.fontWeight]);let ee=R?`translate(${R.cx} ${R.cy}) scale(${R.scale}) translate(${-R.cx} ${-R.cy})`:void 0,q={fontSize:`${c.fontSize}px`,fontFamily:c.fontFamily||Ds,fontWeight:c.fontWeight||"normal",fontStyle:c.fontStyle||"normal",fill:c.color,...v.style},j=c.shadow?`shadow-${i}`:void 0,X=0,K=G=>!I||!s||!G?G||"\xA0":G.split(" ").map((ke,W)=>{let Q=n0(s,X++);return k(Fe,{children:[W>0?" ":null,k("tspan",{className:"anim-word",style:{"--anim-delay":`${Q}s`},children:ke})]},W)});return k("g",{className:`block-layer block-layer--text ${v.className}`,style:v.style,"data-layer-id":e.id,children:[c.shadow&&k("defs",{children:k("filter",{id:j,x:"-20%",y:"-20%",width:"140%",height:"140%",children:k("feDropShadow",{dx:"0",dy:"2",stdDeviation:"3",floodColor:"rgba(0,0,0,0.7)"})})}),k(rY,{layerId:i,style:c,box:m!=null&&f!=null?{x:u-Si(b,m,"x"),y:d-Si(b,f,"y"),width:m,height:f}:{x:w-(c.padding||16),y:x-c.fontSize-(c.padding||16),width:lY(P,c)+(c.padding||16)*2,height:P.length*M+(c.padding||16)*2}}),k("g",{"data-squisq-text-fit":"svg","data-squisq-fit-width":T,"data-squisq-fit-height":S,style:{transform:`scale(${r})`,transformOrigin:`${w}px ${x}px`,transformBox:"view-box"},children:k("text",{ref:O,"data-squisq-text-content":"true",x:w,y:x,textAnchor:g,dominantBaseline:h,style:q,filter:j?`url(#${j})`:void 0,transform:ee,children:P.map((G,ae)=>k("tspan",{x:w,dy:ae===0?z+$:M,children:[K(G),ae<P.length-1&&k("tspan",{style:{fontSize:0},children:" "})]},ae))})})]})}function tY({layer:e,viewport:t,blockTime:n,textScale:r=1}){let{content:i,position:a,animation:o}=e,{html:s,style:l}=i,c=Se(a.x,t.width),u=Se(a.y,t.height),d=a.width!=null?Se(a.width,t.width):t.width,m=a.height!=null?Se(a.height,t.height):l.fontSize*(l.lineHeight||1.4)*2,f=a.anchor??"top-left",p=c-Si(f,d,"x"),g=u-Si(f,m,"y"),h=he(()=>$i(Ka(Qr(s??""))),[s]),b=gt(o,n),w=l.verticalAlign==="middle"?"center":l.verticalAlign==="bottom"?"flex-end":"flex-start",x=!!(l.borderColor&&(l.borderWidth??0)>0),T={boxSizing:"border-box",width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:w,padding:l.padding??0,color:l.color,fontSize:`${l.fontSize*r}px`,fontFamily:l.fontFamily||Ds,fontWeight:l.fontWeight||"normal",fontStyle:l.fontStyle||"normal",lineHeight:l.lineHeight||1.4,textAlign:l.textAlign??"left",overflow:"hidden",...l.background?{background:l.background}:{},...x?{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},S=`squisq-rich-text-${nY(e.id)}`,v=l.textAlign==="center"||l.textAlign==="right"?"inside":"outside",E=_=>{_.target?.closest?.("[data-squisq-table-scroll]")&&_.stopPropagation();},I=`.${S}{margin:0}.${S} p{margin:0 0 .4em}.${S} h1,.${S} h2,.${S} h3,.${S} h4,.${S} h5,.${S} h6{margin:0 0 .3em;line-height:1.2}.${S} ul,.${S} ol{margin:0 0 .7em;padding-left:1.2em;list-style-position:${v}}.${S} li{margin:0}.${S} li[data-squisq-build-item]{list-style:none}.${S} [data-squisq-build-row]{display:flex;gap:.35em}.${S} [data-squisq-build-row]>span{flex:0 0 1.4em;text-align:right;margin-left:-1.75em}.${S} [data-squisq-build-row]>div{min-width:0;flex:1}.${S} li>p{display:inline;margin:0}.${S} [data-squisq-table-scroll]{width:100%;max-height:20em;margin:.35em 0;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}.${S} table{width:100%;min-width:48em;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:.76em;line-height:1.2}.${S} th,.${S} 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}.${S} 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}.${S} tbody tr:nth-child(even){background:rgba(127,127,127,.07);background:color-mix(in srgb,currentColor 5%,transparent)}.${S} *:first-child{margin-top:0}.${S} *:last-child{margin-bottom:0}.${S} a{color:inherit;text-decoration:underline}`;return k("g",{className:`block-layer block-layer--text ${b.className}`,style:b.style,"data-layer-id":e.id,children:k("foreignObject",{x:p,y:g,width:d,height:m,color:l.color,style:{color:l.color},children:k("div",{xmlns:"http://www.w3.org/1999/xhtml","data-squisq-text-fit":"html","data-squisq-base-font-size":l.fontSize,style:T,onPointerDown:E,onClick:E,onWheel:E,onKeyDown:E,children:[k("style",{children:I}),k("div",{"data-squisq-text-content":"true",className:S,style:{width:"100%",color:l.color,whiteSpace:"pre-wrap",wordBreak:"break-word",...OC(l.baselineShift)},dangerouslySetInnerHTML:{__html:h}})]})})})}function nY(e){return e.replace(/[^a-zA-Z0-9_-]/g,"-")}function rY({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}=No(e,t.background,t.backgroundGradient),s=Ro(t.borderStyle,t.borderWidth);return k(Fe,{children:[o&&k("defs",{children:o}),k("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 iY(e,t){return e==="center"?"middle":e==="right"?"end":e==="left"?"start":t?.includes("right")?"end":t==="center"?"middle":"start"}function OC(e){return e?{position:"relative",top:`${e}em`}:{}}function aY(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 oY(e,t,n,r){if(t==null)return e;let i=e-Si(n,t,"x");return r==="middle"?i+t/2:r==="end"?i+t:i}function sY(e,t,n,r){if(t==null)return e;let i=e-Si(n,t,"y");return r==="middle"?i+t/2:r==="text-after-edge"?i+t:i}function Si(e,t,n){return e==="center"?t/2:n==="x"?e.includes("right")?t:0:e.includes("bottom")?t:0}function lY(e,t){return Math.max(...e.map(r=>r.length))*t.fontSize*.55}function FC(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 cY=1;function BC({layer:e,viewport:t,blockTime:n}){let{content:r,position:i,animation:a}=e,o=Po(tn(),e.id),s=Se(i.x,t.width),l=Se(i.y,t.height),c=i.width?Se(i.width,t.width):100,u=i.height?Se(i.height,t.height):100,d=Dt(i.anchor,c,u),m=s+d.x,f=l+d.y,g=r.shape==="rect"&&m===0&&f===0&&c===t.width&&u===t.height&&!r.stroke&&!r.borderRadius?cY:0,h=m-g,b=f-g,w=c+g*2,x=u+g*2,T=gt(a,n),S=r.fill||"none",v=typeof S=="string"&&S.includes("gradient("),E=r.shape==="rect"?[r.backdropBlur?`blur(${r.backdropBlur}px)`:"",r.backdropContrast!==void 0?`contrast(${r.backdropContrast})`:""].filter(Boolean).join(" "):"";if(r.shape==="rect"&&(v&&!r.gradient||E))return k("g",{className:`block-layer block-layer--shape ${T.className}`,style:T.style,"data-layer-id":e.id,pointerEvents:"none",children:k("foreignObject",{x:h,y:b,width:w,height:x,children:k("div",{style:{width:`${w}px`,height:`${x}px`,background:S,borderRadius:r.borderRadius?`${r.borderRadius}px`:void 0,...E?{backdropFilter:E,WebkitBackdropFilter:E}:{},pointerEvents:"none"}})})});let{fill:I,def:_}=No(o,S,r.gradient,r.pattern),{filterAttr:A,def:P}=NC(o,r.filter),D=Ro(r.borderStyle,r.strokeWidth),M={fill:I,fillOpacity:r.fillOpacity,stroke:r.stroke,strokeWidth:r.strokeWidth,strokeDasharray:D,...A?{filter:A}:{}};return k("g",{className:`block-layer block-layer--shape ${T.className}`,style:T.style,"data-layer-id":e.id,pointerEvents:"none",children:[(_||P)&&k("defs",{children:[_,P]}),r.shape==="rect"&&k("rect",{x:h,y:b,width:w,height:x,rx:r.borderRadius,ry:r.borderRadius,...M}),r.shape==="circle"&&k("circle",{cx:m+c/2,cy:f+u/2,r:Math.min(c,u)/2,...M}),r.shape==="line"&&k("line",{x1:m,y1:f,x2:m+c,y2:f+u,stroke:r.stroke||"#ffffff",strokeWidth:r.strokeWidth||2,strokeDasharray:D})]})}function uY(e,t){let{content:n,position:r}=e;if(!n.shapeKind)return n.d;let i=r.width?Se(r.width,t.width):0,a=r.height?Se(r.height,t.height):0,o=Se(r.x,t.width),s=Se(r.y,t.height),l=Dt(r.anchor,i,a);return Ji(n.shapeKind,o+l.x,s+l.y,i,a)??n.d}function dY(e){return e.arrow}function $C(e,t,n){return e||(t==="both"||t===n?"arrow":"none")}function zC({layer:e,viewport:t,blockTime:n}){let{content:r,animation:i,id:a}=e,o=Po(tn(),a),s=uY(e,t),l=r.stroke??"#1e293b",c=r.strokeWidth??2,{fill:u,def:d}=No(o,r.fill??"none",r.gradient),m=r.borderStyle?Ro(r.borderStyle,c):r.dasharray,f=gt(i,n),p=`marker-start-${o}`,g=`marker-end-${o}`,h=dY(r),b=Ps($C(r.startMarker,h,"start"),"start"),w=Ps($C(r.endMarker,h,"end"),"end"),x=b?`url(#${p})`:void 0,T=w?`url(#${g})`:void 0,S=i?.type==="drawOn";return k("g",{className:`block-layer block-layer--path ${f.className}`,style:f.style,"data-layer-id":a,children:[k("defs",{children:[d,w&&k(HC,{id:g,dir:"end",d:w.d,filled:w.filled,stroke:l}),b&&k(HC,{id:p,dir:"start",d:b.d,filled:b.filled,stroke:l})]}),k("path",{d:s,stroke:l,strokeWidth:c,fill:u,fillOpacity:r.fillOpacity,strokeDasharray:S?void 0:m,pathLength:S?1:void 0,"data-squisq-draw":S?"stroke":void 0,markerStart:S?void 0:x,markerEnd:S?void 0:T}),S&&(x||T)&&k("path",{d:s,stroke:l,strokeWidth:c,strokeOpacity:0,fill:"none","data-squisq-draw":"markers",markerStart:x,markerEnd:T})]})}function HC({id:e,dir:t,d:n,filled:r,stroke:i}){return k("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:k("path",{d:n,fill:r?i:"none",stroke:r?"none":i,strokeWidth:r?void 0:1.5})})}var mY={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 C0(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 I0(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 fY(e,t,n,r,i,a=256){let o=C0(e,t,n),s=I0(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,p=[];for(let g=0;g<c;g++)for(let h=0;h<l;h++){let b=u+h,w=d+g,x=m+(b-o.x)*a,T=f+(w-o.y)*a;p.push({x:b,y:w,screenX:x,screenY:T});}return p}function UC(e,t,n,r){return e.url.replace("{z}",String(r)).replace("{x}",String(t)).replace("{y}",String(n))}async function pY(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 jC(e){let{center:t,zoom:n,style:r,width:i,height:a,markers:o=[],showAttribution:s=true}=e,l=mY[r],c=l.tileSize||256,u=Math.min(n,l.maxZoom),d=UC(l,0,0,u);if(!vn(d,e.policy))throw new pr("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 g=fY(t.lat,t.lng,u,i,a,c).map(async h=>{let b=UC(l,h.x,h.y,u);try{let w=await pY(b);f.drawImage(w,h.screenX,h.screenY,c,c);}catch(w){console.warn(`Tile load failed: ${b}`,w);}});await Promise.all(g);for(let h of o)hY(f,h,t,u,i,a,c);return s&&yY(f,l.attribution,i,a),m.toDataURL("image/png")}function hY(e,t,n,r,i,a,o){let s=C0(n.lat,n.lng,r),l=C0(t.lat,t.lng,r),c=I0(n.lat,n.lng,r,o),u=I0(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,p=a/2+m,g=t.color||"#ef4444",h=t.icon||"pin";e.save(),h==="pin"?(e.fillStyle=g,e.beginPath(),e.arc(f,p-12,8,Math.PI,0,false),e.lineTo(f,p),e.closePath(),e.fill(),e.fillStyle="#ffffff",e.beginPath(),e.arc(f,p-12,3,0,Math.PI*2),e.fill()):h==="circle"?(e.fillStyle=g,e.beginPath(),e.arc(f,p,8,0,Math.PI*2),e.fill(),e.strokeStyle="#ffffff",e.lineWidth=2,e.stroke()):h==="star"&&(e.fillStyle=g,gY(e,f,p,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,p+20)),e.restore();}function gY(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 yY(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 WC({layer:e,basePath:t,viewport:n,blockTime:r}){let{content:i,position:a,animation:o}=e,s=`map-clip-${tn().replace(/:/g,"")}-${e.id}`,l=Tt(i.staticSrc??"",t),[c,u]=ye(()=>i.staticSrc&&l||null),[d,m]=ye(!i.staticSrc),[f,p]=ye(null),[g,h]=ye(false),b=Se(a.x,n.width),w=Se(a.y,n.height),x=a.width?Se(a.width,n.width):n.width,T=a.height?Se(a.height,n.height):n.height,S=Dt(a.anchor,x,T),v=b+S.x,E=w+S.y,I=Fr();xe(()=>{let A=false;if(i.staticSrc){u(l||null),m(false);return}return m(true),p(null),h(false),jC({center:i.center,zoom:i.zoom,style:i.style,width:x,height:T,markers:i.markers,showAttribution:i.showAttribution!==false,policy:I}).then(P=>{A||(u(P),m(false));}).catch(P=>{if(!A){let D=P instanceof pr;D||console.error("Failed to compose map:",P),p(P instanceof Error?P.message:String(P)),h(D),m(false);}}),()=>{A=true;}},[i.center,i.zoom,i.style,i.staticSrc,l,i.markers,i.showAttribution,x,T,t,I]);let _=gt(o,r);return d?k("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[k("rect",{x:v,y:E,width:x,height:T,fill:"#e5e7eb"}),k("text",{x:v+x/2,y:E+T/2,textAnchor:"middle",dominantBaseline:"middle",fill:"#9ca3af",fontSize:"24",fontFamily:"system-ui, sans-serif",children:"Loading map..."})]}):f||!c?k("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[k("rect",{x:v,y:E,width:x,height:T,fill:g?"#f3f4f6":"#fef2f2"}),k("text",{x:v+x/2,y:E+T/2,textAnchor:"middle",dominantBaseline:"middle",fill:g?"#6b7280":"#dc2626",fontSize:"18",fontFamily:"system-ui, sans-serif",children:g?"Map unavailable offline":"Map failed to load"})]}):k("g",{className:`block-layer block-layer--map ${_.className}`,style:_.style,"data-layer-id":e.id,children:[k("defs",{children:k("clipPath",{id:s,children:k("rect",{x:v,y:E,width:x,height:T})})}),k("g",{clipPath:`url(#${s})`,children:k("image",{href:c,x:v,y:E,width:x,height:T,preserveAspectRatio:"xMidYMid slice",style:{pointerEvents:"none"}})})]})}var bY=.2;function VC({layer:e,basePath:t,viewport:n,blockTime:r,isPlaying:i,muted:a=false,mode:o="timed"}){let{content:s,position:l}=e,c=we(null),u=we(false),d=o==="player",m=s.startAt??0,f=r<m,p=Se(l.x,n.width),g=Se(l.y,n.height),h=l.width?Se(l.width,n.width):n.width,b=l.height?Se(l.height,n.height):n.height,w=Dt(l.anchor,h,b),x=p+w.x,T=g+w.y,S=Tt(s.src,t),v=Tt(s.posterSrc||"",t),E=s.posterSrc?v:void 0;return xe(()=>{let I=c.current;if(!I)return;if(I.currentTime=s.clipStart,u.current=true,d)return ()=>I.pause();if(i){let A=I.play();A&&A.catch(()=>{});}let _=()=>{I.currentTime>=s.clipEnd&&(I.pause(),I.currentTime=s.clipEnd);};return I.addEventListener("timeupdate",_),()=>{I.removeEventListener("timeupdate",_),I.pause();}},[S,s.clipStart,s.clipEnd,d]),xe(()=>{let I=c.current;if(!I||!u.current||d)return;let _=f?s.clipStart:Math.min(s.clipEnd,s.clipStart+Math.max(0,r-m));if(!Ma(I)&&Math.abs(I.currentTime-_)>bY&&(I.currentTime=_),f){I.pause();return}if(_>=s.clipEnd){I.pause();return}if(i){let A=I.play();A&&A.catch(()=>{});}else Ma(I)||I.pause();},[i,f,r,m,S,s.clipStart,s.clipEnd,d]),k("g",{className:"block-layer block-layer--video","data-layer-id":e.id,children:k("foreignObject",{x,y:T,width:h,height:b,children:k("video",{ref:c,src:S,poster:E,muted:a,playsInline:true,...d?{controls:true,preload:"metadata","aria-label":s.alt||void 0,"data-no-swipe":""}:{preload:"auto","data-clip-start":s.clipStart,"data-clip-end":s.clipEnd,"data-start-at":m},style:{width:`${h}px`,height:`${b}px`,objectFit:s.fit||"cover",objectPosition:"center",display:"block",pointerEvents:d?void 0:"none"}})})})}function wY(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 kY(e,t){return e.length>t?`${e.slice(0,t-1).trimEnd()}\u2026`:e}function xY({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 k(Fe,{children:[k("rect",{x:e.x,y:e.y,width:e.width,height:e.height,rx:d,fill:"#111318"}),r&&t.thumbnailUrl?k("image",{href:t.thumbnailUrl,x:e.x,y:e.y,width:e.width,height:e.height,preserveAspectRatio:"xMidYMid slice",opacity:.85}):null,k("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)}),k("path",{d:`M ${s-c*.36} ${l-c/2} L ${s+c*.54} ${l} L ${s-c*.36} ${l+c/2} Z`,fill:"#ffffff"}),k("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:kY(n?`${n} \xB7 ${t.providerName}`:t.providerName,70)})]})}function GC({layer:e,viewport:t,mode:n="poster"}){let r=yn(e.content.url);if(!r)return null;let{position:i}=e,a=i.width?Se(i.width,t.width):t.width,o=i.height?Se(i.height,t.height):t.height,s=Dt(i.anchor,a,o),l=wY({x:Se(i.x,t.width)+s.x,y:Se(i.y,t.height)+s.y,width:a,height:o},r.aspectRatio),c=e.content.title?.trim()??"";if(n!=="player")return k("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:k(xY,{box:l,embed:r,title:c,showThumbnail:n==="poster"})});let u=Xa(r,c);return k("g",{className:"block-layer block-layer--video-embed","data-layer-id":e.id,"data-provider":r.provider,children:k("foreignObject",{x:l.x,y:l.y,width:l.width,height:l.height,children:k("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 YC({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=Se(o.x,n.width),f=Se(o.y,n.height),p=o.width?Se(o.width,n.width):n.width,g=o.height?Se(o.height,n.height):n.height,h=Dt(o.anchor,p,g),b=m+h.x,w=f+h.y,x=gt(s,r),T=A=>{let P=l?.[A];return P?{textAlign:P}:void 0},S=c.borderRadius??8,v=c.fontSize*.6,E=c.fontSize*.75,I=k("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&&k("thead",{children:k("tr",{children:u.map((A,P)=>k("th",{style:{background:c.headerBackground,color:c.headerColor,fontFamily:c.headerFontFamily??c.fontFamily??"system-ui, sans-serif",fontWeight:600,padding:`${v}px ${E}px`,position:"sticky",top:0,zIndex:1,whiteSpace:"nowrap",borderBottom:`2px solid ${c.borderColor}`,borderRight:P<u.length-1?`1px solid ${c.borderColor}`:void 0,...T(P)},children:A},P))})}),d.length>0&&k("tbody",{children:d.map((A,P)=>k("tr",{children:A.map((D,M)=>k("td",{style:{background:c.cellBackground,color:c.cellColor,padding:`${v}px ${E}px`,whiteSpace:"nowrap",borderBottom:P<d.length-1?`1px solid ${c.borderColor}`:void 0,borderRight:M<A.length-1?`1px solid ${c.borderColor}`:void 0,...T(M)},children:D},M))},P))})]}),_=e?i:void 0;return k("g",{className:`block-layer block-layer--table ${x.className}`,style:x.style,"data-layer-id":t.id,children:k("foreignObject",{x:b,y:w,width:p,height:g,children:k("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:`${p}px`,height:`${g}px`,boxSizing:"border-box",overflow:_?"hidden":"auto",overscrollBehavior:"contain",scrollbarGutter:"stable",border:_?void 0:`1px solid ${c.borderColor}`,borderRadius:`${S}px`,background:_?"transparent":c.cellBackground},children:_?k(_,{block:e,layer:t,width:p,height:g,fallback:I}):I})})})}function XC(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 KC({layer:e,viewport:t,blockTime:n}){let{content:r,position:i,animation:a}=e,{items:o,style:s}=r,l=Se(i.x,t.width),c=Se(i.y,t.height),u=i.width?Se(i.width,t.width):t.width,d=i.height?Se(i.height,t.height):t.height,m=Dt(i.anchor,u,d),f=gt(a,n);return k("g",{className:`block-layer block-layer--tree ${f.className}`,style:f.style,"data-layer-id":e.id,children:k("foreignObject",{x:l+m.x,y:c+m.y,width:u,height:d,children:k("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:k(QC,{items:o,depth:0,style:s})})})})}function QC({items:e,depth:t,style:n}){return k("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=>k(vY,{item:r,style:n},r.id))})}function vY({item:e,style:t}){let n=e.children.length>0,[r,i]=ye(false),a=e.isDir||n,o=a?XC(t.folderIcon,r?"folder":"folder-open"):XC(t.fileIcon,"file");return k("li",{style:{position:"relative"},children:[k("div",{style:{display:"flex",alignItems:"baseline",gap:"8px",padding:"1px 0"},children:[n?k("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:k("i",{className:`fa-solid ${r?"fa-chevron-right":"fa-chevron-down"}`,"aria-hidden":"true"})}):k("span",{style:{flex:"0 0 auto",width:"1em"}}),k("i",{className:o,"aria-hidden":"true",style:{flex:"0 0 auto",color:t.iconColor,width:"1.2em",textAlign:"center"}}),k("span",{style:{color:a?t.dirColor:t.rowColor,fontWeight:a?600:400},children:e.label}),e.comment?k("span",{style:{color:t.commentColor,fontSize:"0.85em",fontStyle:"italic"},children:e.comment}):null]}),n&&!r?k(QC,{items:e.children,depth:1,style:t}):null]})}var xm=null,EY={startOnLoad:false,securityLevel:"strict",suppressErrorRendering:true,deterministicIds:false,logLevel:"error"};async function _Y(){return xm||(xm=Promise.resolve().then(()=>(JC(),ZC)).then(({default:e})=>e).catch(e=>{throw xm=null,e})),xm}function AY(e){let t=globalThis,r=(t.__squisqMermaidWorkQueue??Promise.resolve()).then(e,e);return t.__squisqMermaidWorkQueue=r.then(()=>{},()=>{}),r}var CY=.5;async function IY(e){let t=Element.prototype,n=t.getBoundingClientRect;function r(){let i=n.call(this);if(!(this instanceof HTMLElement)||this.parentElement?.localName!=="foreignObject")return i;let a=Number.parseFloat(this.style.maxWidth);return Math.abs(i.width-a)<CY?new DOMRect(i.x,i.y,a,i.height):i}t.getBoundingClientRect=r;try{return await e()}finally{t.getBoundingClientRect===r&&(t.getBoundingClientRect=n);}}function vm(e,t,n,r=dt){return AY(async()=>{let i=await _Y();i.initialize({...EY,theme:"base",themeVariables:y0(r)});let{svg:a,diagramType:o}=await IY(()=>i.render(e,t,n));return {svg:a,diagramType:o}})}function e5(e){return (e instanceof Error?e.message:String(e)).split(/\r?\n/).map(n=>n.trimEnd()).filter(Boolean).slice(0,6).join(`
764
+ `)||"Unknown Mermaid rendering error."}var MY=0;function Tm({source:e,className:t,ariaLabel:n="Mermaid diagram",theme:r=dt}){let[i,a]=ye(""),[o,s]=ye(""),[l,c]=ye(true);xe(()=>{let d=true,m=`squisq-rich-mermaid-${++MY}`;return c(true),s(""),vm(m,e,void 0,r).then(f=>{d&&a(f.svg);}).catch(f=>{d&&(a(""),s(e5(f)));}).finally(()=>{d&&c(false);}),()=>{d=false;}},[e,r]);let u=["squisq-mermaid-rendered",t].filter(Boolean).join(" ");return k("div",{className:u,role:"img","aria-label":n,style:{background:r.colors.backgroundLight,color:r.colors.text},children:[l&&k("div",{className:"squisq-mermaid-render-status",children:"Rendering diagram\u2026"}),!l&&o&&k("div",{className:"squisq-mermaid-render-error",role:"alert",children:[k("strong",{children:"Mermaid could not render this diagram."}),k("pre",{children:o})]}),!l&&!o&&i&&k("div",{className:"squisq-mermaid-render-svg",dangerouslySetInnerHTML:{__html:i}})]})}function t5({layer:e,viewport:t,blockTime:n,theme:r}){let{position:i,content:a,animation:o}=e,s=Se(i.width??t.width,t.width),l=Se(i.height??t.height,t.height),c=Se(i.x,t.width),u=Se(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=gt(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 k("g",{className:`block-layer block-layer--mermaid ${m.className}`,"data-layer-id":e.id,style:m.style,children:k("foreignObject",{x:c,y:u,width:s,height:l,children:k("div",{xmlns:"http://www.w3.org/1999/xhtml",className:"squisq-mermaid-layer-frame",style:f,children:k(Tm,{source:a.source,ariaLabel:"Mermaid diagram on slide",theme:r})})})})}function n5({layer:e,viewport:t,blockTime:n,isStatic:r=false}){let{position:i,content:a,animation:o}=e,s=Se(i.width??t.width,t.width),l=Se(i.height??t.height,t.height),c=Dt(i.anchor,s,l),u=Se(i.x,t.width)+c.x,d=Se(i.y,t.height)+c.y,m=he(()=>er(a.source,{static:r}),[a.source,r]),f=he(()=>m.ok?Hi(m.island,{color:a.color}):null,[m,a.color]),p=gt(o,n),g=a.alt??(m.ok?m.island.title:void 0)??"Illustration";return k("g",{className:`block-layer block-layer--svg ${p.className}`,"data-layer-id":e.id,style:p.style,children:f?k("image",{href:f,x:u,y:d,width:s,height:l,preserveAspectRatio:"xMidYMid meet",role:"img","aria-label":g,style:{pointerEvents:"none"}}):k("g",{role:"img","aria-label":"SVG that could not be rendered",children:[k("rect",{x:u,y:d,width:s,height:l,rx:Math.min(s,l)*.04,fill:"none",stroke:a.color??"currentColor",strokeOpacity:.35,strokeWidth:2,strokeDasharray:"8 6"}),k("text",{x:u+s/2,y:d+l/2,textAnchor:"middle",dominantBaseline:"middle",fill:a.color??"currentColor",fillOpacity:.6,fontSize:Math.max(12,Math.min(s,l)*.06),children:"Couldn\u2019t render this SVG"})]})})}function r5(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 qY={width:1920,height:1080},hr=1;function Sm(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 Ei(e){let t=parseFloat(e);return Number.isFinite(t)?t:0}function LY(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?Ei(r.paddingLeft)+Ei(r.paddingRight)+Ei(r.borderLeftWidth)+Ei(r.borderRightWidth):0,a=r?Ei(r.paddingTop)+Ei(r.paddingBottom)+Ei(r.borderTopWidth)+Ei(r.borderBottomWidth):0,o=Math.max(0,e.clientWidth-i),s=Math.max(0,e.clientHeight-a);if(t.scrollWidth>o+hr||t.scrollHeight>s+hr)return false;for(let l of t.querySelectorAll("[data-squisq-table-scroll]"))if(l.clientWidth>0&&l.scrollWidth>l.clientWidth+hr||l.clientHeight>0&&l.scrollHeight>l.clientHeight+hr)return false;return true}function PY(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+hr&&r.height*t<=a+hr}catch{return false}}function i5(e){return e.map(t=>t.querySelector('[data-squisq-text-content="true"]')?.getBoundingClientRect()).filter(t=>!!t&&t.width>0&&t.height>0)}function a5(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-hr&&i.right>a.left+hr&&i.top<a.bottom-hr&&i.bottom>a.top+hr&&t.add(`${n}:${r}`);}return t}function mn({block:e,buildPlayback:t="all",respectReducedMotion:n=true,blockTime:r,basePath:i,isEntering:a=false,isExiting:o=false,transition:s,viewport:l=qY,isPlaying:c,muted:u=false,animationsEnabled:d=true,theme:m,tableContentRenderer:f,growTextToFit:p=false,videoEmbeds:g="poster",videoClips:h="timed",staticMedia:b=false}){let w="",x={},T=d?s??e.transition:void 0;T&&a?(w=Ml(T.type,true,T.direction),x["--transition-duration"]=`${za(T)}s`):T&&o&&(w=Ml(T.type,false,T.direction),x["--transition-duration"]=`${za(T)}s`);let v=`vb-clip-${tn().replace(/:/g,"")}-${e.id}`,E=we(null),[I,_]=ye(1),A=he(()=>Pr(e),[e]),P=he(()=>e.build?gd(A,e.build,e.duration,e.buildTiming):void 0,[A,e.build,e.duration,e.buildTiming]),[D,M]=ye(false);xe(()=>{if(!n){M(false);return}let L=window.matchMedia?.("(prefers-reduced-motion: reduce)");if(!L)return;let z=()=>M(L.matches);return z(),L.addEventListener?.("change",z),()=>L.removeEventListener?.("change",z)},[n]),$t(()=>{let L=E.current;if(!L)return;let z=t==="all"||!P?{revealed:A.length,progress:1}:t==="timed"?Vh(P,r):t;L.dataset.buildRevealed=String(z.revealed),L.dataset.buildCount=String(A.length);for(let $ of L.querySelectorAll("[data-squisq-build-step]")){let O=Number($.dataset.squisqBuildStep);if(!Number.isInteger(O)||O<0||O>=A.length||!e.build){$.style.visibility="visible",$.style.opacity="1",$.style.transform="",$.style.pointerEvents="",$.removeAttribute("aria-hidden"),$.removeAttribute("inert");continue}let R=Gh(O,A,z,t==="all"?{...e.build,previous:"keep"}:e.build,d&&!D);$.style.visibility=R.hidden?"hidden":"visible",$.style.opacity=String(R.opacity),$.style.transform=`translate(${R.x}px, ${R.y}px)`,$.style.pointerEvents=R.hidden?"none":"",$.setAttribute("aria-hidden",String(R.hidden)),$.toggleAttribute("inert",R.hidden);}},[e.build,A,P,r,t,d,D]);let B=p&&!Hh(e.template);return $t(()=>{let L=E.current,z=false;if(!L)return;let $=()=>{if(z)return;let R=Array.from(L.querySelectorAll("[data-squisq-text-fit]"));if(!B||R.length===0){Sm(R,1),_(1);return}Sm(R,1);let C=a5(i5(R)),ee=r5(q=>{if(Sm(R,q),R.some(X=>X.dataset.squisqTextFit==="html"?!LY(X):!PY(X,q)))return false;let j=a5(i5(R));for(let X of j)if(!C.has(X))return false;return true});Sm(R,ee),_(q=>q===ee?q:ee);};$();let O=L.ownerDocument?.fonts;return O&&O.status!=="loaded"&&O.ready.then($),()=>{z=true;}},[e.layers,B,l.height,l.width]),k("svg",{ref:E,className:`block-svg ${w}`,style:x,viewBox:`0 0 ${l.width} ${l.height}`,preserveAspectRatio:"xMidYMid meet",overflow:"hidden","data-block-id":e.id,"data-squisq-text-scale":B?I:void 0,children:[k("defs",{children:k("clipPath",{id:v,children:k("rect",{x:"0",y:"0",width:l.width,height:l.height})})}),k("g",{clipPath:`url(#${v})`,children:(e.layers??[]).map(L=>k(RY,{block:e,layer:L,basePath:i,viewport:l,blockTime:r,isPlaying:c,muted:u,animationsEnabled:d,theme:m,tableContentRenderer:f,textScale:I,videoEmbeds:g,videoClips:h,staticMedia:b||D||!d},L.id))})]})}function RY({block:e,layer:t,basePath:n,viewport:r,blockTime:i,isPlaying:a,muted:o,animationsEnabled:s,theme:l,tableContentRenderer:c,textScale:u,videoEmbeds:d,videoClips:m,staticMedia:f}){let p=s||!t.animation?t:{...t,animation:void 0};switch(p.type){case "image":return k(RC,{layer:p,basePath:n,viewport:r,blockTime:i,animationsEnabled:s,isStatic:f});case "text":return k(DC,{layer:p,viewport:r,blockTime:i,textScale:u});case "shape":return k(BC,{layer:p,viewport:r,blockTime:i});case "path":return k(zC,{layer:p,viewport:r,blockTime:i});case "map":return k(WC,{layer:p,basePath:n,viewport:r,blockTime:i});case "video":return k(VC,{layer:p,basePath:n,viewport:r,blockTime:i,isPlaying:a,muted:o,mode:m});case "videoEmbed":return k(GC,{layer:p,viewport:r,mode:d});case "table":return k(YC,{block:e,layer:p,viewport:r,blockTime:i,contentRenderer:c});case "tree":return k(KC,{layer:p,viewport:r,blockTime:i});case "mermaid":return k(t5,{layer:p,viewport:r,blockTime:i,theme:l});case "svg":return k(n5,{layer:p,viewport:r,blockTime:i,isStatic:f});default:return console.warn(`Unknown layer type: ${p.type}`),null}}var o5={wordPadEm:.16,columnGapEm:.28,chunkPadXEm:.55,letterSpacingEm:.01};function Em(e="upper"){return e==="upper"?o5:{...o5,columnGapEm:.16}}var NY={A:.76,B:.76,C:.72,D:.83,E:.72,F:.67,G:.81,H:.91,I:.45,J:.6,K:.82,L:.69,M:1.02,N:.84,O:.82,P:.7,Q:.82,R:.8,S:.65,T:.68,U:.83,V:.76,W:1.13,X:.81,Y:.73,Z:.69,0:.7,1:.5,2:.63,3:.62,4:.65,5:.6,6:.65,7:.55,8:.68,9:.65,"'":.28,"\u2019":.33,".":.33,",":.33,";":.37,":":.37,"!":.38,"?":.55,"-":.38,"\u2013":.7,"\u2014":1,'"':.56,"\u201C":.52,"\u201D":.52,"(":.45,")":.45,"%":1,"&":.83,"/":.47,"\xB0":.42,$:.64},DY={A:.76,B:.76,C:.74,D:.83,E:.72,F:.67,G:.81,H:.91,I:.45,J:.6,K:.82,L:.69,M:1.02,N:.84,O:.82,P:.7,Q:.82,R:.8,S:.67,T:.68,U:.83,V:.76,W:1.13,X:.81,Y:.73,Z:.69,a:.6,b:.65,c:.57,d:.66,e:.57,f:.39,g:.61,h:.68,i:.35,j:.35,k:.63,l:.34,m:1.02,n:.69,o:.64,p:.66,q:.65,r:.52,s:.56,t:.4,u:.68,v:.57,w:.86,x:.59,y:.56,z:.53,0:.7,1:.57,2:.63,3:.62,4:.65,5:.6,6:.65,7:.57,8:.68,9:.65,"'":.28,"\u2019":.31,".":.33,",":.33,";":.37,":":.37,"!":.38,"?":.61,"-":.41,"\u2013":.7,"\u2014":1,'"':.51,"\u201C":.52,"\u201D":.52,"(":.45,")":.45,"%":1,"&":.9,"/":.47,"\xB0":.44,$:.64},OY=.9,FY=1.06;function M0(e,t="upper"){let n=t==="upper",r=n?NY:DY,i=0,a=0;for(let l of (n?e.toUpperCase():e).normalize("NFD").replace(/\p{M}/gu,""))i+=r[l]??OY,a++;let{letterSpacingEm:o,wordPadEm:s}=Em(t);return (i+a*o)*FY+2*s}function BY(e,t,n="upper"){let{columnGapEm:r}=Em(n),i=0,a=0;for(let o of e){let s=M0(o,n);i===0?(i=1,a=s):a+r+s<=t?a+=r+s:(i++,a=s);}return i}function $Y(e){return /[.!?…]["'”’»)\]]*$/.test(e)}function HY(e){if(e.words&&e.words.length>0)return e.words.map(i=>({text:i.text,startTime:i.startTime,endTime:i.endTime,...i.paragraphEnd?{paragraphEnd:true}:{}}));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 s5(e,t=Number.POSITIVE_INFINITY,n="upper"){let r=[];for(let l of e.phrases)for(let c of HY(l))r.push({...c,segment:l.audioSegment});if(r.length===0)return {words:[],chunks:[]};let i=4;if(r.length>i){let l=Math.ceil(r.length/i);i=Math.ceil(r.length/l),i=Math.min(6,Math.max(2,i));}else i=Math.max(2,r.length);let a=[],o=[],s=()=>{o.length!==0&&(a.push({words:o,startTime:o[0].startTime,endTime:o[o.length-1].endTime}),o=[]);};for(let l of r)o.length>0&&(o.length>=i||l.segment!==o[0].segment||o[o.length-1].paragraphEnd||o.length>=2&&$Y(o[o.length-1].text)||BY([...o.map(c=>c.text),l.text],t,n)>2)&&s(),o.push(l);return s(),{words:r,chunks:a}}function l5(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 zY(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 UY=1;function c5({captions:e,currentTime:t,enabled:n=true,theme:r,viewport:i,position:a="bottom"}){let o=i?.width??1280,s=i?.height??720,l=s>o,c=Math.min(s*.055,o*.068),u=Math.max(22,Math.min(96,Math.round(c))),d=l?.07:.1,m=r?.typography?.captionCase??"upper",{wordPadEm:f,columnGapEm:p,chunkPadXEm:g,letterSpacingEm:h}=Em(m),b=o*(1-2*d)/u-2*g,{chunks:w}=he(()=>e?s5(e,b,m):{words:[],chunks:[]},[e,b,m]);if(!n||w.length===0)return k("div",{className:"social-caption-overlay",style:{position:"absolute",...l5(a,l),left:0,right:0,zIndex:50,pointerEvents:"none",opacity:0,transition:"opacity 0.15s ease-in-out"}});let x=null,T=-1;for(let A of w)if(t>=A.startTime&&t<A.endTime){x=A;break}if(!x){for(let A=w.length-1;A>=0;A--)if(t>=w[A].endTime){t<w[A].endTime+UY&&(x=w[A],T=x.words.length-1);break}}if(!x)return null;if(T===-1){for(let A=0;A<x.words.length;A++){let P=x.words[A];if(t>=P.startTime&&t<P.endTime){T=A;break}}if(T===-1){for(let A=x.words.length-1;A>=0;A--)if(t>=x.words[A].startTime){T=A;break}}T===-1&&(T=0);}let S=r?.colors?.primary??"#5b9bd5",v=r?.typography?.captionFont??r?.typography?.titleFont,E=v?Ct(v,'"PT Serif", Georgia, serif'):'"PT Serif", Georgia, serif',I=Math.max(...x.words.map(A=>M0(A.text,m))),_=I>b?Math.max(16,Math.floor(u*b/I)):u;return k("div",{className:"social-caption-overlay",style:{position:"absolute",...l5(a,l),left:0,right:0,zIndex:50,pointerEvents:"none",display:"flex",justifyContent:"center",padding:`0 ${d*100}%`,boxSizing:"border-box",opacity:1,transition:"opacity 0.15s ease-in-out"},children:k("div",{className:"social-caption-overlay__chunk",style:{display:"inline-flex",flexWrap:"wrap",justifyContent:"center",alignItems:"baseline",maxWidth:"100%",rowGap:"0.12em",columnGap:`${p}em`,padding:`0.22em ${g}em`,borderRadius:"0.4em",background:"rgba(10, 10, 12, 0.42)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",fontFamily:E,fontSize:`${_}px`,lineHeight:1.18,textTransform:m==="upper"?"uppercase":"none",letterSpacing:`${h}em`,whiteSpace:"normal"},children:x.words.map((A,P)=>{let D=P===T;return k("span",{className:D?"social-caption-overlay__word is-active":"social-caption-overlay__word",style:{display:"inline-block",whiteSpace:"nowrap",padding:`0 ${f}em`,borderRadius:"0.18em",fontWeight:800,color:D?zY(S):"rgba(255, 255, 255, 0.95)",background:D?S:"transparent",textShadow:D?"none":"0 2px 6px rgba(0,0,0,0.75), 0 0 18px rgba(0,0,0,0.45)",transform:D?"scale(1.05)":"none",transition:"color 0.1s ease, background-color 0.1s ease, transform 0.1s ease"},children:A.text},`${A.startTime}-${P}`)})})})}function jY(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 u5({captions:e,currentTime:t,enabled:n=true,fontSize:r=16,captionStyle:i="standard",captionPosition:a,theme:o,viewport:s}){if(i==="social")return k(c5,{captions:e,currentTime:t,enabled:n,theme:o,viewport:s,position:a??"bottom"});let c=(n&&e?Ll(e,t):null)?.text??null;return k("div",{className:"caption-overlay",style:{position:"absolute",...jY(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&&k("div",{style:{display:"inline-block",padding:"3px 10px",background:"rgba(0, 0, 0, 0.65)",borderRadius:"4px",backdropFilter:"blur(4px)"},children:k("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 WY="(prefers-color-scheme: dark)";function _m(e){let t=he(()=>e&&typeof window<"u"?window.matchMedia(WY):null,[e]),n=Ee(i=>t?(t.addEventListener("change",i),()=>t.removeEventListener("change",i)):()=>{},[t]),r=Ee(()=>t?.matches?Hp:$u,[t]);return tw(n,r)}function q0(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 d5(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 GY=15e3,m5="Audio could not be loaded. Check that the media file is available.",f5="Audio playback failed. Check that the media file is supported and available.",YY=30;function p5(e){return e instanceof Error?e.name==="NotAllowedError"||e.name==="AbortError":false}function XY(e,t){return !e||/^(?:[a-z][a-z0-9+.-]*:|\/\/|\/)/i.test(e)||!t?e:`${t.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}function h5(e,t,n="",r=true,i="media",a=0){let o=he(()=>i!=="synthetic"||t?.segments?.length||a<=0?t:{...t,segments:[{src:"",name:"synthetic",duration:a,startTime:0}]},[t,i,a]),s=Fr(),[l,c]=ye(0),[u,d]=ye(false),[m,f]=ye(0),[p,g]=ye(false),[h,b]=ye(false),[w,x]=ye(0),[T,S]=ye(true),[v,E]=ye(),[I,_]=ye(false),A=we([]),P=we(null),D=we(null),M=we(null),B=we(false),L=we(new Map),z=we(new Map),$=we(new Set),O=we(0),R=we(void 0);R.current=o?.segments[m]?.src;let C=we(null),U=we(null),ee=we(null),q=we(0);q.current=m;let j=we(false);xe(()=>{if(O.current+=1,P.current=null,D.current?.(),D.current=null,B.current=false,j.current=false,C.current=null,U.current=null,ee.current=null,c(0),f(0),d(false),g(false),b(false),S(true),E(void 0),_(false),!r||!o?.segments){A.current=[],x(0);return}let V=q0(o.segments);A.current=V.segmentStarts,x(V.totalDuration),i==="synthetic"&&b(true);},[o,r,i]);let X=Ee(async V=>{let ne=XY(V,n);if(!vn(ne,s))return "";if(L.current.has(V)){let _e=L.current.get(V);return L.current.delete(V),L.current.set(V,_e),_e}if(z.current.has(V))return z.current.get(V);let re=new AbortController;$.current.add(re);let ge=O.current,Me=(async()=>{try{let _e=await E0(ne,{policy:s,signal:re.signal,contentTypePrefixes:["audio/","video/","application/octet-stream"]}),Re=new Blob([_e.bytes.slice().buffer],{type:_e.contentType||"application/octet-stream"}),Oe=URL.createObjectURL(Re);if(re.signal.aborted||ge!==O.current)return URL.revokeObjectURL(Oe),ne;for(L.current.set(V,Oe);L.current.size>2;){let Ge=[...L.current.entries()].find(([tt])=>tt!==R.current)??L.current.entries().next().value;if(!Ge)break;L.current.delete(Ge[0]),URL.revokeObjectURL(Ge[1]);}return Oe}catch{return ""}})();return z.current.set(V,Me),Me.then(()=>{$.current.delete(re),z.current.get(V)===Me&&z.current.delete(V);}),Me},[n,s]);xe(()=>{if(!r||!o?.segments)return;let V=L.current,ne=$.current,re=z.current;return ()=>{O.current+=1,ne.forEach(ge=>ge.abort()),ne.clear(),re.clear(),V.forEach(ge=>{URL.revokeObjectURL(ge);}),V.clear();}},[o,X,r]),xe(()=>{if(!r||i==="synthetic")return;let V=o?.segments[m];V&&X(V.src);},[o,m,r,i,X]),xe(()=>{if(!r||i==="synthetic")return;let V=e.current;if(!V)return;ee.current=null;let ne=()=>{if(j.current)return;let tt=(A.current[m]||0)+V.currentTime;c(tt);let ot=o?.segments[m],Ne=o?.segments[m+1];ot&&Ne&&ee.current!==Ne.src&&ot.duration-V.currentTime<=YY&&(ee.current=Ne.src,X(Ne.src));},re=()=>{d(true);},ge=()=>{d(false),_(false);},Me=()=>_(true),_e=()=>_(false),Re=()=>{b(true),d(false),_(false),S(false),E(m5),B.current=false,P.current!==null&&(c(P.current),P.current=null),D.current?.(),D.current=null;},Oe=()=>{o&&m<o.segments.length-1?(B.current=true,f(Ge=>Ge+1)):(g(true),d(false));};return V.addEventListener("timeupdate",ne),V.addEventListener("play",re),V.addEventListener("playing",Me),V.addEventListener("waiting",_e),V.addEventListener("pause",ge),V.addEventListener("ended",Oe),V.addEventListener("error",Re),()=>{V.removeEventListener("timeupdate",ne),V.removeEventListener("play",re),V.removeEventListener("playing",Me),V.removeEventListener("waiting",_e),V.removeEventListener("pause",ge),V.removeEventListener("ended",Oe),V.removeEventListener("error",Re);}},[e,m,o,r,i,X]);let K=Ee((V,ne)=>{let re=C.current;return !!V.src&&re?.key===ne&&re.url===V.src},[]);xe(()=>{if(!r||i==="synthetic")return;let V=e.current;if(!V||!o?.segments)return;let ne=o.segments[m];if(!ne)return;let re=()=>{if(P.current!==null){let Re=A.current[m]||0,Oe=P.current-Re;V.currentTime=Math.max(0,Oe),c(P.current),P.current=null,D.current?.(),D.current=null;}B.current&&(V.play().then(()=>{S(true),E(void 0);},Re=>{Re instanceof Error&&Re.name==="AbortError"||(d(false),p5(Re)||(S(false),E(f5)));}),B.current=false);},ge=K(V,ne.src),Me=false,_e=null;return ge?(U.current===ne.src&&(U.current=null),re()):(async()=>{U.current=ne.src;let Oe=await X(ne.src);if(!Me){if(U.current=null,!Oe){V.removeAttribute("src"),V.load(),C.current=null,B.current=false,b(true),d(false),S(false),E(m5),P.current!==null&&(c(P.current),P.current=null),D.current?.(),D.current=null;return}_e=()=>{Me||(b(true),re(),_e&&V.removeEventListener("canplay",_e));},V.addEventListener("canplay",_e),V.src=Oe,C.current={key:ne.src,url:V.src},V.load(),_(false),B.current||d(false),await Promise.resolve(),V.readyState>=3&&(_e&&V.removeEventListener("canplay",_e),b(true),re());}})(),()=>{Me=true,_e&&V.removeEventListener("canplay",_e);}},[e,m,o,X,r,i,K]);let G=Ee(async V=>{let ne=e.current;if(!o?.segments)return;let re=w>0?Math.max(0,Math.min(V,w)):Math.max(0,V),ge=A.current.length===o.segments.length?A.current:q0(o.segments).segmentStarts,{segmentIndex:Me,segmentStart:_e}=d5(re,o.segments,ge),Re=i==="synthetic"?u:!ne?.paused;if(g(false),!ne&&i==="media"){f(Me),c(re);return}if(Me!==q.current){P.current=re,B.current=Re,i==="media"&&r&&(U.current=o.segments[Me].src);let Oe=new Promise(Ge=>{D.current?.();let tt=false,ot=()=>{tt||(tt=true,clearTimeout(Ne),D.current===ot&&(D.current=null),Ge());},Ne=setTimeout(ot,GY);D.current=ot;});M.current=Oe,f(Me),i==="synthetic"&&(c(re),P.current=null,D.current?.(),D.current=null),await Oe;}else if(P.current!==null&&i==="media"&&r)P.current=re,c(re),await M.current;else {let Oe=re-_e;ne&&i==="media"&&(ne.currentTime=Math.max(0,Oe)),c(re);}},[e,o,r,u,i,w]),ae=Ee(async()=>{if(i==="synthetic"){j.current=true,d(true);return}let V=e.current;if(V){p&&await G(0);let ne=o?.segments[q.current];if(ne&&U.current===ne.src&&!K(V,ne.src)){B.current=true,d(true),V.getAttribute("src")||V.play().catch(()=>{});return}try{await V.play(),j.current=!1,S(!0),E(void 0);}catch(re){if(j.current=false,re instanceof Error&&re.name==="AbortError"){B.current||d(false);return}d(false),p5(re)||(S(false),E(f5));}}},[e,o,p,K,i,G]),ke=Ee(()=>{B.current=false;let V=e.current;V&&V.pause(),d(false);},[e]),W=Ee(()=>{!e.current&&i==="media"||(u?ke():ae());},[e,u,i,ae,ke]),Q=Ee(V=>{!o?.segments||V<0||V>=o.segments.length||(f(V),g(false));},[o]),te=Ee(async()=>{await G(0),await ae();},[G,ae]);return xe(()=>{if(!u||!j.current||!w)return;let V=performance.now(),ne,re=ge=>{if(!j.current)return;let Me=(ge-V)/1e3;V=ge,c(_e=>{let Re=_e+Me;return Re>=w?(j.current=false,g(true),d(false),w):Re}),ne=requestAnimationFrame(re);};return ne=requestAnimationFrame(re),()=>cancelAnimationFrame(ne)},[u,w]),{currentTime:l,isPlaying:u,currentSegment:m,totalDuration:w,isEnded:p,isReady:h,isBuffering:i==="media"&&u&&!I,isAvailable:T,unavailableMessage:v,play:ae,pause:async()=>ke(),toggle:async()=>W(),seekTo:G,skipToSegment:async V=>Q(V),restart:te}}var KY={},g5=new Map,QY=0;function ZY(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 y5(e,t,n){let r=La(),i=Fr(),a=he(()=>{let c=new Map;for(let u of zt(e??[])){let d=!!u.template&&dd(ut(u.template))?.ownership==="native-slot";if(!(u.summaryLayout!=="feature"&&!d)){for(let m of wn(u.contents))c.set(m.src,{kind:"image",source:m.src});for(let m of Un(u.contents))c.set(m.src,{kind:"video",source:m.src});for(let m of u.contents??[])m.type==="code"&&m.lang?.trim().toLowerCase()==="mermaid"&&c.set(m.value,{kind:"mermaid",source:m.value});}}return JSON.stringify([...c.values()])},[e]),o=he(()=>({sourceKey:a,provider:r,policy:i,basePath:t,theme:n}),[a,r,i,t,n]),[s,l]=ye();return xe(()=>{if(typeof document>"u")return;let c=true,u=[],d={},m=(p,g)=>{!c||!Number.isFinite(g)||g<=0||(d[p]=g,l({scope:o,ratios:{...d}}));},f=JSON.parse(a);for(let{kind:p,source:g}of f){if(p==="mermaid"){vm(`squisq-feature-measure-${++QY}`,g,void 0,n).then(({svg:b})=>{if(!c)return;let w=new DOMParser().parseFromString(b,"image/svg+xml").documentElement.getAttribute("viewBox")?.trim().split(/[\s,]+/).map(Number);w?.length===4&&w[2]>0&&w[3]>0&&m(g,w[2]/w[3]);}).catch(()=>{});continue}(async()=>{let b=/^(?:[a-z][a-z0-9+.-]*:|\/\/|\/)/i.test(g),x=b?g:`${t.replace(/\/$/,"")}/${g}`;if(!b&&r)try{if(x=await r.resolveUrl(g),!x||x===g)return}catch{return}if(!c||!vn(x,i))return;let T=`${p}:${x}`,S=g5.get(T);if(S!==void 0){m(g,S);return}u.push(ZY(p,x,v=>{c&&(g5.set(T,v),m(g,v));}));})();}return ()=>{c=false,u.forEach(p=>p());}},[a,r,i,t,n,o]),s?.scope===o?s.ratios:KY}function b5(e,t,n={}){let{viewport:r=ct.landscape,theme:i,onSeek:a,useAudioSegmentTiming:o=true,deterministicTransitions:s=false,motion:l,basePath:c="."}=n,u=y5(e?.blocks,c,i??dt),d=he(()=>{if(!e?.blocks)return [];let L=e.blocks.some(R=>R.children&&R.children.length>0)?zt(e.blocks):e.blocks,z=L.some(ft),$=i??dt,O=Qs({persistentLayers:e.persistentLayers},$);if(z){let R=o?e.audio?.segments?.map(U=>({startTime:U.startTime,duration:U.duration})):void 0,C=Uh(L,{audioSegments:R,viewport:r,mediaAspectRatios:u,persistentLayers:O,theme:i,motion:oo({motion:e.motion,frontmatter:e.frontmatter},$,l),customTemplates:e.customTemplates});return Yh(e,C)}return L.map((R,C)=>{let U=Xo(R,$,C);return U!==R.transition?{...R,transition:U}:R})},[e,l,u,r,i,o]),m=he(()=>h0(d,t),[d,t]),f=he(()=>m?d.indexOf(m):-1,[d,m]),p=he(()=>m?Math.max(0,t-m.startTime):0,[m,t]),g=he(()=>!m||m.duration===0?0:Math.min(1,p/m.duration),[m,p]),h=he(()=>!e||e.duration===0?0:Math.min(1,t/e.duration),[e,t]),b=we(null),w=we(null),x=we(null),T=we(null),S=Ee(B=>{if(w.current===B){b.current=null,T.current=null;return}T.current=B;},[]);if(m&&m.id!==w.current){let B=T.current===m.id;b.current=B?null:x.current,T.current=null,w.current=m.id;}x.current=m;let v=m?.transition?za(m.transition):0,E=!!m&&v>0&&p<v,I=s?f>0?d[f-1]??null:null:b.current,_=E&&I!=null&&I.id!==m?.id,A=_?I:null,P=Ee(B=>{if(!e||B<0||B>=d.length)return;let L=d[B];L&&a?.(L.startTime);},[e,d,a]),D=Ee(()=>{if(f<d.length-1)return P(f+1)},[f,d.length,P]),M=Ee(()=>{if(f>0)return P(f-1)},[f,P]);return {currentBlock:m,currentBlockIndex:f,previousBlock:A,isEntering:E,isExiting:_,blockTime:p,blockProgress:g,docProgress:h,nextBlock:D,prevBlock:M,goToBlock:P,suppressOutgoingForNextBlock:S,blocks:d}}function JY(e,t){let n=e/t;return n>1.2?"landscape":n<.83?"portrait":"square"}function eX(e){switch(e){case "portrait":return ct.portrait;case "square":return ct.square;default:return ct.landscape}}function w5(){let[e,t]=ye(()=>({width:typeof window<"u"?window.innerWidth:1920,height:typeof window<"u"?window.innerHeight:1080}));xe(()=>{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=he(()=>JY(e.width,e.height),[e.width,e.height]);return {viewport:he(()=>eX(n),[n]),orientation:n,windowSize:e}}var tX=.3,nX=.5,rX=12,iX=.35,aX=260;function oX({dx:e,width:t,elapsedMs:n,canNext:r,canPrev:i}){let a=t>0?t*tX:1/0,o=n>0?Math.abs(e)/n:0,s=Math.abs(e)>=a,l=o>=nX&&Math.abs(e)>=rX;return !s&&!l?"snap":e<0?r?"next":"snap":e>0&&i?"prev":"snap"}function k5(e){let t=e.settleMs??aX,[n,r]=ye(0),[i,a]=ye("idle"),o=we(e);o.current=e;let s=we(null),l=we("idle");l.current=i;let c=we(null),u=we(null),d=Ee(()=>{c.current!=null&&(clearTimeout(c.current),c.current=null),u.current!=null&&(cancelAnimationFrame(u.current),u.current=null);},[]),m=Ee(f=>{if(!o.current.enabled||l.current==="settling"||f.pointerType==="mouse"&&f.button!==0)return;let g=f.target;if(!g.closest?.("button, a, input, textarea, select, [data-no-swipe]")){s.current={pointerId:f.pointerId,startX:f.clientX,startTime:performance.now(),target:g};try{g.setPointerCapture?.(f.pointerId);}catch{}a("dragging"),r(0);}},[]);return xe(()=>{function f(){return o.current.containerRef.current?.getBoundingClientRect().width??0}function p(x){s.current=null;try{x.target.releasePointerCapture?.(x.pointerId);}catch{}}function g(x,T){a("settling"),u.current=requestAnimationFrame(()=>{u.current=null,r(x),c.current=setTimeout(()=>{c.current=null,T?.(),r(0),a("idle");},t);});}function h(x){let T=s.current;if(!T||x.pointerId!==T.pointerId)return;let S=o.current,v=x.clientX-T.startX,E=v>0&&!S.canGoPrev||v<0&&!S.canGoNext;r(E?v*iX:v);}function b(x){let T=s.current;if(!T||x.pointerId!==T.pointerId)return;p(T);let S=o.current,v=x.clientX-T.startX,E=f(),I=performance.now()-T.startTime,_=oX({dx:v,width:E,elapsedMs:I,canNext:S.canGoNext,canPrev:S.canGoPrev});if(_==="snap"){g(0);return}let A=Math.max(E,Math.abs(v)),P=_==="next"?-A:A;g(P,_==="next"?S.onNext:S.onPrev);}function w(x){let T=s.current;!T||x.pointerId!==T.pointerId||(p(T),g(0));}return window.addEventListener("pointermove",h),window.addEventListener("pointerup",b),window.addEventListener("pointercancel",w),()=>{window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",w);}},[t]),xe(()=>{e.enabled||(s.current=null,d(),a("idle"),r(0));},[e.enabled,d]),xe(()=>d,[d]),{offsetPx:n,phase:i,onPointerDown:m}}function Ra(e){let t=Math.floor(e/60),n=Math.floor(e%60);return `${t}:${n.toString().padStart(2,"0")}`}var x5="var(--squisq-player-accent, #5b9bd5)";function Am({state:e,actions:t,blockMarkers:n,expandedBlocks:r,getBlockTitle:i}){let a=we(null),[o,s]=ye(null),l=e.totalDuration>0?Math.max(0,Math.min(1,e.currentTime/e.totalDuration)):0,c=Ee(p=>{let g=a.current;if(!g)return;let h=g.getBoundingClientRect(),b=p.clientX-h.left,w=Math.max(0,Math.min(1,b/h.width));s(w);},[]),u=Ee(()=>{s(null);},[]),d=Ee(p=>{let g=null;switch(p.key){case "ArrowLeft":case "ArrowDown":g=e.currentTime-5;break;case "ArrowRight":case "ArrowUp":g=e.currentTime+5;break;case "Home":g=0;break;case "End":g=e.totalDuration;break}g!=null&&(p.preventDefault(),t.seekTo(Math.max(0,Math.min(e.totalDuration,g))));},[t,e.currentTime,e.totalDuration]),m=Ee(p=>{for(let g=r.length-1;g>=0;g--){let h=r[g];if(p>=h.startTime)return {block:h,index:g}}return r.length>0?{block:r[0],index:0}:null},[r]),f=-1;for(let p of n)p.isSectionStart&&p.block.startTime<=e.currentTime&&(f=p.index);return k("div",{ref:a,role:"group","aria-label":"Playback timeline",style:{flex:1,height:"24px",cursor:"pointer",position:"relative",display:"flex",alignItems:"center"},onClick:p=>{let g=p.currentTarget.getBoundingClientRect(),b=(p.clientX-g.left)/g.width;t.seekTo(b*e.totalDuration);},onMouseMove:c,onMouseLeave:u,children:[k("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":`${Ra(e.currentTime)} of ${Ra(e.totalDuration)}`,onKeyDown:d,style:{position:"absolute",left:0,right:0,height:"6px",background:"rgba(255,255,255,0.2)",borderRadius:"3px"}}),k("div",{"data-testid":"doc-progress-fill",style:{position:"absolute",left:0,width:`${l*100}%`,height:"6px",background:x5,borderRadius:"3px"}}),n.map((p,g)=>{let h=p.isSectionStart,b=h?p.index===f:p.index===e.currentBlockIndex;return k("button",{type:"button","data-marker":h?"chapter":"slide",tabIndex:h?0:-1,style:{position:"absolute",left:`${p.position}%`,transform:"translateX(-50%)",boxSizing:"border-box",borderRadius:"50%",cursor:"pointer",transition:"transform 0.15s, background-color 0.15s",...h?{width:"14px",height:"14px",padding:0,backgroundColor:b?"#ffffff":"rgba(255,255,255,0.75)",border:`2px solid ${x5}`,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:p.title,"aria-label":`Seek to ${p.title}`,onClick:w=>{w.stopPropagation(),t.seekTo(p.block.startTime);},onMouseEnter:w=>{w.currentTarget.style.transform="translateX(-50%) scale(1.3)";},onMouseLeave:w=>{w.currentTarget.style.transform="translateX(-50%)";}},`${p.block.id}-${g}`)}),o!==null&&k("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:[k("div",{style:{color:"white",fontSize:"12px",fontFamily:"monospace"},children:Ra(o*e.totalDuration)}),(()=>{let p=o*e.totalDuration,g=m(p);return g&&i?k("div",{style:{color:"rgba(255,255,255,0.7)",fontSize:"11px",marginTop:"2px"},children:i(g.block)}):null})()]}),o!==null&&k("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}})]})}var v5={pointerEvents:"none"},T5=2*Math.PI*10.5;function sX(){return typeof window>"u"||typeof window.matchMedia!="function"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function S5({isPlaying:e,isBuffering:t=false,size:n}){if(e&&t){let r=T5/4;return k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:n,height:n,"aria-hidden":"true",style:v5,"data-testid":"play-pause-buffering",children:[k("path",{d:"M9 8h2v8H9zm4 0h2v8h-2z"}),k("g",{opacity:"0",children:[k("animate",{attributeName:"opacity",from:"0",to:"1",begin:`${.15}s`,dur:"0.2s",fill:"freeze"}),k("circle",{cx:"12",cy:"12",r:"10.5",fill:"none",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2"}),k("circle",{cx:"12",cy:"12",r:"10.5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:`${r} ${T5-r}`,children:!sX()&&k("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"0.9s",repeatCount:"indefinite"})})]})]},"buffering")}return k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:n,height:n,"aria-hidden":"true",style:v5,children:e?k("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}):k("path",{d:"M8 5v14l11-7z"})},e?"pause":"play")}function E5({state:e,actions:t,blockMarkers:n,expandedBlocks:r,getBlockTitle:i}){return k("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:[k("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:k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("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"})})}),k("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","aria-busy":e.isPlaying&&e.isBuffering?true:void 0,title:e.isPlaying&&e.isBuffering?"Loading audio\u2026":void 0,children:k(S5,{isPlaying:e.isPlaying,isBuffering:e.isBuffering,size:20})}),k("span",{style:{color:"white",fontSize:"12px",minWidth:"80px",fontFamily:"monospace"},children:[Ra(e.currentTime)," / ",Ra(e.totalDuration)]}),k(Am,{state:e,actions:t,blockMarkers:n,expandedBlocks:r,getBlockTitle:i}),k("span",{style:{color:"rgba(255,255,255,0.5)",fontSize:"11px",whiteSpace:"nowrap"},children:[e.currentBlockIndex+1,"/",e.totalBlocks]}),e.hasCaptions&&k("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:[k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("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"&&k("span",{style:{fontSize:"10px",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.captionMode==="standard"?"CC":"SM"})]}),t.toggleFullscreen&&k("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?k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}):k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})})})]})}function _5({state:e,slideNav:t,slides:n=[],pickerOpen:r,onPickerOpenChange:i}){let[a,o]=ye(false),s=r??a,l=Ee(I=>{r===void 0&&o(I),i?.(I);},[r,i]),[c,u]=ye(280),d=we(null),m=we(null),f=we(null),p=tn(),{currentBlockIndex:g,currentSlideLabel:h,currentSlideNumber:b,totalBlocks:w,totalSlideNumber:x}=e,T=g<=0&&!(e.buildStep&&e.buildStep>0),S=g>=w-1&&(e.buildStep??0)>=(e.buildCount??0)&&!e.isBuilding,v=w>0?h??`${b??g+1} / ${x??w}`:"\u2014";xe(()=>{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]),$t(()=>{if(!s)return;let I=d.current,_=I?.closest(".doc-player")??I?.parentElement;if(!I||!_)return;let A=()=>{let D=I.getBoundingClientRect(),M=_.getBoundingClientRect(),B=Math.floor(D.top-M.top-8-16);u(Math.max(72,B));};A();let P=typeof ResizeObserver>"u"?null:new ResizeObserver(A);return P?.observe(_),P?.observe(I),window.addEventListener("resize",A),()=>{P?.disconnect(),window.removeEventListener("resize",A);}},[s]),xe(()=>{s&&f.current?.querySelector('[aria-current="true"]')?.focus();},[s]);let E=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),P=A;I.key==="Home"?P=0:I.key==="End"?P=_.length-1:I.key==="ArrowDown"?P=(A+1)%_.length:P=(A-1+_.length)%_.length,_[P]?.focus();};return k("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:[k("button",{onClick:I=>{I.stopPropagation(),(t.prevStep??t.prevSlide)();},disabled:T,"data-testid":"slide-prev","aria-label":e.buildCount?"Previous build or slide":"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:k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})}),k("button",{ref:m,type:"button","data-testid":"slide-counter","aria-label":`Choose slide, current ${v}`,"aria-haspopup":"menu","aria-expanded":s,"aria-controls":s?p: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:v}),s&&k("div",{ref:f,id:p,role:"menu","aria-label":"Choose a slide","data-testid":"slide-picker",onClick:I=>I.stopPropagation(),onKeyDown:E,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=_===g;return k("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:P=>{P.currentTarget.style.background="rgba(255,255,255,0.1)";},onMouseLeave:P=>{P.currentTarget.style.background=A?"rgba(255,255,255,0.14)":"transparent";},children:[k("span",{style:{color:A?"#fff":"rgba(255,255,255,0.58)",fontSize:"12px",fontVariantNumeric:"tabular-nums",textAlign:"right"},children:I.label}),k("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}-${_}`)})}),!!e.buildCount&&k(Fe,{children:[k("span",{role:"status",style:{color:"inherit",fontSize:12},children:["Build ",e.buildStep??0," of ",e.buildCount]}),k("button",{type:"button",onClick:I=>{I.stopPropagation(),t.showAllBuilds?.();},"aria-label":"Show all build steps",style:{background:"none",color:"inherit",border:"1px solid currentColor",borderRadius:4,padding:"4px 8px",cursor:"pointer",font:"inherit",fontSize:12},children:"Show all"})]}),k("button",{onClick:I=>{I.stopPropagation(),(t.nextStep??t.nextSlide)();},disabled:S,"data-testid":"slide-next","aria-label":e.buildCount?"Next build or slide":"Next slide",title:"Next slide",style:{background:"none",border:"none",color:S?"rgba(255,255,255,0.3)":"rgba(255,255,255,0.9)",cursor:S?"default":"pointer",padding:"6px 8px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",transition:"background 0.15s"},onMouseEnter:I=>{S||(I.currentTarget.style.background="rgba(255,255,255,0.1)");},onMouseLeave:I=>{I.currentTarget.style.background="none";},children:k("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:"18",height:"18",children:k("path",{d:"M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"})})})]})}function L0(e){return e?Object.keys(e).map(t=>t.trim().toLowerCase()):[]}var lX={theme:dt,pageStyle:Ia(dt),basePath:"/",viewport:ct.landscape,renderContext:{theme:dt},animationsEnabled:true,imageDisplayMode:"inline",showCodeCopyButton:false},P0=kr(lX);function qn(){return jr(P0)}function A5({section:e}){let{renderContext:t,basePath:n,animationsEnabled:r,theme:i}=qn(),a=e.slots.media,o=a?.type==="canvas"?a:void 0,s=he(()=>{if(!o)return null;let{layers:d}=nl(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 k("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:k(mn,{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 cX=10,uX=100;function N0(e){let t=e instanceof Uint8Array?e:new Uint8Array(e);return mX(t)??fX(t)??pX(t)}var dX=new Set(["gif","webp","apng"]),C5=/^image\/(?:gif|webp|apng)(?=$|[;,\s])/i;function Ol(e){let t=e.trim();if(!t)return false;if(/^data:/i.test(t))return C5.test(t.slice(5));if(C5.test(t))return true;let n=t.split(/[?#]/,1)[0]??"",r=n.lastIndexOf(".");return r<0||r<n.lastIndexOf("/")?false:dX.has(n.slice(r+1).toLowerCase())}function mX(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+I5(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=Dl(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=M5(e,t),t<0)break;continue}if(o===44){if(t+9>e.length)break;let s=e[t+8];if(t+=9+I5(s),t+=1,n++,r+=O0(i),i=0,t=M5(e,t),t<0)break;continue}break}return D0("gif",n,r,a)}function I5(e){return e&128?3*(1<<(e&7)+1):0}function M5(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 Cm=[137,80,78,71,13,10,26,10];function fX(e){if(e.length<Cm.length)return null;for(let o=0;o<Cm.length;o++)if(e[o]!==Cm[o])return null;let t=Cm.length,n=false,r=1,i=1,a=0;for(;t+8<=e.length;){let o=R0(e,t),s=Dl(e,t+4,4),l=t+8;if(s==="acTL"&&o>=8&&l+8<=e.length)n=true,r=R0(e,l),i=R0(e,l+4);else if(s==="fcTL"&&o>=26&&l+26<=e.length){let c=q5(e,l+20),u=q5(e,l+22)||100;a+=O0(c*1e3/u);}else {if(s==="IDAT"&&!n)break;if(s==="IEND")break}t=l+o+4;}return D0("png",n?r:1,a,i)}function pX(e){if(e.length<12||Dl(e,0,4)!=="RIFF"||Dl(e,8,4)!=="WEBP")return null;let t=12,n=false,r=0,i=0,a=null;for(;t+8<=e.length;){let s=Dl(e,t,4),l=hX(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+=O0(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 D0("webp",n?r:1,i,a??0)}function D0(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 O0(e){return e<=cX?uX:e}function Dl(e,t,n){let r="";for(let i=t;i<t+n&&i<e.length;i++)r+=String.fromCharCode(e[i]);return r}function q5(e,t){return e[t]<<8|e[t+1]}function R0(e,t){return (e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function hX(e,t){return (e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}var gX=kr(null);function P5(){return jr(gX)}function Fl({src:e,basePath:t="",width:n,height:r,poster:i,controls:a=true,preload:o="metadata",className:s,label:l}){let c=Tt(e,t),u=Tt(i??"",t),d=i?u:void 0;return c?k("span",{className:`squisq-inline-video-player ${s??""}`.trim(),children:k("video",{src:c,poster:d,controls:a,preload:o,width:n,height:r,playsInline:true,"aria-label":l,title:l})}):null}function F0({src:e,basePath:t="",controls:n=true,preload:r="metadata",className:i,label:a}){let o=Tt(e,t);return o?k("span",{className:`squisq-inline-audio-player ${i??""}`.trim(),children:k("audio",{src:o,controls:n,preload:r,"aria-label":a,title:a})}):null}var yX={position:"absolute",inset:0,width:"100%",height:"100%",border:0};function Do({embed:e,title:t,showCaption:n=true,inline:r=false,className:i}){let a=Xa(e,t),o=e.aspectRatio<1,s=n&&!r?t?.trim():"";return k(r?"span":"figure",{className:`squisq-video-embed ${i??""}`.trim(),"data-provider":e.provider,"data-orientation":o?"portrait":"landscape",children:[k("span",{className:"squisq-video-embed-frame",style:{position:"relative",display:"block",aspectRatio:String(e.aspectRatio)},children:k("iframe",{src:a.src,title:a.title,allow:a.allow,allowFullScreen:true,referrerPolicy:"strict-origin-when-cross-origin",loading:"lazy",style:yX})}),s?k("figcaption",{className:"squisq-video-embed-caption",children:k("a",{href:e.watchUrl,target:"_blank",rel:"noopener noreferrer",children:s})}):null]})}var bX={gif:"GIF",webp:"WEBP",png:"APNG"};function R5({playback:e,imageRef:t}){let n=we(null),{info:r,status:i,displaySrc:a}=e,o=i==="paused",s=r?.animated??false;if($t(()=>{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 k(Fe,{children:[o&&k("canvas",{ref:n,className:"squisq-animated-image-still","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:"100%",pointerEvents:"none"}}),k("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:[k(wX,{status:i}),k("span",{className:"squisq-animated-image-format",children:bX[r.format]})]})]})}function wX({status:e}){return k("svg",{viewBox:"0 0 12 12","aria-hidden":"true",focusable:"false",children:k("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 kX=64,Bl=new Map;function xX(e){let t=Bl.get(e);if(t)return t;let n=fetch(e).then(r=>r.ok?r.arrayBuffer():null).then(r=>r?N0(r):null).catch(()=>null);if(!/^data:/i.test(e)&&(Bl.set(e,n),Bl.size>kX)){let r=Bl.keys().next().value;r!==void 0&&Bl.delete(r);}return n}function vX(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 TX(){return typeof window>"u"||typeof window.matchMedia!="function"?false:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function N5(){return TX()?"paused":"playing"}function D5(e,t){let[n,r]=ye(null),[i,a]=ye(N5),[o,s]=ye(null),[l,c]=ye(0),u=we(0),d=we(null),m=Ee(g=>{d.current&&URL.revokeObjectURL(d.current),d.current=g,s(g);},[]);xe(()=>{r(null);let g=t&&Ol(e)?vX(t):null;if(!g)return;let h=false;return xX(g).then(b=>{h||r(b);}),()=>{h=true;}},[e,t]),xe(()=>{u.current++,m(null),a(N5());},[t,m]),xe(()=>()=>{d.current&&URL.revokeObjectURL(d.current);},[]),xe(()=>{if(i!=="playing"||!n?.animated||n.playCount===0)return;let g=setTimeout(()=>a("ended"),n.durationMs*n.playCount);return ()=>clearTimeout(g)},[i,n,l]);let f=Ee(()=>{let g=++u.current,h=b=>{if(g!==u.current){b&&URL.revokeObjectURL(b);return}b&&m(b),a("playing"),c(w=>w+1);};fetch(o??t).then(b=>b.blob()).then(b=>h(URL.createObjectURL(b)),()=>h(null));},[o,t,m]),p=Ee(()=>{u.current++,a("paused");},[]);return {info:n,animated:n?.animated??false,displaySrc:o??t,status:i,play:f,pause:p}}function SX(){return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}function O5({source:e,fallback:t,isStatic:n,color:r,className:i}){let a=we(null),[o,s]=ye(void 0),[l]=ye(SX),c=n??l,u=he(()=>er(e,{static:c}),[e,c]);$t(()=>{if(r!==void 0||!a.current)return;let p=getComputedStyle(a.current).color;p&&s(p);},[r,u]);let d=r??o,m=he(()=>u.ok?Hi(u.island,{color:d}):null,[u,d]);if(!u.ok||!m)return k("div",{className:["squisq-md-svg-error",i].filter(Boolean).join(" "),children:[k("p",{className:"squisq-md-svg-error-note",role:"note",children:["Couldn\u2019t render this SVG: ",u.ok?"unknown error":u.message]}),t]});let{island:f}=u;return k("figure",{ref:a,className:["squisq-md-svg",i].filter(Boolean).join(" "),"data-svg-island":"",children:k("img",{src:m,alt:f.title??"Illustration",width:f.width,height:f.height,decoding:"sync",draggable:false})})}var Fo={htmlPolicy:"sanitize"};function $l(e){return e.nested?e:{...e,nested:true}}var EX={idle:"Copy",copying:"Copying\u2026",copied:"Copied",failed:"Copy failed"};async function _X(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 B0({value:e,language:t,ctx:n}){let[r,i]=ye("idle"),a=we();xe(()=>()=>{a.current!==void 0&&clearTimeout(a.current);},[]);let o=k("pre",{className:"squisq-md-code-block",children:k("code",{className:t?`language-${t}`:void 0,children:e})});if(!n.showCodeCopyButton)return o;let s=async()=>{if(r!=="copying"){i("copying");try{await _X(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 k("div",{className:"squisq-md-code-frame",children:[o,k("button",{type:"button",className:"squisq-md-code-copy","data-copy-state":r,disabled:r==="copying",onClick:()=>{s();},"aria-label":"Copy code to clipboard",children:EX[r]})]})}var $0=class extends gn{constructor(){super(...arguments);this.state={failed:false};}static getDerivedStateFromError(){return {failed:true}}render(){return this.state.failed?this.props.fallback:this.props.children}};function AX({node:e,lang:t,ctx:n}){let r=n.fenceRenderers?.[t];return r?k("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 Jt(e,t="",n=Fo){return e.map((r,i)=>{let a=`${t}i${i}`;switch(r.type){case "text":{if(!r.value.includes(`
765
765
  `))return k(Fe,{children:r.value},a);let o=r.value.split(`
766
- `);return k(Fe,{children:o.map((s,l)=>k(Fe,{children:[l>0&&k("br",{}),s]},l))},a)}case "emphasis":return k("em",{className:"squisq-md-em",children:Jt(r.children,a,n)},a);case "strong":return k("strong",{className:"squisq-md-strong",children:Jt(r.children,a,n)},a);case "delete":return k("del",{className:"squisq-md-del",children:Jt(r.children,a,n)},a);case "superscript":return k("sup",{className:"squisq-md-sup",children:Jt(r.children,a,n)},a);case "subscript":return k("sub",{className:"squisq-md-sub",children:Jt(r.children,a,n)},a);case "inlineCode":return k("code",{className:"squisq-md-inline-code",children:r.value},a);case "link":{if(n.accessoryPaths?.has(r.url))return k("span",{className:"squisq-md-attachment","data-attachment-path":r.url,title:r.title??`Attachment: ${r.url}`,children:[k("i",{className:"fa-solid fa-paperclip","aria-hidden":"true"}),k("span",{className:"squisq-md-attachment-label",children:Jt(r.children,a,n)})]},a);let o=_t(r.url,"link",{extraLinkSchemes:n.linkSchemes});return o?k("a",{className:"squisq-md-link",href:o,title:r.title??void 0,target:"_blank",rel:"noopener noreferrer",children:Jt(r.children,a,n)},a):k("span",{className:"squisq-md-link squisq-md-link--blocked",children:Jt(r.children,a,n)},a)}case "image":{let o=_r(r.url);if(o){let s=_t(r.url,"media");if(!s)return null;let l=r.alt||r.title||void 0;return o==="video"?k(Fl,{src:s,basePath:".",label:l},a):k(F0,{src:s,basePath:".",label:l},a)}return k(CX,{src:r.url,alt:r.alt??"",title:r.title??void 0,width:r.width,height:r.height},a)}case "break":return k("br",{},a);case "inlineMath":return k("code",{className:"squisq-md-inline-math",children:r.value},a);case "inlineIcon":return k("i",{className:`fa-${r.family} fa-${r.name}`,"data-icon":r.token,"aria-hidden":"true"},a);case "htmlInline":return n.htmlPolicy==="strip"?null:k("span",{className:"squisq-md-html-inline",children:H0($5(r.htmlChildren,n.htmlPolicy),`${a}h`,n)},a);case "footnoteReference":return k("sup",{className:"squisq-md-footnote-ref",children:k("a",{href:`#fn-${r.identifier}`,children:["[",r.label??r.identifier,"]"]})},a);case "linkReference":return k("span",{className:"squisq-md-link-ref",children:Jt(r.children,a,n)},a);case "imageReference":return k("span",{className:"squisq-md-image-ref",children:["[",r.alt??r.identifier,"]"]},a);case "textDirective":return k("span",{className:"squisq-md-text-directive","data-directive":r.name,children:Jt(r.children,a,n)},a);case "mention":return k("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 _X(e,t,n=Fo){switch(e.type){case "paragraph":{let r=n.nested?null:$n(e);return r?k(Do,{embed:r.embed,title:r.title},t):k("p",{className:"squisq-md-p",children:Jt(e.children,t,n)},t)}case "heading":{let r=`h${e.depth}`;return k(r,{className:`squisq-md-heading squisq-md-h${e.depth}`,children:Jt(e.children,t,n)},t)}case "blockquote":return k("blockquote",{className:"squisq-md-blockquote",children:Oo(e.children,t,$l(n))},t);case "list":return e.ordered?k("ol",{className:"squisq-md-list squisq-md-ol",start:e.start??void 0,children:e.children.map((r,i)=>F5(r,`${t}li${i}`,n))},t):k("ul",{className:"squisq-md-list squisq-md-ul",children:e.children.map((r,i)=>F5(r,`${t}li${i}`,n))},t);case "code":{let r=e.lang?.trim().toLowerCase();return r&&n.fenceRenderers?.[r]?k($0,{fallback:k(B0,{value:e.value,language:e.lang,ctx:n}),children:k(EX,{node:e,lang:r,ctx:n})},t):r==="mermaid"?k(Tm,{source:e.value,className:"squisq-md-mermaid",ariaLabel:"Mermaid diagram",theme:n.theme},t):r==="svg"?k(O5,{source:e.value,fallback:k(B0,{value:e.value,language:e.lang,ctx:n})},t):k(B0,{value:e.value,language:e.lang,ctx:n},t)}case "thematicBreak":return k("hr",{className:"squisq-md-hr"},t);case "table":return AX(e.children,e.align,t,n);case "htmlBlock":{if(n.htmlPolicy==="strip")return null;let r=$n(e);return r?k(Do,{embed:r.embed,title:r.title},t):k("div",{className:"squisq-md-html-block",children:H0($5(e.htmlChildren,n.htmlPolicy),`${t}h`,n)},t)}case "math":return k("pre",{className:"squisq-md-math-block",children:k("code",{children:e.value})},t);case "definition":return null;case "footnoteDefinition":return k("div",{className:"squisq-md-footnote-def",id:`fn-${e.identifier}`,children:[k("sup",{children:e.label??e.identifier}),Oo(e.children,t,$l(n))]},t);case "containerDirective":return k("div",{className:`squisq-md-directive squisq-md-directive-${e.name}`,"data-directive":e.name,children:[e.label&&k("div",{className:"squisq-md-directive-label",children:e.label}),Oo(e.children,t,$l(n))]},t);case "leafDirective":return k("div",{className:`squisq-md-directive squisq-md-directive-${e.name}`,"data-directive":e.name,children:Jt(e.children,t,n)},t);case "definitionList":return k("dl",{className:"squisq-md-dl",children:e.children.map((r,i)=>r.type==="definitionTerm"?k("dt",{className:"squisq-md-dt",children:Jt(r.children,`${t}dt${i}`,n)},`${t}dt${i}`):k("dd",{className:"squisq-md-dd",children:Oo(r.children,`${t}dd${i}`,$l(n))},`${t}dd${i}`))},t);default:return null}}function F5(e,t,n=Fo){let r=e.checked!==null&&e.checked!==void 0;return k("li",{className:`squisq-md-li${r?" squisq-md-task":""}`,children:[r&&k("input",{type:"checkbox",checked:!!e.checked,readOnly:true,className:"squisq-md-checkbox"}),Oo(e.children,t,$l(n))]},t)}function AX(e,t,n,r=Fo){let[i,...a]=e;return k("table",{className:"squisq-md-table",children:[i&&k("thead",{children:k("tr",{children:i.children.map((o,s)=>k("th",{className:"squisq-md-th",style:t?.[s]?{textAlign:t[s]}:void 0,children:Jt(o.children,`${n}th${s}`,r)},`${n}th${s}`))})}),a.length>0&&k("tbody",{children:a.map((o,s)=>k("tr",{children:o.children.map((l,c)=>k("td",{className:"squisq-md-td",style:t?.[c]?{textAlign:t[c]}:void 0,children:Jt(l.children,`${n}td${s}-${c}`,r)},`${n}td${s}-${c}`))},`${n}tr${s}`))})]},n)}function Oo(e,t="",n=Fo){return e.map((r,i)=>_X(r,`${t}b${i}`,n))}function CX({src:e,alt:t,title:n,width:r,height:i}){let a=_t(e,"media")??km(e),o=Tt(a??"","."),s=we(null),l=D5(a??"",o);return a?Ol(a)?k("span",{className:"squisq-animated-image","data-animated":l.animated?"true":void 0,style:{position:"relative",display:"inline-block",maxWidth:"100%"},children:[k("img",{ref:s,className:"squisq-md-image",src:l.displaySrc,alt:t,title:n,width:r,height:i,style:{display:"block",maxWidth:"100%"}}),k(R5,{playback:l,imageRef:s})]}):k("img",{className:"squisq-md-image",src:o,alt:t,title:n,width:r,height:i}):null}function $5(e,t){return t==="strip"?[]:t==="trusted"?e:Ka(e)}var IX=new Set(["base","embed","iframe","link","meta","object","script","style","title"]),MX={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"},qX=new Set(["","_self","_parent","_top"]);function LX(e,t){let n={};for(let[r,i]of Object.entries(e)){let a=MX[r];if(a){if(a==="style"){n["data-style"]=i;continue}if(a==="href"){let o=_t(i,"link",{extraLinkSchemes:t.linkSchemes});o&&(n.href=o);continue}if(a==="src"){let o=_t(i,"media");o&&(n.src=o);continue}n[a]=i;}}if(typeof n.target=="string"&&!qX.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 PX(e,t,n){let r=e.tagName.toLowerCase();if(r==="iframe"){let o=au(e);return o?k(Do,{embed:o.embed,title:o.title,inline:true},t):null}if(IX.has(r))return null;if(r==="video"){let o=_t(e.attributes.src??"","media")??"",s=_t(e.attributes.poster??"","media")??void 0;return k(Fl,{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=_t(e.attributes.src??"","media")??"";return k(F0,{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=LX(e.attributes,n);return e.selfClosing?k(i,{...a},t):k(i,{...a,children:H0(e.children,`${t}c`,n)},t)}function H0(e,t,n=Fo){return e.map((r,i)=>{let a=`${t}${i}`;switch(r.type){case "htmlElement":return PX(r,a,n);case "htmlText":return k(Fe,{children:r.value},a);case "htmlComment":return null;default:return null}})}var H5=new Set,B5=e=>e.size===0?e:H5;function _i({nodes:e,className:t,htmlPolicy:n="sanitize",linkSchemes:r,theme:i,showCodeCopyButton:a=false,onCopyCode:o,fenceRenderers:s}){let l=P5(),c=La(),[u,d]=ye(H5);return xe(()=>{if(!c){d(B5);return}let m=false;return c.listMedia().then(f=>{m||d(new Set(f.map(p=>p.name)));},()=>{m||d(B5);}),()=>{m=true;}},[c]),!e||e.length===0?null:k("div",{className:`squisq-md ${t||""}`,children:Oo(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}=qn(),i=_t(e.src,"media")??km(e.src),a=Tt(i??"",r);return i?k("img",{className:n,src:a,alt:e.alt,loading:t?"eager":"lazy",decoding:"async",width:e.width,height:e.height}):null}function RX({media:e}){let{basePath:t}=qn(),n=_t(e.src,"media"),r=Tt(n??"",t),i=e.posterSrc?_t(e.posterSrc,"media"):void 0,a=Tt(i??"",t);return n?k("video",{src:r,poster:i?a:void 0,muted:true,loop:true,autoPlay:true,playsInline:true,preload:"metadata"}):null}function NX({media:e}){let t=yn(e.url);return t?k(Do,{embed:t,title:e.title,showCaption:false}):null}function Hl({section:e}){return e.slots.eyebrow?k("span",{className:"squisq-page-eyebrow",children:e.slots.eyebrow}):null}function z0({media:e}){return !e||e.type==="canvas"||e.type==="videoEmbed"||!e.credit?null:k("span",{className:"squisq-page-media-credit",children:[e.credit,e.license?` \xB7 ${e.license}`:""]})}function z5({section:e}){let{pageStyle:t}=qn(),n=e.slots.media,r=n?.type==="image"?n:void 0,i=t.tokens.heroStyle,a=k("div",{className:"squisq-page-hero-body",children:[k(Hl,{section:e}),k("h1",{className:"squisq-page-hero-title",children:e.slots.title}),e.slots.subtitle&&k("p",{className:"squisq-page-hero-subtitle",children:e.slots.subtitle})]});return r&&i==="split"?k("div",{className:"squisq-page-hero-grid",children:[a,k("div",{className:"squisq-page-hero-media squisq-page-media-frame",children:[k(Ai,{media:r,eager:true}),k(z0,{media:r})]})]}):k(Fe,{children:[r&&e.background==="media"&&k("div",{className:"squisq-page-hero-backdrop",children:k(Ai,{media:r,eager:true})}),a]})}function U5({section:e}){let t=e.slots.media,n=t?.type==="image"?t:void 0;return k(Fe,{children:[n&&e.background==="media"&&k("div",{className:"squisq-page-hero-backdrop",children:k(Ai,{media:n})}),k("div",{className:"squisq-page-banner-body",children:[k(Hl,{section:e}),k("h2",{className:"squisq-page-section-title squisq-page-banner-title",children:e.slots.title})]})]})}function j5({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 k(Fe,{children:[k("div",{className:"squisq-page-stats",children:t.map((a,o)=>k("div",{className:`squisq-page-stat${n?" squisq-page-stat--bars":""}`,children:[k("span",{className:"squisq-page-stat-value",children:a.value}),n&&Number.isFinite(r[o])&&k("div",{className:"squisq-page-stat-bar",style:{width:`${Math.max(4,r[o]/i*100)}%`}}),a.title&&k("span",{className:"squisq-page-stat-title",children:a.title}),a.body&&k("span",{className:"squisq-page-stat-body",children:a.body})]},o))}),e.slots.meta&&k("div",{className:"squisq-page-stat-meta",children:e.slots.meta})]})}function W5({section:e}){let t=e.slots.media,n=e.background==="media"&&t&&t.type!=="canvas"&&t.type!=="videoEmbed";return k(Fe,{children:[n&&k("div",{className:"squisq-page-quote-backdrop",children:t.type==="image"?k(Ai,{media:t}):k(RX,{media:t})}),e.slots.title&&k("h2",{className:"squisq-page-section-title",children:e.slots.title}),k("figure",{className:"squisq-page-quote-figure",style:{margin:0},children:[k("blockquote",{className:"squisq-page-quote",children:e.slots.body?.text}),e.slots.attribution&&k("figcaption",{className:"squisq-page-quote-attribution",children:e.slots.attribution})]})]})}function V5({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 k("div",{className:`squisq-page-feature${i?" squisq-page-feature--media-right":""}`,children:[k("div",{className:"squisq-page-feature-media squisq-page-media-frame",children:[r&&k(Ai,{media:r}),k(z0,{media:r})]}),k("div",{className:"squisq-page-feature-text",children:[k(Hl,{section:e}),e.slots.title&&k("h3",{className:"squisq-page-section-title squisq-page-feature-title",children:e.slots.title}),e.slots.body?.text&&k("p",{className:"squisq-page-feature-body",children:e.slots.body.text})]})]})}function G5({section:e}){let{basePath:t}=qn(),n=e.slots.media;return !n||n.type==="canvas"?null:k("figure",{className:"squisq-page-figure",children:[k("div",{className:"squisq-page-media-frame",children:n.type==="image"?k(Ai,{media:n}):n.type==="videoEmbed"?k(NX,{media:n}):k(Fl,{src:n.src,poster:n.posterSrc,basePath:t})}),(e.slots.caption||n.type!=="videoEmbed"&&n.credit)&&k("figcaption",{children:[e.slots.caption,n.type!=="videoEmbed"&&n.credit&&k(Fe,{children:[e.slots.caption?" ":"",k(z0,{media:n})]})]})]})}function Y5({section:e}){let t=e.slots.items??[];return t.length===0?k("div",{className:"squisq-page-gallery-empty",children:[e.slots.title&&k("h2",{className:"squisq-page-section-title",children:e.slots.title}),e.slots.body?.text&&k("p",{children:e.slots.body.text}),e.slots.caption&&k("div",{className:"squisq-page-gallery-caption",children:e.slots.caption})]}):k(Fe,{children:[k("div",{className:"squisq-page-gallery",children:t.map((n,r)=>n.media?.type==="image"?k("div",{className:"squisq-page-media-frame",children:k(Ai,{media:n.media})},r):null)}),e.slots.caption&&k("div",{className:"squisq-page-gallery-caption",children:e.slots.caption})]})}function X5({section:e}){let t=e.slots.media,n=t?.type==="image"?t:void 0,r=e.hints?.framing;return k("div",{className:"squisq-page-callout","data-hint-framing":typeof r=="string"?r:void 0,children:[n&&k("div",{className:"squisq-page-media-frame",children:k(Ai,{media:n})}),k("div",{children:[k(Hl,{section:e}),e.slots.title&&k("h3",{className:"squisq-page-callout-title",children:e.slots.title}),e.slots.body?.text&&k("p",{className:"squisq-page-callout-body",children:e.slots.body.text}),e.slots.meta&&k("div",{className:"squisq-page-callout-meta",children:e.slots.meta})]})]})}function K5({section:e}){let{theme:t}=qn(),n=e.slots.items??[];return k(Fe,{children:[e.slots.title&&k("h2",{className:"squisq-page-section-title squisq-page-cards-title",children:e.slots.title}),k("div",{className:"squisq-page-cards",children:n.map((r,i)=>{let a=r.accentScheme?t.colorSchemes?.[r.accentScheme]:void 0;return k("div",{className:"squisq-page-card",style:a?{"--squisq-page-card-accent":a.accent}:void 0,children:[r.title&&k("h3",{className:"squisq-page-card-title",children:r.title}),r.body&&k("p",{className:"squisq-page-card-body",children:r.body})]},i)})})]})}function Q5({section:e}){let{theme:t,showCodeCopyButton:n,onCopyCode:r,fenceRenderers:i,htmlPolicy:a,linkSchemes:o}=qn(),s=e.slots.items??[];return k(Fe,{children:[e.slots.title&&k("h2",{className:"squisq-page-section-title squisq-page-items-title",children:e.slots.title}),k("ol",{className:"squisq-page-items",children:s.map((l,c)=>k("li",{children:k("div",{className:"squisq-page-item-body",children:l.markdown?k(_i,{nodes:l.markdown,theme:t,showCodeCopyButton:n,onCopyCode:r,fenceRenderers:i,htmlPolicy:a,linkSchemes:o}):l.body})},c))})]})}function Z5({section:e}){let t=e.slots.milestone;return t?k("div",{className:"squisq-page-milestone","data-mood":t.mood,children:[k("div",{className:"squisq-page-milestone-date",children:t.date}),k("div",{className:"squisq-page-milestone-rail","aria-hidden":"true"}),k("div",{className:"squisq-page-milestone-body",children:[t.description,t.footer&&k("div",{className:"squisq-page-milestone-footer",children:t.footer})]})]}):null}function J5({section:e}){let t=e.slots.table;if(!t)return null;let n=r=>t.align?.[r]??void 0;return k(Fe,{children:[e.slots.title&&k("h2",{className:"squisq-page-section-title squisq-page-table-title",children:e.slots.title}),k("div",{className:"squisq-page-table-scroll",children:k("table",{className:"squisq-page-table",children:[k("thead",{children:k("tr",{children:t.headers.map((r,i)=>k("th",{style:{textAlign:n(i)},children:r},i))})}),k("tbody",{children:t.rows.map((r,i)=>k("tr",{children:r.map((a,o)=>k("td",{style:{textAlign:n(o)},children:a},o))},i))})]})})]})}function eI({section:e,block:t}){let{theme:n,showCodeCopyButton:r,onCopyCode:i,fenceRenderers:a,htmlPolicy:o,linkSchemes:s}=qn(),l=e.slots.title!==void 0&&t?.sourceHeading?k(_i,{nodes:[t.sourceHeading],theme:n,showCodeCopyButton:r,onCopyCode:i,htmlPolicy:o,linkSchemes:s}):null,c=e.slots.body?.markdown??t?.contents;return k("div",{className:"squisq-page-prose",children:[l,c&&c.length>0&&k(_i,{nodes:c,theme:n,showCodeCopyButton:r,onCopyCode:i,fenceRenderers:a,htmlPolicy:o,linkSchemes:s})]})}function tI({section:e}){return k("div",{children:[k(Hl,{section:e}),e.slots.title&&k("h2",{className:"squisq-page-section-title",children:e.slots.title}),e.slots.body?.text&&k("p",{children:e.slots.body.text})]})}function DX(e,t){return e.kind==="hero"&&e.background==="media"&&e.slots.media?.type==="image"&&t!=="split"}function OX(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 FX(e,t){let{section:n,block:r}=e;switch(n.kind){case "hero":return k(z5,{section:n,block:r});case "banner":return k(U5,{section:n,block:r});case "stat-band":return k(j5,{section:n,block:r});case "quote-band":return k(W5,{section:n,block:r});case "feature-split":return k(V5,{section:n,block:r,flip:t});case "media-figure":return k(G5,{section:n,block:r});case "gallery":return k(Y5,{section:n,block:r});case "callout":return k(X5,{section:n,block:r});case "card-grid":return k(K5,{section:n,block:r});case "item-list":return k(Q5,{section:n,block:r});case "timeline-rail":return k(Z5,{section:n,block:r});case "table-section":return k(J5,{section:n,block:r});case "canvas-embed":return k(A5,{section:n});case "footer":return k(tI,{section:n,block:r});default:return k(eI,{section:n,block:r})}}function nI({entry:e,featureFlip:t,isLeadProse:n}){let{pageStyle:r,theme:i,showCodeCopyButton:a,onCopyCode:o,fenceRenderers:s,htmlPolicy:l,linkSchemes:c}=qn(),{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}`),DX(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 p=u.kind!=="hero"&&u.slots.title!==void 0?u.slots.headingLevel??e.block?.sourceHeading?.depth:void 0;return p!==void 0&&(f["data-heading-level"]=String(p)),k("section",{className:m.join(" "),"data-section-kind":u.kind,"data-block-id":u.blockId,"data-block-index":u.index,"data-template":u.template,style:OX(u),...f,children:k("div",{className:"squisq-page-section-inner",children:[FX(e,t),d&&d.length>0&&k("div",{className:"squisq-page-rich-content",children:k(_i,{nodes:d,theme:i,showCodeCopyButton:a,onCopyCode:o,fenceRenderers:s,htmlPolicy:l,linkSchemes:c})})]})})}function Im({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:p=false,onCopyCode:g,fenceRenderers:h,htmlPolicy:b,linkSchemes:w}){let x=we(null),T=r??ct.landscape,S=he(()=>!e&&t!==void 0?pi(un(t)):void 0,[e,t]),v=e??S,E=_m(o==="auto"),I=o==="auto"?E:o,_=he(()=>{let X=a??dt;return I?$s(X,I):X},[a,I]),A=he(()=>Ia(_,f,m),[_,f,m]),P=he(()=>L0(h),[h]),D=he(()=>v?s0(v,{theme:_,viewport:T,customTemplates:v.customTemplates,cover:d!==false?v.startBlock:false,transformPage:f,variant:m,...P.length>0?{widgetFenceLangs:P}:{}}):[],[v,_,T,d,f,m,P]),M=he(()=>({theme:_,viewport:T,totalBlocks:D.length,persistentLayers:_.persistentLayers,customTemplates:v?.customTemplates}),[_,T,D.length,v?.customTemplates]),B=he(()=>({theme:_,pageStyle:A,basePath:n,viewport:T,renderContext:M,animationsEnabled:s,imageDisplayMode:c,showCodeCopyButton:p,onCopyCode:g,fenceRenderers:h,htmlPolicy:b,linkSchemes:w}),[_,A,n,T,M,s,c,p,g,h,b,w]),{featureOrdinals:L,leadProseIndex:z}=he(()=>{let X=new Map,K=0,G=-1;for(let ae of D)ae.section.kind==="feature-split"&&X.set(ae.section.index,K++),m!=="document"&&G<0&&ae.section.kind==="prose"&&(G=ae.section.index);return {featureOrdinals:X,leadProseIndex:G}},[D,m]);if(xe(()=>{if(!u)return;let X=K=>{if(K.defaultPrevented||K.altKey||K.ctrlKey||K.metaKey||K.shiftKey||K.key!=="ArrowDown"&&K.key!=="ArrowUp"||(K.target instanceof Element?K.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 ae=x.current;if(!ae)return;K.preventDefault();let ke=Math.max(64,Math.round(ae.clientHeight*.12));ae.scrollBy({top:K.key==="ArrowDown"?ke:-ke,behavior:"smooth"});};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[u]),!v)return k("div",{ref:x,className:`squisq-linear squisq-linear--empty ${i||""}`});let $=_.colors.background,O=_.colors.text,R=_.colors.textMuted,C=_.colors.primary,U=Ct(_.typography.bodyFont,"system-ui, sans-serif"),ee=Ct(_.typography.titleFont,"Georgia, serif"),q=_.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 k("div",{ref:x,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:k("div",{className:j,...c0(A),style:{lineHeight:q,fontSize:m==="document"?"15px":"16px",fontFamily:U,color:O,...l0(_,A),"--squisq-linear-title-font":ee,"--squisq-linear-body-font":U,"--squisq-linear-text":O,"--squisq-linear-muted":R,"--squisq-linear-primary":C,"--squisq-linear-bg":$},children:[k("style",{"data-squisq-page":"",children:u0}),k(P0.Provider,{value:B,children:D.map(X=>{let K=L.get(X.section.index)??0,G=!!X.section.hints?.alternate&&K%2===1;return k(nI,{entry:X,featureFlip:G,isLeadProse:X.section.index===z},`${X.section.blockId}-${X.section.index}`)})})]})})}async function rI(e){if(typeof Image>"u")return;let t=new Set;for(let n of Array.from(e.querySelectorAll("svg image"))){let r=n.getAttribute("href")??n.getAttribute("xlink:href");r&&/^(?:data|blob):/i.test(r)&&t.add(r);}await Promise.allSettled([...t].map(n=>{let r=new Image;return r.src=n,typeof r.decode=="function"?r.decode().catch(()=>{}):Promise.resolve()}));}async function BX(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 rI(e),await new Promise(n=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>requestAnimationFrame(()=>n())):setTimeout(n,0);});}function zl(e,t){return {id:e,startTime:0,duration:0,audioSegment:0,layers:t}}function iI({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=we(null),p=he(()=>t??Aa(e),[t,e]),g=n??ct.landscape,h=he(()=>f0(e,{theme:p,viewport:g,layout:r,showTitle:i,style:a,documentTitle:o}),[e,p,g,r,i,a,o]),b=he(()=>zl("dashboard-backdrop-bottom",h.backdrop.bottomLayers),[h]),w=he(()=>h.backdrop.topLayers.length>0?zl("dashboard-backdrop-top",h.backdrop.topLayers):null,[h]),x=he(()=>h.title?zl("dashboard-title-band",h.title.layers):null,[h]);xe(()=>!u||!d?void 0:(d({seekTo:async()=>{let I=f.current;I&&await BX(I);},getRenderedTime:()=>0,getDuration:()=>0,getViewport:()=>({width:g.width,height:g.height}),getBlocks:()=>h.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)),[g,u,d,h]);let T={width:g.width,height:g.height},S={position:"absolute",inset:0},v={position:"relative",width:"var(--squisq-dashboard-fit-width, 100%)",aspectRatio:`${g.width} / ${g.height}`,overflow:"hidden",background:h.backdrop.fill,margin:"0 auto","--squisq-dashboard-aspect":(g.width/g.height).toFixed(6)};return k("div",{ref:f,className:m?`squisq-dashboard ${m}`:"squisq-dashboard","data-dashboard-layout":h.layout.name,"data-dashboard-style":h.style,style:v,children:[k("div",{style:S,"aria-hidden":"true",children:k(mn,{block:b,blockTime:0,basePath:s,viewport:T,isPlaying:false,muted:true,animationsEnabled:l,theme:p})}),h.cells.map(E=>k(Fe,{children:[E.frame&&k("div",{className:"squisq-dashboard__frame","data-cell-index":E.index,"aria-hidden":"true",style:{position:"absolute",left:E.frame.rectPct.left,top:E.frame.rectPct.top,width:E.frame.rectPct.width,height:E.frame.rectPct.height,pointerEvents:"none"},children:k(mn,{block:zl(`dashboard-frame-${E.index}`,E.frame.layers),blockTime:0,basePath:s,viewport:{width:E.frame.viewport.width,height:E.frame.viewport.height},isPlaying:false,muted:true,animationsEnabled:l,theme:p})}),k("div",{className:"squisq-dashboard__cell","data-cell-index":E.index,style:{position:"absolute",left:E.rectPct.left,top:E.rectPct.top,width:E.rectPct.width,height:E.rectPct.height,...E.frame?.contentRadiusPct?{borderRadius:E.frame.contentRadiusPct,overflow:"hidden"}:{}},children:[k(mn,{block:{...E.block,layers:E.layers},blockTime:0,basePath:s,viewport:{width:E.viewport.width,height:E.viewport.height},isPlaying:false,muted:c,animationsEnabled:l,theme:p,videoEmbeds:u?"placeholder":"player",staticMedia:u}),E.frame&&E.frame.overlayLayers.length>0&&k("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:k(mn,{block:zl(`dashboard-frame-overlay-${E.index}`,E.frame.overlayLayers),blockTime:0,basePath:s,viewport:{width:E.frame.overlayViewport.width,height:E.frame.overlayViewport.height},isPlaying:false,muted:true,animationsEnabled:l,theme:p})})]})]},`${E.index}-${E.block.id}`)),h.title&&x&&k("div",{className:"squisq-dashboard__title",style:{position:"absolute",left:h.title.rectPct.left,top:h.title.rectPct.top,width:h.title.rectPct.width,height:h.title.rectPct.height},children:k(mn,{block:x,blockTime:0,basePath:s,viewport:{width:h.title.viewport.width,height:h.title.viewport.height},isPlaying:false,muted:true,animationsEnabled:l,theme:p})}),w&&k("div",{style:{...S,pointerEvents:"none"},"aria-hidden":"true",children:k(mn,{block:w,blockTime:0,basePath:s,viewport:T,isPlaying:false,muted:true,animationsEnabled:l,theme:p})})]})}var $X=new Set(["diagram","tree","timeline","map","drawing","layout","barChart","columnChart","pieChart","donutChart","lineChart","areaChart","scatterChart"]);function HX(e,t,n,r){let i=fm(e);if(!(!!i.templateName&&($X.has(i.templateName)||!!r?.some(c=>c.name===i.templateName))))return null;let o=i.templateBlock??e,{layers:s,source:l}=nl(o,{theme:t,viewport:n,customTemplates:r,persistentLayers:false});return s.length===0||l==="fallback"?null:{...o,layers:s}}function oI({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=he(()=>HX(e,n,s,l),[e,l,n,s]);return k("section",{className:"squisq-flashcards__content-block","data-source-block-id":e.id,children:[!u&&e.title&&k(c,{className:"squisq-flashcards__content-title",children:e.title}),!u&&e.contents&&e.contents.length>0&&k(_i,{nodes:e.contents,theme:n,showCodeCopyButton:i,onCopyCode:a,fenceRenderers:o}),(u||e.layers&&e.layers.length>0)&&k("div",{className:"squisq-flashcards__canvas",style:{aspectRatio:`${s.width} / ${s.height}`},children:k(mn,{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=>k(oI,{block:d,depth:t+1,theme:n,basePath:r,showCodeCopyButton:i,onCopyCode:a,fenceRenderers:o,viewport:s,customTemplates:l},d.id))]})}function Ul(e){return k("div",{className:"squisq-flashcards__face-content",children:e.face.blocks.map(t=>k(oI,{block:t,depth:0,...e},t.id))})}function zX(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 aI(e,t){let n=[...e],r=zX(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 UX(e){return k(Ul,{...e,face:e.choice.content})}var jX=".squisq-flashcards__answer, .squisq-flashcards__feedback, .squisq-flashcards__explanation",WX=860;function VX(e,t,n){return e<WX||t<=0?false:e/t>=(n?1.1:1.2)}function GX(e){return e instanceof Element&&!!e.closest('button, a, input, select, textarea, [contenteditable="true"]')}function sI({doc:e,theme:t,basePath:n=".",source:r="auto",shuffle:i=false,globalKeyboardShortcuts:a=false,showCodeCopyButton:o=false,onCopyCode:s,fenceRenderers:l,viewport:c=ct.landscape,density:u="comfortable",className:d}){let m=u==="compact",f="squisq-flashcards"+(m?" squisq-flashcards--compact":"")+(d?` ${d}`:""),p=he(()=>t??Aa(e),[e,t]),g=he(()=>p0(e,{source:r}),[e,r]),[h,b]=ye(i),[w,x]=ye(1),[T,S]=ye(0),[v,E]=ye(false),[I,_]=ye(null),[A,P]=ye({}),[D,M]=ye(null),B=we(null),[L,z]=ye(null),[$,O]=ye(false),R=he(()=>h?aI(g.cards,`${e.articleId}:${w}`):[...g.cards],[g.cards,e.articleId,w,h]),C=he(()=>D?D.map(oe=>R.find(ve=>ve.id===oe)).filter(oe=>!!oe):R,[R,D]),U=C[T],ee=C.length>0&&T>=C.length,q=Ee(()=>{S(0),E(false),_(null);},[]),j=Ee(()=>{P({}),M(null),q(),x(oe=>oe+1);},[q]);xe(()=>{P({}),M(null),q();},[g,q]),xe(()=>{B.current&&(B.current.scrollTop=0);},[T,D]),xe(()=>{let oe=B.current;if(!v||!oe)return;let ve=oe.querySelectorAll(jX);if(ve.length===0)return;let Be=oe.getBoundingClientRect(),$e=ve[0].getBoundingClientRect(),it=ve[ve.length-1].getBoundingClientRect(),nt=Math.min(it.bottom-Be.bottom,$e.top-Be.top-12);nt>0&&(oe.scrollTop+=nt);},[v,T,D]),$t(()=>{if(m||!L)return;let oe=()=>{let{width:Be,height:$e}=L.getBoundingClientRect();O(it=>VX(Be,$e,it));};if(oe(),typeof ResizeObserver>"u")return;let ve=new ResizeObserver(oe);return ve.observe(L),()=>ve.disconnect()},[m,L]);let X=Ee(()=>{U&&(E(true),U.kind==="multiple-choice"&&I===null&&P(oe=>({...oe,[U.id]:"again"})));},[U,I]),K=Ee(()=>{if(U){if(!v){X();return}S(oe=>oe+1),E(false),_(null);}},[U,X,v]),G=Ee(()=>{if(ee){S(Math.max(0,C.length-1)),E(true);return}if(v){E(false),_(null);return}T>0&&(S(oe=>oe-1),E(true),_(null));},[T,ee,v,C.length]),ae=Ee(oe=>{!U||v||(_(oe.id),E(true),P(ve=>({...ve,[U.id]:oe.correct?"got-it":"again"})));},[U,v]),ke=Ee(oe=>{U&&(P(ve=>({...ve,[U.id]:oe})),S(ve=>ve+1),E(false),_(null));},[U]),W=Ee(oe=>{if(!(oe.defaultPrevented||GX(oe.target))){if(/^[1-9]$/.test(oe.key)&&U?.kind==="multiple-choice"&&!v){let ve=U.choices?.[Number(oe.key)-1];ve&&(oe.preventDefault(),ae(ve));return}oe.key==="ArrowLeft"?(oe.preventDefault(),G()):(oe.key==="ArrowRight"||oe.key===" "||oe.key==="Enter")&&(oe.preventDefault(),K());}},[ae,U,K,G,v]);xe(()=>{if(!a)return;let oe=ve=>W(ve);return document.addEventListener("keydown",oe),()=>document.removeEventListener("keydown",oe)},[a,W]);let Q={theme:p,basePath:n,showCodeCopyButton:o,onCopyCode:s,fenceRenderers:l,viewport:c,customTemplates:e.customTemplates},te=Ct(p.typography.titleFont,"Georgia, serif"),V=Ct(p.typography.bodyFont,"system-ui, sans-serif"),ne={"--squisq-flashcards-bg":p.colors.background,"--squisq-flashcards-surface":p.colors.backgroundLight,"--squisq-flashcards-text":p.colors.text,"--squisq-flashcards-muted":p.colors.textMuted,"--squisq-flashcards-primary":p.colors.primary,"--squisq-flashcards-secondary":p.colors.secondary,"--squisq-flashcards-highlight":p.colors.highlight,"--squisq-flashcards-warning":p.colors.warning,"--squisq-flashcards-radius":`${p.style.borderRadius??18}px`,"--squisq-flashcards-title-font":te,"--squisq-flashcards-body-font":V},re=g.cards.filter(oe=>A[oe.id]==="again").map(oe=>oe.id),ge=g.cards.filter(oe=>A[oe.id]==="got-it").length;if(g.cards.length===0)return k("div",{className:`${f} squisq-flashcards--empty`,style:ne,role:"region","aria-label":"Flashcards",children:k("div",{className:"squisq-flashcards__empty-card",children:[k("h2",{children:"No complete flashcards yet"}),k("p",{children:"Add an answer beneath a heading, or nest an answer block under a question."}),g.diagnostics.length>0&&k("ul",{children:g.diagnostics.map((oe,ve)=>k("li",{children:oe.message},`${oe.blockId}-${oe.code}-${ve}`))})]})});if(ee)return k("div",{className:f,style:ne,role:"region","aria-label":"Flashcard session summary",tabIndex:0,onKeyDown:a?void 0:W,children:k("div",{className:"squisq-flashcards__summary",children:[k("span",{className:"squisq-flashcards__eyebrow",children:"Session complete"}),k("h2",{children:[ge," remembered"]}),k("p",{children:re.length===0?`You completed all ${g.cards.length} cards.`:`${re.length} ${re.length===1?"card needs":"cards need"} another look.`}),k("div",{className:"squisq-flashcards__summary-actions",children:[re.length>0&&k("button",{type:"button",className:"squisq-flashcards__button squisq-flashcards__button--primary",onClick:()=>{M(re),q();},children:"Retry missed"}),k("button",{type:"button",className:"squisq-flashcards__button",onClick:j,children:"Study again"}),k("button",{type:"button",className:"squisq-flashcards__button",onClick:G,children:"Previous card"})]})]})});let Me=U?.choices?aI(U.choices,`${U.id}:${w}`):[],_e=Me.find(oe=>oe.id===I),Re=`Card ${T+1} of ${C.length}`,Oe=T===C.length-1,Ge=v?Oe?"Finish":"Next card":"Reveal",tt=$&&!m,ot=k("div",{className:"squisq-flashcards__tools",children:[k("button",{type:"button",className:"squisq-flashcards__tool","aria-pressed":h,onClick:()=>{b(oe=>!oe),j();},children:"Shuffle"}),k("button",{type:"button",className:"squisq-flashcards__tool",onClick:j,children:"Restart"})]}),Ne=k("button",{type:"button",className:"squisq-flashcards__button",disabled:T===0&&!v,onClick:G,"aria-keyshortcuts":"ArrowLeft",title:"Previous (\u2190)",children:"Previous"}),et=k("div",{className:"squisq-flashcards__progress","aria-hidden":"true",children:k("span",{style:{width:`${(T+(v?1:0))/C.length*100}%`}})}),Z=[k("button",{type:"button",className:"squisq-flashcards__button",onClick:()=>ke("again"),children:"Again"},"again"),k("button",{type:"button",className:"squisq-flashcards__button squisq-flashcards__button--primary",onClick:()=>ke("got-it"),children:Oe?"Finish":"Next"},"got-it")];tt&&Z.reverse();let fe=k("div",{className:"squisq-flashcards__primary-actions",children:v&&U.kind==="basic"?Z:k("button",{type:"button",className:"squisq-flashcards__button squisq-flashcards__button--primary",onClick:K,"aria-keyshortcuts":"Space ArrowRight",title:`${Ge} (Space or \u2192)`,children:Ge})});return k("div",{ref:z,className:f+(tt?" squisq-flashcards--side-rails":""),style:ne,role:"region","aria-label":"Flashcards",tabIndex:0,onKeyDown:a?void 0:W,children:[k("header",{className:"squisq-flashcards__header",children:[k("div",{className:"squisq-flashcards__deck-copy",children:[g.title&&k("h1",{title:m?g.title:void 0,children:g.title}),m&&k("span",{className:"squisq-flashcards__position",children:Re})]}),m?k("div",{className:"squisq-flashcards__controls",children:[ot,k("div",{className:"squisq-flashcards__navigation",children:[Ne,fe]})]}):ot]}),m&&et,k("main",{ref:B,className:"squisq-flashcards__card","data-card-kind":U.kind,"aria-label":"Scrollable flashcard content",tabIndex:0,children:[U.label&&k("div",{className:"squisq-flashcards__label",children:U.label}),k("section",{className:"squisq-flashcards__front","aria-label":"Question",children:k(Ul,{...Q,face:U.front})}),U.kind==="multiple-choice"&&k("div",{className:"squisq-flashcards__choices",role:"group","aria-label":"Answer choices",children:Me.map((oe,ve)=>{let Be=I===oe.id,$e=v?oe.correct?"correct":Be?"incorrect":"idle":"idle";return k("button",{type:"button",className:"squisq-flashcards__choice","data-choice-status":$e,"aria-pressed":Be,"aria-keyshortcuts":ve<9?String(ve+1):void 0,disabled:v,onClick:()=>ae(oe),children:[k("span",{className:"squisq-flashcards__choice-key","aria-hidden":"true",children:ve+1}),k(UX,{...Q,choice:oe})]},oe.id)})}),v&&U.kind==="basic"&&k("section",{className:"squisq-flashcards__answer","aria-label":"Answer",children:k(Ul,{...Q,face:U.back})}),v&&U.kind==="multiple-choice"&&k("div",{className:"squisq-flashcards__feedback","data-correct":_e?.correct===true,"aria-live":"polite",children:[k("strong",{children:_e===void 0?"Answer revealed":_e.correct?"Correct":"Not quite"}),!_e?.correct&&k("div",{className:"squisq-flashcards__correct-answer",children:[k("span",{children:"The correct answer is"}),k(Ul,{...Q,face:U.back})]})]}),v&&U.explanation&&k("section",{className:"squisq-flashcards__explanation","aria-label":"Explanation",children:[k("span",{className:"squisq-flashcards__answer-label",children:"Explanation"}),k(Ul,{...Q,face:U.explanation})]})]}),!m&&k("footer",{className:"squisq-flashcards__footer",children:[k("div",{className:"squisq-flashcards__back",children:[Ne,k("div",{className:"squisq-flashcards__progress-group",children:[k("span",{className:"squisq-flashcards__position",children:Re}),et]})]}),fe]})]})}var YX=new Set(["a","an","the","and","but","or","for","nor","on","at","to","in","of","by","is"]);function U0(e){let t=new Map;for(let n of e.blocks)if(ft(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||!YX.has(a)?a.charAt(0).toUpperCase()+a.slice(1):a).join(" ");t.set(n,i);}}return t}function Mm(e,t,n){if(e)return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[n]}function XX(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 KX(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 QX(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 ZX(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 lI(e,t={}){let n=e.frontmatter,r=i0(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??Aa(e),videoPresentation:t.videoPresentation??XX(Mm(n,"squisq-video-presentation","video-presentation"))??"background",pipSize:t.pipSize??KX(Mm(n,"squisq-pip-size","pip-size"))??"small",pipShape:t.pipShape??QX(Mm(n,"squisq-pip-shape","pip-shape"))??"square",pipPosition:t.pipPosition??ZX(Mm(n,"squisq-pip-position","pip-position"))??"bottom-right",showCoverSlide:r.enabled,coverSlideTemplate:r.template,coverSlideDuration:r.duration,coverSlidePlayback:r.playback}}function JX(){try{return typeof process<"u"&&!1}catch{return false}}var cI=false,eK=100,uI=1e-6;function j0(){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"?eK:0);document.visibilityState==="visible"&&(n=window.requestAnimationFrame(r));})}function dI(e){let{doc:t,markdown:n}=e,r=he(()=>!t&&n!==void 0?pi(un(n)):void 0,[t,n]),i=t??r;return i?e.displayMode==="flashcards"?k("div",{className:"doc-player doc-player--flashcards",children:k(sI,{doc:i,basePath:e.basePath,theme:e.theme,globalKeyboardShortcuts:e.globalKeyboardShortcuts,showCodeCopyButton:e.showCodeCopyButton,onCopyCode:e.onCopyCode,fenceRenderers:e.fenceRenderers,viewport:e.forceViewport})}):k(tK,{...e,doc:i}):k("div",{className:"doc-player doc-player--empty"})}function tK({doc:e,basePath:t=".",renderMode:n=false,animationsEnabled:r=true,buildsEnabled:i=true,autoPlay:a=false,loop:o=false,onEnded:s,onTimeUpdate:l,audioController:c,audioMode:u="media",showControls:d=true,showScrubber:m=false,muted:f=false,captionsEnabled:p,onCaptionsToggle:g,onPlaybackStateChange:h,onControlsReady:b,onRenderAPIReady:w,renderVideoFrameSelector:x,processedAudio:T,isFullscreen:S=false,onFullscreenToggle:v,onBlockMarkers:E,forceViewport:I,displayMode:_="video",dashboardLayout:A,dashboardShowTitle:P,dashboardStyle:D,dashboardDocumentTitle:M,showCoverSlide:B,coverSlideTemplate:L,coverSlideDuration:z,coverSlidePlayback:$,coverVisible:O,theme:R,motion:C,surface:U,captionStyle:ee="standard",captionPosition:q,videoPresentation:j,pipSize:X,pipShape:K,pipPosition:G,enableSwipe:ae=true,globalKeyboardShortcuts:ke=false,showCodeCopyButton:W=false,onCopyCode:Q,fenceRenderers:te,tableContentRenderer:V}){let ne=_==="slideshow",re=_==="linear",ge=_==="dashboard",Me=we(null),_e=we(null),Re=`squisq-player-${tn().replace(/:/g,"")}`,[Oe,Ge]=ye(null),tt=we(),{viewport:ot}=w5(),Ne=I||(n?ct.landscape:ot),et=Ne.height>Ne.width?"portrait":"landscape",Z=he(()=>typeof window>"u"?false:new URLSearchParams(window.location.search).get("debug")==="true",[]),fe=he(()=>u==="synthetic"?nm(e):0,[u,e]),oe=h5(Me,e.audio,t,!c,u,fe),ve=c||oe;xe(()=>{if(cI||!JX())return;let ie=_e.current;if(!ie||typeof getComputedStyle!="function")return;getComputedStyle(ie).getPropertyValue("--squisq-styles-loaded").trim()||(cI=true,console.warn('[squisq] @bendyline/squisq-react/styles is not loaded \u2014 import "@bendyline/squisq-react/styles"'));},[]);let{currentTime:Be,isPlaying:$e,currentSegment:it,totalDuration:nt,isEnded:Xn,isReady:Tn,isBuffering:St=false,isAvailable:en,unavailableMessage:Sn,play:W0,pause:En,toggle:V0,seekTo:Ot,skipToSegment:lK,restart:jl}=ve,[G0,pI]=ye(null),hI=G0?.doc===e?G0.time:null,xt=n?hI??Be:Be,gI=he(()=>_o(e),[e]),Y0=PC(gI,t),yI=he(()=>_o(e,{intrinsicDuration:ie=>Y0.get(ie.src),...T?{processedAudio:T}:{}}),[e,Y0,T]),Wl=Ee(()=>{if(n)return;let ie=_e.current;if(!ie)return;ie.querySelectorAll('.doc-player__block--active video[data-clip-start], [data-clip-id][data-active="true"]').forEach(ze=>{let bt=ze.play();bt&&bt.catch(()=>{});});},[n]),Vl=Ee(()=>(Wl(),W0()),[W0,Wl]),Na=Ee(()=>($e||Wl(),V0()),[$e,Wl,V0]),Lm=we(xt);Lm.current=xt;let Pm=we(xt),Gl=we([]),X0=we(x);X0.current=x;let K0=we(null),Q0=we(nt);Q0.current=nt;let Z0=we(0);$t(()=>{Pm.current=xt;let ie=Gl.current;Gl.current=ie.filter(Ce=>Math.abs(Ce.time-xt)>uI?true:(Ce.resolve(),false));},[xt]),xe(()=>()=>{let ie=new Error("DocPlayer unmounted before the requested frame committed.");Gl.current.splice(0).forEach(Ce=>Ce.reject(ie));},[]);let J0=Ee(ie=>Math.abs(Pm.current-ie)<=uI?Promise.resolve():new Promise((Ce,ze)=>{Gl.current.push({time:ie,resolve:Ce,reject:ze});}),[]),bI=Ee(ie=>{if(n||re)return;let Ce=ie.target;if(ne){Ce.closest('button, a, input, textarea, select, [contenteditable="true"]')||_e.current?.focus({preventScroll:true});return}if(Ce.closest('button, a, input, textarea, select, [contenteditable="true"], .doc-player__controls, .doc-player__scrubber, .doc-controls-sidebar, .doc-controls-slideshow'))return;_e.current?.focus({preventScroll:true}),Na(),Ge($e?"pause":"play"),clearTimeout(tt.current),tt.current=setTimeout(()=>Ge(null),600);},[n,Na,$e,ne,re]),wI=_m(U==="auto"),Rm=U==="auto"?wI:U,_n=he(()=>lI(e,{theme:R,videoPresentation:j,pipSize:X,pipShape:K,pipPosition:G,showCoverSlide:B,coverSlideTemplate:L,coverSlideDuration:z,coverSlidePlayback:$}),[e,R,j,X,K,G,B,L,z,$]),Kn=he(()=>{let ie=_n.theme;return Rm?$s(ie,Rm):ie},[_n.theme,Rm]),$o=he(()=>g0(Kn),[Kn]),kI=$o,xI=he(()=>({border:$o["--squisq-pip-border"],borderRadius:$o["--squisq-pip-radius"],boxShadow:$o["--squisq-pip-shadow"]}),[$o]),vI=he(()=>e.blocks.some(ie=>typeof ie.sourceStartTime=="number"),[e.blocks]),{currentBlock:Qn,currentBlockIndex:Ln,previousBlock:Yl,isEntering:TI,isExiting:SI,blockTime:eb,docProgress:Nm,blocks:Qe,suppressOutgoingForNextBlock:tb}=b5(e,xt,{basePath:t,viewport:Ne,theme:Kn,motion:C,onSeek:Ot,deterministicTransitions:n,useAudioSegmentTiming:u!=="synthetic"||n&&vI}),Ft=he(()=>{let ie=e.startBlock;if(!_n.showCoverSlide||!ie)return null;let Ce=Vn(Kn,0,1,Ne,{motion:oo(e,Kn,C)});return {id:"cover-block",startTime:-1,duration:0,audioSegment:-1,layers:zh(ie,Ce,_n.coverSlideTemplate)}},[e,C,Ne,Kn,_n.showCoverSlide,_n.coverSlideTemplate]),Dm=!!Ft,[Xl,Br]=ye(false),[EI,nb]=ye(false),rb=we("");xe(()=>{let ie=`${e.articleId}:${ne}:${Dm}:${n}`;rb.current!==ie&&(rb.current=ie,ne&&Dm&&!n?(Br(true),En()):Br(false));},[e.articleId,ne,Dm,n,En]);let[_I,Om]=ye(false),[AI,Fm]=ye(false),Bm=we(),Kl=we(false),Ql=we(false);xe(()=>{Ql.current=false,Kl.current=false,clearTimeout(Bm.current),Fm(false),Om(false);},[e]),Ft&&!ne&&!$e&&xt===0&&!Ql.current&&!n&&!a&&(Kl.current=true),xe(()=>{$e&&Kl.current&&Ft&&!n&&!ne&&(Kl.current=false,Ql.current=true,Fm(true),Bm.current=setTimeout(()=>Fm(false),_n.coverSlideDuration*1e3));},[$e,Ft,n,ne,_n.coverSlideDuration]),xe(()=>()=>clearTimeout(Bm.current),[]),xe(()=>()=>clearTimeout(tt.current),[]);let CI=!re&&!!Ft&&(_I||!ne&&(AI||!$e&&xt===0&&!Ql.current&&!n&&!a)),ib=O??Xl,Ho=!!(ne&&!re&&!n&&Ft&&ib),gr=O===void 0?CI||Ho:!!Ft&&O,hn=!!(ne&&!n&&Ft),$r=hn?ib?0:Ln+1:Ln,Zl=hn?Qe.length+1:Qe.length,$m=we(false);xe(()=>{$m.current=false;},[e]),xe(()=>{Tn&&a&&!$m.current&&($m.current=true,Vl());},[Tn,a,Vl]),xe(()=>{l?.(xt);},[xt,l]),xe(()=>{Xn&&(s?.(),o&&!ne&&!re&&!ge&&jl());},[Xn,ge,re,ne,o,s,jl]);let Da=we(null),Hm=we(null);if(!Hm.current){let ie=()=>{let Ce=Da.current;if(!Ce)throw new Error("Squisq render API is not currently available.");return Ce};Hm.current={seekTo:Ce=>ie().seekTo(Ce),getRenderedTime:()=>ie().getRenderedTime(),getDuration:()=>ie().getDuration(),getViewport:()=>ie().getViewport(),getBlocks:()=>ie().getBlocks(),getAudioSegments:()=>ie().getAudioSegments(),getCaptions:()=>ie().getCaptions(),getChapters:()=>ie().getChapters(),showCover:()=>ie().showCover(),hideCover:()=>ie().hideCover(),hasCoverBlock:()=>ie().hasCoverBlock()};}let ab=Hm.current;xe(()=>{if(ge||!n&&!Z){Da.current=null;return}let ie=_e.current;if(!ie){Da.current=null;return}let fb={seekTo:async Xe=>{if(n){let st=J0(Xe);lw(()=>pI({doc:e,time:Xe})),c&&Ot(Xe).catch(()=>{}),await st;}else await Ot(Xe);let yr=-1;for(let st=Qe.length-1;st>=0;st--)if(Xe>=Qe[st].startTime){yr=st;break}let jo=yr>=0?Qe[yr].startTime:0,NI=yr>0?Qe[yr-1].startTime:jo,pb=(Xe-jo)*1e3,DI=(Xe-NI)*1e3,hb=async(st,Et)=>{let Bt=n?X0.current:void 0;Bt&&await Bt(st,Et)||await iC(st,Et);},gb=0;(ie.getAnimations?.({subtree:true})??[]).forEach(st=>{let Et=st.effect?.target;if(!Et)return;let Bt;Et.closest(".doc-player__block--previous")?Bt=Et.classList.contains("block-svg")?pb:DI:Et.closest(".doc-player__block--active")?Bt=pb:Et.closest(".doc-player__block--cover")?Bt=0:Bt=Xe*1e3,n&&typeof st.pause=="function"&&st.playState!=="paused"&&st.pause(),st.currentTime=Math.max(0,Bt);let $a=st.effect?.getComputedTiming?.().endTime;(typeof $a!="number"||Bt<$a)&&(gb+=1);});let OI=Xe-jo,jm=[],yb=ie.querySelector(".doc-player__block--active");yb&&yb.querySelectorAll("video[data-clip-start]").forEach(Et=>{let Bt=Et,$a=parseFloat(Bt.dataset.clipStart||"0"),Vm=parseFloat(Bt.dataset.clipEnd||"0"),Gm=parseFloat(Bt.dataset.startAt||"0"),BI=Math.min($a+Math.max(0,OI-Gm),Vm);jm.push(hb(Bt,BI));}),ie.querySelectorAll("video[data-clip-id]").forEach(st=>{let Et=st,Bt=parseFloat(Et.dataset.absStart||"0"),$a=parseFloat(Et.dataset.absEnd||"0"),Vm=parseFloat(Et.dataset.sourceIn||"0");if(Et.pause(),Xe<Bt||Xe>=$a)return;let Gm=Vm+(Xe-Bt);jm.push(hb(Et,Gm));}),await Promise.all(jm);let Wm=Array.from(ie.querySelectorAll(".doc-player__block"),st=>({element:st,className:st.className})),sc=K0.current;K0.current=Wm;let FI=sc!==null&&sc.length===Wm.length&&Wm.every((st,Et)=>st.element===sc[Et].element&&st.className===sc[Et].className);(!n||!FI||gb>0)&&await j0();},getRenderedTime:()=>Pm.current,getDuration:()=>{let Xe=nm(e);return nt>0?Math.max(nt,Xe):Xe},getViewport:()=>({width:Ne.width,height:Ne.height}),getBlocks:()=>Qe.map(Xe=>({id:Xe.id,template:Xe.template??"raw",startTime:Xe.startTime,duration:Xe.duration})),getAudioSegments:()=>e.audio.segments.map(Xe=>({src:Xe.src,name:Xe.name,duration:Xe.duration,startTime:Xe.startTime})),getCaptions:()=>e.captions?.phrases?.map(Xe=>({text:Xe.text,startTime:Xe.startTime,endTime:Xe.endTime}))||[],getChapters:()=>{let Xe=U0(e);return e.audio.segments.map((yr,jo)=>({title:Xe.get(jo)||yr.name,startTime:yr.startTime,duration:yr.duration}))},showCover:()=>(Om(true),j0()),hideCover:()=>(Om(false),j0()),hasCoverBlock:()=>!!Ft};return Da.current=fb,()=>{Da.current===fb&&(Da.current=null);}},[n,Z,Ot,nt,Qe,Ft,e,c,J0,ge,Ne]),xe(()=>{if(!ge){if(!n&&!Z||!_e.current){w?.(null);return}return w?.(ab),()=>w?.(null)}},[n,Z,ge,w,ab]);let zm=p===false?"off":ee||"standard",[Jl,Um]=ye(zm);xe(()=>{Um(zm);},[zm]);let Ci=Jl!=="off",ob=n||$e||!ne&&xt>0,II=Jl==="social"?"social":"standard",sb=Ee(ie=>{Um(ie?ee||"standard":"off"),g?.(ie);},[g,ee]),lb=Ee(()=>{Um(ie=>{let Ce=ie==="off"?"standard":ie==="standard"?"social":"off";return g?.(Ce!=="off"),Ce});},[g]),Oa=e.captions&&e.captions.phrases.length>0,[cb,MI]=ye(null);xe(()=>{let ie=_e.current;if(!ie||n||!Oa)return;let Ce=()=>{let bt=ie.offsetWidth,Ba=ie.offsetHeight;bt<=0||Ba<=0||MI(qi=>qi&&qi.width===bt&&qi.height===Ba?qi:{width:bt,height:Ba});};Ce();let ze=typeof ResizeObserver>"u"?null:new ResizeObserver(Ce);return ze?.observe(ie),window.addEventListener("resize",Ce),()=>{ze?.disconnect(),window.removeEventListener("resize",Ce);}},[n,Oa,re,ge]);let ub=!n&&cb?{...Ne,...cb}:Ne,db=he(()=>U0(e),[e]),Pn=JA(Qn,i&&ne&&!n&&!gr,r),{enter:Fa,next:ec,previous:tc,showAll:nc}=Pn,mb=Pn.cursor.progress<1,zo=he(()=>({buildStep:Pn.cursor.revealed,buildCount:Pn.count,isBuilding:mb,isPlaying:$e,isBuffering:St,currentTime:xt,totalDuration:nt,isCoverVisible:gr,currentBlockIndex:$r,totalBlocks:Zl,docProgress:Nm,hasCaptions:!!Oa,captionsEnabled:Ci,captionMode:Jl,isFullscreen:S,currentSegmentIndex:it,currentSegmentName:db.get(it)??e.audio.segments[it]?.name??null,currentBlock:Ho?Ft:Qn??null,currentSlideLabel:Ho?"Cover":void 0,currentSlideNumber:hn&&!Ho?Ln+1:void 0,totalSlideNumber:hn?Qe.length:void 0}),[Pn.cursor.revealed,Pn.count,mb,$e,St,xt,nt,gr,$r,Zl,Nm,Oa,Ci,Jl,S,it,db,Qn,Ln,Ho,Ft,hn,Qe.length]),rc=he(()=>({toggle:Na,restart:jl,seekTo:Ot,setCaptionsEnabled:sb,cycleCaptionMode:lb,toggleFullscreen:v}),[Na,jl,Ot,sb,lb,v]),Rn=he(()=>({nextSlide:()=>{if(hn&&Xl){let ie=Qe[0];ie&&(Fa(ie),Br(false),Ot(ie.startTime),En());return}if(Ln<Qe.length-1){let ie=Qe[Ln+1];ie&&(Fa(ie),Br(false),Ot(ie.startTime),En());}},prevSlide:()=>{if(hn&&!Xl&&Ln<=0){Br(true),Ot(0),En();return}if(Ln>0){let ie=Qe[Ln-1];ie&&(Fa(ie,true),Br(false),Ot(ie.startTime),En());}},goToSlide:ie=>{if(hn){if(ie===0){Br(true),Ot(0),En();return}let Ce=Qe[ie-1];Ce&&(Fa(Ce),Br(false),Ot(Ce.startTime),En());return}if(ie>=0&&ie<Qe.length){let Ce=Qe[ie];Ce&&(Fa(Ce),Ot(Ce.startTime),En());}}}),[Ln,Qe,Ot,En,hn,Xl,Fa]),Ii=he(()=>({...Rn,nextStep:()=>{ec()||Rn.nextSlide();},prevStep:()=>{tc()||Rn.prevSlide();},showAllBuilds:nc}),[Rn,ec,tc,nc]),ic=ne&&!re&&!n&&ae,ac=Ee(ie=>{let Ce=ie-(hn?1:0),ze=Qe[Ce];ze&&tb(ze.id);},[Qe,hn,tb]),qI=Ee(()=>{ec()||(ac($r+1),Rn.nextSlide());},[ac,$r,Rn,ec]),LI=Ee(()=>{tc()||(ac($r-1),Rn.prevSlide());},[ac,$r,Rn,tc]),Hr=k5({enabled:ic,containerRef:_e,canGoNext:$r<Zl-1||Pn.cursor.revealed<Pn.count||Pn.cursor.progress<1,canGoPrev:$r>0||Pn.cursor.revealed>0,onNext:qI,onPrev:LI});xe(()=>{h?.(zo);},[zo,h]),xe(()=>{b?.({play:Vl,pause:En,...rc,nextBuild:Ii.nextStep,previousBuild:Ii.prevStep,showAllBuilds:nc});},[Vl,En,rc,b,Ii,nc]);let Mi=Ee(ie=>{let Ce=ie;if(ft(Ce)){let ze=Ce;if(typeof ze.title=="string")return ze.title;if(typeof ze.stat=="string")return ze.stat;if(typeof ze.quote=="string"){let bt=ze.quote.split(`
766
+ `);return k(Fe,{children:o.map((s,l)=>k(Fe,{children:[l>0&&k("br",{}),s]},l))},a)}case "emphasis":return k("em",{className:"squisq-md-em",children:Jt(r.children,a,n)},a);case "strong":return k("strong",{className:"squisq-md-strong",children:Jt(r.children,a,n)},a);case "delete":return k("del",{className:"squisq-md-del",children:Jt(r.children,a,n)},a);case "superscript":return k("sup",{className:"squisq-md-sup",children:Jt(r.children,a,n)},a);case "subscript":return k("sub",{className:"squisq-md-sub",children:Jt(r.children,a,n)},a);case "inlineCode":return k("code",{className:"squisq-md-inline-code",children:r.value},a);case "link":{if(n.accessoryPaths?.has(r.url))return k("span",{className:"squisq-md-attachment","data-attachment-path":r.url,title:r.title??`Attachment: ${r.url}`,children:[k("i",{className:"fa-solid fa-paperclip","aria-hidden":"true"}),k("span",{className:"squisq-md-attachment-label",children:Jt(r.children,a,n)})]},a);let o=_t(r.url,"link",{extraLinkSchemes:n.linkSchemes});return o?k("a",{className:"squisq-md-link",href:o,title:r.title??void 0,target:"_blank",rel:"noopener noreferrer",children:Jt(r.children,a,n)},a):k("span",{className:"squisq-md-link squisq-md-link--blocked",children:Jt(r.children,a,n)},a)}case "image":{let o=_r(r.url);if(o){let s=_t(r.url,"media");if(!s)return null;let l=r.alt||r.title||void 0;return o==="video"?k(Fl,{src:s,basePath:".",label:l},a):k(F0,{src:s,basePath:".",label:l},a)}return k(MX,{src:r.url,alt:r.alt??"",title:r.title??void 0,width:r.width,height:r.height},a)}case "break":return k("br",{},a);case "inlineMath":return k("code",{className:"squisq-md-inline-math",children:r.value},a);case "inlineIcon":return k("i",{className:`fa-${r.family} fa-${r.name}`,"data-icon":r.token,"aria-hidden":"true"},a);case "htmlInline":return n.htmlPolicy==="strip"?null:k("span",{className:"squisq-md-html-inline",children:H0($5(r.htmlChildren,n.htmlPolicy),`${a}h`,n)},a);case "footnoteReference":return k("sup",{className:"squisq-md-footnote-ref",children:k("a",{href:`#fn-${r.identifier}`,children:["[",r.label??r.identifier,"]"]})},a);case "linkReference":return k("span",{className:"squisq-md-link-ref",children:Jt(r.children,a,n)},a);case "imageReference":return k("span",{className:"squisq-md-image-ref",children:["[",r.alt??r.identifier,"]"]},a);case "textDirective":return k("span",{className:"squisq-md-text-directive","data-directive":r.name,children:Jt(r.children,a,n)},a);case "mention":return k("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 CX(e,t,n=Fo){switch(e.type){case "paragraph":{let r=n.nested?null:$n(e);return r?k(Do,{embed:r.embed,title:r.title},t):k("p",{className:"squisq-md-p",children:Jt(e.children,t,n)},t)}case "heading":{let r=`h${e.depth}`;return k(r,{className:`squisq-md-heading squisq-md-h${e.depth}`,children:Jt(e.children,t,n)},t)}case "blockquote":return k("blockquote",{className:"squisq-md-blockquote",children:Oo(e.children,t,$l(n))},t);case "list":return e.ordered?k("ol",{className:"squisq-md-list squisq-md-ol",start:e.start??void 0,children:e.children.map((r,i)=>F5(r,`${t}li${i}`,n))},t):k("ul",{className:"squisq-md-list squisq-md-ul",children:e.children.map((r,i)=>F5(r,`${t}li${i}`,n))},t);case "code":{let r=e.lang?.trim().toLowerCase();return r&&n.fenceRenderers?.[r]?k($0,{fallback:k(B0,{value:e.value,language:e.lang,ctx:n}),children:k(AX,{node:e,lang:r,ctx:n})},t):r==="mermaid"?k(Tm,{source:e.value,className:"squisq-md-mermaid",ariaLabel:"Mermaid diagram",theme:n.theme},t):r==="svg"?k(O5,{source:e.value,fallback:k(B0,{value:e.value,language:e.lang,ctx:n})},t):k(B0,{value:e.value,language:e.lang,ctx:n},t)}case "thematicBreak":return k("hr",{className:"squisq-md-hr"},t);case "table":return IX(e.children,e.align,t,n);case "htmlBlock":{if(n.htmlPolicy==="strip")return null;let r=$n(e);return r?k(Do,{embed:r.embed,title:r.title},t):k("div",{className:"squisq-md-html-block",children:H0($5(e.htmlChildren,n.htmlPolicy),`${t}h`,n)},t)}case "math":return k("pre",{className:"squisq-md-math-block",children:k("code",{children:e.value})},t);case "definition":return null;case "footnoteDefinition":return k("div",{className:"squisq-md-footnote-def",id:`fn-${e.identifier}`,children:[k("sup",{children:e.label??e.identifier}),Oo(e.children,t,$l(n))]},t);case "containerDirective":return k("div",{className:`squisq-md-directive squisq-md-directive-${e.name}`,"data-directive":e.name,children:[e.label&&k("div",{className:"squisq-md-directive-label",children:e.label}),Oo(e.children,t,$l(n))]},t);case "leafDirective":return k("div",{className:`squisq-md-directive squisq-md-directive-${e.name}`,"data-directive":e.name,children:Jt(e.children,t,n)},t);case "definitionList":return k("dl",{className:"squisq-md-dl",children:e.children.map((r,i)=>r.type==="definitionTerm"?k("dt",{className:"squisq-md-dt",children:Jt(r.children,`${t}dt${i}`,n)},`${t}dt${i}`):k("dd",{className:"squisq-md-dd",children:Oo(r.children,`${t}dd${i}`,$l(n))},`${t}dd${i}`))},t);default:return null}}function F5(e,t,n=Fo){let r=e.checked!==null&&e.checked!==void 0;return k("li",{className:`squisq-md-li${r?" squisq-md-task":""}`,children:[r&&k("input",{type:"checkbox",checked:!!e.checked,readOnly:true,className:"squisq-md-checkbox"}),Oo(e.children,t,$l(n))]},t)}function IX(e,t,n,r=Fo){let[i,...a]=e;return k("table",{className:"squisq-md-table",children:[i&&k("thead",{children:k("tr",{children:i.children.map((o,s)=>k("th",{className:"squisq-md-th",style:t?.[s]?{textAlign:t[s]}:void 0,children:Jt(o.children,`${n}th${s}`,r)},`${n}th${s}`))})}),a.length>0&&k("tbody",{children:a.map((o,s)=>k("tr",{children:o.children.map((l,c)=>k("td",{className:"squisq-md-td",style:t?.[c]?{textAlign:t[c]}:void 0,children:Jt(l.children,`${n}td${s}-${c}`,r)},`${n}td${s}-${c}`))},`${n}tr${s}`))})]},n)}function Oo(e,t="",n=Fo){return e.map((r,i)=>CX(r,`${t}b${i}`,n))}function MX({src:e,alt:t,title:n,width:r,height:i}){let a=_t(e,"media")??km(e),o=Tt(a??"","."),s=we(null),l=D5(a??"",o);return a?Ol(a)?k("span",{className:"squisq-animated-image","data-animated":l.animated?"true":void 0,style:{position:"relative",display:"inline-block",maxWidth:"100%"},children:[k("img",{ref:s,className:"squisq-md-image",src:l.displaySrc,alt:t,title:n,width:r,height:i,style:{display:"block",maxWidth:"100%"}}),k(R5,{playback:l,imageRef:s})]}):k("img",{className:"squisq-md-image",src:o,alt:t,title:n,width:r,height:i}):null}function $5(e,t){return t==="strip"?[]:t==="trusted"?e:Ka(e)}var qX=new Set(["base","embed","iframe","link","meta","object","script","style","title"]),LX={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"},PX=new Set(["","_self","_parent","_top"]);function RX(e,t){let n={};for(let[r,i]of Object.entries(e)){let a=LX[r];if(a){if(a==="style"){n["data-style"]=i;continue}if(a==="href"){let o=_t(i,"link",{extraLinkSchemes:t.linkSchemes});o&&(n.href=o);continue}if(a==="src"){let o=_t(i,"media");o&&(n.src=o);continue}n[a]=i;}}if(typeof n.target=="string"&&!PX.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 NX(e,t,n){let r=e.tagName.toLowerCase();if(r==="iframe"){let o=au(e);return o?k(Do,{embed:o.embed,title:o.title,inline:true},t):null}if(qX.has(r))return null;if(r==="video"){let o=_t(e.attributes.src??"","media")??"",s=_t(e.attributes.poster??"","media")??void 0;return k(Fl,{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=_t(e.attributes.src??"","media")??"";return k(F0,{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=RX(e.attributes,n);return e.selfClosing?k(i,{...a},t):k(i,{...a,children:H0(e.children,`${t}c`,n)},t)}function H0(e,t,n=Fo){return e.map((r,i)=>{let a=`${t}${i}`;switch(r.type){case "htmlElement":return NX(r,a,n);case "htmlText":return k(Fe,{children:r.value},a);case "htmlComment":return null;default:return null}})}var H5=new Set,B5=e=>e.size===0?e:H5;function _i({nodes:e,className:t,htmlPolicy:n="sanitize",linkSchemes:r,theme:i,showCodeCopyButton:a=false,onCopyCode:o,fenceRenderers:s}){let l=P5(),c=La(),[u,d]=ye(H5);return xe(()=>{if(!c){d(B5);return}let m=false;return c.listMedia().then(f=>{m||d(new Set(f.map(p=>p.name)));},()=>{m||d(B5);}),()=>{m=true;}},[c]),!e||e.length===0?null:k("div",{className:`squisq-md ${t||""}`,children:Oo(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}=qn(),i=_t(e.src,"media")??km(e.src),a=Tt(i??"",r);return i?k("img",{className:n,src:a,alt:e.alt,loading:t?"eager":"lazy",decoding:"async",width:e.width,height:e.height}):null}function DX({media:e}){let{basePath:t}=qn(),n=_t(e.src,"media"),r=Tt(n??"",t),i=e.posterSrc?_t(e.posterSrc,"media"):void 0,a=Tt(i??"",t);return n?k("video",{src:r,poster:i?a:void 0,muted:true,loop:true,autoPlay:true,playsInline:true,preload:"metadata"}):null}function OX({media:e}){let t=yn(e.url);return t?k(Do,{embed:t,title:e.title,showCaption:false}):null}function Hl({section:e}){return e.slots.eyebrow?k("span",{className:"squisq-page-eyebrow",children:e.slots.eyebrow}):null}function z0({media:e}){return !e||e.type==="canvas"||e.type==="videoEmbed"||!e.credit?null:k("span",{className:"squisq-page-media-credit",children:[e.credit,e.license?` \xB7 ${e.license}`:""]})}function z5({section:e}){let{pageStyle:t}=qn(),n=e.slots.media,r=n?.type==="image"?n:void 0,i=t.tokens.heroStyle,a=k("div",{className:"squisq-page-hero-body",children:[k(Hl,{section:e}),k("h1",{className:"squisq-page-hero-title",children:e.slots.title}),e.slots.subtitle&&k("p",{className:"squisq-page-hero-subtitle",children:e.slots.subtitle})]});return r&&i==="split"?k("div",{className:"squisq-page-hero-grid",children:[a,k("div",{className:"squisq-page-hero-media squisq-page-media-frame",children:[k(Ai,{media:r,eager:true}),k(z0,{media:r})]})]}):k(Fe,{children:[r&&e.background==="media"&&k("div",{className:"squisq-page-hero-backdrop",children:k(Ai,{media:r,eager:true})}),a]})}function U5({section:e}){let t=e.slots.media,n=t?.type==="image"?t:void 0;return k(Fe,{children:[n&&e.background==="media"&&k("div",{className:"squisq-page-hero-backdrop",children:k(Ai,{media:n})}),k("div",{className:"squisq-page-banner-body",children:[k(Hl,{section:e}),k("h2",{className:"squisq-page-section-title squisq-page-banner-title",children:e.slots.title})]})]})}function j5({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 k(Fe,{children:[k("div",{className:"squisq-page-stats",children:t.map((a,o)=>k("div",{className:`squisq-page-stat${n?" squisq-page-stat--bars":""}`,children:[k("span",{className:"squisq-page-stat-value",children:a.value}),n&&Number.isFinite(r[o])&&k("div",{className:"squisq-page-stat-bar",style:{width:`${Math.max(4,r[o]/i*100)}%`}}),a.title&&k("span",{className:"squisq-page-stat-title",children:a.title}),a.body&&k("span",{className:"squisq-page-stat-body",children:a.body})]},o))}),e.slots.meta&&k("div",{className:"squisq-page-stat-meta",children:e.slots.meta})]})}function W5({section:e}){let t=e.slots.media,n=e.background==="media"&&t&&t.type!=="canvas"&&t.type!=="videoEmbed";return k(Fe,{children:[n&&k("div",{className:"squisq-page-quote-backdrop",children:t.type==="image"?k(Ai,{media:t}):k(DX,{media:t})}),e.slots.title&&k("h2",{className:"squisq-page-section-title",children:e.slots.title}),k("figure",{className:"squisq-page-quote-figure",style:{margin:0},children:[k("blockquote",{className:"squisq-page-quote",children:e.slots.body?.text}),e.slots.attribution&&k("figcaption",{className:"squisq-page-quote-attribution",children:e.slots.attribution})]})]})}function V5({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 k("div",{className:`squisq-page-feature${i?" squisq-page-feature--media-right":""}`,children:[k("div",{className:"squisq-page-feature-media squisq-page-media-frame",children:[r&&k(Ai,{media:r}),k(z0,{media:r})]}),k("div",{className:"squisq-page-feature-text",children:[k(Hl,{section:e}),e.slots.title&&k("h3",{className:"squisq-page-section-title squisq-page-feature-title",children:e.slots.title}),e.slots.body?.text&&k("p",{className:"squisq-page-feature-body",children:e.slots.body.text})]})]})}function G5({section:e}){let{basePath:t}=qn(),n=e.slots.media;return !n||n.type==="canvas"?null:k("figure",{className:"squisq-page-figure",children:[k("div",{className:"squisq-page-media-frame",children:n.type==="image"?k(Ai,{media:n}):n.type==="videoEmbed"?k(OX,{media:n}):k(Fl,{src:n.src,poster:n.posterSrc,basePath:t})}),(e.slots.caption||n.type!=="videoEmbed"&&n.credit)&&k("figcaption",{children:[e.slots.caption,n.type!=="videoEmbed"&&n.credit&&k(Fe,{children:[e.slots.caption?" ":"",k(z0,{media:n})]})]})]})}function Y5({section:e}){let t=e.slots.items??[];return t.length===0?k("div",{className:"squisq-page-gallery-empty",children:[e.slots.title&&k("h2",{className:"squisq-page-section-title",children:e.slots.title}),e.slots.body?.text&&k("p",{children:e.slots.body.text}),e.slots.caption&&k("div",{className:"squisq-page-gallery-caption",children:e.slots.caption})]}):k(Fe,{children:[k("div",{className:"squisq-page-gallery",children:t.map((n,r)=>n.media?.type==="image"?k("div",{className:"squisq-page-media-frame",children:k(Ai,{media:n.media})},r):null)}),e.slots.caption&&k("div",{className:"squisq-page-gallery-caption",children:e.slots.caption})]})}function X5({section:e}){let t=e.slots.media,n=t?.type==="image"?t:void 0,r=e.hints?.framing;return k("div",{className:"squisq-page-callout","data-hint-framing":typeof r=="string"?r:void 0,children:[n&&k("div",{className:"squisq-page-media-frame",children:k(Ai,{media:n})}),k("div",{children:[k(Hl,{section:e}),e.slots.title&&k("h3",{className:"squisq-page-callout-title",children:e.slots.title}),e.slots.body?.text&&k("p",{className:"squisq-page-callout-body",children:e.slots.body.text}),e.slots.meta&&k("div",{className:"squisq-page-callout-meta",children:e.slots.meta})]})]})}function K5({section:e}){let{theme:t}=qn(),n=e.slots.items??[];return k(Fe,{children:[e.slots.title&&k("h2",{className:"squisq-page-section-title squisq-page-cards-title",children:e.slots.title}),k("div",{className:"squisq-page-cards",children:n.map((r,i)=>{let a=r.accentScheme?t.colorSchemes?.[r.accentScheme]:void 0;return k("div",{className:"squisq-page-card",style:a?{"--squisq-page-card-accent":a.accent}:void 0,children:[r.title&&k("h3",{className:"squisq-page-card-title",children:r.title}),r.body&&k("p",{className:"squisq-page-card-body",children:r.body})]},i)})})]})}function Q5({section:e}){let{theme:t,showCodeCopyButton:n,onCopyCode:r,fenceRenderers:i,htmlPolicy:a,linkSchemes:o}=qn(),s=e.slots.items??[];return k(Fe,{children:[e.slots.title&&k("h2",{className:"squisq-page-section-title squisq-page-items-title",children:e.slots.title}),k("ol",{className:"squisq-page-items",children:s.map((l,c)=>k("li",{children:k("div",{className:"squisq-page-item-body",children:l.markdown?k(_i,{nodes:l.markdown,theme:t,showCodeCopyButton:n,onCopyCode:r,fenceRenderers:i,htmlPolicy:a,linkSchemes:o}):l.body})},c))})]})}function Z5({section:e}){let t=e.slots.milestone;return t?k("div",{className:"squisq-page-milestone","data-mood":t.mood,children:[k("div",{className:"squisq-page-milestone-date",children:t.date}),k("div",{className:"squisq-page-milestone-rail","aria-hidden":"true"}),k("div",{className:"squisq-page-milestone-body",children:[t.description,t.footer&&k("div",{className:"squisq-page-milestone-footer",children:t.footer})]})]}):null}function J5({section:e}){let t=e.slots.table;if(!t)return null;let n=r=>t.align?.[r]??void 0;return k(Fe,{children:[e.slots.title&&k("h2",{className:"squisq-page-section-title squisq-page-table-title",children:e.slots.title}),k("div",{className:"squisq-page-table-scroll",children:k("table",{className:"squisq-page-table",children:[k("thead",{children:k("tr",{children:t.headers.map((r,i)=>k("th",{style:{textAlign:n(i)},children:r},i))})}),k("tbody",{children:t.rows.map((r,i)=>k("tr",{children:r.map((a,o)=>k("td",{style:{textAlign:n(o)},children:a},o))},i))})]})})]})}function eI({section:e,block:t}){let{theme:n,showCodeCopyButton:r,onCopyCode:i,fenceRenderers:a,htmlPolicy:o,linkSchemes:s}=qn(),l=e.slots.title!==void 0&&t?.sourceHeading?k(_i,{nodes:[t.sourceHeading],theme:n,showCodeCopyButton:r,onCopyCode:i,htmlPolicy:o,linkSchemes:s}):null,c=e.slots.body?.markdown??t?.contents;return k("div",{className:"squisq-page-prose",children:[l,c&&c.length>0&&k(_i,{nodes:c,theme:n,showCodeCopyButton:r,onCopyCode:i,fenceRenderers:a,htmlPolicy:o,linkSchemes:s})]})}function tI({section:e}){return k("div",{children:[k(Hl,{section:e}),e.slots.title&&k("h2",{className:"squisq-page-section-title",children:e.slots.title}),e.slots.body?.text&&k("p",{children:e.slots.body.text})]})}function FX(e,t){return e.kind==="hero"&&e.background==="media"&&e.slots.media?.type==="image"&&t!=="split"}function BX(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 $X(e,t){let{section:n,block:r}=e;switch(n.kind){case "hero":return k(z5,{section:n,block:r});case "banner":return k(U5,{section:n,block:r});case "stat-band":return k(j5,{section:n,block:r});case "quote-band":return k(W5,{section:n,block:r});case "feature-split":return k(V5,{section:n,block:r,flip:t});case "media-figure":return k(G5,{section:n,block:r});case "gallery":return k(Y5,{section:n,block:r});case "callout":return k(X5,{section:n,block:r});case "card-grid":return k(K5,{section:n,block:r});case "item-list":return k(Q5,{section:n,block:r});case "timeline-rail":return k(Z5,{section:n,block:r});case "table-section":return k(J5,{section:n,block:r});case "canvas-embed":return k(A5,{section:n});case "footer":return k(tI,{section:n,block:r});default:return k(eI,{section:n,block:r})}}function nI({entry:e,featureFlip:t,isLeadProse:n}){let{pageStyle:r,theme:i,showCodeCopyButton:a,onCopyCode:o,fenceRenderers:s,htmlPolicy:l,linkSchemes:c}=qn(),{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}`),FX(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 p=u.kind!=="hero"&&u.slots.title!==void 0?u.slots.headingLevel??e.block?.sourceHeading?.depth:void 0;return p!==void 0&&(f["data-heading-level"]=String(p)),k("section",{className:m.join(" "),"data-section-kind":u.kind,"data-block-id":u.blockId,"data-block-index":u.index,"data-template":u.template,style:BX(u),...f,children:k("div",{className:"squisq-page-section-inner",children:[$X(e,t),d&&d.length>0&&k("div",{className:"squisq-page-rich-content",children:k(_i,{nodes:d,theme:i,showCodeCopyButton:a,onCopyCode:o,fenceRenderers:s,htmlPolicy:l,linkSchemes:c})})]})})}function Im({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:p=false,onCopyCode:g,fenceRenderers:h,htmlPolicy:b,linkSchemes:w}){let x=we(null),T=r??ct.landscape,S=he(()=>!e&&t!==void 0?pi(un(t)):void 0,[e,t]),v=e??S,E=_m(o==="auto"),I=o==="auto"?E:o,_=he(()=>{let X=a??dt;return I?$s(X,I):X},[a,I]),A=he(()=>Ia(_,f,m),[_,f,m]),P=he(()=>L0(h),[h]),D=he(()=>v?s0(v,{theme:_,viewport:T,customTemplates:v.customTemplates,cover:d!==false?v.startBlock:false,transformPage:f,variant:m,...P.length>0?{widgetFenceLangs:P}:{}}):[],[v,_,T,d,f,m,P]),M=he(()=>({theme:_,viewport:T,totalBlocks:D.length,persistentLayers:_.persistentLayers,customTemplates:v?.customTemplates}),[_,T,D.length,v?.customTemplates]),B=he(()=>({theme:_,pageStyle:A,basePath:n,viewport:T,renderContext:M,animationsEnabled:s,imageDisplayMode:c,showCodeCopyButton:p,onCopyCode:g,fenceRenderers:h,htmlPolicy:b,linkSchemes:w}),[_,A,n,T,M,s,c,p,g,h,b,w]),{featureOrdinals:L,leadProseIndex:z}=he(()=>{let X=new Map,K=0,G=-1;for(let ae of D)ae.section.kind==="feature-split"&&X.set(ae.section.index,K++),m!=="document"&&G<0&&ae.section.kind==="prose"&&(G=ae.section.index);return {featureOrdinals:X,leadProseIndex:G}},[D,m]);if(xe(()=>{if(!u)return;let X=K=>{if(K.defaultPrevented||K.altKey||K.ctrlKey||K.metaKey||K.shiftKey||K.key!=="ArrowDown"&&K.key!=="ArrowUp"||(K.target instanceof Element?K.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 ae=x.current;if(!ae)return;K.preventDefault();let ke=Math.max(64,Math.round(ae.clientHeight*.12));ae.scrollBy({top:K.key==="ArrowDown"?ke:-ke,behavior:"smooth"});};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[u]),!v)return k("div",{ref:x,className:`squisq-linear squisq-linear--empty ${i||""}`});let $=_.colors.background,O=_.colors.text,R=_.colors.textMuted,C=_.colors.primary,U=Ct(_.typography.bodyFont,"system-ui, sans-serif"),ee=Ct(_.typography.titleFont,"Georgia, serif"),q=_.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 k("div",{ref:x,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:k("div",{className:j,...c0(A),style:{lineHeight:q,fontSize:m==="document"?"15px":"16px",fontFamily:U,color:O,...l0(_,A),"--squisq-linear-title-font":ee,"--squisq-linear-body-font":U,"--squisq-linear-text":O,"--squisq-linear-muted":R,"--squisq-linear-primary":C,"--squisq-linear-bg":$},children:[k("style",{"data-squisq-page":"",children:u0}),k(P0.Provider,{value:B,children:D.map(X=>{let K=L.get(X.section.index)??0,G=!!X.section.hints?.alternate&&K%2===1;return k(nI,{entry:X,featureFlip:G,isLeadProse:X.section.index===z},`${X.section.blockId}-${X.section.index}`)})})]})})}async function rI(e){if(typeof Image>"u")return;let t=new Set;for(let n of Array.from(e.querySelectorAll("svg image"))){let r=n.getAttribute("href")??n.getAttribute("xlink:href");r&&/^(?:data|blob):/i.test(r)&&t.add(r);}await Promise.allSettled([...t].map(n=>{let r=new Image;return r.src=n,typeof r.decode=="function"?r.decode().catch(()=>{}):Promise.resolve()}));}async function HX(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 rI(e),await new Promise(n=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>requestAnimationFrame(()=>n())):setTimeout(n,0);});}function zl(e,t){return {id:e,startTime:0,duration:0,audioSegment:0,layers:t}}function iI({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=we(null),p=he(()=>t??Aa(e),[t,e]),g=n??ct.landscape,h=he(()=>f0(e,{theme:p,viewport:g,layout:r,showTitle:i,style:a,documentTitle:o}),[e,p,g,r,i,a,o]),b=he(()=>zl("dashboard-backdrop-bottom",h.backdrop.bottomLayers),[h]),w=he(()=>h.backdrop.topLayers.length>0?zl("dashboard-backdrop-top",h.backdrop.topLayers):null,[h]),x=he(()=>h.title?zl("dashboard-title-band",h.title.layers):null,[h]);xe(()=>!u||!d?void 0:(d({seekTo:async()=>{let I=f.current;I&&await HX(I);},getRenderedTime:()=>0,getDuration:()=>0,getViewport:()=>({width:g.width,height:g.height}),getBlocks:()=>h.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)),[g,u,d,h]);let T={width:g.width,height:g.height},S={position:"absolute",inset:0},v={position:"relative",width:"var(--squisq-dashboard-fit-width, 100%)",aspectRatio:`${g.width} / ${g.height}`,overflow:"hidden",background:h.backdrop.fill,margin:"0 auto","--squisq-dashboard-aspect":(g.width/g.height).toFixed(6)};return k("div",{ref:f,className:m?`squisq-dashboard ${m}`:"squisq-dashboard","data-dashboard-layout":h.layout.name,"data-dashboard-style":h.style,style:v,children:[k("div",{style:S,"aria-hidden":"true",children:k(mn,{block:b,blockTime:0,basePath:s,viewport:T,isPlaying:false,muted:true,animationsEnabled:l,theme:p})}),h.cells.map(E=>k(Fe,{children:[E.frame&&k("div",{className:"squisq-dashboard__frame","data-cell-index":E.index,"aria-hidden":"true",style:{position:"absolute",left:E.frame.rectPct.left,top:E.frame.rectPct.top,width:E.frame.rectPct.width,height:E.frame.rectPct.height,pointerEvents:"none"},children:k(mn,{block:zl(`dashboard-frame-${E.index}`,E.frame.layers),blockTime:0,basePath:s,viewport:{width:E.frame.viewport.width,height:E.frame.viewport.height},isPlaying:false,muted:true,animationsEnabled:l,theme:p})}),k("div",{className:"squisq-dashboard__cell","data-cell-index":E.index,style:{position:"absolute",left:E.rectPct.left,top:E.rectPct.top,width:E.rectPct.width,height:E.rectPct.height,...E.frame?.contentRadiusPct?{borderRadius:E.frame.contentRadiusPct,overflow:"hidden"}:{}},children:[k(mn,{block:{...E.block,layers:E.layers},blockTime:0,basePath:s,viewport:{width:E.viewport.width,height:E.viewport.height},isPlaying:false,muted:c,animationsEnabled:l,theme:p,videoEmbeds:u?"placeholder":"player",staticMedia:u}),E.frame&&E.frame.overlayLayers.length>0&&k("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:k(mn,{block:zl(`dashboard-frame-overlay-${E.index}`,E.frame.overlayLayers),blockTime:0,basePath:s,viewport:{width:E.frame.overlayViewport.width,height:E.frame.overlayViewport.height},isPlaying:false,muted:true,animationsEnabled:l,theme:p})})]})]},`${E.index}-${E.block.id}`)),h.title&&x&&k("div",{className:"squisq-dashboard__title",style:{position:"absolute",left:h.title.rectPct.left,top:h.title.rectPct.top,width:h.title.rectPct.width,height:h.title.rectPct.height},children:k(mn,{block:x,blockTime:0,basePath:s,viewport:{width:h.title.viewport.width,height:h.title.viewport.height},isPlaying:false,muted:true,animationsEnabled:l,theme:p})}),w&&k("div",{style:{...S,pointerEvents:"none"},"aria-hidden":"true",children:k(mn,{block:w,blockTime:0,basePath:s,viewport:T,isPlaying:false,muted:true,animationsEnabled:l,theme:p})})]})}var zX=new Set(["diagram","tree","timeline","map","drawing","layout","barChart","columnChart","pieChart","donutChart","lineChart","areaChart","scatterChart"]);function UX(e,t,n,r){let i=fm(e);if(!(!!i.templateName&&(zX.has(i.templateName)||!!r?.some(c=>c.name===i.templateName))))return null;let o=i.templateBlock??e,{layers:s,source:l}=nl(o,{theme:t,viewport:n,customTemplates:r,persistentLayers:false});return s.length===0||l==="fallback"?null:{...o,layers:s}}function oI({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=he(()=>UX(e,n,s,l),[e,l,n,s]);return k("section",{className:"squisq-flashcards__content-block","data-source-block-id":e.id,children:[!u&&e.title&&k(c,{className:"squisq-flashcards__content-title",children:e.title}),!u&&e.contents&&e.contents.length>0&&k(_i,{nodes:e.contents,theme:n,showCodeCopyButton:i,onCopyCode:a,fenceRenderers:o}),(u||e.layers&&e.layers.length>0)&&k("div",{className:"squisq-flashcards__canvas",style:{aspectRatio:`${s.width} / ${s.height}`},children:k(mn,{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=>k(oI,{block:d,depth:t+1,theme:n,basePath:r,showCodeCopyButton:i,onCopyCode:a,fenceRenderers:o,viewport:s,customTemplates:l},d.id))]})}function Ul(e){return k("div",{className:"squisq-flashcards__face-content",children:e.face.blocks.map(t=>k(oI,{block:t,depth:0,...e},t.id))})}function jX(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 aI(e,t){let n=[...e],r=jX(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 WX(e){return k(Ul,{...e,face:e.choice.content})}var VX=".squisq-flashcards__answer, .squisq-flashcards__feedback, .squisq-flashcards__explanation",GX=860;function YX(e,t,n){return e<GX||t<=0?false:e/t>=(n?1.1:1.2)}function XX(e){return e instanceof Element&&!!e.closest('button, a, input, select, textarea, [contenteditable="true"]')}function sI({doc:e,theme:t,basePath:n=".",source:r="auto",shuffle:i=false,globalKeyboardShortcuts:a=false,showCodeCopyButton:o=false,onCopyCode:s,fenceRenderers:l,viewport:c=ct.landscape,density:u="comfortable",className:d}){let m=u==="compact",f="squisq-flashcards"+(m?" squisq-flashcards--compact":"")+(d?` ${d}`:""),p=he(()=>t??Aa(e),[e,t]),g=he(()=>p0(e,{source:r}),[e,r]),[h,b]=ye(i),[w,x]=ye(1),[T,S]=ye(0),[v,E]=ye(false),[I,_]=ye(null),[A,P]=ye({}),[D,M]=ye(null),B=we(null),[L,z]=ye(null),[$,O]=ye(false),R=he(()=>h?aI(g.cards,`${e.articleId}:${w}`):[...g.cards],[g.cards,e.articleId,w,h]),C=he(()=>D?D.map(oe=>R.find(ve=>ve.id===oe)).filter(oe=>!!oe):R,[R,D]),U=C[T],ee=C.length>0&&T>=C.length,q=Ee(()=>{S(0),E(false),_(null);},[]),j=Ee(()=>{P({}),M(null),q(),x(oe=>oe+1);},[q]);xe(()=>{P({}),M(null),q();},[g,q]),xe(()=>{B.current&&(B.current.scrollTop=0);},[T,D]),xe(()=>{let oe=B.current;if(!v||!oe)return;let ve=oe.querySelectorAll(VX);if(ve.length===0)return;let Be=oe.getBoundingClientRect(),$e=ve[0].getBoundingClientRect(),it=ve[ve.length-1].getBoundingClientRect(),nt=Math.min(it.bottom-Be.bottom,$e.top-Be.top-12);nt>0&&(oe.scrollTop+=nt);},[v,T,D]),$t(()=>{if(m||!L)return;let oe=()=>{let{width:Be,height:$e}=L.getBoundingClientRect();O(it=>YX(Be,$e,it));};if(oe(),typeof ResizeObserver>"u")return;let ve=new ResizeObserver(oe);return ve.observe(L),()=>ve.disconnect()},[m,L]);let X=Ee(()=>{U&&(E(true),U.kind==="multiple-choice"&&I===null&&P(oe=>({...oe,[U.id]:"again"})));},[U,I]),K=Ee(()=>{if(U){if(!v){X();return}S(oe=>oe+1),E(false),_(null);}},[U,X,v]),G=Ee(()=>{if(ee){S(Math.max(0,C.length-1)),E(true);return}if(v){E(false),_(null);return}T>0&&(S(oe=>oe-1),E(true),_(null));},[T,ee,v,C.length]),ae=Ee(oe=>{!U||v||(_(oe.id),E(true),P(ve=>({...ve,[U.id]:oe.correct?"got-it":"again"})));},[U,v]),ke=Ee(oe=>{U&&(P(ve=>({...ve,[U.id]:oe})),S(ve=>ve+1),E(false),_(null));},[U]),W=Ee(oe=>{if(!(oe.defaultPrevented||XX(oe.target))){if(/^[1-9]$/.test(oe.key)&&U?.kind==="multiple-choice"&&!v){let ve=U.choices?.[Number(oe.key)-1];ve&&(oe.preventDefault(),ae(ve));return}oe.key==="ArrowLeft"?(oe.preventDefault(),G()):(oe.key==="ArrowRight"||oe.key===" "||oe.key==="Enter")&&(oe.preventDefault(),K());}},[ae,U,K,G,v]);xe(()=>{if(!a)return;let oe=ve=>W(ve);return document.addEventListener("keydown",oe),()=>document.removeEventListener("keydown",oe)},[a,W]);let Q={theme:p,basePath:n,showCodeCopyButton:o,onCopyCode:s,fenceRenderers:l,viewport:c,customTemplates:e.customTemplates},te=Ct(p.typography.titleFont,"Georgia, serif"),V=Ct(p.typography.bodyFont,"system-ui, sans-serif"),ne={"--squisq-flashcards-bg":p.colors.background,"--squisq-flashcards-surface":p.colors.backgroundLight,"--squisq-flashcards-text":p.colors.text,"--squisq-flashcards-muted":p.colors.textMuted,"--squisq-flashcards-primary":p.colors.primary,"--squisq-flashcards-secondary":p.colors.secondary,"--squisq-flashcards-highlight":p.colors.highlight,"--squisq-flashcards-warning":p.colors.warning,"--squisq-flashcards-radius":`${p.style.borderRadius??18}px`,"--squisq-flashcards-title-font":te,"--squisq-flashcards-body-font":V},re=g.cards.filter(oe=>A[oe.id]==="again").map(oe=>oe.id),ge=g.cards.filter(oe=>A[oe.id]==="got-it").length;if(g.cards.length===0)return k("div",{className:`${f} squisq-flashcards--empty`,style:ne,role:"region","aria-label":"Flashcards",children:k("div",{className:"squisq-flashcards__empty-card",children:[k("h2",{children:"No complete flashcards yet"}),k("p",{children:"Add an answer beneath a heading, or nest an answer block under a question."}),g.diagnostics.length>0&&k("ul",{children:g.diagnostics.map((oe,ve)=>k("li",{children:oe.message},`${oe.blockId}-${oe.code}-${ve}`))})]})});if(ee)return k("div",{className:f,style:ne,role:"region","aria-label":"Flashcard session summary",tabIndex:0,onKeyDown:a?void 0:W,children:k("div",{className:"squisq-flashcards__summary",children:[k("span",{className:"squisq-flashcards__eyebrow",children:"Session complete"}),k("h2",{children:[ge," remembered"]}),k("p",{children:re.length===0?`You completed all ${g.cards.length} cards.`:`${re.length} ${re.length===1?"card needs":"cards need"} another look.`}),k("div",{className:"squisq-flashcards__summary-actions",children:[re.length>0&&k("button",{type:"button",className:"squisq-flashcards__button squisq-flashcards__button--primary",onClick:()=>{M(re),q();},children:"Retry missed"}),k("button",{type:"button",className:"squisq-flashcards__button",onClick:j,children:"Study again"}),k("button",{type:"button",className:"squisq-flashcards__button",onClick:G,children:"Previous card"})]})]})});let Me=U?.choices?aI(U.choices,`${U.id}:${w}`):[],_e=Me.find(oe=>oe.id===I),Re=`Card ${T+1} of ${C.length}`,Oe=T===C.length-1,Ge=v?Oe?"Finish":"Next card":"Reveal",tt=$&&!m,ot=k("div",{className:"squisq-flashcards__tools",children:[k("button",{type:"button",className:"squisq-flashcards__tool","aria-pressed":h,onClick:()=>{b(oe=>!oe),j();},children:"Shuffle"}),k("button",{type:"button",className:"squisq-flashcards__tool",onClick:j,children:"Restart"})]}),Ne=k("button",{type:"button",className:"squisq-flashcards__button",disabled:T===0&&!v,onClick:G,"aria-keyshortcuts":"ArrowLeft",title:"Previous (\u2190)",children:"Previous"}),et=k("div",{className:"squisq-flashcards__progress","aria-hidden":"true",children:k("span",{style:{width:`${(T+(v?1:0))/C.length*100}%`}})}),Z=[k("button",{type:"button",className:"squisq-flashcards__button",onClick:()=>ke("again"),children:"Again"},"again"),k("button",{type:"button",className:"squisq-flashcards__button squisq-flashcards__button--primary",onClick:()=>ke("got-it"),children:Oe?"Finish":"Next"},"got-it")];tt&&Z.reverse();let fe=k("div",{className:"squisq-flashcards__primary-actions",children:v&&U.kind==="basic"?Z:k("button",{type:"button",className:"squisq-flashcards__button squisq-flashcards__button--primary",onClick:K,"aria-keyshortcuts":"Space ArrowRight",title:`${Ge} (Space or \u2192)`,children:Ge})});return k("div",{ref:z,className:f+(tt?" squisq-flashcards--side-rails":""),style:ne,role:"region","aria-label":"Flashcards",tabIndex:0,onKeyDown:a?void 0:W,children:[k("header",{className:"squisq-flashcards__header",children:[k("div",{className:"squisq-flashcards__deck-copy",children:[g.title&&k("h1",{title:m?g.title:void 0,children:g.title}),m&&k("span",{className:"squisq-flashcards__position",children:Re})]}),m?k("div",{className:"squisq-flashcards__controls",children:[ot,k("div",{className:"squisq-flashcards__navigation",children:[Ne,fe]})]}):ot]}),m&&et,k("main",{ref:B,className:"squisq-flashcards__card","data-card-kind":U.kind,"aria-label":"Scrollable flashcard content",tabIndex:0,children:[U.label&&k("div",{className:"squisq-flashcards__label",children:U.label}),k("section",{className:"squisq-flashcards__front","aria-label":"Question",children:k(Ul,{...Q,face:U.front})}),U.kind==="multiple-choice"&&k("div",{className:"squisq-flashcards__choices",role:"group","aria-label":"Answer choices",children:Me.map((oe,ve)=>{let Be=I===oe.id,$e=v?oe.correct?"correct":Be?"incorrect":"idle":"idle";return k("button",{type:"button",className:"squisq-flashcards__choice","data-choice-status":$e,"aria-pressed":Be,"aria-keyshortcuts":ve<9?String(ve+1):void 0,disabled:v,onClick:()=>ae(oe),children:[k("span",{className:"squisq-flashcards__choice-key","aria-hidden":"true",children:ve+1}),k(WX,{...Q,choice:oe})]},oe.id)})}),v&&U.kind==="basic"&&k("section",{className:"squisq-flashcards__answer","aria-label":"Answer",children:k(Ul,{...Q,face:U.back})}),v&&U.kind==="multiple-choice"&&k("div",{className:"squisq-flashcards__feedback","data-correct":_e?.correct===true,"aria-live":"polite",children:[k("strong",{children:_e===void 0?"Answer revealed":_e.correct?"Correct":"Not quite"}),!_e?.correct&&k("div",{className:"squisq-flashcards__correct-answer",children:[k("span",{children:"The correct answer is"}),k(Ul,{...Q,face:U.back})]})]}),v&&U.explanation&&k("section",{className:"squisq-flashcards__explanation","aria-label":"Explanation",children:[k("span",{className:"squisq-flashcards__answer-label",children:"Explanation"}),k(Ul,{...Q,face:U.explanation})]})]}),!m&&k("footer",{className:"squisq-flashcards__footer",children:[k("div",{className:"squisq-flashcards__back",children:[Ne,k("div",{className:"squisq-flashcards__progress-group",children:[k("span",{className:"squisq-flashcards__position",children:Re}),et]})]}),fe]})]})}var KX=new Set(["a","an","the","and","but","or","for","nor","on","at","to","in","of","by","is"]);function U0(e){let t=new Map;for(let n of e.blocks)if(ft(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||!KX.has(a)?a.charAt(0).toUpperCase()+a.slice(1):a).join(" ");t.set(n,i);}}return t}function Mm(e,t,n){if(e)return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[n]}function QX(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 ZX(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 JX(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 eK(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 lI(e,t={}){let n=e.frontmatter,r=i0(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??Aa(e),videoPresentation:t.videoPresentation??QX(Mm(n,"squisq-video-presentation","video-presentation"))??"background",pipSize:t.pipSize??ZX(Mm(n,"squisq-pip-size","pip-size"))??"small",pipShape:t.pipShape??JX(Mm(n,"squisq-pip-shape","pip-shape"))??"square",pipPosition:t.pipPosition??eK(Mm(n,"squisq-pip-position","pip-position"))??"bottom-right",showCoverSlide:r.enabled,coverSlideTemplate:r.template,coverSlideDuration:r.duration,coverSlidePlayback:r.playback}}function tK(){try{return typeof process<"u"&&!1}catch{return false}}var cI=false,nK=100,uI=1e-6;function j0(){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"?nK:0);document.visibilityState==="visible"&&(n=window.requestAnimationFrame(r));})}function dI(e){let{doc:t,markdown:n}=e,r=he(()=>!t&&n!==void 0?pi(un(n)):void 0,[t,n]),i=t??r;return i?e.displayMode==="flashcards"?k("div",{className:"doc-player doc-player--flashcards",children:k(sI,{doc:i,basePath:e.basePath,theme:e.theme,globalKeyboardShortcuts:e.globalKeyboardShortcuts,showCodeCopyButton:e.showCodeCopyButton,onCopyCode:e.onCopyCode,fenceRenderers:e.fenceRenderers,viewport:e.forceViewport})}):k(rK,{...e,doc:i}):k("div",{className:"doc-player doc-player--empty"})}function rK({doc:e,basePath:t=".",renderMode:n=false,animationsEnabled:r=true,buildsEnabled:i=true,autoPlay:a=false,loop:o=false,onEnded:s,onTimeUpdate:l,audioController:c,audioMode:u="media",showControls:d=true,showScrubber:m=false,muted:f=false,captionsEnabled:p,onCaptionsToggle:g,onPlaybackStateChange:h,onControlsReady:b,onRenderAPIReady:w,renderVideoFrameSelector:x,processedAudio:T,isFullscreen:S=false,onFullscreenToggle:v,onBlockMarkers:E,forceViewport:I,displayMode:_="video",dashboardLayout:A,dashboardShowTitle:P,dashboardStyle:D,dashboardDocumentTitle:M,showCoverSlide:B,coverSlideTemplate:L,coverSlideDuration:z,coverSlidePlayback:$,coverVisible:O,theme:R,motion:C,surface:U,captionStyle:ee="standard",captionPosition:q,videoPresentation:j,pipSize:X,pipShape:K,pipPosition:G,enableSwipe:ae=true,globalKeyboardShortcuts:ke=false,showCodeCopyButton:W=false,onCopyCode:Q,fenceRenderers:te,tableContentRenderer:V}){let ne=_==="slideshow",re=_==="linear",ge=_==="dashboard",Me=we(null),_e=we(null),Re=`squisq-player-${tn().replace(/:/g,"")}`,[Oe,Ge]=ye(null),tt=we(),{viewport:ot}=w5(),Ne=I||(n?ct.landscape:ot),et=Ne.height>Ne.width?"portrait":"landscape",Z=he(()=>typeof window>"u"?false:new URLSearchParams(window.location.search).get("debug")==="true",[]),fe=he(()=>u==="synthetic"?nm(e):0,[u,e]),oe=h5(Me,e.audio,t,!c,u,fe),ve=c||oe;xe(()=>{if(cI||!tK())return;let ie=_e.current;if(!ie||typeof getComputedStyle!="function")return;getComputedStyle(ie).getPropertyValue("--squisq-styles-loaded").trim()||(cI=true,console.warn('[squisq] @bendyline/squisq-react/styles is not loaded \u2014 import "@bendyline/squisq-react/styles"'));},[]);let{currentTime:Be,isPlaying:$e,currentSegment:it,totalDuration:nt,isEnded:Xn,isReady:Tn,isBuffering:St=false,isAvailable:en,unavailableMessage:Sn,play:W0,pause:En,toggle:V0,seekTo:Ot,skipToSegment:uK,restart:jl}=ve,[G0,pI]=ye(null),hI=G0?.doc===e?G0.time:null,xt=n?hI??Be:Be,gI=he(()=>_o(e),[e]),Y0=PC(gI,t),yI=he(()=>_o(e,{intrinsicDuration:ie=>Y0.get(ie.src),...T?{processedAudio:T}:{}}),[e,Y0,T]),Wl=Ee(()=>{if(n)return;let ie=_e.current;if(!ie)return;ie.querySelectorAll('.doc-player__block--active video[data-clip-start], [data-clip-id][data-active="true"]').forEach(ze=>{let bt=ze.play();bt&&bt.catch(()=>{});});},[n]),Vl=Ee(()=>(Wl(),W0()),[W0,Wl]),Na=Ee(()=>($e||Wl(),V0()),[$e,Wl,V0]),Lm=we(xt);Lm.current=xt;let Pm=we(xt),Gl=we([]),X0=we(x);X0.current=x;let K0=we(null),Q0=we(nt);Q0.current=nt;let Z0=we(0);$t(()=>{Pm.current=xt;let ie=Gl.current;Gl.current=ie.filter(Ce=>Math.abs(Ce.time-xt)>uI?true:(Ce.resolve(),false));},[xt]),xe(()=>()=>{let ie=new Error("DocPlayer unmounted before the requested frame committed.");Gl.current.splice(0).forEach(Ce=>Ce.reject(ie));},[]);let J0=Ee(ie=>Math.abs(Pm.current-ie)<=uI?Promise.resolve():new Promise((Ce,ze)=>{Gl.current.push({time:ie,resolve:Ce,reject:ze});}),[]),bI=Ee(ie=>{if(n||re)return;let Ce=ie.target;if(ne){Ce.closest('button, a, input, textarea, select, [contenteditable="true"]')||_e.current?.focus({preventScroll:true});return}if(Ce.closest('button, a, input, textarea, select, [contenteditable="true"], .doc-player__controls, .doc-player__scrubber, .doc-controls-sidebar, .doc-controls-slideshow'))return;_e.current?.focus({preventScroll:true}),Na(),Ge($e?"pause":"play"),clearTimeout(tt.current),tt.current=setTimeout(()=>Ge(null),600);},[n,Na,$e,ne,re]),wI=_m(U==="auto"),Rm=U==="auto"?wI:U,_n=he(()=>lI(e,{theme:R,videoPresentation:j,pipSize:X,pipShape:K,pipPosition:G,showCoverSlide:B,coverSlideTemplate:L,coverSlideDuration:z,coverSlidePlayback:$}),[e,R,j,X,K,G,B,L,z,$]),Kn=he(()=>{let ie=_n.theme;return Rm?$s(ie,Rm):ie},[_n.theme,Rm]),$o=he(()=>g0(Kn),[Kn]),kI=$o,xI=he(()=>({border:$o["--squisq-pip-border"],borderRadius:$o["--squisq-pip-radius"],boxShadow:$o["--squisq-pip-shadow"]}),[$o]),vI=he(()=>e.blocks.some(ie=>typeof ie.sourceStartTime=="number"),[e.blocks]),{currentBlock:Qn,currentBlockIndex:Ln,previousBlock:Yl,isEntering:TI,isExiting:SI,blockTime:eb,docProgress:Nm,blocks:Qe,suppressOutgoingForNextBlock:tb}=b5(e,xt,{basePath:t,viewport:Ne,theme:Kn,motion:C,onSeek:Ot,deterministicTransitions:n,useAudioSegmentTiming:u!=="synthetic"||n&&vI}),Ft=he(()=>{let ie=e.startBlock;if(!_n.showCoverSlide||!ie)return null;let Ce=Vn(Kn,0,1,Ne,{motion:oo(e,Kn,C)});return {id:"cover-block",startTime:-1,duration:0,audioSegment:-1,layers:zh(ie,Ce,_n.coverSlideTemplate)}},[e,C,Ne,Kn,_n.showCoverSlide,_n.coverSlideTemplate]),Dm=!!Ft,[Xl,Br]=ye(false),[EI,nb]=ye(false),rb=we("");xe(()=>{let ie=`${e.articleId}:${ne}:${Dm}:${n}`;rb.current!==ie&&(rb.current=ie,ne&&Dm&&!n?(Br(true),En()):Br(false));},[e.articleId,ne,Dm,n,En]);let[_I,Om]=ye(false),[AI,Fm]=ye(false),Bm=we(),Kl=we(false),Ql=we(false);xe(()=>{Ql.current=false,Kl.current=false,clearTimeout(Bm.current),Fm(false),Om(false);},[e]),Ft&&!ne&&!$e&&xt===0&&!Ql.current&&!n&&!a&&(Kl.current=true),xe(()=>{$e&&Kl.current&&Ft&&!n&&!ne&&(Kl.current=false,Ql.current=true,Fm(true),Bm.current=setTimeout(()=>Fm(false),_n.coverSlideDuration*1e3));},[$e,Ft,n,ne,_n.coverSlideDuration]),xe(()=>()=>clearTimeout(Bm.current),[]),xe(()=>()=>clearTimeout(tt.current),[]);let CI=!re&&!!Ft&&(_I||!ne&&(AI||!$e&&xt===0&&!Ql.current&&!n&&!a)),ib=O??Xl,Ho=!!(ne&&!re&&!n&&Ft&&ib),gr=O===void 0?CI||Ho:!!Ft&&O,hn=!!(ne&&!n&&Ft),$r=hn?ib?0:Ln+1:Ln,Zl=hn?Qe.length+1:Qe.length,$m=we(false);xe(()=>{$m.current=false;},[e]),xe(()=>{Tn&&a&&!$m.current&&($m.current=true,Vl());},[Tn,a,Vl]),xe(()=>{l?.(xt);},[xt,l]),xe(()=>{Xn&&(s?.(),o&&!ne&&!re&&!ge&&jl());},[Xn,ge,re,ne,o,s,jl]);let Da=we(null),Hm=we(null);if(!Hm.current){let ie=()=>{let Ce=Da.current;if(!Ce)throw new Error("Squisq render API is not currently available.");return Ce};Hm.current={seekTo:Ce=>ie().seekTo(Ce),getRenderedTime:()=>ie().getRenderedTime(),getDuration:()=>ie().getDuration(),getViewport:()=>ie().getViewport(),getBlocks:()=>ie().getBlocks(),getAudioSegments:()=>ie().getAudioSegments(),getCaptions:()=>ie().getCaptions(),getChapters:()=>ie().getChapters(),showCover:()=>ie().showCover(),hideCover:()=>ie().hideCover(),hasCoverBlock:()=>ie().hasCoverBlock()};}let ab=Hm.current;xe(()=>{if(ge||!n&&!Z){Da.current=null;return}let ie=_e.current;if(!ie){Da.current=null;return}let fb={seekTo:async Xe=>{if(n){let st=J0(Xe);lw(()=>pI({doc:e,time:Xe})),c&&Ot(Xe).catch(()=>{}),await st;}else await Ot(Xe);let yr=-1;for(let st=Qe.length-1;st>=0;st--)if(Xe>=Qe[st].startTime){yr=st;break}let jo=yr>=0?Qe[yr].startTime:0,NI=yr>0?Qe[yr-1].startTime:jo,pb=(Xe-jo)*1e3,DI=(Xe-NI)*1e3,hb=async(st,Et)=>{let Bt=n?X0.current:void 0;Bt&&await Bt(st,Et)||await iC(st,Et);},gb=0;(ie.getAnimations?.({subtree:true})??[]).forEach(st=>{let Et=st.effect?.target;if(!Et)return;let Bt;Et.closest(".doc-player__block--previous")?Bt=Et.classList.contains("block-svg")?pb:DI:Et.closest(".doc-player__block--active")?Bt=pb:Et.closest(".doc-player__block--cover")?Bt=0:Bt=Xe*1e3,n&&typeof st.pause=="function"&&st.playState!=="paused"&&st.pause(),st.currentTime=Math.max(0,Bt);let $a=st.effect?.getComputedTiming?.().endTime;(typeof $a!="number"||Bt<$a)&&(gb+=1);});let OI=Xe-jo,jm=[],yb=ie.querySelector(".doc-player__block--active");yb&&yb.querySelectorAll("video[data-clip-start]").forEach(Et=>{let Bt=Et,$a=parseFloat(Bt.dataset.clipStart||"0"),Vm=parseFloat(Bt.dataset.clipEnd||"0"),Gm=parseFloat(Bt.dataset.startAt||"0"),BI=Math.min($a+Math.max(0,OI-Gm),Vm);jm.push(hb(Bt,BI));}),ie.querySelectorAll("video[data-clip-id]").forEach(st=>{let Et=st,Bt=parseFloat(Et.dataset.absStart||"0"),$a=parseFloat(Et.dataset.absEnd||"0"),Vm=parseFloat(Et.dataset.sourceIn||"0");if(Et.pause(),Xe<Bt||Xe>=$a)return;let Gm=Vm+(Xe-Bt);jm.push(hb(Et,Gm));}),await Promise.all(jm);let Wm=Array.from(ie.querySelectorAll(".doc-player__block"),st=>({element:st,className:st.className})),sc=K0.current;K0.current=Wm;let FI=sc!==null&&sc.length===Wm.length&&Wm.every((st,Et)=>st.element===sc[Et].element&&st.className===sc[Et].className);(!n||!FI||gb>0)&&await j0();},getRenderedTime:()=>Pm.current,getDuration:()=>{let Xe=nm(e);return nt>0?Math.max(nt,Xe):Xe},getViewport:()=>({width:Ne.width,height:Ne.height}),getBlocks:()=>Qe.map(Xe=>({id:Xe.id,template:Xe.template??"raw",startTime:Xe.startTime,duration:Xe.duration})),getAudioSegments:()=>e.audio.segments.map(Xe=>({src:Xe.src,name:Xe.name,duration:Xe.duration,startTime:Xe.startTime})),getCaptions:()=>e.captions?.phrases?.map(Xe=>({text:Xe.text,startTime:Xe.startTime,endTime:Xe.endTime}))||[],getChapters:()=>{let Xe=U0(e);return e.audio.segments.map((yr,jo)=>({title:Xe.get(jo)||yr.name,startTime:yr.startTime,duration:yr.duration}))},showCover:()=>(Om(true),j0()),hideCover:()=>(Om(false),j0()),hasCoverBlock:()=>!!Ft};return Da.current=fb,()=>{Da.current===fb&&(Da.current=null);}},[n,Z,Ot,nt,Qe,Ft,e,c,J0,ge,Ne]),xe(()=>{if(!ge){if(!n&&!Z||!_e.current){w?.(null);return}return w?.(ab),()=>w?.(null)}},[n,Z,ge,w,ab]);let zm=p===false?"off":ee||"standard",[Jl,Um]=ye(zm);xe(()=>{Um(zm);},[zm]);let Ci=Jl!=="off",ob=n||$e||!ne&&xt>0,II=Jl==="social"?"social":"standard",sb=Ee(ie=>{Um(ie?ee||"standard":"off"),g?.(ie);},[g,ee]),lb=Ee(()=>{Um(ie=>{let Ce=ie==="off"?"standard":ie==="standard"?"social":"off";return g?.(Ce!=="off"),Ce});},[g]),Oa=e.captions&&e.captions.phrases.length>0,[cb,MI]=ye(null);xe(()=>{let ie=_e.current;if(!ie||n||!Oa)return;let Ce=()=>{let bt=ie.offsetWidth,Ba=ie.offsetHeight;bt<=0||Ba<=0||MI(qi=>qi&&qi.width===bt&&qi.height===Ba?qi:{width:bt,height:Ba});};Ce();let ze=typeof ResizeObserver>"u"?null:new ResizeObserver(Ce);return ze?.observe(ie),window.addEventListener("resize",Ce),()=>{ze?.disconnect(),window.removeEventListener("resize",Ce);}},[n,Oa,re,ge]);let ub=!n&&cb?{...Ne,...cb}:Ne,db=he(()=>U0(e),[e]),Pn=JA(Qn,i&&ne&&!n&&!gr,r),{enter:Fa,next:ec,previous:tc,showAll:nc}=Pn,mb=Pn.cursor.progress<1,zo=he(()=>({buildStep:Pn.cursor.revealed,buildCount:Pn.count,isBuilding:mb,isPlaying:$e,isBuffering:St,currentTime:xt,totalDuration:nt,isCoverVisible:gr,currentBlockIndex:$r,totalBlocks:Zl,docProgress:Nm,hasCaptions:!!Oa,captionsEnabled:Ci,captionMode:Jl,isFullscreen:S,currentSegmentIndex:it,currentSegmentName:db.get(it)??e.audio.segments[it]?.name??null,currentBlock:Ho?Ft:Qn??null,currentSlideLabel:Ho?"Cover":void 0,currentSlideNumber:hn&&!Ho?Ln+1:void 0,totalSlideNumber:hn?Qe.length:void 0}),[Pn.cursor.revealed,Pn.count,mb,$e,St,xt,nt,gr,$r,Zl,Nm,Oa,Ci,Jl,S,it,db,Qn,Ln,Ho,Ft,hn,Qe.length]),rc=he(()=>({toggle:Na,restart:jl,seekTo:Ot,setCaptionsEnabled:sb,cycleCaptionMode:lb,toggleFullscreen:v}),[Na,jl,Ot,sb,lb,v]),Rn=he(()=>({nextSlide:()=>{if(hn&&Xl){let ie=Qe[0];ie&&(Fa(ie),Br(false),Ot(ie.startTime),En());return}if(Ln<Qe.length-1){let ie=Qe[Ln+1];ie&&(Fa(ie),Br(false),Ot(ie.startTime),En());}},prevSlide:()=>{if(hn&&!Xl&&Ln<=0){Br(true),Ot(0),En();return}if(Ln>0){let ie=Qe[Ln-1];ie&&(Fa(ie,true),Br(false),Ot(ie.startTime),En());}},goToSlide:ie=>{if(hn){if(ie===0){Br(true),Ot(0),En();return}let Ce=Qe[ie-1];Ce&&(Fa(Ce),Br(false),Ot(Ce.startTime),En());return}if(ie>=0&&ie<Qe.length){let Ce=Qe[ie];Ce&&(Fa(Ce),Ot(Ce.startTime),En());}}}),[Ln,Qe,Ot,En,hn,Xl,Fa]),Ii=he(()=>({...Rn,nextStep:()=>{ec()||Rn.nextSlide();},prevStep:()=>{tc()||Rn.prevSlide();},showAllBuilds:nc}),[Rn,ec,tc,nc]),ic=ne&&!re&&!n&&ae,ac=Ee(ie=>{let Ce=ie-(hn?1:0),ze=Qe[Ce];ze&&tb(ze.id);},[Qe,hn,tb]),qI=Ee(()=>{ec()||(ac($r+1),Rn.nextSlide());},[ac,$r,Rn,ec]),LI=Ee(()=>{tc()||(ac($r-1),Rn.prevSlide());},[ac,$r,Rn,tc]),Hr=k5({enabled:ic,containerRef:_e,canGoNext:$r<Zl-1||Pn.cursor.revealed<Pn.count||Pn.cursor.progress<1,canGoPrev:$r>0||Pn.cursor.revealed>0,onNext:qI,onPrev:LI});xe(()=>{h?.(zo);},[zo,h]),xe(()=>{b?.({play:Vl,pause:En,...rc,nextBuild:Ii.nextStep,previousBuild:Ii.prevStep,showAllBuilds:nc});},[Vl,En,rc,b,Ii,nc]);let Mi=Ee(ie=>{let Ce=ie;if(ft(Ce)){let ze=Ce;if(typeof ze.title=="string")return ze.title;if(typeof ze.stat=="string")return ze.stat;if(typeof ze.quote=="string"){let bt=ze.quote.split(`
767
767
  `)[0];return bt.length<=30?bt:bt.slice(0,27)+"..."}if(typeof ze.date=="string")return ze.date;if(typeof ze.fact=="string")return ze.fact}if(ie.layers&&Array.isArray(ie.layers)){let ze=ie.layers.find(bt=>bt.type==="text");if(ze?.content?.text){let bt=ze.content.text.split(`
768
768
  `)[0];return bt.length<=30?bt:bt.slice(0,27)+"..."}}return ie.id.replace(/-/g," ").replace(/\b\w/g,ze=>ze.toUpperCase())},[]),PI=he(()=>{let ie=Qe.map((Ce,ze)=>({id:Ce.id,label:String(ze+1),summary:Mi(Ce)}));return !hn||!Ft?ie:[{id:"__cover__",label:"Cover",summary:Mi(Ft)},...ie]},[Ft,Qe,Mi,hn]),Uo=he(()=>{if(!nt||!Qe.length)return [];let ie=-1;return Qe.map((Ce,ze)=>{let bt=Ce.audioSegment!==ie;return ie=Ce.audioSegment,{block:Ce,index:ze,position:Ce.startTime/nt*100,title:Mi(Ce),isSectionStart:bt}})},[Qe,nt,Mi]);xe(()=>{Uo.length>0&&E?.(Uo);},[Uo,E]),Z0.current=ne?Zl:Qe.length;let oc=Ee((ie,Ce)=>{if(ie.defaultPrevented||ie.altKey||ie.ctrlKey||ie.metaKey||ie.shiftKey)return;let ze=ie.target instanceof Element?ie.target:null,bt=!!ze?.closest('input, textarea, select, [contenteditable]:not([contenteditable="false"]), [role="textbox"], [role="combobox"], [role="listbox"], [role="slider"], [role="spinbutton"], .monaco-editor'),Ba=!!ze?.closest('[role="menu"], [role="dialog"], [aria-modal="true"]'),qi=ne&&!!ze?.closest(".doc-controls-slideshow")&&!ze.closest('[role="menu"]');if(!(bt||Ce&&Ba||!Ce&&ze?.closest('input, textarea, select, button, a, [contenteditable]:not([contenteditable="false"]), [role="textbox"]')&&!qi)&&!(re||ge)){if(ie.key==="f"||ie.key==="F"){if(!v)return;ie.preventDefault(),v();return}if(ne)switch(ie.key){case "ArrowRight":case "ArrowDown":case " ":ie.preventDefault(),Ii.nextStep();break;case "ArrowLeft":ie.preventDefault(),Ii.prevStep();break;case "ArrowUp":ie.preventDefault(),nb(true);break;case "Home":ie.preventDefault(),Rn.goToSlide(0);break;case "End":ie.preventDefault(),Rn.goToSlide(Z0.current-1);break}else switch(ie.key){case " ":ie.preventDefault(),Na();break;case "ArrowRight":ie.preventDefault(),Ot(Math.min(Lm.current+10,Q0.current));break;case "ArrowLeft":ie.preventDefault(),Ot(Math.max(Lm.current-10,0));break}}},[ne,re,ge,Na,Ot,Rn,Ii,v]),RI=Ee(ie=>oc(ie,false),[oc]);return xe(()=>{if(!ke||n||re||ge)return;let ie=Ce=>{oc(Ce,true);};return document.addEventListener("keydown",ie),()=>document.removeEventListener("keydown",ie)},[ke,oc,ge,re,n]),re?k("div",{ref:_e,"data-player-id":Re,className:"doc-player doc-player--linear",style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},children:k(Im,{doc:e,basePath:t,viewport:Ne,theme:R,surface:U,animationsEnabled:r,showCodeCopyButton:W,onCopyCode:Q,fenceRenderers:te})}):ge?k("div",{ref:_e,"data-player-id":Re,className:"doc-player doc-player--dashboard",style:{position:"relative",width:"100%",aspectRatio:`${Ne.width} / ${Ne.height}`,margin:"0 auto",overflow:"hidden"},children:k(iI,{doc:e,theme:R,viewport:Ne,layout:A,showTitle:P,style:D,documentTitle:M,basePath:t,animationsEnabled:r,muted:n||f,renderMode:n||Z,onRenderAPIReady:w})}):k("div",{ref:_e,"data-player-id":Re,"data-orientation":et,"data-playback-state":$e?"playing":"paused","data-swipe-phase":Hr.phase,tabIndex:n?-1:0,role:"region","aria-label":"Document player",onKeyDown:n?void 0:RI,className:`doc-player${n?" doc-player--render-mode":""}${ic?" doc-player--swipe":""}${Hr.phase==="dragging"?" doc-player--grabbing":""}`,onClick:bI,onPointerDown:Hr.onPointerDown,style:{...kI,position:"relative",width:"100%",aspectRatio:`${Ne.width} / ${Ne.height}`,margin:"0 auto",overflow:"hidden",cursor:n||ic?void 0:"pointer",touchAction:ic?"pan-y":void 0},children:[k("audio",{ref:Me,preload:"auto",muted:f}),k(qC,{schedule:yI,currentTime:xt,isPlaying:$e,basePath:t,renderMode:n,muted:f,presentation:_n.videoPresentation,pipSize:_n.pipSize,pipShape:_n.pipShape,pipPosition:_n.pipPosition,pipOrientation:et,pipFrameStyle:xI}),k("div",{className:"doc-player__viewport",children:[gr&&Ft&&k("div",{className:"doc-player__block doc-player__block--cover",children:k(mn,{block:Ft,blockTime:0,basePath:t,isEntering:false,viewport:Ne,muted:n||f,animationsEnabled:r&&!n,theme:Kn,tableContentRenderer:V,growTextToFit:ne,videoEmbeds:n?"placeholder":"poster",staticMedia:n})}),r&&!gr&&Yl&&SI&&k("div",{className:"doc-player__block doc-player__block--previous",children:k(mn,{respectReducedMotion:!n,buildPlayback:i?"timed":"all",block:Yl,blockTime:Math.max(0,xt-Yl.startTime),basePath:t,isExiting:true,transition:Qn?.transition,viewport:Ne,muted:n||f,animationsEnabled:r,theme:Kn,tableContentRenderer:V,growTextToFit:ne,videoEmbeds:n?"placeholder":"poster",staticMedia:n})},Yl.id),Qn&&k("div",{className:`doc-player__block doc-player__block--active${Hr.phase!=="idle"?` doc-player__block--${Hr.phase}`:""}`,"aria-hidden":gr||void 0,style:gr||Hr.phase!=="idle"?{...Hr.phase!=="idle"?{transform:`translateX(${Hr.offsetPx}px)`}:{},...gr?{opacity:0,pointerEvents:"none"}:{}}:void 0,children:k(mn,{block:Qn,respectReducedMotion:!n,buildPlayback:i?ne&&!n?Pn.cursor:"timed":"all",blockTime:eb,basePath:t,isEntering:r&&TI,viewport:Ne,isPlaying:$e,muted:n||f,animationsEnabled:r,theme:Kn,tableContentRenderer:V,growTextToFit:ne,videoEmbeds:n?"placeholder":"player",videoClips:ne&&!n?"player":"timed",staticMedia:n})},Qn.id),Oa&&(n?Ci:true)&&k(u5,{captions:e.captions,currentTime:xt,enabled:Ci&&ob,fontSize:Math.min(34,Math.max(16,Math.round(ub.height*.026))),captionStyle:II,captionPosition:q,theme:Kn,viewport:ub}),Z&&k("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:[k("div",{style:{color:"#ffcc00",fontWeight:"bold",marginBottom:"4px"},children:"DEBUG MODE"}),k("div",{children:[k("span",{style:{color:"#888"},children:"template:"})," ",k("span",{style:{color:"#ff6b6b"},children:Qn?.template??"raw"})]}),k("div",{children:[k("span",{style:{color:"#888"},children:"block:"})," ",Ln+1,"/",Qe.length," ",k("span",{style:{color:"#666"},children:["(",Qn?.id||"none",")"]})]}),k("div",{children:[k("span",{style:{color:"#888"},children:"time:"})," ",xt.toFixed(2),"s /"," ",nt.toFixed(1),"s"," ",k("span",{style:{color:"#666"},children:["(progress: ",(Nm*100).toFixed(1),"%, scriptDur: ",e.duration.toFixed(1),")"]})]}),k("div",{children:[k("span",{style:{color:"#888"},children:"blockTime:"})," ",eb.toFixed(2),"s /"," ",(Qn?.duration||0).toFixed(1),"s"]}),k("div",{children:[k("span",{style:{color:"#888"},children:"segment:"})," ",it,"/",e.audio.segments.length-1," ",k("span",{style:{color:"#666"},children:["(",e.audio.segments[it]?.name||"none",")"]})]}),k("div",{children:[k("span",{style:{color:"#888"},children:"viewport:"})," ",Ne.name||`${Ne.width}x${Ne.height}`," ",k("span",{style:{color:"#666"},children:["(",et,")"]})]}),k("div",{children:[k("span",{style:{color:"#888"},children:"playing:"})," ",k("span",{style:{color:$e?"#4ade80":"#f87171"},children:$e?"yes":"no"}),gr&&k("span",{style:{color:"#60a5fa"},children:" (cover)"})]}),Oa&&(()=>{let ie=Ll(e.captions,xt),Ce=Ci&&ob;return k(Fe,{children:[k("div",{children:[k("span",{style:{color:"#888"},children:"captions:"})," ",e.captions?.phrases.length||0," phrases"," ",k("span",{style:{color:Ci?"#4ade80":"#666"},children:["(",Ci?"on":"off",")"]})]}),k("div",{children:[k("span",{style:{color:"#888"},children:"cc.enabled:"})," ",k("span",{style:{color:Ce?"#4ade80":"#f87171"},children:String(Ce)})," ",k("span",{style:{color:"#666"},children:["(playing=",String($e)," t>0=",String(xt>0),")"]})]}),k("div",{children:[k("span",{style:{color:"#888"},children:"cc.phrase:"})," ",k("span",{style:{color:ie?"#4ade80":"#f87171"},children:ie?`"${ie.text.slice(0,30)}..."`:"null"})]}),ie&&k("div",{children:[k("span",{style:{color:"#888"},children:"cc.range:"})," ",k("span",{style:{color:"#60a5fa"},children:[ie.startTime.toFixed(2),"-",ie.endTime.toFixed(2)]})]})]})})()]})]}),!n&&!en&&Sn&&k("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:[k("span",{style:{fontSize:"32px"},children:"\u{1F50A}"}),k("span",{children:Sn})]}),!n&&!ne&&d&&k(E5,{state:zo,actions:rc,blockMarkers:Uo,expandedBlocks:Qe,getBlockTitle:Mi}),!n&&!ne&&!d&&m&&k("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:k(Am,{state:zo,actions:rc,blockMarkers:Uo,expandedBlocks:Qe,getBlockTitle:Mi})}),!n&&ne&&d&&k(_5,{state:zo,slideNav:Ii,slides:PI,pickerOpen:EI,onPickerOpenChange:nb}),!ne&&Oe&&k("div",{className:"doc-player__tap-feedback",children:k("svg",{viewBox:"0 0 24 24",fill:"white",width:"48",height:"48",children:Oe==="pause"?k("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}):k("path",{d:"M8 5v14l11-7z"})})},Oe)]})}var mI=`.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(14px,2.5vw,28px);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,.squisq-flashcards__card,.squisq-flashcards__footer,.squisq-flashcards__summary,.squisq-flashcards__empty-card{width:min(920px,100%);margin-inline:auto}.squisq-flashcards__header,.squisq-flashcards__footer,.squisq-flashcards__back,.squisq-flashcards__tools,.squisq-flashcards__primary-actions,.squisq-flashcards__summary-actions{display:flex;align-items:center;gap:10px}.squisq-flashcards__header,.squisq-flashcards__footer{justify-content:space-between}.squisq-flashcards__header{flex:0 0 auto;margin-bottom:16px}.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{flex:0 0 auto;height:5px;margin-bottom:16px;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(21px,2.6vw,34px);line-height:1.12}.squisq-flashcards__content-block .squisq-flashcards__content-block .squisq-flashcards__content-title{font-size:clamp(17px,1.9vw,24px)}.squisq-flashcards .squisq-md{font-size:clamp(15px,1.4vw,18px);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(15px,1.5vw,18px) / 1.3 var(--squisq-flashcards-body-font)}.squisq-flashcards__choice .squisq-md{font-size:15px}.squisq-flashcards__feedback>strong{color:var(--squisq-flashcards-warning);font:700 18px/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:14px}.squisq-flashcards__back{gap:14px}.squisq-flashcards__progress-group{display:grid;gap:6px;min-width:96px}.squisq-flashcards__progress-group>.squisq-flashcards__position{font-size:13px}.squisq-flashcards__progress-group>.squisq-flashcards__progress{width:100%;height:4px;margin:0}.squisq-flashcards--side-rails{--squisq-flashcards-rail: 148px;display:grid;grid-template-areas:"header header header" "back card actions";grid-template-columns:var(--squisq-flashcards-rail) minmax(0,920px) var(--squisq-flashcards-rail);grid-template-rows:auto minmax(0,1fr);justify-content:center;column-gap:18px}.squisq-flashcards--side-rails .squisq-flashcards__header,.squisq-flashcards--side-rails .squisq-flashcards__card{width:auto;margin-inline:0}.squisq-flashcards--side-rails .squisq-flashcards__header{grid-area:header}.squisq-flashcards--side-rails .squisq-flashcards__card{grid-area:card}.squisq-flashcards--side-rails .squisq-flashcards__footer{display:contents}.squisq-flashcards--side-rails .squisq-flashcards__back,.squisq-flashcards--side-rails .squisq-flashcards__primary-actions{display:grid;grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);align-self:stretch;gap:10px}.squisq-flashcards--side-rails .squisq-flashcards__back>:first-child,.squisq-flashcards--side-rails .squisq-flashcards__primary-actions>:first-child{grid-row:2}.squisq-flashcards--side-rails .squisq-flashcards__back>:nth-child(2),.squisq-flashcards--side-rails .squisq-flashcards__primary-actions>:nth-child(2){grid-row:3;align-self:start}.squisq-flashcards--side-rails .squisq-flashcards__back{grid-area:back;text-align:center}.squisq-flashcards--side-rails .squisq-flashcards__primary-actions{grid-area:actions}.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)}}.squisq-flashcards--compact{min-height:260px;padding:clamp(10px,2vw,18px)}.squisq-flashcards--compact .squisq-flashcards__header,.squisq-flashcards--compact .squisq-flashcards__progress,.squisq-flashcards--compact .squisq-flashcards__card,.squisq-flashcards--compact .squisq-flashcards__summary,.squisq-flashcards--compact .squisq-flashcards__empty-card{width:100%}.squisq-flashcards--compact .squisq-flashcards__header{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:10px}.squisq-flashcards--compact .squisq-flashcards__deck-copy{display:grid;flex:1 1 220px;gap:2px;min-width:0}.squisq-flashcards--compact .squisq-flashcards__deck-copy h1{margin:0;overflow:hidden;font:700 16px/1.25 var(--squisq-flashcards-title-font);text-overflow:ellipsis;white-space:nowrap}.squisq-flashcards__position{color:var(--squisq-flashcards-muted);font-size:12px}.squisq-flashcards__controls,.squisq-flashcards__navigation{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.squisq-flashcards__controls{flex:0 1 auto;justify-content:flex-end;column-gap:16px}.squisq-flashcards--compact .squisq-flashcards__tools,.squisq-flashcards--compact .squisq-flashcards__primary-actions{width:auto;gap:6px}.squisq-flashcards--compact .squisq-flashcards__tool,.squisq-flashcards--compact .squisq-flashcards__button{min-height:32px;padding:6px 13px;font-size:13px}.squisq-flashcards--compact .squisq-flashcards__tool:not([aria-pressed=true]){border-color:transparent;background:transparent}.squisq-flashcards--compact .squisq-flashcards__tool:not([aria-pressed=true]):hover{border-color:color-mix(in srgb,var(--squisq-flashcards-text) 22%,transparent)}.squisq-flashcards--compact .squisq-flashcards__progress{height:3px;margin-top:0;margin-bottom:10px}.squisq-flashcards--compact .squisq-flashcards__card,.squisq-flashcards--compact .squisq-flashcards__summary,.squisq-flashcards--compact .squisq-flashcards__empty-card{padding:clamp(14px,2.5vw,26px);box-shadow:0 10px 28px color-mix(in srgb,#000 18%,transparent)}.squisq-flashcards--compact .squisq-flashcards__label{margin-bottom:10px}.squisq-flashcards--compact .squisq-flashcards__content-block+.squisq-flashcards__content-block{margin-top:14px}.squisq-flashcards--compact .squisq-flashcards__content-title{font-size:clamp(18px,2vw,24px);line-height:1.2}.squisq-flashcards--compact .squisq-flashcards__content-block .squisq-flashcards__content-block .squisq-flashcards__content-title{font-size:clamp(16px,1.6vw,19px)}.squisq-flashcards--compact .squisq-md{font-size:15px;line-height:1.5}.squisq-flashcards--compact .squisq-md img,.squisq-flashcards--compact .squisq-md video{max-height:32vh}.squisq-flashcards--compact .squisq-flashcards__canvas{margin-top:12px}.squisq-flashcards--compact .squisq-flashcards__answer,.squisq-flashcards--compact .squisq-flashcards__explanation,.squisq-flashcards--compact .squisq-flashcards__feedback{margin-top:16px;padding-top:14px}.squisq-flashcards--compact .squisq-flashcards__answer-label{margin-bottom:8px}.squisq-flashcards--compact .squisq-flashcards__choices{gap:8px;margin-top:16px}.squisq-flashcards--compact .squisq-flashcards__choice{grid-template-columns:26px minmax(0,1fr);gap:10px;padding:9px 14px}.squisq-flashcards--compact .squisq-flashcards__choice-key{width:26px;height:26px;font-size:13px}.squisq-flashcards--compact .squisq-flashcards__choice .squisq-flashcards__content-title{font-size:15px}.squisq-flashcards--compact .squisq-flashcards__feedback>strong{font-size:17px}.squisq-flashcards--compact .squisq-flashcards__correct-answer>span{margin:8px 0 6px}.squisq-flashcards--compact .squisq-flashcards__summary,.squisq-flashcards--compact .squisq-flashcards__empty-card{margin-block:auto}.squisq-flashcards--compact .squisq-flashcards__summary h2,.squisq-flashcards--compact .squisq-flashcards__empty-card h2{font-size:clamp(19px,2.2vw,24px)}.squisq-flashcards--compact .squisq-flashcards__summary-actions{margin-top:16px}@media(max-width:640px){.squisq-flashcards__header,.squisq-flashcards__footer{align-items:stretch;flex-direction:column}.squisq-flashcards__back{flex-direction:column;align-items:stretch;gap:10px;text-align:center}.squisq-flashcards__tools,.squisq-flashcards__primary-actions{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-svg{margin:1.25rem 0}.squisq-md-svg>img{display:block;max-width:100%;height:auto}.squisq-md-svg-error{margin:1em 0}.squisq-md-svg-error-note{margin:0 0 .4em;font-size:.85em;opacity:.7}.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}
769
- `;var fI=false;function nK(){if(fI||typeof document>"u")return;let e=document.createElement("style");e.setAttribute("data-squisq-player","animations");let t=globalThis.__SQUISQ_PLAYER_ICON_STYLES__;e.textContent=mI,t&&(e.textContent+=`
770
- ${t}`),document.head.appendChild(e),fI=true;}function rK(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:iK(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 iK(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 aK(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 qm=new WeakMap,Bo=new WeakMap;function oK(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:()=>{Bo.get(e)===l&&sK(e);},setRenderAPI(c){r&&(n=c,c&&s(c));},cancel(){r=false,n=null,s(null);}};return l}function Twe(e,t,n={}){nK();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:p,renderMode:g=false,viewport:h,motion:b,animationsEnabled:w=true,buildsEnabled:x=true,captionStyle:T,captionPosition:S,globalKeyboardShortcuts:v=true,showCodeCopyButton:E=false,onCopyCode:I}=n,_=s?aK(t,s):t,A=o?rK(o,a):null;Bo.get(e)?.cancel();let P=oK(e,(r==="slideshow"||r==="video"||r==="dashboard")&&g);Bo.set(e,P);let D;if(r==="static")D=wr(Im,{doc:_,basePath:a,theme:u,animationsEnabled:w,globalKeyboardShortcuts:v,showCodeCopyButton:E,onCopyCode:I});else {let B=r==="dashboard"||g?e.getBoundingClientRect():void 0,L=B&&B.width>0&&B.height>0?{width:Math.round(B.width),height:Math.round(B.height),name:"Host viewport"}:void 0,z=h&&h.width>0&&h.height>0?{width:Math.round(h.width),height:Math.round(h.height),name:h.name??"Render viewport"}:void 0,$=r==="dashboard"?L??z:z??L;D=wr(dI,{doc:_,basePath:a,audioMode:!g&&_.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:$,autoPlay:g?false:l,showControls:!g,renderMode:g,animationsEnabled:w,buildsEnabled:x,theme:u,motion:b,videoPresentation:d,pipSize:m,pipShape:f,pipPosition:p,captionsEnabled:!!T,captionStyle:T??"standard",captionPosition:S,globalKeyboardShortcuts:v,onRenderAPIReady:O=>P.setRenderAPI(O)});}A&&(D=wr(_0.Provider,{value:A},D));let M=qm.get(e);return M||(M=cw(e),qm.set(e,M)),M.render(D),P}function Swe(e){return Bo.get(e)}function sK(e){Bo.get(e)?.cancel(),Bo.delete(e);let n=qm.get(e);n&&(n.unmount(),qm.delete(e));}var Ewe="2.12.15";
771
- exports.getHandle=Swe;exports.mount=Twe;exports.unmount=sK;exports.version=Ewe;return exports;})({});
769
+ `;var fI=false;function iK(){if(fI||typeof document>"u")return;let e=document.createElement("style");e.setAttribute("data-squisq-player","animations");let t=globalThis.__SQUISQ_PLAYER_ICON_STYLES__;e.textContent=mI,t&&(e.textContent+=`
770
+ ${t}`),document.head.appendChild(e),fI=true;}function aK(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:oK(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 oK(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 sK(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 qm=new WeakMap,Bo=new WeakMap;function lK(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:()=>{Bo.get(e)===l&&cK(e);},setRenderAPI(c){r&&(n=c,c&&s(c));},cancel(){r=false,n=null,s(null);}};return l}function Ewe(e,t,n={}){iK();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:p,renderMode:g=false,viewport:h,motion:b,animationsEnabled:w=true,buildsEnabled:x=true,captionStyle:T,captionPosition:S,globalKeyboardShortcuts:v=true,showCodeCopyButton:E=false,onCopyCode:I}=n,_=s?sK(t,s):t,A=o?aK(o,a):null;Bo.get(e)?.cancel();let P=lK(e,(r==="slideshow"||r==="video"||r==="dashboard")&&g);Bo.set(e,P);let D;if(r==="static")D=wr(Im,{doc:_,basePath:a,theme:u,animationsEnabled:w,globalKeyboardShortcuts:v,showCodeCopyButton:E,onCopyCode:I});else {let B=r==="dashboard"||g?e.getBoundingClientRect():void 0,L=B&&B.width>0&&B.height>0?{width:Math.round(B.width),height:Math.round(B.height),name:"Host viewport"}:void 0,z=h&&h.width>0&&h.height>0?{width:Math.round(h.width),height:Math.round(h.height),name:h.name??"Render viewport"}:void 0,$=r==="dashboard"?L??z:z??L;D=wr(dI,{doc:_,basePath:a,audioMode:!g&&_.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:$,autoPlay:g?false:l,showControls:!g,renderMode:g,animationsEnabled:w,buildsEnabled:x,theme:u,motion:b,videoPresentation:d,pipSize:m,pipShape:f,pipPosition:p,captionsEnabled:!!T,captionStyle:T??"standard",captionPosition:S,globalKeyboardShortcuts:v,onRenderAPIReady:O=>P.setRenderAPI(O)});}A&&(D=wr(_0.Provider,{value:A},D));let M=qm.get(e);return M||(M=cw(e),qm.set(e,M)),M.render(D),P}function _we(e){return Bo.get(e)}function cK(e){Bo.get(e)?.cancel(),Bo.delete(e);let n=qm.get(e);n&&(n.unmount(),qm.delete(e));}var Awe="2.12.17";
771
+ exports.getHandle=_we;exports.mount=Ewe;exports.unmount=cK;exports.version=Awe;return exports;})({});