UNPKG

@sutton-signwriting/sgnw-components

Version:

a javascript package of web components for use with the SignWriting script.

5 lines 45.1 kB
/*! * The Sutton SignWriting Web Components */ var t,n,e={exports:{}},o=(t||(t=1,function(t){let n={};const e=152;let o;const S=function(t){if(t in n)return[...n[t]];if(!o){const t=document.createElement("canvas");t.width=e,t.height=e,o=t.getContext("2d",{willReadFrequently:!0})}o.clearRect(0,0,e,e),o.font="60px 'SuttonSignWritingLine'",o.fillText(String.fromCodePoint(t+983040),0,0);const S=o.getImageData(0,0,e,e).data;let i,r,l,s;t:for(i=151;i>=0;i--)for(r=0;r<e;r+=1)for(s=0;s<4;s+=1)if(l=4*i+4*r*e+s,S[l])break t;var c=i;t:for(r=151;r>=0;r--)for(i=0;i<c;i+=1)for(s=0;s<4;s+=1)if(l=4*i+4*r*e+s,S[l])break t;var f=r+1;if(c=Math.ceil(c/2),f=Math.ceil(f/2),14394==t&&(c=19),[10468,10480,10496,10512,10500,10532,10548,10862,10878,10894,11058,11074,11476,11488,11492,11504,11508,11520,10516,10910,10926,11042,11082,10942].includes(t)&&(c=20),31921==t&&(c=22),38460==t&&(c=23),[20164,20212].includes(t)&&(c=25),31894==t&&(c=28),46698==t&&(c=29),29606==t&&(c=30),44855==t&&(c=40),32667==t&&(c=50),[11088,11474,11490,11506].includes(t)&&(f=20),6285==t&&(f=21),40804==t&&(f=31),41475==t&&(f=36),0==c&&0==f){const n={9:[15,30],10:[21,30],11:[30,15],12:[30,21],13:[15,30],14:[21,30]};t in n&&(c=n[t][0],f=n[t][1])}return 0!=c||0!=f?(n[t]=[c,f],[c,f]):void 0},i=function(t){return String.fromCodePoint(t+983040)},r=function(t){return String.fromCodePoint(t+1048576)},l=function(t){if(S(1))t();else{const n=setInterval((function(){S(1)&&(clearInterval(n),t())}),100)}},s=function(t){const n=function(){const t=document.createElement("canvas");t.width=15,t.height=30;const n=t.getContext("2d");return n.font="30px 'SuttonSignWritingFill'",n.fillText(r(1),0,0),!n.getImageData(0,0,15,30).data.every((t=>0===t))};if(n())t();else{const e=setInterval((function(){n()&&(clearInterval(e),t())}),100)}};t.cssAppend=function(t=""){if(!document.getElementById("SgnwFontCss")){const n=document.createElement("style");n.setAttribute("id","SgnwFontCss"),n.appendChild(document.createTextNode(`\n @font-face {\n font-family: "SuttonSignWritingLine";\n src: \n local('SuttonSignWritingLine'),\n ${t?`url('${t}SuttonSignWritingLine.ttf') format('truetype'),`:""}\n url('https://cdn.jsdelivr.net/npm/@sutton-signwriting/font-ttf@1.0.0/font/SuttonSignWritingLine.ttf') format('truetype');\n }\n @font-face {\n font-family: "SuttonSignWritingFill";\n src: \n local('SuttonSignWritingFill'),\n ${t?`url('${t}SuttonSignWritingFill.ttf') format('truetype'),`:""}\n url('https://cdn.jsdelivr.net/npm/@sutton-signwriting/font-ttf@1.0.0/font/SuttonSignWritingFill.ttf') format('truetype');\n }\n @font-face {\n font-family: "SuttonSignWritingOneD";\n src: \n local('SuttonSignWritingOneD'),\n ${t?`url('${t}SuttonSignWritingOneD.ttf') format('truetype'),`:""}\n url('https://cdn.jsdelivr.net/npm/@sutton-signwriting/font-ttf@1.0.0/font/SuttonSignWritingOneD.ttf') format('truetype');\n }\n `)),document.head.appendChild(n)}},t.cssLoaded=function(t){let n=!1,e=!1;l((()=>{n=!0})),s((()=>{e=!0}));const o=setInterval((function(){n&&e&&(clearInterval(o),t())}),100)},t.cssLoadedFill=s,t.cssLoadedLine=l,t.symbolFill=r,t.symbolLine=i,t.symbolSize=S,t.symbolText=function(t){return` <text class="sym-fill" fill="white" style="pointer-events:none;font-family:'SuttonSignWritingFill';font-size:30px;">${r(t)}</text>\n <text class="sym-line" fill="black" style="pointer-events:none;font-family:'SuttonSignWritingLine';font-size:30px;">${i(t)}</text>`},Object.defineProperty(t,"__esModule",{value:!0})}(e.exports)),e.exports),S={exports:{}},i=(n||(n=1,function(t){let n={colorize:"C",colorhex:"(?:[0-9a-fA-F]{3}){1,2}",colorname:"[a-zA-Z]+",padding:"P[0-9]{2}",zoom:"Z(?:[0-9]+(?:\\.[0-9]+)?|x)",classbase:"-?[_a-zA-Z][_a-zA-Z0-9-]{0,100}",id:"[a-zA-Z][_a-zA-Z0-9-]{0,100}"};n.colorbase=`(?:${n.colorhex}|${n.colorname})`,n.color=`_${n.colorbase}_`,n.colors=`_${n.colorbase}(?:,${n.colorbase})?_`,n.background="G"+n.color,n.detail="D"+n.colors,n.detailsym="D[0-9]{2}"+n.colors,n.classes=`${n.classbase}(?: ${n.classbase})*`,n.full=`-(${n.colorize})?(${n.padding})?(${n.background})?(${n.detail})?(${n.zoom})?(?:-((?:${n.detailsym})*))?(?:-(${n.classes})?!(?:(${n.id})!)?)?`;const e=t=>(RegExp(`^${n.colorhex}$`).test(t)?"#":"")+t,o=t=>"string"!=typeof t?[0,0,0]:t.replace(/rgba?\((.+?)\)/gi,((t,n)=>n)).split(",").map(Number),S=t=>t.slice(0,3).map((t=>t.toString(16).padStart(2,"0"))).join("");t.compose=t=>{if("object"!=typeof t||null===t)return;let e="-";e+=t.colorize?"C":"";const o=parseInt(t.padding);e+=!o||o<=0||o>99?"":"P"+(o>9?o:"0"+o);const S=t.background&&"string"==typeof t.background?t.background.match(n.colorbase)[0]:void 0;e+=S?"G_"+S+"_":"";const i=t.detail&&t.detail[0]&&"string"==typeof t.detail[0]?t.detail[0].match(n.colorbase)[0]:void 0,r=t.detail&&t.detail[1]&&"string"==typeof t.detail[1]?t.detail[1].match(n.colorbase)[0]:void 0;i&&(e+="D_"+i,r&&(e+=","+r),e+="_");const l="x"===t.zoom?"x":parseFloat(t.zoom);e+=!l||l<=0?"":"Z"+l;let s="";const c=t.detailsym&&Array.isArray(t.detailsym)?t.detailsym.map((t=>{const e=parseInt(t.index);if(!e||e<=0||e>99)return"";let o="D"+(e>9?e:"0"+e);const S=t.detail&&t.detail[0]?t.detail[0].match(n.colorbase)[0]:void 0,i=t.detail&&t.detail[1]?t.detail[1].match(n.colorbase)[0]:void 0;return S&&(o+="_"+S,i&&(o+=","+i),o+="_"),o})):[];s+=c.join("");let f="";const a=t.classes&&"string"==typeof t.classes?t.classes.match(n.classes)[0]:void 0;f+=a||"";const u=t.id&&"string"==typeof t.id?t.id.match(n.id)[0]:void 0;return f+=a||u?"!":"",f+=u?u+"!":"",e+(s||f?"-"+s:"")+(f?"-"+f:"")},t.merge=(t,n)=>{"object"!=typeof t&&(t={}),"object"!=typeof n&&(n={});const e="zoom"in t?"x"===t.zoom?1:t.zoom:1,o="zoom"in n?"x"===n.zoom?1:n.zoom:1;return{...t,...n,zoom:e*o}},t.parse=t=>{const o=("string"==typeof t?t.match(RegExp("^"+n.full)):[])||[];return S={colorize:o[1]?!!o[1]:void 0,padding:o[2]?parseInt(o[2].slice(1)):void 0,background:o[3]?e(o[3].slice(2,-1)):void 0,detail:o[4]?o[4].slice(2,-1).split(",").map(e):void 0,zoom:o[5]?"Zx"===o[5]?"x":parseFloat(o[5].slice(1)):void 0,detailsym:o[6]?o[6].match(RegExp(n.detailsym,"g")).map((t=>{const n=t.split("_"),o=n[1].split(",").map(e);return{index:parseInt(n[0].slice(1)),detail:o}})):void 0,classes:o[7]?o[7]:void 0,id:o[8]?o[8]:void 0},Object.fromEntries(Object.entries(S).filter((([t,n])=>void 0!==n)));var S},t.re=n,t.rgb2hex=(t,n=0)=>{const e=o(t);return 4==e.length&&e[3]<=n?"transparent":S(e)},t.rgba2hex=(t,n)=>{const e=o(n),i=o(t),r=4==i.length?i[3]:1;return 0==r?"transparent":S(i.map(((t,n)=>parseInt((1-r)*e[n]+r*t))))},Object.defineProperty(t,"__esModule",{value:!0})}(S.exports)),S.exports);window.sgnw=!1;const r=new Event("sgnw"),l=t=>{if(void 0===t||""===t)return 1;const n=parseFloat(t);return-1===t.indexOf("%")?n:n/100},s=t=>{const n=parseFloat(t),e=-1===t.indexOf("%")?255*n:255*n/100;return Math.round(Math.min(255,Math.max(0,e)))},c=(t,n,e,o)=>o>=1?`rgb(${t}, ${n}, ${e})`:`rgba(${t}, ${n}, ${e}, ${o})`,f=/^rgba?\(\s*([\d.%]+)\s+([\d.%]+)\s+([\d.%]+)\s*(?:\/\s*([\d.%]+)\s*)?\)$/i,a=/^color\(srgb\s+([\d.%]+)\s+([\d.%]+)\s+([\d.%]+)\s*(?:\/\s*([\d.%]+)\s*)?\)$/i;let u;const d=function(t){if("string"!=typeof t||""===t)return t;const n=t.trim();if(/^rgba?\(/i.test(n)&&-1!==n.indexOf(","))return n;const e=n.match(f);if(e)return c(Math.round(parseFloat(e[1])),Math.round(parseFloat(e[2])),Math.round(parseFloat(e[3])),l(e[4]));const o=n.match(a);if(o)return c(s(o[1]),s(o[2]),s(o[3]),l(o[4]));if(void 0===u){const t=document.createElement("canvas");t.width=1,t.height=1,u="function"==typeof t.getContext?t.getContext("2d",{willReadFrequently:!0}):null}if(!u||"function"!=typeof u.getImageData)return n;u.clearRect(0,0,1,1),u.fillStyle=n,u.fillRect(0,0,1,1);const S=u.getImageData(0,0,1,1).data;return!S||S.length<4||"number"!=typeof S[0]?n:c(S[0],S[1],S[2],S[3]/255)},b=t=>""===t||"transparent"==i.rgb2hex(t),p=function(t){const n=window.getComputedStyle(t,null),e=d(n.getPropertyValue("background-color"));let o=e,S=t;for(;b(o);){if(S=S.parentElement,null==S){o="rgb(255, 255, 255)";break}o=d(window.getComputedStyle(S,null).getPropertyValue("background-color"))}return{background:b(e)?"transparent":i.rgb2hex(e),detail:[i.rgba2hex(d(n.getPropertyValue("color")),o),i.rgb2hex(o)],zoom:parseInt(n.getPropertyValue("font-size").slice(0,-2))/30}},v=[];let g=null;const h=()=>{v.slice().forEach((t=>t()))},m=function(t){if(null==g&&"undefined"!=typeof MutationObserver){g=new MutationObserver(h);const t={attributes:!0,attributeFilter:["class","style","data-theme"]};g.observe(document.documentElement,t),document.body&&g.observe(document.body,t);const n="function"==typeof window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;n&&"function"==typeof n.addEventListener&&n.addEventListener.length<=2?n.addEventListener("change",h):n&&"function"==typeof n.addListener&&n.addListener(h)}return v.push(t),()=>{const n=v.indexOf(t);-1!==n&&v.splice(n,1)}},y=function(t,n){return n<t.length&&(n*=2),t.concat(Array(n-t.length).fill(null))},$=function(t,n,e){let o,S=[];const i=Math.ceil(t.length/n);for(let r=0;r<i;r+=1)o=t.slice(r*n,(r+1)*n),S=y(S.concat(o),e*(r+1));return S},w=function(t){return null!=o.symbolSize(t)},j=function(t){const n=t?t.getBoundingClientRect():{top:0,left:0};return{top:n.top+(window.pageYOffset||window.document.documentElement.scrollTop),left:n.left+(window.pageXOffset||window.document.documentElement.scrollLeft)}},O=function(t,n){if(!n)return!1;const e=t.firstElementChild.getBoundingClientRect(),o=j(t),S=e.width,i=e.height,r=j(n);return!(r.left>o.left+S-S/2||r.left+n.offsetWidth<o.left+S/2||r.top>o.top+i-i/2||r.top+n.offsetHeight<o.top+i/2)},k={S10000:["S10000","S10110","S10210","S10310","S10410","S10510","S10610","S10710","S10810","S10910","S10a10","S10b10","S10c10","S10d10"],S10e00:["S10e00","S10f10","S11010","S11110","S11210","S11310","S11410","S11510","S11610","S11710","S11810","S11910","S11a10","S11b10","S11c10","S11d10"],S11e00:["S11e00","S11f10","S12010","S12110","S12210","S12310","S12410","S12510","S12610","S12710","S12810","S12910","S12a10","S12b10","S12c10","S12d10","S12e10","S12f10","S13010","S13110","S13210","S13310","S13410","S13510","S13610","S13710","S13810","S13910","S13a10","S13b10","S13c10","S13d10","S13e10","S13f10","S14010","S14110","S14210","S14310"],S14400:["S14400","S14510","S14610","S14710","S14810","S14910","S14a10","S14b10"],S14c00:["S14c00","S14d10","S14e10","S14f10","S15010","S15110","S15210","S15310","S15410","S15510","S15610","S15710","S15810","S15910","S15a10","S15b10","S15c10","S15d10","S15e10","S15f10","S16010","S16110","S16210","S16310","S16410","S16510","S16610","S16710","S16810","S16910","S16a10","S16b10","S16c10","S16d10","S16e10","S16f10","S17010","S17110","S17210","S17310","S17410","S17510","S17610","S17710","S17810","S17910","S17a10","S17b10","S17c10","S17d10","S17e10","S17f10","S18010","S18110","S18210","S18310","S18410","S18510"],S18600:["S18600","S18710","S18810","S18910","S18a10","S18b10","S18c10","S18d10","S18e10","S18f10","S19010","S19110","S19210","S19310","S19410","S19510","S19610","S19710","S19810","S19910","S19a10","S19b10","S19c10","S19d10","S19e10","S19f10","S1a010","S1a110","S1a210","S1a310"],S1a400:["S1a400","S1a510","S1a610","S1a710","S1a810","S1a910","S1aa10","S1ab10","S1ac10","S1ad10","S1ae10","S1af10","S1b010","S1b110","S1b210","S1b310","S1b410","S1b510","S1b610","S1b710","S1b810","S1b910"],S1ba00:["S1ba00","S1bb10","S1bc10","S1bd10","S1be10","S1bf10","S1c010","S1c110","S1c210","S1c310","S1c410","S1c510","S1c610","S1c710","S1c810","S1c910","S1ca10","S1cb10","S1cc10"],S1cd00:["S1cd00","S1ce10","S1cf10","S1d010","S1d110","S1d210","S1d310","S1d410","S1d510","S1d610","S1d710","S1d810","S1d910","S1da10","S1db10","S1dc10","S1dd10","S1de10","S1df10","S1e010","S1e110","S1e200","S1e310","S1e410","S1e510","S1e610","S1e710","S1e810","S1e910","S1ea10","S1eb10","S1ec10","S1ed10","S1ee10","S1ef10","S1f010","S1f110","S1f210","S1f310","S1f410"],S1f500:["S1f500","S1f610","S1f710","S1f810","S1f910","S1fa10","S1fb10","S1fc10","S1fd10","S1fe10","S1ff10","S20010","S20110","S20210","S20310","S20410"],S20500:["S20500","S20600","S20700","S20800","S20900","S20a00","S20b00","S20c00","S20d00","S20e00","S20f00","S21000","S21100","S21200","S21300","S21400","S21500"],S21600:["S21600","S21700","S21800","S21900","S21a00","S21b00","S21c00","S21d00","S21e00","S21f00","S22000","S22100","S22200","S22300","S22400","S22500","S22600","S22700","S22800","S22900"],S22a00:["S22a00","S22b00","S22c00","S22d00","S22e00","S22f00","S23000","S23100","S23200","S23300","S23400","S23500","S23600","S23700","S23800","S23900","S23a00","S23b00","S23c00","S23d00","S23e00","S23f00","S24000","S24100","S24200","S24300","S24400","S24500","S24600","S24700","S24800","S24900","S24a00","S24b00","S24c00","S24d00","S24e00","S24f00","S25000","S25100","S25200","S25300","S25400"],S25500:["S25500","S25600","S25700","S25800","S25900","S25a00","S25b00","S25c00","S25d00","S25e00","S25f00","S26000","S26100","S26200","S26300","S26400"],S26500:["S26500","S26600","S26700","S26800","S26900","S26a00","S26b00","S26c00","S26d00","S26e00","S26f00","S27000","S27100","S27200","S27300","S27400","S27500","S27600","S27700","S27800","S27900","S27a00","S27b00","S27c00","S27d00","S27e00","S27f00","S28000","S28100","S28200","S28300","S28400","S28500","S28600","S28700"],S28800:["S28800","S28900","S28a00","S28b00","S28c00","S28d00","S28e00","S28f00","S29000","S29100","S29200","S29300","S29400","S29500","S29600","S29700","S29800","S29900","S29a00","S29b00","S29c00","S29d00","S29e00","S29f00","S2a000","S2a100","S2a200","S2a300","S2a400","S2a500"],S2a600:["S2a600","S2a700","S2a800","S2a900","S2aa00","S2ab00","S2ac00","S2ad00","S2ae00","S2af00","S2b000","S2b100","S2b200","S2b300","S2b400","S2b500","S2b600"],S2b700:["S2b700","S2b800","S2b900","S2ba00","S2bb00","S2bc00","S2bd00","S2be00","S2bf00","S2c000","S2c100","S2c200","S2c300","S2c400","S2c500","S2c600","S2c700","S2c800","S2c900","S2ca00","S2cb00","S2cc00","S2cd00","S2ce00","S2cf00","S2d000","S2d100","S2d200","S2d300","S2d400"],S2d500:["S2d500","S2d600","S2d700","S2d800","S2d900","S2da00","S2db00","S2dc00","S2dd00","S2de00","S2df00","S2e000","S2e100","S2e200"],S2e300:["S2e300","S2e400","S2e500","S2e600","S2e700","S2e800","S2e900","S2ea00","S2eb00","S2ec00","S2ed00","S2ee00","S2ef00","S2f000","S2f100","S2f200","S2f300","S2f400","S2f500","S2f600"],S2f700:["S2f700","S2f800","S2f900","S2fa00","S2fb00","S2fc00","S2fd00","S2fe00"],S2ff00:["S2ff00","S30000","S30100","S30200","S30300","S30400","S30500","S30600","S30700","S30800","S30900"],S30a00:["S30a00","S30b00","S30c00","S30d00","S30e00","S30f00","S31000","S31100","S31200","S31300","S31400","S31500","S31600","S31700","S31800","S31900","S31a00","S31b00","S31c00","S31d00","S31e00","S31f00","S32000","S32100","S32200","S32300","S32400","S32500","S32600","S32700","S32800","S32900"],S32a00:["S32a00","S32b00","S32c00","S32d00","S32e00","S32f00","S33000","S33100","S33200","S33300","S33400","S33500","S33600","S33700","S33800","S33900","S33a00"],S33b00:["S33b00","S33c00","S33d00","S33e00","S33f00","S34000","S34100","S34200","S34300","S34400","S34500","S34600","S34700","S34800","S34900","S34a00","S34b00","S34c00","S34d00","S34e00","S34f00","S35000","S35100","S35200","S35300","S35400","S35500","S35600","S35700","S35800"],S35900:["S35900","S35a00","S35b00","S35c00","S35d00","S35e00","S35f00","S36000","S36100","S36200","S36300","S36400","S36500","S36600","S36700","S36800","S36900","S36a00","S36b00","S36c00"],S36d00:["S36d00","S36e00","S36f00","S37000","S37100","S37200","S37300","S37400","S37500"],S37600:["S37600","S37700","S37800","S37900","S37a00","S37b00","S37c00","S37d00","S37e00"],S37f00:["S37f00","S38000","S38100","S38200","S38300","S38400","S38500","S38600"],S38700:["S38700","S38800","S38900","S38a00","S38b00"]},x={"񀀁":["񀀁","񀁱","񀃑","񀄱","񀆑","񀇱","񀉑","񀊱","񀌑","񀍱","񀏑","񀐱","񀒑","񀓱"],"񀕁":["񀕁","񀖱","񀘑","񀙱","񀛑","񀜱","񀞑","񀟱","񀡑","񀢱","񀤑","񀥱","񀧑","񀨱","񀪑","񀫱"],"񀭁":["񀭁","񀮱","񀰑","񀱱","񀳑","񀴱","񀶑","񀷱","񀹑","񀺱","񀼑","񀽱","񀿑","񁀱","񁂑","񁃱","񁅑","񁆱","񁈑","񁉱","񁋑","񁌱","񁎑","񁏱","񁑑","񁒱","񁔑","񁕱","񁗑","񁘱","񁚑","񁛱","񁝑","񁞱","񁠑","񁡱","񁣑","񁤱"],"񁦁":["񁦁","񁧱","񁩑","񁪱","񁬑","񁭱","񁯑","񁰱"],"񁲁":["񁲁","񁳱","񁵑","񁶱","񁸑","񁹱","񁻑","񁼱","񁾑","񁿱","񂁑","񂂱","񂄑","񂅱","񂇑","񂈱","񂊑","񂋱","񂍑","񂎱","񂐑","񂑱","񂓑","񂔱","񂖑","񂗱","񂙑","񂚱","񂜑","񂝱","񂟑","񂠱","񂢑","񂣱","񂥑","񂦱","񂨑","񂩱","񂫑","񂬱","񂮑","񂯱","񂱑","񂲱","񂴑","񂵱","񂷑","񂸱","񂺑","񂻱","񂽑","񂾱","񃀑","񃁱","񃃑","񃄱","񃆑","񃇱"],"񃉁":["񃉁","񃊱","񃌑","񃍱","񃏑","񃐱","񃒑","񃓱","񃕑","񃖱","񃘑","񃙱","񃛑","񃜱","񃞑","񃟱","񃡑","񃢱","񃤑","񃥱","񃧑","񃨱","񃪑","񃫱","񃭑","񃮱","񃰑","񃱱","񃳑","񃴱"],"񃶁":["񃶁","񃷱","񃹑","񃺱","񃼑","񃽱","񃿑","񄀱","񄂑","񄃱","񄅑","񄆱","񄈑","񄉱","񄋑","񄌱","񄎑","񄏱","񄑑","񄒱","񄔑","񄕱"],"񄗁":["񄗁","񄘱","񄚑","񄛱","񄝑","񄞱","񄠑","񄡱","񄣑","񄤱","񄦑","񄧱","񄩑","񄪱","񄬑","񄭱","񄯑","񄰱","񄲑"],"񄳡":["񄳡","񄵑","񄶱","񄸑","񄹱","񄻑","񄼱","񄾑","񄿱","񅁑","񅂱","񅄑","񅅱","񅇑","񅈱","񅊑","񅋱","񅍑","񅎱","񅐑","񅑱","񅓁","񅔱","񅖑","񅗱","񅙑","񅚱","񅜑","񅝱","񅟑","񅠱","񅢑","񅣱","񅥑","񅦱","񅨑","񅩱","񅫑","񅬱","񅮑"],"񅯡":["񅯡","񅱑","񅲱","񅴑","񅵱","񅷑","񅸱","񅺑","񅻱","񅽑","񅾱","񆀑","񆁱","񆃑","񆄱","񆆑"],"񆇡":["񆇡","񆉁","񆊡","񆌁","񆍡","񆏁","񆐡","񆒁","񆓡","񆕁","񆖡","񆘁","񆙡","񆛁","񆜡","񆞁","񆟡"],"񆡁":["񆡁","񆢡","񆤁","񆥡","񆧁","񆨡","񆪁","񆫡","񆭁","񆮡","񆰁","񆱡","񆳁","񆴡","񆶁","񆷡","񆹁","񆺡","񆼁","񆽡"],"񆿁":["񆿁","񇀡","񇂁","񇃡","񇅁","񇆡","񇈁","񇉡","񇋁","񇌡","񇎁","񇏡","񇑁","񇒡","񇔁","񇕡","񇗁","񇘡","񇚁","񇛡","񇝁","񇞡","񇠁","񇡡","񇣁","񇤡","񇦁","񇧡","񇩁","񇪡","񇬁","񇭡","񇯁","񇰡","񇲁","񇳡","񇵁","񇶡","񇸁","񇹡","񇻁","񇼡","񇾁"],"񇿡":["񇿡","񈁁","񈂡","񈄁","񈅡","񈇁","񈈡","񈊁","񈋡","񈍁","񈎡","񈐁","񈑡","񈓁","񈔡","񈖁"],"񈗡":["񈗡","񈙁","񈚡","񈜁","񈝡","񈟁","񈠡","񈢁","񈣡","񈥁","񈦡","񈨁","񈩡","񈫁","񈬡","񈮁","񈯡","񈱁","񈲡","񈴁","񈵡","񈷁","񈸡","񈺁","񈻡","񈽁","񈾡","񉀁","񉁡","񉃁","񉄡","񉆁","񉇡","񉉁","񉊡"],"񉌁":["񉌁","񉍡","񉏁","񉐡","񉒁","񉓡","񉕁","񉖡","񉘁","񉙡","񉛁","񉜡","񉞁","񉟡","񉡁","񉢡","񉤁","񉥡","񉧁","񉨡","񉪁","񉫡","񉭁","񉮡","񉰁","񉱡","񉳁","񉴡","񉶁","񉷡"],"񉹁":["񉹁","񉺡","񉼁","񉽡","񉿁","񊀡","񊂁","񊃡","񊅁","񊆡","񊈁","񊉡","񊋁","񊌡","񊎁","񊏡","񊑁"],"񊒡":["񊒡","񊔁","񊕡","񊗁","񊘡","񊚁","񊛡","񊝁","񊞡","񊠁","񊡡","񊣁","񊤡","񊦁","񊧡","񊩁","񊪡","񊬁","񊭡","񊯁","񊰡","񊲁","񊳡","񊵁","񊶡","񊸁","񊹡","񊻁","񊼡","񊾁"],"񊿡":["񊿡","񋁁","񋂡","񋄁","񋅡","񋇁","񋈡","񋊁","񋋡","񋍁","񋎡","񋐁","񋑡","񋓁"],"񋔡":["񋔡","񋖁","񋗡","񋙁","񋚡","񋜁","񋝡","񋟁","񋠡","񋢁","񋣡","񋥁","񋦡","񋨁","񋩡","񋫁","񋬡","񋮁","񋯡","񋱁"],"񋲡":["񋲡","񋴁","񋵡","񋷁","񋸡","񋺁","񋻡","񋽁"],"񋾡":["񋾡","񌀁","񌁡","񌃁","񌄡","񌆁","񌇡","񌉁","񌊡","񌌁","񌍡"],"񌏁":["񌏁","񌐡","񌒁","񌓡","񌕁","񌖡","񌘁","񌙡","񌛁","񌜡","񌞁","񌟡","񌡁","񌢡","񌤁","񌥡","񌧁","񌨡","񌪁","񌫡","񌭁","񌮡","񌰁","񌱡","񌳁","񌴡","񌶁","񌷡","񌹁","񌺡","񌼁","񌽡"],"񌿁":["񌿁","񍀡","񍂁","񍃡","񍅁","񍆡","񍈁","񍉡","񍋁","񍌡","񍎁","񍏡","񍑁","񍒡","񍔁","񍕡","񍗁"],"񍘡":["񍘡","񍚁","񍛡","񍝁","񍞡","񍠁","񍡡","񍣁","񍤡","񍦁","񍧡","񍩁","񍪡","񍬁","񍭡","񍯁","񍰡","񍲁","񍳡","񍵁","񍶡","񍸁","񍹡","񍻁","񍼡","񍾁","񍿡","񎁁","񎂡","񎄁"],"񎅡":["񎅡","񎇁","񎈡","񎊁","񎋡","񎍁","񎎡","񎐁","񎑡","񎓁","񎔡","񎖁","񎗡","񎙁","񎚡","񎜁","񎝡","񎟁","񎠡","񎢁"],"񎣡":["񎣡","񎥁","񎦡","񎨁","񎩡","񎫁","񎬡","񎮁","񎯡"],"񎱁":["񎱁","񎲡","񎴁","񎵡","񎷁","񎸡","񎺁","񎻡","񎽁"],"񎾡":["񎾡","񏀁","񏁡","񏃁","񏄡","񏆁","񏇡","񏉁"],"񏊡":["񏊡","񏌁","񏍡","񏏁","񏐡"]},M=function(){o.cssAppend(),o.cssLoaded((()=>{window.sgnw=!0,window.dispatchEvent(r)}))}||(()=>{}),F='*,*::before,*::after{box-sizing:border-box}:host{--font-color:#424242;--button-color:lightgray;--button-hover:darkgray;--bg-color:#fff}[data-color-mode="dark"] :host,[data-theme="dark"] :host{--font-color:#e1e1ff;--button-color:gray;--button-hover:darkgray;--bg-color:#161625}.swu{font-family:SuttonSignWritingOneD !important}';function _(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var W,z=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],S=_(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);S&&Object.defineProperty(t,e,{get(){return S.get.call(this)},set(t){S.set.call(this,t)},configurable:!0,enumerable:!0}),n.S.has(e)?t[e]=n.S.get(e):void 0!==o&&(t[e]=o)}}))},C=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},E=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.l&&z(t,n))},A=(t,n)=>n in t,L=(t,n)=>(0,console.error)(t,n),N=new Map,D=new Map,R="slot-fb{display:contents}slot-fb[hidden]{display:none}",I="undefined"!=typeof window?window:{},T={l:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},Z=t=>Promise.resolve(t),P=(()=>{try{return!!I.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),H=!!P&&(()=>!!I.document&&Object.getOwnPropertyDescriptor(I.document.adoptedStyleSheets,"length").writable)(),U=!1,q=[],B=[],G=(t,n)=>e=>{t.push(e),U||(U=!0,n&&4&T.l?J(Y):T.raf(Y))},V=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){L(t)}t.length=0},Y=()=>{V(q),V(B),(U=q.length>0)&&T.raf(Y)},J=t=>Z().then(t),K=G(B,!0);function Q(){var t;const n=this.attachShadow({mode:"open"});if(void 0===W&&(W=null!=(t=function(t){if(!P)return;const n=new CSSStyleSheet;return n.replaceSync(t),n}(F))?t:null),W)H?n.adoptedStyleSheets.push(W):n.adoptedStyleSheets=[...n.adoptedStyleSheets,W];else if(!P){const t=document.createElement("style");t.innerHTML=F,n.prepend(t)}}var X=t=>{const n=St(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&tt(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!nt(t,ot(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&St(t,"childNodes").length&&X(t)}};function tt(t,n,e){let o,S=0,i=[];for(;S<t.length;S++){if(o=t[S],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||ot(o)===e)&&(i.push(o),void 0!==e))return i;i=[...i,...tt(o.childNodes,n,e)]}return i}var nt=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let S=t;for(;S=S.nextSibling;)ot(S)!==n||!e&&S["s-sr"]||o.push(S);return o},et=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,ot=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function St(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}function it(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var rt,lt,st,ct=new WeakMap,ft=t=>"sc-"+t.p,at=t=>"object"==(t=typeof t)||"function"===t,ut=(t,n,...e)=>{let o=null,S=null,i=null,r=!1,l=!1;const s=[],c=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!at(o))&&(o+=""),r&&l?s[s.length-1].v+=o:s.push(r?dt(null,o):o),l=r)};if(c(e),n){n.key&&(S=n.key),n.name&&(i=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const f=dt(t,null);return f.h=n,s.length>0&&(f.m=s),f.$=S,f.j=i,f},dt=(t,n)=>({l:0,O:t,v:null!=n?n:null,k:null,m:null,h:null,$:null,j:null}),bt={},pt=t=>{if(!t)return;const n=Object.keys(t);if(0===n.length)return;let e=!1;for(const o of n){if(e)break;for(const n of t[o])if("string"==typeof n){e=!0;break}}if(!e)return t;const o={};for(const e of n)o[e]=t[e].map((t=>"string"==typeof t?{[t]:0}:t));return o},vt=(t,n)=>null==t||at(t)?t:4&n?"false"!==t&&(""===t||!!t):1&n?t+"":t,gt=t=>{var n;return null==(n=C(t))?void 0:n.$hostElement$},ht=(t,n)=>{const e=gt(t);return{emit:t=>mt(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},mt=(t,n,e)=>{const o=T.ce(n,e);return t.dispatchEvent(o),o},yt=(t,n,e,o,S,i)=>{if(e===o)return;let r=A(t,n),l=n.toLowerCase();if("class"===n){const n=t.classList,S=wt(e);let i=wt(o);n.remove(...S.filter((t=>t&&!i.includes(t)))),n.add(...i.filter((t=>t&&!S.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if(r||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let S;{const n=C(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(S=t[1])}}return S||(S=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(S)||t.removeAttribute(S):t.setAttribute(S,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const l=at(o);if((r||l&&null!==o)&&!S)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const S=null==o?"":o;"list"===n?r=!1:null!=e&&t[n]===S||("function"==typeof t.__lookupSetter__(n)?t[n]=S:t.setAttribute(n,S))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(n)||t.removeAttribute(n):(!r||4&i||S)&&!l&&1===t.nodeType&&t.setAttribute(n,o=!0===o?"":o)}}else if(n="-"===n[2]?n.slice(3):A(I,l)?l.slice(2):l[2]+n.slice(3),e||o){const S=n.endsWith(jt);n=n.replace(Ot,""),e&&T.rel(t,n,e,S),o&&T.ael(t,n,o,S)}},$t=/\s/,wt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split($t):[]),jt="Capture",Ot=RegExp(jt+"$"),kt=(t,n,e)=>{const o=11===n.k.nodeType&&n.k.host?n.k.host:n.k,S=t&&t.h||{},i=n.h||{};for(const t of xt(Object.keys(S)))t in i||yt(o,t,S[t],void 0,e,n.l);for(const t of xt(Object.keys(i)))yt(o,t,S[t],i[t],e,n.l)};function xt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Mt=!1,Ft=!1,_t=!1,Wt=!1,zt=(t,n,e)=>{var o;const S=n.m[e];let i,r,l,s=0;if(Mt||(_t=!0,"slot"===S.O&&(S.l|=S.m?2:1)),null!=S.v)i=S.k=I.document.createTextNode(S.v);else if(1&S.l)i=S.k=I.document.createTextNode(""),kt(null,S,Wt);else{if(Wt||(Wt="svg"===S.O),!I.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=S.k=I.document.createElementNS(Wt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Mt&&2&S.l?"slot-fb":S.O),Wt&&"foreignObject"===S.O&&(Wt=!1),kt(null,S,Wt),null!=rt&&void 0!==rt&&i["s-si"]!==rt&&i.classList.add(i["s-si"]=rt),S.m){const n="template"===S.O?i.content:i;for(s=0;s<S.m.length;++s)r=zt(t,S,s),r&&n.appendChild(r)}"svg"===S.O?Wt=!1:"foreignObject"===i.tagName&&(Wt=!0)}return i["s-hn"]=st,3&S.l&&(i["s-sr"]=!0,i["s-cr"]=lt,i["s-sn"]=S.j||"",i["s-rf"]=null==(o=S.h)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(S.childNodes)).forEach((t=>{o===ot(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(i),l=t&&t.m&&t.m[e],l&&l.O===S.O&&t.k&&Ct(t.k),Pt(lt,i,n.k,null==t?void 0:t.k)),i},Ct=t=>{T.l|=1;const n=t.closest(st.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(Zt(n,t,null!=e?e:null),t["s-sh"]=void 0,_t=!0)}T.l&=-2},Et=(t,n)=>{T.l|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===st&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==st&&o["s-ol"]&&(Zt(Dt(o).parentNode,o,Dt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,_t=!0),n&&Et(o,n)}T.l&=-2},At=(t,n,e,o,S,i)=>{let r,l=t["s-cr"]&&t["s-cr"].parentNode||t;for(l.shadowRoot&&l.tagName===st&&(l=l.shadowRoot),"template"===e.O&&(l=l.content);S<=i;++S)o[S]&&(r=zt(null,e,S),r&&(o[S].k=r,Zt(l,r,Dt(n))))},Lt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;t&&(Ft=!0,t["s-ol"]?t["s-ol"].remove():Et(t,!0),t.remove())}}},Nt=(t,n,e=!1)=>t.O===n.O&&("slot"===t.O?t.j===n.j:e?(e&&!t.$&&n.$&&(t.$=n.$),!0):t.$===n.$),Dt=t=>t&&t["s-ol"]||t,Rt=(t,n,e=!1)=>{const o=n.k=t.k,S=t.m,i=n.m,r=n.O,l=n.v;let s;null==l?(Wt="svg"===r||"foreignObject"!==r&&Wt,"slot"!==r||Mt||t.j!==n.j&&(n.k["s-sn"]=n.j||"",Ct(n.k.parentElement)),kt(t,n,Wt),null!==S&&null!==i?((t,n,e,o,S=!1)=>{let i,r,l=0,s=0,c=0,f=0,a=n.length-1,u=n[0],d=n[a],b=o.length-1,p=o[0],v=o[b];const g="template"===e.O?t.content:t;for(;l<=a&&s<=b;)if(null==u)u=n[++l];else if(null==d)d=n[--a];else if(null==p)p=o[++s];else if(null==v)v=o[--b];else if(Nt(u,p,S))Rt(u,p,S),u=n[++l],p=o[++s];else if(Nt(d,v,S))Rt(d,v,S),d=n[--a],v=o[--b];else if(Nt(u,v,S))"slot"!==u.O&&"slot"!==v.O||Et(u.k.parentNode,!1),Rt(u,v,S),Zt(g,u.k,d.k.nextSibling),u=n[++l],v=o[--b];else if(Nt(d,p,S))"slot"!==u.O&&"slot"!==v.O||Et(d.k.parentNode,!1),Rt(d,p,S),Zt(g,d.k,u.k),d=n[--a],p=o[++s];else{for(c=-1,f=l;f<=a;++f)if(n[f]&&null!==n[f].$&&n[f].$===p.$){c=f;break}c>=0?(r=n[c],r.O!==p.O?i=zt(n&&n[s],e,c):(Rt(r,p,S),n[c]=void 0,i=r.k),p=o[++s]):(i=zt(n&&n[s],e,s),p=o[++s]),i&&Zt(Dt(u.k).parentNode,i,Dt(u.k))}l>a?At(t,null==o[b+1]?null:o[b+1].k,e,o,s,b):s>b&&Lt(n,l,a)})(o,S,n,i,e):null!==i?(null!==t.v&&(o.textContent=""),At(o,null,n,i,0,i.length-1)):!e&&null!==S&&Lt(S,0,S.length-1),Wt&&"svg"===r&&(Wt=!1)):(s=o["s-cr"])?s.parentNode.textContent=l:t.v!==l&&(o.data=l)},It=[],Tt=t=>{let n,e,o;const S=t.__childNodes||t.childNodes;for(const t of S){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const S=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(et(n,S)){let e=It.find((t=>t.M===n));Ft=!0,n["s-sn"]=n["s-sn"]||S,e?(e.M["s-sh"]=t["s-hn"],e.F=t):(n["s-sh"]=t["s-hn"],It.push({F:t,M:n})),n["s-sr"]&&It.map((t=>{et(t.M,n["s-sn"])&&(e=It.find((t=>t.M===n)),e&&!t.F&&(t.F=e.F))}))}else It.some((t=>t.M===n))||It.push({M:n})}1===t.nodeType&&Tt(t)}},Zt=(t,n,e,o)=>{if("string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])Pt(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:S}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=ot(t)||"";return{slotNode:tt(St(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return S&&!o&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(S),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)};function Pt(t,n,e,o){var S,i;let r;if(t&&"string"==typeof n["s-sn"]&&n["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(r=n["s-si"]||t.parentNode["s-sc"])){const t=n["s-sn"],l=n["s-hn"];if(null==(S=e.classList)||S.add(r+"-s"),o&&(null==(i=o.classList)?void 0:i.contains(r+"-s"))){let n=(o.__childNodes||o.childNodes)[0],e=!1;for(;n;){if(n["s-sn"]!==t&&n["s-hn"]===l&&n["s-sr"]){e=!0;break}n=n.nextSibling}e||o.classList.remove(r+"-s")}}}var Ht=(t,n)=>{if(n&&!t._&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t._=()=>{n["s-p"].splice(e-1,1),o()})))}},Ut=(t,n)=>{if(t.l|=16,4&t.l)return void(t.l|=512);Ht(t,t.W);const e=()=>qt(t,n);if(!n)return K(e);queueMicrotask((()=>{e()}))},qt=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let S;return n?(t.C&&(t.C=!1,Xt(o,"connectedCallback",void 0,e)),t.l|=256,t.A&&(t.A.map((([t,n])=>Xt(o,t,n,e))),t.A=void 0),t.L.length&&t.L.forEach((t=>t(e))),S=Xt(o,"componentWillLoad",void 0,e)):S=Xt(o,"componentWillUpdate",void 0,e),S=Bt(S,(()=>Xt(o,"componentWillRender",void 0,e))),Bt(S,(()=>Vt(t,o,n)))},Bt=(t,n)=>Gt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Gt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Vt=async(t,n,e)=>{var o;const S=t.$hostElement$,i=S["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.l,S=((t,n)=>{var e,o,S;const i=ft(n),r=D.get(i);if(!I.document)return i;if(t=11===t.nodeType?t:I.document,r)if("string"==typeof r){let S,l=ct.get(t=t.head||t);if(l||ct.set(t,l=new Set),!l.has(i)){S=I.document.createElement("style"),S.textContent=r;const s=null!=(e=T.N)?e:it(I.document);if(null!=s&&S.setAttribute("nonce",s),!(1&n.l))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(S,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(P){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(r),H?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=r+n.textContent:t.prepend(S)}else t.append(S);1&n.l&&t.insertBefore(S,null),4&n.l&&(S.textContent+=R),l&&l.add(i)}}else{let n=ct.get(t);if(n||ct.set(t,n=new Set),!n.has(i)){const e=null!=(S=t.defaultView)?S:t.ownerDocument.defaultView;let o;if(r.constructor===e.CSSStyleSheet)o=r;else{o=new e.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)o.insertRule(r.cssRules[t].cssText,t)}H?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(i)}}return i})(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=S,e.classList.add(S+"-h"))})(t);Yt(t,n,S,e),i&&(i.map((t=>t())),S["s-rc"]=void 0);{const n=null!=(o=S["s-p"])?o:[],e=()=>Jt(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.l|=4,n.length=0)}},Yt=(t,n,e,o)=>{try{n=n.render(),t.l&=-17,t.l|=2,((t,n,e=!1)=>{var o,S,i,r,l;const s=t.$hostElement$,c=t.o,f=t.D||dt(null,null),a=(t=>t&&t.O===bt)(n)?n:ut(null,null,n);if(st=s.tagName,c.R&&(a.h=a.h||{},c.R.forEach((([t,n])=>{a.h[n]=s[t]}))),e&&a.h)for(const t of Object.keys(a.h))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(a.h[t]=s[t]);if(a.O=null,a.l|=4,t.D=a,a.k=f.k=s.shadowRoot||s,rt=s["s-sc"],Mt=!(!(1&c.l)||128&c.l),lt=s["s-cr"],Ft=!1,Rt(f,a,e),T.l|=1,_t){Tt(a.k);for(const t of It){const n=t.M;if(!n["s-ol"]&&I.document){const t=I.document.createTextNode("");t["s-nr"]=n,Zt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of It){const n=t.M,l=t.F;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),l){const t=l.parentNode;let o=l.nextSibling;if(o&&1===o.nodeType){let e=null==(S=n["s-ol"])?void 0:S.previousSibling;for(;e;){let S=null!=(i=e["s-nr"])?i:null;if(S&&S["s-sn"]===n["s-sn"]&&t===(S.__parentNode||S.parentNode)){for(S=S.nextSibling;S===n||(null==S?void 0:S["s-sr"]);)S=null==S?void 0:S.nextSibling;if(!S||!S["s-nr"]){o=S;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(Zt(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=I.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,Zt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(r=n["s-ih"])&&r)}n&&"function"==typeof l["s-rf"]&&l["s-rf"](l)}else 1===n.nodeType&&(n.hidden=!0)}}if(Ft&&X(a.k),T.l&=-2,It.length=0,!Mt&&!(1&c.l)&&s["s-cr"]){const t=a.k.__childNodes||a.k.childNodes;for(const n of t)if(n["s-hn"]!==st&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(l=n.hidden)&&l),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=I.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],Zt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}lt=void 0})(t,n,o)}catch(n){L(n,t.$hostElement$)}return null},Jt=t=>{const n=t.$hostElement$,e=t.i,o=t.W;Xt(e,"componentDidRender",void 0,n),64&t.l?Xt(e,"componentDidUpdate",void 0,n):(t.l|=64,tn(n),Xt(e,"componentDidLoad",void 0,n),t.I(n),o||Qt()),t._&&(t._(),t._=void 0),512&t.l&&J((()=>Ut(t,!1))),t.l&=-517},Kt=t=>{var n;{const e=C(t),o=null==(n=null==e?void 0:e.$hostElement$)?void 0:n.isConnected;return o&&2==(18&e.l)&&Ut(e,!1),o}},Qt=()=>{J((()=>mt(I,"appload",{detail:{namespace:"sgnw-components"}})))},Xt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){L(t,o)}},tn=t=>t.classList.add("hydrated"),nn=(t,n,e,o)=>{const S=C(t);if(!S)return;if(!S)throw Error(`Couldn't find host element for "${o.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=S.$hostElement$,r=S.S.get(n),l=S.l,s=S.i;if(e=vt(e,o.t[n][0]),!(8&l&&void 0!==r||e===r||Number.isNaN(r)&&Number.isNaN(e))){if(S.S.set(n,e),o.T){const t=o.T[n];t&&t.map((t=>{try{const[[o,i]]=Object.entries(t);(128&l||1&i)&&(s?s[o](e,r,n):S.L.push((()=>{S.i[o](e,r,n)})))}catch(t){L(t,i)}}))}if(2&l){if(s.componentShouldUpdate&&!1===s.componentShouldUpdate(e,r,n)&&!(16&l))return;16&l||Ut(S,!1)}}},en=(t,n,e)=>{var o,S;const i=t.prototype;{t.watchers&&!n.T&&(n.T=pt(t.watchers)),t.deserializers&&!n.Z&&(n.Z=t.deserializers),t.serializers&&!n.P&&(n.P=t.serializers);const r=Object.entries(null!=(o=n.t)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&e&&32&o){const{get:S,set:r}=_(i,t)||{};S&&(n.t[t][0]|=2048),r&&(n.t[t][0]|=4096),(1&e||!S)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.t[t][0]))return((t,n)=>C(this).S.get(n))(0,t);const e=C(this),o=e?e.i:i;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(S){const i=C(this);if(i){if(r)return void 0===(32&o?this[t]:i.$hostElement$[t])&&i.S.get(t)&&(S=i.S.get(t)),r.call(this,vt(S,o)),void nn(this,t,S=32&o?this[t]:i.$hostElement$[t],n);{if(!(1&e&&4096&n.t[t][0]))return nn(this,t,S,n),void(1&e&&!i.i&&i.L.push((()=>{4096&n.t[t][0]&&i.i[t]!==i.S.get(t)&&(i.i[t]=S)})));const r=()=>{const e=i.i[t];!i.S.get(t)&&e&&i.S.set(t,e),i.i[t]=vt(S,o),nn(this,t,i.i[t],n)};i.i?r():i.L.push((()=>{r()}))}}}})}})),1&e){const e=new Map;i.attributeChangedCallback=function(t,o,S){T.jmp((()=>{var l;const s=e.get(t),c=C(this);if(this.hasOwnProperty(s)&&(S=this[s],delete this[s]),i.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==S)return;if(null==s){const e=null==c?void 0:c.l;if(c&&e&&!(8&e)&&S!==o){const i=c.i,r=null==(l=n.T)?void 0:l[t];null==r||r.forEach((n=>{const[[r,l]]=Object.entries(n);null!=i[r]&&(128&e||1&l)&&i[r].call(i,S,o,t)}))}return}const f=r.find((([t])=>t===s)),a=f&&4&f[1][0],u=a&&null===S&&void 0===this[s];a&&(S=null!==S&&"false"!==S);const d=Object.getOwnPropertyDescriptor(i,s);u||S==this[s]||d.get&&!d.set||(this[s]=S)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(S=n.T)?S:{}),...r.filter((([t,n])=>31&n[0])).map((([t,o])=>{var S;const i=o[1]||t;return e.set(i,t),512&o[0]&&(null==(S=n.R)||S.push([t,i])),i}))]))}}return t},on=(t,n)=>{Xt(t,"connectedCallback",void 0,n)},Sn=(t,n)=>{Xt(t,"disconnectedCallback",void 0,n||t)},rn=(t,n={})=>{var e;if(!I.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],S=n.exclude||[],i=I.customElements,r=I.document.head,l=r.querySelector("meta[charset]"),s=I.document.createElement("style"),c=[];let f,a=!0;Object.assign(T,n),T.u=new URL(n.resourcesUrl||"./",I.document.baseURI).href;let u=!1;if(t.map((t=>{t[1].map((n=>{var e,r;const l={l:n[0],p:n[1],t:n[2],H:n[3]};4&l.l&&(u=!0),l.t=n[2],l.H=n[3],l.R=[],l.T=pt(n[4]),l.P=null!=(e=n[5])?e:{},l.Z=null!=(r=n[6])?r:{};const s=l.p,d=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,n)=>{const e={l:0,$hostElement$:t,o:n,S:new Map,U:new Map};e.q=new Promise((t=>e.I=t)),t["s-p"]=[],t["s-rc"]=[],e.L=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,l),1&l.l)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Q.call(t,l)}connectedCallback(){const t=C(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ln(this,t,l.H)),f&&(clearTimeout(f),f=null),a?c.push(this):T.jmp((()=>(t=>{if(!(1&T.l)){const n=C(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.l)ln(t,n,e.H),(null==n?void 0:n.i)?on(n.i,t):(null==n?void 0:n.q)&&n.q.then((()=>on(n.i,t)));else{n.l|=1,12&e.l&&(t=>{if(!I.document)return;const n=t["s-cr"]=I.document.createComment("");n["s-cn"]=!0,Zt(t,n,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){Ht(n,n.W=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;try{if(!(32&n.l)){if(n.l|=32,e.B){const S=((t,n)=>{const e=t.p.replace(/-/g,"_"),o=t.B;if(!o)return;const S=N.get(o);return S?S[e]:import(`./${o}.entry.js`).then((t=>(N.set(o,t),t[e])),(t=>{L(t,n.$hostElement$)})) /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(S&&"then"in S){const t=()=>{};o=await S,t()}else o=S;if(!o)throw Error(`Constructor for "${e.p}#${n.G}" was not found`);o.isProxied||(e.T=pt(o.watchers),e.P=o.serializers,e.Z=o.deserializers,en(o,e,2),o.isProxied=!0);const i=()=>{};n.l|=8;try{new o(n)}catch(n){L(n,t)}n.l&=-9,n.l|=128,i(),4&e.l?n.C=!0:on(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.l|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const n=ft(e);if(!D.has(n)){const o=()=>{};((t,n,e)=>{let o=D.get(t);P&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,D.set(t,o)})(n,t,!!(1&e.l)),o()}}}const S=n.W,i=()=>Ut(n,!0);S&&S["s-rc"]?S["s-rc"].push(i):i()}catch(e){L(e,t),n._&&(n._(),n._=void 0),n.I&&n.I(t)}})(t,n,e)}o()}})(this))))}disconnectedCallback(){T.jmp((()=>(async t=>{if(!(1&T.l)){const n=C(t);(null==n?void 0:n.V)&&(n.V.map((t=>t())),n.V=void 0),(null==n?void 0:n.i)?Sn(n.i,t):(null==n?void 0:n.q)&&n.q.then((()=>Sn(n.i,t)))}ct.has(t)&&ct.delete(t),t.shadowRoot&&ct.has(t.shadowRoot)&&ct.delete(t.shadowRoot)})(this))),T.raf((()=>{var t;const n=C(this);if(!n)return;const e=c.findIndex((t=>t===this));e>-1&&c.splice(e,1),(null==(t=null==n?void 0:n.D)?void 0:t.k)instanceof Node&&!n.D.k.isConnected&&delete n.D.k}))}componentOnReady(){var t;return null==(t=C(this))?void 0:t.q}};l.B=t[0],S.includes(s)||i.get(s)||(o.push(s),i.define(s,en(d,l,1)))}))})),o.length>0&&(u&&(s.textContent+=R),s.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",s.innerHTML.length)){s.setAttribute("data-styles","");const t=null!=(e=T.N)?e:it(I.document);null!=t&&s.setAttribute("nonce",t),r.insertBefore(s,l?l.nextSibling:r.firstChild)}a=!1,c.length?c.map((t=>t.connectedCallback())):T.jmp((()=>f=setTimeout(Qt,30)))},ln=(t,n,e)=>{e&&I.document&&e.map((([e,o,S])=>{const i=cn(I.document,t,e),r=sn(n,S),l=fn(e);T.ael(i,o,r,l),(n.V=n.V||[]).push((()=>T.rel(i,o,r,l)))}))},sn=(t,n)=>e=>{var o;try{256&t.l?null==(o=t.i)||o[n](e):(t.A=t.A||[]).push([n,e])}catch(n){L(n,t.$hostElement$)}},cn=(t,n,e)=>8&e?I:n,fn=t=>({passive:!!(1&t),capture:!!(2&t)}),an=t=>T.N=t;export{bt as H,$ as a,rn as b,y as c,ut as d,gt as e,p as f,M as g,w as h,k as i,x as j,ht as k,Kt as l,m,O as o,Z as p,E as r,an as s}