66 lines
684 KiB
JavaScript
66 lines
684 KiB
JavaScript
/*! This file is auto-generated */
|
|||
|
|
"use strict";var wp;(wp||={}).editSite=(()=>{var iB=Object.create;var bp=Object.defineProperty;var sB=Object.getOwnPropertyDescriptor;var aB=Object.getOwnPropertyNames;var lB=Object.getPrototypeOf,uB=Object.prototype.hasOwnProperty;var Po=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lf=(e,t)=>{for(var r in t)bp(e,r,{get:t[r],enumerable:!0})},HC=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of aB(t))!uB.call(e,n)&&n!==r&&bp(e,n,{get:()=>t[n],enumerable:!(o=sB(t,n))||o.enumerable});return e};var a=(e,t,r)=>(r=e!=null?iB(lB(e)):{},HC(t||!e||!e.__esModule?bp(r,"default",{value:e,enumerable:!0}):r,e)),cB=e=>HC(bp({},"__esModule",{value:!0}),e);var Gr=je((gte,UC)=>{UC.exports=window.wp.blocks});var wp=je((vte,WC)=>{WC.exports=window.wp.blockLibrary});var re=je((yte,qC)=>{qC.exports=window.wp.data});var vl=je((bte,YC)=>{YC.exports=window.wp.deprecated});var B=je((wte,ZC)=>{ZC.exports=window.wp.element});var Ke=je((xte,KC)=>{KC.exports=window.wp.editor});var Ao=je((Ste,XC)=>{XC.exports=window.wp.preferences});var JC=je((_te,QC)=>{QC.exports=window.wp.widgets});var he=je((Tte,tT)=>{tT.exports=window.wp.coreData});var yt=je((Ete,rT)=>{rT.exports=window.wp.blockEditor});var j=je((Pte,oT)=>{oT.exports=window.wp.i18n});var xp=je((Ate,nT)=>{nT.exports=window.wp.patterns});var Sp=je((kte,iT)=>{iT.exports=window.wp.privateApis});var Ne=je((Wte,CT)=>{CT.exports=window.wp.router});var M=je((Yte,ET)=>{ET.exports=window.wp.components});var C=je((Zte,PT)=>{PT.exports=window.ReactJSXRuntime});var Je=je((Qte,OT)=>{OT.exports=window.React});var Yb=je((Cre,qT)=>{qT.exports=window.ReactDOM});var ZT=je(YT=>{"use strict";var Hu=Je();function Cj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tj=typeof Object.is=="function"?Object.is:Cj,Ej=Hu.useState,Pj=Hu.useEffect,Aj=Hu.useLayoutEffect,kj=Hu.useDebugValue;function Rj(e,t){var r=t(),o=Ej({inst:{value:r,getSnapshot:t}}),n=o[0].inst,i=o[1];return Aj(function(){n.value=r,n.getSnapshot=t,Zb(n)&&i({inst:n})},[e,r,t]),Pj(function(){return Zb(n)&&i({inst:n}),e(function(){Zb(n)&&i({inst:n})})},[e]),kj(r),r}function Zb(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Tj(e,r)}catch{return!0}}function Oj(e,t){return t()}var Ij=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Oj:Rj;YT.useSyncExternalStore=Hu.useSyncExternalStore!==void 0?Hu.useSyncExternalStore:Ij});var XT=je((Ere,KT)=>{"use strict";KT.exports=ZT()});var Xb=je((Vre,$T)=>{$T.exports=window.wp.a11y});var me=je((Nre,eE)=>{eE.exports=window.wp.primitives});var Qe=je((fie,tE)=>{tE.exports=window.wp.compose});var uE=je((Aie,lE)=>{lE.exports=window.wp.plugins});var Mn=je((kie,cE)=>{cE.exports=window.wp.notices});var mr=je((Rie,fE)=>{fE.exports=window.wp.htmlEntities});var Wh=je((Oie,dE)=>{dE.exports=window.wp.commands});var Js=je((Iie,mE)=>{mE.exports=window.wp.keycodes});var bt=je((Fie,pE)=>{pE.exports=window.wp.url});var _l=je((Lie,bE)=>{bE.exports=window.wp.dom});var VE=je((Xie,FE)=>{FE.exports=window.wp.keyboardShortcuts});var bg=je((Lse,$P)=>{$P.exports=window.wp.apiFetch});var Dx=je((Oae,RA)=>{RA.exports=window.wp.styleEngine});var kg=je((Hae,LA)=>{"use strict";LA.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(t[n]!==r
|
||
|
|
<svg
|
||
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||
|
|
viewBox="0 0 0 0"
|
||
|
|
width="0"
|
||
|
|
height="0"
|
||
|
|
focusable="false"
|
||
|
|
role="none"
|
||
|
|
aria-hidden="true"
|
||
|
|
style="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"
|
||
|
|
>
|
||
|
|
<defs>
|
||
|
|
<filter id="${e}">
|
||
|
|
<!--
|
||
|
|
Use sRGB instead of linearRGB so transparency looks correct.
|
||
|
|
Use perceptual brightness to convert to grayscale.
|
||
|
|
-->
|
||
|
|
<feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>
|
||
|
|
<!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. -->
|
||
|
|
<feComponentTransfer color-interpolation-filters="sRGB">
|
||
|
|
<feFuncR type="table" tableValues="${r.r.join(" ")}"></feFuncR>
|
||
|
|
<feFuncG type="table" tableValues="${r.g.join(" ")}"></feFuncG>
|
||
|
|
<feFuncB type="table" tableValues="${r.b.join(" ")}"></feFuncB>
|
||
|
|
<feFuncA type="table" tableValues="${r.a.join(" ")}"></feFuncA>
|
||
|
|
</feComponentTransfer>
|
||
|
|
<!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. -->
|
||
|
|
<feComposite in2="SourceGraphic" operator="in"></feComposite>
|
||
|
|
</filter>
|
||
|
|
</defs>
|
||
|
|
</svg>`}function is(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([0-9])([a-zA-Z])/g,"$1-$2").replace(/([a-zA-Z])([0-9])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function Yx(e){if(!e)return;let t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function ez(e){if(!e)return null;let t=typeof e=="string";return{top:t?e:e?.top,left:t?e:e?.left}}function Zx(e,t="0"){let r=ez(e);if(!r)return null;let o=Yx(r?.top)||t,n=Yx(r?.left)||t;return o===n?o:`${o} ${n}`}var rk={backgroundSize:"cover",backgroundPosition:"50% 50%"};function ok(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:rk.backgroundSize}),e?.backgroundSize==="contain"&&!e?.backgroundPosition&&(t={backgroundPosition:rk.backgroundPosition}),t}var nk={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > :is(*, div)",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};var tz={button:"wp-element-button",caption:"wp-element-caption"},rz={__experimentalBorder:"border",color:"color",dimensions:"dimensions",spacing:"spacing",typography:"typography"};function oz(e={},t){return lc.reduce((r,{path:o,valueKey:n,valueFunc:i,cssVarInfix:s})=>{let l=ft(e,o,[]);return["default","theme","custom"].forEach(u=>{l[u]&&l[u].forEach(c=>{n&&!i?r.push(`--wp--preset--${s}--${is(c.slug)}: ${c[n]}`):i&&typeof i=="function"&&r.push(`--wp--preset--${s}--${is(c.slug)}: ${i(c,t)}`)})}),r},[])}function nz(e="*",t={}){return lc.reduce((r,{path:o,cssVarInfix:n,classes:i})=>{if(!i)return r;let s=ft(t,o,[]);return["default","theme","custom"].forEach(l=>{s[l]&&s[l].forEach(({slug:u})=>{i.forEach(({classSuffix:c,propertyName:f})=>{let m=`.has-${is(u)}-${c}`,d=e.split(",").map(g=>`${g}${m}`).join(","),h=`var(--wp--preset--${n}--${is(u)})`;r+=`${d}{${f}: ${h} !important;}`})})}),r},"")}function iz(e={}){return lc.filter(t=>t.path.at(-1)==="duotone").flatMap(t=>{let r=ft(e,t.path,{});return["default","theme"].filter(o=>r[o]).flatMap(o=>r[o].map(n=>tk(`wp-duotone-${n.slug}`,n.colors))).join("")})}function uk(e={},t,r){let o=[];return Object.keys(e).forEach(n=>{let i=t+is(n.replace("/","-")),s=e[n];if(s instanceof Object){let l=i+r;o=[...o,...uk(s,l,r)]}else o.push(`${i}: ${s}`)}),o}function sz(e,t){let r=e.split(","),o=[];return r.forEach(
|
||
|
|
.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }
|
||
|
|
.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }
|
||
|
|
.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }
|
||
|
|
.has-global-padding :where(:not(.alignfull.is-layout-flow) > .has-global-padding:not(.wp-block-block, .alignfull)) > .alignfull { margin-left: 0; margin-right: 0;
|
||
|
|
`),g+="}"),l.blockStyles&&u.forEach(({selector:y,duotoneSelector:v,styles:b,fallbackGapValue:w,hasLayoutSupport:x,featureSelectors:T,styleVariationSelectors:E,skipSelectorWrapper:k,name:F})=>{if(T){let N=sk(T,b);N=ik(N,e.settings,F),Object.entries(N).forEach(([A,S])=>{if(S.length){let I=S.join(";");g+=`:root :where(${A}){${I};}`}})}if(v){let N={};b?.filter&&(N.filter=b.filter,delete b.filter);let A=fc(N);A.length&&(g+=`${v}{${A.join(";")};}`)}!n&&(hi===y||x)&&(g+=ak({style:b,selector:y,hasBlockGapSupport:r,hasFallbackGapSupport:o,fallbackGapValue:w}));let P=fc(b,y,f,e,i);if(P?.length){let N=k?y:`:root :where(${y})`;g+=`${N}{${P.join(";")};}`}b?.css&&(g+=Kx(b.css,`:root :where(${y})`)),l.variationStyles&&E&&Object.entries(E).forEach(([N,A])=>{let S=b?.variations?.[N];if(S){if(T){let O=sk(T,S);O=ik(O,e.settings,F),Object.entries(O).forEach(([z,R])=>{if(R.length){let D=sz(z,A),G=R.join(";");g+=`:root :where(${D}){${G};}`}})}let I=fc(S,A,f,e);if(I.length&&(g+=`:root :where(${A}){${I.join(";")};}`),S?.css&&(g+=Kx(S.css,`:root :where(${A})`)),x&&S?.spacing?.blockGap){let O=A+y;g+=ak({style:S,selector:O,hasBlockGapSupport:!0,hasFallbackGapSupport:o,fallbackGapValue:w})}}});let V=Object.entries(b).filter(([N])=>N.startsWith(":"));V?.length&&V.forEach(([N,A])=>{let S=fc(A);if(!S?.length)return;let O=`:root :where(${y.split(",").map(z=>z+N).join(",")}){${S.join(";")};}`;g+=O})}),l.layoutStyles&&(g=g+".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",g=g+".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",g=g+".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }"),l.blockGap&&r){let y=Zx(e?.styles?.spacing?.blockGap)||"0.5em";g=g+`:root :where(.wp-site-blocks) > * { margin-block-start: ${y}; margin-block-end: 0; }`,g=g+":root :where(.wp-site-blocks) > :first-child { margin-block-start: 0; }",g=g+":root :where(.wp-site-blocks) > :last-child { margin-block-end: 0; }"}return l.presets&&c.forEach(({selector:y,presets:v})=>{(hi===y||jd===y)&&(y="");let b=nz(y,v);b.length>0&&(g+=b)}),g};function fz(e,t){return Xx(e,t).flatMap(({presets:o})=>iz(o))}var dz=(e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;let r={root:t};return Object.entries(rz).forEach(([o,n])=>{let i=cc(e,o);i&&(r[n]=i)}),r},mz=(e,t)=>{let{getBlockStyles:r}=(0,lk.select)(Ur.store),o={};return e.forEach(n=>{let i=n.name,s=cc(n);if(!s)return;let l=cc(n,"filter.duotone");if(!l){let h=cc(n),g=(0,Ur.getBlockSupport)(n,"color.__experimentalDuotone",!1);l=g&&h&&qn(h,g)}let u=!!n?.supports?.layout||!!n?.supports?.__experimentalLayout,c=n?.supports?.spacing?.blockGap?.__experimentalDefault,f=r(i),m={};f?.forEach(h=>{let g=t?`-${t}`:"",y=`${h.name}${g}`,v=NA(y,s);m[y]=v});let d=dz(n,s);o[i]={duotoneSelector:l??void 0,fallbackGapValue:c,featureSelectors:Object.keys(d).length?d:void 0,hasLayoutSupport:u,name:i,selector:s,styleVariationSelectors:f?.length?m:void 0}}),o};function pz(e){let t=e.styles?.blocks,r=t?.["core/separator"];return r&&r.color?.background&&!r.color?.text&&!r.border?.color?{...e,styles:{...e.styles,blocks:{...t,"core/separator":{...r,color:{...r.color,text:r.color?.background}}}}}:e}function Kx(e,t){let r="";return!e||e.trim()===""||e.split("&").forEach(n=>{if(!n||n.trim()==="")return;if(!n.includes("{"))r+=`:root :where(${t}){${n.trim()}}`;else{let s=n.replace("}","").split("{");if(s.length!==2)return;let[l,u]=s,c=l.match(/([>+~\s]*::[a-zA-Z-]+)/),f=c?c[1]:"",m=c?l.replace(f,"").trim():l.trim(),d;m===""?d=t:d=l.startsWith(" ")?qn(t,m):VA(t,m),r+=`:root :where(${d})${f}{${u.trim()}}`}}),r}function Wd(e={},t=[],r={}){let{hasBlockGapSupport:o,hasFallbackGapSupport:n,disableLayoutStyles:i=!1,disableRootPadding:s=!1,styleOptions:l={}}=r,u=t.length>0?t:(0,Ur.getBlockTypes)(),c=Md(e,"spacing.blockGap"),f=o??c!==null,m=n??!f;if(!e?.styles||!e?.settings)return[[],{}];let d=pz(e),h=mz(u),g=uz(d,h),y=cz(d,h,f,m,i,s,l),v=fz(d,h),b=[{css:g,isGlobalStyles:!0},{css:y,isGlobalStyles:!0},{css:d?.styles?.css??"",isGlobalStyles:!0},{assets:v,__unstableType:"svg",isGlobalS
|
||
|
|
`),new S("",f,""),new S("",l,"]"),new S("",l," for "),new S("",E,""),new S("",c,""),new S("",l," a "),new S("",l," that "),new S(" ",b,""),new S("",l,". "),new S(".",l,""),new S(" ",l,", "),new S("",k,""),new S("",l," with "),new S("",l,"'"),new S("",l," from "),new S("",l," by "),new S("",F,""),new S("",P,""),new S(" the ",l,""),new S("",m,""),new S("",l,". The "),new S("",w,""),new S("",l," on "),new S("",l," as "),new S("",l," is "),new S("",g,""),new S("",u,"ing "),new S("",l,`
|
||
|
|
`),new S("",l,":"),new S(" ",l,". "),new S("",l,"ed "),new S("",A,""),new S("",V,""),new S("",h,""),new S("",l,"("),new S("",b,", "),new S("",y,""),new S("",l," at "),new S("",l,"ly "),new S(" the ",l," of "),new S("",d,""),new S("",v,""),new S(" ",b,", "),new S("",b,'"'),new S(".",l,"("),new S("",w," "),new S("",b,'">'),new S("",l,'="'),new S(" ",l,"."),new S(".com/",l,""),new S(" the ",l," of the "),new S("",b,"'"),new S("",l,". This "),new S("",l,","),new S(".",l," "),new S("",b,"("),new S("",b,"."),new S("",l," not "),new S(" ",l,'="'),new S("",l,"er "),new S(" ",w," "),new S("",l,"al "),new S(" ",w,""),new S("",l,"='"),new S("",w,'"'),new S("",b,". "),new S(" ",l,"("),new S("",l,"ful "),new S(" ",b,". "),new S("",l,"ive "),new S("",l,"less "),new S("",w,"'"),new S("",l,"est "),new S(" ",b,"."),new S("",w,'">'),new S(" ",l,"='"),new S("",b,","),new S("",l,"ize "),new S("",w,"."),new S("\xC2\xA0",l,""),new S(" ",l,","),new S("",b,'="'),new S("",w,'="'),new S("",l,"ous "),new S("",w,", "),new S("",b,"='"),new S(" ",b,","),new S(" ",w,'="'),new S(" ",w,", "),new S("",w,","),new S("",w,"("),new S("",w,". "),new S(" ",w,"."),new S("",w,"='"),new S(" ",w,". "),new S(" ",b,'="'),new S(" ",w,"='"),new S(" ",b,"='")];i.kTransforms=I,i.kNumTransforms=I.length;function O(z,R){return z[R]<192?(z[R]>=97&&z[R]<=122&&(z[R]^=32),1):z[R]<224?(z[R+1]^=32,2):(z[R+2]^=5,3)}i.transformDictionaryWord=function(z,R,D,G,U){var ce=I[U].prefix,ye=I[U].suffix,Te=I[U].transform,Ie=Te<x?0:Te-(x-1),He=0,pe=R,Se;Ie>G&&(Ie=G);for(var J=0;J<ce.length;)z[R++]=ce[J++];for(D+=Ie,G-=Ie,Te<=v&&(G-=Te),He=0;He<G;He++)z[R++]=s.dictionary[D+He];if(Se=R-G,Te===b)O(z,Se);else if(Te===w)for(;G>0;){var ie=O(z,Se);Se+=ie,G-=ie}for(var $=0;$<ye.length;)z[R++]=ye[$++];return R-pe}},{"./dictionary":6}],12:[function(o,n,i){n.exports=o("./dec/decode").BrotliDecompressBuffer},{"./dec/decode":3}]},{},[12])(12)})();var Zg=(e=>typeof Po<"u"?Po:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Po<"u"?Po:t)[r]}):e)(function(e){if(typeof Po<"u")return Po.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),a5=(function(){var e,t,r;return(function(){function o(n,i,s){function l(f,m){if(!i[f]){if(!n[f]){var d=typeof Zg=="function"&&Zg;if(!m&&d)return d(f,!0);if(u)return u(f,!0);var h=new Error("Cannot find module '"+f+"'");throw h.code="MODULE_NOT_FOUND",h}var g=i[f]={exports:{}};n[f][0].call(g.exports,function(y){var v=n[f][1][y];return l(v||y)},g,g.exports,o,n,i,s)}return i[f].exports}for(var u=typeof Zg=="function"&&Zg,c=0;c<s.length;c++)l(s[c]);return l}return o})()({1:[function(o,n,i){"use strict";var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function l(f,m){return Object.prototype.hasOwnProperty.call(f,m)}i.assign=function(f){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var d=m.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var h in d)l(d,h)&&(f[h]=d[h])}}return f},i.shrinkBuf=function(f,m){return f.length===m?f:f.subarray?f.subarray(0,m):(f.length=m,f)};var u={arraySet:function(f,m,d,h,g){if(m.subarray&&f.subarray){f.set(m.subarray(d,d+h),g);return}for(var y=0;y<h;y++)f[g+y]=m[d+y]},flattenChunks:function(f){var m,d,h,g,y,v;for(h=0,m=0,d=f.length;m<d;m++)h+=f[m].length;for(v=new Uint8Array(h),g=0,m=0,d=f.length;m<d;m++)y=f[m],v.set(y,g),g+=y.length;return v}},c={arraySet:function(f,m,d,h,g){for(var y=0;y<h;y++)f[g+y]=m[d+y]},flattenChunks:function(f){return[].concat.apply([],f)}};i.setTyped=function(f){f?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,u)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,c))},i.setTyped(s)},{}],2:[function(o,n,i){"use strict";var s=o("./common"),l=!0,u=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{u=!1}for(var c=new s.Buf8(256),f=0;f<256;f++)c[f]=f>=252?6:f>=248?5:f>=240?4:f>=224?3:f>=192?2:1;c[254]=c[254]=1,i.string2buf=function(d){var h,g,y,v,b,w=d.length,x=0;for(v=0;v<w;v++)g=d.charCodeAt(v),(g&64512)===55296&&v+1<w&&(y=d.charCodeAt
|
||
|
|
@font-face {
|
||
|
|
font-family: "${e}";
|
||
|
|
${i.join(`
|
||
|
|
`)}
|
||
|
|
src: url("${t}") format("${o}");
|
||
|
|
}`,globalThis.document.head.appendChild(n),n}var DG=[0,1,0,0],LG=[79,84,84,79],MG=[119,79,70,70],BG=[119,79,70,50];function Xg(e,t){if(e.length===t.length){for(let r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function jG(e){let t=[e.getUint8(0),e.getUint8(1),e.getUint8(2),e.getUint8(3)];if(Xg(t,DG)||Xg(t,LG))return"SFNT";if(Xg(t,MG))return"WOFF";if(Xg(t,BG))return"WOFF2"}function zG(e){if(!e.ok)throw new Error(`HTTP ${e.status} - ${e.statusText}`);return e}var w5=class extends bG{constructor(e,t={}){super(),this.name=e,this.options=t,this.metrics=!1}get src(){return this.__src}set src(e){this.__src=e,(async()=>(globalThis.document&&!this.options.skipStyleSheet&&await NG(this.name,e,this.options),this.loadFont(e)))()}async loadFont(e,t){fetch(e).then(r=>zG(r)&&r.arrayBuffer()).then(r=>this.fromDataBuffer(r,t||e)).catch(r=>{let o=new Kg("error",r,`Failed to load font at ${t||e}`);this.dispatch(o),this.onerror&&this.onerror(o)})}async fromDataBuffer(e,t){this.fontData=new DataView(e);let r=jG(this.fontData);if(!r)throw new Error(`${t} is either an unsupported font format, or not a font at all.`);await this.parseBasicData(r);let o=new Kg("load",{font:this});this.dispatch(o),this.onload&&this.onload(o)}async parseBasicData(e){return FG().then(t=>(e==="SFNT"&&(this.opentype=new _G(this,this.fontData,t)),e==="WOFF"&&(this.opentype=new TG(this,this.fontData,t)),e==="WOFF2"&&(this.opentype=new AG(this,this.fontData,t)),this.opentype))}getGlyphId(e){return this.opentype.tables.cmap.getGlyphId(e)}reverse(e){return this.opentype.tables.cmap.reverse(e)}supports(e){return this.getGlyphId(e)!==0}supportsVariation(e){return this.opentype.tables.cmap.supportsVariation(e)!==!1}measureText(e,t=16){if(this.__unloaded)throw new Error("Cannot measure text: font was unloaded. Please reload before calling measureText()");let r=document.createElement("div");r.textContent=e,r.style.fontFamily=this.name,r.style.fontSize=`${t}px`,r.style.color="transparent",r.style.background="transparent",r.style.top="0",r.style.left="0",r.style.position="absolute",document.body.appendChild(r);let o=r.getBoundingClientRect();document.body.removeChild(r);let n=this.opentype.tables["OS/2"];return o.fontSize=t,o.ascender=n.sTypoAscender,o.descender=n.sTypoDescender,o}unload(){if(this.styleElement.parentNode){this.styleElement.parentNode.removeElement(this.styleElement);let e=new Kg("unload",{font:this});this.dispatch(e),this.onunload&&this.onunload(e)}this._unloaded=!0}load(){if(this.__unloaded){delete this.__unloaded,document.head.appendChild(this.styleElement);let e=new Kg("load",{font:this});this.dispatch(e),this.onload&&this.onload(e)}}};globalThis.Font=w5;var ls=class extends Gt{constructor(e,t,r){super(e),this.plaformID=t,this.encodingID=r}},GG=class extends ls{constructor(e,t,r){super(e,t,r),this.format=0,this.length=e.uint16,this.language=e.uint16,this.glyphIdArray=[...new Array(256)].map(o=>e.uint8)}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 0. only supports(id) is implemented.")),0<=e&&e<=255}reverse(e){return console.warn("reverse not implemented for cmap subtable format 0"),{}}getSupportedCharCodes(){return[{start:1,end:256}]}},HG=class extends ls{constructor(e,t,r){super(e,t,r),this.format=2,this.length=e.uint16,this.language=e.uint16,this.subHeaderKeys=[...new Array(256)].map(s=>e.uint16);let o=Math.max(...this.subHeaderKeys),n=e.currentPosition;ve(this,"subHeaders",()=>(e.currentPosition=n,[...new Array(o)].map(s=>new UG(e))));let i=n+o*8;ve(this,"glyphIndexArray",()=>(e.currentPosition=i,[...new Array(o)].map(s=>e.uint16)))}supports(e){e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 2. only supports(id) is implemented."));let t=e&&255,r=e&&65280,o=this.subHeaders[r],n=this.subHeaders[o],i=n.firstCode,s=i+n.entryCount;return i<=t&&t<=s}reverse(e){return console.warn("reverse not implemented for cmap subtable format 2"),{}}getSupportedCharCodes(e=!1){return e?this.subHeaders.map(t=>({firstCode:t.firstCode,lastCode:t.lastCode})):th
|
||
|
|
/*! Bundled license information:
|
||
|
|
|
||
|
|
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
||
|
|
(**
|
||
|
|
* @license React
|
||
|
|
* use-sync-external-store-shim.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*)
|
||
|
|
|
||
|
|
is-plain-object/dist/is-plain-object.mjs:
|
||
|
|
(*!
|
||
|
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
|
|
*
|
||
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
|
|
* Released under the MIT License.
|
||
|
|
*)
|
||
|
|
*/
|