@shotstack/shotstack-studio 2.22.1 → 2.22.2
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
|
-
(function(Ai,vn){typeof exports=="object"&&typeof module<"u"?vn(exports,require("pixi.js"),require("howler"),require("pixi-filters"),require("opentype.js"),require("pixi.js/app"),require("pixi.js/events"),require("pixi.js/graphics"),require("pixi.js/text"),require("pixi.js/text-html"),require("pixi.js/sprite-tiling"),require("pixi.js/filters"),require("pixi.js/mesh")):typeof define=="function"&&define.amd?define(["exports","pixi.js","howler","pixi-filters","opentype.js","pixi.js/app","pixi.js/events","pixi.js/graphics","pixi.js/text","pixi.js/text-html","pixi.js/sprite-tiling","pixi.js/filters","pixi.js/mesh"],vn):(Ai=typeof globalThis<"u"?globalThis:Ai||self,vn(Ai.ShotstackStudio={},Ai.PIXI,Ai.Howler,Ai.PIXI,Ai.opentype))})(this,function(Ai,vn,n8,s8,a8){"use strict";var Qn=typeof document<"u"?document.currentScript:null;function Jc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const X=Jc(vn),tv=Jc(n8),Bl=Jc(s8),P0=Jc(a8),o8={version:"2.22.0"};function ev(e,t,i){const r=1-e;return 3*r*r*e*t+3*r*e*e*i+e*e*e}class l8{curves={};constructor(){this.initializeCurves()}initializeCurves(){this.curves={smooth:[[.5,0],[.5,1]],ease:[[.25,.1],[.25,1]],easeIn:[[.42,0],[1,1]],easeOut:[[0,0],[.58,1]],easeInOut:[[.42,0],[.58,1]],easeInQuad:[[.55,.085],[.68,.53]],easeInCubic:[[.55,.055],[.675,.19]],easeInQuart:[[.895,.03],[.685,.22]],easeInQuint:[[.755,.05],[.855,.06]],easeInSine:[[.47,0],[.745,.715]],easeInExpo:[[.95,.05],[.795,.035]],easeInCirc:[[.6,.04],[.98,.335]],easeInBack:[[.6,-.28],[.735,.045]],easeOutQuad:[[.25,.46],[.45,.94]],easeOutCubic:[[.215,.61],[.355,1]],easeOutQuart:[[.165,.84],[.44,1]],easeOutQuint:[[.23,1],[.32,1]],easeOutSine:[[.39,.575],[.565,1]],easeOutExpo:[[.19,1],[.22,1]],easeOutCirc:[[.075,.82],[.165,1]],easeOutBack:[[.175,.885],[.32,1.275]],easeInOutQuad:[[.455,.03],[.515,.955]],easeInOutCubic:[[.645,.045],[.355,1]],easeInOutQuart:[[.77,0],[.175,1]],easeInOutQuint:[[.86,0],[.07,1]],easeInOutSine:[[.445,.05],[.55,.95]],easeInOutExpo:[[1,0],[0,1]],easeInOutCirc:[[.785,.135],[.15,.86]],easeInOutBack:[[.68,-.55],[.265,1.55]]}}getValue(t,i,r,n){if(r<=0)return t;if(r>=1)return i;const s=this.curves[n??""]??this.curves.ease,[[a,o],[l,u]]=s,c=this.solveForT(r,a,l),d=ev(c,o,u);return t+(i-t)*d}solveForT(t,i,r){let n=0,s=1,a=t;for(let o=0;o<24;o+=1){const l=ev(a,i,r)-t;if(Math.abs(l)<1e-5)break;l<0?n=a:s=a,a=(n+s)/2}return a}}const xi=1e-6;class Ns{property;length;cubicBuilder;cachedIndex=0;constructor(t,i,r=0){this.property=this.createKeyframes(t,i,r),this.length=i,this.cubicBuilder=new l8}getValue(t){const i=this.findKeyframe(t);if(!i){if(this.property.length>0){if(t>=this.length)return this.property[this.property.length-1].to;if(t<0)return this.property[0].from}return 1}const r=(t-i.start)/i.length;switch(i.interpolation){case"bezier":return this.cubicBuilder.getValue(i.from,i.to,r,i.easing);case"constant":return i.from;case"linear":default:return i.from+(i.to-i.from)*r}}findKeyframe(t){const i=this.property;if(i.length===0)return;const r=i[this.cachedIndex];if(r){const o=r.start+r.length;if(Number.isFinite(o)&&t>=r.start&&t<o)return r}const n=this.cachedIndex+1;if(n<i.length){const o=i[n],l=o.start+o.length;if(Number.isFinite(l)&&t>=o.start&&t<l)return this.cachedIndex=n,o}const s=this.cachedIndex-1;if(s>=0){const o=i[s],l=o.start+o.length;if(Number.isFinite(l)&&t>=o.start&&t<l)return this.cachedIndex=s,o}const a=this.binarySearchKeyframe(t);if(a!==-1)return this.cachedIndex=a,i[a]}binarySearchKeyframe(t){const i=this.property;let r=0,n=i.length-1;for(;r<=n;){const s=Math.floor((r+n)/2),a=i[s],o=a.start+a.length;if(!Number.isFinite(o)||t>=o)r=s+1;else if(t<a.start)n=s-1;else return s}return-1}createKeyframes(t,i,r=0){if(typeof t=="number")return[{start:0,length:i,from:t,to:t}];if(!t.length)throw new Error("Keyframes should have at least one value.");const n=this.createNormalizedKeyframes(t);return this.normaliseAdjacentBoundaries(n),this.validateKeyframes(n),this.insertFillerKeyframes(n,i,r)}createNormalizedKeyframes(t){return t.filter(i=>typeof i.start=="number"&&typeof i.length=="number").toSorted((i,r)=>i.start-r.start).map(i=>({start:i.start,length:i.length,from:typeof i.from=="number"?i.from:0,to:typeof i.to=="number"?i.to:0,interpolation:i.interpolation,easing:i.easing}))}normaliseAdjacentBoundaries(t){for(let i=0;i<t.length-1;i+=1){const r=t[i],n=t[i+1],s=r.start+r.length-n.start,a=n.start-r.start;Math.abs(s)<=xi&&a>0&&(r.length=a)}}validateKeyframes(t){for(let i=0;i<t.length;i+=1){const r=t[i],n=t[i+1];if(!n)break;if(r.start+r.length>n.start)throw new Error("Overlapping keyframes detected.")}}insertFillerKeyframes(t,i,r=0){const n=[];for(let s=0;s<t.length;s+=1){const a=t[s],o=t[s+1];if(s===0&&a.start>0){const c={start:0,length:a.start,from:r,to:a.from};n.push(c)}if(n.push(a),!o){if(i-(a.start+a.length)>0){const d=a.start+a.length,f={start:d,length:i-d,from:a.to,to:a.to};n.push(f)}break}if(o.start-(a.start+a.length)>0){const c=a.start+a.length,d=o.start-c,f={start:c,length:d,from:a.to,to:o.from};n.push(f)}}return n}}class Aa{baseValue;mode;layers=[];length;clampRange;constructor(t,i,r,n){this.baseValue=t,this.length=i,this.mode=r,this.clampRange=n}addLayer(t){if(t.length===0)return;const i=this.mode==="additive"?0:1;this.layers.push(new Ns(t,this.length,i))}getValue(t){if(this.layers.length===0)return this.baseValue;if(this.mode==="additive"){let r=this.baseValue;for(const n of this.layers)r+=n.getValue(t);return r}let i=this.baseValue;for(const r of this.layers)i*=r.getValue(t);return this.clampRange&&(i=Math.max(this.clampRange.min,Math.min(this.clampRange.max,i))),i}}class u8{clipConfiguration;effectPreset;constructor(t){this.clipConfiguration=t;const[i,r]=(t.effect??"").split(/(Slow|Fast)/);this.effectPreset={name:i,speed:r}}buildRelative(t,i){const r=[],n=[],s=[],a=[],o=[],{effect:l,length:u}=this.clipConfiguration;if(!l)return{offsetXKeyframes:r,offsetYKeyframes:n,opacityKeyframes:s,scaleKeyframes:a,rotationKeyframes:o};const c=0,d=this.getPresetName();switch(d){case"zoomIn":{const f=this.getZoomSpeed();a.push({from:1,to:f,start:c,length:u,interpolation:"linear"});break}case"zoomOut":{const f=this.getZoomSpeed();a.push({from:f,to:1,start:c,length:u,interpolation:"linear"});break}case"slideLeft":case"slideRight":case"slideUp":case"slideDown":{const f=d==="slideLeft"||d==="slideRight",h=d==="slideLeft"||d==="slideUp",p=this.getFittedSize(t,i),g=f?t.width:t.height,y=f?p.width:p.height;let v=this.getSlideStart();const C=g+g*v*2;if(y<C){const k=C/y;a.push({from:k,to:k,start:c,length:u,interpolation:"linear"})}else v=(y-g)/2/g;const[x,S]=h?[v,-v]:[-v,v];(f?r:n).push({from:x,to:S,start:c,length:u});break}}return{offsetXKeyframes:r,offsetYKeyframes:n,opacityKeyframes:s,scaleKeyframes:a,rotationKeyframes:o}}getPresetName(){return this.effectPreset.name}getZoomSpeed(){const{name:t,speed:i}=this.effectPreset;if(t.startsWith("zoom"))switch(i){case"Slow":return 1.1;case"Fast":return 1.7;default:return 1.3}return 0}getSlideStart(){const{name:t,speed:i}=this.effectPreset;if(t.startsWith("slide"))switch(i){case"Slow":return .03;case"Fast":return .2;default:return .12}return 0}getFittedSize(t,i){switch(this.clipConfiguration.fit??"crop"){case"cover":case"crop":{const n=Math.max(t.width/i.width,t.height/i.height);return{width:i.width*n,height:i.height*n}}case"contain":{const n=Math.min(t.width/i.width,t.height/i.height);return{width:i.width*n,height:i.height*n}}case"none":default:return i}}}class c8{clipConfiguration;inPreset;outPreset;constructor(t){this.clipConfiguration=t,this.inPreset=this.parseTransition(t.transition?.in),this.outPreset=this.parseTransition(t.transition?.out)}parseTransition(t){const[i,r]=(t??"").split(/(Slow|Fast|VeryFast)/);return{name:i,speed:r}}buildRelative(){return{in:this.buildTransitionKeyframes("in"),out:this.buildTransitionKeyframes("out")}}createEmptyKeyframeSet(){return{offsetXKeyframes:[],offsetYKeyframes:[],opacityKeyframes:[],scaleKeyframes:[],rotationKeyframes:[],maskXKeyframes:[],brightnessKeyframes:[],wipeFromRight:!1}}buildTransitionKeyframes(t){const i=this.createEmptyKeyframeSet();if(!(t==="in"?this.clipConfiguration.transition?.in:this.clipConfiguration.transition?.out))return i;const n=this.getPresetLength(t),s=t==="in"?0:this.clipConfiguration.length-n,a=this.getPresetName(t),o=t==="in";switch(a){case"fade":{const[l,u]=o?[0,1]:[1,0];i.opacityKeyframes.push({from:l,to:u,start:s,length:n,interpolation:"bezier",easing:"easeInOut"});break}case"zoom":{const[l,u]=o?[10,1]:[1,10],[c,d]=o?[0,1]:[1,0],f=o?"easeIn":"easeOut";o?i.scaleKeyframes.push({from:l,to:u,start:s,length:n,interpolation:"linear"}):i.scaleKeyframes.push({from:l,to:u,start:s,length:n,interpolation:"bezier",easing:f}),i.opacityKeyframes.push({from:c,to:d,start:s,length:n,interpolation:"bezier",easing:f});break}case"slideLeft":case"slideRight":case"slideUp":case"slideDown":{const l=a==="slideLeft"||a==="slideRight",u=a==="slideLeft"||a==="slideUp",c=.025,[d,f]=o?[u?c:-c,0]:[0,u?-c:c],h=o?"linear":"bezier",[p,g]=o?[0,1]:[1,0];(l?i.offsetXKeyframes:i.offsetYKeyframes).push(o?{from:d,to:f,start:s,length:n,interpolation:h}:{from:d,to:f,start:s,length:n,interpolation:h,easing:"ease"}),i.opacityKeyframes.push({from:p,to:g,start:s,length:n,interpolation:"bezier",easing:"ease"});break}case"carouselLeft":case"carouselRight":case"carouselUp":case"carouselDown":{const l=a==="carouselLeft"||a==="carouselRight",u=a==="carouselLeft"||a==="carouselUp",c=l&&1||(o?1.05:1.1),[d,f]=o?[u?c:-c,0]:[0,u?-c:c];(l?i.offsetXKeyframes:i.offsetYKeyframes).push(o?{from:d,to:f,start:s,length:n,interpolation:"linear"}:{from:d,to:f,start:s,length:n,interpolation:"bezier",easing:"ease"});break}case"reveal":{const[l,u]=o?[0,1]:[1,0];i.maskXKeyframes.push({from:l,to:u,start:s,length:n,interpolation:"bezier",easing:"ease"});break}case"wipeLeft":case"wipeRight":{const[l,u]=o?[1,-1]:[-1,1];i.brightnessKeyframes.push({from:l,to:u,start:s,length:n,interpolation:"bezier",easing:"easeInOut"}),i.wipeFromRight=a==="wipeLeft"?o:!o;break}}return i}getPresetName(t){return t==="in"?this.inPreset.name:this.outPreset.name}getPresetLength(t){const{name:i,speed:r}=t==="in"?this.inPreset:this.outPreset,n=i.startsWith("carousel"),s=i.startsWith("slide");if(i==="zoom")return .4;switch(r){case"Slow":return 2;case"Fast":return n||s?.25:.5;case"VeryFast":return .25;default:return n||s?.5:1}}}const iv="1.1764706",d8=`
|
|
1
|
+
(function(Ai,vn){typeof exports=="object"&&typeof module<"u"?vn(exports,require("pixi.js"),require("howler"),require("pixi-filters"),require("opentype.js"),require("pixi.js/app"),require("pixi.js/events"),require("pixi.js/graphics"),require("pixi.js/text"),require("pixi.js/text-html"),require("pixi.js/sprite-tiling"),require("pixi.js/filters"),require("pixi.js/mesh")):typeof define=="function"&&define.amd?define(["exports","pixi.js","howler","pixi-filters","opentype.js","pixi.js/app","pixi.js/events","pixi.js/graphics","pixi.js/text","pixi.js/text-html","pixi.js/sprite-tiling","pixi.js/filters","pixi.js/mesh"],vn):(Ai=typeof globalThis<"u"?globalThis:Ai||self,vn(Ai.ShotstackStudio={},Ai.PIXI,Ai.Howler,Ai.PIXI,Ai.opentype))})(this,function(Ai,vn,n8,s8,a8){"use strict";var Qn=typeof document<"u"?document.currentScript:null;function Jc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const X=Jc(vn),tv=Jc(n8),Bl=Jc(s8),P0=Jc(a8),o8={version:"2.22.1"};function ev(e,t,i){const r=1-e;return 3*r*r*e*t+3*r*e*e*i+e*e*e}class l8{curves={};constructor(){this.initializeCurves()}initializeCurves(){this.curves={smooth:[[.5,0],[.5,1]],ease:[[.25,.1],[.25,1]],easeIn:[[.42,0],[1,1]],easeOut:[[0,0],[.58,1]],easeInOut:[[.42,0],[.58,1]],easeInQuad:[[.55,.085],[.68,.53]],easeInCubic:[[.55,.055],[.675,.19]],easeInQuart:[[.895,.03],[.685,.22]],easeInQuint:[[.755,.05],[.855,.06]],easeInSine:[[.47,0],[.745,.715]],easeInExpo:[[.95,.05],[.795,.035]],easeInCirc:[[.6,.04],[.98,.335]],easeInBack:[[.6,-.28],[.735,.045]],easeOutQuad:[[.25,.46],[.45,.94]],easeOutCubic:[[.215,.61],[.355,1]],easeOutQuart:[[.165,.84],[.44,1]],easeOutQuint:[[.23,1],[.32,1]],easeOutSine:[[.39,.575],[.565,1]],easeOutExpo:[[.19,1],[.22,1]],easeOutCirc:[[.075,.82],[.165,1]],easeOutBack:[[.175,.885],[.32,1.275]],easeInOutQuad:[[.455,.03],[.515,.955]],easeInOutCubic:[[.645,.045],[.355,1]],easeInOutQuart:[[.77,0],[.175,1]],easeInOutQuint:[[.86,0],[.07,1]],easeInOutSine:[[.445,.05],[.55,.95]],easeInOutExpo:[[1,0],[0,1]],easeInOutCirc:[[.785,.135],[.15,.86]],easeInOutBack:[[.68,-.55],[.265,1.55]]}}getValue(t,i,r,n){if(r<=0)return t;if(r>=1)return i;const s=this.curves[n??""]??this.curves.ease,[[a,o],[l,u]]=s,c=this.solveForT(r,a,l),d=ev(c,o,u);return t+(i-t)*d}solveForT(t,i,r){let n=0,s=1,a=t;for(let o=0;o<24;o+=1){const l=ev(a,i,r)-t;if(Math.abs(l)<1e-5)break;l<0?n=a:s=a,a=(n+s)/2}return a}}const xi=1e-6;class Ns{property;length;cubicBuilder;cachedIndex=0;constructor(t,i,r=0){this.property=this.createKeyframes(t,i,r),this.length=i,this.cubicBuilder=new l8}getValue(t){const i=this.findKeyframe(t);if(!i){if(this.property.length>0){if(t>=this.length)return this.property[this.property.length-1].to;if(t<0)return this.property[0].from}return 1}const r=(t-i.start)/i.length;switch(i.interpolation){case"bezier":return this.cubicBuilder.getValue(i.from,i.to,r,i.easing);case"constant":return i.from;case"linear":default:return i.from+(i.to-i.from)*r}}findKeyframe(t){const i=this.property;if(i.length===0)return;const r=i[this.cachedIndex];if(r){const o=r.start+r.length;if(Number.isFinite(o)&&t>=r.start&&t<o)return r}const n=this.cachedIndex+1;if(n<i.length){const o=i[n],l=o.start+o.length;if(Number.isFinite(l)&&t>=o.start&&t<l)return this.cachedIndex=n,o}const s=this.cachedIndex-1;if(s>=0){const o=i[s],l=o.start+o.length;if(Number.isFinite(l)&&t>=o.start&&t<l)return this.cachedIndex=s,o}const a=this.binarySearchKeyframe(t);if(a!==-1)return this.cachedIndex=a,i[a]}binarySearchKeyframe(t){const i=this.property;let r=0,n=i.length-1;for(;r<=n;){const s=Math.floor((r+n)/2),a=i[s],o=a.start+a.length;if(!Number.isFinite(o)||t>=o)r=s+1;else if(t<a.start)n=s-1;else return s}return-1}createKeyframes(t,i,r=0){if(typeof t=="number")return[{start:0,length:i,from:t,to:t}];if(!t.length)throw new Error("Keyframes should have at least one value.");const n=this.createNormalizedKeyframes(t);return this.normaliseAdjacentBoundaries(n),this.validateKeyframes(n),this.insertFillerKeyframes(n,i,r)}createNormalizedKeyframes(t){return t.filter(i=>typeof i.start=="number"&&typeof i.length=="number").sort((i,r)=>i.start-r.start).map(i=>({start:i.start,length:i.length,from:typeof i.from=="number"?i.from:0,to:typeof i.to=="number"?i.to:0,interpolation:i.interpolation,easing:i.easing}))}normaliseAdjacentBoundaries(t){for(let i=0;i<t.length-1;i+=1){const r=t[i],n=t[i+1],s=r.start+r.length-n.start,a=n.start-r.start;Math.abs(s)<=xi&&a>0&&(r.length=a)}}validateKeyframes(t){for(let i=0;i<t.length;i+=1){const r=t[i],n=t[i+1];if(!n)break;if(r.start+r.length>n.start)throw new Error("Overlapping keyframes detected.")}}insertFillerKeyframes(t,i,r=0){const n=[];for(let s=0;s<t.length;s+=1){const a=t[s],o=t[s+1];if(s===0&&a.start>0){const c={start:0,length:a.start,from:r,to:a.from};n.push(c)}if(n.push(a),!o){if(i-(a.start+a.length)>0){const d=a.start+a.length,f={start:d,length:i-d,from:a.to,to:a.to};n.push(f)}break}if(o.start-(a.start+a.length)>0){const c=a.start+a.length,d=o.start-c,f={start:c,length:d,from:a.to,to:o.from};n.push(f)}}return n}}class Aa{baseValue;mode;layers=[];length;clampRange;constructor(t,i,r,n){this.baseValue=t,this.length=i,this.mode=r,this.clampRange=n}addLayer(t){if(t.length===0)return;const i=this.mode==="additive"?0:1;this.layers.push(new Ns(t,this.length,i))}getValue(t){if(this.layers.length===0)return this.baseValue;if(this.mode==="additive"){let r=this.baseValue;for(const n of this.layers)r+=n.getValue(t);return r}let i=this.baseValue;for(const r of this.layers)i*=r.getValue(t);return this.clampRange&&(i=Math.max(this.clampRange.min,Math.min(this.clampRange.max,i))),i}}class u8{clipConfiguration;effectPreset;constructor(t){this.clipConfiguration=t;const[i,r]=(t.effect??"").split(/(Slow|Fast)/);this.effectPreset={name:i,speed:r}}buildRelative(t,i){const r=[],n=[],s=[],a=[],o=[],{effect:l,length:u}=this.clipConfiguration;if(!l)return{offsetXKeyframes:r,offsetYKeyframes:n,opacityKeyframes:s,scaleKeyframes:a,rotationKeyframes:o};const c=0,d=this.getPresetName();switch(d){case"zoomIn":{const f=this.getZoomSpeed();a.push({from:1,to:f,start:c,length:u,interpolation:"linear"});break}case"zoomOut":{const f=this.getZoomSpeed();a.push({from:f,to:1,start:c,length:u,interpolation:"linear"});break}case"slideLeft":case"slideRight":case"slideUp":case"slideDown":{const f=d==="slideLeft"||d==="slideRight",h=d==="slideLeft"||d==="slideUp",p=this.getFittedSize(t,i),g=f?t.width:t.height,y=f?p.width:p.height;let v=this.getSlideStart();const C=g+g*v*2;if(y<C){const k=C/y;a.push({from:k,to:k,start:c,length:u,interpolation:"linear"})}else v=(y-g)/2/g;const[x,S]=h?[v,-v]:[-v,v];(f?r:n).push({from:x,to:S,start:c,length:u});break}}return{offsetXKeyframes:r,offsetYKeyframes:n,opacityKeyframes:s,scaleKeyframes:a,rotationKeyframes:o}}getPresetName(){return this.effectPreset.name}getZoomSpeed(){const{name:t,speed:i}=this.effectPreset;if(t.startsWith("zoom"))switch(i){case"Slow":return 1.1;case"Fast":return 1.7;default:return 1.3}return 0}getSlideStart(){const{name:t,speed:i}=this.effectPreset;if(t.startsWith("slide"))switch(i){case"Slow":return .03;case"Fast":return .2;default:return .12}return 0}getFittedSize(t,i){switch(this.clipConfiguration.fit??"crop"){case"cover":case"crop":{const n=Math.max(t.width/i.width,t.height/i.height);return{width:i.width*n,height:i.height*n}}case"contain":{const n=Math.min(t.width/i.width,t.height/i.height);return{width:i.width*n,height:i.height*n}}case"none":default:return i}}}class c8{clipConfiguration;inPreset;outPreset;constructor(t){this.clipConfiguration=t,this.inPreset=this.parseTransition(t.transition?.in),this.outPreset=this.parseTransition(t.transition?.out)}parseTransition(t){const[i,r]=(t??"").split(/(Slow|Fast|VeryFast)/);return{name:i,speed:r}}buildRelative(){return{in:this.buildTransitionKeyframes("in"),out:this.buildTransitionKeyframes("out")}}createEmptyKeyframeSet(){return{offsetXKeyframes:[],offsetYKeyframes:[],opacityKeyframes:[],scaleKeyframes:[],rotationKeyframes:[],maskXKeyframes:[],brightnessKeyframes:[],wipeFromRight:!1}}buildTransitionKeyframes(t){const i=this.createEmptyKeyframeSet();if(!(t==="in"?this.clipConfiguration.transition?.in:this.clipConfiguration.transition?.out))return i;const n=this.getPresetLength(t),s=t==="in"?0:this.clipConfiguration.length-n,a=this.getPresetName(t),o=t==="in";switch(a){case"fade":{const[l,u]=o?[0,1]:[1,0];i.opacityKeyframes.push({from:l,to:u,start:s,length:n,interpolation:"bezier",easing:"easeInOut"});break}case"zoom":{const[l,u]=o?[10,1]:[1,10],[c,d]=o?[0,1]:[1,0],f=o?"easeIn":"easeOut";o?i.scaleKeyframes.push({from:l,to:u,start:s,length:n,interpolation:"linear"}):i.scaleKeyframes.push({from:l,to:u,start:s,length:n,interpolation:"bezier",easing:f}),i.opacityKeyframes.push({from:c,to:d,start:s,length:n,interpolation:"bezier",easing:f});break}case"slideLeft":case"slideRight":case"slideUp":case"slideDown":{const l=a==="slideLeft"||a==="slideRight",u=a==="slideLeft"||a==="slideUp",c=.025,[d,f]=o?[u?c:-c,0]:[0,u?-c:c],h=o?"linear":"bezier",[p,g]=o?[0,1]:[1,0];(l?i.offsetXKeyframes:i.offsetYKeyframes).push(o?{from:d,to:f,start:s,length:n,interpolation:h}:{from:d,to:f,start:s,length:n,interpolation:h,easing:"ease"}),i.opacityKeyframes.push({from:p,to:g,start:s,length:n,interpolation:"bezier",easing:"ease"});break}case"carouselLeft":case"carouselRight":case"carouselUp":case"carouselDown":{const l=a==="carouselLeft"||a==="carouselRight",u=a==="carouselLeft"||a==="carouselUp",c=l&&1||(o?1.05:1.1),[d,f]=o?[u?c:-c,0]:[0,u?-c:c];(l?i.offsetXKeyframes:i.offsetYKeyframes).push(o?{from:d,to:f,start:s,length:n,interpolation:"linear"}:{from:d,to:f,start:s,length:n,interpolation:"bezier",easing:"ease"});break}case"reveal":{const[l,u]=o?[0,1]:[1,0];i.maskXKeyframes.push({from:l,to:u,start:s,length:n,interpolation:"bezier",easing:"ease"});break}case"wipeLeft":case"wipeRight":{const[l,u]=o?[1,-1]:[-1,1];i.brightnessKeyframes.push({from:l,to:u,start:s,length:n,interpolation:"bezier",easing:"easeInOut"}),i.wipeFromRight=a==="wipeLeft"?o:!o;break}}return i}getPresetName(t){return t==="in"?this.inPreset.name:this.outPreset.name}getPresetLength(t){const{name:i,speed:r}=t==="in"?this.inPreset:this.outPreset,n=i.startsWith("carousel"),s=i.startsWith("slide");if(i==="zoom")return .4;switch(r){case"Slow":return 2;case"Fast":return n||s?.25:.5;case"VeryFast":return .25;default:return n||s?.5:1}}}const iv="1.1764706",d8=`
|
|
2
2
|
in vec2 vTextureCoord;
|
|
3
3
|
out vec4 finalColor;
|
|
4
4
|
|
|
@@ -313,6 +313,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
313
313
|
var origGsapPause = origGsapTl && typeof origGsapTl.pause === "function" ? origGsapTl.pause.bind(origGsapTl) : null;
|
|
314
314
|
var origGsapSeek = origGsapTl && typeof origGsapTl.seek === "function" ? origGsapTl.seek.bind(origGsapTl) : null;
|
|
315
315
|
var origGsapGetChildren = origGsapTl && typeof origGsapTl.getChildren === "function" ? origGsapTl.getChildren.bind(origGsapTl) : null;
|
|
316
|
+
// Capture may queue longer than an animation lasts; only the host advances its clock.
|
|
317
|
+
if (origGsapPause) origGsapPause(0);
|
|
316
318
|
var origLottieRegistered = window.lottie && typeof window.lottie.getRegisteredAnimations === "function" ? window.lottie.getRegisteredAnimations.bind(window.lottie) : null;
|
|
317
319
|
var animeInstances = [];
|
|
318
320
|
|
|
@@ -378,7 +380,7 @@ ${_V(r)}
|
|
|
378
380
|
<\/script>
|
|
379
381
|
<script>${CV}<\/script>
|
|
380
382
|
</body>
|
|
381
|
-
</html>`}var EV="v2";async function AV(e){const t=`${EV} ${e.html} ${e.css} ${e.js} ${e.width} ${e.height}`,i=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",i);return Array.from(new Uint8Array(r)).map(n=>n.toString(16).padStart(2,"0")).join("")}var TV=/@keyframes|animation\s*:/i;function IV(e){const t=e.fps>0?e.fps:30,i=(e.clipLengthSeconds??0)*1e3,r=i>0?i:e.maxDurationMs??6e4;return TV.test(e.cssContent??"")||!!e.jsContent?.trim()?{frameCount:Math.max(1,Math.ceil(r/1e3*t)),durationMs:r}:{frameCount:1,durationMs:0}}var Tf=null;function GS(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null}function DV(e){if(e.buffer instanceof ArrayBuffer)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);const t=new ArrayBuffer(e.byteLength),i=new Uint8Array(t);for(let r=0;r<e.byteLength;r++)i[r]=e[r];return t}var HS="https://js.shotstack.io/canvas/hb.wasm";async function qS(e){try{const t=await fetch(e);if(t.ok){const i=await t.arrayBuffer(),r=new Uint8Array(i);if(r.length>=4&&r[0]===0&&r[1]===97&&r[2]===115&&r[3]===109)return i;console.error(`❌ Invalid WASM magic number from URL: ${e}`)}else console.error(`❌ Failed to fetch WASM from URL: ${e}, status: ${t.status}`);return}catch(t){console.error(`❌ Error fetching WASM from ${e}:`,t);return}}async function PV(){try{const{readFile:e}=await Promise.resolve().then(()=>i0),t=await Promise.resolve().then(()=>i0),i=[];try{const{createRequire:n}=await Promise.resolve().then(()=>i0),a=n((typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Qn&&Qn.tagName.toUpperCase()==="SCRIPT"&&Qn.src||new URL("shotstack-studio.umd.js",document.baseURI).href)||`file://${process.cwd()}/`).resolve("harfbuzzjs/package.json"),o=t.dirname(a);i.push(t.join(o,"hb.wasm"))}catch{}let r;try{if(typeof(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Qn&&Qn.tagName.toUpperCase()==="SCRIPT"&&Qn.src||new URL("shotstack-studio.umd.js",document.baseURI).href)=="string"){const{fileURLToPath:n}=await Promise.resolve().then(()=>i0);r=t.dirname(n(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Qn&&Qn.tagName.toUpperCase()==="SCRIPT"&&Qn.src||new URL("shotstack-studio.umd.js",document.baseURI).href))}}catch{}r||(r=process.cwd()),i.push(t.join(r,"dist/hb.wasm"),t.join(r,"assets/wasm/hb.wasm"),t.join(r,"node_modules/harfbuzzjs/hb.wasm"),t.join(r,"node_modules/@shotstack/shotstack-canvas/assets/wasm/hb.wasm")),i.push("/var/task/node_modules/harfbuzzjs/hb.wasm","/var/task/node_modules/@shotstack/shotstack-canvas/assets/wasm/hb.wasm");for(const n of i)try{const s=await e(n);return DV(s)}catch{continue}return await qS(HS)}catch(e){return console.error("Error in loadWasmNode:",e),await qS(HS)}}async function FV(e){try{if(e){const t=e.endsWith(".wasm")?e:e.endsWith("/")?`${e}hb.wasm`:`${e}/hb.wasm`,i=await fetch(t);if(i.ok){const r=await i.arrayBuffer(),n=new Uint8Array(r);if(n.length>=4&&n[0]===0&&n[1]===97&&n[2]===115&&n[3]===109)return r}}return}catch(t){console.error("Error in loadWasmWeb:",t);return}}function BV(e){const t=window.fetch;window.fetch=function(n,s){return(typeof n=="string"?n:n instanceof URL?n.href:n.url).includes("hb.wasm")?Promise.resolve(new Response(e.slice(0),{status:200,statusText:"OK",headers:{"Content-Type":"application/wasm","Content-Length":e.byteLength.toString()}})):t.apply(this,[n,s])};const i=WebAssembly.instantiate;WebAssembly.instantiate=async function(n,s){if(n instanceof WebAssembly.Module||(n instanceof ArrayBuffer,n.byteLength)!==e.byteLength)return i.call(WebAssembly,n,s);const o=await WebAssembly.compile(e),l=await i.call(WebAssembly,o,s);return{module:o,instance:l}};const r=WebAssembly.instantiateStreaming;r&&(WebAssembly.instantiateStreaming=async function(n,s){try{const a=await n;if((a.url||"").includes("hb.wasm")){const l=await WebAssembly.compile(e),u=await WebAssembly.instantiate(l,s);return{module:l,instance:u}}return r.call(WebAssembly,a,s)}catch(a){throw a}})}async function NV(e){if(Tf)return Tf;try{let t;if(GS()?t=await PV():t=await FV(e),!t)throw new Error("Failed to load WASM binary from any source");GS()||(BV(t),window.Module={wasmBinary:t,locateFile:l=>l});const i=await Promise.resolve().then(()=>nst),n=await(i.default||i)({wasmBinary:t}),s=await Promise.resolve().then(()=>ost),o=(s.default||s)(n);if(!o||typeof o.createBuffer!="function"||typeof o.createFont!="function")throw new Error("Failed to initialize HarfBuzz: unexpected export shape from 'harfbuzzjs'.");return Tf=o,Tf}catch(t){throw console.error("Failed to initialize HarfBuzz:",t),new Error(`Failed to initialize HarfBuzz: ${t instanceof Error?t.message:String(t)}`)}}var MV={utf16le:"utf-16le",ucs2:"utf-16le",utf16be:"utf-16be"},Di=class{constructor(e){this.buffer=e,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.pos=0,this.length=this.buffer.length}readString(e,t="ascii"){t=MV[t]||t;let i=this.readBuffer(e);try{return new TextDecoder(t).decode(i)}catch{return i}}readBuffer(e){return this.buffer.slice(this.pos,this.pos+=e)}readUInt24BE(){return(this.readUInt16BE()<<8)+this.readUInt8()}readUInt24LE(){return this.readUInt16LE()+(this.readUInt8()<<16)}readInt24BE(){return(this.readInt16BE()<<8)+this.readUInt8()}readInt24LE(){return this.readUInt16LE()+(this.readInt8()<<16)}};Di.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(let e of Object.getOwnPropertyNames(DataView.prototype))if(e.slice(0,3)==="get"){let t=e.slice(3).replace("Ui","UI");t==="Float32"?t="Float":t==="Float64"&&(t="Double");let i=Di.TYPES[t];Di.prototype["read"+t+(i===1?"":"BE")]=function(){const r=this.view[e](this.pos,!1);return this.pos+=i,r},i!==1&&(Di.prototype["read"+t+"LE"]=function(){const r=this.view[e](this.pos,!0);return this.pos+=i,r})}var zV=new TextEncoder,YS=new Uint8Array(new Uint16Array([4660]).buffer)[0]==18,If=class{constructor(e){this.buffer=e,this.view=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),this.pos=0}writeBuffer(e){this.buffer.set(e,this.pos),this.pos+=e.length}writeString(e,t="ascii"){let i;switch(t){case"utf16le":case"utf16-le":case"ucs2":i=KS(e,YS);break;case"utf16be":case"utf16-be":i=KS(e,!YS);break;case"utf8":i=zV.encode(e);break;case"ascii":i=OV(e);break;default:throw new Error(`Unsupported encoding: ${t}`)}this.writeBuffer(i)}writeUInt24BE(e){this.buffer[this.pos++]=e>>>16&255,this.buffer[this.pos++]=e>>>8&255,this.buffer[this.pos++]=e&255}writeUInt24LE(e){this.buffer[this.pos++]=e&255,this.buffer[this.pos++]=e>>>8&255,this.buffer[this.pos++]=e>>>16&255}writeInt24BE(e){e>=0?this.writeUInt24BE(e):this.writeUInt24BE(e+16777215+1)}writeInt24LE(e){e>=0?this.writeUInt24LE(e):this.writeUInt24LE(e+16777215+1)}fill(e,t){if(t<this.buffer.length)this.buffer.fill(e,this.pos,this.pos+t),this.pos+=t;else{const i=new Uint8Array(t);i.fill(e),this.writeBuffer(i)}}};function KS(e,t){let i=new Uint16Array(e.length);for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t&&(n=n>>8|(n&255)<<8),i[r]=n}return new Uint8Array(i.buffer)}function OV(e){let t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}for(let e of Object.getOwnPropertyNames(DataView.prototype))if(e.slice(0,3)==="set"){let t=e.slice(3).replace("Ui","UI");t==="Float32"?t="Float":t==="Float64"&&(t="Double");let i=Di.TYPES[t];If.prototype["write"+t+(i===1?"":"BE")]=function(r){this.view[e](this.pos,r,!1),this.pos+=i},i!==1&&(If.prototype["write"+t+"LE"]=function(r){this.view[e](this.pos,r,!0),this.pos+=i})}var os=class{fromBuffer(e){let t=new Di(e);return this.decode(t)}toBuffer(e){let t=this.size(e),i=new Uint8Array(t),r=new If(i);return this.encode(r,e),i}},Pe=class extends os{constructor(e,t="BE"){super(),this.type=e,this.endian=t,this.fn=this.type,this.type[this.type.length-1]!=="8"&&(this.fn+=this.endian)}size(){return Di.TYPES[this.type]}decode(e){return e[`read${this.fn}`]()}encode(e,t){return e[`write${this.fn}`](t)}},vt=new Pe("UInt8"),RV=new Pe("UInt16","BE"),w=RV;new Pe("UInt16","LE");var VV=new Pe("UInt24","BE"),Gs=VV;new Pe("UInt24","LE");var LV=new Pe("UInt32","BE"),$=LV;new Pe("UInt32","LE");var bi=new Pe("Int8"),$V=new Pe("Int16","BE"),st=$V;new Pe("Int16","LE"),new Pe("Int24","BE"),new Pe("Int24","LE");var UV=new Pe("Int32","BE"),Oa=UV;new Pe("Int32","LE"),new Pe("Float","BE"),new Pe("Float","LE"),new Pe("Double","BE"),new Pe("Double","LE");var Ra=class extends Pe{constructor(e,t,i=e>>1){super(`Int${e}`,t),this._point=1<<i}decode(e){return super.decode(e)/this._point}encode(e,t){return super.encode(e,t*this._point|0)}},ZV=new Ra(16,"BE"),jV=ZV;new Ra(16,"LE");var WV=new Ra(32,"BE"),li=WV;new Ra(32,"LE");function Sn(e,t,i){let r;if(typeof e=="number"?r=e:typeof e=="function"?r=e.call(i,i):i&&typeof e=="string"?r=i[e]:t&&e instanceof Pe&&(r=e.decode(t)),isNaN(r))throw new Error("Not a fixed size");return r}var Cg=class{constructor(e={}){this.enumerable=!0,this.configurable=!0;for(let t in e){const i=e[t];this[t]=i}}},V=class extends os{constructor(e,t,i="count"){super(),this.type=e,this.length=t,this.lengthType=i}decode(e,t){let i;const{pos:r}=e,n=[];let s=t;if(this.length!=null&&(i=Sn(this.length,e,t)),this.length instanceof Pe&&(Object.defineProperties(n,{parent:{value:t},_startOffset:{value:r},_currentOffset:{value:0,writable:!0},_length:{value:i}}),s=n),i==null||this.lengthType==="bytes"){const a=i!=null?e.pos+i:t?._length?t._startOffset+t._length:e.length;for(;e.pos<a;)n.push(this.type.decode(e,s))}else for(let a=0,o=i;a<o;a++)n.push(this.type.decode(e,s));return n}size(e,t,i=!0){if(!e)return this.type.size(null,t)*Sn(this.length,null,t);let r=0;this.length instanceof Pe&&(r+=this.length.size(),t={parent:t,pointerSize:0});for(let n of e)r+=this.type.size(n,t);return t&&i&&this.length instanceof Pe&&(r+=t.pointerSize),r}encode(e,t,i){let r=i;this.length instanceof Pe&&(r={pointers:[],startOffset:e.pos,parent:i},r.pointerOffset=e.pos+this.size(t,r,!1),this.length.encode(e,t.length));for(let n of t)this.type.encode(e,n,r);if(this.length instanceof Pe){let n=0;for(;n<r.pointers.length;){const s=r.pointers[n++];s.type.encode(e,s.val,s.parent)}}}},Me=class extends V{decode(e,t){const{pos:i}=e,r=Sn(this.length,e,t);this.length instanceof Pe&&(t={parent:t,_startOffset:i,_currentOffset:0,_length:r});const n=new kg(this.type,r,e,t);return e.pos+=r*this.type.size(null,t),n}size(e,t){return e instanceof kg&&(e=e.toArray()),super.size(e,t)}encode(e,t,i){return t instanceof kg&&(t=t.toArray()),super.encode(e,t,i)}},kg=class{constructor(e,t,i,r){this.type=e,this.length=t,this.stream=i,this.ctx=r,this.base=this.stream.pos,this.items=[]}get(e){if(!(e<0||e>=this.length)){if(this.items[e]==null){const{pos:t}=this.stream;this.stream.pos=this.base+this.type.size(null,this.ctx)*e,this.items[e]=this.type.decode(this.stream,this.ctx),this.stream.pos=t}return this.items[e]}}toArray(){const e=[];for(let t=0,i=this.length;t<i;t++)e.push(this.get(t));return e}},nn=class extends os{constructor(e,t=[]){super(),this.type=e,this.flags=t}decode(e){const t=this.type.decode(e),i={};for(let r=0;r<this.flags.length;r++){const n=this.flags[r];n!=null&&(i[n]=!!(t&1<<r))}return i}size(){return this.type.size()}encode(e,t){let i=0;for(let r=0;r<this.flags.length;r++){const n=this.flags[r];n!=null&&t[n]&&(i|=1<<r)}return this.type.encode(e,i)}},_n=class extends os{constructor(e){super(),this.length=e}decode(e,t){const i=Sn(this.length,e,t);return e.readBuffer(i)}size(e,t){if(!e)return Sn(this.length,null,t);let i=e.length;return this.length instanceof Pe&&(i+=this.length.size()),i}encode(e,t,i){return this.length instanceof Pe&&this.length.encode(e,t.length),e.writeBuffer(t)}},Df=class extends os{constructor(e,t=!0){super(),this.type=e,this.condition=t}decode(e,t){let{condition:i}=this;if(typeof i=="function"&&(i=i.call(t,t)),i)return this.type.decode(e,t)}size(e,t){let{condition:i}=this;return typeof i=="function"&&(i=i.call(t,t)),i?this.type.size(e,t):0}encode(e,t,i){let{condition:r}=this;if(typeof r=="function"&&(r=r.call(i,i)),r)return this.type.encode(e,t,i)}},qe=class extends os{constructor(e,t=1){super(),this.type=e,this.count=t}decode(e,t){e.pos+=this.size(null,t)}size(e,t){const i=Sn(this.count,null,t);return this.type.size()*i}encode(e,t,i){return e.fill(0,this.size(t,i))}},Fe=class extends os{constructor(e,t="ascii"){super(),this.length=e,this.encoding=t}decode(e,t){let i,r,{encoding:n}=this;typeof n=="function"&&(n=n.call(t,t)||"ascii");let s=Sg(n);if(this.length!=null)i=Sn(this.length,e,t);else{let o;for({buffer:o,length:i,pos:r}=e;r<i-s+1&&(o[r]!==0||s===2&&o[r+1]!==0);)r+=s;i=r-e.pos}const a=e.readString(i,n);return this.length==null&&e.pos<e.length&&(e.pos+=s),a}size(e,t){if(e==null)return Sn(this.length,null,t);let{encoding:i}=this;typeof i=="function"&&(i=i.call(t?.val,t?.val)||"ascii"),i==="utf16be"&&(i="utf16le");let r=XS(e,i);return this.length instanceof Pe&&(r+=this.length.size()),this.length==null&&(r+=Sg(i)),r}encode(e,t,i){let{encoding:r}=this;if(typeof r=="function"&&(r=r.call(i?.val,i?.val)||"ascii"),this.length instanceof Pe&&this.length.encode(e,XS(t,r)),e.writeString(t,r),this.length==null)return Sg(r)==2?e.writeUInt16LE(0):e.writeUInt8(0)}};function Sg(e){switch(e){case"ascii":case"utf8":return 1;case"utf16le":case"utf16-le":case"utf-16be":case"utf-16le":case"utf16be":case"utf16-be":case"ucs2":return 2;default:return 1}}function XS(e,t){switch(t){case"ascii":return e.length;case"utf8":let i=0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n>=55296&&n<=56319&&r<e.length-1){let s=e.charCodeAt(++r);(s&64512)===56320?n=((n&1023)<<10)+(s&1023)+65536:r--}n&4294967168?n&4294965248?n&4294901760?n&4292870144||(i+=4):i+=3:i+=2:i++}return i;case"utf16le":case"utf16-le":case"utf16be":case"utf16-be":case"ucs2":return e.length*2;default:throw new Error("Unknown encoding "+t)}}var W=class extends os{constructor(e={}){super(),this.fields=e}decode(e,t,i=0){const r=this._setup(e,t,i);return this._parseFields(e,r,this.fields),this.process!=null&&this.process.call(r,e),r}_setup(e,t,i){const r={};return Object.defineProperties(r,{parent:{value:t},_startOffset:{value:e.pos},_currentOffset:{value:0,writable:!0},_length:{value:i}}),r}_parseFields(e,t,i){for(let n in i){var r;const s=i[n];typeof s=="function"?r=s.call(t,t):r=s.decode(e,t),r!==void 0&&(r instanceof Cg?Object.defineProperty(t,n,r):t[n]=r),t._currentOffset=e.pos-t._startOffset}}size(e,t,i=!0){e==null&&(e={});const r={parent:t,val:e,pointerSize:0};this.preEncode!=null&&this.preEncode.call(e);let n=0;for(let s in this.fields){const a=this.fields[s];a.size!=null&&(n+=a.size(e[s],r))}return i&&(n+=r.pointerSize),n}encode(e,t,i){let r;this.preEncode!=null&&this.preEncode.call(t,e);const n={pointers:[],startOffset:e.pos,parent:i,val:t,pointerSize:0};n.pointerOffset=e.pos+this.size(t,n,!1);for(let a in this.fields)r=this.fields[a],r.encode!=null&&r.encode(e,t[a],n);let s=0;for(;s<n.pointers.length;){const a=n.pointers[s++];a.type.encode(e,a.val,a.parent)}}},GV=(e,t)=>t.reduce((i,r)=>i&&i[r],e),ge=class YI extends W{constructor(t,i={}){super(),this.type=t,this.versions=i,typeof t=="string"&&(this.versionPath=t.split("."))}decode(t,i,r=0){const n=this._setup(t,i,r);typeof this.type=="string"?n.version=GV(i,this.versionPath):n.version=this.type.decode(t),this.versions.header&&this._parseFields(t,n,this.versions.header);const s=this.versions[n.version];if(s==null)throw new Error(`Unknown version ${n.version}`);return s instanceof YI?s.decode(t,i):(this._parseFields(t,n,s),this.process!=null&&this.process.call(n,t),n)}size(t,i,r=!0){let n,s;if(!t)throw new Error("Not a fixed size");this.preEncode!=null&&this.preEncode.call(t);const a={parent:i,val:t,pointerSize:0};let o=0;if(typeof this.type!="string"&&(o+=this.type.size(t.version,a)),this.versions.header)for(n in this.versions.header)s=this.versions.header[n],s.size!=null&&(o+=s.size(t[n],a));const l=this.versions[t.version];if(l==null)throw new Error(`Unknown version ${t.version}`);for(n in l)s=l[n],s.size!=null&&(o+=s.size(t[n],a));return r&&(o+=a.pointerSize),o}encode(t,i,r){let n,s;this.preEncode!=null&&this.preEncode.call(i,t);const a={pointers:[],startOffset:t.pos,parent:r,val:i,pointerSize:0};if(a.pointerOffset=t.pos+this.size(i,a,!1),typeof this.type!="string"&&this.type.encode(t,i.version),this.versions.header)for(n in this.versions.header)s=this.versions.header[n],s.encode!=null&&s.encode(t,i[n],a);const o=this.versions[i.version];for(n in o)s=o[n],s.encode!=null&&s.encode(t,i[n],a);let l=0;for(;l<a.pointers.length;){const u=a.pointers[l++];u.type.encode(t,u.val,u.parent)}}},L=class extends os{constructor(e,t,i={}){if(super(),this.offsetType=e,this.type=t,this.options=i,this.type==="void"&&(this.type=null),this.options.type==null&&(this.options.type="local"),this.options.allowNull==null&&(this.options.allowNull=!0),this.options.nullValue==null&&(this.options.nullValue=0),this.options.lazy==null&&(this.options.lazy=!1),this.options.relativeTo){if(typeof this.options.relativeTo!="function")throw new Error("relativeTo option must be a function");this.relativeToGetter=i.relativeTo}}decode(e,t){const i=this.offsetType.decode(e,t);if(i===this.options.nullValue&&this.options.allowNull)return null;let r;switch(this.options.type){case"local":r=t._startOffset;break;case"immediate":r=e.pos-this.offsetType.size();break;case"parent":r=t.parent._startOffset;break;default:for(var n=t;n.parent;)n=n.parent;r=n._startOffset||0}this.options.relativeTo&&(r+=this.relativeToGetter(t));const s=i+r;if(this.type!=null){let a=null;const o=()=>{if(a!=null)return a;const{pos:l}=e;return e.pos=s,a=this.type.decode(e,t),e.pos=l,a};return this.options.lazy?new Cg({get:o}):o()}else return s}size(e,t){const i=t;switch(this.options.type){case"local":case"immediate":break;case"parent":t=t.parent;break;default:for(;t.parent;)t=t.parent}let{type:r}=this;if(r==null){if(!(e instanceof _g))throw new Error("Must be a VoidPointer");({type:r}=e),e=e.value}if(e&&t){let n=r.size(e,i);t.pointerSize+=n}return this.offsetType.size()}encode(e,t,i){let r;const n=i;if(t==null){this.offsetType.encode(e,this.options.nullValue);return}switch(this.options.type){case"local":r=i.startOffset;break;case"immediate":r=e.pos+this.offsetType.size(t,n);break;case"parent":i=i.parent,r=i.startOffset;break;default:for(r=0;i.parent;)i=i.parent}this.options.relativeTo&&(r+=this.relativeToGetter(n.val)),this.offsetType.encode(e,i.pointerOffset-r);let{type:s}=this;if(s==null){if(!(t instanceof _g))throw new Error("Must be a VoidPointer");({type:s}=t),t=t.value}return i.pointers.push({type:s,val:t,parent:n}),i.pointerOffset+=s.size(t,n)}},_g=class{constructor(e,t){this.type=e,this.value=t}};function ar(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Pi(e,t,i,r){var n=arguments.length,s=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,r);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(n<3?a(s):n>3?a(t,i,s):a(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s}var JS=Ms(GN()),HV=Ms(p4()),qV=Ms(g4());function Va(e){return e&&e.__esModule?e.default:e}var Hs={};Hs=JSON.parse('{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}');var Eg=new qV.default(HV.default.toByteArray("AAARAAAAAADwfAEAZXl5ONRt+/5bPVFZimRfKoTQJNm37CGE7Iw0j3UsTWKsoyI7kwyyTiEUzSD7NiEzhWYijH0wMVkHE4Mx49fzfo+3nuP4/fdZjvv+XNd5n/d9nef1WZvmKhTxiZndzDQBSEYQqxqKwnsKvGQucFh+6t6cJ792ePQBZv5S9yXSwkyjf/P4T7mTNnIAv1dOVhMlR9lflbUL9JeJguqsjvG9NTj/wLb566VAURnLo2vvRi89S3gW/33ihh2eXpDn40BIW7REl/7coRKIhAFlAiOtbLDTt6mMb4GzMF1gNnvX/sBxtbsAIjfztCNcQjcNDtLThRvuXu5M5g/CBjaLBE4lJm4qy/oZD97+IJryApcXfgWYlkvWbhfXgujOJKVu8B+ozqTLbxyJ5kNiR75CxDqfBM9eOlDMmGeoZ0iQbbS5VUplIwI+ZNXEKQVJxlwqjhOY7w3XwPesbLK5JZE+Tt4X8q8km0dzInsPPzbscrjBMVjF5mOHSeRdJVgKUjLTHiHqXSPkep8N/zFk8167KLp75f6RndkvzdfB6Uz3MmqvRArzdCbs1/iRZjYPLLF3U8Qs+H+Rb8iK51a6NIV2V9+07uJsTGFWpPz8J++7iRu2B6eAKlK/kujrLthwaD/7a6J5w90TusnH1JMAc+gNrql4aspOUG/RrsxUKmPzhHgP4B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/zIPazqvdvFmLNVHMIZrwiQ2tIKtGh6PDVH+85ew3caqVt2BsDv5rOcu3G9srQWd7NmgtzCRUXLYknYRSwtH9oUtkqyN3CfP20xQ1faXQl4MEmjQehWR6GmGnkdpYNQYeIG408yAX7uCZmYUic9juOfb+Re28+OVOB+scYK4DaPcBe+5wmji9gymtkMpKo4UKqCz7yxzuN8VIlx9yNozpRJpNaWHtaZVEqP45n2JemTlYBSmNIK1FuSYAUQ1yBLnKxevrjayd+h2i8PjdB3YY6b0nr3JuOXGpPMyh4V2dslpR3DFEvgpsBLqhqLDOWP4yEvIL6f21PpA7/8B")),YV=Math.log2||(e=>Math.log(e)/Math.LN2),Pf=e=>YV(e)+1|0,KV=Pf(Va(Hs).categories.length-1),QS=Pf(Va(Hs).combiningClasses.length-1),Ag=Pf(Va(Hs).scripts.length-1),Tg=Pf(Va(Hs).eaw.length-1),Ig=10,XV=QS+Ag+Tg+Ig,JV=Ag+Tg+Ig,QV=Tg+Ig,tL=(1<<KV)-1,eL=(1<<QS)-1,iL=(1<<Ag)-1;function Ff(e){const t=Eg.get(e);return Va(Hs).categories[t>>XV&tL]}function rL(e){const t=Eg.get(e);return Va(Hs).combiningClasses[t>>JV&eL]}function t_(e){const t=Eg.get(e);return Va(Hs).scripts[t>>QV&iL]}function e_(e){return Ff(e)==="Nd"}function i_(e){const t=Ff(e);return t==="Mn"||t==="Me"||t==="Mc"}var Dg=Ms(g4()),r_=Ms(qN()),Pg=Ms(YN()),nL=Ms(m4()),sL=Ms(iM());function Su(e,t,i,r){Object.defineProperty(e,t,{get:i,set:r,enumerable:!0,configurable:!0})}function Bf(e){return e&&e.__esModule?e.default:e}var _u={};Su(_u,"logErrors",()=>aL),Su(_u,"registerFormat",()=>Lo),Su(_u,"create",()=>n_),Su(_u,"defaultLanguage",()=>Nf),Su(_u,"setDefaultLanguage",()=>oL);var aL=!1,Fg=[];function Lo(e){Fg.push(e)}function n_(e,t){for(let i=0;i<Fg.length;i++){let r=Fg[i];if(r.probe(e)){let n=new r(new Di(e));return t?n.getFont(t):n}}throw new Error("Unknown font format")}var Nf="en";function oL(e="en"){Nf=e}function Fi(e,t,i){if(i.get){let r=i.get;i.get=function(){let n=r.call(this);return Object.defineProperty(this,t,{value:n}),n}}else if(typeof i.value=="function"){let r=i.value;return{get(){let n=new Map;function s(...a){let o=a.length>0?a[0]:"value";if(n.has(o))return n.get(o);let l=r.apply(this,a);return n.set(o,l),l}return Object.defineProperty(this,t,{value:s}),s}}}}var lL=new W({firstCode:w,entryCount:w,idDelta:st,idRangeOffset:w}),Bg=new W({startCharCode:$,endCharCode:$,glyphID:$}),uL=new W({startUnicodeValue:Gs,additionalCount:vt}),cL=new W({unicodeValue:Gs,glyphID:w}),dL=new V(uL,$),fL=new V(cL,$),hL=new W({varSelector:Gs,defaultUVS:new L($,dL,{type:"parent"}),nonDefaultUVS:new L($,fL,{type:"parent"})}),pL=new ge(w,{0:{length:w,language:w,codeMap:new Me(vt,256)},2:{length:w,language:w,subHeaderKeys:new V(w,256),subHeaderCount:e=>Math.max.apply(Math,e.subHeaderKeys),subHeaders:new Me(lL,"subHeaderCount"),glyphIndexArray:new Me(w,"subHeaderCount")},4:{length:w,language:w,segCountX2:w,segCount:e=>e.segCountX2>>1,searchRange:w,entrySelector:w,rangeShift:w,endCode:new Me(w,"segCount"),reservedPad:new qe(w),startCode:new Me(w,"segCount"),idDelta:new Me(st,"segCount"),idRangeOffset:new Me(w,"segCount"),glyphIndexArray:new Me(w,e=>(e.length-e._currentOffset)/2)},6:{length:w,language:w,firstCode:w,entryCount:w,glyphIndices:new Me(w,"entryCount")},8:{reserved:new qe(w),length:$,language:w,is32:new Me(vt,8192),nGroups:$,groups:new Me(Bg,"nGroups")},10:{reserved:new qe(w),length:$,language:$,firstCode:$,entryCount:$,glyphIndices:new Me(w,"numChars")},12:{reserved:new qe(w),length:$,language:$,nGroups:$,groups:new Me(Bg,"nGroups")},13:{reserved:new qe(w),length:$,language:$,nGroups:$,groups:new Me(Bg,"nGroups")},14:{length:$,numRecords:$,varSelectors:new Me(hL,"numRecords")}}),mL=new W({platformID:w,encodingID:w,table:new L($,pL,{type:"parent",lazy:!0})}),gL=new W({version:w,numSubtables:w,tables:new V(mL,"numSubtables")}),yL=new W({version:Oa,revision:Oa,checkSumAdjustment:$,magicNumber:$,flags:w,unitsPerEm:w,created:new V(Oa,2),modified:new V(Oa,2),xMin:st,yMin:st,xMax:st,yMax:st,macStyle:new nn(w,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:w,fontDirectionHint:st,indexToLocFormat:st,glyphDataFormat:st}),bL=new W({version:Oa,ascent:st,descent:st,lineGap:st,advanceWidthMax:w,minLeftSideBearing:st,minRightSideBearing:st,xMaxExtent:st,caretSlopeRise:st,caretSlopeRun:st,caretOffset:st,reserved:new qe(st,4),metricDataFormat:st,numberOfMetrics:w}),vL=new W({advance:w,bearing:st}),wL=new W({metrics:new Me(vL,e=>e.parent.hhea.numberOfMetrics),bearings:new Me(st,e=>e.parent.maxp.numGlyphs-e.parent.hhea.numberOfMetrics)}),xL=new W({version:Oa,numGlyphs:w,maxPoints:w,maxContours:w,maxComponentPoints:w,maxComponentContours:w,maxZones:w,maxTwilightPoints:w,maxStorage:w,maxFunctionDefs:w,maxInstructionDefs:w,maxStackElements:w,maxSizeOfInstructions:w,maxComponentElements:w,maxComponentDepth:w});function s_(e,t,i=0){return e===1&&a_[i]?a_[i]:_L[e][t]}var CL=new Set(["x-mac-roman","x-mac-cyrillic","iso-8859-6","iso-8859-8"]),kL={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},Ng=new Map;function SL(e){let t=Ng.get(e);if(t)return t;let i=kL[e];if(i){let r=new Map;for(let n=0;n<i.length;n++)r.set(i.charCodeAt(n),128+n);return Ng.set(e,r),r}if(CL.has(e)){let r=new TextDecoder(e),n=new Uint8Array(128);for(let o=0;o<128;o++)n[o]=128+o;let s=new Map,a=r.decode(n);for(let o=0;o<128;o++)s.set(a.charCodeAt(o),128+o);return Ng.set(e,s),s}}var _L=[["utf-16be","utf-16be","utf-16be","utf-16be","utf-16be","utf-16be","utf-16be"],["x-mac-roman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","x-mac-greek","x-mac-cyrillic","x-mac-symbol","x-mac-devanagari","x-mac-gurmukhi","x-mac-gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","iso-8859-11","Laotian","Georgian","Armenian","gbk","Tibetan","Mongolian","Geez","x-mac-ce","Vietnamese","Sindhi"],["ascii",null,"iso-8859-1"],["symbol","utf-16be","shift-jis","gb18030","big5","euc-kr","johab",null,null,null,"utf-16be"]],a_={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"},EL=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],o_=new W({platformID:w,encodingID:w,languageID:w,nameID:w,length:w,string:new L(w,new Fe("length",e=>s_(e.platformID,e.encodingID,e.languageID)),{type:"parent",relativeTo:e=>e.parent.stringOffset,allowNull:!1})}),AL=new W({length:w,tag:new L(w,new Fe("length","utf16be"),{type:"parent",relativeTo:e=>e.stringOffset})}),Mf=new ge(w,{0:{count:w,stringOffset:w,records:new V(o_,"count")},1:{count:w,stringOffset:w,records:new V(o_,"count"),langTagCount:w,langTags:new V(AL,"langTagCount")}}),TL=Mf,Mg=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];Mf.process=function(e){var t={};for(let i of this.records){let r=EL[i.platformID][i.languageID];r==null&&this.langTags!=null&&i.languageID>=32768&&(r=this.langTags[i.languageID-32768].tag),r==null&&(r=i.platformID+"-"+i.languageID);let n=i.nameID>=256?"fontFeatures":Mg[i.nameID]||i.nameID;t[n]==null&&(t[n]={});let s=t[n];i.nameID>=256&&(s=s[i.nameID]||(s[i.nameID]={})),(typeof i.string=="string"||typeof s[r]!="string")&&(s[r]=i.string)}this.records=t},Mf.preEncode=function(){if(Array.isArray(this.records))return;this.version=0;let e=[];for(let t in this.records){let i=this.records[t];t!=="fontFeatures"&&(e.push({platformID:3,encodingID:1,languageID:1033,nameID:Mg.indexOf(t),length:i.en.length*2,string:i.en}),t==="postscriptName"&&e.push({platformID:1,encodingID:0,languageID:0,nameID:Mg.indexOf(t),length:i.en.length,string:i.en}))}this.records=e,this.count=e.length,this.stringOffset=Mf.size(this,null,!1)};var l_=new ge(w,{header:{xAvgCharWidth:st,usWeightClass:w,usWidthClass:w,fsType:new nn(w,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:st,ySubscriptYSize:st,ySubscriptXOffset:st,ySubscriptYOffset:st,ySuperscriptXSize:st,ySuperscriptYSize:st,ySuperscriptXOffset:st,ySuperscriptYOffset:st,yStrikeoutSize:st,yStrikeoutPosition:st,sFamilyClass:st,panose:new V(vt,10),ulCharRange:new V($,4),vendorID:new Fe(4),fsSelection:new nn(w,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:w,usLastCharIndex:w},0:{},1:{typoAscender:st,typoDescender:st,typoLineGap:st,winAscent:w,winDescent:w,codePageRange:new V($,2)},2:{typoAscender:st,typoDescender:st,typoLineGap:st,winAscent:w,winDescent:w,codePageRange:new V($,2),xHeight:st,capHeight:st,defaultChar:w,breakChar:w,maxContent:w},5:{typoAscender:st,typoDescender:st,typoLineGap:st,winAscent:w,winDescent:w,codePageRange:new V($,2),xHeight:st,capHeight:st,defaultChar:w,breakChar:w,maxContent:w,usLowerOpticalPointSize:w,usUpperOpticalPointSize:w}}),zg=l_.versions;zg[3]=zg[4]=zg[2];var IL=l_,DL=new ge(li,{header:{italicAngle:li,underlinePosition:st,underlineThickness:st,isFixedPitch:$,minMemType42:$,maxMemType42:$,minMemType1:$,maxMemType1:$},1:{},2:{numberOfGlyphs:w,glyphNameIndex:new V(w,"numberOfGlyphs"),names:new V(new Fe(vt))},2.5:{numberOfGlyphs:w,offsets:new V(vt,"numberOfGlyphs")},3:{},4:{map:new V($,e=>e.parent.maxp.numGlyphs)}}),PL=new W({controlValues:new V(st)}),FL=new W({instructions:new V(vt)}),Og=new ge("head.indexToLocFormat",{0:{offsets:new V(w)},1:{offsets:new V($)}});Og.process=function(){if(this.version===0&&!this._processed){for(let e=0;e<this.offsets.length;e++)this.offsets[e]<<=1;this._processed=!0}},Og.preEncode=function(){if(this.version===0&&this._processed!==!1){for(let e=0;e<this.offsets.length;e++)this.offsets[e]>>>=1;this._processed=!1}};var BL=Og,NL=new W({controlValueProgram:new V(vt)}),ML=new V(new _n),En=class{getCFFVersion(e){for(;e&&!e.hdrSize;)e=e.parent;return e?e.version:-1}decode(e,t){let r=this.getCFFVersion(t)>=2?e.readUInt32BE():e.readUInt16BE();if(r===0)return[];let n=e.readUInt8(),s;if(n===1)s=vt;else if(n===2)s=w;else if(n===3)s=Gs;else if(n===4)s=$;else throw new Error(`Bad offset size in CFFIndex: ${n} ${e.pos}`);let a=[],o=e.pos+(r+1)*n-1,l=s.decode(e);for(let u=0;u<r;u++){let c=s.decode(e);if(this.type!=null){let d=e.pos;e.pos=o+l,t.length=c-l,a.push(this.type.decode(e,t)),e.pos=d}else a.push({offset:o+l,length:c-l});l=c}return e.pos=o+l,a}size(e,t){let i=2;if(e.length===0)return i;let r=this.type||new _n,n=1;for(let a=0;a<e.length;a++){let o=e[a];n+=r.size(o,t)}let s;if(n<=255)s=vt;else if(n<=65535)s=w;else if(n<=16777215)s=Gs;else if(n<=4294967295)s=$;else throw new Error("Bad offset in CFFIndex");return i+=1+s.size()*(e.length+1),i+=n-1,i}encode(e,t,i){if(e.writeUInt16BE(t.length),t.length===0)return;let r=this.type||new _n,n=[],s=1;for(let o of t){let l=r.size(o,i);n.push(l),s+=l}let a;if(s<=255)a=vt;else if(s<=65535)a=w;else if(s<=16777215)a=Gs;else if(s<=4294967295)a=$;else throw new Error("Bad offset in CFFIndex");e.writeUInt8(a.size()),s=1,a.encode(e,s);for(let o of n)s+=o,a.encode(e,s);for(let o of t)r.encode(e,o,i)}constructor(e){this.type=e}},Eu=15,u_=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],c_={".":10,E:11,"E-":12,"-":14},Rg=class{static decode(e,t){if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return(t-247)*256+e.readUInt8()+108;if(251<=t&&t<=254)return-(t-251)*256-e.readUInt8()-108;if(t===28)return e.readInt16BE();if(t===29)return e.readInt32BE();if(t===30){let i="";for(;;){let r=e.readUInt8(),n=r>>4;if(n===Eu)break;i+=u_[n];let s=r&15;if(s===Eu)break;i+=u_[s]}return parseFloat(i)}return null}static size(e){if(e.forceLarge&&(e=32768),(e|0)!==e){let t=""+e;return 1+Math.ceil((t.length+1)/2)}else return-107<=e&&e<=107?1:108<=e&&e<=1131||-1131<=e&&e<=-108?2:-32768<=e&&e<=32767?3:5}static encode(e,t){let i=Number(t);if(t.forceLarge)return e.writeUInt8(29),e.writeInt32BE(i);if((i|0)!==i){e.writeUInt8(30);let n=""+i;for(let s=0;s<n.length;s+=2){let a=n[s],o=c_[a]||+a;if(s===n.length-1)var r=Eu;else{let l=n[s+1];var r=c_[l]||+l}e.writeUInt8(o<<4|r&15)}if(r!==Eu)return e.writeUInt8(Eu<<4)}else return-107<=i&&i<=107?e.writeUInt8(i+139):108<=i&&i<=1131?(i-=108,e.writeUInt8((i>>8)+247),e.writeUInt8(i&255)):-1131<=i&&i<=-108?(i=-i-108,e.writeUInt8((i>>8)+251),e.writeUInt8(i&255)):-32768<=i&&i<=32767?(e.writeUInt8(28),e.writeInt16BE(i)):(e.writeUInt8(29),e.writeInt32BE(i))}},zf=class{decodeOperands(e,t,i,r){if(Array.isArray(e))return r.map((n,s)=>this.decodeOperands(e[s],t,i,[n]));if(e.decode!=null)return e.decode(t,i,r);switch(e){case"number":case"offset":case"sid":return r[0];case"boolean":return!!r[0];default:return r}}encodeOperands(e,t,i,r){return Array.isArray(e)?r.map((n,s)=>this.encodeOperands(e[s],t,i,n)[0]):e.encode!=null?e.encode(t,r,i):typeof r=="number"?[r]:typeof r=="boolean"?[+r]:Array.isArray(r)?r:[r]}decode(e,t){let i=e.pos+t.length,r={},n=[];Object.defineProperties(r,{parent:{value:t},_startOffset:{value:e.pos}});for(let s in this.fields){let a=this.fields[s];r[a[1]]=a[3]}for(;e.pos<i;){let s=e.readUInt8();if(s<28){s===12&&(s=s<<8|e.readUInt8());let a=this.fields[s];if(!a)throw new Error(`Unknown operator ${s}`);let o=this.decodeOperands(a[2],e,r,n);o!=null&&(o instanceof Cg?Object.defineProperty(r,a[1],o):r[a[1]]=o),n=[]}else n.push(Rg.decode(e,s))}return r}size(e,t,i=!0){let r={parent:t,val:e,pointerSize:0,startOffset:t.startOffset||0},n=0;for(let s in this.fields){let a=this.fields[s],o=e[a[1]];if(o==null||(0,JS.default)(o,a[3]))continue;let l=this.encodeOperands(a[2],null,r,o);for(let c of l)n+=Rg.size(c);let u=Array.isArray(a[0])?a[0]:[a[0]];n+=u.length}return i&&(n+=r.pointerSize),n}encode(e,t,i){let r={pointers:[],startOffset:e.pos,parent:i,val:t,pointerSize:0};r.pointerOffset=e.pos+this.size(t,r,!1);for(let s of this.ops){let a=t[s[1]];if(a==null||(0,JS.default)(a,s[3]))continue;let o=this.encodeOperands(s[2],e,r,a);for(let u of o)Rg.encode(e,u);let l=Array.isArray(s[0])?s[0]:[s[0]];for(let u of l)e.writeUInt8(u)}let n=0;for(;n<r.pointers.length;){let s=r.pointers[n++];s.type.encode(e,s.val,s.parent)}}constructor(e=[]){this.ops=e,this.fields={};for(let t of e){let i=Array.isArray(t[0])?t[0][0]<<8|t[0][1]:t[0];this.fields[i]=t}}},sn=class extends L{decode(e,t,i){return this.offsetType={decode:()=>i[0]},super.decode(e,t,i)}encode(e,t,i){if(!e)return this.offsetType={size:()=>0},this.size(t,i),[new d_(0)];let r=null;return this.offsetType={encode:(n,s)=>r=s},super.encode(e,t,i),[new d_(r)]}constructor(e,t={}){t.type==null&&(t.type="global"),super(null,e,t)}},d_=class{valueOf(){return this.val}constructor(e){this.val=e,this.forceLarge=!0}},zL=class{static decode(e,t,i){let r=i.pop();for(;i.length>r;)i.pop()}},Vg=new zf([[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","number",.039625],[[12,10],"BlueShift","number",7],[[12,11],"BlueFuzz","number",1],[10,"StdHW","number",null],[11,"StdVW","number",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","boolean",!1],[[12,17],"LanguageGroup","number",0],[[12,18],"ExpansionFactor","number",.06],[[12,19],"initialRandomSeed","number",0],[20,"defaultWidthX","number",0],[21,"nominalWidthX","number",0],[22,"vsindex","number",0],[23,"blend",zL,null],[19,"Subrs",new sn(new En,{type:"local"}),null]]),Of=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],f_=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],OL=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],h_=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],RL=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],VL=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"],p_=new W({reserved:new qe(w),reqFeatureIndex:w,featureCount:w,featureIndexes:new V(w,"featureCount")}),LL=new W({tag:new Fe(4),langSys:new L(w,p_,{type:"parent"})}),$L=new W({defaultLangSys:new L(w,p_),count:w,langSysRecords:new V(LL,"count")}),UL=new W({tag:new Fe(4),script:new L(w,$L,{type:"parent"})}),m_=new V(UL,w),ZL=new W({version:w,nameID:w}),g_=new W({featureParams:new L(w,ZL),lookupCount:w,lookupListIndexes:new V(w,"lookupCount")}),jL=new W({tag:new Fe(4),feature:new L(w,g_,{type:"parent"})}),y_=new V(jL,w),WL=new W({markAttachmentType:vt,flags:new nn(vt,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function Rf(e){let t=new W({lookupType:w,flags:WL,subTableCount:w,subTables:new V(new L(w,e),"subTableCount"),markFilteringSet:new Df(w,i=>i.flags.flags.useMarkFilteringSet)});return new Me(new L(w,t),w)}var GL=new W({start:w,end:w,startCoverageIndex:w}),Be=new ge(w,{1:{glyphCount:w,glyphs:new V(w,"glyphCount")},2:{rangeCount:w,rangeRecords:new V(GL,"rangeCount")}}),HL=new W({start:w,end:w,class:w}),qs=new ge(w,{1:{startGlyph:w,glyphCount:w,classValueArray:new V(w,"glyphCount")},2:{classRangeCount:w,classRangeRecord:new V(HL,"classRangeCount")}}),Ys=new W({a:w,b:w,deltaFormat:w}),Au=new W({sequenceIndex:w,lookupListIndex:w}),qL=new W({glyphCount:w,lookupCount:w,input:new V(w,e=>e.glyphCount-1),lookupRecords:new V(Au,"lookupCount")}),YL=new V(new L(w,qL),w),KL=new W({glyphCount:w,lookupCount:w,classes:new V(w,e=>e.glyphCount-1),lookupRecords:new V(Au,"lookupCount")}),XL=new V(new L(w,KL),w),b_=new ge(w,{1:{coverage:new L(w,Be),ruleSetCount:w,ruleSets:new V(new L(w,YL),"ruleSetCount")},2:{coverage:new L(w,Be),classDef:new L(w,qs),classSetCnt:w,classSet:new V(new L(w,XL),"classSetCnt")},3:{glyphCount:w,lookupCount:w,coverages:new V(new L(w,Be),"glyphCount"),lookupRecords:new V(Au,"lookupCount")}}),JL=new W({backtrackGlyphCount:w,backtrack:new V(w,"backtrackGlyphCount"),inputGlyphCount:w,input:new V(w,e=>e.inputGlyphCount-1),lookaheadGlyphCount:w,lookahead:new V(w,"lookaheadGlyphCount"),lookupCount:w,lookupRecords:new V(Au,"lookupCount")}),v_=new V(new L(w,JL),w),w_=new ge(w,{1:{coverage:new L(w,Be),chainCount:w,chainRuleSets:new V(new L(w,v_),"chainCount")},2:{coverage:new L(w,Be),backtrackClassDef:new L(w,qs),inputClassDef:new L(w,qs),lookaheadClassDef:new L(w,qs),chainCount:w,chainClassSet:new V(new L(w,v_),"chainCount")},3:{backtrackGlyphCount:w,backtrackCoverage:new V(new L(w,Be),"backtrackGlyphCount"),inputGlyphCount:w,inputCoverage:new V(new L(w,Be),"inputGlyphCount"),lookaheadGlyphCount:w,lookaheadCoverage:new V(new L(w,Be),"lookaheadGlyphCount"),lookupCount:w,lookupRecords:new V(Au,"lookupCount")}}),Tu=new Ra(16,"BE",14),QL=new W({startCoord:Tu,peakCoord:Tu,endCoord:Tu}),t$=new W({axisCount:w,regionCount:w,variationRegions:new V(new V(QL,"axisCount"),"regionCount")}),e$=new W({shortDeltas:new V(st,e=>e.parent.shortDeltaCount),regionDeltas:new V(bi,e=>e.parent.regionIndexCount-e.parent.shortDeltaCount),deltas:e=>e.shortDeltas.concat(e.regionDeltas)}),i$=new W({itemCount:w,shortDeltaCount:w,regionIndexCount:w,regionIndexes:new V(w,"regionIndexCount"),deltaSets:new V(e$,"itemCount")}),Vf=new W({format:w,variationRegionList:new L($,t$),variationDataCount:w,itemVariationData:new V(new L($,i$),"variationDataCount")}),r$=new ge(w,{1:{axisIndex:w,axisIndex:w,filterRangeMinValue:Tu,filterRangeMaxValue:Tu}}),n$=new W({conditionCount:w,conditionTable:new V(new L($,r$),"conditionCount")}),s$=new W({featureIndex:w,alternateFeatureTable:new L($,g_,{type:"parent"})}),a$=new W({version:li,substitutionCount:w,substitutions:new V(s$,"substitutionCount")}),o$=new W({conditionSet:new L($,n$,{type:"parent"}),featureTableSubstitution:new L($,a$,{type:"parent"})}),x_=new W({majorVersion:w,minorVersion:w,featureVariationRecordCount:$,featureVariationRecords:new V(o$,"featureVariationRecordCount")}),C_=class{decode(e,t,i){return this.predefinedOps[i[0]]?this.predefinedOps[i[0]]:this.type.decode(e,t,i)}size(e,t){return this.type.size(e,t)}encode(e,t,i){let r=this.predefinedOps.indexOf(t);return r!==-1?r:this.type.encode(e,t,i)}constructor(e,t){this.predefinedOps=e,this.type=t}},l$=class extends Pe{decode(e){return vt.decode(e)&127}constructor(){super("UInt8")}},k_=new W({first:w,nLeft:vt}),u$=new W({first:w,nLeft:w}),c$=new ge(new l$,{0:{nCodes:vt,codes:new V(vt,"nCodes")},1:{nRanges:vt,ranges:new V(k_,"nRanges")}}),d$=new C_([f_,OL],new sn(c$,{lazy:!0})),S_=class extends V{decode(e,t){let i=Sn(this.length,e,t),r=0,n=[];for(;r<i;){let s=this.type.decode(e,t);s.offset=r,r+=s.nLeft+1,n.push(s)}return n}},f$=new ge(vt,{0:{glyphs:new V(w,e=>e.parent.CharStrings.length-1)},1:{ranges:new S_(k_,e=>e.parent.CharStrings.length-1)},2:{ranges:new S_(u$,e=>e.parent.CharStrings.length-1)}}),h$=new C_([h_,RL,VL],new sn(f$,{lazy:!0})),p$=new W({first:w,fd:vt}),m$=new W({first:$,fd:w}),__=new ge(vt,{0:{fds:new V(vt,e=>e.parent.CharStrings.length)},3:{nRanges:w,ranges:new V(p$,"nRanges"),sentinel:w},4:{nRanges:$,ranges:new V(m$,"nRanges"),sentinel:$}}),Lg=new sn(Vg),E_=class{decode(e,t,i){return t.length=i[0],Lg.decode(e,t,[i[1]])}size(e,t){return[Vg.size(e,t,!1),Lg.size(e,t)[0]]}encode(e,t,i){return[Vg.size(t,i,!1),Lg.encode(e,t,i)[0]]}},A_=new zf([[18,"Private",new E_,null],[[12,38],"FontName","sid",null],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[[12,5],"PaintType","number",0]]),g$=new zf([[[12,30],"ROS",["sid","sid","number"],null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","boolean",!1],[[12,2],"ItalicAngle","number",0],[[12,3],"UnderlinePosition","number",-100],[[12,4],"UnderlineThickness","number",50],[[12,5],"PaintType","number",0],[[12,6],"CharstringType","number",2],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[13,"UniqueID","number",null],[5,"FontBBox","array",[0,0,0,0]],[[12,8],"StrokeWidth","number",0],[14,"XUID","array",null],[15,"charset",h$,h_],[16,"Encoding",d$,f_],[17,"CharStrings",new sn(new En),null],[18,"Private",new E_,null],[[12,20],"SyntheticBase","number",null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","number",0],[[12,32],"CIDFontRevision","number",0],[[12,33],"CIDFontType","number",0],[[12,34],"CIDCount","number",8720],[[12,35],"UIDBase","number",null],[[12,37],"FDSelect",new sn(__),null],[[12,36],"FDArray",new sn(new En(A_)),null],[[12,38],"FontName","sid",null]]),y$=new W({length:w,itemVariationStore:Vf}),b$=new zf([[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[17,"CharStrings",new sn(new En),null],[[12,37],"FDSelect",new sn(__),null],[[12,36],"FDArray",new sn(new En(A_)),null],[24,"vstore",new sn(y$),null],[25,"maxstack","number",193]]),v$=new ge(jV,{1:{hdrSize:vt,offSize:vt,nameIndex:new En(new Fe("length")),topDictIndex:new En(g$),stringIndex:new En(new Fe("length")),globalSubrIndex:new En},2:{hdrSize:vt,length:w,topDict:b$,globalSubrIndex:new En}}),T_=v$,w$=class KI{static decode(t){return new KI(t)}decode(){this.stream.pos;let t=T_.decode(this.stream);for(let i in t){let r=t[i];this[i]=r}if(this.version<2){if(this.topDictIndex.length!==1)throw new Error("Only a single font is allowed in CFF");this.topDict=this.topDictIndex[0]}return this.isCIDFont=this.topDict.ROS!=null,this}string(t){return this.version>=2?null:t<Of.length?Of[t]:this.stringIndex[t-Of.length]}get postscriptName(){return this.version<2?this.nameIndex[0]:null}get fullName(){return this.string(this.topDict.FullName)}get familyName(){return this.string(this.topDict.FamilyName)}getCharString(t){return this.stream.pos=this.topDict.CharStrings[t].offset,this.stream.readBuffer(this.topDict.CharStrings[t].length)}getGlyphName(t){if(this.version>=2||this.isCIDFont)return null;let{charset:i}=this.topDict;if(Array.isArray(i))return i[t];if(t===0)return".notdef";switch(t-=1,i.version){case 0:return this.string(i.glyphs[t]);case 1:case 2:for(let r=0;r<i.ranges.length;r++){let n=i.ranges[r];if(n.offset<=t&&t<=n.offset+n.nLeft)return this.string(n.first+(t-n.offset))}break}return null}fdForGlyph(t){if(!this.topDict.FDSelect)return null;switch(this.topDict.FDSelect.version){case 0:return this.topDict.FDSelect.fds[t];case 3:case 4:let{ranges:i}=this.topDict.FDSelect,r=0,n=i.length-1;for(;r<=n;){let s=r+n>>1;if(t<i[s].first)n=s-1;else if(s<n&&t>=i[s+1].first)r=s+1;else return i[s].fd}default:throw new Error(`Unknown FDSelect version: ${this.topDict.FDSelect.version}`)}}privateDictForGlyph(t){if(this.topDict.FDSelect){let i=this.fdForGlyph(t);return this.topDict.FDArray[i]?this.topDict.FDArray[i].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private}constructor(t){this.stream=t,this.decode()}},I_=w$,x$=new W({glyphIndex:w,vertOriginY:st}),C$=new W({majorVersion:w,minorVersion:w,defaultVertOriginY:st,numVertOriginYMetrics:w,metrics:new V(x$,"numVertOriginYMetrics")}),$o=new W({height:vt,width:vt,horiBearingX:bi,horiBearingY:bi,horiAdvance:vt,vertBearingX:bi,vertBearingY:bi,vertAdvance:vt}),Lf=new W({height:vt,width:vt,bearingX:bi,bearingY:bi,advance:vt}),D_=new W({glyph:w,xOffset:bi,yOffset:bi}),P_=class{},$g=class{};new ge("version",{1:{metrics:Lf,data:P_},2:{metrics:Lf,data:$g},5:{data:$g},6:{metrics:$o,data:P_},7:{metrics:$o,data:$g},8:{metrics:Lf,pad:new qe(vt),numComponents:w,components:new V(D_,"numComponents")},9:{metrics:$o,pad:new qe(vt),numComponents:w,components:new V(D_,"numComponents")},17:{metrics:Lf,dataLen:$,data:new _n("dataLen")},18:{metrics:$o,dataLen:$,data:new _n("dataLen")},19:{dataLen:$,data:new _n("dataLen")}});var F_=new W({ascender:bi,descender:bi,widthMax:vt,caretSlopeNumerator:bi,caretSlopeDenominator:bi,caretOffset:bi,minOriginSB:bi,minAdvanceSB:bi,maxBeforeBL:bi,minAfterBL:bi,pad:new qe(bi,2)}),k$=new W({glyphCode:w,offset:w}),S$=new ge(w,{header:{imageFormat:w,imageDataOffset:$},1:{offsetArray:new V($,e=>e.parent.lastGlyphIndex-e.parent.firstGlyphIndex+1)},2:{imageSize:$,bigMetrics:$o},3:{offsetArray:new V(w,e=>e.parent.lastGlyphIndex-e.parent.firstGlyphIndex+1)},4:{numGlyphs:$,glyphArray:new V(k$,e=>e.numGlyphs+1)},5:{imageSize:$,bigMetrics:$o,numGlyphs:$,glyphCodeArray:new V(w,"numGlyphs")}}),_$=new W({firstGlyphIndex:w,lastGlyphIndex:w,subtable:new L($,S$)}),E$=new W({indexSubTableArray:new L($,new V(_$,1),{type:"parent"}),indexTablesSize:$,numberOfIndexSubTables:$,colorRef:$,hori:F_,vert:F_,startGlyphIndex:w,endGlyphIndex:w,ppemX:vt,ppemY:vt,bitDepth:vt,flags:new nn(vt,["horizontal","vertical"])}),A$=new W({version:$,numSizes:$,sizes:new V(E$,"numSizes")}),T$=new W({ppem:w,resolution:w,imageOffsets:new V(new L($,"void"),e=>e.parent.parent.maxp.numGlyphs+1)}),I$=new W({version:w,flags:new nn(w,["renderOutlines"]),numImgTables:$,imageTables:new V(new L($,T$),"numImgTables")}),D$=new W({gid:w,paletteIndex:w}),P$=new W({gid:w,firstLayerIndex:w,numLayers:w}),F$=new W({version:w,numBaseGlyphRecords:w,baseGlyphRecord:new L($,new V(P$,"numBaseGlyphRecords")),layerRecords:new L($,new V(D$,"numLayerRecords"),{lazy:!0}),numLayerRecords:w}),B$=new W({blue:vt,green:vt,red:vt,alpha:vt}),N$=new ge(w,{header:{numPaletteEntries:w,numPalettes:w,numColorRecords:w,colorRecords:new L($,new V(B$,"numColorRecords")),colorRecordIndices:new V(w,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new L($,new V($,"numPalettes")),offsetPaletteLabelArray:new L($,new V(w,"numPalettes")),offsetPaletteEntryLabelArray:new L($,new V(w,"numPaletteEntries"))}}),Iu=new ge(w,{1:{coordinate:st},2:{coordinate:st,referenceGlyph:w,baseCoordPoint:w},3:{coordinate:st,deviceTable:new L(w,Ys)}}),M$=new W({defaultIndex:w,baseCoordCount:w,baseCoords:new V(new L(w,Iu),"baseCoordCount")}),z$=new W({tag:new Fe(4),minCoord:new L(w,Iu,{type:"parent"}),maxCoord:new L(w,Iu,{type:"parent"})}),B_=new W({minCoord:new L(w,Iu),maxCoord:new L(w,Iu),featMinMaxCount:w,featMinMaxRecords:new V(z$,"featMinMaxCount")}),O$=new W({tag:new Fe(4),minMax:new L(w,B_,{type:"parent"})}),R$=new W({baseValues:new L(w,M$),defaultMinMax:new L(w,B_),baseLangSysCount:w,baseLangSysRecords:new V(O$,"baseLangSysCount")}),V$=new W({tag:new Fe(4),script:new L(w,R$,{type:"parent"})}),L$=new V(V$,w),$$=new V(new Fe(4),w),N_=new W({baseTagList:new L(w,$$),baseScriptList:new L(w,L$)}),U$=new ge($,{header:{horizAxis:new L(w,N_),vertAxis:new L(w,N_)},65536:{},65537:{itemVariationStore:new L($,Vf)}}),Z$=new V(w,w),j$=new W({coverage:new L(w,Be),glyphCount:w,attachPoints:new V(new L(w,Z$),"glyphCount")}),W$=new ge(w,{1:{coordinate:st},2:{caretValuePoint:w},3:{coordinate:st,deviceTable:new L(w,Ys)}}),G$=new V(new L(w,W$),w),H$=new W({coverage:new L(w,Be),ligGlyphCount:w,ligGlyphs:new V(new L(w,G$),"ligGlyphCount")}),M_=new W({markSetTableFormat:w,markSetCount:w,coverage:new V(new L($,Be),"markSetCount")}),q$=new ge($,{header:{glyphClassDef:new L(w,qs),attachList:new L(w,j$),ligCaretList:new L(w,H$),markAttachClassDef:new L(w,qs)},65536:{},65538:{markGlyphSetsDef:new L(w,M_)},65539:{markGlyphSetsDef:new L(w,M_),itemVariationStore:new L($,Vf)}}),Uo=new nn(w,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),Y$={xPlacement:st,yPlacement:st,xAdvance:st,yAdvance:st,xPlaDevice:new L(w,Ys,{type:"global",relativeTo:e=>e.rel}),yPlaDevice:new L(w,Ys,{type:"global",relativeTo:e=>e.rel}),xAdvDevice:new L(w,Ys,{type:"global",relativeTo:e=>e.rel}),yAdvDevice:new L(w,Ys,{type:"global",relativeTo:e=>e.rel})},Zo=class{buildStruct(e){let t=e;for(;!t[this.key]&&t.parent;)t=t.parent;if(!t[this.key])return;let i={};i.rel=()=>t._startOffset;let r=t[this.key];for(let n in r)r[n]&&(i[n]=Y$[n]);return new W(i)}size(e,t){return this.buildStruct(t).size(e,t)}decode(e,t){let i=this.buildStruct(t).decode(e,t);return delete i.rel,i}constructor(e="valueFormat"){this.key=e}},K$=new W({secondGlyph:w,value1:new Zo("valueFormat1"),value2:new Zo("valueFormat2")}),X$=new V(K$,w),J$=new W({value1:new Zo("valueFormat1"),value2:new Zo("valueFormat2")}),Du=new ge(w,{1:{xCoordinate:st,yCoordinate:st},2:{xCoordinate:st,yCoordinate:st,anchorPoint:w},3:{xCoordinate:st,yCoordinate:st,xDeviceTable:new L(w,Ys),yDeviceTable:new L(w,Ys)}}),Q$=new W({entryAnchor:new L(w,Du,{type:"parent"}),exitAnchor:new L(w,Du,{type:"parent"})}),tU=new W({class:w,markAnchor:new L(w,Du,{type:"parent"})}),Ug=new V(tU,w),eU=new V(new L(w,Du),e=>e.parent.classCount),z_=new V(eU,w),iU=new V(new L(w,Du),e=>e.parent.parent.classCount),rU=new V(iU,w),nU=new V(new L(w,rU),w),Pu=new ge("lookupType",{1:new ge(w,{1:{coverage:new L(w,Be),valueFormat:Uo,value:new Zo},2:{coverage:new L(w,Be),valueFormat:Uo,valueCount:w,values:new Me(new Zo,"valueCount")}}),2:new ge(w,{1:{coverage:new L(w,Be),valueFormat1:Uo,valueFormat2:Uo,pairSetCount:w,pairSets:new Me(new L(w,X$),"pairSetCount")},2:{coverage:new L(w,Be),valueFormat1:Uo,valueFormat2:Uo,classDef1:new L(w,qs),classDef2:new L(w,qs),class1Count:w,class2Count:w,classRecords:new Me(new Me(J$,"class2Count"),"class1Count")}}),3:{format:w,coverage:new L(w,Be),entryExitCount:w,entryExitRecords:new V(Q$,"entryExitCount")},4:{format:w,markCoverage:new L(w,Be),baseCoverage:new L(w,Be),classCount:w,markArray:new L(w,Ug),baseArray:new L(w,z_)},5:{format:w,markCoverage:new L(w,Be),ligatureCoverage:new L(w,Be),classCount:w,markArray:new L(w,Ug),ligatureArray:new L(w,nU)},6:{format:w,mark1Coverage:new L(w,Be),mark2Coverage:new L(w,Be),classCount:w,mark1Array:new L(w,Ug),mark2Array:new L(w,z_)},7:b_,8:w_,9:{posFormat:w,lookupType:w,extension:new L($,null)}});Pu.versions[9].extension.type=Pu;var sU=new ge($,{header:{scriptList:new L(w,m_),featureList:new L(w,y_),lookupList:new L(w,new Rf(Pu))},65536:{},65537:{featureVariations:new L($,x_)}}),O_=new V(w,w),aU=O_,oU=new W({glyph:w,compCount:w,components:new V(w,e=>e.compCount-1)}),lU=new V(new L(w,oU),w),Zg=new ge("lookupType",{1:new ge(w,{1:{coverage:new L(w,Be),deltaGlyphID:st},2:{coverage:new L(w,Be),glyphCount:w,substitute:new Me(w,"glyphCount")}}),2:{substFormat:w,coverage:new L(w,Be),count:w,sequences:new Me(new L(w,O_),"count")},3:{substFormat:w,coverage:new L(w,Be),count:w,alternateSet:new Me(new L(w,aU),"count")},4:{substFormat:w,coverage:new L(w,Be),count:w,ligatureSets:new Me(new L(w,lU),"count")},5:b_,6:w_,7:{substFormat:w,lookupType:w,extension:new L($,null)},8:{substFormat:w,coverage:new L(w,Be),backtrackCoverage:new V(new L(w,Be),"backtrackGlyphCount"),lookaheadGlyphCount:w,lookaheadCoverage:new V(new L(w,Be),"lookaheadGlyphCount"),glyphCount:w,substitutes:new V(w,"glyphCount")}});Zg.versions[7].extension.type=Zg;var uU=new ge($,{header:{scriptList:new L(w,m_),featureList:new L(w,y_),lookupList:new L(w,new Rf(Zg))},65536:{},65537:{featureVariations:new L($,x_)}}),Ks=new V(w,w),cU=new W({shrinkageEnableGSUB:new L(w,Ks),shrinkageDisableGSUB:new L(w,Ks),shrinkageEnableGPOS:new L(w,Ks),shrinkageDisableGPOS:new L(w,Ks),shrinkageJstfMax:new L(w,new Rf(Pu)),extensionEnableGSUB:new L(w,Ks),extensionDisableGSUB:new L(w,Ks),extensionEnableGPOS:new L(w,Ks),extensionDisableGPOS:new L(w,Ks),extensionJstfMax:new L(w,new Rf(Pu))}),R_=new V(new L(w,cU),w),dU=new W({tag:new Fe(4),jstfLangSys:new L(w,R_)}),fU=new W({extenderGlyphs:new L(w,new V(w,w)),defaultLangSys:new L(w,R_),langSysCount:w,langSysRecords:new V(dU,"langSysCount")}),hU=new W({tag:new Fe(4),script:new L(w,fU,{type:"parent"})}),pU=new W({version:$,scriptCount:w,scriptList:new V(hU,"scriptCount")}),mU=class{decode(e,t){switch(this.size(0,t)){case 1:return e.readUInt8();case 2:return e.readUInt16BE();case 3:return e.readUInt24BE();case 4:return e.readUInt32BE()}}size(e,t){return Sn(this._size,null,t)}constructor(e){this._size=e}},gU=new W({entry:new mU(e=>((e.parent.entryFormat&48)>>4)+1),outerIndex:e=>e.entry>>(e.parent.entryFormat&15)+1,innerIndex:e=>e.entry&(1<<(e.parent.entryFormat&15)+1)-1}),jg=new W({entryFormat:w,mapCount:w,mapData:new V(gU,"mapCount")}),yU=new W({majorVersion:w,minorVersion:w,itemVariationStore:new L($,Vf),advanceWidthMapping:new L($,jg),LSBMapping:new L($,jg),RSBMapping:new L($,jg)}),bU=new W({format:$,length:$,offset:$}),vU=new W({reserved:new qe(w,2),cbSignature:$,signature:new _n("cbSignature")}),wU=new W({ulVersion:$,usNumSigs:w,usFlag:w,signatures:new V(bU,"usNumSigs"),signatureBlocks:new V(vU,"usNumSigs")}),xU=new W({rangeMaxPPEM:w,rangeGaspBehavior:new nn(w,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),CU=new W({version:w,numRanges:w,gaspRanges:new V(xU,"numRanges")}),kU=new W({pixelSize:vt,maximumWidth:vt,widths:new V(vt,e=>e.parent.parent.maxp.numGlyphs)}),SU=new W({version:w,numRecords:st,sizeDeviceRecord:Oa,records:new V(kU,"numRecords")}),_U=new W({left:w,right:w,value:st}),V_=new W({firstGlyph:w,nGlyphs:w,offsets:new V(w,"nGlyphs"),max:e=>e.offsets.length&&Math.max.apply(Math,e.offsets)}),EU=new W({off:e=>e._startOffset-e.parent.parent._startOffset,len:e=>((e.parent.leftTable.max-e.off)/e.parent.rowWidth+1)*(e.parent.rowWidth/2),values:new Me(st,"len")}),L_=new ge("format",{0:{nPairs:w,searchRange:w,entrySelector:w,rangeShift:w,pairs:new V(_U,"nPairs")},2:{rowWidth:w,leftTable:new L(w,V_,{type:"parent"}),rightTable:new L(w,V_,{type:"parent"}),array:new L(w,EU,{type:"parent"})},3:{glyphCount:w,kernValueCount:vt,leftClassCount:vt,rightClassCount:vt,flags:vt,kernValue:new V(st,"kernValueCount"),leftClass:new V(vt,"glyphCount"),rightClass:new V(vt,"glyphCount"),kernIndex:new V(vt,e=>e.leftClassCount*e.rightClassCount)}}),$_=new ge("version",{0:{subVersion:w,length:w,format:vt,coverage:new nn(vt,["horizontal","minimum","crossStream","override"]),subtable:L_,padding:new qe(vt,e=>e.length-e._currentOffset)},1:{length:$,coverage:new nn(vt,[null,null,null,null,null,"variation","crossStream","vertical"]),format:vt,tupleIndex:w,subtable:L_,padding:new qe(vt,e=>e.length-e._currentOffset)}}),AU=new ge(w,{0:{nTables:w,tables:new V($_,"nTables")},1:{reserved:new qe(w),nTables:$,tables:new V($_,"nTables")}}),TU=new W({version:w,numGlyphs:w,yPels:new V(vt,"numGlyphs")}),IU=new W({version:w,fontNumber:$,pitch:w,xHeight:w,style:w,typeFamily:w,capHeight:w,symbolSet:w,typeface:new Fe(16),characterComplement:new Fe(8),fileName:new Fe(6),strokeWeight:new Fe(1),widthType:new Fe(1),serifStyle:vt,reserved:new qe(vt)}),DU=new W({bCharSet:vt,xRatio:vt,yStartRatio:vt,yEndRatio:vt}),PU=new W({yPelHeight:w,yMax:st,yMin:st}),FU=new W({recs:w,startsz:vt,endsz:vt,entries:new V(PU,"recs")}),BU=new W({version:w,numRecs:w,numRatios:w,ratioRanges:new V(DU,"numRatios"),offsets:new V(w,"numRatios"),groups:new V(FU,"numRecs")}),NU=new W({version:w,ascent:st,descent:st,lineGap:st,advanceHeightMax:st,minTopSideBearing:st,minBottomSideBearing:st,yMaxExtent:st,caretSlopeRise:st,caretSlopeRun:st,caretOffset:st,reserved:new qe(st,4),metricDataFormat:st,numberOfMetrics:w}),MU=new W({advance:w,bearing:st}),zU=new W({metrics:new Me(MU,e=>e.parent.vhea.numberOfMetrics),bearings:new Me(st,e=>e.parent.maxp.numGlyphs-e.parent.vhea.numberOfMetrics)}),U_=new Ra(16,"BE",14),OU=new W({fromCoord:U_,toCoord:U_}),RU=new W({pairCount:w,correspondence:new V(OU,"pairCount")}),VU=new W({version:li,axisCount:$,segment:new V(RU,"axisCount")}),LU=class{getItem(e){if(this._items[e]==null){let t=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*e,this._items[e]=this.type.decode(this.stream,this.parent),this.stream.pos=t}return this._items[e]}inspect(){return`[UnboundedArray ${this.type.constructor.name}]`}constructor(e,t,i){this.type=e,this.stream=t,this.parent=i,this.base=this.stream.pos,this._items=[]}},An=class extends V{decode(e,t){return new LU(this.type,e,t)}constructor(e){super(e,0)}},Xs=function(e=w){class t{decode(o,l){return l=l.parent.parent,this.type.decode(o,l)}size(o,l){return l=l.parent.parent,this.type.size(o,l)}encode(o,l,u){return u=u.parent.parent,this.type.encode(o,l,u)}constructor(o){this.type=o}}e=new t(e);let i=new W({unitSize:w,nUnits:w,searchRange:w,entrySelector:w,rangeShift:w}),r=new W({lastGlyph:w,firstGlyph:w,value:e}),n=new W({lastGlyph:w,firstGlyph:w,values:new L(w,new V(e,a=>a.lastGlyph-a.firstGlyph+1),{type:"parent"})}),s=new W({glyph:w,value:e});return new ge(w,{0:{values:new An(e)},2:{binarySearchHeader:i,segments:new V(r,a=>a.binarySearchHeader.nUnits)},4:{binarySearchHeader:i,segments:new V(n,a=>a.binarySearchHeader.nUnits)},6:{binarySearchHeader:i,segments:new V(s,a=>a.binarySearchHeader.nUnits)},8:{firstGlyph:w,count:w,values:new V(e,"count")}})};function $f(e={},t=w){let i=Object.assign({newState:w,flags:w},e),r=new W(i),n=new An(new V(w,a=>a.nClasses));return new W({nClasses:$,classTable:new L($,new Xs(t)),stateArray:new L($,n),entryTable:new L($,new An(r))})}function $U(e={},t=w){let i=new W({version(){return 8},firstGlyph:w,values:new V(vt,w)}),r=Object.assign({newStateOffset:w,newState:o=>(o.newStateOffset-(o.parent.stateArray.base-o.parent._startOffset))/o.parent.nClasses,flags:w},e),n=new W(r),s=new An(new V(vt,o=>o.nClasses));return new W({nClasses:w,classTable:new L(w,i),stateArray:new L(w,s),entryTable:new L(w,new An(n))})}var UU=new ge("format",{0:{deltas:new V(st,32)},1:{deltas:new V(st,32),mappingData:new Xs(w)},2:{standardGlyph:w,controlPoints:new V(w,32)},3:{standardGlyph:w,controlPoints:new V(w,32),mappingData:new Xs(w)}}),ZU=new W({version:li,format:w,defaultBaseline:w,subtable:UU}),jU=new W({setting:w,nameIndex:st,name:e=>e.parent.parent.parent.name.records.fontFeatures[e.nameIndex]}),WU=new W({feature:w,nSettings:w,settingTable:new L($,new V(jU,"nSettings"),{type:"parent"}),featureFlags:new nn(vt,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:vt,nameIndex:st,name:e=>e.parent.parent.name.records.fontFeatures[e.nameIndex]}),GU=new W({version:li,featureNameCount:w,reserved1:new qe(w),reserved2:new qe($),featureNames:new V(WU,"featureNameCount")}),HU=new W({axisTag:new Fe(4),minValue:li,defaultValue:li,maxValue:li,flags:w,nameID:w,name:e=>e.parent.parent.name.records.fontFeatures[e.nameID]}),qU=new W({nameID:w,name:e=>e.parent.parent.name.records.fontFeatures[e.nameID],flags:w,coord:new V(li,e=>e.parent.axisCount),postscriptNameID:new Df(w,e=>e.parent.instanceSize-e._currentOffset>0)}),YU=new W({version:li,offsetToData:w,countSizePairs:w,axisCount:w,axisSize:w,instanceCount:w,instanceSize:w,axis:new V(HU,"axisCount"),instance:new V(qU,"instanceCount")}),KU=new Ra(16,"BE",14),XU=class{static decode(e,t){return t.flags?e.readUInt32BE():e.readUInt16BE()*2}},JU=new W({version:w,reserved:new qe(w),axisCount:w,globalCoordCount:w,globalCoords:new L($,new V(new V(KU,"axisCount"),"globalCoordCount")),glyphCount:w,flags:w,offsetToData:$,offsets:new V(new L(XU,"void",{relativeTo:e=>e.offsetToData,allowNull:!1}),e=>e.glyphCount+1)}),QU=JU,tZ=new W({length:w,coverage:w,subFeatureFlags:$,stateTable:new $U}),eZ=new W({justClass:$,beforeGrowLimit:li,beforeShrinkLimit:li,afterGrowLimit:li,afterShrinkLimit:li,growFlags:w,shrinkFlags:w}),iZ=new V(eZ,$),rZ=new ge("actionType",{0:{lowerLimit:li,upperLimit:li,order:w,glyphs:new V(w,w)},1:{addGlyph:w},2:{substThreshold:li,addGlyph:w,substGlyph:w},3:{},4:{variationAxis:$,minimumLimit:li,noStretchValue:li,maximumLimit:li},5:{flags:w,glyph:w}}),nZ=new W({actionClass:w,actionType:w,actionLength:$,actionData:rZ,padding:new qe(vt,e=>e.actionLength-e._currentOffset)}),sZ=new V(nZ,$),aZ=new W({lookupTable:new Xs(new L(w,sZ))}),Z_=new W({classTable:new L(w,tZ,{type:"parent"}),wdcOffset:w,postCompensationTable:new L(w,aZ,{type:"parent"}),widthDeltaClusters:new Xs(new L(w,iZ,{type:"parent",relativeTo:e=>e.wdcOffset}))}),oZ=new W({version:$,format:w,horizontal:new L(w,Z_),vertical:new L(w,Z_)}),lZ={action:w},uZ={markIndex:w,currentIndex:w},cZ={currentInsertIndex:w,markedInsertIndex:w},dZ=new W({items:new An(new L($,new Xs))}),fZ=new ge("type",{0:{stateTable:new $f},1:{stateTable:new $f(uZ),substitutionTable:new L($,dZ)},2:{stateTable:new $f(lZ),ligatureActions:new L($,new An($)),components:new L($,new An(w)),ligatureList:new L($,new An(w))},4:{lookupTable:new Xs},5:{stateTable:new $f(cZ),insertionActions:new L($,new An(w))}}),hZ=new W({length:$,coverage:Gs,type:vt,subFeatureFlags:$,table:fZ,padding:new qe(vt,e=>e.length-e._currentOffset)}),pZ=new W({featureType:w,featureSetting:w,enableFlags:$,disableFlags:$}),mZ=new W({defaultFlags:$,chainLength:$,nFeatureEntries:$,nSubtables:$,features:new V(pZ,"nFeatureEntries"),subtables:new V(hZ,"nSubtables")}),gZ=new W({version:w,unused:new qe(w),nChains:$,chains:new V(mZ,"nChains")}),yZ=new W({left:st,top:st,right:st,bottom:st}),bZ=new W({version:li,format:w,lookupTable:new Xs(yZ)}),ie={},Uf=ie;ie.cmap=gL,ie.head=yL,ie.hhea=bL,ie.hmtx=wL,ie.maxp=xL,ie.name=TL,ie["OS/2"]=IL,ie.post=DL,ie.fpgm=FL,ie.loca=BL,ie.prep=NL,ie["cvt "]=PL,ie.glyf=ML,ie["CFF "]=I_,ie.CFF2=I_,ie.VORG=C$,ie.EBLC=A$,ie.CBLC=ie.EBLC,ie.sbix=I$,ie.COLR=F$,ie.CPAL=N$,ie.BASE=U$,ie.GDEF=q$,ie.GPOS=sU,ie.GSUB=uU,ie.JSTF=pU,ie.HVAR=yU,ie.DSIG=wU,ie.gasp=CU,ie.hdmx=SU,ie.kern=AU,ie.LTSH=TU,ie.PCLT=IU,ie.VDMX=BU,ie.vhea=NU,ie.vmtx=zU,ie.avar=VU,ie.bsln=ZU,ie.feat=GU,ie.fvar=YU,ie.gvar=QU,ie.just=oZ,ie.morx=gZ,ie.opbd=bZ;var vZ=new W({tag:new Fe(4),checkSum:$,offset:new L($,"void",{type:"global"}),length:$}),Wg=new W({tag:new Fe(4),numTables:w,searchRange:w,entrySelector:w,rangeShift:w,tables:new V(vZ,"numTables")});Wg.process=function(){let e={};for(let t of this.tables)e[t.tag]=t;this.tables=e},Wg.preEncode=function(){if(!Array.isArray(this.tables)){let i=[];for(let r in this.tables){let n=this.tables[r];n&&i.push({tag:r,checkSum:0,offset:new _g(Uf[r],n),length:Uf[r].size(n)})}this.tables=i}this.tag="true",this.numTables=this.tables.length;let e=Math.floor(Math.log(this.numTables)/Math.LN2),t=Math.pow(2,e);this.searchRange=t*16,this.entrySelector=Math.log(t)/Math.LN2,this.rangeShift=this.numTables*16-this.searchRange};var j_=Wg;function Zf(e,t){let i=0,r=e.length-1;for(;i<=r;){let n=i+r>>1,s=t(e[n]);if(s<0)r=n-1;else if(s>0)i=n+1;else return n}return-1}function jo(e,t){let i=[];for(;e<t;)i.push(e++);return i}var jf=new TextDecoder("ascii"),W_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fu=new Uint8Array(256);for(let e=0;e<W_.length;e++)Fu[W_.charCodeAt(e)]=e;function Gg(e){let t=e.length*.75;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let i=new Uint8Array(t),r=0;for(let n=0,s=e.length;n<s;n+=4){let a=Fu[e.charCodeAt(n)],o=Fu[e.charCodeAt(n+1)],l=Fu[e.charCodeAt(n+2)],u=Fu[e.charCodeAt(n+3)];i[r++]=a<<2|o>>4,i[r++]=(o&15)<<4|l>>2,i[r++]=(l&3)<<6|u&63}return i}var Hg=class{findSubtable(e,t){for(let[i,r]of t)for(let n of e.tables)if(n.platformID===i&&n.encodingID===r)return n.table;return null}lookup(e,t){if(this.encoding)e=this.encoding.get(e)||e;else if(t){let r=this.getVariationSelector(e,t);if(r)return r}let i=this.cmap;switch(i.version){case 0:return i.codeMap.get(e)||0;case 4:{let r=0,n=i.segCount-1;for(;r<=n;){let s=r+n>>1;if(e<i.startCode.get(s))n=s-1;else if(e>i.endCode.get(s))r=s+1;else{let a=i.idRangeOffset.get(s),o;if(a===0)o=e+i.idDelta.get(s);else{let l=a/2+(e-i.startCode.get(s))-(i.segCount-s);o=i.glyphIndexArray.get(l)||0,o!==0&&(o+=i.idDelta.get(s))}return o&65535}}return 0}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return i.glyphIndices.get(e-i.firstCode)||0;case 12:case 13:{let r=0,n=i.nGroups-1;for(;r<=n;){let s=r+n>>1,a=i.groups.get(s);if(e<a.startCharCode)n=s-1;else if(e>a.endCharCode)r=s+1;else return i.version===12?a.glyphID+(e-a.startCharCode):a.glyphID}return 0}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${i.version}`)}}getVariationSelector(e,t){if(!this.uvs)return 0;let i=this.uvs.varSelectors.toArray(),r=Zf(i,s=>t-s.varSelector),n=i[r];return r!==-1&&n.defaultUVS&&(r=Zf(n.defaultUVS,s=>e<s.startUnicodeValue?-1:e>s.startUnicodeValue+s.additionalCount?1:0)),r!==-1&&n.nonDefaultUVS&&(r=Zf(n.nonDefaultUVS,s=>e-s.unicodeValue),r!==-1)?n.nonDefaultUVS[r].glyphID:0}getCharacterSet(){let e=this.cmap;switch(e.version){case 0:return jo(0,e.codeMap.length);case 4:{let t=[],i=e.endCode.toArray();for(let r=0;r<i.length;r++){let n=i[r]+1,s=e.startCode.get(r);t.push(...jo(s,n))}return t}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return jo(e.firstCode,e.firstCode+e.glyphIndices.length);case 12:case 13:{let t=[];for(let i of e.groups.toArray())t.push(...jo(i.startCharCode,i.endCharCode+1));return t}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${e.version}`)}}codePointsForGlyph(e){let t=this.cmap;switch(t.version){case 0:{let r=[];for(let n=0;n<256;n++)t.codeMap.get(n)===e&&r.push(n);return r}case 4:{let r=[];for(let n=0;n<t.segCount;n++){let s=t.endCode.get(n),a=t.startCode.get(n),o=t.idRangeOffset.get(n),l=t.idDelta.get(n);for(var i=a;i<=s;i++){let u=0;if(o===0)u=i+l;else{let c=o/2+(i-a)-(t.segCount-n);u=t.glyphIndexArray.get(c)||0,u!==0&&(u+=l)}u===e&&r.push(i)}}return r}case 12:{let r=[];for(let n of t.groups.toArray())e>=n.glyphID&&e<=n.glyphID+(n.endCharCode-n.startCharCode)&&r.push(n.startCharCode+(e-n.glyphID));return r}case 13:{let r=[];for(let n of t.groups.toArray())e===n.glyphID&&r.push(...jo(n.startCharCode,n.endCharCode+1));return r}default:throw new Error(`Unknown cmap format ${t.version}`)}}constructor(e){if(this.encoding=null,this.cmap=this.findSubtable(e,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]),!this.cmap)for(let t of e.tables){let i=s_(t.platformID,t.encodingID,t.table.language-1),r=SL(i);r&&(this.cmap=t.table,this.encoding=r)}if(!this.cmap)throw new Error("Could not find a supported cmap table");this.uvs=this.findSubtable(e,[[0,5]]),this.uvs&&this.uvs.version!==14&&(this.uvs=null)}};Pi([Fi],Hg.prototype,"getCharacterSet",null),Pi([Fi],Hg.prototype,"codePointsForGlyph",null);var wZ=class{process(e,t){for(let i=0;i<e.length-1;i++){let r=e[i].id,n=e[i+1].id;t[i].xAdvance+=this.getKerning(r,n)}}getKerning(e,t){let i=0;for(let r of this.kern.tables){if(r.coverage.crossStream)continue;switch(r.version){case 0:if(!r.coverage.horizontal)continue;break;case 1:if(r.coverage.vertical||r.coverage.variation)continue;break;default:throw new Error(`Unsupported kerning table version ${r.version}`)}let n=0,s=r.subtable;switch(r.format){case 0:let a=Zf(s.pairs,function(c){return e-c.left||t-c.right});a>=0&&(n=s.pairs[a].value);break;case 2:let o=0,l=0;e>=s.leftTable.firstGlyph&&e<s.leftTable.firstGlyph+s.leftTable.nGlyphs?o=s.leftTable.offsets[e-s.leftTable.firstGlyph]:o=s.array.off,t>=s.rightTable.firstGlyph&&t<s.rightTable.firstGlyph+s.rightTable.nGlyphs&&(l=s.rightTable.offsets[t-s.rightTable.firstGlyph]);let u=(o+l-s.array.off)/2;n=s.array.values.get(u);break;case 3:if(e>=s.glyphCount||t>=s.glyphCount)return 0;n=s.kernValue[s.kernIndex[s.leftClass[e]*s.rightClassCount+s.rightClass[t]]];break;default:throw new Error(`Unsupported kerning sub-table format ${r.format}`)}r.coverage.override?i=n:i+=n}return i}constructor(e){this.kern=e.kern}},xZ=class{positionGlyphs(e,t){let i=0,r=0;for(let n=0;n<e.length;n++)e[n].isMark?r=n:(i!==r&&this.positionCluster(e,t,i,r),i=r=n);return i!==r&&this.positionCluster(e,t,i,r),t}positionCluster(e,t,i,r){let n=e[i],s=n.cbox.copy();n.codePoints.length>1&&(s.minX+=(n.codePoints.length-1)*s.width/n.codePoints.length);let a=-t[i].xAdvance,o=0,l=this.font.unitsPerEm/16;for(let u=i+1;u<=r;u++){let c=e[u],d=c.cbox,f=t[u],h=this.getCombiningClass(c.codePoints[0]);if(h!=="Not_Reordered"){switch(f.xOffset=f.yOffset=0,h){case"Double_Above":case"Double_Below":f.xOffset+=s.minX-d.width/2-d.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":f.xOffset+=s.minX-d.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":f.xOffset+=s.maxX-d.width-d.minX;break;default:f.xOffset+=s.minX+(s.width-d.width)/2-d.minX}switch(h){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":(h==="Attached_Below_Left"||h==="Attached_Below")&&(s.minY+=l),f.yOffset=-s.minY-d.maxY,s.minY+=d.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":(h==="Attached_Above"||h==="Attached_Above_Right")&&(s.maxY+=l),f.yOffset=s.maxY-d.minY,s.maxY+=d.height;break}f.xAdvance=f.yAdvance=0,f.xOffset+=a,f.yOffset+=o}else a-=f.xAdvance,o-=f.yAdvance}}getCombiningClass(e){let t=rL(e);if((e&-256)===3584){if(t==="Not_Reordered")switch(e){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(e===3642)return"Below_Right"}switch(t){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":return"Below";case"CCC23":return"Attached_Above";case"CCC24":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":return"Above";case"CCC21":break;case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":return"Above";case"CCC29":case"CCC32":return"Below";case"CCC103":return"Below_Right";case"CCC107":return"Above_Right";case"CCC118":return"Below";case"CCC122":return"Above";case"CCC129":case"CCC132":return"Below";case"CCC130":return"Above"}return t}constructor(e){this.font=e}},Wo=class XI{get width(){return this.maxX-this.minX}get height(){return this.maxY-this.minY}addPoint(t,i){Math.abs(t)!==1/0&&(t<this.minX&&(this.minX=t),t>this.maxX&&(this.maxX=t)),Math.abs(i)!==1/0&&(i<this.minY&&(this.minY=i),i>this.maxY&&(this.maxY=i))}copy(){return new XI(this.minX,this.minY,this.maxX,this.maxY)}constructor(t=1/0,i=1/0,r=-1/0,n=-1/0){this.minX=t,this.minY=i,this.maxX=r,this.maxY=n}},Go={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},qg={};for(let e in Go){let t=Go[e];if(Array.isArray(t))for(let i of t)qg[i]=e;else qg[t]=e}function CZ(e){return qg[e]}function kZ(e){let t=e.length,i=0;for(;i<t;){let r=e.charCodeAt(i++);if(55296<=r&&r<=56319&&i<t){let s=e.charCodeAt(i);56320<=s&&s<=57343&&(i++,r=((r&1023)<<10)+(s&1023)+65536)}let n=t_(r);if(n!=="Common"&&n!=="Inherited"&&n!=="Unknown")return Go[n]}return Go.Unknown}function SZ(e){for(let t=0;t<e.length;t++){let i=e[t],r=t_(i);if(r!=="Common"&&r!=="Inherited"&&r!=="Unknown")return Go[r]}return Go.Unknown}var _Z={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function G_(e){return _Z[e]?"rtl":"ltr"}var EZ=class{get advanceWidth(){let e=0;for(let t of this.positions)e+=t.xAdvance;return e}get advanceHeight(){let e=0;for(let t of this.positions)e+=t.yAdvance;return e}get bbox(){let e=new Wo,t=0,i=0;for(let r=0;r<this.glyphs.length;r++){let n=this.glyphs[r],s=this.positions[r],a=n.bbox;e.addPoint(a.minX+t+s.xOffset,a.minY+i+s.yOffset),e.addPoint(a.maxX+t+s.xOffset,a.maxY+i+s.yOffset),t+=s.xAdvance,i+=s.yAdvance}return e}constructor(e,t,i,r,n){if(this.glyphs=e,this.positions=null,this.script=i,this.language=r||null,this.direction=n||G_(i),this.features={},Array.isArray(t))for(let s of t)this.features[s]=!0;else typeof t=="object"&&(this.features=t)}},AZ=class{constructor(e=0,t=0,i=0,r=0){this.xAdvance=e,this.yAdvance=t,this.xOffset=i,this.yOffset=r}},La={allTypographicFeatures:{code:0,exclusive:!1,allTypeFeatures:0},ligatures:{code:1,exclusive:!1,requiredLigatures:0,commonLigatures:2,rareLigatures:4,rebusPictures:8,diphthongLigatures:10,squaredLigatures:12,abbrevSquaredLigatures:14,symbolLigatures:16,contextualLigatures:18,historicalLigatures:20},cursiveConnection:{code:2,exclusive:!0,unconnected:0,partiallyConnected:1,cursive:2},letterCase:{code:3,exclusive:!0},verticalSubstitution:{code:4,exclusive:!1,substituteVerticalForms:0},linguisticRearrangement:{code:5,exclusive:!1,linguisticRearrangement:0},numberSpacing:{code:6,exclusive:!0,monospacedNumbers:0,proportionalNumbers:1,thirdWidthNumbers:2,quarterWidthNumbers:3},smartSwash:{code:8,exclusive:!1,wordInitialSwashes:0,wordFinalSwashes:2,nonFinalSwashes:8},diacritics:{code:9,exclusive:!0,showDiacritics:0,hideDiacritics:1,decomposeDiacritics:2},verticalPosition:{code:10,exclusive:!0,normalPosition:0,superiors:1,inferiors:2,ordinals:3,scientificInferiors:4},fractions:{code:11,exclusive:!0,noFractions:0,verticalFractions:1,diagonalFractions:2},overlappingCharacters:{code:13,exclusive:!1,preventOverlap:0},typographicExtras:{code:14,exclusive:!1,slashedZero:4},mathematicalExtras:{code:15,exclusive:!1,mathematicalGreek:10},ornamentSets:{code:16,exclusive:!0,noOrnaments:0,dingbats:1,piCharacters:2,fleurons:3,decorativeBorders:4,internationalSymbols:5,mathSymbols:6},characterAlternatives:{code:17,exclusive:!0,noAlternates:0},designComplexity:{code:18,exclusive:!0,designLevel1:0,designLevel2:1,designLevel3:2,designLevel4:3,designLevel5:4},styleOptions:{code:19,exclusive:!0,noStyleOptions:0,displayText:1,engravedText:2,illuminatedCaps:3,titlingCaps:4,tallCaps:5},characterShape:{code:20,exclusive:!0,traditionalCharacters:0,simplifiedCharacters:1,JIS1978Characters:2,JIS1983Characters:3,JIS1990Characters:4,traditionalAltOne:5,traditionalAltTwo:6,traditionalAltThree:7,traditionalAltFour:8,traditionalAltFive:9,expertCharacters:10,JIS2004Characters:11,hojoCharacters:12,NLCCharacters:13,traditionalNamesCharacters:14},numberCase:{code:21,exclusive:!0,lowerCaseNumbers:0,upperCaseNumbers:1},textSpacing:{code:22,exclusive:!0,proportionalText:0,monospacedText:1,halfWidthText:2,thirdWidthText:3,quarterWidthText:4,altProportionalText:5,altHalfWidthText:6},transliteration:{code:23,exclusive:!0,noTransliteration:0},annotation:{code:24,exclusive:!0,noAnnotation:0,boxAnnotation:1,roundedBoxAnnotation:2,circleAnnotation:3,invertedCircleAnnotation:4,parenthesisAnnotation:5,periodAnnotation:6,romanNumeralAnnotation:7,diamondAnnotation:8,invertedBoxAnnotation:9,invertedRoundedBoxAnnotation:10},kanaSpacing:{code:25,exclusive:!0,fullWidthKana:0,proportionalKana:1},ideographicSpacing:{code:26,exclusive:!0,fullWidthIdeographs:0,proportionalIdeographs:1,halfWidthIdeographs:2},unicodeDecomposition:{code:27,exclusive:!1,canonicalComposition:0,compatibilityComposition:2,transcodingComposition:4},rubyKana:{code:28,exclusive:!1,rubyKana:2},CJKSymbolAlternatives:{code:29,exclusive:!0,noCJKSymbolAlternatives:0,CJKSymbolAltOne:1,CJKSymbolAltTwo:2,CJKSymbolAltThree:3,CJKSymbolAltFour:4,CJKSymbolAltFive:5},ideographicAlternatives:{code:30,exclusive:!0,noIdeographicAlternatives:0,ideographicAltOne:1,ideographicAltTwo:2,ideographicAltThree:3,ideographicAltFour:4,ideographicAltFive:5},CJKVerticalRomanPlacement:{code:31,exclusive:!0,CJKVerticalRomanCentered:0,CJKVerticalRomanHBaseline:1},italicCJKRoman:{code:32,exclusive:!1,CJKItalicRoman:2},caseSensitiveLayout:{code:33,exclusive:!1,caseSensitiveLayout:0,caseSensitiveSpacing:2},alternateKana:{code:34,exclusive:!1,alternateHorizKana:0,alternateVertKana:2},stylisticAlternatives:{code:35,exclusive:!1,noStylisticAlternates:0,stylisticAltOne:2,stylisticAltTwo:4,stylisticAltThree:6,stylisticAltFour:8,stylisticAltFive:10,stylisticAltSix:12,stylisticAltSeven:14,stylisticAltEight:16,stylisticAltNine:18,stylisticAltTen:20,stylisticAltEleven:22,stylisticAltTwelve:24,stylisticAltThirteen:26,stylisticAltFourteen:28,stylisticAltFifteen:30,stylisticAltSixteen:32,stylisticAltSeventeen:34,stylisticAltEighteen:36,stylisticAltNineteen:38,stylisticAltTwenty:40},contextualAlternates:{code:36,exclusive:!1,contextualAlternates:0,swashAlternates:2,contextualSwashAlternates:4},lowerCase:{code:37,exclusive:!0,defaultLowerCase:0,lowerCaseSmallCaps:1,lowerCasePetiteCaps:2},upperCase:{code:38,exclusive:!0,defaultUpperCase:0,upperCaseSmallCaps:1,upperCasePetiteCaps:2},languageTag:{code:39,exclusive:!0},CJKRomanSpacing:{code:103,exclusive:!0,halfWidthCJKRoman:0,proportionalCJKRoman:1,defaultCJKRoman:2,fullWidthCJKRoman:3}},gt=(e,t)=>[La[e].code,La[e][t]],Wf={rlig:gt("ligatures","requiredLigatures"),clig:gt("ligatures","contextualLigatures"),dlig:gt("ligatures","rareLigatures"),hlig:gt("ligatures","historicalLigatures"),liga:gt("ligatures","commonLigatures"),hist:gt("ligatures","historicalLigatures"),smcp:gt("lowerCase","lowerCaseSmallCaps"),pcap:gt("lowerCase","lowerCasePetiteCaps"),frac:gt("fractions","diagonalFractions"),dnom:gt("fractions","diagonalFractions"),numr:gt("fractions","diagonalFractions"),afrc:gt("fractions","verticalFractions"),case:gt("caseSensitiveLayout","caseSensitiveLayout"),ccmp:gt("unicodeDecomposition","canonicalComposition"),cpct:gt("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),valt:gt("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),swsh:gt("contextualAlternates","swashAlternates"),cswh:gt("contextualAlternates","contextualSwashAlternates"),curs:gt("cursiveConnection","cursive"),c2pc:gt("upperCase","upperCasePetiteCaps"),c2sc:gt("upperCase","upperCaseSmallCaps"),init:gt("smartSwash","wordInitialSwashes"),fin2:gt("smartSwash","wordFinalSwashes"),medi:gt("smartSwash","nonFinalSwashes"),med2:gt("smartSwash","nonFinalSwashes"),fin3:gt("smartSwash","wordFinalSwashes"),fina:gt("smartSwash","wordFinalSwashes"),pkna:gt("kanaSpacing","proportionalKana"),half:gt("textSpacing","halfWidthText"),halt:gt("textSpacing","altHalfWidthText"),hkna:gt("alternateKana","alternateHorizKana"),vkna:gt("alternateKana","alternateVertKana"),ital:gt("italicCJKRoman","CJKItalicRoman"),lnum:gt("numberCase","upperCaseNumbers"),onum:gt("numberCase","lowerCaseNumbers"),mgrk:gt("mathematicalExtras","mathematicalGreek"),calt:gt("contextualAlternates","contextualAlternates"),vrt2:gt("verticalSubstitution","substituteVerticalForms"),vert:gt("verticalSubstitution","substituteVerticalForms"),tnum:gt("numberSpacing","monospacedNumbers"),pnum:gt("numberSpacing","proportionalNumbers"),sups:gt("verticalPosition","superiors"),subs:gt("verticalPosition","inferiors"),ordn:gt("verticalPosition","ordinals"),pwid:gt("textSpacing","proportionalText"),hwid:gt("textSpacing","halfWidthText"),qwid:gt("textSpacing","quarterWidthText"),twid:gt("textSpacing","thirdWidthText"),fwid:gt("textSpacing","proportionalText"),palt:gt("textSpacing","altProportionalText"),trad:gt("characterShape","traditionalCharacters"),smpl:gt("characterShape","simplifiedCharacters"),jp78:gt("characterShape","JIS1978Characters"),jp83:gt("characterShape","JIS1983Characters"),jp90:gt("characterShape","JIS1990Characters"),jp04:gt("characterShape","JIS2004Characters"),expt:gt("characterShape","expertCharacters"),hojo:gt("characterShape","hojoCharacters"),nlck:gt("characterShape","NLCCharacters"),tnam:gt("characterShape","traditionalNamesCharacters"),ruby:gt("rubyKana","rubyKana"),titl:gt("styleOptions","titlingCaps"),zero:gt("typographicExtras","slashedZero"),ss01:gt("stylisticAlternatives","stylisticAltOne"),ss02:gt("stylisticAlternatives","stylisticAltTwo"),ss03:gt("stylisticAlternatives","stylisticAltThree"),ss04:gt("stylisticAlternatives","stylisticAltFour"),ss05:gt("stylisticAlternatives","stylisticAltFive"),ss06:gt("stylisticAlternatives","stylisticAltSix"),ss07:gt("stylisticAlternatives","stylisticAltSeven"),ss08:gt("stylisticAlternatives","stylisticAltEight"),ss09:gt("stylisticAlternatives","stylisticAltNine"),ss10:gt("stylisticAlternatives","stylisticAltTen"),ss11:gt("stylisticAlternatives","stylisticAltEleven"),ss12:gt("stylisticAlternatives","stylisticAltTwelve"),ss13:gt("stylisticAlternatives","stylisticAltThirteen"),ss14:gt("stylisticAlternatives","stylisticAltFourteen"),ss15:gt("stylisticAlternatives","stylisticAltFifteen"),ss16:gt("stylisticAlternatives","stylisticAltSixteen"),ss17:gt("stylisticAlternatives","stylisticAltSeventeen"),ss18:gt("stylisticAlternatives","stylisticAltEighteen"),ss19:gt("stylisticAlternatives","stylisticAltNineteen"),ss20:gt("stylisticAlternatives","stylisticAltTwenty")};for(let e=1;e<=99;e++)Wf[`cv${`00${e}`.slice(-2)}`]=[La.characterAlternatives.code,e];var $a={};for(let e in Wf){let t=Wf[e];$a[t[0]]==null&&($a[t[0]]={}),$a[t[0]][t[1]]=e}function TZ(e){let t={};for(let i in e){let r;(r=Wf[i])&&(t[r[0]]==null&&(t[r[0]]={}),t[r[0]][r[1]]=e[i])}return t}function H_(e){let[t,i]=e;if(isNaN(t))var r=La[t]&&La[t].code;else var r=t;if(isNaN(i))var n=La[t]&&La[t][i];else var n=i;return[r,n]}function IZ(e){let t={};if(Array.isArray(e))for(let i=0;i<e.length;i++){let r,n=H_(e[i]);(r=$a[n[0]]&&$a[n[0]][n[1]])&&(t[r]=!0)}else if(typeof e=="object")for(let i in e){let r=e[i];for(let n in r){let s,a=H_([i,n]);r[n]&&(s=$a[a[0]]&&$a[a[0]][a[1]])&&(t[s]=!0)}}return Object.keys(t)}var Bu=class{lookup(e){switch(this.table.version){case 0:return this.table.values.getItem(e);case 2:case 4:{let r=0,n=this.table.binarySearchHeader.nUnits-1;for(;r<=n;){var t=r+n>>1,i=this.table.segments[t];if(i.firstGlyph===65535)return null;if(e<i.firstGlyph)n=t-1;else if(e>i.lastGlyph)r=t+1;else return this.table.version===2?i.value:i.values[e-i.firstGlyph]}return null}case 6:{let r=0,n=this.table.binarySearchHeader.nUnits-1;for(;r<=n;){var t=r+n>>1,i=this.table.segments[t];if(i.glyph===65535)return null;if(e<i.glyph)n=t-1;else if(e>i.glyph)r=t+1;else return i.value}return null}case 8:return this.table.values[e-this.table.firstGlyph];default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}}glyphsForValue(e){let t=[];switch(this.table.version){case 2:case 4:for(let i of this.table.segments)if(this.table.version===2&&i.value===e)t.push(...jo(i.firstGlyph,i.lastGlyph+1));else for(let r=0;r<i.values.length;r++)i.values[r]===e&&t.push(i.firstGlyph+r);break;case 6:for(let i of this.table.segments)i.value===e&&t.push(i.glyph);break;case 8:for(let i=0;i<this.table.values.length;i++)this.table.values[i]===e&&t.push(this.table.firstGlyph+i);break;default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}return t}constructor(e){this.table=e}};Pi([Fi],Bu.prototype,"glyphsForValue",null);var DZ=0,q_=0,Y_=1,K_=2,PZ=16384,FZ=class{process(e,t,i){let r=DZ,n=t?e.length-1:0,s=t?-1:1;for(;s===1&&n<=e.length||s===-1&&n>=-1;){let a=null,o=Y_,l=!0;n===e.length||n===-1?o=q_:(a=e[n],a.id===65535?o=K_:(o=this.lookupTable.lookup(a.id),o==null&&(o=Y_)));let c=this.stateTable.stateArray.getItem(r)[o],d=this.stateTable.entryTable.getItem(c);o!==q_&&o!==K_&&(i(a,d,n),l=!(d.flags&PZ)),r=d.newState,l&&(n+=s)}return e}traverse(e,t=0,i=new Set){if(i.has(t))return;i.add(t);let{nClasses:r,stateArray:n,entryTable:s}=this.stateTable,a=n.getItem(t);for(let o=4;o<r;o++){let l=a[o],u=s.getItem(l);for(let c of this.lookupTable.glyphsForValue(o))e.enter&&e.enter(c,u),u.newState!==0&&this.traverse(e,u.newState,i),e.exit&&e.exit(c,u)}}constructor(e){this.stateTable=e,this.lookupTable=new Bu(e.classTable)}},BZ=32768,NZ=8192,MZ=15,X_=32768,zZ=32768,OZ=8192,RZ=2147483648,VZ=1073741824,LZ=1073741823,J_=4194304,$Z=2048,UZ=1024,ZZ=992,jZ=31,Q_=class{process(e,t={}){for(let r of this.morx.chains){let n=r.defaultFlags;for(let s of r.features){let a;(a=t[s.featureType])&&(a[s.featureSetting]?(n&=s.disableFlags,n|=s.enableFlags):a[s.featureSetting]===!1&&(n|=~s.disableFlags,n&=~s.enableFlags))}for(let s of r.subtables)s.subFeatureFlags&n&&this.processSubtable(s,e)}let i=e.length-1;for(;i>=0;)e[i].id===65535&&e.splice(i,1),i--;return e}processSubtable(e,t){if(this.subtable=e,this.glyphs=t,this.subtable.type===4){this.processNoncontextualSubstitutions(this.subtable,this.glyphs);return}this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;let i=this.getStateMachine(e),r=this.getProcessor(),n=!!(this.subtable.coverage&J_);return i.process(this.glyphs,n,r)}getStateMachine(e){return new FZ(e.table.stateTable)}getProcessor(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error(`Invalid morx subtable type: ${this.subtable.type}`)}}processIndicRearragement(e,t,i){t.flags&BZ&&(this.firstGlyph=i),t.flags&NZ&&(this.lastGlyph=i),WZ(this.glyphs,t.flags&MZ,this.firstGlyph,this.lastGlyph)}processContextualSubstitution(e,t,i){let r=this.subtable.table.substitutionTable.items;if(t.markIndex!==65535){let s=r.getItem(t.markIndex),a=new Bu(s);e=this.glyphs[this.markedGlyph];var n=a.lookup(e.id);n&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(n,e.codePoints))}if(t.currentIndex!==65535){let s=r.getItem(t.currentIndex),a=new Bu(s);e=this.glyphs[i];var n=a.lookup(e.id);n&&(this.glyphs[i]=this.font.getGlyph(n,e.codePoints))}t.flags&X_&&(this.markedGlyph=i)}processLigature(e,t,i){if(t.flags&zZ&&this.ligatureStack.push(i),t.flags&OZ){let r=this.subtable.table.ligatureActions,n=this.subtable.table.components,s=this.subtable.table.ligatureList,a=t.action,o=!1,l=0,u=[],c=[];for(;!o;){let d=this.ligatureStack.pop();u.unshift(...this.glyphs[d].codePoints);let f=r.getItem(a++);o=!!(f&RZ);let h=!!(f&VZ),p=(f&LZ)<<2>>2;p+=this.glyphs[d].id;let g=n.getItem(p);if(l+=g,o||h){let y=s.getItem(l);this.glyphs[d]=this.font.getGlyph(y,u),c.push(d),l=0,u=[]}else this.glyphs[d]=this.font.getGlyph(65535)}this.ligatureStack.push(...c)}}processNoncontextualSubstitutions(e,t,i){let r=new Bu(e.table.lookupTable);for(i=0;i<t.length;i++){let n=t[i];if(n.id!==65535){let s=r.lookup(n.id);s&&(t[i]=this.font.getGlyph(s,n.codePoints))}}}_insertGlyphs(e,t,i,r){let n=[];for(;i--;){let s=this.subtable.table.insertionActions.getItem(t++);n.push(this.font.getGlyph(s))}r||e++,this.glyphs.splice(e,0,...n)}processGlyphInsertion(e,t,i){if(t.flags&X_&&(this.markedIndex=i),t.markedInsertIndex!==65535){let r=(t.flags&jZ)>>>5,n=!!(t.flags&UZ);this._insertGlyphs(this.markedIndex,t.markedInsertIndex,r,n)}if(t.currentInsertIndex!==65535){let r=(t.flags&ZZ)>>>5,n=!!(t.flags&$Z);this._insertGlyphs(i,t.currentInsertIndex,r,n)}}getSupportedFeatures(){let e=[];for(let t of this.morx.chains)for(let i of t.features)e.push([i.featureType,i.featureSetting]);return e}generateInputs(e){return this.inputCache||this.generateInputCache(),this.inputCache[e]||[]}generateInputCache(){this.inputCache={};for(let e of this.morx.chains){let t=e.defaultFlags;for(let i of e.subtables)i.subFeatureFlags&t&&this.generateInputsForSubtable(i)}}generateInputsForSubtable(e){if(e.type!==2)return;if(!!(e.coverage&J_))throw new Error("Reverse subtable, not supported.");this.subtable=e,this.ligatureStack=[];let i=this.getStateMachine(e),r=this.getProcessor(),n=[],s=[];this.glyphs=[],i.traverse({enter:(a,o)=>{let l=this.glyphs;s.push({glyphs:l.slice(),ligatureStack:this.ligatureStack.slice()});let u=this.font.getGlyph(a);n.push(u),l.push(n[n.length-1]),r(l[l.length-1],o,l.length-1);let c=0,d=0;for(let f=0;f<l.length&&c<=1;f++)l[f].id!==65535&&(c++,d=l[f].id);if(c===1){let f=n.map(p=>p.id),h=this.inputCache[d];h?h.push(f):this.inputCache[d]=[f]}},exit:()=>{({glyphs:this.glyphs,ligatureStack:this.ligatureStack}=s.pop()),n.pop()}})}constructor(e){this.processIndicRearragement=this.processIndicRearragement.bind(this),this.processContextualSubstitution=this.processContextualSubstitution.bind(this),this.processLigature=this.processLigature.bind(this),this.processNoncontextualSubstitutions=this.processNoncontextualSubstitutions.bind(this),this.processGlyphInsertion=this.processGlyphInsertion.bind(this),this.font=e,this.morx=e.morx,this.inputCache=null}};Pi([Fi],Q_.prototype,"getStateMachine",null);function Qi(e,t,i,r=!1,n=!1){let s=e.splice(i[0]-(i[1]-1),i[1]);n&&s.reverse();let a=e.splice(t[0],t[1],...s);return r&&a.reverse(),e.splice(i[0]-(t[1]-1),0,...a),e}function WZ(e,t,i,r){switch(t){case 0:return e;case 1:return Qi(e,[i,1],[r,0]);case 2:return Qi(e,[i,0],[r,1]);case 3:return Qi(e,[i,1],[r,1]);case 4:return Qi(e,[i,2],[r,0]);case 5:return Qi(e,[i,2],[r,0],!0,!1);case 6:return Qi(e,[i,0],[r,2]);case 7:return Qi(e,[i,0],[r,2],!1,!0);case 8:return Qi(e,[i,1],[r,2]);case 9:return Qi(e,[i,1],[r,2],!1,!0);case 10:return Qi(e,[i,2],[r,1]);case 11:return Qi(e,[i,2],[r,1],!0,!1);case 12:return Qi(e,[i,2],[r,2]);case 13:return Qi(e,[i,2],[r,2],!0,!1);case 14:return Qi(e,[i,2],[r,2],!1,!0);case 15:return Qi(e,[i,2],[r,2],!0,!0);default:throw new Error(`Unknown verb: ${t}`)}}var GZ=class{substitute(e){e.direction==="rtl"&&e.glyphs.reverse(),this.morxProcessor.process(e.glyphs,TZ(e.features))}getAvailableFeatures(e,t){return IZ(this.morxProcessor.getSupportedFeatures())}stringsForGlyph(e){let t=this.morxProcessor.generateInputs(e),i=new Set;for(let r of t)this._addStrings(r,0,i,"");return i}_addStrings(e,t,i,r){let n=this.font._cmapProcessor.codePointsForGlyph(e[t]);for(let s of n){let a=r+String.fromCodePoint(s);t<e.length-1?this._addStrings(e,t+1,i,a):i.add(a)}}constructor(e){this.font=e,this.morxProcessor=new Q_(e),this.fallbackPosition=!1}},HZ=class{_addFeatures(e,t){let i=this.stages.length-1,r=this.stages[i];for(let n of e)this.allFeatures[n]==null&&(r.push(n),this.allFeatures[n]=i,t&&(this.globalFeatures[n]=!0))}add(e,t=!0){if(this.stages.length===0&&this.stages.push([]),typeof e=="string"&&(e=[e]),Array.isArray(e))this._addFeatures(e,t);else if(typeof e=="object")this._addFeatures(e.global||[],!0),this._addFeatures(e.local||[],!1);else throw new Error("Unsupported argument to ShapingPlan#add")}addStage(e,t){typeof e=="function"?this.stages.push(e,[]):(this.stages.push([]),this.add(e,t))}setFeatureOverrides(e){if(Array.isArray(e))this.add(e);else if(typeof e=="object"){for(let t in e)if(e[t])this.add(t);else if(this.allFeatures[t]!=null){let i=this.stages[this.allFeatures[t]];i.splice(i.indexOf(t),1),delete this.allFeatures[t],delete this.globalFeatures[t]}}}assignGlobalFeatures(e){for(let t of e)for(let i in this.globalFeatures)t.features[i]=!0}process(e,t,i){for(let r of this.stages)typeof r=="function"?i||r(this.font,t,this):r.length>0&&e.applyFeatures(r,t,i)}constructor(e,t,i){this.font=e,this.script=t,this.direction=i,this.stages=[],this.globalFeatures={},this.allFeatures={}}},qZ=["rvrn"],YZ=["ccmp","locl","rlig","mark","mkmk"],KZ=["frac","numr","dnom"],XZ=["calt","clig","liga","rclt","curs","kern"],JZ={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},Js=class{static plan(e,t,i){this.planPreprocessing(e),this.planFeatures(e),this.planPostprocessing(e,i),e.assignGlobalFeatures(t),this.assignFeatures(e,t)}static planPreprocessing(e){e.add({global:[...qZ,...JZ[e.direction]],local:KZ})}static planFeatures(e){}static planPostprocessing(e,t){e.add([...YZ,...XZ]),e.setFeatureOverrides(t)}static assignFeatures(e,t){for(let i=0;i<t.length;i++){let r=t[i];if(r.codePoints[0]===8260){let n=i,s=i+1;for(;n>0&&e_(t[n-1].codePoints[0]);)t[n-1].features.numr=!0,t[n-1].features.frac=!0,n--;for(;s<t.length&&e_(t[s].codePoints[0]);)t[s].features.dnom=!0,t[s].features.frac=!0,s++;r.features.frac=!0,i=s-1}}}};ar(Js,"zeroMarkWidths","AFTER_GPOS");var QZ=new Dg.default(Gg("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCYaEcygEiqBQ4FAkCE4ikUgMiiBJSAgSiUQSDMn9L9eSl6bddddug9t7yS/trevre+3r27pcNxZiG+yCfdCVv/9LeQxOwRm4AJegD27ALbgD9+ABPJF+z+BN/h7yDj5k/VOWX6SdmU5+wLWknggxDxaS8u0qiiX4uiz9XamQ3wzDMAzDMAzDMAzDVI/h959V/v7BMAzDMAzDMLlyNTNiMSdewVxbiA44B4/guz1qW58VYlMI0WsJ0W+N6kXw0spvPtdwhtkwnGM6uLaV4Xyzg3v3PM9DPfQ/sOg4xPWjipy31P8LTqbU304c/cLCUmWJLNB2Uz2U1KTeRKNmKHVMfbJC+/0loTZRH/W5cvEvBJPMbREkWt3FD1NcqXZBSpuE2Ad0PBehPtNrPtIEdYP+hiRt/V1jIiE69X4NT/uVZI3PUHE9bm5M7ePGdZWy951v7Nn6j8v1WWKP3mt6ttnsigx6VN7Vc0VomSSGqW2mGNP1muZPl7LfjNUaKNFtDGVf2fvE9O7VlBS5j333c5p/eeoOqcs1R/hIqDWLJ7TTlksirVT1SI7l8k4Yp+g3jafGcrU1RM6l9th80XOpnlN97bDNY4i4s61B0Si/ipa0uHMl6zqEjlFfCZm/TM8KmzQDjmuTAQ==")),t6=["isol","fina","fin2","fin3","medi","med2","init"],Yg={Non_Joining:0,Transparent:6},Ze="isol",Qs="fina",Kg="fin2",tj="fin3",Gf="medi",Hf="med2",qf="init",xe=null,ej=[[[xe,xe,0],[xe,Ze,2],[xe,Ze,1],[xe,Ze,2],[xe,Ze,1],[xe,Ze,6]],[[xe,xe,0],[xe,Ze,2],[xe,Ze,1],[xe,Ze,2],[xe,Kg,5],[xe,Ze,6]],[[xe,xe,0],[xe,Ze,2],[qf,Qs,1],[qf,Qs,3],[qf,Qs,4],[qf,Qs,6]],[[xe,xe,0],[xe,Ze,2],[Gf,Qs,1],[Gf,Qs,3],[Gf,Qs,4],[Gf,Qs,6]],[[xe,xe,0],[xe,Ze,2],[Hf,Ze,1],[Hf,Ze,2],[Hf,Kg,5],[Hf,Ze,6]],[[xe,xe,0],[xe,Ze,2],[Ze,Ze,1],[Ze,Ze,2],[Ze,Kg,5],[Ze,Ze,6]],[[xe,xe,0],[xe,Ze,2],[xe,Ze,1],[xe,Ze,2],[xe,tj,5],[xe,Ze,6]]],ta=class extends Js{static planFeatures(e){e.add(["ccmp","locl"]);for(let t=0;t<t6.length;t++){let i=t6[t];e.addStage(i,!1)}e.addStage("mset")}static assignFeatures(e,t){super.assignFeatures(e,t);let i=-1,r=0,n=[];for(let a=0;a<t.length;a++){let o,l;var s=t[a];let u=ij(s.codePoints[0]);if(u===Yg.Transparent){n[a]=xe;continue}[l,o,r]=ej[r][u],l!==xe&&i!==-1&&(n[i]=l),n[a]=o,i=a}for(let a=0;a<t.length;a++){let o;var s=t[a];(o=n[a])&&(s.features[o]=!0)}}};function ij(e){let t=QZ.get(e);if(t)return t-1;let i=Ff(e);return i==="Mn"||i==="Me"||i==="Cf"?Yg.Transparent:Yg.Non_Joining}var rj=class{reset(e={},t=0){this.options=e,this.flags=e.flags||{},this.markAttachmentType=e.markAttachmentType||0,this.index=t}get cur(){return this.glyphs[this.index]||null}shouldIgnore(e){return this.flags.ignoreMarks&&e.isMark||this.flags.ignoreBaseGlyphs&&e.isBase||this.flags.ignoreLigatures&&e.isLigature||this.markAttachmentType&&e.isMark&&e.markAttachmentType!==this.markAttachmentType}move(e){for(this.index+=e;0<=this.index&&this.index<this.glyphs.length&&this.shouldIgnore(this.glyphs[this.index]);)this.index+=e;return 0>this.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]}next(){return this.move(1)}prev(){return this.move(-1)}peek(e=1){let t=this.index,i=this.increment(e);return this.index=t,i}peekIndex(e=1){let t=this.index;this.increment(e);let i=this.index;return this.index=t,i}increment(e=1){let t=e<0?-1:1;for(e=Math.abs(e);e--;)this.move(t);return this.glyphs[this.index]}constructor(e,t){this.glyphs=e,this.reset(t)}},nj=["DFLT","dflt","latn"],Yf=class{findScript(e){if(this.table.scriptList==null)return null;Array.isArray(e)||(e=[e]);for(let t of e)for(let i of this.table.scriptList)if(i.tag===t)return i;return null}selectScript(e,t,i){let r=!1,n;if(!this.script||e!==this.scriptTag){if(n=this.findScript(e),n||(n=this.findScript(nj)),!n)return this.scriptTag;this.scriptTag=n.tag,this.script=n.script,this.language=null,this.languageTag=null,r=!0}if((!i||i!==this.direction)&&(this.direction=i||G_(e)),t&&t.length<4&&(t+=" ".repeat(4-t.length)),!t||t!==this.languageTag){this.language=null;for(let s of this.script.langSysRecords)if(s.tag===t){this.language=s.langSys,this.languageTag=s.tag;break}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),r=!0}if(r&&(this.features={},this.language))for(let s of this.language.featureIndexes){let a=this.table.featureList[s],o=this.substituteFeatureForVariations(s);this.features[a.tag]=o||a.feature}return this.scriptTag}lookupsForFeatures(e=[],t){let i=[];for(let r of e){let n=this.features[r];if(n)for(let s of n.lookupListIndexes)t&&t.indexOf(s)!==-1||i.push({feature:r,index:s,lookup:this.table.lookupList.get(s)})}return i.sort((r,n)=>r.index-n.index),i}substituteFeatureForVariations(e){if(this.variationsIndex===-1)return null;let i=this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions;for(let r of i)if(r.featureIndex===e)return r.alternateFeatureTable;return null}findVariationsIndex(e){let t=this.table.featureVariations;if(!t)return-1;let i=t.featureVariationRecords;for(let r=0;r<i.length;r++){let n=i[r].conditionSet.conditionTable;if(this.variationConditionsMatch(n,e))return r}return-1}variationConditionsMatch(e,t){return e.every(i=>{let r=i.axisIndex<t.length?t[i.axisIndex]:0;return i.filterRangeMinValue<=r&&r<=i.filterRangeMaxValue})}applyFeatures(e,t,i){let r=this.lookupsForFeatures(e);this.applyLookups(r,t,i)}applyLookups(e,t,i){this.glyphs=t,this.positions=i,this.glyphIterator=new rj(t);for(let{feature:r,lookup:n}of e)for(this.currentFeature=r,this.glyphIterator.reset(n.flags);this.glyphIterator.index<t.length;){if(!(r in this.glyphIterator.cur.features)){this.glyphIterator.next();continue}for(let s of n.subTables)if(this.applyLookup(n.lookupType,s))break;this.glyphIterator.next()}}applyLookup(e,t){throw new Error("applyLookup must be implemented by subclasses")}applyLookupList(e){let t=this.glyphIterator.options,i=this.glyphIterator.index;for(let r of e){this.glyphIterator.reset(t,i),this.glyphIterator.increment(r.sequenceIndex);let n=this.table.lookupList.get(r.lookupListIndex);this.glyphIterator.reset(n.flags,this.glyphIterator.index);for(let s of n.subTables)if(this.applyLookup(n.lookupType,s))break}return this.glyphIterator.reset(t,i),!0}coverageIndex(e,t){switch(t==null&&(t=this.glyphIterator.cur.id),e.version){case 1:return e.glyphs.indexOf(t);case 2:for(let i of e.rangeRecords)if(i.start<=t&&t<=i.end)return i.startCoverageIndex+t-i.start;break}return-1}match(e,t,i,r){let n=this.glyphIterator.index,s=this.glyphIterator.increment(e),a=0;for(;a<t.length&&s&&i(t[a],s);)r&&r.push(this.glyphIterator.index),a++,s=this.glyphIterator.next();return this.glyphIterator.index=n,a<t.length?!1:r||!0}sequenceMatches(e,t){return this.match(e,t,(i,r)=>i===r.id)}sequenceMatchIndices(e,t){return this.match(e,t,(i,r)=>this.currentFeature in r.features?i===r.id:!1,[])}coverageSequenceMatches(e,t){return this.match(e,t,(i,r)=>this.coverageIndex(i,r.id)>=0)}getClassID(e,t){switch(t.version){case 1:let i=e-t.startGlyph;if(i>=0&&i<t.classValueArray.length)return t.classValueArray[i];break;case 2:for(let r of t.classRangeRecord)if(r.start<=e&&e<=r.end)return r.class;break}return 0}classSequenceMatches(e,t,i){return this.match(e,t,(r,n)=>r===this.getClassID(n.id,i))}applyContext(e){let t,i;switch(e.version){case 1:if(t=this.coverageIndex(e.coverage),t===-1)return!1;i=e.ruleSets[t];for(let r of i)if(this.sequenceMatches(1,r.input))return this.applyLookupList(r.lookupRecords);break;case 2:if(this.coverageIndex(e.coverage)===-1||(t=this.getClassID(this.glyphIterator.cur.id,e.classDef),t===-1))return!1;i=e.classSet[t];for(let r of i)if(this.classSequenceMatches(1,r.classes,e.classDef))return this.applyLookupList(r.lookupRecords);break;case 3:if(this.coverageSequenceMatches(0,e.coverages))return this.applyLookupList(e.lookupRecords);break}return!1}applyChainingContext(e){let t;switch(e.version){case 1:if(t=this.coverageIndex(e.coverage),t===-1)return!1;let i=e.chainRuleSets[t];for(let n of i)if(this.sequenceMatches(-n.backtrack.length,n.backtrack)&&this.sequenceMatches(1,n.input)&&this.sequenceMatches(1+n.input.length,n.lookahead))return this.applyLookupList(n.lookupRecords);break;case 2:if(this.coverageIndex(e.coverage)===-1)return!1;t=this.getClassID(this.glyphIterator.cur.id,e.inputClassDef);let r=e.chainClassSet[t];if(!r)return!1;for(let n of r)if(this.classSequenceMatches(-n.backtrack.length,n.backtrack,e.backtrackClassDef)&&this.classSequenceMatches(1,n.input,e.inputClassDef)&&this.classSequenceMatches(1+n.input.length,n.lookahead,e.lookaheadClassDef))return this.applyLookupList(n.lookupRecords);break;case 3:if(this.coverageSequenceMatches(-e.backtrackGlyphCount,e.backtrackCoverage)&&this.coverageSequenceMatches(0,e.inputCoverage)&&this.coverageSequenceMatches(e.inputGlyphCount,e.lookaheadCoverage))return this.applyLookupList(e.lookupRecords);break}return!1}constructor(e,t){this.font=e,this.table=t,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=e._variationProcessor?this.findVariationsIndex(e._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}},ls=class JI{get id(){return this._id}set id(t){this._id=t,this.substituted=!0;let i=this._font.GDEF;if(i&&i.glyphClassDef){let r=Yf.prototype.getClassID(t,i.glyphClassDef);this.isBase=r===1,this.isLigature=r===2,this.isMark=r===3,this.markAttachmentType=i.markAttachClassDef?Yf.prototype.getClassID(t,i.markAttachClassDef):0}else this.isMark=this.codePoints.length>0&&this.codePoints.every(i_),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}copy(){return new JI(this._font,this.id,this.codePoints,this.features)}constructor(t,i,r=[],n){if(this._font=t,this.codePoints=r,this.id=i,this.features={},Array.isArray(n))for(let s=0;s<n.length;s++){let a=n[s];this.features[a]=!0}else typeof n=="object"&&Object.assign(this.features,n);this.ligatureID=null,this.ligatureComponent=null,this.isLigated=!1,this.cursiveAttachment=null,this.markAttachment=null,this.shaperInfo=null,this.substituted=!1,this.isMultiplied=!1}},e6=class extends Js{static planFeatures(e){e.add(["ljmo","vjmo","tjmo"],!1)}static assignFeatures(e,t){let i=0,r=0;for(;r<t.length;){let n,a=t[r].codePoints[0],o=eh(a);switch([n,i]=Cj[i][o],n){case us:e.font.hasGlyphForCodePoint(a)||(r=s6(t,r,e.font));break;case Jg:r=kj(t,r,e.font);break;case Qg:_j(t,r,e.font);break;case ty:r=Ej(t,r,e.font);break}r++}}};ar(e6,"zeroMarkWidths","NONE");var Ho=44032,i6=55204,sj=i6-Ho+1,Kf=4352,Xf=4449,Ua=4519,aj=19,Jf=21,Nu=28,oj=Kf+aj-1,lj=Xf+Jf-1,uj=Ua+Nu-1,r6=9676,cj=e=>4352<=e&&e<=4447||43360<=e&&e<=43388,dj=e=>4448<=e&&e<=4519||55216<=e&&e<=55238,fj=e=>4520<=e&&e<=4607||55243<=e&&e<=55291,hj=e=>12334<=e&&e<=12335,pj=e=>Ho<=e&&e<=i6,mj=e=>e-Ho<sj&&(e-Ho)%Nu===0,gj=e=>Kf<=e&&e<=oj,yj=e=>Xf<=e&&e<=lj,bj=e=>1<=e&&e<=uj,vj=0,wj=1,Qf=2,Xg=3,th=4,n6=5,xj=6;function eh(e){return cj(e)?wj:dj(e)?Qf:fj(e)?Xg:mj(e)?th:pj(e)?n6:hj(e)?xj:vj}var or=0,us=1,Jg=2,Qg=4,ty=5,Cj=[[[or,0],[or,1],[or,0],[or,0],[us,2],[us,3],[ty,0]],[[or,0],[or,1],[Jg,2],[or,0],[us,2],[us,3],[ty,0]],[[or,0],[or,1],[or,0],[Jg,3],[us,2],[us,3],[Qg,0]],[[or,0],[or,1],[or,0],[or,0],[us,2],[us,3],[Qg,0]]];function Mu(e,t,i){return new ls(e,e.glyphForCodePoint(t).id,[t],i)}function s6(e,t,i){let r=e[t],s=r.codePoints[0]-Ho,a=Ua+s%Nu;s=s/Nu|0;let o=Kf+s/Jf|0,l=Xf+s%Jf;if(!i.hasGlyphForCodePoint(o)||!i.hasGlyphForCodePoint(l)||a!==Ua&&!i.hasGlyphForCodePoint(a))return t;let u=Mu(i,o,r.features);u.features.ljmo=!0;let c=Mu(i,l,r.features);c.features.vjmo=!0;let d=[u,c];if(a>Ua){let f=Mu(i,a,r.features);f.features.tjmo=!0,d.push(f)}return e.splice(t,1,...d),t+d.length-1}function kj(e,t,i){let r=e[t],n=e[t].codePoints[0],s=eh(n),a=e[t-1].codePoints[0],o=eh(a),l,u,c,d;if(o===th&&s===Xg)l=a,d=r;else{s===Qf?(u=e[t-1],c=r):(u=e[t-2],c=e[t-1],d=r);let h=u.codePoints[0],p=c.codePoints[0];gj(h)&&yj(p)&&(l=Ho+((h-Kf)*Jf+(p-Xf))*Nu)}let f=d&&d.codePoints[0]||Ua;if(l!=null&&(f===Ua||bj(f))){let h=l+(f-Ua);if(i.hasGlyphForCodePoint(h)){let p=o===Qf?3:2;return e.splice(t-p+1,p,Mu(i,h,r.features)),t-p+1}}return u&&(u.features.ljmo=!0),c&&(c.features.vjmo=!0),d&&(d.features.tjmo=!0),o===th?(s6(e,t-1,i),t+1):t}function Sj(e){switch(eh(e)){case th:case n6:return 1;case Qf:return 2;case Xg:return 3}}function _j(e,t,i){let r=e[t],n=e[t].codePoints[0];if(i.glyphForCodePoint(n).advanceWidth===0)return;let s=e[t-1].codePoints[0],a=Sj(s);return e.splice(t,1),e.splice(t-a,0,r)}function Ej(e,t,i){let r=e[t],n=e[t].codePoints[0];if(i.hasGlyphForCodePoint(r6)){let s=Mu(i,r6,r.features),a=i.glyphForCodePoint(n).advanceWidth===0?t:t+1;e.splice(a,0,s),t++}return t}var a6={};a6=JSON.parse('{"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],"accepting":[false,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,false,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,false,false,true,false,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,false,false,true,true,false,false,true,true,true,false,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,false,false,false,false,false,false,false,true,true,false,false,true,true,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,false,true,true,false,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,false,true,true,true,true,true,false,true,true,false,true,true,true],"tags":[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}');var ih={};ih=JSON.parse('{"categories":["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],"decompositions":{"2507":[2503,2494],"2508":[2503,2519],"2888":[2887,2902],"2891":[2887,2878],"2892":[2887,2903],"3018":[3014,3006],"3019":[3015,3006],"3020":[3014,3031],"3144":[3142,3158],"3264":[3263,3285],"3271":[3270,3285],"3272":[3270,3286],"3274":[3270,3266],"3275":[3270,3266,3285],"3402":[3398,3390],"3403":[3399,3390],"3404":[3398,3415],"3546":[3545,3530],"3548":[3545,3535],"3549":[3545,3535,3530],"3550":[3545,3551],"3635":[3661,3634],"3763":[3789,3762],"3955":[3953,3954],"3957":[3953,3956],"3958":[4018,3968],"3959":[4018,3953,3968],"3960":[4019,3968],"3961":[4019,3953,3968],"3969":[3953,3968],"6971":[6970,6965],"6973":[6972,6965],"6976":[6974,6965],"6977":[6975,6965],"6979":[6978,6965],"69934":[69937,69927],"69935":[69938,69927],"70475":[70471,70462],"70476":[70471,70487],"70843":[70841,70842],"70844":[70841,70832],"70846":[70841,70845],"71098":[71096,71087],"71099":[71097,71087]},"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],"accepting":[false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true],"tags":[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]}');var pe={X:1,C:2,V:4,N:8,H:16,ZWNJ:32,ZWJ:64,M:128,Placeholder:2048,Dotted_Circle:4096,RS:8192,Coeng:16384,Repha:32768,Ra:65536,CM:131072},Yt={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},Aj=pe.C|pe.Ra|pe.CM|pe.V|pe.Placeholder|pe.Dotted_Circle,o6=pe.ZWJ|pe.ZWNJ,zu=pe.H|pe.Coeng,l6={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:Yt.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:Yt.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:Yt.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:Yt.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:Yt.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:Yt.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:Yt.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:Yt.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:Yt.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:Yt.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:Yt.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},Tj={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},{decompositions:Ij}=Bf(ih),u6=new Dg.default(Gg("AAARAAAAAABg2AAAAWYPmfDtnXuMXFUdx+/uzs7M7szudAtECGJRIMRQbUAithQWkGAKiVhNpFVRRAmIQVCDkDYICGotIA9BTCz8IeUviv7BQ2PBtBIRLBBQIWAUsKg1BKxRAqIgfs/cc+aeOXPej3tnZX7JJ/dxzj3nd36/8753Z5fUsuxgsAwcAU4Gp4BPgM+Cd4P3RjieDs4G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+6qaVYHwi9Yz4iH2fobIj+45cpz/TUaarr/4+z+vaWtVtyAX2d1LG8W9C3f+F1mnf36/k4w3YPrLv+XBVXCJs3cr+n4MKJuLv/fN9GhNdXVP5pJMN9vFi3rpv3/r8Ywg3SYp66zNOsO8QGcxPpnmRS/1mvmJjju3v7absI2xspQrvs1dNbjOj/wP7h1RlZyKGy8occ408UL8En4v6xfC/K3z52XzJd62T8vuZGGsxo/6O46ntmNqqFb/jps2/hHV4rPKH0svT4pstU7t2tZ9u/ZdqbJL1MwP6O86Fyt4jYaIrGz9mjEt8lFL4PtVE6votG2P6fpdf/GZRse7s3bf4BtSl/DIbKMctx++Z+8o6K6z9FPOwKsRmXiaNl7C+6NYRpjlbqG1j72f49qsuY4brd/amb4ZVc8TQ+sSH985LrEe8iPWJnfPrJRbWbb+dwn4x6o+r/aS2S7w3qWt//LnYz2ntE0vH1uDcyKatx1rH+EiMPEN1SZG/iz6+9o01Rob6O7Q+xLZ1jHobK61U+pWVvo2EpuWqzzD6Poa+pvhli0wn8Zq/72Mzm2d90o5VN1x9ZKuzbTgvqWwUIin8FSpl1CXXvFRxU0iozVPYJDRtF3uFphn6XAyJUUdD7SjTJ8v6n9fVbVObkKWp001lc9VRlqdOf5v0ZM+bymdbfp1NfG0bq27Y5JMyfxeJkU6o/inKH8O2Zfgidb6h/g3VJ7QcVbWL0Pxt6rlrPqa4KfQ25a2zl4/E8GdM/4fK/wA=")),Dj=new r_.default(Bf(a6)),ci=class extends Js{static planFeatures(e){e.addStage(Pj),e.addStage(["locl","ccmp"]),e.addStage(Bj),e.addStage("nukt"),e.addStage("akhn"),e.addStage("rphf",!1),e.addStage("rkrf"),e.addStage("pref",!1),e.addStage("blwf",!1),e.addStage("abvf",!1),e.addStage("half",!1),e.addStage("pstf",!1),e.addStage("vatu"),e.addStage("cjct"),e.addStage("cfar",!1),e.addStage(Nj),e.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),e.unicodeScript=CZ(e.script),e.indicConfig=l6[e.unicodeScript]||l6.Default,e.isOldSpec=e.indicConfig.hasOldSpec&&e.script[e.script.length-1]!=="2"}static assignFeatures(e,t){for(let i=t.length-1;i>=0;i--){let r=t[i].codePoints[0],n=Tj[r]||Ij[r];if(n){let s=n.map(a=>{let o=e.font.glyphForCodePoint(a);return new ls(e.font,o.id,[a],t[i].features)});t.splice(i,1,...s)}}}};ar(ci,"zeroMarkWidths","NONE");function ey(e){return u6.get(e.codePoints[0])>>8}function c6(e){return 1<<(u6.get(e.codePoints[0])&255)}var rh=class{constructor(e,t,i,r){this.category=e,this.position=t,this.syllableType=i,this.syllable=r}};function Pj(e,t){let i=0,r=0;for(let[n,s,a]of Dj.match(t.map(ey))){if(n>r){++i;for(let o=r;o<n;o++)t[o].shaperInfo=new rh(pe.X,Yt.End,"non_indic_cluster",i)}++i;for(let o=n;o<=s;o++)t[o].shaperInfo=new rh(1<<ey(t[o]),c6(t[o]),a[0],i);r=s+1}if(r<t.length){++i;for(let n=r;n<t.length;n++)t[n].shaperInfo=new rh(pe.X,Yt.End,"non_indic_cluster",i)}}function Za(e){return e.shaperInfo.category&Aj}function Tn(e){return e.shaperInfo.category&o6}function cs(e){return e.shaperInfo.category&zu}function ds(e,t){for(let r of e)r.features={[t]:!0};return e[0]._font._layoutEngine.engine.GSUBProcessor.applyFeatures([t],e),e.length===1}function Fj(e,t,i){let r=[i,t,i];return ds(r.slice(0,2),"blwf")||ds(r.slice(1,3),"blwf")?Yt.Below_C:ds(r.slice(0,2),"pstf")||ds(r.slice(1,3),"pstf")||ds(r.slice(0,2),"pref")||ds(r.slice(1,3),"pref")?Yt.Post_C:Yt.Base_C}function Bj(e,t,i){let r=i.indicConfig,n=e._layoutEngine.engine.GSUBProcessor.features,s=e.glyphForCodePoint(9676).id,a=e.glyphForCodePoint(r.virama).id;if(a){let o=new ls(e,a,[r.virama]);for(let l=0;l<t.length;l++)t[l].shaperInfo.position===Yt.Base_C&&(t[l].shaperInfo.position=Fj(e,t[l].copy(),o))}for(let o=0,l=nh(t,0);o<t.length;o=l,l=nh(t,o)){let{category:u,syllableType:c}=t[o].shaperInfo;if(c==="symbol_cluster"||c==="non_indic_cluster")continue;if(c==="broken_cluster"&&s){let x=new ls(e,s,[9676]);x.shaperInfo=new rh(1<<ey(x),c6(x),t[o].shaperInfo.syllableType,t[o].shaperInfo.syllable);let S=o;for(;S<l&&t[S].shaperInfo.category===pe.Repha;)S++;t.splice(S++,0,x),l++}let d=l,f=o,h=!1;if(r.rephPos!==Yt.Ra_To_Become_Reph&&n.rphf&&o+3<=l&&(r.rephMode==="Implicit"&&!Tn(t[o+2])||r.rephMode==="Explicit"&&t[o+2].shaperInfo.category===pe.ZWJ)){let x=[t[o].copy(),t[o+1].copy(),t[o+2].copy()];if(ds(x.slice(0,2),"rphf")||r.rephMode==="Explicit"&&ds(x,"rphf")){for(f+=2;f<l&&Tn(t[f]);)f++;d=o,h=!0}}else if(r.rephMode==="Log_Repha"&&t[o].shaperInfo.category===pe.Repha){for(f++;f<l&&Tn(t[f]);)f++;d=o,h=!0}switch(r.basePos){case"Last":{let x=l,S=!1;do{let _=t[--x].shaperInfo;if(Za(t[x])){if(_.position!==Yt.Below_C&&(_.position!==Yt.Post_C||S)){d=x;break}_.position===Yt.Below_C&&(S=!0),d=x}else if(o<x&&_.category===pe.ZWJ&&t[x-1].shaperInfo.category===pe.H)break}while(x>f);break}case"First":d=o;for(let x=d+1;x<l;x++)Za(t[x])&&(t[x].shaperInfo.position=Yt.Below_C)}h&&d===o&&f-d<=2&&(h=!1);for(let x=o;x<d;x++){let S=t[x].shaperInfo;S.position=Math.min(Yt.Pre_C,S.position)}d<l&&(t[d].shaperInfo.position=Yt.Base_C);for(let x=d+1;x<l;x++)if(t[x].shaperInfo.category===pe.M){for(let S=x+1;S<l;S++)if(Za(t[S])){t[S].shaperInfo.position=Yt.Final_C;break}break}if(h&&(t[o].shaperInfo.position=Yt.Ra_To_Become_Reph),i.isOldSpec){let x=i.unicodeScript!=="Malayalam";for(let S=d+1;S<l;S++)if(t[S].shaperInfo.category===pe.H){let _;for(_=l-1;_>S&&!(Za(t[_])||x&&t[_].shaperInfo.category===pe.H);_--);if(t[_].shaperInfo.category!==pe.H&&_>S){let k=t[S];t.splice(S,0,...t.splice(S+1,_-S)),t[_]=k}break}}let p=Yt.Start;for(let x=o;x<l;x++){let S=t[x].shaperInfo;if(S.category&(o6|pe.N|pe.RS|pe.CM|zu&S.category)){if(S.position=p,S.category===pe.H&&S.position===Yt.Pre_M){for(let _=x;_>o;_--)if(t[_-1].shaperInfo.position!==Yt.Pre_M){S.position=t[_-1].shaperInfo.position;break}}}else S.position!==Yt.SMVD&&(p=S.position)}let g=d;for(let x=d+1;x<l;x++)if(Za(t[x])){for(let S=g+1;S<x;S++)t[S].shaperInfo.position<Yt.SMVD&&(t[S].shaperInfo.position=t[x].shaperInfo.position);g=x}else t[x].shaperInfo.category===pe.M&&(g=x);let y=t.slice(o,l);y.sort((x,S)=>x.shaperInfo.position-S.shaperInfo.position),t.splice(o,y.length,...y);for(let x=o;x<l;x++)if(t[x].shaperInfo.position===Yt.Base_C){d=x;break}for(let x=o;x<l&&t[x].shaperInfo.position===Yt.Ra_To_Become_Reph;x++)t[x].features.rphf=!0;let v=!i.isOldSpec&&r.blwfMode==="Pre_And_Post";for(let x=o;x<d;x++)t[x].features.half=!0,v&&(t[x].features.blwf=!0);for(let x=d+1;x<l;x++)t[x].features.abvf=!0,t[x].features.pstf=!0,t[x].features.blwf=!0;if(i.isOldSpec&&i.unicodeScript==="Devanagari")for(let x=o;x+1<d;x++)t[x].shaperInfo.category===pe.Ra&&t[x+1].shaperInfo.category===pe.H&&(x+1===d||t[x+2].shaperInfo.category===pe.ZWJ)&&(t[x].features.blwf=!0,t[x+1].features.blwf=!0);let C=2;if(n.pref&&d+C<l)for(let x=d+1;x+C-1<l;x++){let S=[t[x].copy(),t[x+1].copy()];if(ds(S,"pref")){for(let _=0;_<C;_++)t[x++].features.pref=!0;if(n.cfar)for(;x<l;x++)t[x].features.cfar=!0;break}}for(let x=o+1;x<l;x++)if(Tn(t[x])){let S=t[x].shaperInfo.category===pe.ZWNJ,_=x;do _--,S&&delete t[_].features.half;while(_>o&&!Za(t[_]))}}}function Nj(e,t,i){let r=i.indicConfig,n=e._layoutEngine.engine.GSUBProcessor.features;for(let s=0,a=nh(t,0);s<t.length;s=a,a=nh(t,s)){let o=!!n.pref,l=s;for(;l<a;l++)if(t[l].shaperInfo.position>=Yt.Base_C){if(o&&l+1<a){for(let u=l+1;u<a;u++)if(t[u].features.pref){if(!(t[u].substituted&&t[u].isLigated&&!t[u].isMultiplied)){for(l=u;l<a&&cs(t[l]);)l++;t[l].shaperInfo.position=Yt.BASE_C,o=!1}break}}if(i.unicodeScript==="Malayalam")for(let u=l+1;u<a;u++){for(;u<a&&Tn(t[u]);)u++;if(u===a||!cs(t[u]))break;for(u++;u<a&&Tn(t[u]);)u++;u<a&&Za(t[u])&&t[u].shaperInfo.position===Yt.Below_C&&(l=u,t[l].shaperInfo.position=Yt.Base_C)}s<l&&t[l].shaperInfo.position>Yt.Base_C&&l--;break}if(l===a&&s<l&&t[l-1].shaperInfo.category===pe.ZWJ&&l--,l<a)for(;s<l&&t[l].shaperInfo.category&(pe.N|zu);)l--;if(s+1<a&&s<l){let u=l===a?l-2:l-1;if(i.unicodeScript!=="Malayalam"&&i.unicodeScript!=="Tamil"){for(;u>s&&!(t[u].shaperInfo.category&(pe.M|zu));)u--;cs(t[u])&&t[u].shaperInfo.position!==Yt.Pre_M?u+1<a&&Tn(t[u+1])&&u++:u=s}if(s<u&&t[u].shaperInfo.position!==Yt.Pre_M){for(let c=u;c>s;c--)if(t[c-1].shaperInfo.position===Yt.Pre_M){let d=c-1;d<l&&l<=u&&l--;let f=t[d];t.splice(d,0,...t.splice(d+1,u-d)),t[u]=f,u--}}}if(s+1<a&&t[s].shaperInfo.position===Yt.Ra_To_Become_Reph&&t[s].shaperInfo.category===pe.Repha!==(t[s].isLigated&&!t[s].isMultiplied)){let u,c=r.rephPos,d=!1;if(c!==Yt.After_Post){for(u=s+1;u<l&&!cs(t[u]);)u++;if(u<l&&cs(t[u])&&(u+1<l&&Tn(t[u+1])&&u++,d=!0),!d&&c===Yt.After_Main){for(u=l;u+1<a&&t[u+1].shaperInfo.position<=Yt.After_Main;)u++;d=u<a}if(!d&&c===Yt.After_Sub){for(u=l;u+1<a&&!(t[u+1].shaperInfo.position&(Yt.Post_C|Yt.After_Post|Yt.SMVD));)u++;d=u<a}}if(!d){for(u=s+1;u<l&&!cs(t[u]);)u++;u<l&&cs(t[u])&&(u+1<l&&Tn(t[u+1])&&u++,d=!0)}if(!d){for(u=a-1;u>s&&t[u].shaperInfo.position===Yt.SMVD;)u--;if(cs(t[u]))for(let h=l+1;h<u;h++)t[h].shaperInfo.category===pe.M&&u--}let f=t[s];t.splice(s,0,...t.splice(s+1,u-s)),t[u]=f,s<l&&l<=u&&l--}if(o&&l+1<a){for(let u=l+1;u<a;u++)if(t[u].features.pref){if(t[u].isLigated&&!t[u].isMultiplied){let c=l;if(i.unicodeScript!=="Malayalam"&&i.unicodeScript!=="Tamil"){for(;c>s&&!(t[c-1].shaperInfo.category&(pe.M|zu));)c--;if(c>s&&t[c-1].shaperInfo.category===pe.M){let h=u;for(let p=l+1;p<h;p++)if(t[p].shaperInfo.category===pe.M){c--;break}}}c>s&&cs(t[c-1])&&c<a&&Tn(t[c])&&c++;let d=u,f=t[d];t.splice(c+1,0,...t.splice(c,d-c)),t[c]=f,c<=l&&l<d&&l++}break}}t[s].shaperInfo.position===Yt.Pre_M&&(!s||!/Cf|Mn/.test(Ff(t[s-1].codePoints[0])))&&(t[s].features.init=!0)}}function nh(e,t){if(t>=e.length)return t;let i=e[t].shaperInfo.syllable;for(;++t<e.length&&e[t].shaperInfo.syllable===i;);return t}var{categories:Mj,decompositions:d6}=Bf(ih),zj=new Dg.default(Gg("AAACAAAAAAAQugAAAQUO+vHtnHuMX0UVx2d3u/t7bXe7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2ykOh3pfq96Wkq/E8qu2xl88/tOJ4R3tfmpbGi3c5T859bzqr7MbsN03iI5itUNj5eaEKWqIX/KJCQ/iFWNZMmHXs8ovWk53JzFq5vPul6zDjLV36pX7bzvNzB0YlQOZephWtRS5T7eeSq8030R77/HvC1d7tN83Zt9yltrDdwSR0XxsZd5l+MvvvU1/M9jSnj+Nh6FPJbBld/w6XHXH5MZeXrOfS/65g9RTl1JCa8chzX2RZ9/3lXSh4/VqWfEBNq4b82Ytp6m+9Qqxir1jX+rfPdT1vvsWhM6bPbmON6E1LnPCZW7L0qqXswmtqf0MQelZj4myrzYtzvIYmURlvtqapyx+gzRfd0XPfahVSOquMoG+dibBdl46iyfdbV1qvUW9m8+KTudMvkzZe/pqTJ+pWTflX5zw1fVfox6ZTVc8hvHflOSb+OuG1JsZ0kufXAJf8D")),Oj=new r_.default(Bf(ih)),ce=class extends Js{static planFeatures(e){e.addStage(Vj),e.addStage(["locl","ccmp","nukt","akhn"]),e.addStage(h6),e.addStage(["rphf"],!1),e.addStage(Lj),e.addStage(h6),e.addStage(["pref"]),e.addStage($j),e.addStage(["rkrf","abvf","blwf","half","pstf","vatu","cjct"]),e.addStage(Uj),e.addStage(["abvs","blws","pres","psts","dist","abvm","blwm"])}static assignFeatures(e,t){for(let i=t.length-1;i>=0;i--){let r=t[i].codePoints[0];if(d6[r]){let n=d6[r].map(s=>{let a=e.font.glyphForCodePoint(s);return new ls(e.font,a.id,[s],t[i].features)});t.splice(i,1,...n)}}}};ar(ce,"zeroMarkWidths","BEFORE_GPOS");function f6(e){return zj.get(e.codePoints[0])}var Rj=class{constructor(e,t,i){this.category=e,this.syllableType=t,this.syllable=i}};function Vj(e,t){let i=0;for(let[r,n,s]of Oj.match(t.map(f6))){++i;for(let o=r;o<=n;o++)t[o].shaperInfo=new Rj(Mj[f6(t[o])],s[0],i);let a=t[r].shaperInfo.category==="R"?1:Math.min(3,n-r);for(let o=r;o<r+a;o++)t[o].features.rphf=!0}}function h6(e,t){for(let i of t)i.substituted=!1}function Lj(e,t){for(let i of t)i.substituted&&i.features.rphf&&(i.shaperInfo.category="R")}function $j(e,t){for(let i of t)i.substituted&&(i.shaperInfo.category="VPre")}function Uj(e,t){let i=e.glyphForCodePoint(9676).id;for(let r=0,n=p6(t,0);r<t.length;r=n,n=p6(t,r)){let s,a,o=t[r].shaperInfo,l=o.syllableType;if(!(l!=="virama_terminated_cluster"&&l!=="standard_cluster"&&l!=="broken_cluster")){if(l==="broken_cluster"&&i){let u=new ls(e,i,[9676]);for(u.shaperInfo=o,s=r;s<n&&t[s].shaperInfo.category==="R";s++);t.splice(++s,0,u),n++}if(o.category==="R"&&n-r>1){for(s=r+1;s<n;s++)if(o=t[s].shaperInfo,m6(o)||sh(t[s])){sh(t[s])&&s--,t.splice(r,0,...t.splice(r+1,s-r),t[s]);break}}for(s=r,a=n;s<n;s++)o=t[s].shaperInfo,m6(o)||sh(t[s])?a=sh(t[s])?s+1:s:(o.category==="VPre"||o.category==="VMPre")&&a<s&&t.splice(a,1,t[s],...t.splice(a,s-a))}}}function p6(e,t){if(t>=e.length)return t;let i=e[t].shaperInfo.syllable;for(;++t<e.length&&e[t].shaperInfo.syllable===i;);return t}function sh(e){return e.shaperInfo.category==="H"&&!e.isLigated}function m6(e){return e.category==="B"||e.category==="GB"}var Zj={arab:ta,mong:ta,syrc:ta,"nko ":ta,phag:ta,mand:ta,mani:ta,phlp:ta,hang:e6,bng2:ci,beng:ci,dev2:ci,deva:ci,gjr2:ci,gujr:ci,guru:ci,gur2:ci,knda:ci,knd2:ci,mlm2:ci,mlym:ci,ory2:ci,orya:ci,taml:ci,tml2:ci,telu:ci,tel2:ci,khmr:ci,bali:ce,batk:ce,brah:ce,bugi:ce,buhd:ce,cakm:ce,cham:ce,dupl:ce,egyp:ce,gran:ce,hano:ce,java:ce,kthi:ce,kali:ce,khar:ce,khoj:ce,sind:ce,lepc:ce,limb:ce,mahj:ce,mtei:ce,modi:ce,hmng:ce,rjng:ce,saur:ce,shrd:ce,sidd:ce,sinh:ci,sund:ce,sylo:ce,tglg:ce,tagb:ce,tale:ce,lana:ce,tavt:ce,takr:ce,tibt:ce,tfng:ce,tirh:ce,latn:Js,DFLT:Js};function jj(e){Array.isArray(e)||(e=[e]);for(let t of e){let i=Zj[t];if(i)return i}return Js}var Wj=class extends Yf{applyLookup(e,t){switch(e){case 1:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;let n=this.glyphIterator.cur;switch(t.version){case 1:n.id=n.id+t.deltaGlyphID&65535;break;case 2:n.id=t.substitute.get(r);break}return!0}case 2:{let r=this.coverageIndex(t.coverage);if(r!==-1){let n=t.sequences.get(r);if(n.length===0)return this.glyphs.splice(this.glyphIterator.index,1),!0;this.glyphIterator.cur.id=n[0],this.glyphIterator.cur.ligatureComponent=0;let s=this.glyphIterator.cur.features,a=this.glyphIterator.cur,o=n.slice(1).map((l,u)=>{let c=new ls(this.font,l,void 0,s);return c.shaperInfo=a.shaperInfo,c.isLigated=a.isLigated,c.ligatureComponent=u+1,c.substituted=!0,c.isMultiplied=!0,c});return this.glyphs.splice(this.glyphIterator.index+1,0,...o),!0}return!1}case 3:{let r=this.coverageIndex(t.coverage);if(r!==-1){let n=0;return this.glyphIterator.cur.id=t.alternateSet.get(r)[n],!0}return!1}case 4:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;for(let n of t.ligatureSets.get(r)){let s=this.sequenceMatchIndices(1,n.components);if(!s)continue;let a=this.glyphIterator.cur,o=a.codePoints.slice();for(let p of s)o.push(...this.glyphs[p].codePoints);let l=new ls(this.font,n.glyph,o,a.features);l.shaperInfo=a.shaperInfo,l.isLigated=!0,l.substituted=!0;let u=a.isMark;for(let p=0;p<s.length&&u;p++)u=this.glyphs[s[p]].isMark;l.ligatureID=u?null:this.ligatureID++;let c=a.ligatureID,d=a.codePoints.length,f=d,h=this.glyphIterator.index+1;for(let p of s){if(u)h=p;else for(;h<p;){var i=f-d+Math.min(this.glyphs[h].ligatureComponent||1,d);this.glyphs[h].ligatureID=l.ligatureID,this.glyphs[h].ligatureComponent=i,h++}c=this.glyphs[h].ligatureID,d=this.glyphs[h].codePoints.length,f+=d,h++}if(c&&!u)for(let p=h;p<this.glyphs.length&&this.glyphs[p].ligatureID===c;p++){var i=f-d+Math.min(this.glyphs[p].ligatureComponent||1,d);this.glyphs[p].ligatureComponent=i}for(let p=s.length-1;p>=0;p--)this.glyphs.splice(s[p],1);return this.glyphs[this.glyphIterator.index]=l,!0}return!1}case 5:return this.applyContext(t);case 6:return this.applyChainingContext(t);case 7:return this.applyLookup(t.lookupType,t.extension);default:throw new Error(`GSUB lookupType ${e} is not supported`)}}},Gj=class extends Yf{applyPositionValue(e,t){let i=this.positions[this.glyphIterator.peekIndex(e)];t.xAdvance!=null&&(i.xAdvance+=t.xAdvance),t.yAdvance!=null&&(i.yAdvance+=t.yAdvance),t.xPlacement!=null&&(i.xOffset+=t.xPlacement),t.yPlacement!=null&&(i.yOffset+=t.yPlacement);let r=this.font._variationProcessor,n=this.font.GDEF&&this.font.GDEF.itemVariationStore;r&&n&&(t.xPlaDevice&&(i.xOffset+=r.getDelta(n,t.xPlaDevice.a,t.xPlaDevice.b)),t.yPlaDevice&&(i.yOffset+=r.getDelta(n,t.yPlaDevice.a,t.yPlaDevice.b)),t.xAdvDevice&&(i.xAdvance+=r.getDelta(n,t.xAdvDevice.a,t.xAdvDevice.b)),t.yAdvDevice&&(i.yAdvance+=r.getDelta(n,t.yAdvDevice.a,t.yAdvDevice.b)))}applyLookup(e,t){switch(e){case 1:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;switch(t.version){case 1:this.applyPositionValue(0,t.value);break;case 2:this.applyPositionValue(0,t.values.get(r));break}return!0}case 2:{let r=this.glyphIterator.peek();if(!r)return!1;let n=this.coverageIndex(t.coverage);if(n===-1)return!1;switch(t.version){case 1:let s=t.pairSets.get(n);for(let l of s)if(l.secondGlyph===r.id)return this.applyPositionValue(0,l.value1),this.applyPositionValue(1,l.value2),!0;return!1;case 2:let a=this.getClassID(this.glyphIterator.cur.id,t.classDef1),o=this.getClassID(r.id,t.classDef2);if(a===-1||o===-1)return!1;var i=t.classRecords.get(a).get(o);return this.applyPositionValue(0,i.value1),this.applyPositionValue(1,i.value2),!0}}case 3:{let r=this.glyphIterator.peekIndex(),n=this.glyphs[r];if(!n)return!1;let s=t.entryExitRecords[this.coverageIndex(t.coverage)];if(!s||!s.exitAnchor)return!1;let a=t.entryExitRecords[this.coverageIndex(t.coverage,n.id)];if(!a||!a.entryAnchor)return!1;let o=this.getAnchor(a.entryAnchor),l=this.getAnchor(s.exitAnchor),u=this.positions[this.glyphIterator.index],c=this.positions[r],d;switch(this.direction){case"ltr":u.xAdvance=l.x+u.xOffset,d=o.x+c.xOffset,c.xAdvance-=d,c.xOffset-=d;break;case"rtl":d=l.x+u.xOffset,u.xAdvance-=d,u.xOffset-=d,c.xAdvance=o.x+c.xOffset;break}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=r,u.yOffset=o.y-l.y):(n.cursiveAttachment=this.glyphIterator.index,u.yOffset=l.y-o.y),!0}case 4:{let r=this.coverageIndex(t.markCoverage);if(r===-1)return!1;let n=this.glyphIterator.index;for(;--n>=0&&(this.glyphs[n].isMark||this.glyphs[n].ligatureComponent>0););if(n<0)return!1;let s=this.coverageIndex(t.baseCoverage,this.glyphs[n].id);if(s===-1)return!1;let a=t.markArray[r],o=t.baseArray[s][a.class];return this.applyAnchor(a,o,n),!0}case 5:{let r=this.coverageIndex(t.markCoverage);if(r===-1)return!1;let n=this.glyphIterator.index;for(;--n>=0&&this.glyphs[n].isMark;);if(n<0)return!1;let s=this.coverageIndex(t.ligatureCoverage,this.glyphs[n].id);if(s===-1)return!1;let a=t.ligatureArray[s],o=this.glyphIterator.cur,l=this.glyphs[n],u=l.ligatureID&&l.ligatureID===o.ligatureID&&o.ligatureComponent>0?Math.min(o.ligatureComponent,l.codePoints.length)-1:l.codePoints.length-1,c=t.markArray[r],d=a[u][c.class];return this.applyAnchor(c,d,n),!0}case 6:{let r=this.coverageIndex(t.mark1Coverage);if(r===-1)return!1;let n=this.glyphIterator.peekIndex(-1),s=this.glyphs[n];if(!s||!s.isMark)return!1;let a=this.glyphIterator.cur,o=!1;if(a.ligatureID===s.ligatureID?a.ligatureID?a.ligatureComponent===s.ligatureComponent&&(o=!0):o=!0:(a.ligatureID&&!a.ligatureComponent||s.ligatureID&&!s.ligatureComponent)&&(o=!0),!o)return!1;let l=this.coverageIndex(t.mark2Coverage,s.id);if(l===-1)return!1;let u=t.mark1Array[r],c=t.mark2Array[l][u.class];return this.applyAnchor(u,c,n),!0}case 7:return this.applyContext(t);case 8:return this.applyChainingContext(t);case 9:return this.applyLookup(t.lookupType,t.extension);default:throw new Error(`Unsupported GPOS table: ${e}`)}}applyAnchor(e,t,i){let r=this.getAnchor(t),n=this.getAnchor(e.markAnchor);this.positions[i];let s=this.positions[this.glyphIterator.index];s.xOffset=r.x-n.x,s.yOffset=r.y-n.y,this.glyphIterator.cur.markAttachment=i}getAnchor(e){let t=e.xCoordinate,i=e.yCoordinate,r=this.font._variationProcessor,n=this.font.GDEF&&this.font.GDEF.itemVariationStore;return r&&n&&(e.xDeviceTable&&(t+=r.getDelta(n,e.xDeviceTable.a,e.xDeviceTable.b)),e.yDeviceTable&&(i+=r.getDelta(n,e.yDeviceTable.a,e.yDeviceTable.b))),{x:t,y:i}}applyFeatures(e,t,i){super.applyFeatures(e,t,i);for(var r=0;r<this.glyphs.length;r++)this.fixCursiveAttachment(r);this.fixMarkAttachment()}fixCursiveAttachment(e){let t=this.glyphs[e];if(t.cursiveAttachment!=null){let i=t.cursiveAttachment;t.cursiveAttachment=null,this.fixCursiveAttachment(i),this.positions[e].yOffset+=this.positions[i].yOffset}}fixMarkAttachment(){for(let e=0;e<this.glyphs.length;e++){let t=this.glyphs[e];if(t.markAttachment!=null){let i=t.markAttachment;if(this.positions[e].xOffset+=this.positions[i].xOffset,this.positions[e].yOffset+=this.positions[i].yOffset,this.direction==="ltr")for(let r=i;r<e;r++)this.positions[e].xOffset-=this.positions[r].xAdvance,this.positions[e].yOffset-=this.positions[r].yAdvance;else for(let r=i+1;r<e+1;r++)this.positions[e].xOffset+=this.positions[r].xAdvance,this.positions[e].yOffset+=this.positions[r].yAdvance}}}},Hj=class{setup(e){this.glyphInfos=e.glyphs.map(i=>new ls(this.font,i.id,[...i.codePoints]));let t=null;this.GPOSProcessor&&(t=this.GPOSProcessor.selectScript(e.script,e.language,e.direction)),this.GSUBProcessor&&(t=this.GSUBProcessor.selectScript(e.script,e.language,e.direction)),this.shaper=jj(t),this.plan=new HZ(this.font,t,e.direction),this.shaper.plan(this.plan,this.glyphInfos,e.features);for(let i in this.plan.allFeatures)e.features[i]=!0}substitute(e){this.GSUBProcessor&&(this.plan.process(this.GSUBProcessor,this.glyphInfos),e.glyphs=this.glyphInfos.map(t=>this.font.getGlyph(t.id,t.codePoints)))}position(e){return this.shaper.zeroMarkWidths==="BEFORE_GPOS"&&this.zeroMarkAdvances(e.positions),this.GPOSProcessor&&this.plan.process(this.GPOSProcessor,this.glyphInfos,e.positions),this.shaper.zeroMarkWidths==="AFTER_GPOS"&&this.zeroMarkAdvances(e.positions),e.direction==="rtl"&&(e.glyphs.reverse(),e.positions.reverse()),this.GPOSProcessor&&this.GPOSProcessor.features}zeroMarkAdvances(e){for(let t=0;t<this.glyphInfos.length;t++)this.glyphInfos[t].isMark&&(e[t].xAdvance=0,e[t].yAdvance=0)}cleanup(){this.glyphInfos=null,this.plan=null,this.shaper=null}getAvailableFeatures(e,t){let i=[];return this.GSUBProcessor&&(this.GSUBProcessor.selectScript(e,t),i.push(...Object.keys(this.GSUBProcessor.features))),this.GPOSProcessor&&(this.GPOSProcessor.selectScript(e,t),i.push(...Object.keys(this.GPOSProcessor.features))),i}constructor(e){this.font=e,this.glyphInfos=null,this.plan=null,this.GSUBProcessor=null,this.GPOSProcessor=null,this.fallbackPosition=!0,e.GSUB&&(this.GSUBProcessor=new Wj(e,e.GSUB)),e.GPOS&&(this.GPOSProcessor=new Gj(e,e.GPOS))}},qj=class{layout(e,t,i,r,n){if(typeof t=="string"&&(n=r,r=i,i=t,t=[]),typeof e=="string"){i==null&&(i=kZ(e));var s=this.font.glyphsForString(e)}else{if(i==null){let l=[];for(let u of e)l.push(...u.codePoints);i=SZ(l)}var s=e}let a=new EZ(s,t,i,r,n);return s.length===0?(a.positions=[],a):(this.engine&&this.engine.setup&&this.engine.setup(a),this.substitute(a),this.position(a),this.hideDefaultIgnorables(a.glyphs,a.positions),this.engine&&this.engine.cleanup&&this.engine.cleanup(),a)}substitute(e){this.engine&&this.engine.substitute&&this.engine.substitute(e)}position(e){e.positions=e.glyphs.map(i=>new AZ(i.advanceWidth));let t=null;this.engine&&this.engine.position&&(t=this.engine.position(e)),!t&&(!this.engine||this.engine.fallbackPosition)&&(this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new xZ(this.font)),this.unicodeLayoutEngine.positionGlyphs(e.glyphs,e.positions)),(!t||!t.kern)&&e.features.kern!==!1&&this.font.kern&&(this.kernProcessor||(this.kernProcessor=new wZ(this.font)),this.kernProcessor.process(e.glyphs,e.positions),e.features.kern=!0)}hideDefaultIgnorables(e,t){let i=this.font.glyphForCodePoint(32);for(let r=0;r<e.length;r++)this.isDefaultIgnorable(e[r].codePoints[0])&&(e[r]=i,t[r].xAdvance=0,t[r].yAdvance=0)}isDefaultIgnorable(e){let t=e>>16;if(t===0)switch(e>>8){case 0:return e===173;case 3:return e===847;case 6:return e===1564;case 23:return 6068<=e&&e<=6069;case 24:return 6155<=e&&e<=6158;case 32:return 8203<=e&&e<=8207||8234<=e&&e<=8238||8288<=e&&e<=8303;case 254:return 65024<=e&&e<=65039||e===65279;case 255:return 65520<=e&&e<=65528;default:return!1}else switch(t){case 1:return 113824<=e&&e<=113827||119155<=e&&e<=119162;case 14:return 917504<=e&&e<=921599;default:return!1}}getAvailableFeatures(e,t){let i=[];return this.engine&&i.push(...this.engine.getAvailableFeatures(e,t)),this.font.kern&&i.indexOf("kern")===-1&&i.push("kern"),i}stringsForGlyph(e){let t=new Set,i=this.font._cmapProcessor.codePointsForGlyph(e);for(let r of i)t.add(String.fromCodePoint(r));if(this.engine&&this.engine.stringsForGlyph)for(let r of this.engine.stringsForGlyph(e))t.add(r);return Array.from(t)}constructor(e){this.font=e,this.unicodeLayoutEngine=null,this.kernProcessor=null,this.font.morx?this.engine=new GZ(this.font):(this.font.GSUB||this.font.GPOS)&&(this.engine=new Hj(this.font))}},Yj={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},ah=class QI{toFunction(){return t=>{this.commands.forEach(i=>t[i.command].apply(t,i.args))}}toSVG(){return this.commands.map(i=>{let r=i.args.map(n=>Math.round(n*100)/100);return`${Yj[i.command]}${r.join(" ")}`}).join("")}get cbox(){if(!this._cbox){let t=new Wo;for(let i of this.commands)for(let r=0;r<i.args.length;r+=2)t.addPoint(i.args[r],i.args[r+1]);this._cbox=Object.freeze(t)}return this._cbox}get bbox(){if(this._bbox)return this._bbox;let t=new Wo,i=0,r=0,n=C=>Math.pow(1-C,3)*h[v]+3*Math.pow(1-C,2)*C*p[v]+3*(1-C)*Math.pow(C,2)*g[v]+Math.pow(C,3)*y[v];for(let C of this.commands)switch(C.command){case"moveTo":case"lineTo":let[x,S]=C.args;t.addPoint(x,S),i=x,r=S;break;case"quadraticCurveTo":case"bezierCurveTo":if(C.command==="quadraticCurveTo")var[s,a,d,f]=C.args,o=i+2/3*(s-i),l=r+2/3*(a-r),u=d+2/3*(s-d),c=f+2/3*(a-f);else var[o,l,u,c,d,f]=C.args;t.addPoint(d,f);for(var h=[i,r],p=[o,l],g=[u,c],y=[d,f],v=0;v<=1;v++){let _=6*h[v]-12*p[v]+6*g[v],k=-3*h[v]+9*p[v]-9*g[v]+3*y[v];if(C=3*p[v]-3*h[v],k===0){if(_===0)continue;let I=-C/_;0<I&&I<1&&(v===0?t.addPoint(n(I),t.maxY):v===1&&t.addPoint(t.maxX,n(I)));continue}let F=Math.pow(_,2)-4*C*k;if(F<0)continue;let T=(-_+Math.sqrt(F))/(2*k);0<T&&T<1&&(v===0?t.addPoint(n(T),t.maxY):v===1&&t.addPoint(t.maxX,n(T)));let P=(-_-Math.sqrt(F))/(2*k);0<P&&P<1&&(v===0?t.addPoint(n(P),t.maxY):v===1&&t.addPoint(t.maxX,n(P)))}i=d,r=f;break}return this._bbox=Object.freeze(t)}mapPoints(t){let i=new QI;for(let r of this.commands){let n=[];for(let s=0;s<r.args.length;s+=2){let[a,o]=t(r.args[s],r.args[s+1]);n.push(a,o)}i[r.command](...n)}return i}transform(t,i,r,n,s,a){return this.mapPoints((o,l)=>{const u=t*o+r*l+s,c=i*o+n*l+a;return[u,c]})}translate(t,i){return this.transform(1,0,0,1,t,i)}rotate(t){let i=Math.cos(t),r=Math.sin(t);return this.transform(i,r,-r,i,0,0)}scale(t,i=t){return this.transform(t,0,0,i,0,0)}constructor(){this.commands=[],this._bbox=null,this._cbox=null}};for(let e of["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"])ah.prototype[e]=function(...t){return this._bbox=this._cbox=null,this.commands.push({command:e,args:t}),this};var Ou=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"],In=class{_getPath(){return new ah}_getCBox(){return this.path.cbox}_getBBox(){return this.path.bbox}_getTableMetrics(e){if(this.id<e.metrics.length)return e.metrics.get(this.id);let t=e.metrics.get(e.metrics.length-1);return{advance:t?t.advance:0,bearing:e.bearings.get(this.id-e.metrics.length)||0}}_getMetrics(e){if(this._metrics)return this._metrics;let{advance:t,bearing:i}=this._getTableMetrics(this._font.hmtx);if(this._font.vmtx)var{advance:r,bearing:n}=this._getTableMetrics(this._font.vmtx);else{let s;if((typeof e>"u"||e===null)&&({cbox:e}=this),(s=this._font["OS/2"])&&s.version>0)var r=Math.abs(s.typoAscender-s.typoDescender),n=s.typoAscender-e.maxY;else{let{hhea:a}=this._font;var r=Math.abs(a.ascent-a.descent),n=a.ascent-e.maxY}}return this._font._variationProcessor&&this._font.HVAR&&(t+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:t,advanceHeight:r,leftBearing:i,topBearing:n}}get cbox(){return this._getCBox()}get bbox(){return this._getBBox()}get path(){return this._getPath()}getScaledPath(e){let t=1/this._font.unitsPerEm*e;return this.path.scale(t)}get advanceWidth(){return this._getMetrics().advanceWidth}get advanceHeight(){return this._getMetrics().advanceHeight}get ligatureCaretPositions(){}_getName(){let{post:e}=this._font;if(!e)return null;switch(e.version){case 1:return Ou[this.id];case 2:let t=e.glyphNameIndex[this.id];return t<Ou.length?Ou[t]:e.names[t-Ou.length];case 2.5:return Ou[this.id+e.offsets[this.id]];case 4:return String.fromCharCode(e.map[this.id])}}get name(){return this._getName()}render(e,t){e.save();let i=1/this._font.head.unitsPerEm*t;e.scale(i,i),this.path.toFunction()(e),e.fill(),e.restore()}constructor(e,t,i){this.id=e,this.codePoints=t,this._font=i,this.isMark=this.codePoints.length>0&&this.codePoints.every(i_),this.isLigature=this.codePoints.length>1}};Pi([Fi],In.prototype,"cbox",null),Pi([Fi],In.prototype,"bbox",null),Pi([Fi],In.prototype,"path",null),Pi([Fi],In.prototype,"advanceWidth",null),Pi([Fi],In.prototype,"advanceHeight",null),Pi([Fi],In.prototype,"name",null);var g6=new W({numberOfContours:st,xMin:st,yMin:st,xMax:st,yMax:st}),Kj=1,Xj=2,Jj=4,Qj=8,tW=16,eW=32,iW=1,rW=8,y6=32,nW=64,sW=128,aW=256,fs=class t8{copy(){return new t8(this.onCurve,this.endContour,this.x,this.y)}constructor(t,i,r=0,n=0){this.onCurve=t,this.endContour=i,this.x=r,this.y=n}},oW=class{constructor(e,t,i){this.glyphID=e,this.dx=t,this.dy=i,this.pos=0,this.scaleX=this.scaleY=1,this.scale01=this.scale10=0}},oh=class extends In{_getCBox(e){if(this._font._variationProcessor&&!e)return this.path.cbox;let t=this._font._getTableStream("glyf");t.pos+=this._font.loca.offsets[this.id];let i=g6.decode(t),r=new Wo(i.xMin,i.yMin,i.xMax,i.yMax);return Object.freeze(r)}_parseGlyphCoord(e,t,i,r){if(i){var n=e.readUInt8();r||(n=-n),n+=t}else if(r)var n=t;else var n=t+e.readInt16BE();return n}_decode(){let e=this._font.loca.offsets[this.id],t=this._font.loca.offsets[this.id+1];if(e===t)return null;let i=this._font._getTableStream("glyf");i.pos+=e;let r=i.pos,n=g6.decode(i);return n.numberOfContours>0?this._decodeSimple(n,i):n.numberOfContours<0&&this._decodeComposite(n,i,r),n}_decodeSimple(e,t){e.points=[];let i=new V(w,e.numberOfContours).decode(t);e.instructions=new V(vt,w).decode(t);let r=[],n=i[i.length-1]+1;for(;r.length<n;){var s=t.readUInt8();if(r.push(s),s&Qj){let u=t.readUInt8();for(let c=0;c<u;c++)r.push(s)}}for(var a=0;a<r.length;a++){var s=r[a];let c=new fs(!!(s&Kj),i.indexOf(a)>=0,0,0);e.points.push(c)}let o=0;for(var a=0;a<r.length;a++){var s=r[a];e.points[a].x=o=this._parseGlyphCoord(t,o,s&Xj,s&tW)}let l=0;for(var a=0;a<r.length;a++){var s=r[a];e.points[a].y=l=this._parseGlyphCoord(t,l,s&Jj,s&eW)}if(this._font._variationProcessor){let u=e.points.slice();u.push(...this._getPhantomPoints(e)),this._font._variationProcessor.transformPoints(this.id,u),e.phantomPoints=u.slice(-4)}}_decodeComposite(e,t,i=0){e.components=[];let r=!1,n=y6;for(;n&y6;){n=t.readUInt16BE();let l=t.pos-i,u=t.readUInt16BE();if(r||(r=(n&aW)!==0),n&iW)var s=t.readInt16BE(),a=t.readInt16BE();else var s=t.readInt8(),a=t.readInt8();var o=new oW(u,s,a);o.pos=l,n&rW?o.scaleX=o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824:n&nW?(o.scaleX=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824):n&sW&&(o.scaleX=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scale01=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scale10=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824),e.components.push(o)}if(this._font._variationProcessor){let l=[];for(let u=0;u<e.components.length;u++){var o=e.components[u];l.push(new fs(!0,!0,o.dx,o.dy))}l.push(...this._getPhantomPoints(e)),this._font._variationProcessor.transformPoints(this.id,l),e.phantomPoints=l.splice(-4,4);for(let u=0;u<l.length;u++){let c=l[u];e.components[u].dx=c.x,e.components[u].dy=c.y}}return r}_getPhantomPoints(e){let t=this._getCBox(!0);this._metrics==null&&(this._metrics=In.prototype._getMetrics.call(this,t));let{advanceWidth:i,advanceHeight:r,leftBearing:n,topBearing:s}=this._metrics;return[new fs(!1,!0,e.xMin-n,0),new fs(!1,!0,e.xMin-n+i,0),new fs(!1,!0,0,e.yMax+s),new fs(!1,!0,0,e.yMax+s+r)]}_getContours(){let e=this._decode();if(!e)return[];let t=[];if(e.numberOfContours<0)for(let s of e.components){let a=this._font.getGlyph(s.glyphID)._getContours();for(let o=0;o<a.length;o++){let l=a[o];for(let u=0;u<l.length;u++){let c=l[u],d=c.x*s.scaleX+c.y*s.scale01+s.dx,f=c.y*s.scaleY+c.x*s.scale10+s.dy;t.push(new fs(c.onCurve,c.endContour,d,f))}}}else t=e.points||[];e.phantomPoints&&!this._font.directory.tables.HVAR&&(this._metrics.advanceWidth=e.phantomPoints[1].x-e.phantomPoints[0].x,this._metrics.advanceHeight=e.phantomPoints[3].y-e.phantomPoints[2].y,this._metrics.leftBearing=e.xMin-e.phantomPoints[0].x,this._metrics.topBearing=e.phantomPoints[2].y-e.yMax);let i=[],r=[];for(let s=0;s<t.length;s++){var n=t[s];r.push(n),n.endContour&&(i.push(r),r=[])}return i}_getMetrics(){if(this._metrics)return this._metrics;let e=this._getCBox(!0);return super._getMetrics(e),this._font._variationProcessor&&!this._font.HVAR&&this.path,this._metrics}_getPath(){let e=this._getContours(),t=new ah;for(let r=0;r<e.length;r++){let n=e[r],s=n[0],a=n[n.length-1],o=0;if(s.onCurve){var i=null;o=1}else{a.onCurve?s=a:s=new fs(!1,!1,(s.x+a.x)/2,(s.y+a.y)/2);var i=s}t.moveTo(s.x,s.y);for(let l=o;l<n.length;l++){let u=n[l],c=l===0?s:n[l-1];if(c.onCurve&&u.onCurve)t.lineTo(u.x,u.y);else if(c.onCurve&&!u.onCurve)var i=u;else if(!c.onCurve&&!u.onCurve){let f=(c.x+u.x)/2,h=(c.y+u.y)/2;t.quadraticCurveTo(c.x,c.y,f,h);var i=u}else if(!c.onCurve&&u.onCurve){t.quadraticCurveTo(i.x,i.y,u.x,u.y);var i=null}else throw new Error("Unknown TTF path state")}i&&t.quadraticCurveTo(i.x,i.y,s.x,s.y),t.closePath()}return t}constructor(...e){super(...e),ar(this,"type","TTF")}},lW=class extends In{_getName(){return this._font.CFF2?super._getName():this._font["CFF "].getGlyphName(this.id)}bias(e){return e.length<1240?107:e.length<33900?1131:32768}_getPath(){let e=this._font.CFF2||this._font["CFF "],{stream:t}=e,i=e.topDict.CharStrings[this.id],r=i.offset+i.length;t.pos=i.offset;let n=new ah,s=[],a=[],o=null,l=0,u=0,c=0,d,f,h=!1;this._usedGsubrs=d={},this._usedSubrs=f={};let p=e.globalSubrIndex||[],g=this.bias(p),y=e.privateDictForGlyph(this.id)||{},v=y.Subrs||[],C=this.bias(v),x=e.topDict.vstore&&e.topDict.vstore.itemVariationStore,S=y.vsindex,_=this._font._variationProcessor;function k(){o==null&&(o=s.shift()+y.nominalWidthX)}function F(){return s.length%2!==0&&k(),l+=s.length>>1,s.length=0}function T(I,O){h&&n.closePath(),n.moveTo(I,O),h=!0}let P=function(){for(;t.pos<r;){let z=t.readUInt8();if(z<32){let Q,G,dt,ft,mt,H,tt,nt,Ct,Rt,ee,_e,Ae,ye,gi,Ee;switch(z){case 1:case 3:case 18:case 23:F();break;case 4:s.length>1&&k(),c+=s.shift(),T(u,c);break;case 5:for(;s.length>=2;)u+=s.shift(),c+=s.shift(),n.lineTo(u,c);break;case 6:case 7:for(dt=z===6;s.length>=1;)dt?u+=s.shift():c+=s.shift(),n.lineTo(u,c),dt=!dt;break;case 8:for(;s.length>0;)ft=u+s.shift(),mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),u=H+s.shift(),c=tt+s.shift(),n.bezierCurveTo(ft,mt,H,tt,u,c);break;case 10:if(Q=s.pop()+C,G=v[Q],G){f[Q]=!0;let K=t.pos,q=r;t.pos=G.offset,r=G.offset+G.length,P(),t.pos=K,r=q}break;case 11:if(e.version>=2)break;return;case 14:if(e.version>=2)break;s.length>0&&k(),h&&(n.closePath(),h=!1);break;case 15:if(e.version<2)throw new Error("vsindex operator not supported in CFF v1");S=s.pop();break;case 16:{if(e.version<2)throw new Error("blend operator not supported in CFF v1");if(!_)throw new Error("blend operator in non-variation font");let K=_.getBlendVector(x,S),q=s.pop(),ot=q*K.length,Y=s.length-ot,St=Y-q;for(let Bt=0;Bt<q;Bt++){let Et=s[St+Bt];for(let Nt=0;Nt<K.length;Nt++)Et+=K[Nt]*s[Y++];s[St+Bt]=Et}for(;ot--;)s.pop();break}case 19:case 20:F(),t.pos+=l+7>>3;break;case 21:s.length>2&&k(),u+=s.shift(),c+=s.shift(),T(u,c);break;case 22:s.length>1&&k(),u+=s.shift(),T(u,c);break;case 24:for(;s.length>=8;)ft=u+s.shift(),mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),u=H+s.shift(),c=tt+s.shift(),n.bezierCurveTo(ft,mt,H,tt,u,c);u+=s.shift(),c+=s.shift(),n.lineTo(u,c);break;case 25:for(;s.length>=8;)u+=s.shift(),c+=s.shift(),n.lineTo(u,c);ft=u+s.shift(),mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),u=H+s.shift(),c=tt+s.shift(),n.bezierCurveTo(ft,mt,H,tt,u,c);break;case 26:for(s.length%2&&(u+=s.shift());s.length>=4;)ft=u,mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),u=H,c=tt+s.shift(),n.bezierCurveTo(ft,mt,H,tt,u,c);break;case 27:for(s.length%2&&(c+=s.shift());s.length>=4;)ft=u+s.shift(),mt=c,H=ft+s.shift(),tt=mt+s.shift(),u=H+s.shift(),c=tt,n.bezierCurveTo(ft,mt,H,tt,u,c);break;case 28:s.push(t.readInt16BE());break;case 29:if(Q=s.pop()+g,G=p[Q],G){d[Q]=!0;let K=t.pos,q=r;t.pos=G.offset,r=G.offset+G.length,P(),t.pos=K,r=q}break;case 30:case 31:for(dt=z===31;s.length>=4;)dt?(ft=u+s.shift(),mt=c,H=ft+s.shift(),tt=mt+s.shift(),c=tt+s.shift(),u=H+(s.length===1?s.shift():0)):(ft=u,mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),u=H+s.shift(),c=tt+(s.length===1?s.shift():0)),n.bezierCurveTo(ft,mt,H,tt,u,c),dt=!dt;break;case 12:switch(z=t.readUInt8(),z){case 3:let K=s.pop(),q=s.pop();s.push(K&&q?1:0);break;case 4:K=s.pop(),q=s.pop(),s.push(K||q?1:0);break;case 5:K=s.pop(),s.push(K?0:1);break;case 9:K=s.pop(),s.push(Math.abs(K));break;case 10:K=s.pop(),q=s.pop(),s.push(K+q);break;case 11:K=s.pop(),q=s.pop(),s.push(K-q);break;case 12:K=s.pop(),q=s.pop(),s.push(K/q);break;case 14:K=s.pop(),s.push(-K);break;case 15:K=s.pop(),q=s.pop(),s.push(K===q?1:0);break;case 18:s.pop();break;case 20:let ot=s.pop(),Y=s.pop();a[Y]=ot;break;case 21:Y=s.pop(),s.push(a[Y]||0);break;case 22:let St=s.pop(),Bt=s.pop(),Et=s.pop(),Nt=s.pop();s.push(Et<=Nt?St:Bt);break;case 23:s.push(Math.random());break;case 24:K=s.pop(),q=s.pop(),s.push(K*q);break;case 26:K=s.pop(),s.push(Math.sqrt(K));break;case 27:K=s.pop(),s.push(K,K);break;case 28:K=s.pop(),q=s.pop(),s.push(q,K);break;case 29:Y=s.pop(),Y<0?Y=0:Y>s.length-1&&(Y=s.length-1),s.push(s[Y]);break;case 30:let jt=s.pop(),rt=s.pop();if(rt>=0)for(;rt>0;){var I=s[jt-1];for(let ut=jt-2;ut>=0;ut--)s[ut+1]=s[ut];s[0]=I,rt--}else for(;rt<0;){var I=s[0];for(let oe=0;oe<=jt;oe++)s[oe]=s[oe+1];s[jt-1]=I,rt++}break;case 34:ft=u+s.shift(),mt=c,H=ft+s.shift(),tt=mt+s.shift(),nt=H+s.shift(),Ct=tt,Rt=nt+s.shift(),ee=Ct,_e=Rt+s.shift(),Ae=ee,ye=_e+s.shift(),gi=Ae,u=ye,c=gi,n.bezierCurveTo(ft,mt,H,tt,nt,Ct),n.bezierCurveTo(Rt,ee,_e,Ae,ye,gi);break;case 35:Ee=[];for(let ut=0;ut<=5;ut++)u+=s.shift(),c+=s.shift(),Ee.push(u,c);n.bezierCurveTo(...Ee.slice(0,6)),n.bezierCurveTo(...Ee.slice(6)),s.shift();break;case 36:ft=u+s.shift(),mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),nt=H+s.shift(),Ct=tt,Rt=nt+s.shift(),ee=Ct,_e=Rt+s.shift(),Ae=ee+s.shift(),ye=_e+s.shift(),gi=Ae,u=ye,c=gi,n.bezierCurveTo(ft,mt,H,tt,nt,Ct),n.bezierCurveTo(Rt,ee,_e,Ae,ye,gi);break;case 37:let ct=u,Tt=c;Ee=[];for(let ut=0;ut<=4;ut++)u+=s.shift(),c+=s.shift(),Ee.push(u,c);Math.abs(u-ct)>Math.abs(c-Tt)?(u+=s.shift(),c=Tt):(u=ct,c+=s.shift()),Ee.push(u,c),n.bezierCurveTo(...Ee.slice(0,6)),n.bezierCurveTo(...Ee.slice(6));break;default:throw new Error(`Unknown op: 12 ${z}`)}break;default:throw new Error(`Unknown op: ${z}`)}}else if(z<247)s.push(z-139);else if(z<251){var O=t.readUInt8();s.push((z-247)*256+O+108)}else if(z<255){var O=t.readUInt8();s.push(-(z-251)*256-O-108)}else s.push(t.readInt32BE()/65536)}};return P(),h&&n.closePath(),n}constructor(...e){super(...e),ar(this,"type","CFF")}},uW=new W({originX:w,originY:w,type:new Fe(4),data:new _n(e=>e.parent.buflen-e._currentOffset)}),cW=class extends oh{getImageForSize(e){for(let s=0;s<this._font.sbix.imageTables.length;s++){var t=this._font.sbix.imageTables[s];if(t.ppem>=e)break}let i=t.imageOffsets,r=i[this.id],n=i[this.id+1];return r===n?null:(this._font.stream.pos=r,uW.decode(this._font.stream,{buflen:n-r}))}render(e,t){let i=this.getImageForSize(t);if(i!=null){let r=t/this._font.unitsPerEm;e.image(i.data,{height:t,x:i.originX,y:(this.bbox.minY-i.originY)*r})}this._font.sbix.flags.renderOutlines&&super.render(e,t)}constructor(...e){super(...e),ar(this,"type","SBIX")}},b6=class{constructor(e,t){this.glyph=e,this.color=t}},dW=class extends In{_getBBox(){let e=new Wo;for(let t=0;t<this.layers.length;t++){let r=this.layers[t].glyph.bbox;e.addPoint(r.minX,r.minY),e.addPoint(r.maxX,r.maxY)}return e}get layers(){let e=this._font.CPAL,t=this._font.COLR,i=0,r=t.baseGlyphRecord.length-1;for(;i<=r;){let u=i+r>>1;var n=t.baseGlyphRecord[u];if(this.id<n.gid)r=u-1;else if(this.id>n.gid)i=u+1;else{var s=n;break}}if(s==null){var a=this._font._getBaseGlyph(this.id),o={red:0,green:0,blue:0,alpha:255};return[new b6(a,o)]}let l=[];for(let u=s.firstLayerIndex;u<s.firstLayerIndex+s.numLayers;u++){var n=t.layerRecords[u],o=e.colorRecords[n.paletteIndex],a=this._font._getBaseGlyph(n.gid);l.push(new b6(a,o))}return l}render(e,t){for(let{glyph:i,color:r}of this.layers)e.fillColor([r.red,r.green,r.blue],r.alpha/255*100),i.render(e,t)}constructor(...e){super(...e),ar(this,"type","COLR")}},fW=32768,hW=4095,pW=32768,v6=16384,mW=8192,w6=4095,x6=128,C6=127,gW=128,yW=64,bW=63,vW=class{normalizeCoords(e){let t=[];for(var i=0;i<this.font.fvar.axis.length;i++){let r=this.font.fvar.axis[i];e[i]<r.defaultValue?t.push((e[i]-r.defaultValue+Number.EPSILON)/(r.defaultValue-r.minValue+Number.EPSILON)):t.push((e[i]-r.defaultValue+Number.EPSILON)/(r.maxValue-r.defaultValue+Number.EPSILON))}if(this.font.avar)for(var i=0;i<this.font.avar.segment.length;i++){let n=this.font.avar.segment[i];for(let s=0;s<n.correspondence.length;s++){let a=n.correspondence[s];if(s>=1&&t[i]<a.fromCoord){let o=n.correspondence[s-1];t[i]=((t[i]-o.fromCoord)*(a.toCoord-o.toCoord)+Number.EPSILON)/(a.fromCoord-o.fromCoord+Number.EPSILON)+o.toCoord;break}}}return t}transformPoints(e,t){if(!this.font.fvar||!this.font.gvar)return;let{gvar:i}=this.font;if(e>=i.glyphCount)return;let r=i.offsets[e];if(r===i.offsets[e+1])return;let{stream:n}=this.font;if(n.pos=r,n.pos>=n.length)return;let s=n.readUInt16BE(),a=r+n.readUInt16BE();if(s&fW){var o=n.pos;n.pos=a;var l=this.decodePoints();a=n.pos,n.pos=o}let u=t.map(g=>g.copy());s&=hW;for(let g=0;g<s;g++){let y=n.readUInt16BE(),v=n.readUInt16BE();if(v&pW){var c=[];for(let F=0;F<i.axisCount;F++)c.push(n.readInt16BE()/16384)}else{if((v&w6)>=i.globalCoordCount)throw new Error("Invalid gvar table");var c=i.globalCoords[v&w6]}if(v&v6){var d=[];for(let F=0;F<i.axisCount;F++)d.push(n.readInt16BE()/16384);var f=[];for(let F=0;F<i.axisCount;F++)f.push(n.readInt16BE()/16384)}let C=this.tupleFactor(v,c,d,f);if(C===0){a+=y;continue}var o=n.pos;if(n.pos=a,v&mW)var h=this.decodePoints();else var h=l;let S=h.length===0?t.length:h.length,_=this.decodeDeltas(S),k=this.decodeDeltas(S);if(h.length===0)for(let F=0;F<t.length;F++){var p=t[F];p.x+=Math.round(_[F]*C),p.y+=Math.round(k[F]*C)}else{let F=u.map(P=>P.copy()),T=t.map(()=>!1);for(let P=0;P<h.length;P++){let I=h[P];if(I<t.length){let O=F[I];T[I]=!0,O.x+=_[P]*C,O.y+=k[P]*C}}this.interpolateMissingDeltas(F,u,T);for(let P=0;P<t.length;P++){let I=F[P].x-u[P].x,O=F[P].y-u[P].y;t[P].x=Math.round(t[P].x+I),t[P].y=Math.round(t[P].y+O)}}a+=y,n.pos=o}}decodePoints(){let e=this.font.stream,t=e.readUInt8();t&x6&&(t=(t&C6)<<8|e.readUInt8());let i=new Uint16Array(t),r=0,n=0;for(;r<t;){let s=e.readUInt8(),a=(s&C6)+1,o=s&x6?e.readUInt16:e.readUInt8;for(let l=0;l<a&&r<t;l++)n+=o.call(e),i[r++]=n}return i}decodeDeltas(e){let t=this.font.stream,i=0,r=new Int16Array(e);for(;i<e;){let n=t.readUInt8(),s=(n&bW)+1;if(n&gW)i+=s;else{let a=n&yW?t.readInt16BE:t.readInt8;for(let o=0;o<s&&i<e;o++)r[i++]=a.call(t)}}return r}tupleFactor(e,t,i,r){let n=this.normalizedCoords,{gvar:s}=this.font,a=1;for(let o=0;o<s.axisCount;o++)if(t[o]!==0){if(n[o]===0)return 0;if(e&v6){if(n[o]<i[o]||n[o]>r[o])return 0;n[o]<t[o]?a=a*(n[o]-i[o]+Number.EPSILON)/(t[o]-i[o]+Number.EPSILON):a=a*(r[o]-n[o]+Number.EPSILON)/(r[o]-t[o]+Number.EPSILON)}else{if(n[o]<Math.min(0,t[o])||n[o]>Math.max(0,t[o]))return 0;a=(a*n[o]+Number.EPSILON)/(t[o]+Number.EPSILON)}}return a}interpolateMissingDeltas(e,t,i){if(e.length===0)return;let r=0;for(;r<e.length;){let n=r,s=r,a=e[s];for(;!a.endContour;)a=e[++s];for(;r<=s&&!i[r];)r++;if(r>s)continue;let o=r,l=r;for(r++;r<=s;)i[r]&&(this.deltaInterpolate(l+1,r-1,l,r,t,e),l=r),r++;l===o?this.deltaShift(n,s,l,t,e):(this.deltaInterpolate(l+1,s,l,o,t,e),o>0&&this.deltaInterpolate(n,o-1,l,o,t,e)),r=s+1}}deltaInterpolate(e,t,i,r,n,s){if(e>t)return;let a=["x","y"];for(let l=0;l<a.length;l++){let u=a[l];if(n[i][u]>n[r][u]){var o=i;i=r,r=o}let c=n[i][u],d=n[r][u],f=s[i][u],h=s[r][u];if(c!==d||f===h){let p=c===d?0:(h-f)/(d-c);for(let g=e;g<=t;g++){let y=n[g][u];y<=c?y+=f-c:y>=d?y+=h-d:y=f+(y-c)*p,s[g][u]=y}}}}deltaShift(e,t,i,r,n){let s=n[i].x-r[i].x,a=n[i].y-r[i].y;if(!(s===0&&a===0))for(let o=e;o<=t;o++)o!==i&&(n[o].x+=s,n[o].y+=a)}getAdvanceAdjustment(e,t){let i,r;if(t.advanceWidthMapping){let n=e;n>=t.advanceWidthMapping.mapCount&&(n=t.advanceWidthMapping.mapCount-1),t.advanceWidthMapping.entryFormat,{outerIndex:i,innerIndex:r}=t.advanceWidthMapping.mapData[n]}else i=0,r=e;return this.getDelta(t.itemVariationStore,i,r)}getDelta(e,t,i){if(t>=e.itemVariationData.length)return 0;let r=e.itemVariationData[t];if(i>=r.deltaSets.length)return 0;let n=r.deltaSets[i],s=this.getBlendVector(e,t),a=0;for(let o=0;o<r.regionIndexCount;o++)a+=n.deltas[o]*s[o];return a}getBlendVector(e,t){let i=e.itemVariationData[t];if(this.blendVectors.has(i))return this.blendVectors.get(i);let r=this.normalizedCoords,n=[];for(let s=0;s<i.regionIndexCount;s++){let a=1,o=i.regionIndexes[s],l=e.variationRegionList.variationRegions[o];for(let u=0;u<l.length;u++){let c=l[u],d;c.startCoord>c.peakCoord||c.peakCoord>c.endCoord||c.startCoord<0&&c.endCoord>0&&c.peakCoord!==0||c.peakCoord===0?d=1:r[u]<c.startCoord||r[u]>c.endCoord?d=0:r[u]===c.peakCoord?d=1:r[u]<c.peakCoord?d=(r[u]-c.startCoord+Number.EPSILON)/(c.peakCoord-c.startCoord+Number.EPSILON):d=(c.endCoord-r[u]+Number.EPSILON)/(c.endCoord-c.peakCoord+Number.EPSILON),a*=d}n[s]=a}return this.blendVectors.set(i,n),n}constructor(e,t){this.font=e,this.normalizedCoords=this.normalizeCoords(t),this.blendVectors=new Map}};Promise.resolve();var k6=class{includeGlyph(e){return typeof e=="object"&&(e=e.id),this.mapping[e]==null&&(this.glyphs.push(e),this.mapping[e]=this.glyphs.length-1),this.mapping[e]}constructor(e){this.font=e,this.glyphs=[],this.mapping={},this.includeGlyph(0)}},wW=1,xW=2,CW=4,kW=8,SW=16,_W=32,S6=class{static size(e){return e>=0&&e<=255?1:2}static encode(e,t){t>=0&&t<=255?e.writeUInt8(t):e.writeInt16BE(t)}},_6=new W({numberOfContours:st,xMin:st,yMin:st,xMax:st,yMax:st,endPtsOfContours:new V(w,"numberOfContours"),instructions:new V(vt,w),flags:new V(vt,0),xPoints:new V(S6,0),yPoints:new V(S6,0)}),EW=class{encodeSimple(e,t=[]){let i=[],r=[],n=[],s=[],a=0,o=0,l=0,u=0,c=0;for(let y=0;y<e.commands.length;y++){let v=e.commands[y];for(let C=0;C<v.args.length;C+=2){let x=v.args[C],S=v.args[C+1],_=0;if(v.command==="quadraticCurveTo"&&C===2){let k=e.commands[y+1];if(k&&k.command==="quadraticCurveTo"){let F=(o+k.args[0])/2,T=(l+k.args[1])/2;if(x===F&&S===T)continue}}v.command==="quadraticCurveTo"&&C===0||(_|=wW),_=this._encodePoint(x,o,r,_,xW,SW),_=this._encodePoint(S,l,n,_,CW,_W),_===u&&a<255?(s[s.length-1]|=kW,a++):(a>0&&(s.push(a),a=0),s.push(_),u=_),o=x,l=S,c++}v.command==="closePath"&&i.push(c-1)}e.commands.length>1&&e.commands[e.commands.length-1].command!=="closePath"&&i.push(c-1);let d=e.bbox,f={numberOfContours:i.length,xMin:d.minX,yMin:d.minY,xMax:d.maxX,yMax:d.maxY,endPtsOfContours:i,instructions:t,flags:s,xPoints:r,yPoints:n},h=_6.size(f),p=4-h%4,g=new If(h+p);return _6.encode(g,f),p!==0&&g.fill(0,p),g.buffer}_encodePoint(e,t,i,r,n,s){let a=e-t;return e===t?r|=s:(-255<=a&&a<=255&&(r|=n,a<0?a=-a:r|=s),i.push(a)),r}},AW=class extends k6{_addGlyph(e){let t=this.font.getGlyph(e),i=t._decode(),r=this.font.loca.offsets[e],n=this.font.loca.offsets[e+1],s=this.font._getTableStream("glyf");s.pos+=r;let a=s.readBuffer(n-r);if(i&&i.numberOfContours<0){a=new Uint8Array(a);let o=new DataView(a.buffer);for(let l of i.components)e=this.includeGlyph(l.glyphID),o.setUint16(l.pos,e)}else i&&this.font._variationProcessor&&(a=this.glyphEncoder.encodeSimple(t.path,i.instructions));return this.glyf.push(a),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:t.advanceWidth,bearing:t._getMetrics().leftBearing}),this.offset+=a.length,this.glyf.length-1}encode(){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};let e=0;for(;e<this.glyphs.length;)this._addGlyph(this.glyphs[e++]);let t=(0,Pg.default)(this.font.maxp);t.numGlyphs=this.glyf.length,this.loca.offsets.push(this.offset);let i=(0,Pg.default)(this.font.head);i.indexToLocFormat=this.loca.version;let r=(0,Pg.default)(this.font.hhea);return r.numberOfMetrics=this.hmtx.metrics.length,j_.toBuffer({tables:{head:i,hhea:r,loca:this.loca,maxp:t,"cvt ":this.font["cvt "],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm}})}constructor(e){super(e),this.glyphEncoder=new EW}},TW=class extends k6{subsetCharstrings(){this.charstrings=[];let e={};for(let t of this.glyphs){this.charstrings.push(this.cff.getCharString(t));let i=this.font.getGlyph(t);i.path;for(let r in i._usedGsubrs)e[r]=!0}this.gsubrs=this.subsetSubrs(this.cff.globalSubrIndex,e)}subsetSubrs(e,t){let i=[];for(let r=0;r<e.length;r++){let n=e[r];t[r]?(this.cff.stream.pos=n.offset,i.push(this.cff.stream.readBuffer(n.length))):i.push(new Uint8Array([11]))}return i}subsetFontdict(e){e.FDArray=[],e.FDSelect={version:0,fds:[]};let t={},i=[],r={};for(let n of this.glyphs){let s=this.cff.fdForGlyph(n);if(s==null)continue;t[s]||(e.FDArray.push(Object.assign({},this.cff.topDict.FDArray[s])),i.push({}),r[s]=e.FDArray.length-1),t[s]=!0,e.FDSelect.fds.push(r[s]);let a=this.font.getGlyph(n);a.path;for(let o in a._usedSubrs)i[r[s]][o]=!0}for(let n=0;n<e.FDArray.length;n++){let s=e.FDArray[n];delete s.FontName,s.Private&&s.Private.Subrs&&(s.Private=Object.assign({},s.Private),s.Private.Subrs=this.subsetSubrs(s.Private.Subrs,i[n]))}}createCIDFontdict(e){let t={};for(let r of this.glyphs){let n=this.font.getGlyph(r);n.path;for(let s in n._usedSubrs)t[s]=!0}let i=Object.assign({},this.cff.topDict.Private);return this.cff.topDict.Private&&this.cff.topDict.Private.Subrs&&(i.Subrs=this.subsetSubrs(this.cff.topDict.Private.Subrs,t)),e.FDArray=[{Private:i}],e.FDSelect={version:3,nRanges:1,ranges:[{first:0,fd:0}],sentinel:this.charstrings.length}}addString(e){return e?(this.strings||(this.strings=[]),this.strings.push(e),Of.length+this.strings.length-1):null}encode(){this.subsetCharstrings();let e={version:this.charstrings.length>255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},t=Object.assign({},this.cff.topDict);t.Private=null,t.charset=e,t.Encoding=null,t.CharStrings=this.charstrings;for(let r of["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"])t[r]=this.addString(this.cff.string(t[r]));t.ROS=[this.addString("Adobe"),this.addString("Identity"),0],t.CIDCount=this.charstrings.length,this.cff.isCIDFont?this.subsetFontdict(t):this.createCIDFontdict(t);let i={version:1,hdrSize:this.cff.hdrSize,offSize:4,header:this.cff.header,nameIndex:[this.cff.postscriptName],topDictIndex:[t],stringIndex:this.strings,globalSubrIndex:this.gsubrs};return T_.toBuffer(i)}constructor(e){if(super(e),this.cff=this.font["CFF "],!this.cff)throw new Error("Not a CFF Font")}},lr=class e8{static probe(t){let i=jf.decode(t.slice(0,4));return i==="true"||i==="OTTO"||i==="\0\0\0"}setDefaultLanguage(t=null){this.defaultLanguage=t}_getTable(t){if(!(t.tag in this._tables))try{this._tables[t.tag]=this._decodeTable(t)}catch{}return this._tables[t.tag]}_getTableStream(t){let i=this.directory.tables[t];return i?(this.stream.pos=i.offset,this.stream):null}_decodeDirectory(){return this.directory=j_.decode(this.stream,{_startOffset:0})}_decodeTable(t){let i=this.stream.pos,r=this._getTableStream(t.tag),n=Uf[t.tag].decode(r,this,t.length);return this.stream.pos=i,n}getName(t,i=this.defaultLanguage||Nf){let r=this.name&&this.name.records[t];return r&&(r[i]||r[this.defaultLanguage]||r[Nf]||r.en||r[Object.keys(r)[0]])||null}get postscriptName(){return this.getName("postscriptName")}get fullName(){return this.getName("fullName")}get familyName(){return this.getName("fontFamily")}get subfamilyName(){return this.getName("fontSubfamily")}get copyright(){return this.getName("copyright")}get version(){return this.getName("version")}get ascent(){return this.hhea.ascent}get descent(){return this.hhea.descent}get lineGap(){return this.hhea.lineGap}get underlinePosition(){return this.post.underlinePosition}get underlineThickness(){return this.post.underlineThickness}get italicAngle(){return this.post.italicAngle}get capHeight(){let t=this["OS/2"];return t?t.capHeight:this.ascent}get xHeight(){let t=this["OS/2"];return t?t.xHeight:0}get numGlyphs(){return this.maxp.numGlyphs}get unitsPerEm(){return this.head.unitsPerEm}get bbox(){return Object.freeze(new Wo(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}get _cmapProcessor(){return new Hg(this.cmap)}get characterSet(){return this._cmapProcessor.getCharacterSet()}hasGlyphForCodePoint(t){return!!this._cmapProcessor.lookup(t)}glyphForCodePoint(t){return this.getGlyph(this._cmapProcessor.lookup(t),[t])}glyphsForString(t){let i=[],r=t.length,n=0,s=-1,a=-1;for(;n<=r;){let o=0,l=0;if(n<r){if(o=t.charCodeAt(n++),55296<=o&&o<=56319&&n<r){let u=t.charCodeAt(n);56320<=u&&u<=57343&&(n++,o=((o&1023)<<10)+(u&1023)+65536)}l=65024<=o&&o<=65039||917760<=o&&o<=917999?1:0}else n++;a===0&&l===1?i.push(this.getGlyph(this._cmapProcessor.lookup(s,o),[s,o])):a===0&&l===0&&i.push(this.glyphForCodePoint(s)),s=o,a=l}return i}get _layoutEngine(){return new qj(this)}layout(t,i,r,n,s){return this._layoutEngine.layout(t,i,r,n,s)}stringsForGlyph(t){return this._layoutEngine.stringsForGlyph(t)}get availableFeatures(){return this._layoutEngine.getAvailableFeatures()}getAvailableFeatures(t,i){return this._layoutEngine.getAvailableFeatures(t,i)}_getBaseGlyph(t,i=[]){return this._glyphs[t]||(this.directory.tables.glyf?this._glyphs[t]=new oh(t,i,this):(this.directory.tables["CFF "]||this.directory.tables.CFF2)&&(this._glyphs[t]=new lW(t,i,this))),this._glyphs[t]||null}getGlyph(t,i=[]){return this._glyphs[t]||(this.directory.tables.sbix?this._glyphs[t]=new cW(t,i,this):this.directory.tables.COLR&&this.directory.tables.CPAL?this._glyphs[t]=new dW(t,i,this):this._getBaseGlyph(t,i)),this._glyphs[t]||null}createSubset(){return this.directory.tables["CFF "]?new TW(this):new AW(this)}get variationAxes(){let t={};if(!this.fvar)return t;for(let i of this.fvar.axis)t[i.axisTag.trim()]={name:i.name.en,min:i.minValue,default:i.defaultValue,max:i.maxValue};return t}get namedVariations(){let t={};if(!this.fvar)return t;for(let i of this.fvar.instance){let r={};for(let n=0;n<this.fvar.axis.length;n++){let s=this.fvar.axis[n];r[s.axisTag.trim()]=i.coord[n]}t[i.name.en]=r}return t}getVariation(t){if(!(this.directory.tables.fvar&&(this.directory.tables.gvar&&this.directory.tables.glyf||this.directory.tables.CFF2)))throw new Error("Variations require a font with the fvar, gvar and glyf, or CFF2 tables.");if(typeof t=="string"&&(t=this.namedVariations[t]),typeof t!="object")throw new Error("Variation settings must be either a variation name or settings object.");let i=this.fvar.axis.map((s,a)=>{let o=s.axisTag.trim();return o in t?Math.max(s.minValue,Math.min(s.maxValue,t[o])):s.defaultValue}),r=new Di(this.stream.buffer);r.pos=this._directoryPos;let n=new e8(r,i);return n._tables=this._tables,n}get _variationProcessor(){if(!this.fvar)return null;let t=this.variationCoords;return!t&&!this.CFF2?null:(t||(t=this.fvar.axis.map(i=>i.defaultValue)),new vW(this,t))}getFont(t){return this.getVariation(t)}constructor(t,i=null){ar(this,"type","TTF"),this.defaultLanguage=null,this.stream=t,this.variationCoords=i,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory();for(let r in this.directory.tables){let n=this.directory.tables[r];Uf[r]&&n.length>0&&Object.defineProperty(this,r,{get:this._getTable.bind(this,n)})}}};Pi([Fi],lr.prototype,"bbox",null),Pi([Fi],lr.prototype,"_cmapProcessor",null),Pi([Fi],lr.prototype,"characterSet",null),Pi([Fi],lr.prototype,"_layoutEngine",null),Pi([Fi],lr.prototype,"variationAxes",null),Pi([Fi],lr.prototype,"namedVariations",null),Pi([Fi],lr.prototype,"_variationProcessor",null);var IW=new W({tag:new Fe(4),offset:new L($,"void",{type:"global"}),compLength:$,length:$,origChecksum:$}),E6=new W({tag:new Fe(4),flavor:$,length:$,numTables:w,reserved:new qe(w),totalSfntSize:$,majorVersion:w,minorVersion:w,metaOffset:$,metaLength:$,metaOrigLength:$,privOffset:$,privLength:$,tables:new V(IW,"numTables")});E6.process=function(){let e={};for(let t of this.tables)e[t.tag]=t;this.tables=e};var DW=E6,PW=class extends lr{static probe(e){return jf.decode(e.slice(0,4))==="wOFF"}_decodeDirectory(){this.directory=DW.decode(this.stream,{_startOffset:0})}_getTableStream(e){let t=this.directory.tables[e];if(t)if(this.stream.pos=t.offset,t.compLength<t.length){this.stream.pos+=2;let i=new Uint8Array(t.length),r=(0,nL.default)(this.stream.readBuffer(t.compLength-2),i);return new Di(r)}else return this.stream;return null}constructor(...e){super(...e),ar(this,"type","WOFF")}},FW=class extends oh{_decode(){return this._font._transformedGlyphs[this.id]}_getCBox(){return this.path.bbox}constructor(...e){super(...e),ar(this,"type","WOFF2")}},A6={decode(e){let t=0,i=[0,1,2,3,4];for(let r=0;r<i.length;r++){let n=e.readUInt8();if(t&3758096384)throw new Error("Overflow");if(t=t<<7|n&127,!(n&128))return t}throw new Error("Bad base 128 number")}},BW=["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"],NW=new W({flags:vt,customTag:new Df(new Fe(4),e=>(e.flags&63)===63),tag:e=>e.customTag||BW[e.flags&63],length:A6,transformVersion:e=>e.flags>>>6&3,transformed:e=>e.tag==="glyf"||e.tag==="loca"?e.transformVersion===0:e.transformVersion!==0,transformLength:new Df(A6,e=>e.transformed)}),T6=new W({tag:new Fe(4),flavor:$,length:$,numTables:w,reserved:new qe(w),totalSfntSize:$,totalCompressedSize:$,majorVersion:w,minorVersion:w,metaOffset:$,metaLength:$,metaOrigLength:$,privOffset:$,privLength:$,tables:new V(NW,"numTables")});T6.process=function(){let e={};for(let t=0;t<this.tables.length;t++){let i=this.tables[t];e[i.tag]=i}return this.tables=e};var MW=T6,zW=class extends lr{static probe(e){return jf.decode(e.slice(0,4))==="wOF2"}_decodeDirectory(){this.directory=MW.decode(this.stream),this._dataPos=this.stream.pos}_decompress(){if(!this._decompressed){this.stream.pos=this._dataPos;let e=this.stream.readBuffer(this.directory.totalCompressedSize),t=0;for(let r in this.directory.tables){let n=this.directory.tables[r];n.offset=t,t+=n.transformLength!=null?n.transformLength:n.length}let i=(0,sL.default)(e,t);if(!i)throw new Error("Error decoding compressed data in WOFF2");this.stream=new Di(i),this._decompressed=!0}}_decodeTable(e){return this._decompress(),super._decodeTable(e)}_getBaseGlyph(e,t=[]){if(!this._glyphs[e])return this.directory.tables.glyf&&this.directory.tables.glyf.transformed?(this._transformedGlyphs||this._transformGlyfTable(),this._glyphs[e]=new FW(e,t,this)):super._getBaseGlyph(e,t)}_transformGlyfTable(){this._decompress(),this.stream.pos=this.directory.tables.glyf.offset;let e=OW.decode(this.stream),t=[];for(let r=0;r<e.numGlyphs;r++){let n={},s=e.nContours.readInt16BE();if(n.numberOfContours=s,s>0){let a=[],o=0;for(let l=0;l<s;l++){let u=iy(e.nPoints);o+=u,a.push(o)}n.points=$W(e.flags,e.glyphs,o);for(let l=0;l<s;l++)n.points[a[l]-1].endContour=!0;var i=iy(e.glyphs)}else if(s<0&&oh.prototype._decodeComposite.call({_font:this},n,e.composites))var i=iy(e.glyphs);t.push(n)}this._transformedGlyphs=t}constructor(...e){super(...e),ar(this,"type","WOFF2")}},ja=class{decode(e,t){return new Di(this._buf.decode(e,t))}constructor(e){this.length=e,this._buf=new _n(e)}},OW=new W({version:$,numGlyphs:w,indexFormat:w,nContourStreamSize:$,nPointsStreamSize:$,flagStreamSize:$,glyphStreamSize:$,compositeStreamSize:$,bboxStreamSize:$,instructionStreamSize:$,nContours:new ja("nContourStreamSize"),nPoints:new ja("nPointsStreamSize"),flags:new ja("flagStreamSize"),glyphs:new ja("glyphStreamSize"),composites:new ja("compositeStreamSize"),bboxes:new ja("bboxStreamSize"),instructions:new ja("instructionStreamSize")}),RW=253,VW=254,LW=255,I6=253;function iy(e){let t=e.readUInt8();return t===RW?e.readUInt16BE():t===LW?e.readUInt8()+I6:t===VW?e.readUInt8()+I6*2:t}function Dn(e,t){return e&1?t:-t}function $W(e,t,i){let r,n=r=0,s=[];for(let l=0;l<i;l++){let u=0,c=0,d=e.readUInt8(),f=!(d>>7);if(d&=127,d<10)u=0,c=Dn(d,((d&14)<<7)+t.readUInt8());else if(d<20)u=Dn(d,((d-10&14)<<7)+t.readUInt8()),c=0;else if(d<84){var a=d-20,o=t.readUInt8();u=Dn(d,1+(a&48)+(o>>4)),c=Dn(d>>1,1+((a&12)<<2)+(o&15))}else if(d<120){var a=d-84;u=Dn(d,1+(a/12<<8)+t.readUInt8()),c=Dn(d>>1,1+(a%12>>2<<8)+t.readUInt8())}else if(d<124){var o=t.readUInt8();let p=t.readUInt8();u=Dn(d,(o<<4)+(p>>4)),c=Dn(d>>1,((p&15)<<8)+t.readUInt8())}else u=Dn(d,t.readUInt16BE()),c=Dn(d>>1,t.readUInt16BE());n+=u,r+=c,s.push(new fs(f,!1,n,r))}return s}var UW=new ge($,{65536:{numFonts:$,offsets:new V($,"numFonts")},131072:{numFonts:$,offsets:new V($,"numFonts"),dsigTag:$,dsigLength:$,dsigOffset:$}}),ZW=class{static probe(e){return jf.decode(e.slice(0,4))==="ttcf"}getFont(e){for(let t of this.header.offsets){let i=new Di(this.stream.buffer);i.pos=t;let r=new lr(i);if(r.postscriptName===e||r.postscriptName instanceof Uint8Array&&e instanceof Uint8Array&&r.postscriptName.every((n,s)=>e[s]===n))return r}return null}get fonts(){let e=[];for(let t of this.header.offsets){let i=new Di(this.stream.buffer);i.pos=t,e.push(new lr(i))}return e}constructor(e){if(ar(this,"type","TTC"),this.stream=e,e.readString(4)!=="ttcf")throw new Error("Not a TrueType collection");this.header=UW.decode(e)}},jW=new Fe(vt);new W({len:$,buf:new _n("len")});var WW=new W({id:w,nameOffset:st,attr:vt,dataOffset:Gs,handle:$}),GW=new W({name:new Fe(4),maxTypeIndex:w,refList:new L(w,new V(WW,e=>e.maxTypeIndex+1),{type:"parent"})}),HW=new W({length:w,types:new V(GW,e=>e.length+1)}),qW=new W({reserved:new qe(vt,24),typeList:new L(w,HW),nameListOffset:new L(w,"void")}),D6=new W({dataOffset:$,map:new L($,qW),dataLength:$,mapLength:$}),YW=class{static probe(e){let t=new Di(e);try{var i=D6.decode(t)}catch{return!1}for(let r of i.map.typeList.types)if(r.name==="sfnt")return!0;return!1}getFont(e){if(!this.sfnt)return null;for(let t of this.sfnt.refList){let i=this.header.dataOffset+t.dataOffset+4,r=new Di(this.stream.buffer.slice(i)),n=new lr(r);if(n.postscriptName===e||n.postscriptName instanceof Uint8Array&&e instanceof Uint8Array&&n.postscriptName.every((s,a)=>e[a]===s))return n}return null}get fonts(){let e=[];for(let t of this.sfnt.refList){let i=this.header.dataOffset+t.dataOffset+4,r=new Di(this.stream.buffer.slice(i));e.push(new lr(r))}return e}constructor(e){ar(this,"type","DFont"),this.stream=e,this.header=D6.decode(this.stream);for(let t of this.header.map.typeList.types){for(let i of t.refList)i.nameOffset>=0?(this.stream.pos=i.nameOffset+this.header.map.nameListOffset,i.name=jW.decode(this.stream)):i.name=null;t.name==="sfnt"&&(this.sfnt=t)}}};Lo(lr),Lo(PW),Lo(zW),Lo(ZW),Lo(YW);function KW(e){if(e==null)return"400";if(typeof e=="number")return String(e);const t=String(e).toLowerCase().trim(),i={thin:"100",hairline:"100",extralight:"200",ultralight:"200",light:"300",normal:"400",regular:"400",medium:"500",semibold:"600",demibold:"600",bold:"700",extrabold:"800",ultrabold:"800",black:"900",heavy:"900"};if(i[t])return i[t];const r=parseInt(String(e),10);return!isNaN(r)&&r>=100&&r<=900?String(r):(console.warn(`Invalid font weight "${e}", defaulting to 400`),"400")}function hs(e){if(!e)return"normal";const t=String(e).toLowerCase().trim();return t==="italic"||t==="oblique"?"italic":"normal"}var XW=[{name:"extralight",weight:200},{name:"semibold",weight:600},{name:"extrabold",weight:800},{name:"thin",weight:100},{name:"light",weight:300},{name:"regular",weight:400},{name:"medium",weight:500},{name:"bold",weight:700},{name:"black",weight:900}];function qo(e,t,i){const r=String(e??"").trim(),n=r.toLowerCase();for(const{name:s,weight:a}of XW){const o=` ${s}`;if(n.endsWith(o)&&r.length>o.length)return{family:r.slice(0,r.length-o.length).trim(),weight:String(a),style:hs(i)}}return{family:r,weight:KW(t),style:hs(i)}}var P6="Roboto";function JW(e,t){if(!t.length)return;if(t.includes(e))return e;const i=t.filter(n=>n<e).sort((n,s)=>s-n),r=t.filter(n=>n>e).sort((n,s)=>n-s);return e>=400&&e<=500?r.filter(s=>s<=500)[0]??i[0]??r[0]:e<400?i[0]??r[0]:r[0]??i[0]}var Ru=class Ge{constructor(t){Gt(this,"hb"),Gt(this,"faces",new Map),Gt(this,"fonts",new Map),Gt(this,"blobs",new Map),Gt(this,"fontkitFonts",new Map),Gt(this,"fontkitBaseFonts",new Map),Gt(this,"variants",new Map),Gt(this,"colorEmojiFonts",new Set),Gt(this,"colorEmojiFontBytes",new Map),Gt(this,"registeredCanvasFonts",new Set),Gt(this,"wasmBaseURL"),Gt(this,"initPromise"),Gt(this,"emojiFallbackDesc"),this.wasmBaseURL=t}static setFallbackLoader(t){Ge.fallbackLoader=t}static getFallbackLoader(){return Ge.fallbackLoader}static async getSharedInstance(t){if(Ge.sharedInitPromise){const i=await Ge.sharedInitPromise;return Ge.refCount++,i}if(Ge.sharedInstance)return Ge.refCount++,Ge.sharedInstance;Ge.sharedInitPromise=(async()=>{const i=new Ge(t);return await i.init(),Ge.sharedInstance=i,Ge.refCount=1,i})();try{return await Ge.sharedInitPromise}finally{Ge.sharedInitPromise=null}}static getRefCount(){return Ge.refCount}static hasSharedInstance(){return Ge.sharedInstance!==null}release(){if(this!==Ge.sharedInstance){this.destroy();return}Ge.refCount>0&&Ge.refCount--}static resetSharedInstance(){Ge.sharedInstance&&(Ge.sharedInstance.destroy(),Ge.sharedInstance=null),Ge.refCount=0,Ge.sharedInitPromise=null}setEmojiFallback(t){this.emojiFallbackDesc=t}isColorEmojiFont(t){return this.colorEmojiFonts.has(t)}getColorEmojiFontBytes(t){return this.colorEmojiFontBytes.get(t)}getColorEmojiFontFamilies(){return Array.from(this.colorEmojiFonts)}detectColorEmojiFont(t){try{if(t.directory&&t.directory.tables){const i=t.directory.tables;if(i.CBDT||i.CBLC||i.sbix||i.COLR&&i.CPAL||i.SVG)return!0}if(t.availableTables){const i=t.availableTables;if(i.includes("CBDT")||i.includes("CBLC")||i.includes("sbix")||i.includes("COLR")&&i.includes("CPAL")||i.includes("SVG"))return!0}if(t._tables){const i=Object.keys(t._tables);if(i.includes("CBDT")||i.includes("CBLC")||i.includes("sbix")||i.includes("COLR")&&i.includes("CPAL")||i.includes("SVG"))return!0}return!1}catch{return!1}}async init(){if(this.initPromise){await this.initPromise;return}if(!this.hb){this.initPromise=this._doInit();try{await this.initPromise}catch(t){throw new Error(`Failed to initialize FontRegistry: ${t instanceof Error?t.message:String(t)}`)}}}async _doInit(){try{this.hb=await NV("https://js.shotstack.io/canvas/hb.wasm")}catch(t){throw this.initPromise=void 0,t}}async getHB(){if(!this.hb)try{await this.init()}catch(t){throw new Error(`Failed to get HarfBuzz instance: ${t instanceof Error?t.message:String(t)}`)}return this.hb}key(t){const i=qo(t.family,t.weight,t.style);return`${i.family}__${i.weight}__${i.style}`}hasRegisteredFace(t){return this.faces.has(this.key(t))}async registerFromBytes(t,i){try{this.hb||await this.init();const r=qo(i.family,i.weight,i.style),n=`${r.family}__${r.weight}__${r.style}`;if(this.fonts.has(n))return;const s=this.hb.createBlob(t),a=this.hb.createFace(s,0),o=this.hb.createFont(a),l=a.upem||1e3;o.setScale(l,l);const u=parseInt(r.weight,10);if(u!==400&&typeof o.setVariations=="function")try{o.setVariations(`wght=${u}`)}catch{}this.blobs.set(n,s),this.faces.set(n,a),this.fonts.set(n,o);const c=this.variants.get(r.family)??[];c.some(d=>d.key===n)||(c.push({weight:u,style:r.style,key:n}),this.variants.set(r.family,c));try{const d=typeof Buffer<"u"?Buffer.from(t):new Uint8Array(t),f=n_(d),h=`${r.family}__${r.style}`;if(this.fontkitBaseFonts.has(h)||this.fontkitBaseFonts.set(h,f),this.detectColorEmojiFont(f)&&(this.colorEmojiFonts.add(r.family),this.colorEmojiFontBytes.has(r.family)||this.colorEmojiFontBytes.set(r.family,t.slice(0))),f.variationAxes&&Object.keys(f.variationAxes).length>0){const g=f.getVariation({wght:u});this.fontkitFonts.set(n,g)}else this.fontkitFonts.set(n,f)}catch(d){console.warn(`⚠️ Fontkit failed for ${i.family}:`,d)}await this.registerWithCanvas(r.family,t)}catch(r){throw new Error(`Failed to register font "${i.family}": ${r instanceof Error?r.message:String(r)}`)}}async tryFallbackInstall(t){const i=Ge.fallbackLoader;if(!i)return!1;try{const r=qo(t.family,t.weight,t.style),n=await i({family:r.family,weight:r.weight,style:r.style});return n?(await this.registerFromBytes(n,{family:r.family,weight:r.weight,style:r.style}),!0):!1}catch{return!1}}async tryInstallDefaultFont(t){const i=this.key(t),r=`${P6}__400__normal`,n=this.blobs.get(r);if(n){const o=this.hb.createFace(n,0),l=this.hb.createFont(o),u=o.upem||1e3;l.setScale(u,u),this.faces.set(i,o),this.fonts.set(i,l);const c=this.fontkitFonts.get(r);return c&&this.fontkitFonts.set(i,c),l}const s=Ge.fallbackLoader;if(!s)return;const a=await s({family:P6,weight:"400",style:"normal"});if(a)return await this.registerFromBytes(a,{family:t.family,weight:t.weight,style:t.style}),this.fonts.get(i)}async getFont(t){try{this.hb||await this.init();const i=this.key(t);let r=this.fonts.get(i);if(r||(r=await this.tryFallbackInstall(t)?this.fonts.get(i):void 0),r||(r=await this.tryDeriveFromExistingFont(t)),r||(r=await this.tryInstallDefaultFont(t)),!r)throw new Error(`Font not registered for ${i}`);return r}catch(i){throw i instanceof Error&&i.message.includes("Font not registered")?i:new Error(`Failed to get font "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async tryDeriveFromExistingFont(t){const i=qo(t.family,t.weight,t.style),r=parseInt(i.weight,10),n=`${i.family}__${i.weight}__${i.style}`,s=await this.deriveWithinStyle(i.family,i.style,r,n);if(s)return s;const a=i.style==="italic"?"normal":"italic";return this.deriveWithinStyle(i.family,a,r,n)}async deriveWithinStyle(t,i,r,n){const s=this.fontkitBaseFonts.get(`${t}__${i}`),a=s&&s.variationAxes?s.variationAxes.wght:void 0;if(a){let l;for(const[u,c]of this.blobs)if(u.startsWith(`${t}__`)&&u.endsWith(`__${i}`)){l=c;break}if(l){const u=Math.max(a.min??r,Math.min(a.max??r,r)),c=this.hb.createFace(l,0),d=this.hb.createFont(c),f=c.upem||1e3;if(d.setScale(f,f),typeof d.setVariations=="function")try{d.setVariations(`wght=${u}`)}catch{}this.faces.set(n,c),this.fonts.set(n,d);try{this.fontkitFonts.set(n,s.getVariation({wght:u}))}catch{this.fontkitFonts.set(n,s)}return d}}const o=this.findNearestSameStyleKey(t,i,r);if(o&&o!==n){const l=this.blobs.get(o);if(l){const u=this.hb.createFace(l,0),c=this.hb.createFont(u),d=u.upem||1e3;c.setScale(d,d),this.faces.set(n,u),this.fonts.set(n,c);const f=this.fontkitFonts.get(o);return f&&this.fontkitFonts.set(n,f),c}}}findNearestSameStyleKey(t,i,r){const n=(this.variants.get(t)??[]).filter(a=>a.style===i);if(!n.length)return;const s=JW(r,n.map(a=>a.weight));return s==null?void 0:n.find(a=>a.weight===s)?.key}async getFace(t){try{this.hb||await this.init();const i=this.key(t);let r=this.faces.get(i);return r||(r=await this.tryFallbackInstall(t)?this.faces.get(i):void 0),r||(await this.tryDeriveFromExistingFont(t),r=this.faces.get(i)),r||(await this.tryInstallDefaultFont(t),r=this.faces.get(i)),r}catch(i){throw new Error(`Failed to get face for "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async getUnitsPerEm(t){try{return(await this.getFace(t))?.upem||1e3}catch(i){throw new Error(`Failed to get units per em for "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async glyphPath(t,i){const r=this.key(t);try{const n=this.fontkitFonts.get(r);if(n){const o=n.getGlyph(i);if(o&&o.path){const l=o.path.toSVG();return l&&l!==""?l:"M 0 0"}}const a=(await this.getFont(t)).glyphToPath(i);return a&&a!==""?a:"M 0 0"}catch(n){throw new Error(`Failed to get glyph path for glyph ${i} in font "${t.family}": ${n instanceof Error?n.message:String(n)}`)}}async registerWithCanvas(t,i){if(!this.registeredCanvasFonts.has(t)&&!(typeof window<"u"))try{const n={GlobalFonts:void 0}.GlobalFonts;n&&n.register}catch{}}destroy(){try{for(const[,t]of this.fonts)try{t.destroy()}catch(i){console.error(`Error destroying font: ${i instanceof Error?i.message:String(i)}`)}for(const[,t]of this.faces)try{t.destroy()}catch(i){console.error(`Error destroying face: ${i instanceof Error?i.message:String(i)}`)}for(const[,t]of this.blobs)try{t.destroy()}catch(i){console.error(`Error destroying blob: ${i instanceof Error?i.message:String(i)}`)}this.fonts.clear(),this.faces.clear(),this.blobs.clear(),this.fontkitFonts.clear(),this.fontkitBaseFonts.clear(),this.variants.clear(),this.colorEmojiFonts.clear(),this.colorEmojiFontBytes.clear(),this.registeredCanvasFonts.clear(),this.hb=void 0,this.initPromise=void 0}catch(t){console.error(`Error during FontRegistry cleanup: ${t instanceof Error?t.message:String(t)}`)}}};Gt(Ru,"sharedInstance",null),Gt(Ru,"refCount",0),Gt(Ru,"sharedInitPromise",null),Gt(Ru,"fallbackLoader");var ry=Ru;function QW(){var e=function(t){var i={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4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4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},r={},n={};r.L=1,n[1]="L",Object.keys(i).forEach(function(rt,ct){r[rt]=1<<ct+1,n[r[rt]]=rt}),Object.freeze(r);var s=r.LRI|r.RLI|r.FSI,a=r.L|r.R|r.AL,o=r.B|r.S|r.WS|r.ON|r.FSI|r.LRI|r.RLI|r.PDI,l=r.BN|r.RLE|r.LRE|r.RLO|r.LRO|r.PDF,u=r.S|r.WS|r.B|s|r.PDI|l,c=null;function d(){if(!c){c=new Map;var rt=function(Tt){if(i.hasOwnProperty(Tt)){var ut=0;i[Tt].split(",").forEach(function(oe){var zt=oe.split("+"),$t=zt[0],Pt=zt[1];$t=parseInt($t,36),Pt=Pt?parseInt(Pt,36):0,c.set(ut+=$t,r[Tt]);for(var Se=0;Se<Pt;Se++)c.set(++ut,r[Tt])})}};for(var ct in i)rt(ct)}}function f(rt){return d(),c.get(rt.codePointAt(0))||r.L}function h(rt){return n[f(rt)]}var p={pairs:"14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function g(rt,ct){var Tt=36,ut=0,oe=new Map,zt=ct&&new Map,$t;return rt.split(",").forEach(function Pt(Se){if(Se.indexOf("+")!==-1)for(var Te=+Se;Te--;)Pt($t);else{$t=Se;var kt=Se.split(">"),oi=kt[0],Ri=kt[1];oi=String.fromCodePoint(ut+=parseInt(oi,Tt)),Ri=String.fromCodePoint(ut+=parseInt(Ri,Tt)),oe.set(oi,Ri),ct&&zt.set(Ri,oi)}}),{map:oe,reverseMap:zt}}var y,v,C;function x(){if(!y){var rt=g(p.pairs,!0),ct=rt.map,Tt=rt.reverseMap;y=ct,v=Tt,C=g(p.canonical,!1).map}}function S(rt){return x(),y.get(rt)||null}function _(rt){return x(),v.get(rt)||null}function k(rt){return x(),C.get(rt)||null}var F=r.L,T=r.R,P=r.EN,I=r.ES,O=r.ET,z=r.AN,Q=r.CS,G=r.B,dt=r.S,ft=r.ON,mt=r.BN,H=r.NSM,tt=r.AL,nt=r.LRO,Ct=r.RLO,Rt=r.LRE,ee=r.RLE,_e=r.PDF,Ae=r.LRI,ye=r.RLI,gi=r.FSI,Ee=r.PDI;function K(rt,ct){for(var Tt=125,ut=new Uint32Array(rt.length),oe=0;oe<rt.length;oe++)ut[oe]=f(rt[oe]);var zt=new Map;function $t(yr,bn){var br=ut[yr];ut[yr]=bn,zt.set(br,zt.get(br)-1),br&o&&zt.set(o,zt.get(o)-1),zt.set(bn,(zt.get(bn)||0)+1),bn&o&&zt.set(o,(zt.get(o)||0)+1)}for(var Pt=new Uint8Array(rt.length),Se=new Map,Te=[],kt=null,oi=0;oi<rt.length;oi++)kt||Te.push(kt={start:oi,end:rt.length-1,level:ct==="rtl"?1:ct==="ltr"?0:HI(oi,!1)}),ut[oi]&G&&(kt.end=oi,kt=null);for(var Ri=ee|Rt|Ct|nt|s|Ee|_e|G,Le=function(yr){return yr+(yr&1?1:2)},Fr=function(yr){return yr+(yr&1?2:1)},ui=0;ui<Te.length;ui++){kt=Te[ui];var me=[{_level:kt.level,_override:0,_isolate:0}],ue=void 0,Gi=0,ir=0,Ei=0;zt.clear();for(var Ke=kt.start;Ke<=kt.end;Ke++){var ni=ut[Ke];if(ue=me[me.length-1],zt.set(ni,(zt.get(ni)||0)+1),ni&o&&zt.set(o,(zt.get(o)||0)+1),ni&Ri)if(ni&(ee|Rt)){Pt[Ke]=ue._level;var mo=(ni===ee?Fr:Le)(ue._level);mo<=Tt&&!Gi&&!ir?me.push({_level:mo,_override:0,_isolate:0}):Gi||ir++}else if(ni&(Ct|nt)){Pt[Ke]=ue._level;var Ts=(ni===Ct?Fr:Le)(ue._level);Ts<=Tt&&!Gi&&!ir?me.push({_level:Ts,_override:ni&Ct?T:F,_isolate:0}):Gi||ir++}else if(ni&s){ni&gi&&(ni=HI(Ke+1,!0)===1?ye:Ae),Pt[Ke]=ue._level,ue._override&&$t(Ke,ue._override);var Is=(ni===ye?Fr:Le)(ue._level);Is<=Tt&&Gi===0&&ir===0?(Ei++,me.push({_level:Is,_override:0,_isolate:1,_isolInitIndex:Ke})):Gi++}else if(ni&Ee){if(Gi>0)Gi--;else if(Ei>0){for(ir=0;!me[me.length-1]._isolate;)me.pop();var Ca=me[me.length-1]._isolInitIndex;Ca!=null&&(Se.set(Ca,Ke),Se.set(Ke,Ca)),me.pop(),Ei--}ue=me[me.length-1],Pt[Ke]=ue._level,ue._override&&$t(Ke,ue._override)}else ni&_e?(Gi===0&&(ir>0?ir--:!ue._isolate&&me.length>1&&(me.pop(),ue=me[me.length-1])),Pt[Ke]=ue._level):ni&G&&(Pt[Ke]=kt.level);else Pt[Ke]=ue._level,ue._override&&ni!==mt&&$t(Ke,ue._override)}for(var Qr=[],rr=null,Br=kt.start;Br<=kt.end;Br++){var Hi=ut[Br];if(!(Hi&l)){var Ds=Pt[Br],go=Hi&s,R=Hi===Ee;rr&&Ds===rr._level?(rr._end=Br,rr._endsWithIsolInit=go):Qr.push(rr={_start:Br,_end:Br,_level:Ds,_startsWithPDI:R,_endsWithIsolInit:go})}}for(var xt=[],de=0;de<Qr.length;de++){var Ie=Qr[de];if(!Ie._startsWithPDI||Ie._startsWithPDI&&!Se.has(Ie._start)){for(var ve=[rr=Ie],hi=void 0;rr&&rr._endsWithIsolInit&&(hi=Se.get(rr._end))!=null;)for(var Nr=de+1;Nr<Qr.length;Nr++)if(Qr[Nr]._start===hi){ve.push(rr=Qr[Nr]);break}for(var gn=[],yo=0;yo<ve.length;yo++)for(var Lc=ve[yo],ka=Lc._start;ka<=Lc._end;ka++)gn.push(ka);for(var bo=Pt[gn[0]],Al=kt.level,Sa=gn[0]-1;Sa>=0;Sa--)if(!(ut[Sa]&l)){Al=Pt[Sa];break}var vo=gn[gn.length-1],qi=Pt[vo],Yi=kt.level;if(!(ut[vo]&s)){for(var gr=vo+1;gr<=kt.end;gr++)if(!(ut[gr]&l)){Yi=Pt[gr];break}}xt.push({_seqIndices:gn,_sosType:Math.max(Al,bo)%2?T:F,_eosType:Math.max(Yi,qi)%2?T:F})}}for(var Ps=0;Ps<xt.length;Ps++){var Xn=xt[Ps],Mt=Xn._seqIndices,Fs=Xn._sosType,k0=Xn._eosType,tn=Pt[Mt[0]]&1?T:F;if(zt.get(H))for(var wo=0;wo<Mt.length;wo++){var $c=Mt[wo];if(ut[$c]&H){for(var Uc=Fs,Tl=wo-1;Tl>=0;Tl--)if(!(ut[Mt[Tl]]&l)){Uc=ut[Mt[Tl]];break}$t($c,Uc&(s|Ee)?ft:Uc)}}if(zt.get(P))for(var xo=0;xo<Mt.length;xo++){var Il=Mt[xo];if(ut[Il]&P)for(var Bs=xo-1;Bs>=-1;Bs--){var FI=Bs===-1?Fs:ut[Mt[Bs]];if(FI&a){FI===tt&&$t(Il,z);break}}}if(zt.get(tt))for(var Vb=0;Vb<Mt.length;Vb++){var BI=Mt[Vb];ut[BI]&tt&&$t(BI,T)}if(zt.get(I)||zt.get(Q))for(var Zc=1;Zc<Mt.length-1;Zc++){var Lb=Mt[Zc];if(ut[Lb]&(I|Q)){for(var Dl=0,$b=0,Ub=Zc-1;Ub>=0&&(Dl=ut[Mt[Ub]],!!(Dl&l));Ub--);for(var Zb=Zc+1;Zb<Mt.length&&($b=ut[Mt[Zb]],!!($b&l));Zb++);Dl===$b&&(ut[Lb]===I?Dl===P:Dl&(P|z))&&$t(Lb,Dl)}}if(zt.get(P))for(var Jn=0;Jn<Mt.length;Jn++){var lst=Mt[Jn];if(ut[lst]&P){for(var S0=Jn-1;S0>=0&&ut[Mt[S0]]&(O|l);S0--)$t(Mt[S0],P);for(Jn++;Jn<Mt.length&&ut[Mt[Jn]]&(O|l|P);Jn++)ut[Mt[Jn]]!==P&&$t(Mt[Jn],P)}}if(zt.get(O)||zt.get(I)||zt.get(Q))for(var jc=0;jc<Mt.length;jc++){var NI=Mt[jc];if(ut[NI]&(O|I|Q)){$t(NI,ft);for(var _0=jc-1;_0>=0&&ut[Mt[_0]]&l;_0--)$t(Mt[_0],ft);for(var E0=jc+1;E0<Mt.length&&ut[Mt[E0]]&l;E0++)$t(Mt[E0],ft)}}if(zt.get(P))for(var jb=0,MI=Fs;jb<Mt.length;jb++){var zI=Mt[jb],Wb=ut[zI];Wb&P?MI===F&&$t(zI,F):Wb&a&&(MI=Wb)}if(zt.get(o)){var Wc=T|P|z,OI=Wc|F,A0=[];{for(var Pl=[],Fl=0;Fl<Mt.length;Fl++)if(ut[Mt[Fl]]&o){var Gc=rt[Mt[Fl]],RI=void 0;if(S(Gc)!==null)if(Pl.length<63)Pl.push({char:Gc,seqIndex:Fl});else break;else if((RI=_(Gc))!==null)for(var Hc=Pl.length-1;Hc>=0;Hc--){var Gb=Pl[Hc].char;if(Gb===RI||Gb===_(k(Gc))||S(k(Gb))===Gc){A0.push([Pl[Hc].seqIndex,Fl]),Pl.length=Hc;break}}}A0.sort(function(yr,bn){return yr[0]-bn[0]})}for(var Hb=0;Hb<A0.length;Hb++){for(var VI=A0[Hb],T0=VI[0],qb=VI[1],LI=!1,yn=0,Yb=T0+1;Yb<qb;Yb++){var $I=Mt[Yb];if(ut[$I]&OI){LI=!0;var UI=ut[$I]&Wc?T:F;if(UI===tn){yn=UI;break}}}if(LI&&!yn){yn=Fs;for(var Kb=T0-1;Kb>=0;Kb--){var ZI=Mt[Kb];if(ut[ZI]&OI){var jI=ut[ZI]&Wc?T:F;jI!==tn?yn=jI:yn=tn;break}}}if(yn){if(ut[Mt[T0]]=ut[Mt[qb]]=yn,yn!==tn){for(var qc=T0+1;qc<Mt.length;qc++)if(!(ut[Mt[qc]]&l)){f(rt[Mt[qc]])&H&&(ut[Mt[qc]]=yn);break}}if(yn!==tn){for(var Yc=qb+1;Yc<Mt.length;Yc++)if(!(ut[Mt[Yc]]&l)){f(rt[Mt[Yc]])&H&&(ut[Mt[Yc]]=yn);break}}}}for(var _a=0;_a<Mt.length;_a++)if(ut[Mt[_a]]&o){for(var WI=_a,Xb=_a,Jb=Fs,Kc=_a-1;Kc>=0;Kc--)if(ut[Mt[Kc]]&l)WI=Kc;else{Jb=ut[Mt[Kc]]&Wc?T:F;break}for(var GI=k0,Xc=_a+1;Xc<Mt.length;Xc++)if(ut[Mt[Xc]]&(o|l))Xb=Xc;else{GI=ut[Mt[Xc]]&Wc?T:F;break}for(var Qb=WI;Qb<=Xb;Qb++)ut[Mt[Qb]]=Jb===GI?Jb:tn;_a=Xb}}}for(var Mr=kt.start;Mr<=kt.end;Mr++){var ust=Pt[Mr],I0=ut[Mr];if(ust&1?I0&(F|P|z)&&Pt[Mr]++:I0&T?Pt[Mr]++:I0&(z|P)&&(Pt[Mr]+=2),I0&l&&(Pt[Mr]=Mr===0?kt.level:Pt[Mr-1]),Mr===kt.end||f(rt[Mr])&(dt|G))for(var D0=Mr;D0>=0&&f(rt[D0])&u;D0--)Pt[D0]=kt.level}}return{levels:Pt,paragraphs:Te};function HI(yr,bn){for(var br=yr;br<rt.length;br++){var Ea=ut[br];if(Ea&(T|tt))return 1;if(Ea&(G|F)||bn&&Ea===Ee)return 0;if(Ea&s){var qI=cst(br);br=qI===-1?rt.length:qI}}return 0}function cst(yr){for(var bn=1,br=yr+1;br<rt.length;br++){var Ea=ut[br];if(Ea&G)break;if(Ea&Ee){if(--bn===0)return br}else Ea&s&&bn++}return-1}}var q="14>1,j>2,t>2,u>2,1a>g,2v3>1,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1",ot;function Y(){if(!ot){var rt=g(q,!0),ct=rt.map,Tt=rt.reverseMap;Tt.forEach(function(ut,oe){ct.set(oe,ut)}),ot=ct}}function St(rt){return Y(),ot.get(rt)||null}function Bt(rt,ct,Tt,ut){var oe=rt.length;Tt=Math.max(0,Tt==null?0:+Tt),ut=Math.min(oe-1,ut==null?oe-1:+ut);for(var zt=new Map,$t=Tt;$t<=ut;$t++)if(ct[$t]&1){var Pt=St(rt[$t]);Pt!==null&&zt.set($t,Pt)}return zt}function Et(rt,ct,Tt,ut){var oe=rt.length;Tt=Math.max(0,Tt==null?0:+Tt),ut=Math.min(oe-1,ut==null?oe-1:+ut);var zt=[];return ct.paragraphs.forEach(function($t){var Pt=Math.max(Tt,$t.start),Se=Math.min(ut,$t.end);if(Pt<Se){for(var Te=ct.levels.slice(Pt,Se+1),kt=Se;kt>=Pt&&f(rt[kt])&u;kt--)Te[kt]=$t.level;for(var oi=$t.level,Ri=1/0,Le=0;Le<Te.length;Le++){var Fr=Te[Le];Fr>oi&&(oi=Fr),Fr<Ri&&(Ri=Fr|1)}for(var ui=oi;ui>=Ri;ui--)for(var me=0;me<Te.length;me++)if(Te[me]>=ui){for(var ue=me;me+1<Te.length&&Te[me+1]>=ui;)me++;me>ue&&zt.push([ue+Pt,me+Pt])}}}),zt}function Nt(rt,ct,Tt,ut){var oe=jt(rt,ct,Tt,ut),zt=[].concat(rt);return oe.forEach(function($t,Pt){zt[Pt]=(ct.levels[$t]&1?St(rt[$t]):null)||rt[$t]}),zt.join("")}function jt(rt,ct,Tt,ut){for(var oe=Et(rt,ct,Tt,ut),zt=[],$t=0;$t<rt.length;$t++)zt[$t]=$t;return oe.forEach(function(Pt){for(var Se=Pt[0],Te=Pt[1],kt=zt.slice(Se,Te+1),oi=kt.length;oi--;)zt[Te-oi]=kt[oi]}),zt}return t.closingToOpeningBracket=_,t.getBidiCharType=f,t.getBidiCharTypeName=h,t.getCanonicalBracket=k,t.getEmbeddingLevels=K,t.getMirroredCharacter=St,t.getMirroredCharactersMap=Bt,t.getReorderSegments=Et,t.getReorderedIndices=jt,t.getReorderedString=Nt,t.openingToClosingBracket=S,Object.defineProperty(t,"__esModule",{value:!0}),t}({});return e}var F6=QW,ny=null;function B6(){return ny||(ny=F6()),ny}var tG=/[--ۿ܀-ݏݐ-ݿހ-߀-߿ࠀ-ࡀ-ࡠ-ࢠ-ࣿיִ-ﭏﭐ-﷿ﹰ-𐴀-𐹠-𞠀-𞤀-𞥟--𞸀-]/u;function sy(e){return tG.test(e)}function N6(e){const t=B6(),{paragraphs:i}=t.getEmbeddingLevels(e);return i.length===0?"ltr":i[0].level%2===1?"rtl":"ltr"}function eG(e){const t=e.join(" ");return N6(t)}function iG(e,t){if(e.length<=1)return e.map((c,d)=>d);const i=e.join(" "),r=B6(),{levels:n}=r.getEmbeddingLevels(i,t),s=[];let a=0;for(let c=0;c<e.length;c++){const d=n[a];s.push(d),a+=e[c].length,c<e.length-1&&(a+=1)}const o=e.map((c,d)=>d),l=Math.max(...s),u=t==="rtl"?1:Math.min(...s.filter(c=>c%2===1),l+1);for(let c=l;c>=u;c--){let d=0;for(;d<o.length;)if(s[o[d]]>=c){let f=d;for(;f+1<o.length&&s[o[f+1]]>=c;)f++;if(d<f){let h=d,p=f;for(;h<p;){const g=o[h];o[h]=o[p],o[p]=g,h++,p--}}d=f+1}else d++}return o}function rG(e,t){return t?e==="left"?"right":e==="right"?"left":e:e}var ay=8205,nG=65038,oy=65039,sG=8419;function aG(e){return e>=127995&&e<=127999}function ly(e){return e>=127462&&e<=127487}function oG(e){return e>=917536&&e<=917631}function uy(e){return e===nG||e===oy||e===sG||aG(e)||oG(e)}var lG=new Set([169,174,8252,8265,8482,8505,8596,8597,8598,8599,8600,8601,8617,8618,8986,8987,9e3,9167,9410,9642,9643,9654,9664,9723,9724,9725,9726,10548,10549,12336,12349,12951,12953]);function uG(e){return uy(e)||e===ay?!1:ly(e)||e>=126976&&e<=129791||e>=9728&&e<=10175||e>=11008&&e<=11263||e>=9193&&e<=9210?!0:lG.has(e)}function cG(e){const t=Array.from(e,o=>o.codePointAt(0)??0),i=[];let r=[];const n=()=>{r.length>0&&(i.push({type:"text",text:String.fromCodePoint(...r)}),r=[])},s=o=>{n(),i.push({type:"emoji",text:String.fromCodePoint(...o),codepoints:o})};let a=0;for(;a<t.length;){const o=t[a],l=a+1<t.length?t[a+1]:-1;if(ly(o)){const c=[o];a++,a<t.length&&ly(t[a])&&(c.push(t[a]),a++),s(c);continue}if((uG(o)||l===oy)&&!uy(o)&&o!==ay){const c=[o];for(a++;a<t.length;){const d=t[a];if(d===ay){c.push(d),a++,a<t.length&&(c.push(t[a]),a++);continue}if(uy(d)){c.push(d),a++;continue}break}s(c);continue}r.push(o),a++}return n(),i}function cy(e){return e.filter(t=>t!==oy).map(t=>t.toString(16)).join("-")}function M6(e){const t=e.codePointAt(0);return t?t>=127744&&t<=129535||t>=9728&&t<=9983||t>=9984&&t<=10175||t>=65024&&t<=65039||t>=128512&&t<=128591||t>=128640&&t<=128767||t>=129280&&t<=129535||t>=129648&&t<=129791:!1}function dG(e){if(e.length<=1)return e;const t=e.slice(),i=t.map(a=>a.level),r=Math.max(...i),n=Math.min(...i),s=n%2===1?n:n+1;for(let a=r;a>=s;a--){let o=0;for(;o<t.length;)if(i[t.indexOf(t[o])]>=a){let l=o;for(;l+1<t.length&&t[l+1].level>=a;)l++;if(o<l){let u=o,c=l;for(;u<c;){const d=t[u];t[u]=t[c],t[c]=d,u++,c--}}o=l+1}else o++}return t}var z6=class{constructor(e){Gt(this,"fonts",e)}transformText(e,t){switch(t){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/\b\w/g,i=>i.toUpperCase());default:return e}}async shapeFull(e,t,i){try{const r=await this.fonts.getHB(),n=r.createBuffer();try{n.addText(e),n.guessSegmentProperties(),i&&n.setDirection(i);const s=await this.fonts.getFont(t),o=(await this.fonts.getFace(t))?.upem||1e3;return s.setScale(o,o),r.shape(s,n),n.json()}finally{try{n.destroy()}catch(s){console.error(`Error destroying HarfBuzz buffer: ${s instanceof Error?s.message:String(s)}`)}}}catch(r){throw new Error(`Failed to shape text with font "${t.family}": ${r instanceof Error?r.message:String(r)}`)}}splitIntoBidiRuns(e,t,i,r){const n=[];if(e.length===0)return n;let s=0,a=t[0],o=r?M6(e[0]):!1;for(let l=1;l<=e.length;l++){const u=l===e.length,c=u?-1:t[l],d=!u&&r?M6(String.fromCodePoint(e.codePointAt(l)??0)):!1;if(u||c!==a||r&&d!==o){const f=e.slice(s,l),h=o&&r?r:i;n.push({text:f,startIndex:s,endIndex:l,level:a,font:h}),u||(s=l,a=c,o=d)}}return n}async shapeWithBidi(e,t,i){const r=sy(e),n=/[a-zA-Z0-9]/.test(e);if(!(r&&n)&&!i){const f=r?"rtl":void 0;return this.shapeFull(e,t,f)}const a=F6(),{levels:o}=a.getEmbeddingLevels(e),l=this.splitIntoBidiRuns(e,o,t,i),u=[];for(const f of l){const h=f.level%2===1?"rtl":"ltr",p=await this.shapeFull(f.text,f.font,h);for(const g of p)g.cl+=f.startIndex,f.font!==t&&(g.fontDesc=f.font);u.push({glyphs:p,startIndex:f.startIndex,endIndex:f.endIndex,level:f.level})}const c=dG(u),d=[];for(const f of c)d.push(...f.glyphs);return d}async layout(e){try{const{textTransform:t,desc:i,fontSize:r,letterSpacing:n,wordSpacing:s=0,width:a}=e,o=this.transformText(e.text,t);if(!o||o.length===0)return[];const l=cG(o),u=l.some(T=>T.type==="emoji");let c;try{c=(await this.fonts.getFace(i))?.upem||1e3}catch(T){throw new Error(`Failed to get font metrics: ${T instanceof Error?T.message:String(T)}`)}const d=r/c,f=(T,P,I)=>{for(const O of T){const z=O.cl+P;let Q;if(z>=0&&z<o.length){const dt=o.codePointAt(z);dt!==void 0&&(Q=String.fromCodePoint(dt))}const G=Q===" ";I.push({id:O.g,xAdvance:O.ax*d+n+(G?s:0),xOffset:O.dx*d,yOffset:-O.dy*d,cluster:z,char:Q,fontDesc:O.fontDesc})}},h=[];try{if(u){let T=0;for(const P of l){if(P.type==="emoji")h.push({id:0,xAdvance:r+n,xOffset:0,yOffset:0,cluster:T,char:P.text,codepoints:P.codepoints,isColorEmoji:!0});else{const I=await this.shapeWithBidi(P.text,i);f(I,T,h)}T+=P.text.length}}else{const T=await this.shapeWithBidi(o,i);f(T,0,h)}}catch(T){throw new Error(`Text shaping failed: ${T instanceof Error?T.message:String(T)}`)}const p=[],g=new Map;for(const T of h)g.set(T.cluster,(g.get(T.cluster)??0)+T.xAdvance);const y=[...g.keys()].sort((T,P)=>T-P),v=(T,P)=>{const I=[];if(P>=T){const z=y[T],Q=y[P];for(let G=0;G<h.length;G++){const dt=h[G].cluster;dt>=z&&dt<=Q&&h[G].char!==`
|
|
383
|
+
</html>`}var EV="v3";async function AV(e){const t=`${EV} ${e.html} ${e.css} ${e.js} ${e.width} ${e.height}`,i=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",i);return Array.from(new Uint8Array(r)).map(n=>n.toString(16).padStart(2,"0")).join("")}var TV=/@keyframes|animation\s*:/i;function IV(e){const t=e.fps>0?e.fps:30,i=(e.clipLengthSeconds??0)*1e3,r=i>0?i:e.maxDurationMs??6e4;return TV.test(e.cssContent??"")||!!e.jsContent?.trim()?{frameCount:Math.max(1,Math.ceil(r/1e3*t)),durationMs:r}:{frameCount:1,durationMs:0}}var Tf=null;function GS(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null}function DV(e){if(e.buffer instanceof ArrayBuffer)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);const t=new ArrayBuffer(e.byteLength),i=new Uint8Array(t);for(let r=0;r<e.byteLength;r++)i[r]=e[r];return t}var HS="https://js.shotstack.io/canvas/hb.wasm";async function qS(e){try{const t=await fetch(e);if(t.ok){const i=await t.arrayBuffer(),r=new Uint8Array(i);if(r.length>=4&&r[0]===0&&r[1]===97&&r[2]===115&&r[3]===109)return i;console.error(`❌ Invalid WASM magic number from URL: ${e}`)}else console.error(`❌ Failed to fetch WASM from URL: ${e}, status: ${t.status}`);return}catch(t){console.error(`❌ Error fetching WASM from ${e}:`,t);return}}async function PV(){try{const{readFile:e}=await Promise.resolve().then(()=>i0),t=await Promise.resolve().then(()=>i0),i=[];try{const{createRequire:n}=await Promise.resolve().then(()=>i0),a=n((typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Qn&&Qn.tagName.toUpperCase()==="SCRIPT"&&Qn.src||new URL("shotstack-studio.umd.js",document.baseURI).href)||`file://${process.cwd()}/`).resolve("harfbuzzjs/package.json"),o=t.dirname(a);i.push(t.join(o,"hb.wasm"))}catch{}let r;try{if(typeof(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Qn&&Qn.tagName.toUpperCase()==="SCRIPT"&&Qn.src||new URL("shotstack-studio.umd.js",document.baseURI).href)=="string"){const{fileURLToPath:n}=await Promise.resolve().then(()=>i0);r=t.dirname(n(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Qn&&Qn.tagName.toUpperCase()==="SCRIPT"&&Qn.src||new URL("shotstack-studio.umd.js",document.baseURI).href))}}catch{}r||(r=process.cwd()),i.push(t.join(r,"dist/hb.wasm"),t.join(r,"assets/wasm/hb.wasm"),t.join(r,"node_modules/harfbuzzjs/hb.wasm"),t.join(r,"node_modules/@shotstack/shotstack-canvas/assets/wasm/hb.wasm")),i.push("/var/task/node_modules/harfbuzzjs/hb.wasm","/var/task/node_modules/@shotstack/shotstack-canvas/assets/wasm/hb.wasm");for(const n of i)try{const s=await e(n);return DV(s)}catch{continue}return await qS(HS)}catch(e){return console.error("Error in loadWasmNode:",e),await qS(HS)}}async function FV(e){try{if(e){const t=e.endsWith(".wasm")?e:e.endsWith("/")?`${e}hb.wasm`:`${e}/hb.wasm`,i=await fetch(t);if(i.ok){const r=await i.arrayBuffer(),n=new Uint8Array(r);if(n.length>=4&&n[0]===0&&n[1]===97&&n[2]===115&&n[3]===109)return r}}return}catch(t){console.error("Error in loadWasmWeb:",t);return}}function BV(e){const t=window.fetch;window.fetch=function(n,s){return(typeof n=="string"?n:n instanceof URL?n.href:n.url).includes("hb.wasm")?Promise.resolve(new Response(e.slice(0),{status:200,statusText:"OK",headers:{"Content-Type":"application/wasm","Content-Length":e.byteLength.toString()}})):t.apply(this,[n,s])};const i=WebAssembly.instantiate;WebAssembly.instantiate=async function(n,s){if(n instanceof WebAssembly.Module||(n instanceof ArrayBuffer,n.byteLength)!==e.byteLength)return i.call(WebAssembly,n,s);const o=await WebAssembly.compile(e),l=await i.call(WebAssembly,o,s);return{module:o,instance:l}};const r=WebAssembly.instantiateStreaming;r&&(WebAssembly.instantiateStreaming=async function(n,s){try{const a=await n;if((a.url||"").includes("hb.wasm")){const l=await WebAssembly.compile(e),u=await WebAssembly.instantiate(l,s);return{module:l,instance:u}}return r.call(WebAssembly,a,s)}catch(a){throw a}})}async function NV(e){if(Tf)return Tf;try{let t;if(GS()?t=await PV():t=await FV(e),!t)throw new Error("Failed to load WASM binary from any source");GS()||(BV(t),window.Module={wasmBinary:t,locateFile:l=>l});const i=await Promise.resolve().then(()=>nst),n=await(i.default||i)({wasmBinary:t}),s=await Promise.resolve().then(()=>ost),o=(s.default||s)(n);if(!o||typeof o.createBuffer!="function"||typeof o.createFont!="function")throw new Error("Failed to initialize HarfBuzz: unexpected export shape from 'harfbuzzjs'.");return Tf=o,Tf}catch(t){throw console.error("Failed to initialize HarfBuzz:",t),new Error(`Failed to initialize HarfBuzz: ${t instanceof Error?t.message:String(t)}`)}}var MV={utf16le:"utf-16le",ucs2:"utf-16le",utf16be:"utf-16be"},Di=class{constructor(e){this.buffer=e,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.pos=0,this.length=this.buffer.length}readString(e,t="ascii"){t=MV[t]||t;let i=this.readBuffer(e);try{return new TextDecoder(t).decode(i)}catch{return i}}readBuffer(e){return this.buffer.slice(this.pos,this.pos+=e)}readUInt24BE(){return(this.readUInt16BE()<<8)+this.readUInt8()}readUInt24LE(){return this.readUInt16LE()+(this.readUInt8()<<16)}readInt24BE(){return(this.readInt16BE()<<8)+this.readUInt8()}readInt24LE(){return this.readUInt16LE()+(this.readInt8()<<16)}};Di.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(let e of Object.getOwnPropertyNames(DataView.prototype))if(e.slice(0,3)==="get"){let t=e.slice(3).replace("Ui","UI");t==="Float32"?t="Float":t==="Float64"&&(t="Double");let i=Di.TYPES[t];Di.prototype["read"+t+(i===1?"":"BE")]=function(){const r=this.view[e](this.pos,!1);return this.pos+=i,r},i!==1&&(Di.prototype["read"+t+"LE"]=function(){const r=this.view[e](this.pos,!0);return this.pos+=i,r})}var zV=new TextEncoder,YS=new Uint8Array(new Uint16Array([4660]).buffer)[0]==18,If=class{constructor(e){this.buffer=e,this.view=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),this.pos=0}writeBuffer(e){this.buffer.set(e,this.pos),this.pos+=e.length}writeString(e,t="ascii"){let i;switch(t){case"utf16le":case"utf16-le":case"ucs2":i=KS(e,YS);break;case"utf16be":case"utf16-be":i=KS(e,!YS);break;case"utf8":i=zV.encode(e);break;case"ascii":i=OV(e);break;default:throw new Error(`Unsupported encoding: ${t}`)}this.writeBuffer(i)}writeUInt24BE(e){this.buffer[this.pos++]=e>>>16&255,this.buffer[this.pos++]=e>>>8&255,this.buffer[this.pos++]=e&255}writeUInt24LE(e){this.buffer[this.pos++]=e&255,this.buffer[this.pos++]=e>>>8&255,this.buffer[this.pos++]=e>>>16&255}writeInt24BE(e){e>=0?this.writeUInt24BE(e):this.writeUInt24BE(e+16777215+1)}writeInt24LE(e){e>=0?this.writeUInt24LE(e):this.writeUInt24LE(e+16777215+1)}fill(e,t){if(t<this.buffer.length)this.buffer.fill(e,this.pos,this.pos+t),this.pos+=t;else{const i=new Uint8Array(t);i.fill(e),this.writeBuffer(i)}}};function KS(e,t){let i=new Uint16Array(e.length);for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t&&(n=n>>8|(n&255)<<8),i[r]=n}return new Uint8Array(i.buffer)}function OV(e){let t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}for(let e of Object.getOwnPropertyNames(DataView.prototype))if(e.slice(0,3)==="set"){let t=e.slice(3).replace("Ui","UI");t==="Float32"?t="Float":t==="Float64"&&(t="Double");let i=Di.TYPES[t];If.prototype["write"+t+(i===1?"":"BE")]=function(r){this.view[e](this.pos,r,!1),this.pos+=i},i!==1&&(If.prototype["write"+t+"LE"]=function(r){this.view[e](this.pos,r,!0),this.pos+=i})}var os=class{fromBuffer(e){let t=new Di(e);return this.decode(t)}toBuffer(e){let t=this.size(e),i=new Uint8Array(t),r=new If(i);return this.encode(r,e),i}},Pe=class extends os{constructor(e,t="BE"){super(),this.type=e,this.endian=t,this.fn=this.type,this.type[this.type.length-1]!=="8"&&(this.fn+=this.endian)}size(){return Di.TYPES[this.type]}decode(e){return e[`read${this.fn}`]()}encode(e,t){return e[`write${this.fn}`](t)}},vt=new Pe("UInt8"),RV=new Pe("UInt16","BE"),w=RV;new Pe("UInt16","LE");var VV=new Pe("UInt24","BE"),Gs=VV;new Pe("UInt24","LE");var LV=new Pe("UInt32","BE"),$=LV;new Pe("UInt32","LE");var bi=new Pe("Int8"),$V=new Pe("Int16","BE"),st=$V;new Pe("Int16","LE"),new Pe("Int24","BE"),new Pe("Int24","LE");var UV=new Pe("Int32","BE"),Oa=UV;new Pe("Int32","LE"),new Pe("Float","BE"),new Pe("Float","LE"),new Pe("Double","BE"),new Pe("Double","LE");var Ra=class extends Pe{constructor(e,t,i=e>>1){super(`Int${e}`,t),this._point=1<<i}decode(e){return super.decode(e)/this._point}encode(e,t){return super.encode(e,t*this._point|0)}},ZV=new Ra(16,"BE"),jV=ZV;new Ra(16,"LE");var WV=new Ra(32,"BE"),li=WV;new Ra(32,"LE");function Sn(e,t,i){let r;if(typeof e=="number"?r=e:typeof e=="function"?r=e.call(i,i):i&&typeof e=="string"?r=i[e]:t&&e instanceof Pe&&(r=e.decode(t)),isNaN(r))throw new Error("Not a fixed size");return r}var Cg=class{constructor(e={}){this.enumerable=!0,this.configurable=!0;for(let t in e){const i=e[t];this[t]=i}}},V=class extends os{constructor(e,t,i="count"){super(),this.type=e,this.length=t,this.lengthType=i}decode(e,t){let i;const{pos:r}=e,n=[];let s=t;if(this.length!=null&&(i=Sn(this.length,e,t)),this.length instanceof Pe&&(Object.defineProperties(n,{parent:{value:t},_startOffset:{value:r},_currentOffset:{value:0,writable:!0},_length:{value:i}}),s=n),i==null||this.lengthType==="bytes"){const a=i!=null?e.pos+i:t?._length?t._startOffset+t._length:e.length;for(;e.pos<a;)n.push(this.type.decode(e,s))}else for(let a=0,o=i;a<o;a++)n.push(this.type.decode(e,s));return n}size(e,t,i=!0){if(!e)return this.type.size(null,t)*Sn(this.length,null,t);let r=0;this.length instanceof Pe&&(r+=this.length.size(),t={parent:t,pointerSize:0});for(let n of e)r+=this.type.size(n,t);return t&&i&&this.length instanceof Pe&&(r+=t.pointerSize),r}encode(e,t,i){let r=i;this.length instanceof Pe&&(r={pointers:[],startOffset:e.pos,parent:i},r.pointerOffset=e.pos+this.size(t,r,!1),this.length.encode(e,t.length));for(let n of t)this.type.encode(e,n,r);if(this.length instanceof Pe){let n=0;for(;n<r.pointers.length;){const s=r.pointers[n++];s.type.encode(e,s.val,s.parent)}}}},Me=class extends V{decode(e,t){const{pos:i}=e,r=Sn(this.length,e,t);this.length instanceof Pe&&(t={parent:t,_startOffset:i,_currentOffset:0,_length:r});const n=new kg(this.type,r,e,t);return e.pos+=r*this.type.size(null,t),n}size(e,t){return e instanceof kg&&(e=e.toArray()),super.size(e,t)}encode(e,t,i){return t instanceof kg&&(t=t.toArray()),super.encode(e,t,i)}},kg=class{constructor(e,t,i,r){this.type=e,this.length=t,this.stream=i,this.ctx=r,this.base=this.stream.pos,this.items=[]}get(e){if(!(e<0||e>=this.length)){if(this.items[e]==null){const{pos:t}=this.stream;this.stream.pos=this.base+this.type.size(null,this.ctx)*e,this.items[e]=this.type.decode(this.stream,this.ctx),this.stream.pos=t}return this.items[e]}}toArray(){const e=[];for(let t=0,i=this.length;t<i;t++)e.push(this.get(t));return e}},nn=class extends os{constructor(e,t=[]){super(),this.type=e,this.flags=t}decode(e){const t=this.type.decode(e),i={};for(let r=0;r<this.flags.length;r++){const n=this.flags[r];n!=null&&(i[n]=!!(t&1<<r))}return i}size(){return this.type.size()}encode(e,t){let i=0;for(let r=0;r<this.flags.length;r++){const n=this.flags[r];n!=null&&t[n]&&(i|=1<<r)}return this.type.encode(e,i)}},_n=class extends os{constructor(e){super(),this.length=e}decode(e,t){const i=Sn(this.length,e,t);return e.readBuffer(i)}size(e,t){if(!e)return Sn(this.length,null,t);let i=e.length;return this.length instanceof Pe&&(i+=this.length.size()),i}encode(e,t,i){return this.length instanceof Pe&&this.length.encode(e,t.length),e.writeBuffer(t)}},Df=class extends os{constructor(e,t=!0){super(),this.type=e,this.condition=t}decode(e,t){let{condition:i}=this;if(typeof i=="function"&&(i=i.call(t,t)),i)return this.type.decode(e,t)}size(e,t){let{condition:i}=this;return typeof i=="function"&&(i=i.call(t,t)),i?this.type.size(e,t):0}encode(e,t,i){let{condition:r}=this;if(typeof r=="function"&&(r=r.call(i,i)),r)return this.type.encode(e,t,i)}},qe=class extends os{constructor(e,t=1){super(),this.type=e,this.count=t}decode(e,t){e.pos+=this.size(null,t)}size(e,t){const i=Sn(this.count,null,t);return this.type.size()*i}encode(e,t,i){return e.fill(0,this.size(t,i))}},Fe=class extends os{constructor(e,t="ascii"){super(),this.length=e,this.encoding=t}decode(e,t){let i,r,{encoding:n}=this;typeof n=="function"&&(n=n.call(t,t)||"ascii");let s=Sg(n);if(this.length!=null)i=Sn(this.length,e,t);else{let o;for({buffer:o,length:i,pos:r}=e;r<i-s+1&&(o[r]!==0||s===2&&o[r+1]!==0);)r+=s;i=r-e.pos}const a=e.readString(i,n);return this.length==null&&e.pos<e.length&&(e.pos+=s),a}size(e,t){if(e==null)return Sn(this.length,null,t);let{encoding:i}=this;typeof i=="function"&&(i=i.call(t?.val,t?.val)||"ascii"),i==="utf16be"&&(i="utf16le");let r=XS(e,i);return this.length instanceof Pe&&(r+=this.length.size()),this.length==null&&(r+=Sg(i)),r}encode(e,t,i){let{encoding:r}=this;if(typeof r=="function"&&(r=r.call(i?.val,i?.val)||"ascii"),this.length instanceof Pe&&this.length.encode(e,XS(t,r)),e.writeString(t,r),this.length==null)return Sg(r)==2?e.writeUInt16LE(0):e.writeUInt8(0)}};function Sg(e){switch(e){case"ascii":case"utf8":return 1;case"utf16le":case"utf16-le":case"utf-16be":case"utf-16le":case"utf16be":case"utf16-be":case"ucs2":return 2;default:return 1}}function XS(e,t){switch(t){case"ascii":return e.length;case"utf8":let i=0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n>=55296&&n<=56319&&r<e.length-1){let s=e.charCodeAt(++r);(s&64512)===56320?n=((n&1023)<<10)+(s&1023)+65536:r--}n&4294967168?n&4294965248?n&4294901760?n&4292870144||(i+=4):i+=3:i+=2:i++}return i;case"utf16le":case"utf16-le":case"utf16be":case"utf16-be":case"ucs2":return e.length*2;default:throw new Error("Unknown encoding "+t)}}var W=class extends os{constructor(e={}){super(),this.fields=e}decode(e,t,i=0){const r=this._setup(e,t,i);return this._parseFields(e,r,this.fields),this.process!=null&&this.process.call(r,e),r}_setup(e,t,i){const r={};return Object.defineProperties(r,{parent:{value:t},_startOffset:{value:e.pos},_currentOffset:{value:0,writable:!0},_length:{value:i}}),r}_parseFields(e,t,i){for(let n in i){var r;const s=i[n];typeof s=="function"?r=s.call(t,t):r=s.decode(e,t),r!==void 0&&(r instanceof Cg?Object.defineProperty(t,n,r):t[n]=r),t._currentOffset=e.pos-t._startOffset}}size(e,t,i=!0){e==null&&(e={});const r={parent:t,val:e,pointerSize:0};this.preEncode!=null&&this.preEncode.call(e);let n=0;for(let s in this.fields){const a=this.fields[s];a.size!=null&&(n+=a.size(e[s],r))}return i&&(n+=r.pointerSize),n}encode(e,t,i){let r;this.preEncode!=null&&this.preEncode.call(t,e);const n={pointers:[],startOffset:e.pos,parent:i,val:t,pointerSize:0};n.pointerOffset=e.pos+this.size(t,n,!1);for(let a in this.fields)r=this.fields[a],r.encode!=null&&r.encode(e,t[a],n);let s=0;for(;s<n.pointers.length;){const a=n.pointers[s++];a.type.encode(e,a.val,a.parent)}}},GV=(e,t)=>t.reduce((i,r)=>i&&i[r],e),ge=class YI extends W{constructor(t,i={}){super(),this.type=t,this.versions=i,typeof t=="string"&&(this.versionPath=t.split("."))}decode(t,i,r=0){const n=this._setup(t,i,r);typeof this.type=="string"?n.version=GV(i,this.versionPath):n.version=this.type.decode(t),this.versions.header&&this._parseFields(t,n,this.versions.header);const s=this.versions[n.version];if(s==null)throw new Error(`Unknown version ${n.version}`);return s instanceof YI?s.decode(t,i):(this._parseFields(t,n,s),this.process!=null&&this.process.call(n,t),n)}size(t,i,r=!0){let n,s;if(!t)throw new Error("Not a fixed size");this.preEncode!=null&&this.preEncode.call(t);const a={parent:i,val:t,pointerSize:0};let o=0;if(typeof this.type!="string"&&(o+=this.type.size(t.version,a)),this.versions.header)for(n in this.versions.header)s=this.versions.header[n],s.size!=null&&(o+=s.size(t[n],a));const l=this.versions[t.version];if(l==null)throw new Error(`Unknown version ${t.version}`);for(n in l)s=l[n],s.size!=null&&(o+=s.size(t[n],a));return r&&(o+=a.pointerSize),o}encode(t,i,r){let n,s;this.preEncode!=null&&this.preEncode.call(i,t);const a={pointers:[],startOffset:t.pos,parent:r,val:i,pointerSize:0};if(a.pointerOffset=t.pos+this.size(i,a,!1),typeof this.type!="string"&&this.type.encode(t,i.version),this.versions.header)for(n in this.versions.header)s=this.versions.header[n],s.encode!=null&&s.encode(t,i[n],a);const o=this.versions[i.version];for(n in o)s=o[n],s.encode!=null&&s.encode(t,i[n],a);let l=0;for(;l<a.pointers.length;){const u=a.pointers[l++];u.type.encode(t,u.val,u.parent)}}},L=class extends os{constructor(e,t,i={}){if(super(),this.offsetType=e,this.type=t,this.options=i,this.type==="void"&&(this.type=null),this.options.type==null&&(this.options.type="local"),this.options.allowNull==null&&(this.options.allowNull=!0),this.options.nullValue==null&&(this.options.nullValue=0),this.options.lazy==null&&(this.options.lazy=!1),this.options.relativeTo){if(typeof this.options.relativeTo!="function")throw new Error("relativeTo option must be a function");this.relativeToGetter=i.relativeTo}}decode(e,t){const i=this.offsetType.decode(e,t);if(i===this.options.nullValue&&this.options.allowNull)return null;let r;switch(this.options.type){case"local":r=t._startOffset;break;case"immediate":r=e.pos-this.offsetType.size();break;case"parent":r=t.parent._startOffset;break;default:for(var n=t;n.parent;)n=n.parent;r=n._startOffset||0}this.options.relativeTo&&(r+=this.relativeToGetter(t));const s=i+r;if(this.type!=null){let a=null;const o=()=>{if(a!=null)return a;const{pos:l}=e;return e.pos=s,a=this.type.decode(e,t),e.pos=l,a};return this.options.lazy?new Cg({get:o}):o()}else return s}size(e,t){const i=t;switch(this.options.type){case"local":case"immediate":break;case"parent":t=t.parent;break;default:for(;t.parent;)t=t.parent}let{type:r}=this;if(r==null){if(!(e instanceof _g))throw new Error("Must be a VoidPointer");({type:r}=e),e=e.value}if(e&&t){let n=r.size(e,i);t.pointerSize+=n}return this.offsetType.size()}encode(e,t,i){let r;const n=i;if(t==null){this.offsetType.encode(e,this.options.nullValue);return}switch(this.options.type){case"local":r=i.startOffset;break;case"immediate":r=e.pos+this.offsetType.size(t,n);break;case"parent":i=i.parent,r=i.startOffset;break;default:for(r=0;i.parent;)i=i.parent}this.options.relativeTo&&(r+=this.relativeToGetter(n.val)),this.offsetType.encode(e,i.pointerOffset-r);let{type:s}=this;if(s==null){if(!(t instanceof _g))throw new Error("Must be a VoidPointer");({type:s}=t),t=t.value}return i.pointers.push({type:s,val:t,parent:n}),i.pointerOffset+=s.size(t,n)}},_g=class{constructor(e,t){this.type=e,this.value=t}};function ar(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Pi(e,t,i,r){var n=arguments.length,s=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,r);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(n<3?a(s):n>3?a(t,i,s):a(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s}var JS=Ms(GN()),HV=Ms(p4()),qV=Ms(g4());function Va(e){return e&&e.__esModule?e.default:e}var Hs={};Hs=JSON.parse('{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}');var Eg=new qV.default(HV.default.toByteArray("AAARAAAAAADwfAEAZXl5ONRt+/5bPVFZimRfKoTQJNm37CGE7Iw0j3UsTWKsoyI7kwyyTiEUzSD7NiEzhWYijH0wMVkHE4Mx49fzfo+3nuP4/fdZjvv+XNd5n/d9nef1WZvmKhTxiZndzDQBSEYQqxqKwnsKvGQucFh+6t6cJ792ePQBZv5S9yXSwkyjf/P4T7mTNnIAv1dOVhMlR9lflbUL9JeJguqsjvG9NTj/wLb566VAURnLo2vvRi89S3gW/33ihh2eXpDn40BIW7REl/7coRKIhAFlAiOtbLDTt6mMb4GzMF1gNnvX/sBxtbsAIjfztCNcQjcNDtLThRvuXu5M5g/CBjaLBE4lJm4qy/oZD97+IJryApcXfgWYlkvWbhfXgujOJKVu8B+ozqTLbxyJ5kNiR75CxDqfBM9eOlDMmGeoZ0iQbbS5VUplIwI+ZNXEKQVJxlwqjhOY7w3XwPesbLK5J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UQiAGCvIl8GGyaqz5zH+1gMP5phWUCpKtttWIyicz09vXg76GxkmiGSMQ06Z9X8BUwqOtauDbPIf4rpK/yYoeAHxJ9soXS9VDe1Aw+awOOxaN8foLrif0TXBvQ55dtRtulRq9emFDBxlQcqKCaD8NeTSE7FOHvcjf/+oKbbtRqz9gbofoc2EzQ3pL6W5JdfJzAWmOk8oeoECe90lVMruwl/ltM015P/zIPazqvdvFmLNVHMIZrwiQ2tIKtGh6PDVH+85ew3caqVt2BsDv5rOcu3G9srQWd7NmgtzCRUXLYknYRSwtH9oUtkqyN3CfP20xQ1faXQl4MEmjQehWR6GmGnkdpYNQYeIG408yAX7uCZmYUic9juOfb+Re28+OVOB+scYK4DaPcBe+5wmji9gymtkMpKo4UKqCz7yxzuN8VIlx9yNozpRJpNaWHtaZVEqP45n2JemTlYBSmNIK1FuSYAUQ1yBLnKxevrjayd+h2i8PjdB3YY6b0nr3JuOXGpPMyh4V2dslpR3DFEvgpsBLqhqLDOWP4yEvIL6f21PpA7/8B")),YV=Math.log2||(e=>Math.log(e)/Math.LN2),Pf=e=>YV(e)+1|0,KV=Pf(Va(Hs).categories.length-1),QS=Pf(Va(Hs).combiningClasses.length-1),Ag=Pf(Va(Hs).scripts.length-1),Tg=Pf(Va(Hs).eaw.length-1),Ig=10,XV=QS+Ag+Tg+Ig,JV=Ag+Tg+Ig,QV=Tg+Ig,tL=(1<<KV)-1,eL=(1<<QS)-1,iL=(1<<Ag)-1;function Ff(e){const t=Eg.get(e);return Va(Hs).categories[t>>XV&tL]}function rL(e){const t=Eg.get(e);return Va(Hs).combiningClasses[t>>JV&eL]}function t_(e){const t=Eg.get(e);return Va(Hs).scripts[t>>QV&iL]}function e_(e){return Ff(e)==="Nd"}function i_(e){const t=Ff(e);return t==="Mn"||t==="Me"||t==="Mc"}var Dg=Ms(g4()),r_=Ms(qN()),Pg=Ms(YN()),nL=Ms(m4()),sL=Ms(iM());function Su(e,t,i,r){Object.defineProperty(e,t,{get:i,set:r,enumerable:!0,configurable:!0})}function Bf(e){return e&&e.__esModule?e.default:e}var _u={};Su(_u,"logErrors",()=>aL),Su(_u,"registerFormat",()=>Lo),Su(_u,"create",()=>n_),Su(_u,"defaultLanguage",()=>Nf),Su(_u,"setDefaultLanguage",()=>oL);var aL=!1,Fg=[];function Lo(e){Fg.push(e)}function n_(e,t){for(let i=0;i<Fg.length;i++){let r=Fg[i];if(r.probe(e)){let n=new r(new Di(e));return t?n.getFont(t):n}}throw new Error("Unknown font format")}var Nf="en";function oL(e="en"){Nf=e}function Fi(e,t,i){if(i.get){let r=i.get;i.get=function(){let n=r.call(this);return Object.defineProperty(this,t,{value:n}),n}}else if(typeof i.value=="function"){let r=i.value;return{get(){let n=new Map;function s(...a){let o=a.length>0?a[0]:"value";if(n.has(o))return n.get(o);let l=r.apply(this,a);return n.set(o,l),l}return Object.defineProperty(this,t,{value:s}),s}}}}var lL=new W({firstCode:w,entryCount:w,idDelta:st,idRangeOffset:w}),Bg=new W({startCharCode:$,endCharCode:$,glyphID:$}),uL=new W({startUnicodeValue:Gs,additionalCount:vt}),cL=new W({unicodeValue:Gs,glyphID:w}),dL=new V(uL,$),fL=new V(cL,$),hL=new W({varSelector:Gs,defaultUVS:new L($,dL,{type:"parent"}),nonDefaultUVS:new L($,fL,{type:"parent"})}),pL=new ge(w,{0:{length:w,language:w,codeMap:new Me(vt,256)},2:{length:w,language:w,subHeaderKeys:new V(w,256),subHeaderCount:e=>Math.max.apply(Math,e.subHeaderKeys),subHeaders:new Me(lL,"subHeaderCount"),glyphIndexArray:new Me(w,"subHeaderCount")},4:{length:w,language:w,segCountX2:w,segCount:e=>e.segCountX2>>1,searchRange:w,entrySelector:w,rangeShift:w,endCode:new Me(w,"segCount"),reservedPad:new qe(w),startCode:new Me(w,"segCount"),idDelta:new Me(st,"segCount"),idRangeOffset:new Me(w,"segCount"),glyphIndexArray:new Me(w,e=>(e.length-e._currentOffset)/2)},6:{length:w,language:w,firstCode:w,entryCount:w,glyphIndices:new Me(w,"entryCount")},8:{reserved:new qe(w),length:$,language:w,is32:new Me(vt,8192),nGroups:$,groups:new Me(Bg,"nGroups")},10:{reserved:new qe(w),length:$,language:$,firstCode:$,entryCount:$,glyphIndices:new Me(w,"numChars")},12:{reserved:new qe(w),length:$,language:$,nGroups:$,groups:new Me(Bg,"nGroups")},13:{reserved:new qe(w),length:$,language:$,nGroups:$,groups:new Me(Bg,"nGroups")},14:{length:$,numRecords:$,varSelectors:new Me(hL,"numRecords")}}),mL=new W({platformID:w,encodingID:w,table:new L($,pL,{type:"parent",lazy:!0})}),gL=new W({version:w,numSubtables:w,tables:new V(mL,"numSubtables")}),yL=new W({version:Oa,revision:Oa,checkSumAdjustment:$,magicNumber:$,flags:w,unitsPerEm:w,created:new V(Oa,2),modified:new V(Oa,2),xMin:st,yMin:st,xMax:st,yMax:st,macStyle:new nn(w,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:w,fontDirectionHint:st,indexToLocFormat:st,glyphDataFormat:st}),bL=new W({version:Oa,ascent:st,descent:st,lineGap:st,advanceWidthMax:w,minLeftSideBearing:st,minRightSideBearing:st,xMaxExtent:st,caretSlopeRise:st,caretSlopeRun:st,caretOffset:st,reserved:new qe(st,4),metricDataFormat:st,numberOfMetrics:w}),vL=new W({advance:w,bearing:st}),wL=new W({metrics:new Me(vL,e=>e.parent.hhea.numberOfMetrics),bearings:new Me(st,e=>e.parent.maxp.numGlyphs-e.parent.hhea.numberOfMetrics)}),xL=new W({version:Oa,numGlyphs:w,maxPoints:w,maxContours:w,maxComponentPoints:w,maxComponentContours:w,maxZones:w,maxTwilightPoints:w,maxStorage:w,maxFunctionDefs:w,maxInstructionDefs:w,maxStackElements:w,maxSizeOfInstructions:w,maxComponentElements:w,maxComponentDepth:w});function s_(e,t,i=0){return e===1&&a_[i]?a_[i]:_L[e][t]}var CL=new Set(["x-mac-roman","x-mac-cyrillic","iso-8859-6","iso-8859-8"]),kL={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},Ng=new Map;function SL(e){let t=Ng.get(e);if(t)return t;let i=kL[e];if(i){let r=new Map;for(let n=0;n<i.length;n++)r.set(i.charCodeAt(n),128+n);return Ng.set(e,r),r}if(CL.has(e)){let r=new TextDecoder(e),n=new Uint8Array(128);for(let o=0;o<128;o++)n[o]=128+o;let s=new Map,a=r.decode(n);for(let o=0;o<128;o++)s.set(a.charCodeAt(o),128+o);return Ng.set(e,s),s}}var _L=[["utf-16be","utf-16be","utf-16be","utf-16be","utf-16be","utf-16be","utf-16be"],["x-mac-roman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","x-mac-greek","x-mac-cyrillic","x-mac-symbol","x-mac-devanagari","x-mac-gurmukhi","x-mac-gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","iso-8859-11","Laotian","Georgian","Armenian","gbk","Tibetan","Mongolian","Geez","x-mac-ce","Vietnamese","Sindhi"],["ascii",null,"iso-8859-1"],["symbol","utf-16be","shift-jis","gb18030","big5","euc-kr","johab",null,null,null,"utf-16be"]],a_={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"},EL=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],o_=new W({platformID:w,encodingID:w,languageID:w,nameID:w,length:w,string:new L(w,new Fe("length",e=>s_(e.platformID,e.encodingID,e.languageID)),{type:"parent",relativeTo:e=>e.parent.stringOffset,allowNull:!1})}),AL=new W({length:w,tag:new L(w,new Fe("length","utf16be"),{type:"parent",relativeTo:e=>e.stringOffset})}),Mf=new ge(w,{0:{count:w,stringOffset:w,records:new V(o_,"count")},1:{count:w,stringOffset:w,records:new V(o_,"count"),langTagCount:w,langTags:new V(AL,"langTagCount")}}),TL=Mf,Mg=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];Mf.process=function(e){var t={};for(let i of this.records){let r=EL[i.platformID][i.languageID];r==null&&this.langTags!=null&&i.languageID>=32768&&(r=this.langTags[i.languageID-32768].tag),r==null&&(r=i.platformID+"-"+i.languageID);let n=i.nameID>=256?"fontFeatures":Mg[i.nameID]||i.nameID;t[n]==null&&(t[n]={});let s=t[n];i.nameID>=256&&(s=s[i.nameID]||(s[i.nameID]={})),(typeof i.string=="string"||typeof s[r]!="string")&&(s[r]=i.string)}this.records=t},Mf.preEncode=function(){if(Array.isArray(this.records))return;this.version=0;let e=[];for(let t in this.records){let i=this.records[t];t!=="fontFeatures"&&(e.push({platformID:3,encodingID:1,languageID:1033,nameID:Mg.indexOf(t),length:i.en.length*2,string:i.en}),t==="postscriptName"&&e.push({platformID:1,encodingID:0,languageID:0,nameID:Mg.indexOf(t),length:i.en.length,string:i.en}))}this.records=e,this.count=e.length,this.stringOffset=Mf.size(this,null,!1)};var l_=new ge(w,{header:{xAvgCharWidth:st,usWeightClass:w,usWidthClass:w,fsType:new nn(w,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:st,ySubscriptYSize:st,ySubscriptXOffset:st,ySubscriptYOffset:st,ySuperscriptXSize:st,ySuperscriptYSize:st,ySuperscriptXOffset:st,ySuperscriptYOffset:st,yStrikeoutSize:st,yStrikeoutPosition:st,sFamilyClass:st,panose:new V(vt,10),ulCharRange:new V($,4),vendorID:new Fe(4),fsSelection:new nn(w,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:w,usLastCharIndex:w},0:{},1:{typoAscender:st,typoDescender:st,typoLineGap:st,winAscent:w,winDescent:w,codePageRange:new V($,2)},2:{typoAscender:st,typoDescender:st,typoLineGap:st,winAscent:w,winDescent:w,codePageRange:new V($,2),xHeight:st,capHeight:st,defaultChar:w,breakChar:w,maxContent:w},5:{typoAscender:st,typoDescender:st,typoLineGap:st,winAscent:w,winDescent:w,codePageRange:new V($,2),xHeight:st,capHeight:st,defaultChar:w,breakChar:w,maxContent:w,usLowerOpticalPointSize:w,usUpperOpticalPointSize:w}}),zg=l_.versions;zg[3]=zg[4]=zg[2];var IL=l_,DL=new ge(li,{header:{italicAngle:li,underlinePosition:st,underlineThickness:st,isFixedPitch:$,minMemType42:$,maxMemType42:$,minMemType1:$,maxMemType1:$},1:{},2:{numberOfGlyphs:w,glyphNameIndex:new V(w,"numberOfGlyphs"),names:new V(new Fe(vt))},2.5:{numberOfGlyphs:w,offsets:new V(vt,"numberOfGlyphs")},3:{},4:{map:new V($,e=>e.parent.maxp.numGlyphs)}}),PL=new W({controlValues:new V(st)}),FL=new W({instructions:new V(vt)}),Og=new ge("head.indexToLocFormat",{0:{offsets:new V(w)},1:{offsets:new V($)}});Og.process=function(){if(this.version===0&&!this._processed){for(let e=0;e<this.offsets.length;e++)this.offsets[e]<<=1;this._processed=!0}},Og.preEncode=function(){if(this.version===0&&this._processed!==!1){for(let e=0;e<this.offsets.length;e++)this.offsets[e]>>>=1;this._processed=!1}};var BL=Og,NL=new W({controlValueProgram:new V(vt)}),ML=new V(new _n),En=class{getCFFVersion(e){for(;e&&!e.hdrSize;)e=e.parent;return e?e.version:-1}decode(e,t){let r=this.getCFFVersion(t)>=2?e.readUInt32BE():e.readUInt16BE();if(r===0)return[];let n=e.readUInt8(),s;if(n===1)s=vt;else if(n===2)s=w;else if(n===3)s=Gs;else if(n===4)s=$;else throw new Error(`Bad offset size in CFFIndex: ${n} ${e.pos}`);let a=[],o=e.pos+(r+1)*n-1,l=s.decode(e);for(let u=0;u<r;u++){let c=s.decode(e);if(this.type!=null){let d=e.pos;e.pos=o+l,t.length=c-l,a.push(this.type.decode(e,t)),e.pos=d}else a.push({offset:o+l,length:c-l});l=c}return e.pos=o+l,a}size(e,t){let i=2;if(e.length===0)return i;let r=this.type||new _n,n=1;for(let a=0;a<e.length;a++){let o=e[a];n+=r.size(o,t)}let s;if(n<=255)s=vt;else if(n<=65535)s=w;else if(n<=16777215)s=Gs;else if(n<=4294967295)s=$;else throw new Error("Bad offset in CFFIndex");return i+=1+s.size()*(e.length+1),i+=n-1,i}encode(e,t,i){if(e.writeUInt16BE(t.length),t.length===0)return;let r=this.type||new _n,n=[],s=1;for(let o of t){let l=r.size(o,i);n.push(l),s+=l}let a;if(s<=255)a=vt;else if(s<=65535)a=w;else if(s<=16777215)a=Gs;else if(s<=4294967295)a=$;else throw new Error("Bad offset in CFFIndex");e.writeUInt8(a.size()),s=1,a.encode(e,s);for(let o of n)s+=o,a.encode(e,s);for(let o of t)r.encode(e,o,i)}constructor(e){this.type=e}},Eu=15,u_=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],c_={".":10,E:11,"E-":12,"-":14},Rg=class{static decode(e,t){if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return(t-247)*256+e.readUInt8()+108;if(251<=t&&t<=254)return-(t-251)*256-e.readUInt8()-108;if(t===28)return e.readInt16BE();if(t===29)return e.readInt32BE();if(t===30){let i="";for(;;){let r=e.readUInt8(),n=r>>4;if(n===Eu)break;i+=u_[n];let s=r&15;if(s===Eu)break;i+=u_[s]}return parseFloat(i)}return null}static size(e){if(e.forceLarge&&(e=32768),(e|0)!==e){let t=""+e;return 1+Math.ceil((t.length+1)/2)}else return-107<=e&&e<=107?1:108<=e&&e<=1131||-1131<=e&&e<=-108?2:-32768<=e&&e<=32767?3:5}static encode(e,t){let i=Number(t);if(t.forceLarge)return e.writeUInt8(29),e.writeInt32BE(i);if((i|0)!==i){e.writeUInt8(30);let n=""+i;for(let s=0;s<n.length;s+=2){let a=n[s],o=c_[a]||+a;if(s===n.length-1)var r=Eu;else{let l=n[s+1];var r=c_[l]||+l}e.writeUInt8(o<<4|r&15)}if(r!==Eu)return e.writeUInt8(Eu<<4)}else return-107<=i&&i<=107?e.writeUInt8(i+139):108<=i&&i<=1131?(i-=108,e.writeUInt8((i>>8)+247),e.writeUInt8(i&255)):-1131<=i&&i<=-108?(i=-i-108,e.writeUInt8((i>>8)+251),e.writeUInt8(i&255)):-32768<=i&&i<=32767?(e.writeUInt8(28),e.writeInt16BE(i)):(e.writeUInt8(29),e.writeInt32BE(i))}},zf=class{decodeOperands(e,t,i,r){if(Array.isArray(e))return r.map((n,s)=>this.decodeOperands(e[s],t,i,[n]));if(e.decode!=null)return e.decode(t,i,r);switch(e){case"number":case"offset":case"sid":return r[0];case"boolean":return!!r[0];default:return r}}encodeOperands(e,t,i,r){return Array.isArray(e)?r.map((n,s)=>this.encodeOperands(e[s],t,i,n)[0]):e.encode!=null?e.encode(t,r,i):typeof r=="number"?[r]:typeof r=="boolean"?[+r]:Array.isArray(r)?r:[r]}decode(e,t){let i=e.pos+t.length,r={},n=[];Object.defineProperties(r,{parent:{value:t},_startOffset:{value:e.pos}});for(let s in this.fields){let a=this.fields[s];r[a[1]]=a[3]}for(;e.pos<i;){let s=e.readUInt8();if(s<28){s===12&&(s=s<<8|e.readUInt8());let a=this.fields[s];if(!a)throw new Error(`Unknown operator ${s}`);let o=this.decodeOperands(a[2],e,r,n);o!=null&&(o instanceof Cg?Object.defineProperty(r,a[1],o):r[a[1]]=o),n=[]}else n.push(Rg.decode(e,s))}return r}size(e,t,i=!0){let r={parent:t,val:e,pointerSize:0,startOffset:t.startOffset||0},n=0;for(let s in this.fields){let a=this.fields[s],o=e[a[1]];if(o==null||(0,JS.default)(o,a[3]))continue;let l=this.encodeOperands(a[2],null,r,o);for(let c of l)n+=Rg.size(c);let u=Array.isArray(a[0])?a[0]:[a[0]];n+=u.length}return i&&(n+=r.pointerSize),n}encode(e,t,i){let r={pointers:[],startOffset:e.pos,parent:i,val:t,pointerSize:0};r.pointerOffset=e.pos+this.size(t,r,!1);for(let s of this.ops){let a=t[s[1]];if(a==null||(0,JS.default)(a,s[3]))continue;let o=this.encodeOperands(s[2],e,r,a);for(let u of o)Rg.encode(e,u);let l=Array.isArray(s[0])?s[0]:[s[0]];for(let u of l)e.writeUInt8(u)}let n=0;for(;n<r.pointers.length;){let s=r.pointers[n++];s.type.encode(e,s.val,s.parent)}}constructor(e=[]){this.ops=e,this.fields={};for(let t of e){let i=Array.isArray(t[0])?t[0][0]<<8|t[0][1]:t[0];this.fields[i]=t}}},sn=class extends L{decode(e,t,i){return this.offsetType={decode:()=>i[0]},super.decode(e,t,i)}encode(e,t,i){if(!e)return this.offsetType={size:()=>0},this.size(t,i),[new d_(0)];let r=null;return this.offsetType={encode:(n,s)=>r=s},super.encode(e,t,i),[new d_(r)]}constructor(e,t={}){t.type==null&&(t.type="global"),super(null,e,t)}},d_=class{valueOf(){return this.val}constructor(e){this.val=e,this.forceLarge=!0}},zL=class{static decode(e,t,i){let r=i.pop();for(;i.length>r;)i.pop()}},Vg=new zf([[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","number",.039625],[[12,10],"BlueShift","number",7],[[12,11],"BlueFuzz","number",1],[10,"StdHW","number",null],[11,"StdVW","number",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","boolean",!1],[[12,17],"LanguageGroup","number",0],[[12,18],"ExpansionFactor","number",.06],[[12,19],"initialRandomSeed","number",0],[20,"defaultWidthX","number",0],[21,"nominalWidthX","number",0],[22,"vsindex","number",0],[23,"blend",zL,null],[19,"Subrs",new sn(new En,{type:"local"}),null]]),Of=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],f_=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],OL=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],h_=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],RL=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],VL=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"],p_=new W({reserved:new qe(w),reqFeatureIndex:w,featureCount:w,featureIndexes:new V(w,"featureCount")}),LL=new W({tag:new Fe(4),langSys:new L(w,p_,{type:"parent"})}),$L=new W({defaultLangSys:new L(w,p_),count:w,langSysRecords:new V(LL,"count")}),UL=new W({tag:new Fe(4),script:new L(w,$L,{type:"parent"})}),m_=new V(UL,w),ZL=new W({version:w,nameID:w}),g_=new W({featureParams:new L(w,ZL),lookupCount:w,lookupListIndexes:new V(w,"lookupCount")}),jL=new W({tag:new Fe(4),feature:new L(w,g_,{type:"parent"})}),y_=new V(jL,w),WL=new W({markAttachmentType:vt,flags:new nn(vt,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function Rf(e){let t=new W({lookupType:w,flags:WL,subTableCount:w,subTables:new V(new L(w,e),"subTableCount"),markFilteringSet:new Df(w,i=>i.flags.flags.useMarkFilteringSet)});return new Me(new L(w,t),w)}var GL=new W({start:w,end:w,startCoverageIndex:w}),Be=new ge(w,{1:{glyphCount:w,glyphs:new V(w,"glyphCount")},2:{rangeCount:w,rangeRecords:new V(GL,"rangeCount")}}),HL=new W({start:w,end:w,class:w}),qs=new ge(w,{1:{startGlyph:w,glyphCount:w,classValueArray:new V(w,"glyphCount")},2:{classRangeCount:w,classRangeRecord:new V(HL,"classRangeCount")}}),Ys=new W({a:w,b:w,deltaFormat:w}),Au=new W({sequenceIndex:w,lookupListIndex:w}),qL=new W({glyphCount:w,lookupCount:w,input:new V(w,e=>e.glyphCount-1),lookupRecords:new V(Au,"lookupCount")}),YL=new V(new L(w,qL),w),KL=new W({glyphCount:w,lookupCount:w,classes:new V(w,e=>e.glyphCount-1),lookupRecords:new V(Au,"lookupCount")}),XL=new V(new L(w,KL),w),b_=new ge(w,{1:{coverage:new L(w,Be),ruleSetCount:w,ruleSets:new V(new L(w,YL),"ruleSetCount")},2:{coverage:new L(w,Be),classDef:new L(w,qs),classSetCnt:w,classSet:new V(new L(w,XL),"classSetCnt")},3:{glyphCount:w,lookupCount:w,coverages:new V(new L(w,Be),"glyphCount"),lookupRecords:new V(Au,"lookupCount")}}),JL=new W({backtrackGlyphCount:w,backtrack:new V(w,"backtrackGlyphCount"),inputGlyphCount:w,input:new V(w,e=>e.inputGlyphCount-1),lookaheadGlyphCount:w,lookahead:new V(w,"lookaheadGlyphCount"),lookupCount:w,lookupRecords:new V(Au,"lookupCount")}),v_=new V(new L(w,JL),w),w_=new ge(w,{1:{coverage:new L(w,Be),chainCount:w,chainRuleSets:new V(new L(w,v_),"chainCount")},2:{coverage:new L(w,Be),backtrackClassDef:new L(w,qs),inputClassDef:new L(w,qs),lookaheadClassDef:new L(w,qs),chainCount:w,chainClassSet:new V(new L(w,v_),"chainCount")},3:{backtrackGlyphCount:w,backtrackCoverage:new V(new L(w,Be),"backtrackGlyphCount"),inputGlyphCount:w,inputCoverage:new V(new L(w,Be),"inputGlyphCount"),lookaheadGlyphCount:w,lookaheadCoverage:new V(new L(w,Be),"lookaheadGlyphCount"),lookupCount:w,lookupRecords:new V(Au,"lookupCount")}}),Tu=new Ra(16,"BE",14),QL=new W({startCoord:Tu,peakCoord:Tu,endCoord:Tu}),t$=new W({axisCount:w,regionCount:w,variationRegions:new V(new V(QL,"axisCount"),"regionCount")}),e$=new W({shortDeltas:new V(st,e=>e.parent.shortDeltaCount),regionDeltas:new V(bi,e=>e.parent.regionIndexCount-e.parent.shortDeltaCount),deltas:e=>e.shortDeltas.concat(e.regionDeltas)}),i$=new W({itemCount:w,shortDeltaCount:w,regionIndexCount:w,regionIndexes:new V(w,"regionIndexCount"),deltaSets:new V(e$,"itemCount")}),Vf=new W({format:w,variationRegionList:new L($,t$),variationDataCount:w,itemVariationData:new V(new L($,i$),"variationDataCount")}),r$=new ge(w,{1:{axisIndex:w,axisIndex:w,filterRangeMinValue:Tu,filterRangeMaxValue:Tu}}),n$=new W({conditionCount:w,conditionTable:new V(new L($,r$),"conditionCount")}),s$=new W({featureIndex:w,alternateFeatureTable:new L($,g_,{type:"parent"})}),a$=new W({version:li,substitutionCount:w,substitutions:new V(s$,"substitutionCount")}),o$=new W({conditionSet:new L($,n$,{type:"parent"}),featureTableSubstitution:new L($,a$,{type:"parent"})}),x_=new W({majorVersion:w,minorVersion:w,featureVariationRecordCount:$,featureVariationRecords:new V(o$,"featureVariationRecordCount")}),C_=class{decode(e,t,i){return this.predefinedOps[i[0]]?this.predefinedOps[i[0]]:this.type.decode(e,t,i)}size(e,t){return this.type.size(e,t)}encode(e,t,i){let r=this.predefinedOps.indexOf(t);return r!==-1?r:this.type.encode(e,t,i)}constructor(e,t){this.predefinedOps=e,this.type=t}},l$=class extends Pe{decode(e){return vt.decode(e)&127}constructor(){super("UInt8")}},k_=new W({first:w,nLeft:vt}),u$=new W({first:w,nLeft:w}),c$=new ge(new l$,{0:{nCodes:vt,codes:new V(vt,"nCodes")},1:{nRanges:vt,ranges:new V(k_,"nRanges")}}),d$=new C_([f_,OL],new sn(c$,{lazy:!0})),S_=class extends V{decode(e,t){let i=Sn(this.length,e,t),r=0,n=[];for(;r<i;){let s=this.type.decode(e,t);s.offset=r,r+=s.nLeft+1,n.push(s)}return n}},f$=new ge(vt,{0:{glyphs:new V(w,e=>e.parent.CharStrings.length-1)},1:{ranges:new S_(k_,e=>e.parent.CharStrings.length-1)},2:{ranges:new S_(u$,e=>e.parent.CharStrings.length-1)}}),h$=new C_([h_,RL,VL],new sn(f$,{lazy:!0})),p$=new W({first:w,fd:vt}),m$=new W({first:$,fd:w}),__=new ge(vt,{0:{fds:new V(vt,e=>e.parent.CharStrings.length)},3:{nRanges:w,ranges:new V(p$,"nRanges"),sentinel:w},4:{nRanges:$,ranges:new V(m$,"nRanges"),sentinel:$}}),Lg=new sn(Vg),E_=class{decode(e,t,i){return t.length=i[0],Lg.decode(e,t,[i[1]])}size(e,t){return[Vg.size(e,t,!1),Lg.size(e,t)[0]]}encode(e,t,i){return[Vg.size(t,i,!1),Lg.encode(e,t,i)[0]]}},A_=new zf([[18,"Private",new E_,null],[[12,38],"FontName","sid",null],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[[12,5],"PaintType","number",0]]),g$=new zf([[[12,30],"ROS",["sid","sid","number"],null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","boolean",!1],[[12,2],"ItalicAngle","number",0],[[12,3],"UnderlinePosition","number",-100],[[12,4],"UnderlineThickness","number",50],[[12,5],"PaintType","number",0],[[12,6],"CharstringType","number",2],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[13,"UniqueID","number",null],[5,"FontBBox","array",[0,0,0,0]],[[12,8],"StrokeWidth","number",0],[14,"XUID","array",null],[15,"charset",h$,h_],[16,"Encoding",d$,f_],[17,"CharStrings",new sn(new En),null],[18,"Private",new E_,null],[[12,20],"SyntheticBase","number",null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","number",0],[[12,32],"CIDFontRevision","number",0],[[12,33],"CIDFontType","number",0],[[12,34],"CIDCount","number",8720],[[12,35],"UIDBase","number",null],[[12,37],"FDSelect",new sn(__),null],[[12,36],"FDArray",new sn(new En(A_)),null],[[12,38],"FontName","sid",null]]),y$=new W({length:w,itemVariationStore:Vf}),b$=new zf([[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[17,"CharStrings",new sn(new En),null],[[12,37],"FDSelect",new sn(__),null],[[12,36],"FDArray",new sn(new En(A_)),null],[24,"vstore",new sn(y$),null],[25,"maxstack","number",193]]),v$=new ge(jV,{1:{hdrSize:vt,offSize:vt,nameIndex:new En(new Fe("length")),topDictIndex:new En(g$),stringIndex:new En(new Fe("length")),globalSubrIndex:new En},2:{hdrSize:vt,length:w,topDict:b$,globalSubrIndex:new En}}),T_=v$,w$=class KI{static decode(t){return new KI(t)}decode(){this.stream.pos;let t=T_.decode(this.stream);for(let i in t){let r=t[i];this[i]=r}if(this.version<2){if(this.topDictIndex.length!==1)throw new Error("Only a single font is allowed in CFF");this.topDict=this.topDictIndex[0]}return this.isCIDFont=this.topDict.ROS!=null,this}string(t){return this.version>=2?null:t<Of.length?Of[t]:this.stringIndex[t-Of.length]}get postscriptName(){return this.version<2?this.nameIndex[0]:null}get fullName(){return this.string(this.topDict.FullName)}get familyName(){return this.string(this.topDict.FamilyName)}getCharString(t){return this.stream.pos=this.topDict.CharStrings[t].offset,this.stream.readBuffer(this.topDict.CharStrings[t].length)}getGlyphName(t){if(this.version>=2||this.isCIDFont)return null;let{charset:i}=this.topDict;if(Array.isArray(i))return i[t];if(t===0)return".notdef";switch(t-=1,i.version){case 0:return this.string(i.glyphs[t]);case 1:case 2:for(let r=0;r<i.ranges.length;r++){let n=i.ranges[r];if(n.offset<=t&&t<=n.offset+n.nLeft)return this.string(n.first+(t-n.offset))}break}return null}fdForGlyph(t){if(!this.topDict.FDSelect)return null;switch(this.topDict.FDSelect.version){case 0:return this.topDict.FDSelect.fds[t];case 3:case 4:let{ranges:i}=this.topDict.FDSelect,r=0,n=i.length-1;for(;r<=n;){let s=r+n>>1;if(t<i[s].first)n=s-1;else if(s<n&&t>=i[s+1].first)r=s+1;else return i[s].fd}default:throw new Error(`Unknown FDSelect version: ${this.topDict.FDSelect.version}`)}}privateDictForGlyph(t){if(this.topDict.FDSelect){let i=this.fdForGlyph(t);return this.topDict.FDArray[i]?this.topDict.FDArray[i].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private}constructor(t){this.stream=t,this.decode()}},I_=w$,x$=new W({glyphIndex:w,vertOriginY:st}),C$=new W({majorVersion:w,minorVersion:w,defaultVertOriginY:st,numVertOriginYMetrics:w,metrics:new V(x$,"numVertOriginYMetrics")}),$o=new W({height:vt,width:vt,horiBearingX:bi,horiBearingY:bi,horiAdvance:vt,vertBearingX:bi,vertBearingY:bi,vertAdvance:vt}),Lf=new W({height:vt,width:vt,bearingX:bi,bearingY:bi,advance:vt}),D_=new W({glyph:w,xOffset:bi,yOffset:bi}),P_=class{},$g=class{};new ge("version",{1:{metrics:Lf,data:P_},2:{metrics:Lf,data:$g},5:{data:$g},6:{metrics:$o,data:P_},7:{metrics:$o,data:$g},8:{metrics:Lf,pad:new qe(vt),numComponents:w,components:new V(D_,"numComponents")},9:{metrics:$o,pad:new qe(vt),numComponents:w,components:new V(D_,"numComponents")},17:{metrics:Lf,dataLen:$,data:new _n("dataLen")},18:{metrics:$o,dataLen:$,data:new _n("dataLen")},19:{dataLen:$,data:new _n("dataLen")}});var F_=new W({ascender:bi,descender:bi,widthMax:vt,caretSlopeNumerator:bi,caretSlopeDenominator:bi,caretOffset:bi,minOriginSB:bi,minAdvanceSB:bi,maxBeforeBL:bi,minAfterBL:bi,pad:new qe(bi,2)}),k$=new W({glyphCode:w,offset:w}),S$=new ge(w,{header:{imageFormat:w,imageDataOffset:$},1:{offsetArray:new V($,e=>e.parent.lastGlyphIndex-e.parent.firstGlyphIndex+1)},2:{imageSize:$,bigMetrics:$o},3:{offsetArray:new V(w,e=>e.parent.lastGlyphIndex-e.parent.firstGlyphIndex+1)},4:{numGlyphs:$,glyphArray:new V(k$,e=>e.numGlyphs+1)},5:{imageSize:$,bigMetrics:$o,numGlyphs:$,glyphCodeArray:new V(w,"numGlyphs")}}),_$=new W({firstGlyphIndex:w,lastGlyphIndex:w,subtable:new L($,S$)}),E$=new W({indexSubTableArray:new L($,new V(_$,1),{type:"parent"}),indexTablesSize:$,numberOfIndexSubTables:$,colorRef:$,hori:F_,vert:F_,startGlyphIndex:w,endGlyphIndex:w,ppemX:vt,ppemY:vt,bitDepth:vt,flags:new nn(vt,["horizontal","vertical"])}),A$=new W({version:$,numSizes:$,sizes:new V(E$,"numSizes")}),T$=new W({ppem:w,resolution:w,imageOffsets:new V(new L($,"void"),e=>e.parent.parent.maxp.numGlyphs+1)}),I$=new W({version:w,flags:new nn(w,["renderOutlines"]),numImgTables:$,imageTables:new V(new L($,T$),"numImgTables")}),D$=new W({gid:w,paletteIndex:w}),P$=new W({gid:w,firstLayerIndex:w,numLayers:w}),F$=new W({version:w,numBaseGlyphRecords:w,baseGlyphRecord:new L($,new V(P$,"numBaseGlyphRecords")),layerRecords:new L($,new V(D$,"numLayerRecords"),{lazy:!0}),numLayerRecords:w}),B$=new W({blue:vt,green:vt,red:vt,alpha:vt}),N$=new ge(w,{header:{numPaletteEntries:w,numPalettes:w,numColorRecords:w,colorRecords:new L($,new V(B$,"numColorRecords")),colorRecordIndices:new V(w,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new L($,new V($,"numPalettes")),offsetPaletteLabelArray:new L($,new V(w,"numPalettes")),offsetPaletteEntryLabelArray:new L($,new V(w,"numPaletteEntries"))}}),Iu=new ge(w,{1:{coordinate:st},2:{coordinate:st,referenceGlyph:w,baseCoordPoint:w},3:{coordinate:st,deviceTable:new L(w,Ys)}}),M$=new W({defaultIndex:w,baseCoordCount:w,baseCoords:new V(new L(w,Iu),"baseCoordCount")}),z$=new W({tag:new Fe(4),minCoord:new L(w,Iu,{type:"parent"}),maxCoord:new L(w,Iu,{type:"parent"})}),B_=new W({minCoord:new L(w,Iu),maxCoord:new L(w,Iu),featMinMaxCount:w,featMinMaxRecords:new V(z$,"featMinMaxCount")}),O$=new W({tag:new Fe(4),minMax:new L(w,B_,{type:"parent"})}),R$=new W({baseValues:new L(w,M$),defaultMinMax:new L(w,B_),baseLangSysCount:w,baseLangSysRecords:new V(O$,"baseLangSysCount")}),V$=new W({tag:new Fe(4),script:new L(w,R$,{type:"parent"})}),L$=new V(V$,w),$$=new V(new Fe(4),w),N_=new W({baseTagList:new L(w,$$),baseScriptList:new L(w,L$)}),U$=new ge($,{header:{horizAxis:new L(w,N_),vertAxis:new L(w,N_)},65536:{},65537:{itemVariationStore:new L($,Vf)}}),Z$=new V(w,w),j$=new W({coverage:new L(w,Be),glyphCount:w,attachPoints:new V(new L(w,Z$),"glyphCount")}),W$=new ge(w,{1:{coordinate:st},2:{caretValuePoint:w},3:{coordinate:st,deviceTable:new L(w,Ys)}}),G$=new V(new L(w,W$),w),H$=new W({coverage:new L(w,Be),ligGlyphCount:w,ligGlyphs:new V(new L(w,G$),"ligGlyphCount")}),M_=new W({markSetTableFormat:w,markSetCount:w,coverage:new V(new L($,Be),"markSetCount")}),q$=new ge($,{header:{glyphClassDef:new L(w,qs),attachList:new L(w,j$),ligCaretList:new L(w,H$),markAttachClassDef:new L(w,qs)},65536:{},65538:{markGlyphSetsDef:new L(w,M_)},65539:{markGlyphSetsDef:new L(w,M_),itemVariationStore:new L($,Vf)}}),Uo=new nn(w,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),Y$={xPlacement:st,yPlacement:st,xAdvance:st,yAdvance:st,xPlaDevice:new L(w,Ys,{type:"global",relativeTo:e=>e.rel}),yPlaDevice:new L(w,Ys,{type:"global",relativeTo:e=>e.rel}),xAdvDevice:new L(w,Ys,{type:"global",relativeTo:e=>e.rel}),yAdvDevice:new L(w,Ys,{type:"global",relativeTo:e=>e.rel})},Zo=class{buildStruct(e){let t=e;for(;!t[this.key]&&t.parent;)t=t.parent;if(!t[this.key])return;let i={};i.rel=()=>t._startOffset;let r=t[this.key];for(let n in r)r[n]&&(i[n]=Y$[n]);return new W(i)}size(e,t){return this.buildStruct(t).size(e,t)}decode(e,t){let i=this.buildStruct(t).decode(e,t);return delete i.rel,i}constructor(e="valueFormat"){this.key=e}},K$=new W({secondGlyph:w,value1:new Zo("valueFormat1"),value2:new Zo("valueFormat2")}),X$=new V(K$,w),J$=new W({value1:new Zo("valueFormat1"),value2:new Zo("valueFormat2")}),Du=new ge(w,{1:{xCoordinate:st,yCoordinate:st},2:{xCoordinate:st,yCoordinate:st,anchorPoint:w},3:{xCoordinate:st,yCoordinate:st,xDeviceTable:new L(w,Ys),yDeviceTable:new L(w,Ys)}}),Q$=new W({entryAnchor:new L(w,Du,{type:"parent"}),exitAnchor:new L(w,Du,{type:"parent"})}),tU=new W({class:w,markAnchor:new L(w,Du,{type:"parent"})}),Ug=new V(tU,w),eU=new V(new L(w,Du),e=>e.parent.classCount),z_=new V(eU,w),iU=new V(new L(w,Du),e=>e.parent.parent.classCount),rU=new V(iU,w),nU=new V(new L(w,rU),w),Pu=new ge("lookupType",{1:new ge(w,{1:{coverage:new L(w,Be),valueFormat:Uo,value:new Zo},2:{coverage:new L(w,Be),valueFormat:Uo,valueCount:w,values:new Me(new Zo,"valueCount")}}),2:new ge(w,{1:{coverage:new L(w,Be),valueFormat1:Uo,valueFormat2:Uo,pairSetCount:w,pairSets:new Me(new L(w,X$),"pairSetCount")},2:{coverage:new L(w,Be),valueFormat1:Uo,valueFormat2:Uo,classDef1:new L(w,qs),classDef2:new L(w,qs),class1Count:w,class2Count:w,classRecords:new Me(new Me(J$,"class2Count"),"class1Count")}}),3:{format:w,coverage:new L(w,Be),entryExitCount:w,entryExitRecords:new V(Q$,"entryExitCount")},4:{format:w,markCoverage:new L(w,Be),baseCoverage:new L(w,Be),classCount:w,markArray:new L(w,Ug),baseArray:new L(w,z_)},5:{format:w,markCoverage:new L(w,Be),ligatureCoverage:new L(w,Be),classCount:w,markArray:new L(w,Ug),ligatureArray:new L(w,nU)},6:{format:w,mark1Coverage:new L(w,Be),mark2Coverage:new L(w,Be),classCount:w,mark1Array:new L(w,Ug),mark2Array:new L(w,z_)},7:b_,8:w_,9:{posFormat:w,lookupType:w,extension:new L($,null)}});Pu.versions[9].extension.type=Pu;var sU=new ge($,{header:{scriptList:new L(w,m_),featureList:new L(w,y_),lookupList:new L(w,new Rf(Pu))},65536:{},65537:{featureVariations:new L($,x_)}}),O_=new V(w,w),aU=O_,oU=new W({glyph:w,compCount:w,components:new V(w,e=>e.compCount-1)}),lU=new V(new L(w,oU),w),Zg=new ge("lookupType",{1:new ge(w,{1:{coverage:new L(w,Be),deltaGlyphID:st},2:{coverage:new L(w,Be),glyphCount:w,substitute:new Me(w,"glyphCount")}}),2:{substFormat:w,coverage:new L(w,Be),count:w,sequences:new Me(new L(w,O_),"count")},3:{substFormat:w,coverage:new L(w,Be),count:w,alternateSet:new Me(new L(w,aU),"count")},4:{substFormat:w,coverage:new L(w,Be),count:w,ligatureSets:new Me(new L(w,lU),"count")},5:b_,6:w_,7:{substFormat:w,lookupType:w,extension:new L($,null)},8:{substFormat:w,coverage:new L(w,Be),backtrackCoverage:new V(new L(w,Be),"backtrackGlyphCount"),lookaheadGlyphCount:w,lookaheadCoverage:new V(new L(w,Be),"lookaheadGlyphCount"),glyphCount:w,substitutes:new V(w,"glyphCount")}});Zg.versions[7].extension.type=Zg;var uU=new ge($,{header:{scriptList:new L(w,m_),featureList:new L(w,y_),lookupList:new L(w,new Rf(Zg))},65536:{},65537:{featureVariations:new L($,x_)}}),Ks=new V(w,w),cU=new W({shrinkageEnableGSUB:new L(w,Ks),shrinkageDisableGSUB:new L(w,Ks),shrinkageEnableGPOS:new L(w,Ks),shrinkageDisableGPOS:new L(w,Ks),shrinkageJstfMax:new L(w,new Rf(Pu)),extensionEnableGSUB:new L(w,Ks),extensionDisableGSUB:new L(w,Ks),extensionEnableGPOS:new L(w,Ks),extensionDisableGPOS:new L(w,Ks),extensionJstfMax:new L(w,new Rf(Pu))}),R_=new V(new L(w,cU),w),dU=new W({tag:new Fe(4),jstfLangSys:new L(w,R_)}),fU=new W({extenderGlyphs:new L(w,new V(w,w)),defaultLangSys:new L(w,R_),langSysCount:w,langSysRecords:new V(dU,"langSysCount")}),hU=new W({tag:new Fe(4),script:new L(w,fU,{type:"parent"})}),pU=new W({version:$,scriptCount:w,scriptList:new V(hU,"scriptCount")}),mU=class{decode(e,t){switch(this.size(0,t)){case 1:return e.readUInt8();case 2:return e.readUInt16BE();case 3:return e.readUInt24BE();case 4:return e.readUInt32BE()}}size(e,t){return Sn(this._size,null,t)}constructor(e){this._size=e}},gU=new W({entry:new mU(e=>((e.parent.entryFormat&48)>>4)+1),outerIndex:e=>e.entry>>(e.parent.entryFormat&15)+1,innerIndex:e=>e.entry&(1<<(e.parent.entryFormat&15)+1)-1}),jg=new W({entryFormat:w,mapCount:w,mapData:new V(gU,"mapCount")}),yU=new W({majorVersion:w,minorVersion:w,itemVariationStore:new L($,Vf),advanceWidthMapping:new L($,jg),LSBMapping:new L($,jg),RSBMapping:new L($,jg)}),bU=new W({format:$,length:$,offset:$}),vU=new W({reserved:new qe(w,2),cbSignature:$,signature:new _n("cbSignature")}),wU=new W({ulVersion:$,usNumSigs:w,usFlag:w,signatures:new V(bU,"usNumSigs"),signatureBlocks:new V(vU,"usNumSigs")}),xU=new W({rangeMaxPPEM:w,rangeGaspBehavior:new nn(w,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),CU=new W({version:w,numRanges:w,gaspRanges:new V(xU,"numRanges")}),kU=new W({pixelSize:vt,maximumWidth:vt,widths:new V(vt,e=>e.parent.parent.maxp.numGlyphs)}),SU=new W({version:w,numRecords:st,sizeDeviceRecord:Oa,records:new V(kU,"numRecords")}),_U=new W({left:w,right:w,value:st}),V_=new W({firstGlyph:w,nGlyphs:w,offsets:new V(w,"nGlyphs"),max:e=>e.offsets.length&&Math.max.apply(Math,e.offsets)}),EU=new W({off:e=>e._startOffset-e.parent.parent._startOffset,len:e=>((e.parent.leftTable.max-e.off)/e.parent.rowWidth+1)*(e.parent.rowWidth/2),values:new Me(st,"len")}),L_=new ge("format",{0:{nPairs:w,searchRange:w,entrySelector:w,rangeShift:w,pairs:new V(_U,"nPairs")},2:{rowWidth:w,leftTable:new L(w,V_,{type:"parent"}),rightTable:new L(w,V_,{type:"parent"}),array:new L(w,EU,{type:"parent"})},3:{glyphCount:w,kernValueCount:vt,leftClassCount:vt,rightClassCount:vt,flags:vt,kernValue:new V(st,"kernValueCount"),leftClass:new V(vt,"glyphCount"),rightClass:new V(vt,"glyphCount"),kernIndex:new V(vt,e=>e.leftClassCount*e.rightClassCount)}}),$_=new ge("version",{0:{subVersion:w,length:w,format:vt,coverage:new nn(vt,["horizontal","minimum","crossStream","override"]),subtable:L_,padding:new qe(vt,e=>e.length-e._currentOffset)},1:{length:$,coverage:new nn(vt,[null,null,null,null,null,"variation","crossStream","vertical"]),format:vt,tupleIndex:w,subtable:L_,padding:new qe(vt,e=>e.length-e._currentOffset)}}),AU=new ge(w,{0:{nTables:w,tables:new V($_,"nTables")},1:{reserved:new qe(w),nTables:$,tables:new V($_,"nTables")}}),TU=new W({version:w,numGlyphs:w,yPels:new V(vt,"numGlyphs")}),IU=new W({version:w,fontNumber:$,pitch:w,xHeight:w,style:w,typeFamily:w,capHeight:w,symbolSet:w,typeface:new Fe(16),characterComplement:new Fe(8),fileName:new Fe(6),strokeWeight:new Fe(1),widthType:new Fe(1),serifStyle:vt,reserved:new qe(vt)}),DU=new W({bCharSet:vt,xRatio:vt,yStartRatio:vt,yEndRatio:vt}),PU=new W({yPelHeight:w,yMax:st,yMin:st}),FU=new W({recs:w,startsz:vt,endsz:vt,entries:new V(PU,"recs")}),BU=new W({version:w,numRecs:w,numRatios:w,ratioRanges:new V(DU,"numRatios"),offsets:new V(w,"numRatios"),groups:new V(FU,"numRecs")}),NU=new W({version:w,ascent:st,descent:st,lineGap:st,advanceHeightMax:st,minTopSideBearing:st,minBottomSideBearing:st,yMaxExtent:st,caretSlopeRise:st,caretSlopeRun:st,caretOffset:st,reserved:new qe(st,4),metricDataFormat:st,numberOfMetrics:w}),MU=new W({advance:w,bearing:st}),zU=new W({metrics:new Me(MU,e=>e.parent.vhea.numberOfMetrics),bearings:new Me(st,e=>e.parent.maxp.numGlyphs-e.parent.vhea.numberOfMetrics)}),U_=new Ra(16,"BE",14),OU=new W({fromCoord:U_,toCoord:U_}),RU=new W({pairCount:w,correspondence:new V(OU,"pairCount")}),VU=new W({version:li,axisCount:$,segment:new V(RU,"axisCount")}),LU=class{getItem(e){if(this._items[e]==null){let t=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*e,this._items[e]=this.type.decode(this.stream,this.parent),this.stream.pos=t}return this._items[e]}inspect(){return`[UnboundedArray ${this.type.constructor.name}]`}constructor(e,t,i){this.type=e,this.stream=t,this.parent=i,this.base=this.stream.pos,this._items=[]}},An=class extends V{decode(e,t){return new LU(this.type,e,t)}constructor(e){super(e,0)}},Xs=function(e=w){class t{decode(o,l){return l=l.parent.parent,this.type.decode(o,l)}size(o,l){return l=l.parent.parent,this.type.size(o,l)}encode(o,l,u){return u=u.parent.parent,this.type.encode(o,l,u)}constructor(o){this.type=o}}e=new t(e);let i=new W({unitSize:w,nUnits:w,searchRange:w,entrySelector:w,rangeShift:w}),r=new W({lastGlyph:w,firstGlyph:w,value:e}),n=new W({lastGlyph:w,firstGlyph:w,values:new L(w,new V(e,a=>a.lastGlyph-a.firstGlyph+1),{type:"parent"})}),s=new W({glyph:w,value:e});return new ge(w,{0:{values:new An(e)},2:{binarySearchHeader:i,segments:new V(r,a=>a.binarySearchHeader.nUnits)},4:{binarySearchHeader:i,segments:new V(n,a=>a.binarySearchHeader.nUnits)},6:{binarySearchHeader:i,segments:new V(s,a=>a.binarySearchHeader.nUnits)},8:{firstGlyph:w,count:w,values:new V(e,"count")}})};function $f(e={},t=w){let i=Object.assign({newState:w,flags:w},e),r=new W(i),n=new An(new V(w,a=>a.nClasses));return new W({nClasses:$,classTable:new L($,new Xs(t)),stateArray:new L($,n),entryTable:new L($,new An(r))})}function $U(e={},t=w){let i=new W({version(){return 8},firstGlyph:w,values:new V(vt,w)}),r=Object.assign({newStateOffset:w,newState:o=>(o.newStateOffset-(o.parent.stateArray.base-o.parent._startOffset))/o.parent.nClasses,flags:w},e),n=new W(r),s=new An(new V(vt,o=>o.nClasses));return new W({nClasses:w,classTable:new L(w,i),stateArray:new L(w,s),entryTable:new L(w,new An(n))})}var UU=new ge("format",{0:{deltas:new V(st,32)},1:{deltas:new V(st,32),mappingData:new Xs(w)},2:{standardGlyph:w,controlPoints:new V(w,32)},3:{standardGlyph:w,controlPoints:new V(w,32),mappingData:new Xs(w)}}),ZU=new W({version:li,format:w,defaultBaseline:w,subtable:UU}),jU=new W({setting:w,nameIndex:st,name:e=>e.parent.parent.parent.name.records.fontFeatures[e.nameIndex]}),WU=new W({feature:w,nSettings:w,settingTable:new L($,new V(jU,"nSettings"),{type:"parent"}),featureFlags:new nn(vt,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:vt,nameIndex:st,name:e=>e.parent.parent.name.records.fontFeatures[e.nameIndex]}),GU=new W({version:li,featureNameCount:w,reserved1:new qe(w),reserved2:new qe($),featureNames:new V(WU,"featureNameCount")}),HU=new W({axisTag:new Fe(4),minValue:li,defaultValue:li,maxValue:li,flags:w,nameID:w,name:e=>e.parent.parent.name.records.fontFeatures[e.nameID]}),qU=new W({nameID:w,name:e=>e.parent.parent.name.records.fontFeatures[e.nameID],flags:w,coord:new V(li,e=>e.parent.axisCount),postscriptNameID:new Df(w,e=>e.parent.instanceSize-e._currentOffset>0)}),YU=new W({version:li,offsetToData:w,countSizePairs:w,axisCount:w,axisSize:w,instanceCount:w,instanceSize:w,axis:new V(HU,"axisCount"),instance:new V(qU,"instanceCount")}),KU=new Ra(16,"BE",14),XU=class{static decode(e,t){return t.flags?e.readUInt32BE():e.readUInt16BE()*2}},JU=new W({version:w,reserved:new qe(w),axisCount:w,globalCoordCount:w,globalCoords:new L($,new V(new V(KU,"axisCount"),"globalCoordCount")),glyphCount:w,flags:w,offsetToData:$,offsets:new V(new L(XU,"void",{relativeTo:e=>e.offsetToData,allowNull:!1}),e=>e.glyphCount+1)}),QU=JU,tZ=new W({length:w,coverage:w,subFeatureFlags:$,stateTable:new $U}),eZ=new W({justClass:$,beforeGrowLimit:li,beforeShrinkLimit:li,afterGrowLimit:li,afterShrinkLimit:li,growFlags:w,shrinkFlags:w}),iZ=new V(eZ,$),rZ=new ge("actionType",{0:{lowerLimit:li,upperLimit:li,order:w,glyphs:new V(w,w)},1:{addGlyph:w},2:{substThreshold:li,addGlyph:w,substGlyph:w},3:{},4:{variationAxis:$,minimumLimit:li,noStretchValue:li,maximumLimit:li},5:{flags:w,glyph:w}}),nZ=new W({actionClass:w,actionType:w,actionLength:$,actionData:rZ,padding:new qe(vt,e=>e.actionLength-e._currentOffset)}),sZ=new V(nZ,$),aZ=new W({lookupTable:new Xs(new L(w,sZ))}),Z_=new W({classTable:new L(w,tZ,{type:"parent"}),wdcOffset:w,postCompensationTable:new L(w,aZ,{type:"parent"}),widthDeltaClusters:new Xs(new L(w,iZ,{type:"parent",relativeTo:e=>e.wdcOffset}))}),oZ=new W({version:$,format:w,horizontal:new L(w,Z_),vertical:new L(w,Z_)}),lZ={action:w},uZ={markIndex:w,currentIndex:w},cZ={currentInsertIndex:w,markedInsertIndex:w},dZ=new W({items:new An(new L($,new Xs))}),fZ=new ge("type",{0:{stateTable:new $f},1:{stateTable:new $f(uZ),substitutionTable:new L($,dZ)},2:{stateTable:new $f(lZ),ligatureActions:new L($,new An($)),components:new L($,new An(w)),ligatureList:new L($,new An(w))},4:{lookupTable:new Xs},5:{stateTable:new $f(cZ),insertionActions:new L($,new An(w))}}),hZ=new W({length:$,coverage:Gs,type:vt,subFeatureFlags:$,table:fZ,padding:new qe(vt,e=>e.length-e._currentOffset)}),pZ=new W({featureType:w,featureSetting:w,enableFlags:$,disableFlags:$}),mZ=new W({defaultFlags:$,chainLength:$,nFeatureEntries:$,nSubtables:$,features:new V(pZ,"nFeatureEntries"),subtables:new V(hZ,"nSubtables")}),gZ=new W({version:w,unused:new qe(w),nChains:$,chains:new V(mZ,"nChains")}),yZ=new W({left:st,top:st,right:st,bottom:st}),bZ=new W({version:li,format:w,lookupTable:new Xs(yZ)}),ie={},Uf=ie;ie.cmap=gL,ie.head=yL,ie.hhea=bL,ie.hmtx=wL,ie.maxp=xL,ie.name=TL,ie["OS/2"]=IL,ie.post=DL,ie.fpgm=FL,ie.loca=BL,ie.prep=NL,ie["cvt "]=PL,ie.glyf=ML,ie["CFF "]=I_,ie.CFF2=I_,ie.VORG=C$,ie.EBLC=A$,ie.CBLC=ie.EBLC,ie.sbix=I$,ie.COLR=F$,ie.CPAL=N$,ie.BASE=U$,ie.GDEF=q$,ie.GPOS=sU,ie.GSUB=uU,ie.JSTF=pU,ie.HVAR=yU,ie.DSIG=wU,ie.gasp=CU,ie.hdmx=SU,ie.kern=AU,ie.LTSH=TU,ie.PCLT=IU,ie.VDMX=BU,ie.vhea=NU,ie.vmtx=zU,ie.avar=VU,ie.bsln=ZU,ie.feat=GU,ie.fvar=YU,ie.gvar=QU,ie.just=oZ,ie.morx=gZ,ie.opbd=bZ;var vZ=new W({tag:new Fe(4),checkSum:$,offset:new L($,"void",{type:"global"}),length:$}),Wg=new W({tag:new Fe(4),numTables:w,searchRange:w,entrySelector:w,rangeShift:w,tables:new V(vZ,"numTables")});Wg.process=function(){let e={};for(let t of this.tables)e[t.tag]=t;this.tables=e},Wg.preEncode=function(){if(!Array.isArray(this.tables)){let i=[];for(let r in this.tables){let n=this.tables[r];n&&i.push({tag:r,checkSum:0,offset:new _g(Uf[r],n),length:Uf[r].size(n)})}this.tables=i}this.tag="true",this.numTables=this.tables.length;let e=Math.floor(Math.log(this.numTables)/Math.LN2),t=Math.pow(2,e);this.searchRange=t*16,this.entrySelector=Math.log(t)/Math.LN2,this.rangeShift=this.numTables*16-this.searchRange};var j_=Wg;function Zf(e,t){let i=0,r=e.length-1;for(;i<=r;){let n=i+r>>1,s=t(e[n]);if(s<0)r=n-1;else if(s>0)i=n+1;else return n}return-1}function jo(e,t){let i=[];for(;e<t;)i.push(e++);return i}var jf=new TextDecoder("ascii"),W_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fu=new Uint8Array(256);for(let e=0;e<W_.length;e++)Fu[W_.charCodeAt(e)]=e;function Gg(e){let t=e.length*.75;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let i=new Uint8Array(t),r=0;for(let n=0,s=e.length;n<s;n+=4){let a=Fu[e.charCodeAt(n)],o=Fu[e.charCodeAt(n+1)],l=Fu[e.charCodeAt(n+2)],u=Fu[e.charCodeAt(n+3)];i[r++]=a<<2|o>>4,i[r++]=(o&15)<<4|l>>2,i[r++]=(l&3)<<6|u&63}return i}var Hg=class{findSubtable(e,t){for(let[i,r]of t)for(let n of e.tables)if(n.platformID===i&&n.encodingID===r)return n.table;return null}lookup(e,t){if(this.encoding)e=this.encoding.get(e)||e;else if(t){let r=this.getVariationSelector(e,t);if(r)return r}let i=this.cmap;switch(i.version){case 0:return i.codeMap.get(e)||0;case 4:{let r=0,n=i.segCount-1;for(;r<=n;){let s=r+n>>1;if(e<i.startCode.get(s))n=s-1;else if(e>i.endCode.get(s))r=s+1;else{let a=i.idRangeOffset.get(s),o;if(a===0)o=e+i.idDelta.get(s);else{let l=a/2+(e-i.startCode.get(s))-(i.segCount-s);o=i.glyphIndexArray.get(l)||0,o!==0&&(o+=i.idDelta.get(s))}return o&65535}}return 0}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return i.glyphIndices.get(e-i.firstCode)||0;case 12:case 13:{let r=0,n=i.nGroups-1;for(;r<=n;){let s=r+n>>1,a=i.groups.get(s);if(e<a.startCharCode)n=s-1;else if(e>a.endCharCode)r=s+1;else return i.version===12?a.glyphID+(e-a.startCharCode):a.glyphID}return 0}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${i.version}`)}}getVariationSelector(e,t){if(!this.uvs)return 0;let i=this.uvs.varSelectors.toArray(),r=Zf(i,s=>t-s.varSelector),n=i[r];return r!==-1&&n.defaultUVS&&(r=Zf(n.defaultUVS,s=>e<s.startUnicodeValue?-1:e>s.startUnicodeValue+s.additionalCount?1:0)),r!==-1&&n.nonDefaultUVS&&(r=Zf(n.nonDefaultUVS,s=>e-s.unicodeValue),r!==-1)?n.nonDefaultUVS[r].glyphID:0}getCharacterSet(){let e=this.cmap;switch(e.version){case 0:return jo(0,e.codeMap.length);case 4:{let t=[],i=e.endCode.toArray();for(let r=0;r<i.length;r++){let n=i[r]+1,s=e.startCode.get(r);t.push(...jo(s,n))}return t}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return jo(e.firstCode,e.firstCode+e.glyphIndices.length);case 12:case 13:{let t=[];for(let i of e.groups.toArray())t.push(...jo(i.startCharCode,i.endCharCode+1));return t}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${e.version}`)}}codePointsForGlyph(e){let t=this.cmap;switch(t.version){case 0:{let r=[];for(let n=0;n<256;n++)t.codeMap.get(n)===e&&r.push(n);return r}case 4:{let r=[];for(let n=0;n<t.segCount;n++){let s=t.endCode.get(n),a=t.startCode.get(n),o=t.idRangeOffset.get(n),l=t.idDelta.get(n);for(var i=a;i<=s;i++){let u=0;if(o===0)u=i+l;else{let c=o/2+(i-a)-(t.segCount-n);u=t.glyphIndexArray.get(c)||0,u!==0&&(u+=l)}u===e&&r.push(i)}}return r}case 12:{let r=[];for(let n of t.groups.toArray())e>=n.glyphID&&e<=n.glyphID+(n.endCharCode-n.startCharCode)&&r.push(n.startCharCode+(e-n.glyphID));return r}case 13:{let r=[];for(let n of t.groups.toArray())e===n.glyphID&&r.push(...jo(n.startCharCode,n.endCharCode+1));return r}default:throw new Error(`Unknown cmap format ${t.version}`)}}constructor(e){if(this.encoding=null,this.cmap=this.findSubtable(e,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]),!this.cmap)for(let t of e.tables){let i=s_(t.platformID,t.encodingID,t.table.language-1),r=SL(i);r&&(this.cmap=t.table,this.encoding=r)}if(!this.cmap)throw new Error("Could not find a supported cmap table");this.uvs=this.findSubtable(e,[[0,5]]),this.uvs&&this.uvs.version!==14&&(this.uvs=null)}};Pi([Fi],Hg.prototype,"getCharacterSet",null),Pi([Fi],Hg.prototype,"codePointsForGlyph",null);var wZ=class{process(e,t){for(let i=0;i<e.length-1;i++){let r=e[i].id,n=e[i+1].id;t[i].xAdvance+=this.getKerning(r,n)}}getKerning(e,t){let i=0;for(let r of this.kern.tables){if(r.coverage.crossStream)continue;switch(r.version){case 0:if(!r.coverage.horizontal)continue;break;case 1:if(r.coverage.vertical||r.coverage.variation)continue;break;default:throw new Error(`Unsupported kerning table version ${r.version}`)}let n=0,s=r.subtable;switch(r.format){case 0:let a=Zf(s.pairs,function(c){return e-c.left||t-c.right});a>=0&&(n=s.pairs[a].value);break;case 2:let o=0,l=0;e>=s.leftTable.firstGlyph&&e<s.leftTable.firstGlyph+s.leftTable.nGlyphs?o=s.leftTable.offsets[e-s.leftTable.firstGlyph]:o=s.array.off,t>=s.rightTable.firstGlyph&&t<s.rightTable.firstGlyph+s.rightTable.nGlyphs&&(l=s.rightTable.offsets[t-s.rightTable.firstGlyph]);let u=(o+l-s.array.off)/2;n=s.array.values.get(u);break;case 3:if(e>=s.glyphCount||t>=s.glyphCount)return 0;n=s.kernValue[s.kernIndex[s.leftClass[e]*s.rightClassCount+s.rightClass[t]]];break;default:throw new Error(`Unsupported kerning sub-table format ${r.format}`)}r.coverage.override?i=n:i+=n}return i}constructor(e){this.kern=e.kern}},xZ=class{positionGlyphs(e,t){let i=0,r=0;for(let n=0;n<e.length;n++)e[n].isMark?r=n:(i!==r&&this.positionCluster(e,t,i,r),i=r=n);return i!==r&&this.positionCluster(e,t,i,r),t}positionCluster(e,t,i,r){let n=e[i],s=n.cbox.copy();n.codePoints.length>1&&(s.minX+=(n.codePoints.length-1)*s.width/n.codePoints.length);let a=-t[i].xAdvance,o=0,l=this.font.unitsPerEm/16;for(let u=i+1;u<=r;u++){let c=e[u],d=c.cbox,f=t[u],h=this.getCombiningClass(c.codePoints[0]);if(h!=="Not_Reordered"){switch(f.xOffset=f.yOffset=0,h){case"Double_Above":case"Double_Below":f.xOffset+=s.minX-d.width/2-d.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":f.xOffset+=s.minX-d.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":f.xOffset+=s.maxX-d.width-d.minX;break;default:f.xOffset+=s.minX+(s.width-d.width)/2-d.minX}switch(h){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":(h==="Attached_Below_Left"||h==="Attached_Below")&&(s.minY+=l),f.yOffset=-s.minY-d.maxY,s.minY+=d.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":(h==="Attached_Above"||h==="Attached_Above_Right")&&(s.maxY+=l),f.yOffset=s.maxY-d.minY,s.maxY+=d.height;break}f.xAdvance=f.yAdvance=0,f.xOffset+=a,f.yOffset+=o}else a-=f.xAdvance,o-=f.yAdvance}}getCombiningClass(e){let t=rL(e);if((e&-256)===3584){if(t==="Not_Reordered")switch(e){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(e===3642)return"Below_Right"}switch(t){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":return"Below";case"CCC23":return"Attached_Above";case"CCC24":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":return"Above";case"CCC21":break;case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":return"Above";case"CCC29":case"CCC32":return"Below";case"CCC103":return"Below_Right";case"CCC107":return"Above_Right";case"CCC118":return"Below";case"CCC122":return"Above";case"CCC129":case"CCC132":return"Below";case"CCC130":return"Above"}return t}constructor(e){this.font=e}},Wo=class XI{get width(){return this.maxX-this.minX}get height(){return this.maxY-this.minY}addPoint(t,i){Math.abs(t)!==1/0&&(t<this.minX&&(this.minX=t),t>this.maxX&&(this.maxX=t)),Math.abs(i)!==1/0&&(i<this.minY&&(this.minY=i),i>this.maxY&&(this.maxY=i))}copy(){return new XI(this.minX,this.minY,this.maxX,this.maxY)}constructor(t=1/0,i=1/0,r=-1/0,n=-1/0){this.minX=t,this.minY=i,this.maxX=r,this.maxY=n}},Go={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},qg={};for(let e in Go){let t=Go[e];if(Array.isArray(t))for(let i of t)qg[i]=e;else qg[t]=e}function CZ(e){return qg[e]}function kZ(e){let t=e.length,i=0;for(;i<t;){let r=e.charCodeAt(i++);if(55296<=r&&r<=56319&&i<t){let s=e.charCodeAt(i);56320<=s&&s<=57343&&(i++,r=((r&1023)<<10)+(s&1023)+65536)}let n=t_(r);if(n!=="Common"&&n!=="Inherited"&&n!=="Unknown")return Go[n]}return Go.Unknown}function SZ(e){for(let t=0;t<e.length;t++){let i=e[t],r=t_(i);if(r!=="Common"&&r!=="Inherited"&&r!=="Unknown")return Go[r]}return Go.Unknown}var _Z={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function G_(e){return _Z[e]?"rtl":"ltr"}var EZ=class{get advanceWidth(){let e=0;for(let t of this.positions)e+=t.xAdvance;return e}get advanceHeight(){let e=0;for(let t of this.positions)e+=t.yAdvance;return e}get bbox(){let e=new Wo,t=0,i=0;for(let r=0;r<this.glyphs.length;r++){let n=this.glyphs[r],s=this.positions[r],a=n.bbox;e.addPoint(a.minX+t+s.xOffset,a.minY+i+s.yOffset),e.addPoint(a.maxX+t+s.xOffset,a.maxY+i+s.yOffset),t+=s.xAdvance,i+=s.yAdvance}return e}constructor(e,t,i,r,n){if(this.glyphs=e,this.positions=null,this.script=i,this.language=r||null,this.direction=n||G_(i),this.features={},Array.isArray(t))for(let s of t)this.features[s]=!0;else typeof t=="object"&&(this.features=t)}},AZ=class{constructor(e=0,t=0,i=0,r=0){this.xAdvance=e,this.yAdvance=t,this.xOffset=i,this.yOffset=r}},La={allTypographicFeatures:{code:0,exclusive:!1,allTypeFeatures:0},ligatures:{code:1,exclusive:!1,requiredLigatures:0,commonLigatures:2,rareLigatures:4,rebusPictures:8,diphthongLigatures:10,squaredLigatures:12,abbrevSquaredLigatures:14,symbolLigatures:16,contextualLigatures:18,historicalLigatures:20},cursiveConnection:{code:2,exclusive:!0,unconnected:0,partiallyConnected:1,cursive:2},letterCase:{code:3,exclusive:!0},verticalSubstitution:{code:4,exclusive:!1,substituteVerticalForms:0},linguisticRearrangement:{code:5,exclusive:!1,linguisticRearrangement:0},numberSpacing:{code:6,exclusive:!0,monospacedNumbers:0,proportionalNumbers:1,thirdWidthNumbers:2,quarterWidthNumbers:3},smartSwash:{code:8,exclusive:!1,wordInitialSwashes:0,wordFinalSwashes:2,nonFinalSwashes:8},diacritics:{code:9,exclusive:!0,showDiacritics:0,hideDiacritics:1,decomposeDiacritics:2},verticalPosition:{code:10,exclusive:!0,normalPosition:0,superiors:1,inferiors:2,ordinals:3,scientificInferiors:4},fractions:{code:11,exclusive:!0,noFractions:0,verticalFractions:1,diagonalFractions:2},overlappingCharacters:{code:13,exclusive:!1,preventOverlap:0},typographicExtras:{code:14,exclusive:!1,slashedZero:4},mathematicalExtras:{code:15,exclusive:!1,mathematicalGreek:10},ornamentSets:{code:16,exclusive:!0,noOrnaments:0,dingbats:1,piCharacters:2,fleurons:3,decorativeBorders:4,internationalSymbols:5,mathSymbols:6},characterAlternatives:{code:17,exclusive:!0,noAlternates:0},designComplexity:{code:18,exclusive:!0,designLevel1:0,designLevel2:1,designLevel3:2,designLevel4:3,designLevel5:4},styleOptions:{code:19,exclusive:!0,noStyleOptions:0,displayText:1,engravedText:2,illuminatedCaps:3,titlingCaps:4,tallCaps:5},characterShape:{code:20,exclusive:!0,traditionalCharacters:0,simplifiedCharacters:1,JIS1978Characters:2,JIS1983Characters:3,JIS1990Characters:4,traditionalAltOne:5,traditionalAltTwo:6,traditionalAltThree:7,traditionalAltFour:8,traditionalAltFive:9,expertCharacters:10,JIS2004Characters:11,hojoCharacters:12,NLCCharacters:13,traditionalNamesCharacters:14},numberCase:{code:21,exclusive:!0,lowerCaseNumbers:0,upperCaseNumbers:1},textSpacing:{code:22,exclusive:!0,proportionalText:0,monospacedText:1,halfWidthText:2,thirdWidthText:3,quarterWidthText:4,altProportionalText:5,altHalfWidthText:6},transliteration:{code:23,exclusive:!0,noTransliteration:0},annotation:{code:24,exclusive:!0,noAnnotation:0,boxAnnotation:1,roundedBoxAnnotation:2,circleAnnotation:3,invertedCircleAnnotation:4,parenthesisAnnotation:5,periodAnnotation:6,romanNumeralAnnotation:7,diamondAnnotation:8,invertedBoxAnnotation:9,invertedRoundedBoxAnnotation:10},kanaSpacing:{code:25,exclusive:!0,fullWidthKana:0,proportionalKana:1},ideographicSpacing:{code:26,exclusive:!0,fullWidthIdeographs:0,proportionalIdeographs:1,halfWidthIdeographs:2},unicodeDecomposition:{code:27,exclusive:!1,canonicalComposition:0,compatibilityComposition:2,transcodingComposition:4},rubyKana:{code:28,exclusive:!1,rubyKana:2},CJKSymbolAlternatives:{code:29,exclusive:!0,noCJKSymbolAlternatives:0,CJKSymbolAltOne:1,CJKSymbolAltTwo:2,CJKSymbolAltThree:3,CJKSymbolAltFour:4,CJKSymbolAltFive:5},ideographicAlternatives:{code:30,exclusive:!0,noIdeographicAlternatives:0,ideographicAltOne:1,ideographicAltTwo:2,ideographicAltThree:3,ideographicAltFour:4,ideographicAltFive:5},CJKVerticalRomanPlacement:{code:31,exclusive:!0,CJKVerticalRomanCentered:0,CJKVerticalRomanHBaseline:1},italicCJKRoman:{code:32,exclusive:!1,CJKItalicRoman:2},caseSensitiveLayout:{code:33,exclusive:!1,caseSensitiveLayout:0,caseSensitiveSpacing:2},alternateKana:{code:34,exclusive:!1,alternateHorizKana:0,alternateVertKana:2},stylisticAlternatives:{code:35,exclusive:!1,noStylisticAlternates:0,stylisticAltOne:2,stylisticAltTwo:4,stylisticAltThree:6,stylisticAltFour:8,stylisticAltFive:10,stylisticAltSix:12,stylisticAltSeven:14,stylisticAltEight:16,stylisticAltNine:18,stylisticAltTen:20,stylisticAltEleven:22,stylisticAltTwelve:24,stylisticAltThirteen:26,stylisticAltFourteen:28,stylisticAltFifteen:30,stylisticAltSixteen:32,stylisticAltSeventeen:34,stylisticAltEighteen:36,stylisticAltNineteen:38,stylisticAltTwenty:40},contextualAlternates:{code:36,exclusive:!1,contextualAlternates:0,swashAlternates:2,contextualSwashAlternates:4},lowerCase:{code:37,exclusive:!0,defaultLowerCase:0,lowerCaseSmallCaps:1,lowerCasePetiteCaps:2},upperCase:{code:38,exclusive:!0,defaultUpperCase:0,upperCaseSmallCaps:1,upperCasePetiteCaps:2},languageTag:{code:39,exclusive:!0},CJKRomanSpacing:{code:103,exclusive:!0,halfWidthCJKRoman:0,proportionalCJKRoman:1,defaultCJKRoman:2,fullWidthCJKRoman:3}},gt=(e,t)=>[La[e].code,La[e][t]],Wf={rlig:gt("ligatures","requiredLigatures"),clig:gt("ligatures","contextualLigatures"),dlig:gt("ligatures","rareLigatures"),hlig:gt("ligatures","historicalLigatures"),liga:gt("ligatures","commonLigatures"),hist:gt("ligatures","historicalLigatures"),smcp:gt("lowerCase","lowerCaseSmallCaps"),pcap:gt("lowerCase","lowerCasePetiteCaps"),frac:gt("fractions","diagonalFractions"),dnom:gt("fractions","diagonalFractions"),numr:gt("fractions","diagonalFractions"),afrc:gt("fractions","verticalFractions"),case:gt("caseSensitiveLayout","caseSensitiveLayout"),ccmp:gt("unicodeDecomposition","canonicalComposition"),cpct:gt("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),valt:gt("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),swsh:gt("contextualAlternates","swashAlternates"),cswh:gt("contextualAlternates","contextualSwashAlternates"),curs:gt("cursiveConnection","cursive"),c2pc:gt("upperCase","upperCasePetiteCaps"),c2sc:gt("upperCase","upperCaseSmallCaps"),init:gt("smartSwash","wordInitialSwashes"),fin2:gt("smartSwash","wordFinalSwashes"),medi:gt("smartSwash","nonFinalSwashes"),med2:gt("smartSwash","nonFinalSwashes"),fin3:gt("smartSwash","wordFinalSwashes"),fina:gt("smartSwash","wordFinalSwashes"),pkna:gt("kanaSpacing","proportionalKana"),half:gt("textSpacing","halfWidthText"),halt:gt("textSpacing","altHalfWidthText"),hkna:gt("alternateKana","alternateHorizKana"),vkna:gt("alternateKana","alternateVertKana"),ital:gt("italicCJKRoman","CJKItalicRoman"),lnum:gt("numberCase","upperCaseNumbers"),onum:gt("numberCase","lowerCaseNumbers"),mgrk:gt("mathematicalExtras","mathematicalGreek"),calt:gt("contextualAlternates","contextualAlternates"),vrt2:gt("verticalSubstitution","substituteVerticalForms"),vert:gt("verticalSubstitution","substituteVerticalForms"),tnum:gt("numberSpacing","monospacedNumbers"),pnum:gt("numberSpacing","proportionalNumbers"),sups:gt("verticalPosition","superiors"),subs:gt("verticalPosition","inferiors"),ordn:gt("verticalPosition","ordinals"),pwid:gt("textSpacing","proportionalText"),hwid:gt("textSpacing","halfWidthText"),qwid:gt("textSpacing","quarterWidthText"),twid:gt("textSpacing","thirdWidthText"),fwid:gt("textSpacing","proportionalText"),palt:gt("textSpacing","altProportionalText"),trad:gt("characterShape","traditionalCharacters"),smpl:gt("characterShape","simplifiedCharacters"),jp78:gt("characterShape","JIS1978Characters"),jp83:gt("characterShape","JIS1983Characters"),jp90:gt("characterShape","JIS1990Characters"),jp04:gt("characterShape","JIS2004Characters"),expt:gt("characterShape","expertCharacters"),hojo:gt("characterShape","hojoCharacters"),nlck:gt("characterShape","NLCCharacters"),tnam:gt("characterShape","traditionalNamesCharacters"),ruby:gt("rubyKana","rubyKana"),titl:gt("styleOptions","titlingCaps"),zero:gt("typographicExtras","slashedZero"),ss01:gt("stylisticAlternatives","stylisticAltOne"),ss02:gt("stylisticAlternatives","stylisticAltTwo"),ss03:gt("stylisticAlternatives","stylisticAltThree"),ss04:gt("stylisticAlternatives","stylisticAltFour"),ss05:gt("stylisticAlternatives","stylisticAltFive"),ss06:gt("stylisticAlternatives","stylisticAltSix"),ss07:gt("stylisticAlternatives","stylisticAltSeven"),ss08:gt("stylisticAlternatives","stylisticAltEight"),ss09:gt("stylisticAlternatives","stylisticAltNine"),ss10:gt("stylisticAlternatives","stylisticAltTen"),ss11:gt("stylisticAlternatives","stylisticAltEleven"),ss12:gt("stylisticAlternatives","stylisticAltTwelve"),ss13:gt("stylisticAlternatives","stylisticAltThirteen"),ss14:gt("stylisticAlternatives","stylisticAltFourteen"),ss15:gt("stylisticAlternatives","stylisticAltFifteen"),ss16:gt("stylisticAlternatives","stylisticAltSixteen"),ss17:gt("stylisticAlternatives","stylisticAltSeventeen"),ss18:gt("stylisticAlternatives","stylisticAltEighteen"),ss19:gt("stylisticAlternatives","stylisticAltNineteen"),ss20:gt("stylisticAlternatives","stylisticAltTwenty")};for(let e=1;e<=99;e++)Wf[`cv${`00${e}`.slice(-2)}`]=[La.characterAlternatives.code,e];var $a={};for(let e in Wf){let t=Wf[e];$a[t[0]]==null&&($a[t[0]]={}),$a[t[0]][t[1]]=e}function TZ(e){let t={};for(let i in e){let r;(r=Wf[i])&&(t[r[0]]==null&&(t[r[0]]={}),t[r[0]][r[1]]=e[i])}return t}function H_(e){let[t,i]=e;if(isNaN(t))var r=La[t]&&La[t].code;else var r=t;if(isNaN(i))var n=La[t]&&La[t][i];else var n=i;return[r,n]}function IZ(e){let t={};if(Array.isArray(e))for(let i=0;i<e.length;i++){let r,n=H_(e[i]);(r=$a[n[0]]&&$a[n[0]][n[1]])&&(t[r]=!0)}else if(typeof e=="object")for(let i in e){let r=e[i];for(let n in r){let s,a=H_([i,n]);r[n]&&(s=$a[a[0]]&&$a[a[0]][a[1]])&&(t[s]=!0)}}return Object.keys(t)}var Bu=class{lookup(e){switch(this.table.version){case 0:return this.table.values.getItem(e);case 2:case 4:{let r=0,n=this.table.binarySearchHeader.nUnits-1;for(;r<=n;){var t=r+n>>1,i=this.table.segments[t];if(i.firstGlyph===65535)return null;if(e<i.firstGlyph)n=t-1;else if(e>i.lastGlyph)r=t+1;else return this.table.version===2?i.value:i.values[e-i.firstGlyph]}return null}case 6:{let r=0,n=this.table.binarySearchHeader.nUnits-1;for(;r<=n;){var t=r+n>>1,i=this.table.segments[t];if(i.glyph===65535)return null;if(e<i.glyph)n=t-1;else if(e>i.glyph)r=t+1;else return i.value}return null}case 8:return this.table.values[e-this.table.firstGlyph];default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}}glyphsForValue(e){let t=[];switch(this.table.version){case 2:case 4:for(let i of this.table.segments)if(this.table.version===2&&i.value===e)t.push(...jo(i.firstGlyph,i.lastGlyph+1));else for(let r=0;r<i.values.length;r++)i.values[r]===e&&t.push(i.firstGlyph+r);break;case 6:for(let i of this.table.segments)i.value===e&&t.push(i.glyph);break;case 8:for(let i=0;i<this.table.values.length;i++)this.table.values[i]===e&&t.push(this.table.firstGlyph+i);break;default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}return t}constructor(e){this.table=e}};Pi([Fi],Bu.prototype,"glyphsForValue",null);var DZ=0,q_=0,Y_=1,K_=2,PZ=16384,FZ=class{process(e,t,i){let r=DZ,n=t?e.length-1:0,s=t?-1:1;for(;s===1&&n<=e.length||s===-1&&n>=-1;){let a=null,o=Y_,l=!0;n===e.length||n===-1?o=q_:(a=e[n],a.id===65535?o=K_:(o=this.lookupTable.lookup(a.id),o==null&&(o=Y_)));let c=this.stateTable.stateArray.getItem(r)[o],d=this.stateTable.entryTable.getItem(c);o!==q_&&o!==K_&&(i(a,d,n),l=!(d.flags&PZ)),r=d.newState,l&&(n+=s)}return e}traverse(e,t=0,i=new Set){if(i.has(t))return;i.add(t);let{nClasses:r,stateArray:n,entryTable:s}=this.stateTable,a=n.getItem(t);for(let o=4;o<r;o++){let l=a[o],u=s.getItem(l);for(let c of this.lookupTable.glyphsForValue(o))e.enter&&e.enter(c,u),u.newState!==0&&this.traverse(e,u.newState,i),e.exit&&e.exit(c,u)}}constructor(e){this.stateTable=e,this.lookupTable=new Bu(e.classTable)}},BZ=32768,NZ=8192,MZ=15,X_=32768,zZ=32768,OZ=8192,RZ=2147483648,VZ=1073741824,LZ=1073741823,J_=4194304,$Z=2048,UZ=1024,ZZ=992,jZ=31,Q_=class{process(e,t={}){for(let r of this.morx.chains){let n=r.defaultFlags;for(let s of r.features){let a;(a=t[s.featureType])&&(a[s.featureSetting]?(n&=s.disableFlags,n|=s.enableFlags):a[s.featureSetting]===!1&&(n|=~s.disableFlags,n&=~s.enableFlags))}for(let s of r.subtables)s.subFeatureFlags&n&&this.processSubtable(s,e)}let i=e.length-1;for(;i>=0;)e[i].id===65535&&e.splice(i,1),i--;return e}processSubtable(e,t){if(this.subtable=e,this.glyphs=t,this.subtable.type===4){this.processNoncontextualSubstitutions(this.subtable,this.glyphs);return}this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;let i=this.getStateMachine(e),r=this.getProcessor(),n=!!(this.subtable.coverage&J_);return i.process(this.glyphs,n,r)}getStateMachine(e){return new FZ(e.table.stateTable)}getProcessor(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error(`Invalid morx subtable type: ${this.subtable.type}`)}}processIndicRearragement(e,t,i){t.flags&BZ&&(this.firstGlyph=i),t.flags&NZ&&(this.lastGlyph=i),WZ(this.glyphs,t.flags&MZ,this.firstGlyph,this.lastGlyph)}processContextualSubstitution(e,t,i){let r=this.subtable.table.substitutionTable.items;if(t.markIndex!==65535){let s=r.getItem(t.markIndex),a=new Bu(s);e=this.glyphs[this.markedGlyph];var n=a.lookup(e.id);n&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(n,e.codePoints))}if(t.currentIndex!==65535){let s=r.getItem(t.currentIndex),a=new Bu(s);e=this.glyphs[i];var n=a.lookup(e.id);n&&(this.glyphs[i]=this.font.getGlyph(n,e.codePoints))}t.flags&X_&&(this.markedGlyph=i)}processLigature(e,t,i){if(t.flags&zZ&&this.ligatureStack.push(i),t.flags&OZ){let r=this.subtable.table.ligatureActions,n=this.subtable.table.components,s=this.subtable.table.ligatureList,a=t.action,o=!1,l=0,u=[],c=[];for(;!o;){let d=this.ligatureStack.pop();u.unshift(...this.glyphs[d].codePoints);let f=r.getItem(a++);o=!!(f&RZ);let h=!!(f&VZ),p=(f&LZ)<<2>>2;p+=this.glyphs[d].id;let g=n.getItem(p);if(l+=g,o||h){let y=s.getItem(l);this.glyphs[d]=this.font.getGlyph(y,u),c.push(d),l=0,u=[]}else this.glyphs[d]=this.font.getGlyph(65535)}this.ligatureStack.push(...c)}}processNoncontextualSubstitutions(e,t,i){let r=new Bu(e.table.lookupTable);for(i=0;i<t.length;i++){let n=t[i];if(n.id!==65535){let s=r.lookup(n.id);s&&(t[i]=this.font.getGlyph(s,n.codePoints))}}}_insertGlyphs(e,t,i,r){let n=[];for(;i--;){let s=this.subtable.table.insertionActions.getItem(t++);n.push(this.font.getGlyph(s))}r||e++,this.glyphs.splice(e,0,...n)}processGlyphInsertion(e,t,i){if(t.flags&X_&&(this.markedIndex=i),t.markedInsertIndex!==65535){let r=(t.flags&jZ)>>>5,n=!!(t.flags&UZ);this._insertGlyphs(this.markedIndex,t.markedInsertIndex,r,n)}if(t.currentInsertIndex!==65535){let r=(t.flags&ZZ)>>>5,n=!!(t.flags&$Z);this._insertGlyphs(i,t.currentInsertIndex,r,n)}}getSupportedFeatures(){let e=[];for(let t of this.morx.chains)for(let i of t.features)e.push([i.featureType,i.featureSetting]);return e}generateInputs(e){return this.inputCache||this.generateInputCache(),this.inputCache[e]||[]}generateInputCache(){this.inputCache={};for(let e of this.morx.chains){let t=e.defaultFlags;for(let i of e.subtables)i.subFeatureFlags&t&&this.generateInputsForSubtable(i)}}generateInputsForSubtable(e){if(e.type!==2)return;if(!!(e.coverage&J_))throw new Error("Reverse subtable, not supported.");this.subtable=e,this.ligatureStack=[];let i=this.getStateMachine(e),r=this.getProcessor(),n=[],s=[];this.glyphs=[],i.traverse({enter:(a,o)=>{let l=this.glyphs;s.push({glyphs:l.slice(),ligatureStack:this.ligatureStack.slice()});let u=this.font.getGlyph(a);n.push(u),l.push(n[n.length-1]),r(l[l.length-1],o,l.length-1);let c=0,d=0;for(let f=0;f<l.length&&c<=1;f++)l[f].id!==65535&&(c++,d=l[f].id);if(c===1){let f=n.map(p=>p.id),h=this.inputCache[d];h?h.push(f):this.inputCache[d]=[f]}},exit:()=>{({glyphs:this.glyphs,ligatureStack:this.ligatureStack}=s.pop()),n.pop()}})}constructor(e){this.processIndicRearragement=this.processIndicRearragement.bind(this),this.processContextualSubstitution=this.processContextualSubstitution.bind(this),this.processLigature=this.processLigature.bind(this),this.processNoncontextualSubstitutions=this.processNoncontextualSubstitutions.bind(this),this.processGlyphInsertion=this.processGlyphInsertion.bind(this),this.font=e,this.morx=e.morx,this.inputCache=null}};Pi([Fi],Q_.prototype,"getStateMachine",null);function Qi(e,t,i,r=!1,n=!1){let s=e.splice(i[0]-(i[1]-1),i[1]);n&&s.reverse();let a=e.splice(t[0],t[1],...s);return r&&a.reverse(),e.splice(i[0]-(t[1]-1),0,...a),e}function WZ(e,t,i,r){switch(t){case 0:return e;case 1:return Qi(e,[i,1],[r,0]);case 2:return Qi(e,[i,0],[r,1]);case 3:return Qi(e,[i,1],[r,1]);case 4:return Qi(e,[i,2],[r,0]);case 5:return Qi(e,[i,2],[r,0],!0,!1);case 6:return Qi(e,[i,0],[r,2]);case 7:return Qi(e,[i,0],[r,2],!1,!0);case 8:return Qi(e,[i,1],[r,2]);case 9:return Qi(e,[i,1],[r,2],!1,!0);case 10:return Qi(e,[i,2],[r,1]);case 11:return Qi(e,[i,2],[r,1],!0,!1);case 12:return Qi(e,[i,2],[r,2]);case 13:return Qi(e,[i,2],[r,2],!0,!1);case 14:return Qi(e,[i,2],[r,2],!1,!0);case 15:return Qi(e,[i,2],[r,2],!0,!0);default:throw new Error(`Unknown verb: ${t}`)}}var GZ=class{substitute(e){e.direction==="rtl"&&e.glyphs.reverse(),this.morxProcessor.process(e.glyphs,TZ(e.features))}getAvailableFeatures(e,t){return IZ(this.morxProcessor.getSupportedFeatures())}stringsForGlyph(e){let t=this.morxProcessor.generateInputs(e),i=new Set;for(let r of t)this._addStrings(r,0,i,"");return i}_addStrings(e,t,i,r){let n=this.font._cmapProcessor.codePointsForGlyph(e[t]);for(let s of n){let a=r+String.fromCodePoint(s);t<e.length-1?this._addStrings(e,t+1,i,a):i.add(a)}}constructor(e){this.font=e,this.morxProcessor=new Q_(e),this.fallbackPosition=!1}},HZ=class{_addFeatures(e,t){let i=this.stages.length-1,r=this.stages[i];for(let n of e)this.allFeatures[n]==null&&(r.push(n),this.allFeatures[n]=i,t&&(this.globalFeatures[n]=!0))}add(e,t=!0){if(this.stages.length===0&&this.stages.push([]),typeof e=="string"&&(e=[e]),Array.isArray(e))this._addFeatures(e,t);else if(typeof e=="object")this._addFeatures(e.global||[],!0),this._addFeatures(e.local||[],!1);else throw new Error("Unsupported argument to ShapingPlan#add")}addStage(e,t){typeof e=="function"?this.stages.push(e,[]):(this.stages.push([]),this.add(e,t))}setFeatureOverrides(e){if(Array.isArray(e))this.add(e);else if(typeof e=="object"){for(let t in e)if(e[t])this.add(t);else if(this.allFeatures[t]!=null){let i=this.stages[this.allFeatures[t]];i.splice(i.indexOf(t),1),delete this.allFeatures[t],delete this.globalFeatures[t]}}}assignGlobalFeatures(e){for(let t of e)for(let i in this.globalFeatures)t.features[i]=!0}process(e,t,i){for(let r of this.stages)typeof r=="function"?i||r(this.font,t,this):r.length>0&&e.applyFeatures(r,t,i)}constructor(e,t,i){this.font=e,this.script=t,this.direction=i,this.stages=[],this.globalFeatures={},this.allFeatures={}}},qZ=["rvrn"],YZ=["ccmp","locl","rlig","mark","mkmk"],KZ=["frac","numr","dnom"],XZ=["calt","clig","liga","rclt","curs","kern"],JZ={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},Js=class{static plan(e,t,i){this.planPreprocessing(e),this.planFeatures(e),this.planPostprocessing(e,i),e.assignGlobalFeatures(t),this.assignFeatures(e,t)}static planPreprocessing(e){e.add({global:[...qZ,...JZ[e.direction]],local:KZ})}static planFeatures(e){}static planPostprocessing(e,t){e.add([...YZ,...XZ]),e.setFeatureOverrides(t)}static assignFeatures(e,t){for(let i=0;i<t.length;i++){let r=t[i];if(r.codePoints[0]===8260){let n=i,s=i+1;for(;n>0&&e_(t[n-1].codePoints[0]);)t[n-1].features.numr=!0,t[n-1].features.frac=!0,n--;for(;s<t.length&&e_(t[s].codePoints[0]);)t[s].features.dnom=!0,t[s].features.frac=!0,s++;r.features.frac=!0,i=s-1}}}};ar(Js,"zeroMarkWidths","AFTER_GPOS");var QZ=new Dg.default(Gg("APABAAAAAAAAOAA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e,Ze,2],[Hf,Ze,1],[Hf,Ze,2],[Hf,Kg,5],[Hf,Ze,6]],[[xe,xe,0],[xe,Ze,2],[Ze,Ze,1],[Ze,Ze,2],[Ze,Kg,5],[Ze,Ze,6]],[[xe,xe,0],[xe,Ze,2],[xe,Ze,1],[xe,Ze,2],[xe,tj,5],[xe,Ze,6]]],ta=class extends Js{static planFeatures(e){e.add(["ccmp","locl"]);for(let t=0;t<t6.length;t++){let i=t6[t];e.addStage(i,!1)}e.addStage("mset")}static assignFeatures(e,t){super.assignFeatures(e,t);let i=-1,r=0,n=[];for(let a=0;a<t.length;a++){let o,l;var s=t[a];let u=ij(s.codePoints[0]);if(u===Yg.Transparent){n[a]=xe;continue}[l,o,r]=ej[r][u],l!==xe&&i!==-1&&(n[i]=l),n[a]=o,i=a}for(let a=0;a<t.length;a++){let o;var s=t[a];(o=n[a])&&(s.features[o]=!0)}}};function ij(e){let t=QZ.get(e);if(t)return t-1;let i=Ff(e);return i==="Mn"||i==="Me"||i==="Cf"?Yg.Transparent:Yg.Non_Joining}var rj=class{reset(e={},t=0){this.options=e,this.flags=e.flags||{},this.markAttachmentType=e.markAttachmentType||0,this.index=t}get cur(){return this.glyphs[this.index]||null}shouldIgnore(e){return this.flags.ignoreMarks&&e.isMark||this.flags.ignoreBaseGlyphs&&e.isBase||this.flags.ignoreLigatures&&e.isLigature||this.markAttachmentType&&e.isMark&&e.markAttachmentType!==this.markAttachmentType}move(e){for(this.index+=e;0<=this.index&&this.index<this.glyphs.length&&this.shouldIgnore(this.glyphs[this.index]);)this.index+=e;return 0>this.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]}next(){return this.move(1)}prev(){return this.move(-1)}peek(e=1){let t=this.index,i=this.increment(e);return this.index=t,i}peekIndex(e=1){let t=this.index;this.increment(e);let i=this.index;return this.index=t,i}increment(e=1){let t=e<0?-1:1;for(e=Math.abs(e);e--;)this.move(t);return this.glyphs[this.index]}constructor(e,t){this.glyphs=e,this.reset(t)}},nj=["DFLT","dflt","latn"],Yf=class{findScript(e){if(this.table.scriptList==null)return null;Array.isArray(e)||(e=[e]);for(let t of e)for(let i of this.table.scriptList)if(i.tag===t)return i;return null}selectScript(e,t,i){let r=!1,n;if(!this.script||e!==this.scriptTag){if(n=this.findScript(e),n||(n=this.findScript(nj)),!n)return this.scriptTag;this.scriptTag=n.tag,this.script=n.script,this.language=null,this.languageTag=null,r=!0}if((!i||i!==this.direction)&&(this.direction=i||G_(e)),t&&t.length<4&&(t+=" ".repeat(4-t.length)),!t||t!==this.languageTag){this.language=null;for(let s of this.script.langSysRecords)if(s.tag===t){this.language=s.langSys,this.languageTag=s.tag;break}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),r=!0}if(r&&(this.features={},this.language))for(let s of this.language.featureIndexes){let a=this.table.featureList[s],o=this.substituteFeatureForVariations(s);this.features[a.tag]=o||a.feature}return this.scriptTag}lookupsForFeatures(e=[],t){let i=[];for(let r of e){let n=this.features[r];if(n)for(let s of n.lookupListIndexes)t&&t.indexOf(s)!==-1||i.push({feature:r,index:s,lookup:this.table.lookupList.get(s)})}return i.sort((r,n)=>r.index-n.index),i}substituteFeatureForVariations(e){if(this.variationsIndex===-1)return null;let i=this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions;for(let r of i)if(r.featureIndex===e)return r.alternateFeatureTable;return null}findVariationsIndex(e){let t=this.table.featureVariations;if(!t)return-1;let i=t.featureVariationRecords;for(let r=0;r<i.length;r++){let n=i[r].conditionSet.conditionTable;if(this.variationConditionsMatch(n,e))return r}return-1}variationConditionsMatch(e,t){return e.every(i=>{let r=i.axisIndex<t.length?t[i.axisIndex]:0;return i.filterRangeMinValue<=r&&r<=i.filterRangeMaxValue})}applyFeatures(e,t,i){let r=this.lookupsForFeatures(e);this.applyLookups(r,t,i)}applyLookups(e,t,i){this.glyphs=t,this.positions=i,this.glyphIterator=new rj(t);for(let{feature:r,lookup:n}of e)for(this.currentFeature=r,this.glyphIterator.reset(n.flags);this.glyphIterator.index<t.length;){if(!(r in this.glyphIterator.cur.features)){this.glyphIterator.next();continue}for(let s of n.subTables)if(this.applyLookup(n.lookupType,s))break;this.glyphIterator.next()}}applyLookup(e,t){throw new Error("applyLookup must be implemented by subclasses")}applyLookupList(e){let t=this.glyphIterator.options,i=this.glyphIterator.index;for(let r of e){this.glyphIterator.reset(t,i),this.glyphIterator.increment(r.sequenceIndex);let n=this.table.lookupList.get(r.lookupListIndex);this.glyphIterator.reset(n.flags,this.glyphIterator.index);for(let s of n.subTables)if(this.applyLookup(n.lookupType,s))break}return this.glyphIterator.reset(t,i),!0}coverageIndex(e,t){switch(t==null&&(t=this.glyphIterator.cur.id),e.version){case 1:return e.glyphs.indexOf(t);case 2:for(let i of e.rangeRecords)if(i.start<=t&&t<=i.end)return i.startCoverageIndex+t-i.start;break}return-1}match(e,t,i,r){let n=this.glyphIterator.index,s=this.glyphIterator.increment(e),a=0;for(;a<t.length&&s&&i(t[a],s);)r&&r.push(this.glyphIterator.index),a++,s=this.glyphIterator.next();return this.glyphIterator.index=n,a<t.length?!1:r||!0}sequenceMatches(e,t){return this.match(e,t,(i,r)=>i===r.id)}sequenceMatchIndices(e,t){return this.match(e,t,(i,r)=>this.currentFeature in r.features?i===r.id:!1,[])}coverageSequenceMatches(e,t){return this.match(e,t,(i,r)=>this.coverageIndex(i,r.id)>=0)}getClassID(e,t){switch(t.version){case 1:let i=e-t.startGlyph;if(i>=0&&i<t.classValueArray.length)return t.classValueArray[i];break;case 2:for(let r of t.classRangeRecord)if(r.start<=e&&e<=r.end)return r.class;break}return 0}classSequenceMatches(e,t,i){return this.match(e,t,(r,n)=>r===this.getClassID(n.id,i))}applyContext(e){let t,i;switch(e.version){case 1:if(t=this.coverageIndex(e.coverage),t===-1)return!1;i=e.ruleSets[t];for(let r of i)if(this.sequenceMatches(1,r.input))return this.applyLookupList(r.lookupRecords);break;case 2:if(this.coverageIndex(e.coverage)===-1||(t=this.getClassID(this.glyphIterator.cur.id,e.classDef),t===-1))return!1;i=e.classSet[t];for(let r of i)if(this.classSequenceMatches(1,r.classes,e.classDef))return this.applyLookupList(r.lookupRecords);break;case 3:if(this.coverageSequenceMatches(0,e.coverages))return this.applyLookupList(e.lookupRecords);break}return!1}applyChainingContext(e){let t;switch(e.version){case 1:if(t=this.coverageIndex(e.coverage),t===-1)return!1;let i=e.chainRuleSets[t];for(let n of i)if(this.sequenceMatches(-n.backtrack.length,n.backtrack)&&this.sequenceMatches(1,n.input)&&this.sequenceMatches(1+n.input.length,n.lookahead))return this.applyLookupList(n.lookupRecords);break;case 2:if(this.coverageIndex(e.coverage)===-1)return!1;t=this.getClassID(this.glyphIterator.cur.id,e.inputClassDef);let r=e.chainClassSet[t];if(!r)return!1;for(let n of r)if(this.classSequenceMatches(-n.backtrack.length,n.backtrack,e.backtrackClassDef)&&this.classSequenceMatches(1,n.input,e.inputClassDef)&&this.classSequenceMatches(1+n.input.length,n.lookahead,e.lookaheadClassDef))return this.applyLookupList(n.lookupRecords);break;case 3:if(this.coverageSequenceMatches(-e.backtrackGlyphCount,e.backtrackCoverage)&&this.coverageSequenceMatches(0,e.inputCoverage)&&this.coverageSequenceMatches(e.inputGlyphCount,e.lookaheadCoverage))return this.applyLookupList(e.lookupRecords);break}return!1}constructor(e,t){this.font=e,this.table=t,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=e._variationProcessor?this.findVariationsIndex(e._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}},ls=class JI{get id(){return this._id}set id(t){this._id=t,this.substituted=!0;let i=this._font.GDEF;if(i&&i.glyphClassDef){let r=Yf.prototype.getClassID(t,i.glyphClassDef);this.isBase=r===1,this.isLigature=r===2,this.isMark=r===3,this.markAttachmentType=i.markAttachClassDef?Yf.prototype.getClassID(t,i.markAttachClassDef):0}else this.isMark=this.codePoints.length>0&&this.codePoints.every(i_),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}copy(){return new JI(this._font,this.id,this.codePoints,this.features)}constructor(t,i,r=[],n){if(this._font=t,this.codePoints=r,this.id=i,this.features={},Array.isArray(n))for(let s=0;s<n.length;s++){let a=n[s];this.features[a]=!0}else typeof n=="object"&&Object.assign(this.features,n);this.ligatureID=null,this.ligatureComponent=null,this.isLigated=!1,this.cursiveAttachment=null,this.markAttachment=null,this.shaperInfo=null,this.substituted=!1,this.isMultiplied=!1}},e6=class extends Js{static planFeatures(e){e.add(["ljmo","vjmo","tjmo"],!1)}static assignFeatures(e,t){let i=0,r=0;for(;r<t.length;){let n,a=t[r].codePoints[0],o=eh(a);switch([n,i]=Cj[i][o],n){case us:e.font.hasGlyphForCodePoint(a)||(r=s6(t,r,e.font));break;case Jg:r=kj(t,r,e.font);break;case Qg:_j(t,r,e.font);break;case ty:r=Ej(t,r,e.font);break}r++}}};ar(e6,"zeroMarkWidths","NONE");var Ho=44032,i6=55204,sj=i6-Ho+1,Kf=4352,Xf=4449,Ua=4519,aj=19,Jf=21,Nu=28,oj=Kf+aj-1,lj=Xf+Jf-1,uj=Ua+Nu-1,r6=9676,cj=e=>4352<=e&&e<=4447||43360<=e&&e<=43388,dj=e=>4448<=e&&e<=4519||55216<=e&&e<=55238,fj=e=>4520<=e&&e<=4607||55243<=e&&e<=55291,hj=e=>12334<=e&&e<=12335,pj=e=>Ho<=e&&e<=i6,mj=e=>e-Ho<sj&&(e-Ho)%Nu===0,gj=e=>Kf<=e&&e<=oj,yj=e=>Xf<=e&&e<=lj,bj=e=>1<=e&&e<=uj,vj=0,wj=1,Qf=2,Xg=3,th=4,n6=5,xj=6;function eh(e){return cj(e)?wj:dj(e)?Qf:fj(e)?Xg:mj(e)?th:pj(e)?n6:hj(e)?xj:vj}var or=0,us=1,Jg=2,Qg=4,ty=5,Cj=[[[or,0],[or,1],[or,0],[or,0],[us,2],[us,3],[ty,0]],[[or,0],[or,1],[Jg,2],[or,0],[us,2],[us,3],[ty,0]],[[or,0],[or,1],[or,0],[Jg,3],[us,2],[us,3],[Qg,0]],[[or,0],[or,1],[or,0],[or,0],[us,2],[us,3],[Qg,0]]];function Mu(e,t,i){return new ls(e,e.glyphForCodePoint(t).id,[t],i)}function s6(e,t,i){let r=e[t],s=r.codePoints[0]-Ho,a=Ua+s%Nu;s=s/Nu|0;let o=Kf+s/Jf|0,l=Xf+s%Jf;if(!i.hasGlyphForCodePoint(o)||!i.hasGlyphForCodePoint(l)||a!==Ua&&!i.hasGlyphForCodePoint(a))return t;let u=Mu(i,o,r.features);u.features.ljmo=!0;let c=Mu(i,l,r.features);c.features.vjmo=!0;let d=[u,c];if(a>Ua){let f=Mu(i,a,r.features);f.features.tjmo=!0,d.push(f)}return e.splice(t,1,...d),t+d.length-1}function kj(e,t,i){let r=e[t],n=e[t].codePoints[0],s=eh(n),a=e[t-1].codePoints[0],o=eh(a),l,u,c,d;if(o===th&&s===Xg)l=a,d=r;else{s===Qf?(u=e[t-1],c=r):(u=e[t-2],c=e[t-1],d=r);let h=u.codePoints[0],p=c.codePoints[0];gj(h)&&yj(p)&&(l=Ho+((h-Kf)*Jf+(p-Xf))*Nu)}let f=d&&d.codePoints[0]||Ua;if(l!=null&&(f===Ua||bj(f))){let h=l+(f-Ua);if(i.hasGlyphForCodePoint(h)){let p=o===Qf?3:2;return e.splice(t-p+1,p,Mu(i,h,r.features)),t-p+1}}return u&&(u.features.ljmo=!0),c&&(c.features.vjmo=!0),d&&(d.features.tjmo=!0),o===th?(s6(e,t-1,i),t+1):t}function Sj(e){switch(eh(e)){case th:case n6:return 1;case Qf:return 2;case Xg:return 3}}function _j(e,t,i){let r=e[t],n=e[t].codePoints[0];if(i.glyphForCodePoint(n).advanceWidth===0)return;let s=e[t-1].codePoints[0],a=Sj(s);return e.splice(t,1),e.splice(t-a,0,r)}function Ej(e,t,i){let r=e[t],n=e[t].codePoints[0];if(i.hasGlyphForCodePoint(r6)){let s=Mu(i,r6,r.features),a=i.glyphForCodePoint(n).advanceWidth===0?t:t+1;e.splice(a,0,s),t++}return t}var a6={};a6=JSON.parse('{"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],"accepting":[false,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,false,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,false,false,true,false,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,false,false,true,true,false,false,true,true,true,false,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,false,false,false,false,false,false,false,true,true,false,false,true,true,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,false,true,true,false,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,false,true,true,true,true,true,false,true,true,false,true,true,true],"tags":[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}');var ih={};ih=JSON.parse('{"categories":["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],"decompositions":{"2507":[2503,2494],"2508":[2503,2519],"2888":[2887,2902],"2891":[2887,2878],"2892":[2887,2903],"3018":[3014,3006],"3019":[3015,3006],"3020":[3014,3031],"3144":[3142,3158],"3264":[3263,3285],"3271":[3270,3285],"3272":[3270,3286],"3274":[3270,3266],"3275":[3270,3266,3285],"3402":[3398,3390],"3403":[3399,3390],"3404":[3398,3415],"3546":[3545,3530],"3548":[3545,3535],"3549":[3545,3535,3530],"3550":[3545,3551],"3635":[3661,3634],"3763":[3789,3762],"3955":[3953,3954],"3957":[3953,3956],"3958":[4018,3968],"3959":[4018,3953,3968],"3960":[4019,3968],"3961":[4019,3953,3968],"3969":[3953,3968],"6971":[6970,6965],"6973":[6972,6965],"6976":[6974,6965],"6977":[6975,6965],"6979":[6978,6965],"69934":[69937,69927],"69935":[69938,69927],"70475":[70471,70462],"70476":[70471,70487],"70843":[70841,70842],"70844":[70841,70832],"70846":[70841,70845],"71098":[71096,71087],"71099":[71097,71087]},"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0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0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],"accepting":[false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true],"tags":[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]}');var pe={X:1,C:2,V:4,N:8,H:16,ZWNJ:32,ZWJ:64,M:128,Placeholder:2048,Dotted_Circle:4096,RS:8192,Coeng:16384,Repha:32768,Ra:65536,CM:131072},Yt={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},Aj=pe.C|pe.Ra|pe.CM|pe.V|pe.Placeholder|pe.Dotted_Circle,o6=pe.ZWJ|pe.ZWNJ,zu=pe.H|pe.Coeng,l6={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:Yt.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:Yt.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:Yt.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:Yt.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:Yt.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:Yt.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:Yt.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:Yt.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:Yt.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:Yt.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:Yt.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},Tj={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},{decompositions:Ij}=Bf(ih),u6=new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769uQ016lgUuf2pAfKPhu2FpfZL2Yb9snLNl/fNIepXaUsj4vNXCXUZ75px8ojNP8UPvAta2g6fb+F1ckZuneshv1vGXXDeyRRrN/bBPS1Jul+l+7zW86R7Wv63WXyDpt/RxraRjvC+TC3O61/Sqj/prag8x372yQivn+XwudrI2X2E2KdtJEov52e0L+uv4FO3p/rvssgsL8F4d/z9PzlWS94m8fqS3361Fi+6qaVYHwi9Yz4iH2fobIj+45cpz/TUaarr/4+z+vaWtVtyAX2d1LG8W9C3f+F1mnf36/k4w3YPrLv+XBVXCJs3cr+n4MKJuLv/fN9GhNdXVP5pJMN9vFi3rpv3/r8Ywg3SYp66zNOsO8QGcxPpnmRS/1mvmJjju3v7absI2xspQrvs1dNbjOj/wP7h1RlZyKGy8occ408UL8En4v6xfC/K3z52XzJd62T8vuZGGsxo/6O46ntmNqqFb/jps2/hHV4rPKH0svT4pstU7t2tZ9u/ZdqbJL1MwP6O86Fyt4jYaIrGz9mjEt8lFL4PtVE6votG2P6fpdf/GZRse7s3bf4BtSl/DIbKMctx++Z+8o6K6z9FPOwKsRmXiaNl7C+6NYRpjlbqG1j72f49qsuY4brd/amb4ZVc8TQ+sSH985LrEe8iPWJnfPrJRbWbb+dwn4x6o+r/aS2S7w3qWt//LnYz2ntE0vH1uDcyKatx1rH+EiMPEN1SZG/iz6+9o01Rob6O7Q+xLZ1jHobK61U+pWVvo2EpuWqzzD6Poa+pvhli0wn8Zq/72Mzm2d90o5VN1x9ZKuzbTgvqWwUIin8FSpl1CXXvFRxU0iozVPYJDRtF3uFphn6XAyJUUdD7SjTJ8v6n9fVbVObkKWp001lc9VRlqdOf5v0ZM+bymdbfp1NfG0bq27Y5JMyfxeJkU6o/inKH8O2Zfgidb6h/g3VJ7QcVbWL0Pxt6rlrPqa4KfQ25a2zl4/E8GdM/4fK/wA=")),Dj=new r_.default(Bf(a6)),ci=class extends Js{static planFeatures(e){e.addStage(Pj),e.addStage(["locl","ccmp"]),e.addStage(Bj),e.addStage("nukt"),e.addStage("akhn"),e.addStage("rphf",!1),e.addStage("rkrf"),e.addStage("pref",!1),e.addStage("blwf",!1),e.addStage("abvf",!1),e.addStage("half",!1),e.addStage("pstf",!1),e.addStage("vatu"),e.addStage("cjct"),e.addStage("cfar",!1),e.addStage(Nj),e.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),e.unicodeScript=CZ(e.script),e.indicConfig=l6[e.unicodeScript]||l6.Default,e.isOldSpec=e.indicConfig.hasOldSpec&&e.script[e.script.length-1]!=="2"}static assignFeatures(e,t){for(let i=t.length-1;i>=0;i--){let r=t[i].codePoints[0],n=Tj[r]||Ij[r];if(n){let s=n.map(a=>{let o=e.font.glyphForCodePoint(a);return new ls(e.font,o.id,[a],t[i].features)});t.splice(i,1,...s)}}}};ar(ci,"zeroMarkWidths","NONE");function ey(e){return u6.get(e.codePoints[0])>>8}function c6(e){return 1<<(u6.get(e.codePoints[0])&255)}var rh=class{constructor(e,t,i,r){this.category=e,this.position=t,this.syllableType=i,this.syllable=r}};function Pj(e,t){let i=0,r=0;for(let[n,s,a]of Dj.match(t.map(ey))){if(n>r){++i;for(let o=r;o<n;o++)t[o].shaperInfo=new rh(pe.X,Yt.End,"non_indic_cluster",i)}++i;for(let o=n;o<=s;o++)t[o].shaperInfo=new rh(1<<ey(t[o]),c6(t[o]),a[0],i);r=s+1}if(r<t.length){++i;for(let n=r;n<t.length;n++)t[n].shaperInfo=new rh(pe.X,Yt.End,"non_indic_cluster",i)}}function Za(e){return e.shaperInfo.category&Aj}function Tn(e){return e.shaperInfo.category&o6}function cs(e){return e.shaperInfo.category&zu}function ds(e,t){for(let r of e)r.features={[t]:!0};return e[0]._font._layoutEngine.engine.GSUBProcessor.applyFeatures([t],e),e.length===1}function Fj(e,t,i){let r=[i,t,i];return ds(r.slice(0,2),"blwf")||ds(r.slice(1,3),"blwf")?Yt.Below_C:ds(r.slice(0,2),"pstf")||ds(r.slice(1,3),"pstf")||ds(r.slice(0,2),"pref")||ds(r.slice(1,3),"pref")?Yt.Post_C:Yt.Base_C}function Bj(e,t,i){let r=i.indicConfig,n=e._layoutEngine.engine.GSUBProcessor.features,s=e.glyphForCodePoint(9676).id,a=e.glyphForCodePoint(r.virama).id;if(a){let o=new ls(e,a,[r.virama]);for(let l=0;l<t.length;l++)t[l].shaperInfo.position===Yt.Base_C&&(t[l].shaperInfo.position=Fj(e,t[l].copy(),o))}for(let o=0,l=nh(t,0);o<t.length;o=l,l=nh(t,o)){let{category:u,syllableType:c}=t[o].shaperInfo;if(c==="symbol_cluster"||c==="non_indic_cluster")continue;if(c==="broken_cluster"&&s){let x=new ls(e,s,[9676]);x.shaperInfo=new rh(1<<ey(x),c6(x),t[o].shaperInfo.syllableType,t[o].shaperInfo.syllable);let S=o;for(;S<l&&t[S].shaperInfo.category===pe.Repha;)S++;t.splice(S++,0,x),l++}let d=l,f=o,h=!1;if(r.rephPos!==Yt.Ra_To_Become_Reph&&n.rphf&&o+3<=l&&(r.rephMode==="Implicit"&&!Tn(t[o+2])||r.rephMode==="Explicit"&&t[o+2].shaperInfo.category===pe.ZWJ)){let x=[t[o].copy(),t[o+1].copy(),t[o+2].copy()];if(ds(x.slice(0,2),"rphf")||r.rephMode==="Explicit"&&ds(x,"rphf")){for(f+=2;f<l&&Tn(t[f]);)f++;d=o,h=!0}}else if(r.rephMode==="Log_Repha"&&t[o].shaperInfo.category===pe.Repha){for(f++;f<l&&Tn(t[f]);)f++;d=o,h=!0}switch(r.basePos){case"Last":{let x=l,S=!1;do{let _=t[--x].shaperInfo;if(Za(t[x])){if(_.position!==Yt.Below_C&&(_.position!==Yt.Post_C||S)){d=x;break}_.position===Yt.Below_C&&(S=!0),d=x}else if(o<x&&_.category===pe.ZWJ&&t[x-1].shaperInfo.category===pe.H)break}while(x>f);break}case"First":d=o;for(let x=d+1;x<l;x++)Za(t[x])&&(t[x].shaperInfo.position=Yt.Below_C)}h&&d===o&&f-d<=2&&(h=!1);for(let x=o;x<d;x++){let S=t[x].shaperInfo;S.position=Math.min(Yt.Pre_C,S.position)}d<l&&(t[d].shaperInfo.position=Yt.Base_C);for(let x=d+1;x<l;x++)if(t[x].shaperInfo.category===pe.M){for(let S=x+1;S<l;S++)if(Za(t[S])){t[S].shaperInfo.position=Yt.Final_C;break}break}if(h&&(t[o].shaperInfo.position=Yt.Ra_To_Become_Reph),i.isOldSpec){let x=i.unicodeScript!=="Malayalam";for(let S=d+1;S<l;S++)if(t[S].shaperInfo.category===pe.H){let _;for(_=l-1;_>S&&!(Za(t[_])||x&&t[_].shaperInfo.category===pe.H);_--);if(t[_].shaperInfo.category!==pe.H&&_>S){let k=t[S];t.splice(S,0,...t.splice(S+1,_-S)),t[_]=k}break}}let p=Yt.Start;for(let x=o;x<l;x++){let S=t[x].shaperInfo;if(S.category&(o6|pe.N|pe.RS|pe.CM|zu&S.category)){if(S.position=p,S.category===pe.H&&S.position===Yt.Pre_M){for(let _=x;_>o;_--)if(t[_-1].shaperInfo.position!==Yt.Pre_M){S.position=t[_-1].shaperInfo.position;break}}}else S.position!==Yt.SMVD&&(p=S.position)}let g=d;for(let x=d+1;x<l;x++)if(Za(t[x])){for(let S=g+1;S<x;S++)t[S].shaperInfo.position<Yt.SMVD&&(t[S].shaperInfo.position=t[x].shaperInfo.position);g=x}else t[x].shaperInfo.category===pe.M&&(g=x);let y=t.slice(o,l);y.sort((x,S)=>x.shaperInfo.position-S.shaperInfo.position),t.splice(o,y.length,...y);for(let x=o;x<l;x++)if(t[x].shaperInfo.position===Yt.Base_C){d=x;break}for(let x=o;x<l&&t[x].shaperInfo.position===Yt.Ra_To_Become_Reph;x++)t[x].features.rphf=!0;let v=!i.isOldSpec&&r.blwfMode==="Pre_And_Post";for(let x=o;x<d;x++)t[x].features.half=!0,v&&(t[x].features.blwf=!0);for(let x=d+1;x<l;x++)t[x].features.abvf=!0,t[x].features.pstf=!0,t[x].features.blwf=!0;if(i.isOldSpec&&i.unicodeScript==="Devanagari")for(let x=o;x+1<d;x++)t[x].shaperInfo.category===pe.Ra&&t[x+1].shaperInfo.category===pe.H&&(x+1===d||t[x+2].shaperInfo.category===pe.ZWJ)&&(t[x].features.blwf=!0,t[x+1].features.blwf=!0);let C=2;if(n.pref&&d+C<l)for(let x=d+1;x+C-1<l;x++){let S=[t[x].copy(),t[x+1].copy()];if(ds(S,"pref")){for(let _=0;_<C;_++)t[x++].features.pref=!0;if(n.cfar)for(;x<l;x++)t[x].features.cfar=!0;break}}for(let x=o+1;x<l;x++)if(Tn(t[x])){let S=t[x].shaperInfo.category===pe.ZWNJ,_=x;do _--,S&&delete t[_].features.half;while(_>o&&!Za(t[_]))}}}function Nj(e,t,i){let r=i.indicConfig,n=e._layoutEngine.engine.GSUBProcessor.features;for(let s=0,a=nh(t,0);s<t.length;s=a,a=nh(t,s)){let o=!!n.pref,l=s;for(;l<a;l++)if(t[l].shaperInfo.position>=Yt.Base_C){if(o&&l+1<a){for(let u=l+1;u<a;u++)if(t[u].features.pref){if(!(t[u].substituted&&t[u].isLigated&&!t[u].isMultiplied)){for(l=u;l<a&&cs(t[l]);)l++;t[l].shaperInfo.position=Yt.BASE_C,o=!1}break}}if(i.unicodeScript==="Malayalam")for(let u=l+1;u<a;u++){for(;u<a&&Tn(t[u]);)u++;if(u===a||!cs(t[u]))break;for(u++;u<a&&Tn(t[u]);)u++;u<a&&Za(t[u])&&t[u].shaperInfo.position===Yt.Below_C&&(l=u,t[l].shaperInfo.position=Yt.Base_C)}s<l&&t[l].shaperInfo.position>Yt.Base_C&&l--;break}if(l===a&&s<l&&t[l-1].shaperInfo.category===pe.ZWJ&&l--,l<a)for(;s<l&&t[l].shaperInfo.category&(pe.N|zu);)l--;if(s+1<a&&s<l){let u=l===a?l-2:l-1;if(i.unicodeScript!=="Malayalam"&&i.unicodeScript!=="Tamil"){for(;u>s&&!(t[u].shaperInfo.category&(pe.M|zu));)u--;cs(t[u])&&t[u].shaperInfo.position!==Yt.Pre_M?u+1<a&&Tn(t[u+1])&&u++:u=s}if(s<u&&t[u].shaperInfo.position!==Yt.Pre_M){for(let c=u;c>s;c--)if(t[c-1].shaperInfo.position===Yt.Pre_M){let d=c-1;d<l&&l<=u&&l--;let f=t[d];t.splice(d,0,...t.splice(d+1,u-d)),t[u]=f,u--}}}if(s+1<a&&t[s].shaperInfo.position===Yt.Ra_To_Become_Reph&&t[s].shaperInfo.category===pe.Repha!==(t[s].isLigated&&!t[s].isMultiplied)){let u,c=r.rephPos,d=!1;if(c!==Yt.After_Post){for(u=s+1;u<l&&!cs(t[u]);)u++;if(u<l&&cs(t[u])&&(u+1<l&&Tn(t[u+1])&&u++,d=!0),!d&&c===Yt.After_Main){for(u=l;u+1<a&&t[u+1].shaperInfo.position<=Yt.After_Main;)u++;d=u<a}if(!d&&c===Yt.After_Sub){for(u=l;u+1<a&&!(t[u+1].shaperInfo.position&(Yt.Post_C|Yt.After_Post|Yt.SMVD));)u++;d=u<a}}if(!d){for(u=s+1;u<l&&!cs(t[u]);)u++;u<l&&cs(t[u])&&(u+1<l&&Tn(t[u+1])&&u++,d=!0)}if(!d){for(u=a-1;u>s&&t[u].shaperInfo.position===Yt.SMVD;)u--;if(cs(t[u]))for(let h=l+1;h<u;h++)t[h].shaperInfo.category===pe.M&&u--}let f=t[s];t.splice(s,0,...t.splice(s+1,u-s)),t[u]=f,s<l&&l<=u&&l--}if(o&&l+1<a){for(let u=l+1;u<a;u++)if(t[u].features.pref){if(t[u].isLigated&&!t[u].isMultiplied){let c=l;if(i.unicodeScript!=="Malayalam"&&i.unicodeScript!=="Tamil"){for(;c>s&&!(t[c-1].shaperInfo.category&(pe.M|zu));)c--;if(c>s&&t[c-1].shaperInfo.category===pe.M){let h=u;for(let p=l+1;p<h;p++)if(t[p].shaperInfo.category===pe.M){c--;break}}}c>s&&cs(t[c-1])&&c<a&&Tn(t[c])&&c++;let d=u,f=t[d];t.splice(c+1,0,...t.splice(c,d-c)),t[c]=f,c<=l&&l<d&&l++}break}}t[s].shaperInfo.position===Yt.Pre_M&&(!s||!/Cf|Mn/.test(Ff(t[s-1].codePoints[0])))&&(t[s].features.init=!0)}}function nh(e,t){if(t>=e.length)return t;let i=e[t].shaperInfo.syllable;for(;++t<e.length&&e[t].shaperInfo.syllable===i;);return t}var{categories:Mj,decompositions:d6}=Bf(ih),zj=new Dg.default(Gg("AAACAAAAAAAQugAAAQUO+vHtnHuMX0UVx2d3u/t7bXe7FlqgvB+mpQhFmhikMRAg0ZQmakMU+cPWBzZisEGNjUpoiIYCEgmGUGOEGqOVNPUZUGNA+QNIBU2KREEFFSMBUYRISMXE+B3vnPzOzp553tcWfif5ZO5jnufMzJ2ZO/eumlDqFLAWnAMuBBvBZnC5uXZeBe4WsA1sBzs8/naCXcL1G8GtYDfYA74NvgfuAfcZHmT+fwEeBb8DTwvxPQWeAavACyZvq8z9VYxXwCGglijVBcvACnA8eCM4E6wHG8BF4BLwbvA+8AHwUbAd7AA7wS5wC9gN7gR7wX5wN7gXPAAeBr8Gvwd/Ac+CF8EhoCaV6oBZsBKcAE4FZ0wWeV8P9zxwoTnfCHczuBxsAdvAx8Gnzf1r4X4B3AxuA1+bHJb9m5PzdVGW/Yjv+xXHyfmxFfd9OH8Q/Ar8Bjw1WZT3GfACeAX8N5CfqSmlZsAKsGqqCH8K3DXgbHCuuXYB3HeAd4HLpgrdarbi+EPgY+CT4HPg8ybMTcb9MtyvghtYut/A+b4pf95+ELgfw08Qx/3gADgInjDl0veehPtX8A/wsrn2KtzxDuogWNoJx38k/BzXKeI8Ee5qcBZYD9aZtDbg+AwT19uMX83F7JizCdcvBZdZ97c6/BMfMWmfzfTm88/95aLj+DDSvApcDXZ04uPfaen3TMHPLvi5BezuFPVtD4t/qUcfe3FvP7gb3Ouwo9T+H+gMy/UIjh8DfwBPm7T08d/M8WMBe1Sh3xEjXo+M2s+IESNGjBgxYsSI1wLrOsM1gRsi/P+TzV3/Zc1jvxgR/j8IM9Et1mEGcJeDFeA4cJq5/ia467uF/w1wzwdvB+80998LdwvYZs63w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AYvIo+Suri5TwvvZRdV1IQevQ1/8SA+UeH5eto7n/X1Oe86ptaafl8kPjcF7P7W93eD9d5n+oSvn7fFe7I/G9q1IBfylSR71N6fft94ZU18hOXKR+JqUO8f4+5dvLsmWlMQb/Vov+CUDlpTGUndeQlG3fdZWdRPoPgl3mmDlsLnaey/4X3tVuU+o6L3/Pym+qlLV/jk6rlBRd8394hZ6JdnuqIv2ykOh3pfq96Wkq/E8qu2xl88/tOJ4R3tfmpbGi3c5T859bzqr7MbsN03iI5itUNj5eaEKWqIX/KJCQ/iFWNZMmHXs8ovWk53JzFq5vPul6zDjLV36pX7bzvNzB0YlQOZephWtRS5T7eeSq8030R77/HvC1d7tN83Zt9yltrDdwSR0XxsZd5l+MvvvU1/M9jSnj+Nh6FPJbBld/w6XHXH5MZeXrOfS/65g9RTl1JCa8chzX2RZ9/3lXSh4/VqWfEBNq4b82Ytp6m+9Qqxir1jX+rfPdT1vvsWhM6bPbmON6E1LnPCZW7L0qqXswmtqf0MQelZj4myrzYtzvIYmURlvtqapyx+gzRfd0XPfahVSOquMoG+dibBdl46iyfdbV1qvUW9m8+KTudMvkzZe/pqTJ+pWTflX5zw1fVfox6ZTVc8hvHflOSb+OuG1JsZ0kufXAJf8D")),Oj=new r_.default(Bf(ih)),ce=class extends Js{static planFeatures(e){e.addStage(Vj),e.addStage(["locl","ccmp","nukt","akhn"]),e.addStage(h6),e.addStage(["rphf"],!1),e.addStage(Lj),e.addStage(h6),e.addStage(["pref"]),e.addStage($j),e.addStage(["rkrf","abvf","blwf","half","pstf","vatu","cjct"]),e.addStage(Uj),e.addStage(["abvs","blws","pres","psts","dist","abvm","blwm"])}static assignFeatures(e,t){for(let i=t.length-1;i>=0;i--){let r=t[i].codePoints[0];if(d6[r]){let n=d6[r].map(s=>{let a=e.font.glyphForCodePoint(s);return new ls(e.font,a.id,[s],t[i].features)});t.splice(i,1,...n)}}}};ar(ce,"zeroMarkWidths","BEFORE_GPOS");function f6(e){return zj.get(e.codePoints[0])}var Rj=class{constructor(e,t,i){this.category=e,this.syllableType=t,this.syllable=i}};function Vj(e,t){let i=0;for(let[r,n,s]of Oj.match(t.map(f6))){++i;for(let o=r;o<=n;o++)t[o].shaperInfo=new Rj(Mj[f6(t[o])],s[0],i);let a=t[r].shaperInfo.category==="R"?1:Math.min(3,n-r);for(let o=r;o<r+a;o++)t[o].features.rphf=!0}}function h6(e,t){for(let i of t)i.substituted=!1}function Lj(e,t){for(let i of t)i.substituted&&i.features.rphf&&(i.shaperInfo.category="R")}function $j(e,t){for(let i of t)i.substituted&&(i.shaperInfo.category="VPre")}function Uj(e,t){let i=e.glyphForCodePoint(9676).id;for(let r=0,n=p6(t,0);r<t.length;r=n,n=p6(t,r)){let s,a,o=t[r].shaperInfo,l=o.syllableType;if(!(l!=="virama_terminated_cluster"&&l!=="standard_cluster"&&l!=="broken_cluster")){if(l==="broken_cluster"&&i){let u=new ls(e,i,[9676]);for(u.shaperInfo=o,s=r;s<n&&t[s].shaperInfo.category==="R";s++);t.splice(++s,0,u),n++}if(o.category==="R"&&n-r>1){for(s=r+1;s<n;s++)if(o=t[s].shaperInfo,m6(o)||sh(t[s])){sh(t[s])&&s--,t.splice(r,0,...t.splice(r+1,s-r),t[s]);break}}for(s=r,a=n;s<n;s++)o=t[s].shaperInfo,m6(o)||sh(t[s])?a=sh(t[s])?s+1:s:(o.category==="VPre"||o.category==="VMPre")&&a<s&&t.splice(a,1,t[s],...t.splice(a,s-a))}}}function p6(e,t){if(t>=e.length)return t;let i=e[t].shaperInfo.syllable;for(;++t<e.length&&e[t].shaperInfo.syllable===i;);return t}function sh(e){return e.shaperInfo.category==="H"&&!e.isLigated}function m6(e){return e.category==="B"||e.category==="GB"}var Zj={arab:ta,mong:ta,syrc:ta,"nko ":ta,phag:ta,mand:ta,mani:ta,phlp:ta,hang:e6,bng2:ci,beng:ci,dev2:ci,deva:ci,gjr2:ci,gujr:ci,guru:ci,gur2:ci,knda:ci,knd2:ci,mlm2:ci,mlym:ci,ory2:ci,orya:ci,taml:ci,tml2:ci,telu:ci,tel2:ci,khmr:ci,bali:ce,batk:ce,brah:ce,bugi:ce,buhd:ce,cakm:ce,cham:ce,dupl:ce,egyp:ce,gran:ce,hano:ce,java:ce,kthi:ce,kali:ce,khar:ce,khoj:ce,sind:ce,lepc:ce,limb:ce,mahj:ce,mtei:ce,modi:ce,hmng:ce,rjng:ce,saur:ce,shrd:ce,sidd:ce,sinh:ci,sund:ce,sylo:ce,tglg:ce,tagb:ce,tale:ce,lana:ce,tavt:ce,takr:ce,tibt:ce,tfng:ce,tirh:ce,latn:Js,DFLT:Js};function jj(e){Array.isArray(e)||(e=[e]);for(let t of e){let i=Zj[t];if(i)return i}return Js}var Wj=class extends Yf{applyLookup(e,t){switch(e){case 1:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;let n=this.glyphIterator.cur;switch(t.version){case 1:n.id=n.id+t.deltaGlyphID&65535;break;case 2:n.id=t.substitute.get(r);break}return!0}case 2:{let r=this.coverageIndex(t.coverage);if(r!==-1){let n=t.sequences.get(r);if(n.length===0)return this.glyphs.splice(this.glyphIterator.index,1),!0;this.glyphIterator.cur.id=n[0],this.glyphIterator.cur.ligatureComponent=0;let s=this.glyphIterator.cur.features,a=this.glyphIterator.cur,o=n.slice(1).map((l,u)=>{let c=new ls(this.font,l,void 0,s);return c.shaperInfo=a.shaperInfo,c.isLigated=a.isLigated,c.ligatureComponent=u+1,c.substituted=!0,c.isMultiplied=!0,c});return this.glyphs.splice(this.glyphIterator.index+1,0,...o),!0}return!1}case 3:{let r=this.coverageIndex(t.coverage);if(r!==-1){let n=0;return this.glyphIterator.cur.id=t.alternateSet.get(r)[n],!0}return!1}case 4:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;for(let n of t.ligatureSets.get(r)){let s=this.sequenceMatchIndices(1,n.components);if(!s)continue;let a=this.glyphIterator.cur,o=a.codePoints.slice();for(let p of s)o.push(...this.glyphs[p].codePoints);let l=new ls(this.font,n.glyph,o,a.features);l.shaperInfo=a.shaperInfo,l.isLigated=!0,l.substituted=!0;let u=a.isMark;for(let p=0;p<s.length&&u;p++)u=this.glyphs[s[p]].isMark;l.ligatureID=u?null:this.ligatureID++;let c=a.ligatureID,d=a.codePoints.length,f=d,h=this.glyphIterator.index+1;for(let p of s){if(u)h=p;else for(;h<p;){var i=f-d+Math.min(this.glyphs[h].ligatureComponent||1,d);this.glyphs[h].ligatureID=l.ligatureID,this.glyphs[h].ligatureComponent=i,h++}c=this.glyphs[h].ligatureID,d=this.glyphs[h].codePoints.length,f+=d,h++}if(c&&!u)for(let p=h;p<this.glyphs.length&&this.glyphs[p].ligatureID===c;p++){var i=f-d+Math.min(this.glyphs[p].ligatureComponent||1,d);this.glyphs[p].ligatureComponent=i}for(let p=s.length-1;p>=0;p--)this.glyphs.splice(s[p],1);return this.glyphs[this.glyphIterator.index]=l,!0}return!1}case 5:return this.applyContext(t);case 6:return this.applyChainingContext(t);case 7:return this.applyLookup(t.lookupType,t.extension);default:throw new Error(`GSUB lookupType ${e} is not supported`)}}},Gj=class extends Yf{applyPositionValue(e,t){let i=this.positions[this.glyphIterator.peekIndex(e)];t.xAdvance!=null&&(i.xAdvance+=t.xAdvance),t.yAdvance!=null&&(i.yAdvance+=t.yAdvance),t.xPlacement!=null&&(i.xOffset+=t.xPlacement),t.yPlacement!=null&&(i.yOffset+=t.yPlacement);let r=this.font._variationProcessor,n=this.font.GDEF&&this.font.GDEF.itemVariationStore;r&&n&&(t.xPlaDevice&&(i.xOffset+=r.getDelta(n,t.xPlaDevice.a,t.xPlaDevice.b)),t.yPlaDevice&&(i.yOffset+=r.getDelta(n,t.yPlaDevice.a,t.yPlaDevice.b)),t.xAdvDevice&&(i.xAdvance+=r.getDelta(n,t.xAdvDevice.a,t.xAdvDevice.b)),t.yAdvDevice&&(i.yAdvance+=r.getDelta(n,t.yAdvDevice.a,t.yAdvDevice.b)))}applyLookup(e,t){switch(e){case 1:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;switch(t.version){case 1:this.applyPositionValue(0,t.value);break;case 2:this.applyPositionValue(0,t.values.get(r));break}return!0}case 2:{let r=this.glyphIterator.peek();if(!r)return!1;let n=this.coverageIndex(t.coverage);if(n===-1)return!1;switch(t.version){case 1:let s=t.pairSets.get(n);for(let l of s)if(l.secondGlyph===r.id)return this.applyPositionValue(0,l.value1),this.applyPositionValue(1,l.value2),!0;return!1;case 2:let a=this.getClassID(this.glyphIterator.cur.id,t.classDef1),o=this.getClassID(r.id,t.classDef2);if(a===-1||o===-1)return!1;var i=t.classRecords.get(a).get(o);return this.applyPositionValue(0,i.value1),this.applyPositionValue(1,i.value2),!0}}case 3:{let r=this.glyphIterator.peekIndex(),n=this.glyphs[r];if(!n)return!1;let s=t.entryExitRecords[this.coverageIndex(t.coverage)];if(!s||!s.exitAnchor)return!1;let a=t.entryExitRecords[this.coverageIndex(t.coverage,n.id)];if(!a||!a.entryAnchor)return!1;let o=this.getAnchor(a.entryAnchor),l=this.getAnchor(s.exitAnchor),u=this.positions[this.glyphIterator.index],c=this.positions[r],d;switch(this.direction){case"ltr":u.xAdvance=l.x+u.xOffset,d=o.x+c.xOffset,c.xAdvance-=d,c.xOffset-=d;break;case"rtl":d=l.x+u.xOffset,u.xAdvance-=d,u.xOffset-=d,c.xAdvance=o.x+c.xOffset;break}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=r,u.yOffset=o.y-l.y):(n.cursiveAttachment=this.glyphIterator.index,u.yOffset=l.y-o.y),!0}case 4:{let r=this.coverageIndex(t.markCoverage);if(r===-1)return!1;let n=this.glyphIterator.index;for(;--n>=0&&(this.glyphs[n].isMark||this.glyphs[n].ligatureComponent>0););if(n<0)return!1;let s=this.coverageIndex(t.baseCoverage,this.glyphs[n].id);if(s===-1)return!1;let a=t.markArray[r],o=t.baseArray[s][a.class];return this.applyAnchor(a,o,n),!0}case 5:{let r=this.coverageIndex(t.markCoverage);if(r===-1)return!1;let n=this.glyphIterator.index;for(;--n>=0&&this.glyphs[n].isMark;);if(n<0)return!1;let s=this.coverageIndex(t.ligatureCoverage,this.glyphs[n].id);if(s===-1)return!1;let a=t.ligatureArray[s],o=this.glyphIterator.cur,l=this.glyphs[n],u=l.ligatureID&&l.ligatureID===o.ligatureID&&o.ligatureComponent>0?Math.min(o.ligatureComponent,l.codePoints.length)-1:l.codePoints.length-1,c=t.markArray[r],d=a[u][c.class];return this.applyAnchor(c,d,n),!0}case 6:{let r=this.coverageIndex(t.mark1Coverage);if(r===-1)return!1;let n=this.glyphIterator.peekIndex(-1),s=this.glyphs[n];if(!s||!s.isMark)return!1;let a=this.glyphIterator.cur,o=!1;if(a.ligatureID===s.ligatureID?a.ligatureID?a.ligatureComponent===s.ligatureComponent&&(o=!0):o=!0:(a.ligatureID&&!a.ligatureComponent||s.ligatureID&&!s.ligatureComponent)&&(o=!0),!o)return!1;let l=this.coverageIndex(t.mark2Coverage,s.id);if(l===-1)return!1;let u=t.mark1Array[r],c=t.mark2Array[l][u.class];return this.applyAnchor(u,c,n),!0}case 7:return this.applyContext(t);case 8:return this.applyChainingContext(t);case 9:return this.applyLookup(t.lookupType,t.extension);default:throw new Error(`Unsupported GPOS table: ${e}`)}}applyAnchor(e,t,i){let r=this.getAnchor(t),n=this.getAnchor(e.markAnchor);this.positions[i];let s=this.positions[this.glyphIterator.index];s.xOffset=r.x-n.x,s.yOffset=r.y-n.y,this.glyphIterator.cur.markAttachment=i}getAnchor(e){let t=e.xCoordinate,i=e.yCoordinate,r=this.font._variationProcessor,n=this.font.GDEF&&this.font.GDEF.itemVariationStore;return r&&n&&(e.xDeviceTable&&(t+=r.getDelta(n,e.xDeviceTable.a,e.xDeviceTable.b)),e.yDeviceTable&&(i+=r.getDelta(n,e.yDeviceTable.a,e.yDeviceTable.b))),{x:t,y:i}}applyFeatures(e,t,i){super.applyFeatures(e,t,i);for(var r=0;r<this.glyphs.length;r++)this.fixCursiveAttachment(r);this.fixMarkAttachment()}fixCursiveAttachment(e){let t=this.glyphs[e];if(t.cursiveAttachment!=null){let i=t.cursiveAttachment;t.cursiveAttachment=null,this.fixCursiveAttachment(i),this.positions[e].yOffset+=this.positions[i].yOffset}}fixMarkAttachment(){for(let e=0;e<this.glyphs.length;e++){let t=this.glyphs[e];if(t.markAttachment!=null){let i=t.markAttachment;if(this.positions[e].xOffset+=this.positions[i].xOffset,this.positions[e].yOffset+=this.positions[i].yOffset,this.direction==="ltr")for(let r=i;r<e;r++)this.positions[e].xOffset-=this.positions[r].xAdvance,this.positions[e].yOffset-=this.positions[r].yAdvance;else for(let r=i+1;r<e+1;r++)this.positions[e].xOffset+=this.positions[r].xAdvance,this.positions[e].yOffset+=this.positions[r].yAdvance}}}},Hj=class{setup(e){this.glyphInfos=e.glyphs.map(i=>new ls(this.font,i.id,[...i.codePoints]));let t=null;this.GPOSProcessor&&(t=this.GPOSProcessor.selectScript(e.script,e.language,e.direction)),this.GSUBProcessor&&(t=this.GSUBProcessor.selectScript(e.script,e.language,e.direction)),this.shaper=jj(t),this.plan=new HZ(this.font,t,e.direction),this.shaper.plan(this.plan,this.glyphInfos,e.features);for(let i in this.plan.allFeatures)e.features[i]=!0}substitute(e){this.GSUBProcessor&&(this.plan.process(this.GSUBProcessor,this.glyphInfos),e.glyphs=this.glyphInfos.map(t=>this.font.getGlyph(t.id,t.codePoints)))}position(e){return this.shaper.zeroMarkWidths==="BEFORE_GPOS"&&this.zeroMarkAdvances(e.positions),this.GPOSProcessor&&this.plan.process(this.GPOSProcessor,this.glyphInfos,e.positions),this.shaper.zeroMarkWidths==="AFTER_GPOS"&&this.zeroMarkAdvances(e.positions),e.direction==="rtl"&&(e.glyphs.reverse(),e.positions.reverse()),this.GPOSProcessor&&this.GPOSProcessor.features}zeroMarkAdvances(e){for(let t=0;t<this.glyphInfos.length;t++)this.glyphInfos[t].isMark&&(e[t].xAdvance=0,e[t].yAdvance=0)}cleanup(){this.glyphInfos=null,this.plan=null,this.shaper=null}getAvailableFeatures(e,t){let i=[];return this.GSUBProcessor&&(this.GSUBProcessor.selectScript(e,t),i.push(...Object.keys(this.GSUBProcessor.features))),this.GPOSProcessor&&(this.GPOSProcessor.selectScript(e,t),i.push(...Object.keys(this.GPOSProcessor.features))),i}constructor(e){this.font=e,this.glyphInfos=null,this.plan=null,this.GSUBProcessor=null,this.GPOSProcessor=null,this.fallbackPosition=!0,e.GSUB&&(this.GSUBProcessor=new Wj(e,e.GSUB)),e.GPOS&&(this.GPOSProcessor=new Gj(e,e.GPOS))}},qj=class{layout(e,t,i,r,n){if(typeof t=="string"&&(n=r,r=i,i=t,t=[]),typeof e=="string"){i==null&&(i=kZ(e));var s=this.font.glyphsForString(e)}else{if(i==null){let l=[];for(let u of e)l.push(...u.codePoints);i=SZ(l)}var s=e}let a=new EZ(s,t,i,r,n);return s.length===0?(a.positions=[],a):(this.engine&&this.engine.setup&&this.engine.setup(a),this.substitute(a),this.position(a),this.hideDefaultIgnorables(a.glyphs,a.positions),this.engine&&this.engine.cleanup&&this.engine.cleanup(),a)}substitute(e){this.engine&&this.engine.substitute&&this.engine.substitute(e)}position(e){e.positions=e.glyphs.map(i=>new AZ(i.advanceWidth));let t=null;this.engine&&this.engine.position&&(t=this.engine.position(e)),!t&&(!this.engine||this.engine.fallbackPosition)&&(this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new xZ(this.font)),this.unicodeLayoutEngine.positionGlyphs(e.glyphs,e.positions)),(!t||!t.kern)&&e.features.kern!==!1&&this.font.kern&&(this.kernProcessor||(this.kernProcessor=new wZ(this.font)),this.kernProcessor.process(e.glyphs,e.positions),e.features.kern=!0)}hideDefaultIgnorables(e,t){let i=this.font.glyphForCodePoint(32);for(let r=0;r<e.length;r++)this.isDefaultIgnorable(e[r].codePoints[0])&&(e[r]=i,t[r].xAdvance=0,t[r].yAdvance=0)}isDefaultIgnorable(e){let t=e>>16;if(t===0)switch(e>>8){case 0:return e===173;case 3:return e===847;case 6:return e===1564;case 23:return 6068<=e&&e<=6069;case 24:return 6155<=e&&e<=6158;case 32:return 8203<=e&&e<=8207||8234<=e&&e<=8238||8288<=e&&e<=8303;case 254:return 65024<=e&&e<=65039||e===65279;case 255:return 65520<=e&&e<=65528;default:return!1}else switch(t){case 1:return 113824<=e&&e<=113827||119155<=e&&e<=119162;case 14:return 917504<=e&&e<=921599;default:return!1}}getAvailableFeatures(e,t){let i=[];return this.engine&&i.push(...this.engine.getAvailableFeatures(e,t)),this.font.kern&&i.indexOf("kern")===-1&&i.push("kern"),i}stringsForGlyph(e){let t=new Set,i=this.font._cmapProcessor.codePointsForGlyph(e);for(let r of i)t.add(String.fromCodePoint(r));if(this.engine&&this.engine.stringsForGlyph)for(let r of this.engine.stringsForGlyph(e))t.add(r);return Array.from(t)}constructor(e){this.font=e,this.unicodeLayoutEngine=null,this.kernProcessor=null,this.font.morx?this.engine=new GZ(this.font):(this.font.GSUB||this.font.GPOS)&&(this.engine=new Hj(this.font))}},Yj={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},ah=class QI{toFunction(){return t=>{this.commands.forEach(i=>t[i.command].apply(t,i.args))}}toSVG(){return this.commands.map(i=>{let r=i.args.map(n=>Math.round(n*100)/100);return`${Yj[i.command]}${r.join(" ")}`}).join("")}get cbox(){if(!this._cbox){let t=new Wo;for(let i of this.commands)for(let r=0;r<i.args.length;r+=2)t.addPoint(i.args[r],i.args[r+1]);this._cbox=Object.freeze(t)}return this._cbox}get bbox(){if(this._bbox)return this._bbox;let t=new Wo,i=0,r=0,n=C=>Math.pow(1-C,3)*h[v]+3*Math.pow(1-C,2)*C*p[v]+3*(1-C)*Math.pow(C,2)*g[v]+Math.pow(C,3)*y[v];for(let C of this.commands)switch(C.command){case"moveTo":case"lineTo":let[x,S]=C.args;t.addPoint(x,S),i=x,r=S;break;case"quadraticCurveTo":case"bezierCurveTo":if(C.command==="quadraticCurveTo")var[s,a,d,f]=C.args,o=i+2/3*(s-i),l=r+2/3*(a-r),u=d+2/3*(s-d),c=f+2/3*(a-f);else var[o,l,u,c,d,f]=C.args;t.addPoint(d,f);for(var h=[i,r],p=[o,l],g=[u,c],y=[d,f],v=0;v<=1;v++){let _=6*h[v]-12*p[v]+6*g[v],k=-3*h[v]+9*p[v]-9*g[v]+3*y[v];if(C=3*p[v]-3*h[v],k===0){if(_===0)continue;let I=-C/_;0<I&&I<1&&(v===0?t.addPoint(n(I),t.maxY):v===1&&t.addPoint(t.maxX,n(I)));continue}let F=Math.pow(_,2)-4*C*k;if(F<0)continue;let T=(-_+Math.sqrt(F))/(2*k);0<T&&T<1&&(v===0?t.addPoint(n(T),t.maxY):v===1&&t.addPoint(t.maxX,n(T)));let P=(-_-Math.sqrt(F))/(2*k);0<P&&P<1&&(v===0?t.addPoint(n(P),t.maxY):v===1&&t.addPoint(t.maxX,n(P)))}i=d,r=f;break}return this._bbox=Object.freeze(t)}mapPoints(t){let i=new QI;for(let r of this.commands){let n=[];for(let s=0;s<r.args.length;s+=2){let[a,o]=t(r.args[s],r.args[s+1]);n.push(a,o)}i[r.command](...n)}return i}transform(t,i,r,n,s,a){return this.mapPoints((o,l)=>{const u=t*o+r*l+s,c=i*o+n*l+a;return[u,c]})}translate(t,i){return this.transform(1,0,0,1,t,i)}rotate(t){let i=Math.cos(t),r=Math.sin(t);return this.transform(i,r,-r,i,0,0)}scale(t,i=t){return this.transform(t,0,0,i,0,0)}constructor(){this.commands=[],this._bbox=null,this._cbox=null}};for(let e of["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"])ah.prototype[e]=function(...t){return this._bbox=this._cbox=null,this.commands.push({command:e,args:t}),this};var Ou=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"],In=class{_getPath(){return new ah}_getCBox(){return this.path.cbox}_getBBox(){return this.path.bbox}_getTableMetrics(e){if(this.id<e.metrics.length)return e.metrics.get(this.id);let t=e.metrics.get(e.metrics.length-1);return{advance:t?t.advance:0,bearing:e.bearings.get(this.id-e.metrics.length)||0}}_getMetrics(e){if(this._metrics)return this._metrics;let{advance:t,bearing:i}=this._getTableMetrics(this._font.hmtx);if(this._font.vmtx)var{advance:r,bearing:n}=this._getTableMetrics(this._font.vmtx);else{let s;if((typeof e>"u"||e===null)&&({cbox:e}=this),(s=this._font["OS/2"])&&s.version>0)var r=Math.abs(s.typoAscender-s.typoDescender),n=s.typoAscender-e.maxY;else{let{hhea:a}=this._font;var r=Math.abs(a.ascent-a.descent),n=a.ascent-e.maxY}}return this._font._variationProcessor&&this._font.HVAR&&(t+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:t,advanceHeight:r,leftBearing:i,topBearing:n}}get cbox(){return this._getCBox()}get bbox(){return this._getBBox()}get path(){return this._getPath()}getScaledPath(e){let t=1/this._font.unitsPerEm*e;return this.path.scale(t)}get advanceWidth(){return this._getMetrics().advanceWidth}get advanceHeight(){return this._getMetrics().advanceHeight}get ligatureCaretPositions(){}_getName(){let{post:e}=this._font;if(!e)return null;switch(e.version){case 1:return Ou[this.id];case 2:let t=e.glyphNameIndex[this.id];return t<Ou.length?Ou[t]:e.names[t-Ou.length];case 2.5:return Ou[this.id+e.offsets[this.id]];case 4:return String.fromCharCode(e.map[this.id])}}get name(){return this._getName()}render(e,t){e.save();let i=1/this._font.head.unitsPerEm*t;e.scale(i,i),this.path.toFunction()(e),e.fill(),e.restore()}constructor(e,t,i){this.id=e,this.codePoints=t,this._font=i,this.isMark=this.codePoints.length>0&&this.codePoints.every(i_),this.isLigature=this.codePoints.length>1}};Pi([Fi],In.prototype,"cbox",null),Pi([Fi],In.prototype,"bbox",null),Pi([Fi],In.prototype,"path",null),Pi([Fi],In.prototype,"advanceWidth",null),Pi([Fi],In.prototype,"advanceHeight",null),Pi([Fi],In.prototype,"name",null);var g6=new W({numberOfContours:st,xMin:st,yMin:st,xMax:st,yMax:st}),Kj=1,Xj=2,Jj=4,Qj=8,tW=16,eW=32,iW=1,rW=8,y6=32,nW=64,sW=128,aW=256,fs=class t8{copy(){return new t8(this.onCurve,this.endContour,this.x,this.y)}constructor(t,i,r=0,n=0){this.onCurve=t,this.endContour=i,this.x=r,this.y=n}},oW=class{constructor(e,t,i){this.glyphID=e,this.dx=t,this.dy=i,this.pos=0,this.scaleX=this.scaleY=1,this.scale01=this.scale10=0}},oh=class extends In{_getCBox(e){if(this._font._variationProcessor&&!e)return this.path.cbox;let t=this._font._getTableStream("glyf");t.pos+=this._font.loca.offsets[this.id];let i=g6.decode(t),r=new Wo(i.xMin,i.yMin,i.xMax,i.yMax);return Object.freeze(r)}_parseGlyphCoord(e,t,i,r){if(i){var n=e.readUInt8();r||(n=-n),n+=t}else if(r)var n=t;else var n=t+e.readInt16BE();return n}_decode(){let e=this._font.loca.offsets[this.id],t=this._font.loca.offsets[this.id+1];if(e===t)return null;let i=this._font._getTableStream("glyf");i.pos+=e;let r=i.pos,n=g6.decode(i);return n.numberOfContours>0?this._decodeSimple(n,i):n.numberOfContours<0&&this._decodeComposite(n,i,r),n}_decodeSimple(e,t){e.points=[];let i=new V(w,e.numberOfContours).decode(t);e.instructions=new V(vt,w).decode(t);let r=[],n=i[i.length-1]+1;for(;r.length<n;){var s=t.readUInt8();if(r.push(s),s&Qj){let u=t.readUInt8();for(let c=0;c<u;c++)r.push(s)}}for(var a=0;a<r.length;a++){var s=r[a];let c=new fs(!!(s&Kj),i.indexOf(a)>=0,0,0);e.points.push(c)}let o=0;for(var a=0;a<r.length;a++){var s=r[a];e.points[a].x=o=this._parseGlyphCoord(t,o,s&Xj,s&tW)}let l=0;for(var a=0;a<r.length;a++){var s=r[a];e.points[a].y=l=this._parseGlyphCoord(t,l,s&Jj,s&eW)}if(this._font._variationProcessor){let u=e.points.slice();u.push(...this._getPhantomPoints(e)),this._font._variationProcessor.transformPoints(this.id,u),e.phantomPoints=u.slice(-4)}}_decodeComposite(e,t,i=0){e.components=[];let r=!1,n=y6;for(;n&y6;){n=t.readUInt16BE();let l=t.pos-i,u=t.readUInt16BE();if(r||(r=(n&aW)!==0),n&iW)var s=t.readInt16BE(),a=t.readInt16BE();else var s=t.readInt8(),a=t.readInt8();var o=new oW(u,s,a);o.pos=l,n&rW?o.scaleX=o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824:n&nW?(o.scaleX=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824):n&sW&&(o.scaleX=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scale01=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scale10=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824),e.components.push(o)}if(this._font._variationProcessor){let l=[];for(let u=0;u<e.components.length;u++){var o=e.components[u];l.push(new fs(!0,!0,o.dx,o.dy))}l.push(...this._getPhantomPoints(e)),this._font._variationProcessor.transformPoints(this.id,l),e.phantomPoints=l.splice(-4,4);for(let u=0;u<l.length;u++){let c=l[u];e.components[u].dx=c.x,e.components[u].dy=c.y}}return r}_getPhantomPoints(e){let t=this._getCBox(!0);this._metrics==null&&(this._metrics=In.prototype._getMetrics.call(this,t));let{advanceWidth:i,advanceHeight:r,leftBearing:n,topBearing:s}=this._metrics;return[new fs(!1,!0,e.xMin-n,0),new fs(!1,!0,e.xMin-n+i,0),new fs(!1,!0,0,e.yMax+s),new fs(!1,!0,0,e.yMax+s+r)]}_getContours(){let e=this._decode();if(!e)return[];let t=[];if(e.numberOfContours<0)for(let s of e.components){let a=this._font.getGlyph(s.glyphID)._getContours();for(let o=0;o<a.length;o++){let l=a[o];for(let u=0;u<l.length;u++){let c=l[u],d=c.x*s.scaleX+c.y*s.scale01+s.dx,f=c.y*s.scaleY+c.x*s.scale10+s.dy;t.push(new fs(c.onCurve,c.endContour,d,f))}}}else t=e.points||[];e.phantomPoints&&!this._font.directory.tables.HVAR&&(this._metrics.advanceWidth=e.phantomPoints[1].x-e.phantomPoints[0].x,this._metrics.advanceHeight=e.phantomPoints[3].y-e.phantomPoints[2].y,this._metrics.leftBearing=e.xMin-e.phantomPoints[0].x,this._metrics.topBearing=e.phantomPoints[2].y-e.yMax);let i=[],r=[];for(let s=0;s<t.length;s++){var n=t[s];r.push(n),n.endContour&&(i.push(r),r=[])}return i}_getMetrics(){if(this._metrics)return this._metrics;let e=this._getCBox(!0);return super._getMetrics(e),this._font._variationProcessor&&!this._font.HVAR&&this.path,this._metrics}_getPath(){let e=this._getContours(),t=new ah;for(let r=0;r<e.length;r++){let n=e[r],s=n[0],a=n[n.length-1],o=0;if(s.onCurve){var i=null;o=1}else{a.onCurve?s=a:s=new fs(!1,!1,(s.x+a.x)/2,(s.y+a.y)/2);var i=s}t.moveTo(s.x,s.y);for(let l=o;l<n.length;l++){let u=n[l],c=l===0?s:n[l-1];if(c.onCurve&&u.onCurve)t.lineTo(u.x,u.y);else if(c.onCurve&&!u.onCurve)var i=u;else if(!c.onCurve&&!u.onCurve){let f=(c.x+u.x)/2,h=(c.y+u.y)/2;t.quadraticCurveTo(c.x,c.y,f,h);var i=u}else if(!c.onCurve&&u.onCurve){t.quadraticCurveTo(i.x,i.y,u.x,u.y);var i=null}else throw new Error("Unknown TTF path state")}i&&t.quadraticCurveTo(i.x,i.y,s.x,s.y),t.closePath()}return t}constructor(...e){super(...e),ar(this,"type","TTF")}},lW=class extends In{_getName(){return this._font.CFF2?super._getName():this._font["CFF "].getGlyphName(this.id)}bias(e){return e.length<1240?107:e.length<33900?1131:32768}_getPath(){let e=this._font.CFF2||this._font["CFF "],{stream:t}=e,i=e.topDict.CharStrings[this.id],r=i.offset+i.length;t.pos=i.offset;let n=new ah,s=[],a=[],o=null,l=0,u=0,c=0,d,f,h=!1;this._usedGsubrs=d={},this._usedSubrs=f={};let p=e.globalSubrIndex||[],g=this.bias(p),y=e.privateDictForGlyph(this.id)||{},v=y.Subrs||[],C=this.bias(v),x=e.topDict.vstore&&e.topDict.vstore.itemVariationStore,S=y.vsindex,_=this._font._variationProcessor;function k(){o==null&&(o=s.shift()+y.nominalWidthX)}function F(){return s.length%2!==0&&k(),l+=s.length>>1,s.length=0}function T(I,O){h&&n.closePath(),n.moveTo(I,O),h=!0}let P=function(){for(;t.pos<r;){let z=t.readUInt8();if(z<32){let Q,G,dt,ft,mt,H,tt,nt,Ct,Rt,ee,_e,Ae,ye,gi,Ee;switch(z){case 1:case 3:case 18:case 23:F();break;case 4:s.length>1&&k(),c+=s.shift(),T(u,c);break;case 5:for(;s.length>=2;)u+=s.shift(),c+=s.shift(),n.lineTo(u,c);break;case 6:case 7:for(dt=z===6;s.length>=1;)dt?u+=s.shift():c+=s.shift(),n.lineTo(u,c),dt=!dt;break;case 8:for(;s.length>0;)ft=u+s.shift(),mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),u=H+s.shift(),c=tt+s.shift(),n.bezierCurveTo(ft,mt,H,tt,u,c);break;case 10:if(Q=s.pop()+C,G=v[Q],G){f[Q]=!0;let K=t.pos,q=r;t.pos=G.offset,r=G.offset+G.length,P(),t.pos=K,r=q}break;case 11:if(e.version>=2)break;return;case 14:if(e.version>=2)break;s.length>0&&k(),h&&(n.closePath(),h=!1);break;case 15:if(e.version<2)throw new Error("vsindex operator not supported in CFF v1");S=s.pop();break;case 16:{if(e.version<2)throw new Error("blend operator not supported in CFF v1");if(!_)throw new Error("blend operator in non-variation font");let K=_.getBlendVector(x,S),q=s.pop(),ot=q*K.length,Y=s.length-ot,St=Y-q;for(let Bt=0;Bt<q;Bt++){let Et=s[St+Bt];for(let Nt=0;Nt<K.length;Nt++)Et+=K[Nt]*s[Y++];s[St+Bt]=Et}for(;ot--;)s.pop();break}case 19:case 20:F(),t.pos+=l+7>>3;break;case 21:s.length>2&&k(),u+=s.shift(),c+=s.shift(),T(u,c);break;case 22:s.length>1&&k(),u+=s.shift(),T(u,c);break;case 24:for(;s.length>=8;)ft=u+s.shift(),mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),u=H+s.shift(),c=tt+s.shift(),n.bezierCurveTo(ft,mt,H,tt,u,c);u+=s.shift(),c+=s.shift(),n.lineTo(u,c);break;case 25:for(;s.length>=8;)u+=s.shift(),c+=s.shift(),n.lineTo(u,c);ft=u+s.shift(),mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),u=H+s.shift(),c=tt+s.shift(),n.bezierCurveTo(ft,mt,H,tt,u,c);break;case 26:for(s.length%2&&(u+=s.shift());s.length>=4;)ft=u,mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),u=H,c=tt+s.shift(),n.bezierCurveTo(ft,mt,H,tt,u,c);break;case 27:for(s.length%2&&(c+=s.shift());s.length>=4;)ft=u+s.shift(),mt=c,H=ft+s.shift(),tt=mt+s.shift(),u=H+s.shift(),c=tt,n.bezierCurveTo(ft,mt,H,tt,u,c);break;case 28:s.push(t.readInt16BE());break;case 29:if(Q=s.pop()+g,G=p[Q],G){d[Q]=!0;let K=t.pos,q=r;t.pos=G.offset,r=G.offset+G.length,P(),t.pos=K,r=q}break;case 30:case 31:for(dt=z===31;s.length>=4;)dt?(ft=u+s.shift(),mt=c,H=ft+s.shift(),tt=mt+s.shift(),c=tt+s.shift(),u=H+(s.length===1?s.shift():0)):(ft=u,mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),u=H+s.shift(),c=tt+(s.length===1?s.shift():0)),n.bezierCurveTo(ft,mt,H,tt,u,c),dt=!dt;break;case 12:switch(z=t.readUInt8(),z){case 3:let K=s.pop(),q=s.pop();s.push(K&&q?1:0);break;case 4:K=s.pop(),q=s.pop(),s.push(K||q?1:0);break;case 5:K=s.pop(),s.push(K?0:1);break;case 9:K=s.pop(),s.push(Math.abs(K));break;case 10:K=s.pop(),q=s.pop(),s.push(K+q);break;case 11:K=s.pop(),q=s.pop(),s.push(K-q);break;case 12:K=s.pop(),q=s.pop(),s.push(K/q);break;case 14:K=s.pop(),s.push(-K);break;case 15:K=s.pop(),q=s.pop(),s.push(K===q?1:0);break;case 18:s.pop();break;case 20:let ot=s.pop(),Y=s.pop();a[Y]=ot;break;case 21:Y=s.pop(),s.push(a[Y]||0);break;case 22:let St=s.pop(),Bt=s.pop(),Et=s.pop(),Nt=s.pop();s.push(Et<=Nt?St:Bt);break;case 23:s.push(Math.random());break;case 24:K=s.pop(),q=s.pop(),s.push(K*q);break;case 26:K=s.pop(),s.push(Math.sqrt(K));break;case 27:K=s.pop(),s.push(K,K);break;case 28:K=s.pop(),q=s.pop(),s.push(q,K);break;case 29:Y=s.pop(),Y<0?Y=0:Y>s.length-1&&(Y=s.length-1),s.push(s[Y]);break;case 30:let jt=s.pop(),rt=s.pop();if(rt>=0)for(;rt>0;){var I=s[jt-1];for(let ut=jt-2;ut>=0;ut--)s[ut+1]=s[ut];s[0]=I,rt--}else for(;rt<0;){var I=s[0];for(let oe=0;oe<=jt;oe++)s[oe]=s[oe+1];s[jt-1]=I,rt++}break;case 34:ft=u+s.shift(),mt=c,H=ft+s.shift(),tt=mt+s.shift(),nt=H+s.shift(),Ct=tt,Rt=nt+s.shift(),ee=Ct,_e=Rt+s.shift(),Ae=ee,ye=_e+s.shift(),gi=Ae,u=ye,c=gi,n.bezierCurveTo(ft,mt,H,tt,nt,Ct),n.bezierCurveTo(Rt,ee,_e,Ae,ye,gi);break;case 35:Ee=[];for(let ut=0;ut<=5;ut++)u+=s.shift(),c+=s.shift(),Ee.push(u,c);n.bezierCurveTo(...Ee.slice(0,6)),n.bezierCurveTo(...Ee.slice(6)),s.shift();break;case 36:ft=u+s.shift(),mt=c+s.shift(),H=ft+s.shift(),tt=mt+s.shift(),nt=H+s.shift(),Ct=tt,Rt=nt+s.shift(),ee=Ct,_e=Rt+s.shift(),Ae=ee+s.shift(),ye=_e+s.shift(),gi=Ae,u=ye,c=gi,n.bezierCurveTo(ft,mt,H,tt,nt,Ct),n.bezierCurveTo(Rt,ee,_e,Ae,ye,gi);break;case 37:let ct=u,Tt=c;Ee=[];for(let ut=0;ut<=4;ut++)u+=s.shift(),c+=s.shift(),Ee.push(u,c);Math.abs(u-ct)>Math.abs(c-Tt)?(u+=s.shift(),c=Tt):(u=ct,c+=s.shift()),Ee.push(u,c),n.bezierCurveTo(...Ee.slice(0,6)),n.bezierCurveTo(...Ee.slice(6));break;default:throw new Error(`Unknown op: 12 ${z}`)}break;default:throw new Error(`Unknown op: ${z}`)}}else if(z<247)s.push(z-139);else if(z<251){var O=t.readUInt8();s.push((z-247)*256+O+108)}else if(z<255){var O=t.readUInt8();s.push(-(z-251)*256-O-108)}else s.push(t.readInt32BE()/65536)}};return P(),h&&n.closePath(),n}constructor(...e){super(...e),ar(this,"type","CFF")}},uW=new W({originX:w,originY:w,type:new Fe(4),data:new _n(e=>e.parent.buflen-e._currentOffset)}),cW=class extends oh{getImageForSize(e){for(let s=0;s<this._font.sbix.imageTables.length;s++){var t=this._font.sbix.imageTables[s];if(t.ppem>=e)break}let i=t.imageOffsets,r=i[this.id],n=i[this.id+1];return r===n?null:(this._font.stream.pos=r,uW.decode(this._font.stream,{buflen:n-r}))}render(e,t){let i=this.getImageForSize(t);if(i!=null){let r=t/this._font.unitsPerEm;e.image(i.data,{height:t,x:i.originX,y:(this.bbox.minY-i.originY)*r})}this._font.sbix.flags.renderOutlines&&super.render(e,t)}constructor(...e){super(...e),ar(this,"type","SBIX")}},b6=class{constructor(e,t){this.glyph=e,this.color=t}},dW=class extends In{_getBBox(){let e=new Wo;for(let t=0;t<this.layers.length;t++){let r=this.layers[t].glyph.bbox;e.addPoint(r.minX,r.minY),e.addPoint(r.maxX,r.maxY)}return e}get layers(){let e=this._font.CPAL,t=this._font.COLR,i=0,r=t.baseGlyphRecord.length-1;for(;i<=r;){let u=i+r>>1;var n=t.baseGlyphRecord[u];if(this.id<n.gid)r=u-1;else if(this.id>n.gid)i=u+1;else{var s=n;break}}if(s==null){var a=this._font._getBaseGlyph(this.id),o={red:0,green:0,blue:0,alpha:255};return[new b6(a,o)]}let l=[];for(let u=s.firstLayerIndex;u<s.firstLayerIndex+s.numLayers;u++){var n=t.layerRecords[u],o=e.colorRecords[n.paletteIndex],a=this._font._getBaseGlyph(n.gid);l.push(new b6(a,o))}return l}render(e,t){for(let{glyph:i,color:r}of this.layers)e.fillColor([r.red,r.green,r.blue],r.alpha/255*100),i.render(e,t)}constructor(...e){super(...e),ar(this,"type","COLR")}},fW=32768,hW=4095,pW=32768,v6=16384,mW=8192,w6=4095,x6=128,C6=127,gW=128,yW=64,bW=63,vW=class{normalizeCoords(e){let t=[];for(var i=0;i<this.font.fvar.axis.length;i++){let r=this.font.fvar.axis[i];e[i]<r.defaultValue?t.push((e[i]-r.defaultValue+Number.EPSILON)/(r.defaultValue-r.minValue+Number.EPSILON)):t.push((e[i]-r.defaultValue+Number.EPSILON)/(r.maxValue-r.defaultValue+Number.EPSILON))}if(this.font.avar)for(var i=0;i<this.font.avar.segment.length;i++){let n=this.font.avar.segment[i];for(let s=0;s<n.correspondence.length;s++){let a=n.correspondence[s];if(s>=1&&t[i]<a.fromCoord){let o=n.correspondence[s-1];t[i]=((t[i]-o.fromCoord)*(a.toCoord-o.toCoord)+Number.EPSILON)/(a.fromCoord-o.fromCoord+Number.EPSILON)+o.toCoord;break}}}return t}transformPoints(e,t){if(!this.font.fvar||!this.font.gvar)return;let{gvar:i}=this.font;if(e>=i.glyphCount)return;let r=i.offsets[e];if(r===i.offsets[e+1])return;let{stream:n}=this.font;if(n.pos=r,n.pos>=n.length)return;let s=n.readUInt16BE(),a=r+n.readUInt16BE();if(s&fW){var o=n.pos;n.pos=a;var l=this.decodePoints();a=n.pos,n.pos=o}let u=t.map(g=>g.copy());s&=hW;for(let g=0;g<s;g++){let y=n.readUInt16BE(),v=n.readUInt16BE();if(v&pW){var c=[];for(let F=0;F<i.axisCount;F++)c.push(n.readInt16BE()/16384)}else{if((v&w6)>=i.globalCoordCount)throw new Error("Invalid gvar table");var c=i.globalCoords[v&w6]}if(v&v6){var d=[];for(let F=0;F<i.axisCount;F++)d.push(n.readInt16BE()/16384);var f=[];for(let F=0;F<i.axisCount;F++)f.push(n.readInt16BE()/16384)}let C=this.tupleFactor(v,c,d,f);if(C===0){a+=y;continue}var o=n.pos;if(n.pos=a,v&mW)var h=this.decodePoints();else var h=l;let S=h.length===0?t.length:h.length,_=this.decodeDeltas(S),k=this.decodeDeltas(S);if(h.length===0)for(let F=0;F<t.length;F++){var p=t[F];p.x+=Math.round(_[F]*C),p.y+=Math.round(k[F]*C)}else{let F=u.map(P=>P.copy()),T=t.map(()=>!1);for(let P=0;P<h.length;P++){let I=h[P];if(I<t.length){let O=F[I];T[I]=!0,O.x+=_[P]*C,O.y+=k[P]*C}}this.interpolateMissingDeltas(F,u,T);for(let P=0;P<t.length;P++){let I=F[P].x-u[P].x,O=F[P].y-u[P].y;t[P].x=Math.round(t[P].x+I),t[P].y=Math.round(t[P].y+O)}}a+=y,n.pos=o}}decodePoints(){let e=this.font.stream,t=e.readUInt8();t&x6&&(t=(t&C6)<<8|e.readUInt8());let i=new Uint16Array(t),r=0,n=0;for(;r<t;){let s=e.readUInt8(),a=(s&C6)+1,o=s&x6?e.readUInt16:e.readUInt8;for(let l=0;l<a&&r<t;l++)n+=o.call(e),i[r++]=n}return i}decodeDeltas(e){let t=this.font.stream,i=0,r=new Int16Array(e);for(;i<e;){let n=t.readUInt8(),s=(n&bW)+1;if(n&gW)i+=s;else{let a=n&yW?t.readInt16BE:t.readInt8;for(let o=0;o<s&&i<e;o++)r[i++]=a.call(t)}}return r}tupleFactor(e,t,i,r){let n=this.normalizedCoords,{gvar:s}=this.font,a=1;for(let o=0;o<s.axisCount;o++)if(t[o]!==0){if(n[o]===0)return 0;if(e&v6){if(n[o]<i[o]||n[o]>r[o])return 0;n[o]<t[o]?a=a*(n[o]-i[o]+Number.EPSILON)/(t[o]-i[o]+Number.EPSILON):a=a*(r[o]-n[o]+Number.EPSILON)/(r[o]-t[o]+Number.EPSILON)}else{if(n[o]<Math.min(0,t[o])||n[o]>Math.max(0,t[o]))return 0;a=(a*n[o]+Number.EPSILON)/(t[o]+Number.EPSILON)}}return a}interpolateMissingDeltas(e,t,i){if(e.length===0)return;let r=0;for(;r<e.length;){let n=r,s=r,a=e[s];for(;!a.endContour;)a=e[++s];for(;r<=s&&!i[r];)r++;if(r>s)continue;let o=r,l=r;for(r++;r<=s;)i[r]&&(this.deltaInterpolate(l+1,r-1,l,r,t,e),l=r),r++;l===o?this.deltaShift(n,s,l,t,e):(this.deltaInterpolate(l+1,s,l,o,t,e),o>0&&this.deltaInterpolate(n,o-1,l,o,t,e)),r=s+1}}deltaInterpolate(e,t,i,r,n,s){if(e>t)return;let a=["x","y"];for(let l=0;l<a.length;l++){let u=a[l];if(n[i][u]>n[r][u]){var o=i;i=r,r=o}let c=n[i][u],d=n[r][u],f=s[i][u],h=s[r][u];if(c!==d||f===h){let p=c===d?0:(h-f)/(d-c);for(let g=e;g<=t;g++){let y=n[g][u];y<=c?y+=f-c:y>=d?y+=h-d:y=f+(y-c)*p,s[g][u]=y}}}}deltaShift(e,t,i,r,n){let s=n[i].x-r[i].x,a=n[i].y-r[i].y;if(!(s===0&&a===0))for(let o=e;o<=t;o++)o!==i&&(n[o].x+=s,n[o].y+=a)}getAdvanceAdjustment(e,t){let i,r;if(t.advanceWidthMapping){let n=e;n>=t.advanceWidthMapping.mapCount&&(n=t.advanceWidthMapping.mapCount-1),t.advanceWidthMapping.entryFormat,{outerIndex:i,innerIndex:r}=t.advanceWidthMapping.mapData[n]}else i=0,r=e;return this.getDelta(t.itemVariationStore,i,r)}getDelta(e,t,i){if(t>=e.itemVariationData.length)return 0;let r=e.itemVariationData[t];if(i>=r.deltaSets.length)return 0;let n=r.deltaSets[i],s=this.getBlendVector(e,t),a=0;for(let o=0;o<r.regionIndexCount;o++)a+=n.deltas[o]*s[o];return a}getBlendVector(e,t){let i=e.itemVariationData[t];if(this.blendVectors.has(i))return this.blendVectors.get(i);let r=this.normalizedCoords,n=[];for(let s=0;s<i.regionIndexCount;s++){let a=1,o=i.regionIndexes[s],l=e.variationRegionList.variationRegions[o];for(let u=0;u<l.length;u++){let c=l[u],d;c.startCoord>c.peakCoord||c.peakCoord>c.endCoord||c.startCoord<0&&c.endCoord>0&&c.peakCoord!==0||c.peakCoord===0?d=1:r[u]<c.startCoord||r[u]>c.endCoord?d=0:r[u]===c.peakCoord?d=1:r[u]<c.peakCoord?d=(r[u]-c.startCoord+Number.EPSILON)/(c.peakCoord-c.startCoord+Number.EPSILON):d=(c.endCoord-r[u]+Number.EPSILON)/(c.endCoord-c.peakCoord+Number.EPSILON),a*=d}n[s]=a}return this.blendVectors.set(i,n),n}constructor(e,t){this.font=e,this.normalizedCoords=this.normalizeCoords(t),this.blendVectors=new Map}};Promise.resolve();var k6=class{includeGlyph(e){return typeof e=="object"&&(e=e.id),this.mapping[e]==null&&(this.glyphs.push(e),this.mapping[e]=this.glyphs.length-1),this.mapping[e]}constructor(e){this.font=e,this.glyphs=[],this.mapping={},this.includeGlyph(0)}},wW=1,xW=2,CW=4,kW=8,SW=16,_W=32,S6=class{static size(e){return e>=0&&e<=255?1:2}static encode(e,t){t>=0&&t<=255?e.writeUInt8(t):e.writeInt16BE(t)}},_6=new W({numberOfContours:st,xMin:st,yMin:st,xMax:st,yMax:st,endPtsOfContours:new V(w,"numberOfContours"),instructions:new V(vt,w),flags:new V(vt,0),xPoints:new V(S6,0),yPoints:new V(S6,0)}),EW=class{encodeSimple(e,t=[]){let i=[],r=[],n=[],s=[],a=0,o=0,l=0,u=0,c=0;for(let y=0;y<e.commands.length;y++){let v=e.commands[y];for(let C=0;C<v.args.length;C+=2){let x=v.args[C],S=v.args[C+1],_=0;if(v.command==="quadraticCurveTo"&&C===2){let k=e.commands[y+1];if(k&&k.command==="quadraticCurveTo"){let F=(o+k.args[0])/2,T=(l+k.args[1])/2;if(x===F&&S===T)continue}}v.command==="quadraticCurveTo"&&C===0||(_|=wW),_=this._encodePoint(x,o,r,_,xW,SW),_=this._encodePoint(S,l,n,_,CW,_W),_===u&&a<255?(s[s.length-1]|=kW,a++):(a>0&&(s.push(a),a=0),s.push(_),u=_),o=x,l=S,c++}v.command==="closePath"&&i.push(c-1)}e.commands.length>1&&e.commands[e.commands.length-1].command!=="closePath"&&i.push(c-1);let d=e.bbox,f={numberOfContours:i.length,xMin:d.minX,yMin:d.minY,xMax:d.maxX,yMax:d.maxY,endPtsOfContours:i,instructions:t,flags:s,xPoints:r,yPoints:n},h=_6.size(f),p=4-h%4,g=new If(h+p);return _6.encode(g,f),p!==0&&g.fill(0,p),g.buffer}_encodePoint(e,t,i,r,n,s){let a=e-t;return e===t?r|=s:(-255<=a&&a<=255&&(r|=n,a<0?a=-a:r|=s),i.push(a)),r}},AW=class extends k6{_addGlyph(e){let t=this.font.getGlyph(e),i=t._decode(),r=this.font.loca.offsets[e],n=this.font.loca.offsets[e+1],s=this.font._getTableStream("glyf");s.pos+=r;let a=s.readBuffer(n-r);if(i&&i.numberOfContours<0){a=new Uint8Array(a);let o=new DataView(a.buffer);for(let l of i.components)e=this.includeGlyph(l.glyphID),o.setUint16(l.pos,e)}else i&&this.font._variationProcessor&&(a=this.glyphEncoder.encodeSimple(t.path,i.instructions));return this.glyf.push(a),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:t.advanceWidth,bearing:t._getMetrics().leftBearing}),this.offset+=a.length,this.glyf.length-1}encode(){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};let e=0;for(;e<this.glyphs.length;)this._addGlyph(this.glyphs[e++]);let t=(0,Pg.default)(this.font.maxp);t.numGlyphs=this.glyf.length,this.loca.offsets.push(this.offset);let i=(0,Pg.default)(this.font.head);i.indexToLocFormat=this.loca.version;let r=(0,Pg.default)(this.font.hhea);return r.numberOfMetrics=this.hmtx.metrics.length,j_.toBuffer({tables:{head:i,hhea:r,loca:this.loca,maxp:t,"cvt ":this.font["cvt "],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm}})}constructor(e){super(e),this.glyphEncoder=new EW}},TW=class extends k6{subsetCharstrings(){this.charstrings=[];let e={};for(let t of this.glyphs){this.charstrings.push(this.cff.getCharString(t));let i=this.font.getGlyph(t);i.path;for(let r in i._usedGsubrs)e[r]=!0}this.gsubrs=this.subsetSubrs(this.cff.globalSubrIndex,e)}subsetSubrs(e,t){let i=[];for(let r=0;r<e.length;r++){let n=e[r];t[r]?(this.cff.stream.pos=n.offset,i.push(this.cff.stream.readBuffer(n.length))):i.push(new Uint8Array([11]))}return i}subsetFontdict(e){e.FDArray=[],e.FDSelect={version:0,fds:[]};let t={},i=[],r={};for(let n of this.glyphs){let s=this.cff.fdForGlyph(n);if(s==null)continue;t[s]||(e.FDArray.push(Object.assign({},this.cff.topDict.FDArray[s])),i.push({}),r[s]=e.FDArray.length-1),t[s]=!0,e.FDSelect.fds.push(r[s]);let a=this.font.getGlyph(n);a.path;for(let o in a._usedSubrs)i[r[s]][o]=!0}for(let n=0;n<e.FDArray.length;n++){let s=e.FDArray[n];delete s.FontName,s.Private&&s.Private.Subrs&&(s.Private=Object.assign({},s.Private),s.Private.Subrs=this.subsetSubrs(s.Private.Subrs,i[n]))}}createCIDFontdict(e){let t={};for(let r of this.glyphs){let n=this.font.getGlyph(r);n.path;for(let s in n._usedSubrs)t[s]=!0}let i=Object.assign({},this.cff.topDict.Private);return this.cff.topDict.Private&&this.cff.topDict.Private.Subrs&&(i.Subrs=this.subsetSubrs(this.cff.topDict.Private.Subrs,t)),e.FDArray=[{Private:i}],e.FDSelect={version:3,nRanges:1,ranges:[{first:0,fd:0}],sentinel:this.charstrings.length}}addString(e){return e?(this.strings||(this.strings=[]),this.strings.push(e),Of.length+this.strings.length-1):null}encode(){this.subsetCharstrings();let e={version:this.charstrings.length>255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},t=Object.assign({},this.cff.topDict);t.Private=null,t.charset=e,t.Encoding=null,t.CharStrings=this.charstrings;for(let r of["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"])t[r]=this.addString(this.cff.string(t[r]));t.ROS=[this.addString("Adobe"),this.addString("Identity"),0],t.CIDCount=this.charstrings.length,this.cff.isCIDFont?this.subsetFontdict(t):this.createCIDFontdict(t);let i={version:1,hdrSize:this.cff.hdrSize,offSize:4,header:this.cff.header,nameIndex:[this.cff.postscriptName],topDictIndex:[t],stringIndex:this.strings,globalSubrIndex:this.gsubrs};return T_.toBuffer(i)}constructor(e){if(super(e),this.cff=this.font["CFF "],!this.cff)throw new Error("Not a CFF Font")}},lr=class e8{static probe(t){let i=jf.decode(t.slice(0,4));return i==="true"||i==="OTTO"||i==="\0\0\0"}setDefaultLanguage(t=null){this.defaultLanguage=t}_getTable(t){if(!(t.tag in this._tables))try{this._tables[t.tag]=this._decodeTable(t)}catch{}return this._tables[t.tag]}_getTableStream(t){let i=this.directory.tables[t];return i?(this.stream.pos=i.offset,this.stream):null}_decodeDirectory(){return this.directory=j_.decode(this.stream,{_startOffset:0})}_decodeTable(t){let i=this.stream.pos,r=this._getTableStream(t.tag),n=Uf[t.tag].decode(r,this,t.length);return this.stream.pos=i,n}getName(t,i=this.defaultLanguage||Nf){let r=this.name&&this.name.records[t];return r&&(r[i]||r[this.defaultLanguage]||r[Nf]||r.en||r[Object.keys(r)[0]])||null}get postscriptName(){return this.getName("postscriptName")}get fullName(){return this.getName("fullName")}get familyName(){return this.getName("fontFamily")}get subfamilyName(){return this.getName("fontSubfamily")}get copyright(){return this.getName("copyright")}get version(){return this.getName("version")}get ascent(){return this.hhea.ascent}get descent(){return this.hhea.descent}get lineGap(){return this.hhea.lineGap}get underlinePosition(){return this.post.underlinePosition}get underlineThickness(){return this.post.underlineThickness}get italicAngle(){return this.post.italicAngle}get capHeight(){let t=this["OS/2"];return t?t.capHeight:this.ascent}get xHeight(){let t=this["OS/2"];return t?t.xHeight:0}get numGlyphs(){return this.maxp.numGlyphs}get unitsPerEm(){return this.head.unitsPerEm}get bbox(){return Object.freeze(new Wo(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}get _cmapProcessor(){return new Hg(this.cmap)}get characterSet(){return this._cmapProcessor.getCharacterSet()}hasGlyphForCodePoint(t){return!!this._cmapProcessor.lookup(t)}glyphForCodePoint(t){return this.getGlyph(this._cmapProcessor.lookup(t),[t])}glyphsForString(t){let i=[],r=t.length,n=0,s=-1,a=-1;for(;n<=r;){let o=0,l=0;if(n<r){if(o=t.charCodeAt(n++),55296<=o&&o<=56319&&n<r){let u=t.charCodeAt(n);56320<=u&&u<=57343&&(n++,o=((o&1023)<<10)+(u&1023)+65536)}l=65024<=o&&o<=65039||917760<=o&&o<=917999?1:0}else n++;a===0&&l===1?i.push(this.getGlyph(this._cmapProcessor.lookup(s,o),[s,o])):a===0&&l===0&&i.push(this.glyphForCodePoint(s)),s=o,a=l}return i}get _layoutEngine(){return new qj(this)}layout(t,i,r,n,s){return this._layoutEngine.layout(t,i,r,n,s)}stringsForGlyph(t){return this._layoutEngine.stringsForGlyph(t)}get availableFeatures(){return this._layoutEngine.getAvailableFeatures()}getAvailableFeatures(t,i){return this._layoutEngine.getAvailableFeatures(t,i)}_getBaseGlyph(t,i=[]){return this._glyphs[t]||(this.directory.tables.glyf?this._glyphs[t]=new oh(t,i,this):(this.directory.tables["CFF "]||this.directory.tables.CFF2)&&(this._glyphs[t]=new lW(t,i,this))),this._glyphs[t]||null}getGlyph(t,i=[]){return this._glyphs[t]||(this.directory.tables.sbix?this._glyphs[t]=new cW(t,i,this):this.directory.tables.COLR&&this.directory.tables.CPAL?this._glyphs[t]=new dW(t,i,this):this._getBaseGlyph(t,i)),this._glyphs[t]||null}createSubset(){return this.directory.tables["CFF "]?new TW(this):new AW(this)}get variationAxes(){let t={};if(!this.fvar)return t;for(let i of this.fvar.axis)t[i.axisTag.trim()]={name:i.name.en,min:i.minValue,default:i.defaultValue,max:i.maxValue};return t}get namedVariations(){let t={};if(!this.fvar)return t;for(let i of this.fvar.instance){let r={};for(let n=0;n<this.fvar.axis.length;n++){let s=this.fvar.axis[n];r[s.axisTag.trim()]=i.coord[n]}t[i.name.en]=r}return t}getVariation(t){if(!(this.directory.tables.fvar&&(this.directory.tables.gvar&&this.directory.tables.glyf||this.directory.tables.CFF2)))throw new Error("Variations require a font with the fvar, gvar and glyf, or CFF2 tables.");if(typeof t=="string"&&(t=this.namedVariations[t]),typeof t!="object")throw new Error("Variation settings must be either a variation name or settings object.");let i=this.fvar.axis.map((s,a)=>{let o=s.axisTag.trim();return o in t?Math.max(s.minValue,Math.min(s.maxValue,t[o])):s.defaultValue}),r=new Di(this.stream.buffer);r.pos=this._directoryPos;let n=new e8(r,i);return n._tables=this._tables,n}get _variationProcessor(){if(!this.fvar)return null;let t=this.variationCoords;return!t&&!this.CFF2?null:(t||(t=this.fvar.axis.map(i=>i.defaultValue)),new vW(this,t))}getFont(t){return this.getVariation(t)}constructor(t,i=null){ar(this,"type","TTF"),this.defaultLanguage=null,this.stream=t,this.variationCoords=i,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory();for(let r in this.directory.tables){let n=this.directory.tables[r];Uf[r]&&n.length>0&&Object.defineProperty(this,r,{get:this._getTable.bind(this,n)})}}};Pi([Fi],lr.prototype,"bbox",null),Pi([Fi],lr.prototype,"_cmapProcessor",null),Pi([Fi],lr.prototype,"characterSet",null),Pi([Fi],lr.prototype,"_layoutEngine",null),Pi([Fi],lr.prototype,"variationAxes",null),Pi([Fi],lr.prototype,"namedVariations",null),Pi([Fi],lr.prototype,"_variationProcessor",null);var IW=new W({tag:new Fe(4),offset:new L($,"void",{type:"global"}),compLength:$,length:$,origChecksum:$}),E6=new W({tag:new Fe(4),flavor:$,length:$,numTables:w,reserved:new qe(w),totalSfntSize:$,majorVersion:w,minorVersion:w,metaOffset:$,metaLength:$,metaOrigLength:$,privOffset:$,privLength:$,tables:new V(IW,"numTables")});E6.process=function(){let e={};for(let t of this.tables)e[t.tag]=t;this.tables=e};var DW=E6,PW=class extends lr{static probe(e){return jf.decode(e.slice(0,4))==="wOFF"}_decodeDirectory(){this.directory=DW.decode(this.stream,{_startOffset:0})}_getTableStream(e){let t=this.directory.tables[e];if(t)if(this.stream.pos=t.offset,t.compLength<t.length){this.stream.pos+=2;let i=new Uint8Array(t.length),r=(0,nL.default)(this.stream.readBuffer(t.compLength-2),i);return new Di(r)}else return this.stream;return null}constructor(...e){super(...e),ar(this,"type","WOFF")}},FW=class extends oh{_decode(){return this._font._transformedGlyphs[this.id]}_getCBox(){return this.path.bbox}constructor(...e){super(...e),ar(this,"type","WOFF2")}},A6={decode(e){let t=0,i=[0,1,2,3,4];for(let r=0;r<i.length;r++){let n=e.readUInt8();if(t&3758096384)throw new Error("Overflow");if(t=t<<7|n&127,!(n&128))return t}throw new Error("Bad base 128 number")}},BW=["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"],NW=new W({flags:vt,customTag:new Df(new Fe(4),e=>(e.flags&63)===63),tag:e=>e.customTag||BW[e.flags&63],length:A6,transformVersion:e=>e.flags>>>6&3,transformed:e=>e.tag==="glyf"||e.tag==="loca"?e.transformVersion===0:e.transformVersion!==0,transformLength:new Df(A6,e=>e.transformed)}),T6=new W({tag:new Fe(4),flavor:$,length:$,numTables:w,reserved:new qe(w),totalSfntSize:$,totalCompressedSize:$,majorVersion:w,minorVersion:w,metaOffset:$,metaLength:$,metaOrigLength:$,privOffset:$,privLength:$,tables:new V(NW,"numTables")});T6.process=function(){let e={};for(let t=0;t<this.tables.length;t++){let i=this.tables[t];e[i.tag]=i}return this.tables=e};var MW=T6,zW=class extends lr{static probe(e){return jf.decode(e.slice(0,4))==="wOF2"}_decodeDirectory(){this.directory=MW.decode(this.stream),this._dataPos=this.stream.pos}_decompress(){if(!this._decompressed){this.stream.pos=this._dataPos;let e=this.stream.readBuffer(this.directory.totalCompressedSize),t=0;for(let r in this.directory.tables){let n=this.directory.tables[r];n.offset=t,t+=n.transformLength!=null?n.transformLength:n.length}let i=(0,sL.default)(e,t);if(!i)throw new Error("Error decoding compressed data in WOFF2");this.stream=new Di(i),this._decompressed=!0}}_decodeTable(e){return this._decompress(),super._decodeTable(e)}_getBaseGlyph(e,t=[]){if(!this._glyphs[e])return this.directory.tables.glyf&&this.directory.tables.glyf.transformed?(this._transformedGlyphs||this._transformGlyfTable(),this._glyphs[e]=new FW(e,t,this)):super._getBaseGlyph(e,t)}_transformGlyfTable(){this._decompress(),this.stream.pos=this.directory.tables.glyf.offset;let e=OW.decode(this.stream),t=[];for(let r=0;r<e.numGlyphs;r++){let n={},s=e.nContours.readInt16BE();if(n.numberOfContours=s,s>0){let a=[],o=0;for(let l=0;l<s;l++){let u=iy(e.nPoints);o+=u,a.push(o)}n.points=$W(e.flags,e.glyphs,o);for(let l=0;l<s;l++)n.points[a[l]-1].endContour=!0;var i=iy(e.glyphs)}else if(s<0&&oh.prototype._decodeComposite.call({_font:this},n,e.composites))var i=iy(e.glyphs);t.push(n)}this._transformedGlyphs=t}constructor(...e){super(...e),ar(this,"type","WOFF2")}},ja=class{decode(e,t){return new Di(this._buf.decode(e,t))}constructor(e){this.length=e,this._buf=new _n(e)}},OW=new W({version:$,numGlyphs:w,indexFormat:w,nContourStreamSize:$,nPointsStreamSize:$,flagStreamSize:$,glyphStreamSize:$,compositeStreamSize:$,bboxStreamSize:$,instructionStreamSize:$,nContours:new ja("nContourStreamSize"),nPoints:new ja("nPointsStreamSize"),flags:new ja("flagStreamSize"),glyphs:new ja("glyphStreamSize"),composites:new ja("compositeStreamSize"),bboxes:new ja("bboxStreamSize"),instructions:new ja("instructionStreamSize")}),RW=253,VW=254,LW=255,I6=253;function iy(e){let t=e.readUInt8();return t===RW?e.readUInt16BE():t===LW?e.readUInt8()+I6:t===VW?e.readUInt8()+I6*2:t}function Dn(e,t){return e&1?t:-t}function $W(e,t,i){let r,n=r=0,s=[];for(let l=0;l<i;l++){let u=0,c=0,d=e.readUInt8(),f=!(d>>7);if(d&=127,d<10)u=0,c=Dn(d,((d&14)<<7)+t.readUInt8());else if(d<20)u=Dn(d,((d-10&14)<<7)+t.readUInt8()),c=0;else if(d<84){var a=d-20,o=t.readUInt8();u=Dn(d,1+(a&48)+(o>>4)),c=Dn(d>>1,1+((a&12)<<2)+(o&15))}else if(d<120){var a=d-84;u=Dn(d,1+(a/12<<8)+t.readUInt8()),c=Dn(d>>1,1+(a%12>>2<<8)+t.readUInt8())}else if(d<124){var o=t.readUInt8();let p=t.readUInt8();u=Dn(d,(o<<4)+(p>>4)),c=Dn(d>>1,((p&15)<<8)+t.readUInt8())}else u=Dn(d,t.readUInt16BE()),c=Dn(d>>1,t.readUInt16BE());n+=u,r+=c,s.push(new fs(f,!1,n,r))}return s}var UW=new ge($,{65536:{numFonts:$,offsets:new V($,"numFonts")},131072:{numFonts:$,offsets:new V($,"numFonts"),dsigTag:$,dsigLength:$,dsigOffset:$}}),ZW=class{static probe(e){return jf.decode(e.slice(0,4))==="ttcf"}getFont(e){for(let t of this.header.offsets){let i=new Di(this.stream.buffer);i.pos=t;let r=new lr(i);if(r.postscriptName===e||r.postscriptName instanceof Uint8Array&&e instanceof Uint8Array&&r.postscriptName.every((n,s)=>e[s]===n))return r}return null}get fonts(){let e=[];for(let t of this.header.offsets){let i=new Di(this.stream.buffer);i.pos=t,e.push(new lr(i))}return e}constructor(e){if(ar(this,"type","TTC"),this.stream=e,e.readString(4)!=="ttcf")throw new Error("Not a TrueType collection");this.header=UW.decode(e)}},jW=new Fe(vt);new W({len:$,buf:new _n("len")});var WW=new W({id:w,nameOffset:st,attr:vt,dataOffset:Gs,handle:$}),GW=new W({name:new Fe(4),maxTypeIndex:w,refList:new L(w,new V(WW,e=>e.maxTypeIndex+1),{type:"parent"})}),HW=new W({length:w,types:new V(GW,e=>e.length+1)}),qW=new W({reserved:new qe(vt,24),typeList:new L(w,HW),nameListOffset:new L(w,"void")}),D6=new W({dataOffset:$,map:new L($,qW),dataLength:$,mapLength:$}),YW=class{static probe(e){let t=new Di(e);try{var i=D6.decode(t)}catch{return!1}for(let r of i.map.typeList.types)if(r.name==="sfnt")return!0;return!1}getFont(e){if(!this.sfnt)return null;for(let t of this.sfnt.refList){let i=this.header.dataOffset+t.dataOffset+4,r=new Di(this.stream.buffer.slice(i)),n=new lr(r);if(n.postscriptName===e||n.postscriptName instanceof Uint8Array&&e instanceof Uint8Array&&n.postscriptName.every((s,a)=>e[a]===s))return n}return null}get fonts(){let e=[];for(let t of this.sfnt.refList){let i=this.header.dataOffset+t.dataOffset+4,r=new Di(this.stream.buffer.slice(i));e.push(new lr(r))}return e}constructor(e){ar(this,"type","DFont"),this.stream=e,this.header=D6.decode(this.stream);for(let t of this.header.map.typeList.types){for(let i of t.refList)i.nameOffset>=0?(this.stream.pos=i.nameOffset+this.header.map.nameListOffset,i.name=jW.decode(this.stream)):i.name=null;t.name==="sfnt"&&(this.sfnt=t)}}};Lo(lr),Lo(PW),Lo(zW),Lo(ZW),Lo(YW);function KW(e){if(e==null)return"400";if(typeof e=="number")return String(e);const t=String(e).toLowerCase().trim(),i={thin:"100",hairline:"100",extralight:"200",ultralight:"200",light:"300",normal:"400",regular:"400",medium:"500",semibold:"600",demibold:"600",bold:"700",extrabold:"800",ultrabold:"800",black:"900",heavy:"900"};if(i[t])return i[t];const r=parseInt(String(e),10);return!isNaN(r)&&r>=100&&r<=900?String(r):(console.warn(`Invalid font weight "${e}", defaulting to 400`),"400")}function hs(e){if(!e)return"normal";const t=String(e).toLowerCase().trim();return t==="italic"||t==="oblique"?"italic":"normal"}var XW=[{name:"extralight",weight:200},{name:"semibold",weight:600},{name:"extrabold",weight:800},{name:"thin",weight:100},{name:"light",weight:300},{name:"regular",weight:400},{name:"medium",weight:500},{name:"bold",weight:700},{name:"black",weight:900}];function qo(e,t,i){const r=String(e??"").trim(),n=r.toLowerCase();for(const{name:s,weight:a}of XW){const o=` ${s}`;if(n.endsWith(o)&&r.length>o.length)return{family:r.slice(0,r.length-o.length).trim(),weight:String(a),style:hs(i)}}return{family:r,weight:KW(t),style:hs(i)}}var P6="Roboto";function JW(e,t){if(!t.length)return;if(t.includes(e))return e;const i=t.filter(n=>n<e).sort((n,s)=>s-n),r=t.filter(n=>n>e).sort((n,s)=>n-s);return e>=400&&e<=500?r.filter(s=>s<=500)[0]??i[0]??r[0]:e<400?i[0]??r[0]:r[0]??i[0]}var Ru=class Ge{constructor(t){Gt(this,"hb"),Gt(this,"faces",new Map),Gt(this,"fonts",new Map),Gt(this,"blobs",new Map),Gt(this,"fontkitFonts",new Map),Gt(this,"fontkitBaseFonts",new Map),Gt(this,"variants",new Map),Gt(this,"colorEmojiFonts",new Set),Gt(this,"colorEmojiFontBytes",new Map),Gt(this,"registeredCanvasFonts",new Set),Gt(this,"wasmBaseURL"),Gt(this,"initPromise"),Gt(this,"emojiFallbackDesc"),this.wasmBaseURL=t}static setFallbackLoader(t){Ge.fallbackLoader=t}static getFallbackLoader(){return Ge.fallbackLoader}static async getSharedInstance(t){if(Ge.sharedInitPromise){const i=await Ge.sharedInitPromise;return Ge.refCount++,i}if(Ge.sharedInstance)return Ge.refCount++,Ge.sharedInstance;Ge.sharedInitPromise=(async()=>{const i=new Ge(t);return await i.init(),Ge.sharedInstance=i,Ge.refCount=1,i})();try{return await Ge.sharedInitPromise}finally{Ge.sharedInitPromise=null}}static getRefCount(){return Ge.refCount}static hasSharedInstance(){return Ge.sharedInstance!==null}release(){if(this!==Ge.sharedInstance){this.destroy();return}Ge.refCount>0&&Ge.refCount--}static resetSharedInstance(){Ge.sharedInstance&&(Ge.sharedInstance.destroy(),Ge.sharedInstance=null),Ge.refCount=0,Ge.sharedInitPromise=null}setEmojiFallback(t){this.emojiFallbackDesc=t}isColorEmojiFont(t){return this.colorEmojiFonts.has(t)}getColorEmojiFontBytes(t){return this.colorEmojiFontBytes.get(t)}getColorEmojiFontFamilies(){return Array.from(this.colorEmojiFonts)}detectColorEmojiFont(t){try{if(t.directory&&t.directory.tables){const i=t.directory.tables;if(i.CBDT||i.CBLC||i.sbix||i.COLR&&i.CPAL||i.SVG)return!0}if(t.availableTables){const i=t.availableTables;if(i.includes("CBDT")||i.includes("CBLC")||i.includes("sbix")||i.includes("COLR")&&i.includes("CPAL")||i.includes("SVG"))return!0}if(t._tables){const i=Object.keys(t._tables);if(i.includes("CBDT")||i.includes("CBLC")||i.includes("sbix")||i.includes("COLR")&&i.includes("CPAL")||i.includes("SVG"))return!0}return!1}catch{return!1}}async init(){if(this.initPromise){await this.initPromise;return}if(!this.hb){this.initPromise=this._doInit();try{await this.initPromise}catch(t){throw new Error(`Failed to initialize FontRegistry: ${t instanceof Error?t.message:String(t)}`)}}}async _doInit(){try{this.hb=await NV("https://js.shotstack.io/canvas/hb.wasm")}catch(t){throw this.initPromise=void 0,t}}async getHB(){if(!this.hb)try{await this.init()}catch(t){throw new Error(`Failed to get HarfBuzz instance: ${t instanceof Error?t.message:String(t)}`)}return this.hb}key(t){const i=qo(t.family,t.weight,t.style);return`${i.family}__${i.weight}__${i.style}`}hasRegisteredFace(t){return this.faces.has(this.key(t))}async registerFromBytes(t,i){try{this.hb||await this.init();const r=qo(i.family,i.weight,i.style),n=`${r.family}__${r.weight}__${r.style}`;if(this.fonts.has(n))return;const s=this.hb.createBlob(t),a=this.hb.createFace(s,0),o=this.hb.createFont(a),l=a.upem||1e3;o.setScale(l,l);const u=parseInt(r.weight,10);if(u!==400&&typeof o.setVariations=="function")try{o.setVariations(`wght=${u}`)}catch{}this.blobs.set(n,s),this.faces.set(n,a),this.fonts.set(n,o);const c=this.variants.get(r.family)??[];c.some(d=>d.key===n)||(c.push({weight:u,style:r.style,key:n}),this.variants.set(r.family,c));try{const d=typeof Buffer<"u"?Buffer.from(t):new Uint8Array(t),f=n_(d),h=`${r.family}__${r.style}`;if(this.fontkitBaseFonts.has(h)||this.fontkitBaseFonts.set(h,f),this.detectColorEmojiFont(f)&&(this.colorEmojiFonts.add(r.family),this.colorEmojiFontBytes.has(r.family)||this.colorEmojiFontBytes.set(r.family,t.slice(0))),f.variationAxes&&Object.keys(f.variationAxes).length>0){const g=f.getVariation({wght:u});this.fontkitFonts.set(n,g)}else this.fontkitFonts.set(n,f)}catch(d){console.warn(`⚠️ Fontkit failed for ${i.family}:`,d)}await this.registerWithCanvas(r.family,t)}catch(r){throw new Error(`Failed to register font "${i.family}": ${r instanceof Error?r.message:String(r)}`)}}async tryFallbackInstall(t){const i=Ge.fallbackLoader;if(!i)return!1;try{const r=qo(t.family,t.weight,t.style),n=await i({family:r.family,weight:r.weight,style:r.style});return n?(await this.registerFromBytes(n,{family:r.family,weight:r.weight,style:r.style}),!0):!1}catch{return!1}}async tryInstallDefaultFont(t){const i=this.key(t),r=`${P6}__400__normal`,n=this.blobs.get(r);if(n){const o=this.hb.createFace(n,0),l=this.hb.createFont(o),u=o.upem||1e3;l.setScale(u,u),this.faces.set(i,o),this.fonts.set(i,l);const c=this.fontkitFonts.get(r);return c&&this.fontkitFonts.set(i,c),l}const s=Ge.fallbackLoader;if(!s)return;const a=await s({family:P6,weight:"400",style:"normal"});if(a)return await this.registerFromBytes(a,{family:t.family,weight:t.weight,style:t.style}),this.fonts.get(i)}async getFont(t){try{this.hb||await this.init();const i=this.key(t);let r=this.fonts.get(i);if(r||(r=await this.tryFallbackInstall(t)?this.fonts.get(i):void 0),r||(r=await this.tryDeriveFromExistingFont(t)),r||(r=await this.tryInstallDefaultFont(t)),!r)throw new Error(`Font not registered for ${i}`);return r}catch(i){throw i instanceof Error&&i.message.includes("Font not registered")?i:new Error(`Failed to get font "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async tryDeriveFromExistingFont(t){const i=qo(t.family,t.weight,t.style),r=parseInt(i.weight,10),n=`${i.family}__${i.weight}__${i.style}`,s=await this.deriveWithinStyle(i.family,i.style,r,n);if(s)return s;const a=i.style==="italic"?"normal":"italic";return this.deriveWithinStyle(i.family,a,r,n)}async deriveWithinStyle(t,i,r,n){const s=this.fontkitBaseFonts.get(`${t}__${i}`),a=s&&s.variationAxes?s.variationAxes.wght:void 0;if(a){let l;for(const[u,c]of this.blobs)if(u.startsWith(`${t}__`)&&u.endsWith(`__${i}`)){l=c;break}if(l){const u=Math.max(a.min??r,Math.min(a.max??r,r)),c=this.hb.createFace(l,0),d=this.hb.createFont(c),f=c.upem||1e3;if(d.setScale(f,f),typeof d.setVariations=="function")try{d.setVariations(`wght=${u}`)}catch{}this.faces.set(n,c),this.fonts.set(n,d);try{this.fontkitFonts.set(n,s.getVariation({wght:u}))}catch{this.fontkitFonts.set(n,s)}return d}}const o=this.findNearestSameStyleKey(t,i,r);if(o&&o!==n){const l=this.blobs.get(o);if(l){const u=this.hb.createFace(l,0),c=this.hb.createFont(u),d=u.upem||1e3;c.setScale(d,d),this.faces.set(n,u),this.fonts.set(n,c);const f=this.fontkitFonts.get(o);return f&&this.fontkitFonts.set(n,f),c}}}findNearestSameStyleKey(t,i,r){const n=(this.variants.get(t)??[]).filter(a=>a.style===i);if(!n.length)return;const s=JW(r,n.map(a=>a.weight));return s==null?void 0:n.find(a=>a.weight===s)?.key}async getFace(t){try{this.hb||await this.init();const i=this.key(t);let r=this.faces.get(i);return r||(r=await this.tryFallbackInstall(t)?this.faces.get(i):void 0),r||(await this.tryDeriveFromExistingFont(t),r=this.faces.get(i)),r||(await this.tryInstallDefaultFont(t),r=this.faces.get(i)),r}catch(i){throw new Error(`Failed to get face for "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async getUnitsPerEm(t){try{return(await this.getFace(t))?.upem||1e3}catch(i){throw new Error(`Failed to get units per em for "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async glyphPath(t,i){const r=this.key(t);try{const n=this.fontkitFonts.get(r);if(n){const o=n.getGlyph(i);if(o&&o.path){const l=o.path.toSVG();return l&&l!==""?l:"M 0 0"}}const a=(await this.getFont(t)).glyphToPath(i);return a&&a!==""?a:"M 0 0"}catch(n){throw new Error(`Failed to get glyph path for glyph ${i} in font "${t.family}": ${n instanceof Error?n.message:String(n)}`)}}async registerWithCanvas(t,i){if(!this.registeredCanvasFonts.has(t)&&!(typeof window<"u"))try{const n={GlobalFonts:void 0}.GlobalFonts;n&&n.register}catch{}}destroy(){try{for(const[,t]of this.fonts)try{t.destroy()}catch(i){console.error(`Error destroying font: ${i instanceof Error?i.message:String(i)}`)}for(const[,t]of this.faces)try{t.destroy()}catch(i){console.error(`Error destroying face: ${i instanceof Error?i.message:String(i)}`)}for(const[,t]of this.blobs)try{t.destroy()}catch(i){console.error(`Error destroying blob: ${i instanceof Error?i.message:String(i)}`)}this.fonts.clear(),this.faces.clear(),this.blobs.clear(),this.fontkitFonts.clear(),this.fontkitBaseFonts.clear(),this.variants.clear(),this.colorEmojiFonts.clear(),this.colorEmojiFontBytes.clear(),this.registeredCanvasFonts.clear(),this.hb=void 0,this.initPromise=void 0}catch(t){console.error(`Error during FontRegistry cleanup: ${t instanceof Error?t.message:String(t)}`)}}};Gt(Ru,"sharedInstance",null),Gt(Ru,"refCount",0),Gt(Ru,"sharedInitPromise",null),Gt(Ru,"fallbackLoader");var ry=Ru;function QW(){var e=function(t){var i={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6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+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},r={},n={};r.L=1,n[1]="L",Object.keys(i).forEach(function(rt,ct){r[rt]=1<<ct+1,n[r[rt]]=rt}),Object.freeze(r);var s=r.LRI|r.RLI|r.FSI,a=r.L|r.R|r.AL,o=r.B|r.S|r.WS|r.ON|r.FSI|r.LRI|r.RLI|r.PDI,l=r.BN|r.RLE|r.LRE|r.RLO|r.LRO|r.PDF,u=r.S|r.WS|r.B|s|r.PDI|l,c=null;function d(){if(!c){c=new Map;var rt=function(Tt){if(i.hasOwnProperty(Tt)){var ut=0;i[Tt].split(",").forEach(function(oe){var zt=oe.split("+"),$t=zt[0],Pt=zt[1];$t=parseInt($t,36),Pt=Pt?parseInt(Pt,36):0,c.set(ut+=$t,r[Tt]);for(var Se=0;Se<Pt;Se++)c.set(++ut,r[Tt])})}};for(var ct in i)rt(ct)}}function f(rt){return d(),c.get(rt.codePointAt(0))||r.L}function h(rt){return n[f(rt)]}var p={pairs:"14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function g(rt,ct){var Tt=36,ut=0,oe=new Map,zt=ct&&new Map,$t;return rt.split(",").forEach(function Pt(Se){if(Se.indexOf("+")!==-1)for(var Te=+Se;Te--;)Pt($t);else{$t=Se;var kt=Se.split(">"),oi=kt[0],Ri=kt[1];oi=String.fromCodePoint(ut+=parseInt(oi,Tt)),Ri=String.fromCodePoint(ut+=parseInt(Ri,Tt)),oe.set(oi,Ri),ct&&zt.set(Ri,oi)}}),{map:oe,reverseMap:zt}}var y,v,C;function x(){if(!y){var rt=g(p.pairs,!0),ct=rt.map,Tt=rt.reverseMap;y=ct,v=Tt,C=g(p.canonical,!1).map}}function S(rt){return x(),y.get(rt)||null}function _(rt){return x(),v.get(rt)||null}function k(rt){return x(),C.get(rt)||null}var F=r.L,T=r.R,P=r.EN,I=r.ES,O=r.ET,z=r.AN,Q=r.CS,G=r.B,dt=r.S,ft=r.ON,mt=r.BN,H=r.NSM,tt=r.AL,nt=r.LRO,Ct=r.RLO,Rt=r.LRE,ee=r.RLE,_e=r.PDF,Ae=r.LRI,ye=r.RLI,gi=r.FSI,Ee=r.PDI;function K(rt,ct){for(var Tt=125,ut=new Uint32Array(rt.length),oe=0;oe<rt.length;oe++)ut[oe]=f(rt[oe]);var zt=new Map;function $t(yr,bn){var br=ut[yr];ut[yr]=bn,zt.set(br,zt.get(br)-1),br&o&&zt.set(o,zt.get(o)-1),zt.set(bn,(zt.get(bn)||0)+1),bn&o&&zt.set(o,(zt.get(o)||0)+1)}for(var Pt=new Uint8Array(rt.length),Se=new Map,Te=[],kt=null,oi=0;oi<rt.length;oi++)kt||Te.push(kt={start:oi,end:rt.length-1,level:ct==="rtl"?1:ct==="ltr"?0:HI(oi,!1)}),ut[oi]&G&&(kt.end=oi,kt=null);for(var Ri=ee|Rt|Ct|nt|s|Ee|_e|G,Le=function(yr){return yr+(yr&1?1:2)},Fr=function(yr){return yr+(yr&1?2:1)},ui=0;ui<Te.length;ui++){kt=Te[ui];var me=[{_level:kt.level,_override:0,_isolate:0}],ue=void 0,Gi=0,ir=0,Ei=0;zt.clear();for(var Ke=kt.start;Ke<=kt.end;Ke++){var ni=ut[Ke];if(ue=me[me.length-1],zt.set(ni,(zt.get(ni)||0)+1),ni&o&&zt.set(o,(zt.get(o)||0)+1),ni&Ri)if(ni&(ee|Rt)){Pt[Ke]=ue._level;var mo=(ni===ee?Fr:Le)(ue._level);mo<=Tt&&!Gi&&!ir?me.push({_level:mo,_override:0,_isolate:0}):Gi||ir++}else if(ni&(Ct|nt)){Pt[Ke]=ue._level;var Ts=(ni===Ct?Fr:Le)(ue._level);Ts<=Tt&&!Gi&&!ir?me.push({_level:Ts,_override:ni&Ct?T:F,_isolate:0}):Gi||ir++}else if(ni&s){ni&gi&&(ni=HI(Ke+1,!0)===1?ye:Ae),Pt[Ke]=ue._level,ue._override&&$t(Ke,ue._override);var Is=(ni===ye?Fr:Le)(ue._level);Is<=Tt&&Gi===0&&ir===0?(Ei++,me.push({_level:Is,_override:0,_isolate:1,_isolInitIndex:Ke})):Gi++}else if(ni&Ee){if(Gi>0)Gi--;else if(Ei>0){for(ir=0;!me[me.length-1]._isolate;)me.pop();var Ca=me[me.length-1]._isolInitIndex;Ca!=null&&(Se.set(Ca,Ke),Se.set(Ke,Ca)),me.pop(),Ei--}ue=me[me.length-1],Pt[Ke]=ue._level,ue._override&&$t(Ke,ue._override)}else ni&_e?(Gi===0&&(ir>0?ir--:!ue._isolate&&me.length>1&&(me.pop(),ue=me[me.length-1])),Pt[Ke]=ue._level):ni&G&&(Pt[Ke]=kt.level);else Pt[Ke]=ue._level,ue._override&&ni!==mt&&$t(Ke,ue._override)}for(var Qr=[],rr=null,Br=kt.start;Br<=kt.end;Br++){var Hi=ut[Br];if(!(Hi&l)){var Ds=Pt[Br],go=Hi&s,R=Hi===Ee;rr&&Ds===rr._level?(rr._end=Br,rr._endsWithIsolInit=go):Qr.push(rr={_start:Br,_end:Br,_level:Ds,_startsWithPDI:R,_endsWithIsolInit:go})}}for(var xt=[],de=0;de<Qr.length;de++){var Ie=Qr[de];if(!Ie._startsWithPDI||Ie._startsWithPDI&&!Se.has(Ie._start)){for(var ve=[rr=Ie],hi=void 0;rr&&rr._endsWithIsolInit&&(hi=Se.get(rr._end))!=null;)for(var Nr=de+1;Nr<Qr.length;Nr++)if(Qr[Nr]._start===hi){ve.push(rr=Qr[Nr]);break}for(var gn=[],yo=0;yo<ve.length;yo++)for(var Lc=ve[yo],ka=Lc._start;ka<=Lc._end;ka++)gn.push(ka);for(var bo=Pt[gn[0]],Al=kt.level,Sa=gn[0]-1;Sa>=0;Sa--)if(!(ut[Sa]&l)){Al=Pt[Sa];break}var vo=gn[gn.length-1],qi=Pt[vo],Yi=kt.level;if(!(ut[vo]&s)){for(var gr=vo+1;gr<=kt.end;gr++)if(!(ut[gr]&l)){Yi=Pt[gr];break}}xt.push({_seqIndices:gn,_sosType:Math.max(Al,bo)%2?T:F,_eosType:Math.max(Yi,qi)%2?T:F})}}for(var Ps=0;Ps<xt.length;Ps++){var Xn=xt[Ps],Mt=Xn._seqIndices,Fs=Xn._sosType,k0=Xn._eosType,tn=Pt[Mt[0]]&1?T:F;if(zt.get(H))for(var wo=0;wo<Mt.length;wo++){var $c=Mt[wo];if(ut[$c]&H){for(var Uc=Fs,Tl=wo-1;Tl>=0;Tl--)if(!(ut[Mt[Tl]]&l)){Uc=ut[Mt[Tl]];break}$t($c,Uc&(s|Ee)?ft:Uc)}}if(zt.get(P))for(var xo=0;xo<Mt.length;xo++){var Il=Mt[xo];if(ut[Il]&P)for(var Bs=xo-1;Bs>=-1;Bs--){var FI=Bs===-1?Fs:ut[Mt[Bs]];if(FI&a){FI===tt&&$t(Il,z);break}}}if(zt.get(tt))for(var Vb=0;Vb<Mt.length;Vb++){var BI=Mt[Vb];ut[BI]&tt&&$t(BI,T)}if(zt.get(I)||zt.get(Q))for(var Zc=1;Zc<Mt.length-1;Zc++){var Lb=Mt[Zc];if(ut[Lb]&(I|Q)){for(var Dl=0,$b=0,Ub=Zc-1;Ub>=0&&(Dl=ut[Mt[Ub]],!!(Dl&l));Ub--);for(var Zb=Zc+1;Zb<Mt.length&&($b=ut[Mt[Zb]],!!($b&l));Zb++);Dl===$b&&(ut[Lb]===I?Dl===P:Dl&(P|z))&&$t(Lb,Dl)}}if(zt.get(P))for(var Jn=0;Jn<Mt.length;Jn++){var lst=Mt[Jn];if(ut[lst]&P){for(var S0=Jn-1;S0>=0&&ut[Mt[S0]]&(O|l);S0--)$t(Mt[S0],P);for(Jn++;Jn<Mt.length&&ut[Mt[Jn]]&(O|l|P);Jn++)ut[Mt[Jn]]!==P&&$t(Mt[Jn],P)}}if(zt.get(O)||zt.get(I)||zt.get(Q))for(var jc=0;jc<Mt.length;jc++){var NI=Mt[jc];if(ut[NI]&(O|I|Q)){$t(NI,ft);for(var _0=jc-1;_0>=0&&ut[Mt[_0]]&l;_0--)$t(Mt[_0],ft);for(var E0=jc+1;E0<Mt.length&&ut[Mt[E0]]&l;E0++)$t(Mt[E0],ft)}}if(zt.get(P))for(var jb=0,MI=Fs;jb<Mt.length;jb++){var zI=Mt[jb],Wb=ut[zI];Wb&P?MI===F&&$t(zI,F):Wb&a&&(MI=Wb)}if(zt.get(o)){var Wc=T|P|z,OI=Wc|F,A0=[];{for(var Pl=[],Fl=0;Fl<Mt.length;Fl++)if(ut[Mt[Fl]]&o){var Gc=rt[Mt[Fl]],RI=void 0;if(S(Gc)!==null)if(Pl.length<63)Pl.push({char:Gc,seqIndex:Fl});else break;else if((RI=_(Gc))!==null)for(var Hc=Pl.length-1;Hc>=0;Hc--){var Gb=Pl[Hc].char;if(Gb===RI||Gb===_(k(Gc))||S(k(Gb))===Gc){A0.push([Pl[Hc].seqIndex,Fl]),Pl.length=Hc;break}}}A0.sort(function(yr,bn){return yr[0]-bn[0]})}for(var Hb=0;Hb<A0.length;Hb++){for(var VI=A0[Hb],T0=VI[0],qb=VI[1],LI=!1,yn=0,Yb=T0+1;Yb<qb;Yb++){var $I=Mt[Yb];if(ut[$I]&OI){LI=!0;var UI=ut[$I]&Wc?T:F;if(UI===tn){yn=UI;break}}}if(LI&&!yn){yn=Fs;for(var Kb=T0-1;Kb>=0;Kb--){var ZI=Mt[Kb];if(ut[ZI]&OI){var jI=ut[ZI]&Wc?T:F;jI!==tn?yn=jI:yn=tn;break}}}if(yn){if(ut[Mt[T0]]=ut[Mt[qb]]=yn,yn!==tn){for(var qc=T0+1;qc<Mt.length;qc++)if(!(ut[Mt[qc]]&l)){f(rt[Mt[qc]])&H&&(ut[Mt[qc]]=yn);break}}if(yn!==tn){for(var Yc=qb+1;Yc<Mt.length;Yc++)if(!(ut[Mt[Yc]]&l)){f(rt[Mt[Yc]])&H&&(ut[Mt[Yc]]=yn);break}}}}for(var _a=0;_a<Mt.length;_a++)if(ut[Mt[_a]]&o){for(var WI=_a,Xb=_a,Jb=Fs,Kc=_a-1;Kc>=0;Kc--)if(ut[Mt[Kc]]&l)WI=Kc;else{Jb=ut[Mt[Kc]]&Wc?T:F;break}for(var GI=k0,Xc=_a+1;Xc<Mt.length;Xc++)if(ut[Mt[Xc]]&(o|l))Xb=Xc;else{GI=ut[Mt[Xc]]&Wc?T:F;break}for(var Qb=WI;Qb<=Xb;Qb++)ut[Mt[Qb]]=Jb===GI?Jb:tn;_a=Xb}}}for(var Mr=kt.start;Mr<=kt.end;Mr++){var ust=Pt[Mr],I0=ut[Mr];if(ust&1?I0&(F|P|z)&&Pt[Mr]++:I0&T?Pt[Mr]++:I0&(z|P)&&(Pt[Mr]+=2),I0&l&&(Pt[Mr]=Mr===0?kt.level:Pt[Mr-1]),Mr===kt.end||f(rt[Mr])&(dt|G))for(var D0=Mr;D0>=0&&f(rt[D0])&u;D0--)Pt[D0]=kt.level}}return{levels:Pt,paragraphs:Te};function HI(yr,bn){for(var br=yr;br<rt.length;br++){var Ea=ut[br];if(Ea&(T|tt))return 1;if(Ea&(G|F)||bn&&Ea===Ee)return 0;if(Ea&s){var qI=cst(br);br=qI===-1?rt.length:qI}}return 0}function cst(yr){for(var bn=1,br=yr+1;br<rt.length;br++){var Ea=ut[br];if(Ea&G)break;if(Ea&Ee){if(--bn===0)return br}else Ea&s&&bn++}return-1}}var q="14>1,j>2,t>2,u>2,1a>g,2v3>1,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1",ot;function Y(){if(!ot){var rt=g(q,!0),ct=rt.map,Tt=rt.reverseMap;Tt.forEach(function(ut,oe){ct.set(oe,ut)}),ot=ct}}function St(rt){return Y(),ot.get(rt)||null}function Bt(rt,ct,Tt,ut){var oe=rt.length;Tt=Math.max(0,Tt==null?0:+Tt),ut=Math.min(oe-1,ut==null?oe-1:+ut);for(var zt=new Map,$t=Tt;$t<=ut;$t++)if(ct[$t]&1){var Pt=St(rt[$t]);Pt!==null&&zt.set($t,Pt)}return zt}function Et(rt,ct,Tt,ut){var oe=rt.length;Tt=Math.max(0,Tt==null?0:+Tt),ut=Math.min(oe-1,ut==null?oe-1:+ut);var zt=[];return ct.paragraphs.forEach(function($t){var Pt=Math.max(Tt,$t.start),Se=Math.min(ut,$t.end);if(Pt<Se){for(var Te=ct.levels.slice(Pt,Se+1),kt=Se;kt>=Pt&&f(rt[kt])&u;kt--)Te[kt]=$t.level;for(var oi=$t.level,Ri=1/0,Le=0;Le<Te.length;Le++){var Fr=Te[Le];Fr>oi&&(oi=Fr),Fr<Ri&&(Ri=Fr|1)}for(var ui=oi;ui>=Ri;ui--)for(var me=0;me<Te.length;me++)if(Te[me]>=ui){for(var ue=me;me+1<Te.length&&Te[me+1]>=ui;)me++;me>ue&&zt.push([ue+Pt,me+Pt])}}}),zt}function Nt(rt,ct,Tt,ut){var oe=jt(rt,ct,Tt,ut),zt=[].concat(rt);return oe.forEach(function($t,Pt){zt[Pt]=(ct.levels[$t]&1?St(rt[$t]):null)||rt[$t]}),zt.join("")}function jt(rt,ct,Tt,ut){for(var oe=Et(rt,ct,Tt,ut),zt=[],$t=0;$t<rt.length;$t++)zt[$t]=$t;return oe.forEach(function(Pt){for(var Se=Pt[0],Te=Pt[1],kt=zt.slice(Se,Te+1),oi=kt.length;oi--;)zt[Te-oi]=kt[oi]}),zt}return t.closingToOpeningBracket=_,t.getBidiCharType=f,t.getBidiCharTypeName=h,t.getCanonicalBracket=k,t.getEmbeddingLevels=K,t.getMirroredCharacter=St,t.getMirroredCharactersMap=Bt,t.getReorderSegments=Et,t.getReorderedIndices=jt,t.getReorderedString=Nt,t.openingToClosingBracket=S,Object.defineProperty(t,"__esModule",{value:!0}),t}({});return e}var F6=QW,ny=null;function B6(){return ny||(ny=F6()),ny}var tG=/[--ۿ܀-ݏݐ-ݿހ-߀-߿ࠀ-ࡀ-ࡠ-ࢠ-ࣿיִ-ﭏﭐ-﷿ﹰ-𐴀-𐹠-𞠀-𞤀-𞥟--𞸀-]/u;function sy(e){return tG.test(e)}function N6(e){const t=B6(),{paragraphs:i}=t.getEmbeddingLevels(e);return i.length===0?"ltr":i[0].level%2===1?"rtl":"ltr"}function eG(e){const t=e.join(" ");return N6(t)}function iG(e,t){if(e.length<=1)return e.map((c,d)=>d);const i=e.join(" "),r=B6(),{levels:n}=r.getEmbeddingLevels(i,t),s=[];let a=0;for(let c=0;c<e.length;c++){const d=n[a];s.push(d),a+=e[c].length,c<e.length-1&&(a+=1)}const o=e.map((c,d)=>d),l=Math.max(...s),u=t==="rtl"?1:Math.min(...s.filter(c=>c%2===1),l+1);for(let c=l;c>=u;c--){let d=0;for(;d<o.length;)if(s[o[d]]>=c){let f=d;for(;f+1<o.length&&s[o[f+1]]>=c;)f++;if(d<f){let h=d,p=f;for(;h<p;){const g=o[h];o[h]=o[p],o[p]=g,h++,p--}}d=f+1}else d++}return o}function rG(e,t){return t?e==="left"?"right":e==="right"?"left":e:e}var ay=8205,nG=65038,oy=65039,sG=8419;function aG(e){return e>=127995&&e<=127999}function ly(e){return e>=127462&&e<=127487}function oG(e){return e>=917536&&e<=917631}function uy(e){return e===nG||e===oy||e===sG||aG(e)||oG(e)}var lG=new Set([169,174,8252,8265,8482,8505,8596,8597,8598,8599,8600,8601,8617,8618,8986,8987,9e3,9167,9410,9642,9643,9654,9664,9723,9724,9725,9726,10548,10549,12336,12349,12951,12953]);function uG(e){return uy(e)||e===ay?!1:ly(e)||e>=126976&&e<=129791||e>=9728&&e<=10175||e>=11008&&e<=11263||e>=9193&&e<=9210?!0:lG.has(e)}function cG(e){const t=Array.from(e,o=>o.codePointAt(0)??0),i=[];let r=[];const n=()=>{r.length>0&&(i.push({type:"text",text:String.fromCodePoint(...r)}),r=[])},s=o=>{n(),i.push({type:"emoji",text:String.fromCodePoint(...o),codepoints:o})};let a=0;for(;a<t.length;){const o=t[a],l=a+1<t.length?t[a+1]:-1;if(ly(o)){const c=[o];a++,a<t.length&&ly(t[a])&&(c.push(t[a]),a++),s(c);continue}if((uG(o)||l===oy)&&!uy(o)&&o!==ay){const c=[o];for(a++;a<t.length;){const d=t[a];if(d===ay){c.push(d),a++,a<t.length&&(c.push(t[a]),a++);continue}if(uy(d)){c.push(d),a++;continue}break}s(c);continue}r.push(o),a++}return n(),i}function cy(e){return e.filter(t=>t!==oy).map(t=>t.toString(16)).join("-")}function M6(e){const t=e.codePointAt(0);return t?t>=127744&&t<=129535||t>=9728&&t<=9983||t>=9984&&t<=10175||t>=65024&&t<=65039||t>=128512&&t<=128591||t>=128640&&t<=128767||t>=129280&&t<=129535||t>=129648&&t<=129791:!1}function dG(e){if(e.length<=1)return e;const t=e.slice(),i=t.map(a=>a.level),r=Math.max(...i),n=Math.min(...i),s=n%2===1?n:n+1;for(let a=r;a>=s;a--){let o=0;for(;o<t.length;)if(i[t.indexOf(t[o])]>=a){let l=o;for(;l+1<t.length&&t[l+1].level>=a;)l++;if(o<l){let u=o,c=l;for(;u<c;){const d=t[u];t[u]=t[c],t[c]=d,u++,c--}}o=l+1}else o++}return t}var z6=class{constructor(e){Gt(this,"fonts",e)}transformText(e,t){switch(t){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/\b\w/g,i=>i.toUpperCase());default:return e}}async shapeFull(e,t,i){try{const r=await this.fonts.getHB(),n=r.createBuffer();try{n.addText(e),n.guessSegmentProperties(),i&&n.setDirection(i);const s=await this.fonts.getFont(t),o=(await this.fonts.getFace(t))?.upem||1e3;return s.setScale(o,o),r.shape(s,n),n.json()}finally{try{n.destroy()}catch(s){console.error(`Error destroying HarfBuzz buffer: ${s instanceof Error?s.message:String(s)}`)}}}catch(r){throw new Error(`Failed to shape text with font "${t.family}": ${r instanceof Error?r.message:String(r)}`)}}splitIntoBidiRuns(e,t,i,r){const n=[];if(e.length===0)return n;let s=0,a=t[0],o=r?M6(e[0]):!1;for(let l=1;l<=e.length;l++){const u=l===e.length,c=u?-1:t[l],d=!u&&r?M6(String.fromCodePoint(e.codePointAt(l)??0)):!1;if(u||c!==a||r&&d!==o){const f=e.slice(s,l),h=o&&r?r:i;n.push({text:f,startIndex:s,endIndex:l,level:a,font:h}),u||(s=l,a=c,o=d)}}return n}async shapeWithBidi(e,t,i){const r=sy(e),n=/[a-zA-Z0-9]/.test(e);if(!(r&&n)&&!i){const f=r?"rtl":void 0;return this.shapeFull(e,t,f)}const a=F6(),{levels:o}=a.getEmbeddingLevels(e),l=this.splitIntoBidiRuns(e,o,t,i),u=[];for(const f of l){const h=f.level%2===1?"rtl":"ltr",p=await this.shapeFull(f.text,f.font,h);for(const g of p)g.cl+=f.startIndex,f.font!==t&&(g.fontDesc=f.font);u.push({glyphs:p,startIndex:f.startIndex,endIndex:f.endIndex,level:f.level})}const c=dG(u),d=[];for(const f of c)d.push(...f.glyphs);return d}async layout(e){try{const{textTransform:t,desc:i,fontSize:r,letterSpacing:n,wordSpacing:s=0,width:a}=e,o=this.transformText(e.text,t);if(!o||o.length===0)return[];const l=cG(o),u=l.some(T=>T.type==="emoji");let c;try{c=(await this.fonts.getFace(i))?.upem||1e3}catch(T){throw new Error(`Failed to get font metrics: ${T instanceof Error?T.message:String(T)}`)}const d=r/c,f=(T,P,I)=>{for(const O of T){const z=O.cl+P;let Q;if(z>=0&&z<o.length){const dt=o.codePointAt(z);dt!==void 0&&(Q=String.fromCodePoint(dt))}const G=Q===" ";I.push({id:O.g,xAdvance:O.ax*d+n+(G?s:0),xOffset:O.dx*d,yOffset:-O.dy*d,cluster:z,char:Q,fontDesc:O.fontDesc})}},h=[];try{if(u){let T=0;for(const P of l){if(P.type==="emoji")h.push({id:0,xAdvance:r+n,xOffset:0,yOffset:0,cluster:T,char:P.text,codepoints:P.codepoints,isColorEmoji:!0});else{const I=await this.shapeWithBidi(P.text,i);f(I,T,h)}T+=P.text.length}}else{const T=await this.shapeWithBidi(o,i);f(T,0,h)}}catch(T){throw new Error(`Text shaping failed: ${T instanceof Error?T.message:String(T)}`)}const p=[],g=new Map;for(const T of h)g.set(T.cluster,(g.get(T.cluster)??0)+T.xAdvance);const y=[...g.keys()].sort((T,P)=>T-P),v=(T,P)=>{const I=[];if(P>=T){const z=y[T],Q=y[P];for(let G=0;G<h.length;G++){const dt=h[G].cluster;dt>=z&&dt<=Q&&h[G].char!==`
|
|
382
384
|
`&&I.push(h[G])}}const O=I.reduce((z,Q)=>z+Q.xAdvance,0);p.push({glyphs:I,width:O,y:0})};let C=0,x=0,S=-1,_=0;for(;_<y.length;){const T=y[_],P=o[T],I=g.get(T)??0;if(P===`
|
|
383
385
|
`){v(C,_-1),C=_+1,x=0,S=-1,_++;continue}if(x+I>a&&_>C){if(S>=C){v(C,S),C=S+1,_=C,x=0,S=-1;continue}v(C,_-1),C=_,x=0,S=-1;continue}x+=I,P===" "&&(S=_),_++}if(C<y.length){const T=[],P=y[C],I=y[y.length-1];for(let O=0;O<h.length;O++){const z=h[O].cluster;z>=P&&z<=I&&h[O].char!==`
|
|
384
386
|
`&&T.push(h[O])}if(T.length>0){const O=T.reduce((z,Q)=>z+Q.xAdvance,0);p.push({glyphs:T,width:O,y:0})}}const k=sy(o)&&N6(o)==="rtl",F=e.lineHeight*r;for(let T=0;T<p.length;T++)p[T].y=(T+1)*F,p[T].isRTL=k;return p}catch(t){throw t instanceof Error?t:new Error(`Layout failed: ${String(t)}`)}}};function fG(e,t){return e.type==="linear"?{kind:"linear",angle:e.angle,stops:e.stops,opacity:t}:{kind:"radial",stops:e.stops,opacity:t}}function O6(e,t){const i=Math.max(1,Math.round(t.fontSize*.05));let r=t.baselineY+Math.round(t.fontSize*.1);return e==="line-through"&&(r=t.baselineY-Math.round(t.fontSize*.3)),{x1:t.xStart,x2:t.xStart+t.lineWidth,y:r,width:i}}var hG=/[MLCQZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi;function pG(e){return e.match(hG)??[]}function mG(e){const t=pG(e);let i=0,r=1/0,n=1/0,s=-1/0,a=-1/0;const o=(l,u)=>{l<r&&(r=l),u<n&&(n=u),l>s&&(s=l),u>a&&(a=u)};for(;i<t.length;)switch(t[i++]){case"M":case"L":{const u=parseFloat(t[i++]),c=parseFloat(t[i++]);o(u,c);break}case"C":{const u=parseFloat(t[i++]),c=parseFloat(t[i++]),d=parseFloat(t[i++]),f=parseFloat(t[i++]),h=parseFloat(t[i++]),p=parseFloat(t[i++]);o(u,c),o(d,f),o(h,p);break}case"Q":{const u=parseFloat(t[i++]),c=parseFloat(t[i++]),d=parseFloat(t[i++]),f=parseFloat(t[i++]);o(u,c),o(d,f);break}}return r===1/0?{x:0,y:0,w:0,h:0}:{x:r,y:n,w:s-r,h:a-n}}function gG(){let e=1/0,t=1/0,i=-1/0,r=-1/0;const n=(u,c,d,f)=>{!Number.isFinite(u)||!Number.isFinite(c)||!Number.isFinite(d)||!Number.isFinite(f)||(u<e&&(e=u),c<t&&(t=c),d>i&&(i=d),f>r&&(r=f))};return{addCorners:n,addGlyphPath:(u,c,d,f)=>{const h=mG(u);if(h.w===0&&h.h===0)return;const p=c+f*h.x,g=c+f*(h.x+h.w),y=d-f*(h.y+h.h),v=d-f*h.y;n(p,y,g,v)},addEmojiAdvance:(u,c,d,f)=>{n(u,c-d*.8,u+f,c+d*.2)},isEmpty:()=>e===1/0,result:()=>{if(e===1/0)return null;const u=i-e,c=r-t;return u<=0||c<=0?null:{x:e,y:t,w:u,h:c}}}}function yG(e){const t=(e.strokeWidth??0)/2,i=e.padding.top+t,r=e.padding.right+t,n=e.padding.bottom+t,s=e.padding.left+t;return{x:e.textBBox.x-s,y:e.textBBox.y-i,w:e.textBBox.w+s+r,h:e.textBBox.h+i+n}}function dy(e,t,i){return!Number.isFinite(e)||e<=0?0:Math.max(0,Math.min(e,t/2,i/2))}var bG="https://cdn.jsdelivr.net/gh/googlefonts/noto-emoji@main/svg";function vG(e){const t=cy(e);return`${bG}/emoji_u${t.replace(/-/g,"_")}.svg`}function wG(e){const{renderSvgToPng:t,fetchText:i}=e,r=new Map,n=new Map;return(s,a)=>{const o=Math.max(1,Math.round(a)),u=`${cy(s)}@${o}`,c=n.get(u);if(c)return c;const d=(async()=>{const f=vG(s);let h=r.get(f);h||(h=i(f).catch(()=>{}),r.set(f,h));const p=await h;if(p)try{return await t(p,{width:o})}catch{return}})();return n.set(u,d),d}}function xG(e,t){return`${cy(e)}@${Math.max(1,Math.round(t))}`}var CG=.82;function kG(e){return e==null?{top:0,right:0,bottom:0,left:0}:typeof e=="number"?{top:e,right:e,bottom:e,left:e}:e}function R6(e,t,i,r,n,s,a){!e||e==="M 0 0"||(a?.bbox&&a.bbox.addGlyphPath(e,t,i,r),a?.shadow&&a.shadow.blur>0&&s.push({isShadow:!0,op:"FillPath",path:e,x:t,y:i,scale:r,fill:{kind:"solid",color:a.shadow.color,opacity:a.shadow.opacity},shadowBlur:a.shadow.blur,shadowOffsetX:a.shadow.offsetX,shadowOffsetY:a.shadow.offsetY}),a?.stroke&&a.stroke.width>0&&s.push({op:"StrokePath",path:e,x:t,y:i,scale:r,width:a.stroke.width,color:a.stroke.color,opacity:a.stroke.opacity}),s.push({op:"FillPath",path:e,x:t,y:i,scale:r,fill:n}))}async function SG(e,t,i,r,n,s,a){let o=t;for(const l of e){const u=o+l.xOffset,c=i+l.yOffset,d=l.fontDesc?.family;if((l.isColorEmoji||d&&n.isColorEmojiFont&&n.isColorEmojiFont(d))&&l.codepoints&&l.codepoints.length>0&&n.emojiImage){const p=r.pixelRatio||1,g=Math.min(512,Math.max(32,Math.ceil(r.fontSize*p*2))),y=await n.emojiImage(l.codepoints,g),v=r.fontSize;s.push({op:"DrawEmojiImage",png:y?y.png:new Uint8Array(0),x:u,y:c-v*CG,width:v,height:v,cacheKey:xG(l.codepoints,g)}),o+=l.xAdvance;continue}const h=await n.glyphPathProvider(l.id,l.fontDesc);R6(h,u,c,r.scale,r.fill,s,{stroke:r.stroke,shadow:r.shadow,bbox:a}),o+=l.xAdvance}return o}async function _G(e){const t=[],i=kG(e.padding),r=e.border?.width??0;if(t.push({op:"BeginFrame",width:e.canvas.width,height:e.canvas.height,pixelRatio:e.canvas.pixelRatio,clear:!0,bg:void 0}),e.lines.length===0)return t;const n=Math.max(1,await e.getUnitsPerEm()),s=e.font.size/n,a=e.lines.length,o=e.font.size*e.style.lineHeight;let l;switch(e.align.vertical){case"top":l=e.font.size;break;case"bottom":l=e.textRect.height-(a-1)*o;break;case"middle":default:const C=e.font.size*.35;l=(e.textRect.height-(a-1)*o)/2+C;break}l+=r+i.top;const u=e.style.gradient?fG(e.style.gradient,1):{kind:"solid",color:e.font.color,opacity:e.font.opacity},c=e.style.gradient?e.style.gradient.stops[e.style.gradient.stops.length-1]?.color??e.font.color:e.font.color,d=[],f=[],h={scale:s,fontSize:e.font.size,pixelRatio:e.canvas.pixelRatio,fill:u,stroke:e.stroke,shadow:e.shadow},p={glyphPathProvider:e.glyphPathProvider,isColorEmojiFont:e.isColorEmojiFont,emojiImage:e.emojiImage},g=gG();for(const v of e.lines){let C;switch(e.align.horizontal){case"left":C=0;break;case"right":C=e.textRect.width-v.width;break;case"center":default:C=(e.textRect.width-v.width)/2;break}C+=r+i.left;const x=e.lines.indexOf(v),S=l+x*o;if(e.font.background){const _=e.font.size*.15,k=e.font.size*.12,F=e.font.size*.92+k*2,T=S-e.font.size*.78-k;f.push({op:"Rectangle",x:C-_,y:T,width:v.width+_*2,height:F,fill:{kind:"solid",color:e.font.background,opacity:1}})}if(await SG(v.glyphs,C,S,h,p,d,g),e.style.textDecoration!=="none"){const _=O6(e.style.textDecoration,{baselineY:S,fontSize:e.font.size,lineWidth:v.width,xStart:C});d.push({op:"DecorationLine",from:{x:_.x1,y:_.y},to:{x:_.x2,y:_.y},width:_.width,color:c,opacity:e.font.opacity})}}const y=g.result();if(y){const v={x:y.x,y:y.y,w:Math.max(1,y.w),h:Math.max(1,y.h)};for(const C of d)C.op==="FillPath"&&!C.isShadow&&(C.gradientBBox=v)}if(e.background||e.border){const v=e.background?.wrap===!0,C=e.contentRect?.width??e.canvas.width,x=e.contentRect?.height??e.canvas.height,S=e.border?.width??0,_=e.border?.radius??e.background?.borderRadius??0,k=S/2;let F,T,P,I;if(v&&y){const Q=yG({textBBox:y,padding:i,strokeWidth:e.stroke?.width??0});F=Q.x,T=Q.y,P=Q.w,I=Q.h}else{const Q=e.canvas.width/2,G=e.canvas.height/2;F=Q-C/2,T=G-x/2,P=C,I=x}const O=dy(_,P-S,I-S),z=Math.max(0,O-k);e.background?.color&&t.push({op:"Rectangle",x:F+S,y:T+S,width:P-S*2,height:I-S*2,fill:{kind:"solid",color:e.background.color,opacity:e.background.opacity},borderRadius:z}),e.border&&e.border.width>0&&t.push({op:"RectangleStroke",x:F+k,y:T+k,width:P-S,height:I-S,stroke:{width:e.border.width,color:e.border.color,opacity:e.border.opacity},borderRadius:O})}return t.push(...f),t.push(...d),t}var fy=.999;function EG(e,t,i){if(!i.anim||!i.anim.preset)return e;const{preset:r}=i.anim,n=t.reduce((l,u)=>l+u.glyphs.length,0);let s=Math.max(.3,n/(30*i.anim.speed));i.clipDuration&&!i.anim.duration&&(s=Math.min(s,i.clipDuration*.9));const a=i.anim.duration??s,o=Math.max(0,Math.min(1,i.t/a));switch(r){case"typewriter":return TG(e,t,o,i.anim.style,i.fontSize,i.t);case"fadeIn":return PG(e,t,o,i.anim.style,i.fontSize,a);case"slideIn":return FG(e,t,o,i.anim.direction??"left",i.fontSize,i.anim.style,a);case"shift":return DG(e,t,o,i.anim.direction??"left",i.fontSize,i.anim.style,a);case"ascend":return IG(e,t,o,i.anim.direction??"up",i.fontSize,a);case"movingLetters":return BG(e,i.t,i.anim.direction??"up",i.fontSize);default:return e}}var Wa=e=>e.op==="FillPath"&&e.isShadow===!0,lh=e=>e.op==="FillPath"&&e.isShadow!==!0||e.op==="DrawEmojiImage";function ea(e){return e.length>0&&e[0].isRTL===!0}function AG(e){for(const t of e)if(t.op==="FillPath"){const i=t.fill;if(i?.kind==="solid")return i.color;if((i?.kind==="linear"||i?.kind==="radial")&&Array.isArray(i.stops)&&i.stops.length)return i.stops[i.stops.length-1].color||"#000000"}return"#000000"}function TG(e,t,i,r,n,s,a){if(r==="word"){const l=Vu(t),u=l.length,c=Math.floor(i*u);if(c===0)return e.filter(p=>p.op==="BeginFrame"||p.op==="Rectangle"||p.op==="RectangleStroke");let d=0;for(let p=0;p<Math.min(c,l.length);p++)d+=l[p].glyphCount;const f=ea(t)?V6(e,d):L6(e,d),h=i>=fy?f:f.filter(p=>p.op!=="DecorationLine");return i<1&&d>0?$6(h,d,n,s,ea(t)):h}else{const l=t.reduce((f,h)=>f+h.glyphs.length,0),u=Math.floor(i*l);if(u===0)return e.filter(f=>f.op==="BeginFrame"||f.op==="Rectangle"||f.op==="RectangleStroke");const c=ea(t)?V6(e,u):L6(e,u),d=i>=fy?c:c.filter(f=>f.op!=="DecorationLine");return i<1&&u>0?$6(d,u,n,s,ea(t)):d}}function IG(e,t,i,r,n,s){const a=Vu(t),o=a.length;if(o===0)return e;const l=[];let u=0;for(const c of e)if((c.op==="BeginFrame"||c.op==="Rectangle"||c.op==="RectangleStroke")&&l.push(c),c.op==="FillPath"||c.op==="StrokePath")break;for(const c of e)if(c.op==="FillPath"||c.op==="StrokePath"||c.op==="DrawEmojiImage"){let d=-1,f=0;for(let h=0;h<a.length;h++){const p=a[h].glyphCount;if(u>=f&&u<f+p){d=h;break}f+=p}if(d>=0){const p=(ea(t)?Math.max(0,o-1-d):d)/Math.max(1,o)*(s/s),g=Math.min(1,p+.3);if(i>=g)l.push(c);else if(i>p){const y=(i-p)/Math.max(1e-6,g-p),v=uh(Math.min(1,y)),C=r==="up"?n*.4:-n*.4,x={...c,y:c.y+C*(1-v)};c.op==="FillPath"?x.fill.kind==="solid"?x.fill={...x.fill,opacity:x.fill.opacity*v}:x.fill={...x.fill,opacity:(x.fill.opacity??1)*v}:x.opacity=(x.opacity??1)*v,l.push(x)}}lh(c)&&u++}else c.op==="DecorationLine"&&i>=fy&&l.push(c);return l}function DG(e,t,i,r,n,s,a){const o=s==="word",u={left:{x:n*.6,y:0},right:{x:-n*.6,y:0},up:{x:0,y:n*.6},down:{x:0,y:-n*.6}}[r],c=o?Vu(t):[],d=t.reduce((x,S)=>x+S.glyphs.length,0),f=o?c.length:d;if(f===0)return e;const h=[];for(const x of e)if((x.op==="BeginFrame"||x.op==="Rectangle"||x.op==="RectangleStroke")&&h.push(x),x.op==="FillPath"||x.op==="StrokePath")break;const p=.3,y=a*.7/Math.max(1,f-1),v=x=>{const S=x*y,_=S/a,k=Math.min(1,(S+p)/a);return{startF:_,endF:k}};let C=0;for(const x of e){if(x.op!=="FillPath"&&x.op!=="StrokePath"&&x.op!=="DrawEmojiImage"){x.op==="DecorationLine"&&i>.8&&h.push(x);continue}let S;if(!o)S=C;else{let T=-1,P=0;for(let I=0;I<c.length;I++){const O=c[I].glyphCount;if(C>=P&&C<P+O){T=I;break}P+=O}S=Math.max(0,T)}const _=ea(t)?Math.max(0,f-1-S):S,{startF:k,endF:F}=v(_);if(i<=k){const T={...x,x:x.x+u.x,y:x.y+u.y};x.op==="FillPath"?T.fill.kind==="solid"?T.fill={...T.fill,opacity:0}:T.fill={...T.fill,opacity:0}:T.opacity=0,h.push(T)}else if(i>=F)h.push(x);else{const T=(i-k)/Math.max(1e-6,F-k),P=uh(Math.min(1,T)),I=u.x*(1-P),O=u.y*(1-P),z={...x,x:x.x+I,y:x.y+O};if(x.op==="FillPath"){const Q=z.fill.kind==="solid"?z.fill.opacity:z.fill.opacity??1;z.fill.kind==="solid"?z.fill={...z.fill,opacity:Q*P}:z.fill={...z.fill,opacity:Q*P}}else z.opacity=(z.opacity??1)*P;h.push(z)}lh(x)&&C++}return h}function PG(e,t,i,r,n,s){const a=r==="word";if(!a&&!(r==="character")){const v=hy(i),C=.95+.05*v;return MG(e,v,C)}const l=a?Vu(t):[],u=t.reduce((v,C)=>v+C.glyphs.length,0),c=a?l.length:u;if(c===0)return e;const d=[];for(const v of e)if(v.op==="BeginFrame"){d.push(v);break}const f=.3,p=s*.7/Math.max(1,c-1),g=v=>{const C=v*p,x=C/s,S=Math.min(1,(C+f)/s);return{startF:x,endF:S}};let y=0;for(const v of e){if(v.op!=="FillPath"&&v.op!=="StrokePath"&&v.op!=="DrawEmojiImage"){v.op==="DecorationLine"&&i>.8&&d.push(v);continue}let C;if(!a)C=y;else{let k=-1,F=0;for(let T=0;T<l.length;T++){const P=l[T].glyphCount;if(y>=F&&y<F+P){k=T;break}F+=P}C=Math.max(0,k)}const x=ea(t)?Math.max(0,c-1-C):C,{startF:S,endF:_}=g(x);if(i<=S){const k={...v};v.op==="FillPath"?k.fill.kind==="solid"?k.fill={...k.fill,opacity:0}:k.fill={...k.fill,opacity:0}:k.opacity=0,d.push(k)}else if(i>=_)d.push(v);else{const k=(i-S)/Math.max(1e-6,_-S),F=hy(Math.min(1,k)),T={...v};if(v.op==="FillPath"){const P=T.fill.kind==="solid"?T.fill.opacity:T.fill.opacity??1;T.fill.kind==="solid"?T.fill={...T.fill,opacity:P*F}:T.fill={...T.fill,opacity:P*F}}else T.opacity=(T.opacity??1)*F;d.push(T)}lh(v)&&y++}return d}function FG(e,t,i,r,n,s,a){const o=s==="word";if(!o&&!(s==="character")){const S=uh(i),_=RG(1-S,r,n*2),k=hy(i);return zG(e,_.dx,_.dy,k)}const c={left:{x:n*2,y:0},right:{x:-n*2,y:0},up:{x:0,y:n*2},down:{x:0,y:-n*2}}[r],d=o?Vu(t):[],f=t.reduce((S,_)=>S+_.glyphs.length,0),h=o?d.length:f;if(h===0)return e;const p=[];for(const S of e)if(S.op==="BeginFrame"){p.push(S);break}const g=.3,v=a*.7/Math.max(1,h-1),C=S=>{const _=S*v,k=_/a,F=Math.min(1,(_+g)/a);return{startF:k,endF:F}};let x=0;for(const S of e){if(S.op!=="FillPath"&&S.op!=="StrokePath"&&S.op!=="DrawEmojiImage"){S.op==="DecorationLine"&&i>.8&&p.push(S);continue}let _;if(!o)_=x;else{let P=-1,I=0;for(let O=0;O<d.length;O++){const z=d[O].glyphCount;if(x>=I&&x<I+z){P=O;break}I+=z}_=Math.max(0,P)}const k=ea(t)?Math.max(0,h-1-_):_,{startF:F,endF:T}=C(k);if(i<=F){const P={...S,x:S.x+c.x,y:S.y+c.y};S.op==="FillPath"?P.fill.kind==="solid"?P.fill={...P.fill,opacity:0}:P.fill={...P.fill,opacity:0}:P.opacity=0,p.push(P)}else if(i>=T)p.push(S);else{const P=(i-F)/Math.max(1e-6,T-F),I=uh(Math.min(1,P)),O=c.x*(1-I),z=c.y*(1-I),Q={...S,x:S.x+O,y:S.y+z};if(S.op==="FillPath"){const G=Q.fill.kind==="solid"?Q.fill.opacity:Q.fill.opacity??1;Q.fill.kind==="solid"?Q.fill={...Q.fill,opacity:G*I}:Q.fill={...Q.fill,opacity:G*I}}else Q.opacity=(Q.opacity??1)*I;p.push(Q)}lh(S)&&x++}return p}function BG(e,t,i,r){const n=r*.3;return OG(e,i,n,t)}function Vu(e){const t=[];let i=0;for(let r=0;r<e.length;r++){const n=e[r],s=NG(n);for(const a of s)a.length>0&&t.push({startGlyph:i,glyphCount:a.length,lineIndex:r}),i+=a.length}return t}function NG(e){const t=[];let i=[];for(const r of e.glyphs)r.char===" "||r.char===" "||r.char===`
|
|
@@ -864,7 +866,7 @@ Please check your media files.`}class WT{element;options;currentState=null;curre
|
|
|
864
866
|
<button type="button" class="ss-ai-note ss-ai-note--action" data-generate-note-action hidden></button>
|
|
865
867
|
</div>
|
|
866
868
|
<span class="ss-ai-error" data-generate-error hidden></span>
|
|
867
|
-
`,t.insertBefore(this.container,t.firstChild),this.promptInput=this.container.querySelector("[data-prompt-input]"),this.generateBtn=this.container.querySelector("[data-action='generate']"),this.generateError=this.container.querySelector("[data-generate-error]"),this.generateNote=this.container.querySelector("[data-generate-note]"),this.generateNoteAction=this.container.querySelector("[data-generate-note-action]"),this.generateGroup=this.container.querySelector("[data-generate-group]"),this.modelBtn=this.container.querySelector("[data-model-picker]"),this.modelLabel=this.container.querySelector("[data-model-label]"),this.modelPopup=this.container.querySelector("[data-model-popup]"),this.optionsBtn=this.container.querySelector("[data-options-picker]"),this.optionsPopup=this.container.querySelector("[data-options-popup]"),this.setupEventListeners(),this.subscribeToEditState(),this.setupOutsideClickHandler(),this.enableDrag(),this.appendDeleteButton()}setupEventListeners(){this.abortController?.abort(),this.abortController=new AbortController;const{signal:t}=this.abortController;this.promptInput?.addEventListener("input",()=>{this.schedulePromptCommit(),this.syncState()},{signal:t}),this.promptInput?.addEventListener("keydown",i=>{i.key==="Enter"&&(i.preventDefault(),this.commitPrompt(),this.requestGeneration())},{signal:t}),this.generateBtn?.addEventListener("click",i=>{i.stopPropagation(),this.commitPrompt(),this.requestGeneration()},{signal:t}),this.modelBtn?.addEventListener("click",i=>{i.stopPropagation(),this.togglePopup(this.modelPopup)},{signal:t}),this.optionsBtn?.addEventListener("click",i=>{i.stopPropagation(),this.togglePopup(this.optionsPopup)},{signal:t}),this.generateNoteAction?.addEventListener("click",i=>{i.stopPropagation();const r=this.getSelectedClipId();r&&this.edit.getGenerationStatus(r)?.onActivate?.()},{signal:t})}requestGeneration(){const t=wa(this.edit.getResolvedClip(this.selectedTrackIdx,this.selectedClipIdx)?.asset),i=z0[String(t.type)],r=i?this.edit.getGenerationModels(i)?.find(s=>s.model===t.model):void 0;if(r&&dE(r,wa(t.options)).length>0)return;const n=this.getSelectedClipId();n&&(this.promptInput?.value??"").trim()!==""&&this.edit.getClipGenerationState(n)?.status!=="generating"&&this.edit.getGenerationStatus(n)?.tone!=="error"&&this.edit.generateClip(n).catch(s=>{console.warn(`Generate: ${s instanceof Error?s.message:String(s)}`)})}subscribeToEditState(){if(this.generationUnsubscribers.length>0)return;const t=this.edit.getInternalEvents(),i=[Z.ClipGenerationStarted,Z.ClipGenerationCompleted,Z.ClipGenerationFailed,_t.GenerationStatusChanged];for(const s of i){const a=o=>{o.clipId===this.getSelectedClipId()&&this.syncState()};t.on(s,a),this.generationUnsubscribers.push(()=>t.off(s,a))}const r=()=>this.syncState();t.on(_t.AssetGeneratorChanged,r),this.generationUnsubscribers.push(()=>t.off(_t.AssetGeneratorChanged,r));const n=()=>this.syncState();this.edit.events.on(Z.EditChanged,n),this.generationUnsubscribers.push(()=>this.edit.events.off(Z.EditChanged,n))}schedulePromptCommit(){this.promptDebounceTimer&&clearTimeout(this.promptDebounceTimer),this.promptDebounceTimer=setTimeout(()=>this.commitPrompt(),Brt)}commitPrompt(){this.promptDebounceTimer&&clearTimeout(this.promptDebounceTimer),this.promptDebounceTimer=null;const t=this.edit.getResolvedClip(this.selectedTrackIdx,this.selectedClipIdx);if(!t)return;const i=O0(t.asset),r=`asset.${i}`,n=this.promptInput?.value??"",s=n.trim()==="",a=this.edit.resolveMergeFields(n),o=this.edit.getDocument(),l=this.getSelectedClipId();l&&o&&(!s&&Mh.test(n)?o.setClipBinding(l,r,{placeholder:n,resolvedValue:a}):o.removeClipBinding(l,r)),!s&&this.edit.updateClip(this.selectedTrackIdx,this.selectedClipIdx,{asset:{...t.asset,[i]:a}})}selectModel(t){const i=wa(this.edit.getDocumentClip(this.selectedTrackIdx,this.selectedClipIdx)?.asset),r=wa(this.edit.getResolvedClip(this.selectedTrackIdx,this.selectedClipIdx)?.asset),n=XX(t,wa(i.options),wa(r.options));this.edit.generationSettings&&t.optionNames.includes("imageUrls")&&i.type==="image"&&typeof i.src=="string"&&i.src.trim()&&(n.imageUrls===void 0||Array.isArray(n.imageUrls)&&n.imageUrls.length===0)&&(n.imageUrls=[i.src]),this.edit.updateClip(this.selectedTrackIdx,this.selectedClipIdx,{asset:{model:t.model,options:n}}),this.closeAllPopups()}renderModelPopup(t,i){if(this.modelPopup){this.modelPopup.replaceChildren();for(const r of t){const n=document.createElement("button");n.type="button",n.className="ss-media-toolbar-popup-item",n.dataset.modelValue=r.model,n.textContent=r.name||r.model,n.classList.toggle("active",r.model===i),n.addEventListener("click",()=>this.selectModel(r)),this.modelPopup.appendChild(n)}}}createOptionControl(t,i){if(t.values){const n=document.createElement("select"),s=document.createElement("option");s.value="",s.textContent="Select…",n.appendChild(s);for(const a of t.values){const o=document.createElement("option");o.value=a,o.textContent=a,n.appendChild(o)}return n.value=typeof i=="string"?i:"",n}const r=document.createElement("input");return r.type=t.format==="uri"?"url":Nrt[t.type],r.type==="checkbox"?r.checked=i===!0:r.value=i===void 0?"":String(i),t.minimum!==void 0&&(r.min=String(t.minimum)),t.maximum!==void 0&&(r.max=String(t.maximum)),r}readOptionControl(t,i){if(t instanceof HTMLInputElement&&t.type==="checkbox")return t.checked;if(t.value!=="")return i.type==="integer"?Number(t.value):t.value}renderOptions(t,i){if(this.optionsPopup){this.optionsPopup.replaceChildren(),this.optionRows.clear();for(const r of t.options){const n=document.createElement("label");n.className="ss-ai-option-row",n.dataset.optionRow=r.name;const s=document.createElement("span");s.textContent=r.title;const a=i[r.name]??(r.hasDefault?r.defaultValue:void 0),o=this.createOptionControl(r,a);o.dataset.option=r.name,o.required=r.required&&r.type!=="boolean",o.addEventListener("change",()=>{if(!o.validity.valid&&!o.validity.valueMissing)return;const l=this.readOptionControl(o,r);this.edit.updateClip(this.selectedTrackIdx,this.selectedClipIdx,{asset:{options:{[r.name]:l}}}),this.syncMissingOptions(t,{...i,[r.name]:l})}),n.append(s,o),this.optionRows.set(r.name,n),this.optionsPopup.appendChild(n)}for(const r of t.unsupported){const n=document.createElement("div");n.className="ss-ai-option-row is-unsupported",this.optionRows.set(r.name,n),n.title=this.edit.generationSettings?"Use Generation settings to configure this option.":"This option can only be set outside the editor.";const s=document.createElement("span");s.textContent=r.title;const a=document.createElement("span");a.className="ss-ai-option-state",a.textContent=i[r.name]===void 0?"Not set":"Configured",n.append(s,a),this.optionsPopup.appendChild(n)}if(this.edit.generationSettings){const r=document.createElement("button");r.type="button",r.className="ss-media-toolbar-btn",r.dataset.action="generation-options",r.textContent="Generation settings",r.addEventListener("click",()=>{const n=this.getSelectedClipId();n&&(this.closeAllPopups(),this.edit.generationSettings?.({clipId:n,model:t.model}))}),this.optionsPopup.appendChild(r)}}}syncMissingOptions(t,i){const r=t?dE(t,i):[];if(this.optionsBtn?.classList.toggle("has-error",r.length>0),this.optionsBtn&&(this.optionsBtn.title=r.length>0?`Missing: ${r.join(", ")}`:"Generation options"),t){for(const n of t.options)this.optionRows.get(n.name)?.toggleAttribute("data-missing",n.required&&!Rh(n,i[n.name]));for(const n of t.unsupported)this.optionRows.get(n.name)?.toggleAttribute("data-missing",n.required===!0&&i[n.name]===void 0)}return r}syncCatalogueControls(t){const i=typeof t.type=="string"?z0[t.type]:void 0,r=i?this.edit.getGenerationModels(i):void 0,n=typeof t.model=="string"?t.model:void 0,s=r?.find(o=>o.model===n);if(this.modelBtn&&(this.modelBtn.hidden=r===void 0,this.modelBtn.disabled=r?.length===0,this.modelBtn.classList.toggle("is-unavailable",n!==void 0&&s===void 0)),this.modelLabel&&(this.modelLabel.textContent=Mrt(r,n,s)),this.renderModelPopup(r??[],n),this.optionsBtn){const o=s!==void 0&&s.options.length===0&&s.unsupported.length===0;this.optionsBtn.hidden=r===void 0||r.length===0||o&&!this.edit.generationSettings,this.optionsBtn.disabled=s===void 0}const a=wa(t.options);return s?this.renderOptions(s,a):(this.optionsPopup?.replaceChildren(),this.optionRows.clear()),this.syncMissingOptions(s,a)}syncState(){const i=this.edit.getResolvedClip(this.selectedTrackIdx,this.selectedClipIdx)?.asset;if(!cv(i)||!this.generateBtn)return;if(this.promptInput&&this.promptDebounceTimer===null){const f=O0(i),h=this.edit.getDocument(),p=this.getSelectedClipId(),g=p?h?.getClipBinding(p,`asset.${f}`):void 0,y=i[f];this.promptInput.value=g?.placeholder??(typeof y=="string"?y:"")}const r=this.syncCatalogueControls(wa(i)),n=this.edit.hasAssetGenerator();this.generateBtn.hidden=!n;const s=n?this.edit.getGenerationStatus(this.getSelectedClipId()??""):void 0;if(this.generateGroup?.classList.toggle("has-status",s!==void 0),this.generateNote&&this.generateNoteAction){const f=s?.onActivate!==void 0;if(!n)this.generateNote.textContent="Generates on render",this.generateNote.title="Rendering generates this from the prompt. Register an asset generator to preview it here.",delete this.generateNote.dataset.tone;else if(s){const h=f?this.generateNoteAction:this.generateNote;h.textContent=s.text,h.dataset.tone=s.tone??"neutral",h.removeAttribute("title")}for(const[h,p]of[[this.generateNote,!n||s!==void 0&&!f],[this.generateNoteAction,f]])p||(h.textContent="",delete h.dataset.tone,h.removeAttribute("title")),h.hidden=!p}if(!n){this.generateError&&(this.generateError.hidden=!0);return}const a=this.getSelectedClipId(),o=a?this.edit.getClipGenerationState(a):void 0,l=o?.status==="generating",u=(this.promptInput?.value??"").trim()!=="",c=this.generateBtn.querySelector("[data-generate-label]"),d=s?.tone==="error";if(this.generateBtn.disabled=l||!u||r.length>0||d,this.generateBtn.classList.toggle("is-generating",l),c&&(l?c.textContent="Generating…":o?.status==="failed"?c.textContent="Retry":c.textContent="Generate"),this.generateError){const f=o?.status==="failed"?o.error??"Generation failed":"";this.generateError.textContent=f,this.generateError.hidden=f===""}}getPopupList(){return[this.modelPopup,this.optionsPopup]}dispose(){this.abortController?.abort(),this.abortController=null,this.promptDebounceTimer&&clearTimeout(this.promptDebounceTimer),this.promptDebounceTimer=null;for(const t of this.generationUnsubscribers)t();this.generationUnsubscribers=[],super.dispose(),this.promptInput=null,this.generateBtn=null,this.generateError=null,this.generateNote=null,this.generateNoteAction=null,this.generateGroup=null,this.modelBtn=null,this.modelLabel=null,this.modelPopup=null,this.optionsBtn=null,this.optionsPopup=null,this.optionRows.clear()}}function _b(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0&&e<=1}function tI(e){return e.start+e.length}function Ort(e,t){if(e.length===0||!Number.isFinite(t)||t<0)return null;for(let o=0;o<e.length;o+=1){const l=e[o],u=l.interpolation??"linear";if(!_b(l.from)||!_b(l.to)||typeof l.start!="number"||!Number.isFinite(l.start)||l.start<0||typeof l.length!="number"||!Number.isFinite(l.length)||l.length<=xi||u!=="linear"&&u!=="constant"||l.easing!==void 0||o===0&&Math.abs(l.start)>xi)return null;const c=e[o+1];if(c&&(typeof c.start!="number"||Math.abs(tI(l)-c.start)>xi||l.to!==c.from))return null}const i=e.findIndex(o=>(o.interpolation??"linear")==="linear");if(i===-1)return null;const r=e.findLastIndex(o=>(o.interpolation??"linear")==="linear");for(let o=0;o<e.length;o+=1){const l=e[o],u=o===0||o===e.length-1;if((l.interpolation??"linear")==="constant"&&(!u||l.from!==l.to))return null}const n=e.slice(i,r+1),s=n[0],a=[{time:s.start,value:s.from}];for(const o of n)a.push({time:tI(o),value:o.to});return a}function Eb(e,t){if(e.length<2||!Number.isFinite(t)||t<0)return null;for(let a=0;a<e.length;a+=1){const o=e[a];if(!Number.isFinite(o.time)||o.time<0||!_b(o.value)||a>0&&o.time-e[a-1].time<=xi)return null}const i=[],r=e[0];r.time>xi&&i.push({from:r.value,to:r.value,start:0,length:r.time,interpolation:"constant"});for(let a=0;a<e.length-1;a+=1){const o=e[a],l=e[a+1];i.push({from:o.value,to:l.value,start:o.time,length:l.time-o.time,interpolation:"linear"})}const n=e[e.length-1],s=Math.max(t,n.time);return s-n.time>xi&&i.push({from:n.value,to:n.value,start:n.time,length:s-n.time,interpolation:"constant"}),i}function eI(e,t,i){try{const r=new Ns(e??1,i,1).getValue(Math.max(0,Math.min(t,i)));return Number.isFinite(r)?Math.max(0,Math.min(1,r)):null}catch{return null}}function iI(e,t,i){const r=Math.max(0,Math.min(e,t));return r<=xi?0:t-r<=xi?t:!Number.isFinite(i)||i<=0?r:Math.max(0,Math.min(t,Math.round(r*i)/i))}function xa(e,t,i,r=0){const n=Number.isFinite(i)&&i>0?.5/i+xi:xi;if(r!==0){const l=xa(e,t,i)?.time??t;return r<0?e.findLast(u=>u.time<l-xi):e.find(u=>u.time>l+xi)}let s,a=Number.POSITIVE_INFINITY;for(const o of e){const l=Math.abs(o.time-t);l<=n&&l<a&&(s=o,a=l)}return s}function rI(e,t,i,r,n){const s=iI(t,r,n),a=xa(e,s,n);return(a?e.map(l=>l===a?{time:l.time,value:i}:l):[...e,{time:s,value:i}]).toSorted((l,u)=>l.time-u.time)}function Rrt(e,t,i){const r=xa(e,t,i);return r?e.filter(n=>n!==r):[...e]}class pn extends va{static EFFECT_TYPES=["","zoom","slide"];static DIRECTIONS=["Left","Right","Up","Down"];static SPEEDS=[.5,1,2];state={type:"",variant:"In",direction:"Right",speed:1};typeButtons=null;variantRow=null;variantButtons=null;directionRow=null;directionButtons=null;speedRow=null;speedLabel=null;speedDecreaseBtn=null;speedIncreaseBtn=null;render(){const t=pn.EFFECT_TYPES.map(n=>`<button class="ss-effect-type" data-effect-type="${n}">${n?n.charAt(0).toUpperCase()+n.slice(1):"None"}</button>`).join(""),i=`
|
|
869
|
+
`,t.insertBefore(this.container,t.firstChild),this.promptInput=this.container.querySelector("[data-prompt-input]"),this.generateBtn=this.container.querySelector("[data-action='generate']"),this.generateError=this.container.querySelector("[data-generate-error]"),this.generateNote=this.container.querySelector("[data-generate-note]"),this.generateNoteAction=this.container.querySelector("[data-generate-note-action]"),this.generateGroup=this.container.querySelector("[data-generate-group]"),this.modelBtn=this.container.querySelector("[data-model-picker]"),this.modelLabel=this.container.querySelector("[data-model-label]"),this.modelPopup=this.container.querySelector("[data-model-popup]"),this.optionsBtn=this.container.querySelector("[data-options-picker]"),this.optionsPopup=this.container.querySelector("[data-options-popup]"),this.setupEventListeners(),this.subscribeToEditState(),this.setupOutsideClickHandler(),this.enableDrag(),this.appendDeleteButton()}setupEventListeners(){this.abortController?.abort(),this.abortController=new AbortController;const{signal:t}=this.abortController;this.promptInput?.addEventListener("input",()=>{this.schedulePromptCommit(),this.syncState()},{signal:t}),this.promptInput?.addEventListener("keydown",i=>{i.key==="Enter"&&(i.preventDefault(),this.commitPrompt(),this.requestGeneration())},{signal:t}),this.generateBtn?.addEventListener("click",i=>{i.stopPropagation(),this.commitPrompt(),this.requestGeneration()},{signal:t}),this.modelBtn?.addEventListener("click",i=>{i.stopPropagation(),this.togglePopup(this.modelPopup)},{signal:t}),this.optionsBtn?.addEventListener("click",i=>{i.stopPropagation(),this.togglePopup(this.optionsPopup)},{signal:t}),this.generateNoteAction?.addEventListener("click",i=>{i.stopPropagation();const r=this.getSelectedClipId();r&&this.edit.getGenerationStatus(r)?.onActivate?.()},{signal:t})}requestGeneration(){const t=wa(this.edit.getResolvedClip(this.selectedTrackIdx,this.selectedClipIdx)?.asset),i=z0[String(t.type)],r=i?this.edit.getGenerationModels(i)?.find(s=>s.model===t.model):void 0;if(r&&dE(r,wa(t.options)).length>0)return;const n=this.getSelectedClipId();n&&(this.promptInput?.value??"").trim()!==""&&this.edit.getClipGenerationState(n)?.status!=="generating"&&this.edit.getGenerationStatus(n)?.tone!=="error"&&this.edit.generateClip(n).catch(s=>{console.warn(`Generate: ${s instanceof Error?s.message:String(s)}`)})}subscribeToEditState(){if(this.generationUnsubscribers.length>0)return;const t=this.edit.getInternalEvents(),i=[Z.ClipGenerationStarted,Z.ClipGenerationCompleted,Z.ClipGenerationFailed,_t.GenerationStatusChanged];for(const s of i){const a=o=>{o.clipId===this.getSelectedClipId()&&this.syncState()};t.on(s,a),this.generationUnsubscribers.push(()=>t.off(s,a))}const r=()=>this.syncState();t.on(_t.AssetGeneratorChanged,r),this.generationUnsubscribers.push(()=>t.off(_t.AssetGeneratorChanged,r));const n=()=>this.syncState();this.edit.events.on(Z.EditChanged,n),this.generationUnsubscribers.push(()=>this.edit.events.off(Z.EditChanged,n))}schedulePromptCommit(){this.promptDebounceTimer&&clearTimeout(this.promptDebounceTimer),this.promptDebounceTimer=setTimeout(()=>this.commitPrompt(),Brt)}commitPrompt(){this.promptDebounceTimer&&clearTimeout(this.promptDebounceTimer),this.promptDebounceTimer=null;const t=this.edit.getResolvedClip(this.selectedTrackIdx,this.selectedClipIdx);if(!t)return;const i=O0(t.asset),r=`asset.${i}`,n=this.promptInput?.value??"",s=n.trim()==="",a=this.edit.resolveMergeFields(n),o=this.edit.getDocument(),l=this.getSelectedClipId();l&&o&&(!s&&Mh.test(n)?o.setClipBinding(l,r,{placeholder:n,resolvedValue:a}):o.removeClipBinding(l,r)),!s&&this.edit.updateClip(this.selectedTrackIdx,this.selectedClipIdx,{asset:{...t.asset,[i]:a}})}selectModel(t){const i=wa(this.edit.getDocumentClip(this.selectedTrackIdx,this.selectedClipIdx)?.asset),r=wa(this.edit.getResolvedClip(this.selectedTrackIdx,this.selectedClipIdx)?.asset),n=XX(t,wa(i.options),wa(r.options));this.edit.generationSettings&&t.optionNames.includes("imageUrls")&&i.type==="image"&&typeof i.src=="string"&&i.src.trim()&&(n.imageUrls===void 0||Array.isArray(n.imageUrls)&&n.imageUrls.length===0)&&(n.imageUrls=[i.src]),this.edit.updateClip(this.selectedTrackIdx,this.selectedClipIdx,{asset:{model:t.model,options:n}}),this.closeAllPopups()}renderModelPopup(t,i){if(this.modelPopup){this.modelPopup.replaceChildren();for(const r of t){const n=document.createElement("button");n.type="button",n.className="ss-media-toolbar-popup-item",n.dataset.modelValue=r.model,n.textContent=r.name||r.model,n.classList.toggle("active",r.model===i),n.addEventListener("click",()=>this.selectModel(r)),this.modelPopup.appendChild(n)}}}createOptionControl(t,i){if(t.values){const n=document.createElement("select"),s=document.createElement("option");s.value="",s.textContent="Select…",n.appendChild(s);for(const a of t.values){const o=document.createElement("option");o.value=a,o.textContent=a,n.appendChild(o)}return n.value=typeof i=="string"?i:"",n}const r=document.createElement("input");return r.type=t.format==="uri"?"url":Nrt[t.type],r.type==="checkbox"?r.checked=i===!0:r.value=i===void 0?"":String(i),t.minimum!==void 0&&(r.min=String(t.minimum)),t.maximum!==void 0&&(r.max=String(t.maximum)),r}readOptionControl(t,i){if(t instanceof HTMLInputElement&&t.type==="checkbox")return t.checked;if(t.value!=="")return i.type==="integer"?Number(t.value):t.value}renderOptions(t,i){if(this.optionsPopup){this.optionsPopup.replaceChildren(),this.optionRows.clear();for(const r of t.options){const n=document.createElement("label");n.className="ss-ai-option-row",n.dataset.optionRow=r.name;const s=document.createElement("span");s.textContent=r.title;const a=i[r.name]??(r.hasDefault?r.defaultValue:void 0),o=this.createOptionControl(r,a);o.dataset.option=r.name,o.required=r.required&&r.type!=="boolean",o.addEventListener("change",()=>{if(!o.validity.valid&&!o.validity.valueMissing)return;const l=this.readOptionControl(o,r);this.edit.updateClip(this.selectedTrackIdx,this.selectedClipIdx,{asset:{options:{[r.name]:l}}}),this.syncMissingOptions(t,{...i,[r.name]:l})}),n.append(s,o),this.optionRows.set(r.name,n),this.optionsPopup.appendChild(n)}for(const r of t.unsupported){const n=document.createElement("div");n.className="ss-ai-option-row is-unsupported",this.optionRows.set(r.name,n),n.title=this.edit.generationSettings?"Use Generation settings to configure this option.":"This option can only be set outside the editor.";const s=document.createElement("span");s.textContent=r.title;const a=document.createElement("span");a.className="ss-ai-option-state",a.textContent=i[r.name]===void 0?"Not set":"Configured",n.append(s,a),this.optionsPopup.appendChild(n)}if(this.edit.generationSettings){const r=document.createElement("button");r.type="button",r.className="ss-media-toolbar-btn",r.dataset.action="generation-options",r.textContent="Generation settings",r.addEventListener("click",()=>{const n=this.getSelectedClipId();n&&(this.closeAllPopups(),this.edit.generationSettings?.({clipId:n,model:t.model}))}),this.optionsPopup.appendChild(r)}}}syncMissingOptions(t,i){const r=t?dE(t,i):[];if(this.optionsBtn?.classList.toggle("has-error",r.length>0),this.optionsBtn&&(this.optionsBtn.title=r.length>0?`Missing: ${r.join(", ")}`:"Generation options"),t){for(const n of t.options)this.optionRows.get(n.name)?.toggleAttribute("data-missing",n.required&&!Rh(n,i[n.name]));for(const n of t.unsupported)this.optionRows.get(n.name)?.toggleAttribute("data-missing",n.required===!0&&i[n.name]===void 0)}return r}syncCatalogueControls(t){const i=typeof t.type=="string"?z0[t.type]:void 0,r=i?this.edit.getGenerationModels(i):void 0,n=typeof t.model=="string"?t.model:void 0,s=r?.find(o=>o.model===n);if(this.modelBtn&&(this.modelBtn.hidden=r===void 0,this.modelBtn.disabled=r?.length===0,this.modelBtn.classList.toggle("is-unavailable",n!==void 0&&s===void 0)),this.modelLabel&&(this.modelLabel.textContent=Mrt(r,n,s)),this.renderModelPopup(r??[],n),this.optionsBtn){const o=s!==void 0&&s.options.length===0&&s.unsupported.length===0;this.optionsBtn.hidden=r===void 0||r.length===0||o&&!this.edit.generationSettings,this.optionsBtn.disabled=s===void 0}const a=wa(t.options);return s?this.renderOptions(s,a):(this.optionsPopup?.replaceChildren(),this.optionRows.clear()),this.syncMissingOptions(s,a)}syncState(){const i=this.edit.getResolvedClip(this.selectedTrackIdx,this.selectedClipIdx)?.asset;if(!cv(i)||!this.generateBtn)return;if(this.promptInput&&this.promptDebounceTimer===null){const f=O0(i),h=this.edit.getDocument(),p=this.getSelectedClipId(),g=p?h?.getClipBinding(p,`asset.${f}`):void 0,y=i[f];this.promptInput.value=g?.placeholder??(typeof y=="string"?y:"")}const r=this.syncCatalogueControls(wa(i)),n=this.edit.hasAssetGenerator();this.generateBtn.hidden=!n;const s=n?this.edit.getGenerationStatus(this.getSelectedClipId()??""):void 0;if(this.generateGroup?.classList.toggle("has-status",s!==void 0),this.generateNote&&this.generateNoteAction){const f=s?.onActivate!==void 0;if(!n)this.generateNote.textContent="Generates on render",this.generateNote.title="Rendering generates this from the prompt. Register an asset generator to preview it here.",delete this.generateNote.dataset.tone;else if(s){const h=f?this.generateNoteAction:this.generateNote;h.textContent=s.text,h.dataset.tone=s.tone??"neutral",h.removeAttribute("title")}for(const[h,p]of[[this.generateNote,!n||s!==void 0&&!f],[this.generateNoteAction,f]])p||(h.textContent="",delete h.dataset.tone,h.removeAttribute("title")),h.hidden=!p}if(!n){this.generateError&&(this.generateError.hidden=!0);return}const a=this.getSelectedClipId(),o=a?this.edit.getClipGenerationState(a):void 0,l=o?.status==="generating",u=(this.promptInput?.value??"").trim()!=="",c=this.generateBtn.querySelector("[data-generate-label]"),d=s?.tone==="error";if(this.generateBtn.disabled=l||!u||r.length>0||d,this.generateBtn.classList.toggle("is-generating",l),c&&(l?c.textContent="Generating…":o?.status==="failed"?c.textContent="Retry":c.textContent="Generate"),this.generateError){const f=o?.status==="failed"?o.error??"Generation failed":"";this.generateError.textContent=f,this.generateError.hidden=f===""}}getPopupList(){return[this.modelPopup,this.optionsPopup]}dispose(){this.abortController?.abort(),this.abortController=null,this.promptDebounceTimer&&clearTimeout(this.promptDebounceTimer),this.promptDebounceTimer=null;for(const t of this.generationUnsubscribers)t();this.generationUnsubscribers=[],super.dispose(),this.promptInput=null,this.generateBtn=null,this.generateError=null,this.generateNote=null,this.generateNoteAction=null,this.generateGroup=null,this.modelBtn=null,this.modelLabel=null,this.modelPopup=null,this.optionsBtn=null,this.optionsPopup=null,this.optionRows.clear()}}function _b(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0&&e<=1}function tI(e){return e.start+e.length}function Ort(e,t){if(e.length===0||!Number.isFinite(t)||t<0)return null;for(let o=0;o<e.length;o+=1){const l=e[o],u=l.interpolation??"linear";if(!_b(l.from)||!_b(l.to)||typeof l.start!="number"||!Number.isFinite(l.start)||l.start<0||typeof l.length!="number"||!Number.isFinite(l.length)||l.length<=xi||u!=="linear"&&u!=="constant"||l.easing!==void 0||o===0&&Math.abs(l.start)>xi)return null;const c=e[o+1];if(c&&(typeof c.start!="number"||Math.abs(tI(l)-c.start)>xi||l.to!==c.from))return null}const i=e.findIndex(o=>(o.interpolation??"linear")==="linear");if(i===-1)return null;const r=e.findLastIndex(o=>(o.interpolation??"linear")==="linear");for(let o=0;o<e.length;o+=1){const l=e[o],u=o===0||o===e.length-1;if((l.interpolation??"linear")==="constant"&&(!u||l.from!==l.to))return null}const n=e.slice(i,r+1),s=n[0],a=[{time:s.start,value:s.from}];for(const o of n)a.push({time:tI(o),value:o.to});return a}function Eb(e,t){if(e.length<2||!Number.isFinite(t)||t<0)return null;for(let a=0;a<e.length;a+=1){const o=e[a];if(!Number.isFinite(o.time)||o.time<0||!_b(o.value)||a>0&&o.time-e[a-1].time<=xi)return null}const i=[],r=e[0];r.time>xi&&i.push({from:r.value,to:r.value,start:0,length:r.time,interpolation:"constant"});for(let a=0;a<e.length-1;a+=1){const o=e[a],l=e[a+1];i.push({from:o.value,to:l.value,start:o.time,length:l.time-o.time,interpolation:"linear"})}const n=e[e.length-1],s=Math.max(t,n.time);return s-n.time>xi&&i.push({from:n.value,to:n.value,start:n.time,length:s-n.time,interpolation:"constant"}),i}function eI(e,t,i){try{const r=new Ns(e??1,i,1).getValue(Math.max(0,Math.min(t,i)));return Number.isFinite(r)?Math.max(0,Math.min(1,r)):null}catch{return null}}function iI(e,t,i){const r=Math.max(0,Math.min(e,t));return r<=xi?0:t-r<=xi?t:!Number.isFinite(i)||i<=0?r:Math.max(0,Math.min(t,Math.round(r*i)/i))}function xa(e,t,i,r=0){const n=Number.isFinite(i)&&i>0?.5/i+xi:xi;if(r!==0){const l=xa(e,t,i)?.time??t;return r<0?e.findLast(u=>u.time<l-xi):e.find(u=>u.time>l+xi)}let s,a=Number.POSITIVE_INFINITY;for(const o of e){const l=Math.abs(o.time-t);l<=n&&l<a&&(s=o,a=l)}return s}function rI(e,t,i,r,n){const s=iI(t,r,n),a=xa(e,s,n);return(a?e.map(l=>l===a?{time:l.time,value:i}:l):[...e,{time:s,value:i}]).sort((l,u)=>l.time-u.time)}function Rrt(e,t,i){const r=xa(e,t,i);return r?e.filter(n=>n!==r):[...e]}class pn extends va{static EFFECT_TYPES=["","zoom","slide"];static DIRECTIONS=["Left","Right","Up","Down"];static SPEEDS=[.5,1,2];state={type:"",variant:"In",direction:"Right",speed:1};typeButtons=null;variantRow=null;variantButtons=null;directionRow=null;directionButtons=null;speedRow=null;speedLabel=null;speedDecreaseBtn=null;speedIncreaseBtn=null;render(){const t=pn.EFFECT_TYPES.map(n=>`<button class="ss-effect-type" data-effect-type="${n}">${n?n.charAt(0).toUpperCase()+n.slice(1):"None"}</button>`).join(""),i=`
|
|
868
870
|
<button class="ss-effect-variant" data-variant="In">In</button>
|
|
869
871
|
<button class="ss-effect-variant" data-variant="Out">Out</button>
|
|
870
872
|
`,r=pn.DIRECTIONS.map(n=>`<button class="ss-effect-dir" data-effect-dir="${n}">${this.directionIcon(n)}</button>`).join("");return`
|