dynamic-html-helpers 1.5.5 → 1.5.6

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,5 +1,5 @@
1
- var{IS:l,isOnly:Lr,maybe:O,$Wrap:Fr,isNothing:ut,addSymbolicExtensions:Ne,detectableProxy:_}=ct({useSymbolicExtensions:!1});function ct(t={}){let{useSymbolicExtensions:e}=t,r=mt(),{shouldbeIsSingleObject:n,ISOneOf:o,isExcept:i,verifyNothingness:a,determineType:b,addSymbolicExtensions:p,maybe:x,$Wrap:d,detectableProxy:y}=ft(m,e);return e&&p(),{IS:m,isOnly:S,maybe:x,$Wrap:d,isNothing:a,addSymbolicExtensions:p,detectableProxy:y};function m(f,...c){let s=Object.getOwnPropertySymbols(f||{})?.some(h=>h===Symbol.justME)&&c.length>0,u=f?.[Symbol.justME],g=s?u:typeof f=="symbol"?Symbol.isSymbol:f;switch(!0){case s:return r(u,...c);case!!x({trial:h=>"isTypes"in(c?.[0]??{})}):return n(f,c[0]);default:return c.length>1?o(g,...c):b(f,...c)}}function S(f,...c){return m({[Symbol.justME]:f},...c)}}function ft(t,e){let{SymbolAndCustomProxyFactory:r,maybeFactory:n,WrapAnyFactory:o,verifyNothingness:i,determineType:a,detectableProxy:b}=dt(t,y),{addSymbolicExtensions:p}=r(t,y,e),[x,d]=[n(),o(t,y)];return Object.freeze({shouldbeIsSingleObject:m,ISOneOf:S,isExcept:c,verifyNothingness:i,determineType:a,detectableProxy:b,addSymbolicExtensions:p,maybe:x,$Wrap:d});function y(s){return s?.[Symbol.proxy]||t(s)}function m(s,u){switch(!0){case"defaultValue"in u:return f(s,u);case"notTypes"in u:return c(s,u);default:return t(s,...[u.isTypes].flat())}}function S(s,...u){return u.some(g=>t(s,g))}function f(s,{defaultValue:u,isTypes:g=[void 0],notTypes:h}={}){return g=g?.constructor!==Array?[g]:g,h=h&&h?.constructor!==Array?[h]:[],h.length<1?t(s,...g)?s:u:c(s,{isTypes:g,notTypes:h})?s:u}function c(s,{isTypes:u=[void 0],notTypes:g=[void 0]}={}){return u=u?.constructor!==Array?[u]:u,g=g?.constructor!==Array?[g]:g,t(s,...u)&&!t(s,...g)}}function dt(){let t={IS:"toa.is",TYPE:"toa.type",IS_SYMBOL:"toa.isASymbol",PROXY:"toa.proxyFor",TARGET:"toa.target"},e={NAN:"NaN",INFINITY:"Infinity",BOOLEAN:"Boolean",OBJECT:"Object",PROXY_PREFIX:"Proxy for",JUSTME:"justME"},r=n();return Object.freeze({SymbolAndCustomProxyFactory:i,maybeFactory:f,WrapAnyFactory:S,verifyNothingness:c,determineType:p,detectableProxy:r});function n(){let s=h=>({get(w,A){return A===Symbol.proxy?`Proxy for ${h}`:A===Symbol.target?w:Reflect.get(w,A)},has(w,A){return A===Symbol.proxy?!0:A in w}});function u(h){let w=h.name||h.constructor.name;return new Proxy(h,s(w))}function g(h,w){return w=l(w,Object)?w:{},u(new Proxy(h,w))}return{wrap:u,create:g}}function o(s,u){Symbol.is||(Symbol.is=Symbol.for(t.IS),Symbol.type=Symbol.for(t.TYPE),Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return u(this)},enumerable:!1,configurable:!0},[Symbol.is]:{value:function(...g){return s(this,...g)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(g){return u(g)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(g,...h){return s(g,...h)},enumerable:!1,configurable:!1}}))}function i(s,u,g){return Symbol.isSymbol||(Symbol.isSymbol=Symbol.for(t.IS_SYMBOL),Symbol.proxy=Symbol.for(t.PROXY),Symbol.target=Symbol.for(t.target),Symbol.justME=Symbol.for(t.JUSTME)),{addSymbolicExtensions:()=>o(s,u)}}function a(s){return(ut(s,!0)?{name:"unknown"}:Object.getPrototypeOf(s)?.constructor).name}function b(s,...u){let g=u.length<1,h=s==null;return{noInput:h,noShouldbe:g,compareTo:!g&&u[0],inputCTOR:!h&&(s?.constructor||Object.getPrototypeOf(s)?.constructor),isNaN:Number.isNaN(s)||O({trial:w=>String(s)===e.NAN}),isInfinity:O({trial:w=>String(s)})===e.INFINITY,shouldBeFirstElementIsNothing:!g&&c(u[0])}}function p(s,...u){let{noInput:g,noShouldbe:h,compareTo:w,inputCTOR:A,isNaN:st,isInfinity:at,shouldBeFirstElementIsNothing:lt}=b(s,...u);switch(u=u.length&&u[0],!0){case lt:return String(s)===String(w);case(s?.[Symbol.proxy]&&h):return s[Symbol.proxy];case(s?.[Symbol.proxy]&&typeof u=="string"):return s[Symbol.proxy].toLowerCase()===u.toLowerCase();case st:return h?e.NAN:String(w)===String(s);case at:return h?e.INFINITY:String(w)===String(s);case g:return h?String(s):String(w)===String(s);case A===Boolean:return h?e.BOOLEAN:A===u;default:return d(s,u,h,x(s,A))}}function x(s,u){switch(!0){case s===0:return Number;case s==="":return String;case!s:return{name:String(s)};default:return u}}function d(s,u,g,h){switch(!0){case(!g&&u===s||s?.[Symbol.proxy]&&u===Proxy):return!0;case String(u)===e.NAN:return String(s)===e.NAN;case(s?.[Symbol.toStringTag]&&typeof u=="string"):return String(u)===s[Symbol.toStringTag];default:return u?m(s,u,h):y(s,h)}}function y(s,u){return(s?.[Symbol.toStringTag]??s?.prototype?.[Symbol.toStringTag])||u?.name||String(u)}function m(s,u,g){return O({trial:h=>s instanceof u})||u===g||u===Object.getPrototypeOf(g)||`${u?.name}`===g?.name}function S(s,u){return function(g){let h={get value(){return g},is(...w){return s(g,...w)},get type(){return u(g)}};return Object[Symbol.type]&&Object.defineProperties(h,{[Symbol.type]:{get(){return u(g)}},[Symbol.is]:{value(...w){return s(g,...w)}}}),Object.freeze(h)}}function f(){let s=u=>{};return function({trial:u,whenError:g=s}={}){try{return u()}catch(h){return g(h)}}}function c(s,u=!1){let g=s==null;return g=u?g||l(s,1/0)||l(s,NaN):g,g}}function mt(){let t=new Intl.Collator("en",{sensitivity:"base"}),e=o=>typeof o?.constructor=="function"?o?.name||o?.constructor?.name:typeof o=="string"?o:typeof o,r=o=>[null,void 0,1/0,NaN].some(i=>i===o);function n(o,i){if(i!==o&&(r(o)||i===Number&&(Number.isNaN(o)||!Number.isFinite(o))))return!1;let[a,b]=[e(o),e(i)];return o?.[Symbol.proxy]===i||i===o?.name||t.compare(a,b)===0||t.compare(o.constructor?.name,i?.name)===0||o.constructor?.name===i||a===i||t.compare(Object.prototype.toString.call(o),`[object ${b}]`)===0}return function(i,...a){if(Array.isArray(a)&&a.length>1){for(let b of a)if(n(i,b))return!0;return!1}return n(i,a?.[0])}}var He=yt(),I=gt(),Q=pt();function gt(){return{html:Object.freeze("accept,action,align,alt,autocapitalize,autocomplete,autopictureinpicture,autoplay,background,bgcolor,border,capture,cellpadding,cellspacing,checked,cite,class,clear,contenteditable,color,cols,colspan,controls,controlslist,coords,crossorigin,datetime,decoding,default,dir,disabled,disablepictureinpicture,disableremoteplayback,download,draggable,enctype,enterkeyhint,face,for,headers,height,hidden,high,href,hreflang,id,inputmode,integrity,is,ismap,kind,label,lang,list,loading,loop,low,max,maxlength,media,method,min,minlength,multiple,muted,name,nonce,noshade,novalidate,nowrap,open,optimum,pattern,placeholder,playsinline,poster,preload,pubdate,radiogroup,readonly,rel,required,rev,reversed,role,rows,rowspan,spellcheck,scope,selected,shape,size,sizes,span,srclang,start,src,srcset,step,style,summary,tabindex,target,title,translate,type,usemap,valign,value,width,xmlns,slot".split(",")),svg:Object.freeze("accent-height,accumulate,additive,alignment-baseline,ascent,attributename,attributetype,azimuth,basefrequency,baseline-shift,begin,bias,by,class,clip,clippathunits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,cx,cy,d,dx,dy,diffuseconstant,direction,display,divisor,dur,edgemode,elevation,end,fill,fill-opacity,fill-rule,filter,filterunits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,fx,fy,g1,g2,glyph-name,glyphref,gradientunits,gradienttransform,height,href,id,image-rendering,in,in2,k,k1,k2,k3,k4,kerning,keypoints,keysplines,keytimes,lang,lengthadjust,letter-spacing,kernelmatrix,kernelunitlength,lighting-color,local,marker-end,marker-mid,marker-start,markerheight,markerunits,markerwidth,maskcontentunits,maskunits,max,mask,media,method,mode,min,name,numoctaves,offset,operator,opacity,order,orient,orientation,origin,overflow,paint-order,path,pathlength,patterncontentunits,patterntransform,patternunits,points,preservealpha,preserveaspectratio,primitiveunits,r,rx,ry,radius,refx,refy,repeatcount,repeatdur,restart,result,rotate,scale,seed,shape-rendering,specularconstant,specularexponent,spreadmethod,startoffset,stddeviation,stitchtiles,stop-color,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke,stroke-width,style,surfacescale,systemlanguage,tabindex,targetx,targety,transform,text-anchor,text-decoration,text-rendering,textlength,type,u1,u2,unicode,values,viewbox,visibility,version,vert-adv-y,vert-origin-x,vert-origin-y,width,word-spacing,wrap,writing-mode,xchannelselector,ychannelselector,x,x1,x2,xmlns,y,y1,y2,z,zoomandpan".split(","))}}function pt(){return{a:!0,area:!0,audio:!1,br:!0,base:!0,body:!0,button:!0,canvas:!0,comment:!0,dl:!0,data:!0,datalist:!0,div:!0,em:!0,embed:!1,fieldset:!0,font:!0,footer:!0,form:!1,hr:!0,head:!0,header:!0,output:!0,iframe:!1,frameset:!1,img:!0,input:!0,li:!0,label:!0,legend:!0,link:!0,map:!0,mark:!0,menu:!0,media:!0,meta:!0,nav:!0,meter:!0,ol:!0,object:!1,optgroup:!0,option:!0,p:!0,param:!0,picture:!0,pre:!0,progress:!1,quote:!0,script:!1,select:!0,source:!0,span:!0,style:!0,caption:!0,td:!0,col:!0,table:!0,tr:!0,template:!1,textarea:!0,time:!0,title:!0,track:!0,details:!0,ul:!0,video:!0,del:!0,ins:!0,slot:!0,blockquote:!0,svg:!0,dialog:!0,summary:!0,main:!0,address:!0,colgroup:!0,tbody:!0,tfoot:!0,thead:!0,th:!0,dd:!0,dt:!0,figcaption:!0,figure:!0,i:!0,b:!0,code:!0,h1:!0,h2:!0,h3:!0,h4:!0,abbr:!0,bdo:!0,dfn:!0,kbd:!0,q:!0,rb:!0,rp:!0,rt:!0,ruby:!0,s:!0,strike:!0,samp:!0,small:!0,strong:!0,sup:!0,sub:!0,u:!0,var:!0,wbr:!0,nobr:!0,tt:!0,noscript:!0}}function yt(){return["::backdrop{background-color:grey;opacity:0.2;}",`#jqxPopup{overflow:hidden;background-color:transparent;outline:none;border:none;inset:0;animation:fade-out 0.5s ease-out;&[open]{display:flex;align-items:center;justify-content:center;animation:fade-in 0.5s ease;}#jqxPopupContent{background-color:white;border:solid 1px #eee;box-shadow:1px 2px 8px #999;border-radius:4px;padding:12px;vertical-align:middle;max-height:40vh;max-width:50vw;overflow:auto;margin:0 auto;div:not(#closeHandleIcon){clear:both;}@media (width <= 640px){max-width:80vw;max-height:60vh;}#closeHandleIcon{cursor:pointer;width:24px;height:24px;display:inline;position:absolute;top:4px;right:4px;justify-content:right;background-image:url("data:image/svg+xml;utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20128%20128%22%20style%3D%22enable-background%3Anew%200%200%20128%20128%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Crect%20x%3D%22-368%22%20y%3D%226%22%20style%3D%22display%3Anone%3Bfill%3A%23E0E0E0%3B%22%20width%3D%22866%22%20height%3D%221018%22%2F%3E%3Ccircle%20style%3D%22fill%3A%23FFFFFF%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Ccircle%20style%3D%22fill%3A%238CCFB9%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2239%22%2F%3E%3Ccircle%20style%3D%22fill%3Anone%3Bstroke%3A%23444B54%3Bstroke-width%3A6%3Bstroke-miterlimit%3A10%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Cpolyline%20style%3D%22fill%3Anone%3Bstroke%3A%23FFFFFF%3Bstroke-width%3A6%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3B%22%20points%3D%2242%2C69%2055.55%2C81%20%20%2086%2C46%20%22%2F%3E%3C%2Fsvg%3E");@media (width <= 640px){background-image:none;position:relative;margin:-15px -15px 4px 0;float:right;vertical-align:middle;border:1px solid #AAA;padding:2px;border-radius:50%;width:12px;height:12px;font-size:12px;line-height:12px;font-weight:bold;text-align:center;&:after{content:'\\2714';color:green;}}}.warn{display:none;text-align:center;color:red;border-top:1px solid #999;margin-top:1em;padding-top:3px;animation:warn-fade-out 0.2s ease-out;}.warn.active{opacity:1;display:block;animation:warn-fade-in 0.2s ease-in;}}}`,"@keyframes fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1, 1);display:flex;}}","@keyframes fade-out{0%{opacity:1;transform:scale(1, 1);display:flex;}100%{opacity:0;transform:scale(0, 0);display:none;}}","@keyframes warn-fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1,1 );display:block;}}","@keyframes warn-fade-out{0%{opacity:1;transform:scale(1, 1);display:block;}100%{opacity:0;transform:scale(0, 0);display:none;}}"]}var Me={html:"innerHTML",text:"textContent",class:"className"},bt=Ot(),Y=Object.create(null,{}),G=Object.create(null,{}),J=Pt(),De=t=>{console.error(`tinyDOM error: "${t}" is not a valid HTML tag`)},j=ht();function ht(){return Object.seal(new Proxy(Y,Ie()))}function Ie(){return{get(t,e){let r=String(e);switch(!0){case r in t:return t[r];case Tt(r):return Oe({tag:r,key:e});default:return Oe({tag:r,key:e,isError:!0})}},set(t,e,r){return e==="setError"&&typeof r=="function"&&(De=r),!0},enumerable:!1,configurable:!1}}function Oe({tag:t,key:e,custom:r,debug:n=!1,isError:o=!1}={}){let i=St();if(o)return Object.defineProperty(i,t,{get(){return a=>De(e)??""}}),Pe(i,t);if(t.includes("-")){let[a,b]=t.includes("-")?[t,Mt(t)]:[Ht(t),t];G[a]=a,G[b]=a,r=b}return r&&Object.defineProperty(i,r,{get(){return Re(t)}}),Object.defineProperty(i,t,{get(){return Re(t)}}),Pe(i,t)}function Pe(t,e){return Y=Object.seal(new Proxy(t,Ie())),Y[e]}function St(){return Object.fromEntries(Object.entries(Object.getOwnPropertyDescriptors(Y)))}function xt(t,e,r){return e=e?.isJQx&&e.node||(J(e,Number)?String(e):e),bt({trial:n=>Je(e)?t.insertAdjacentHTML("beforeend",e):t.append(e),whenError:n=>console.info(`${r} not created, reason
2
- `,n)})}function Et(t,e,...r){let n=wt(e,t);return r?.forEach(o=>xt(n,o,t)),n}function wt(t,e){switch(t=ge(e)?$t(t):t?.isJQx?t.node:t,!0){case J(t,String):return X(e,Je(t,e)?{html:t}:{text:t});case t instanceof Node:return vt(e,t);default:return X(e,t)}}function vt(t,e){let r=X(t);return r.append(e),r}function Lt(t){if(Object.keys(t).length<1)return{assignable:{},specials:[...Array(3)]};let e=Ft(t);return Object.keys(t).forEach(r=>{let n=r.toLowerCase();n in Me&&(t[Me[n]]=t[r])&&delete t[r]}),{assignable:t,specials:e}}function Ft(t){if(t=J(t,Object)&&t||void 0,!t)return Array(3);let e=Object.entries(t.data??{}),r=Object.entries(t.attributes??{}),n=t.class?.split(/[ ,]/).map(o=>o.trim()).filter(o=>o.length>1);return delete t.data,delete t.attributes,delete t.class,[e,r,n]}function At(t,e){let[r,n,o]=t;r?.length&&r.forEach(([i,a])=>e.dataset[i]=a),n?.length&&n.forEach(([i,a])=>e.setAttribute(i,a)),o?.forEach(i=>e.classList.add(i))}function X(t,e){e=e||{};let{assignable:r,specials:n}=Lt(e),o=Object.assign(ge(t)?new Comment:document.createElement(t),r);return At(n,o),o}function $t(t){return t?.constructor===Comment?t?.textContent:String(t)}function Je(t,e){return!ge(e)&&J(t,String)&&/<.*>|&[#|0-9a-z]+[^;];/i.test(t)}function ge(t){return/comment/i.test(t)}function Tt(t){return Ct(t)&&(t in G||!J(X(t),HTMLUnknownElement))}function Ct(t){return t=t.toLowerCase(),typeof t=="string"&&t.length>0&&/^[a-z]/.test(t)&&/^[a-z0-9-]+$/gi.test(t)}function Re(t){return t=G[t]??t,(e,...r)=>Et(t,e,...r)}function Nt([t,...e]){return`${t.toUpperCase()}${e.join("")}`}function Ht(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^-|-$/,"")}function Mt(t){return J(t,String)?t.toLowerCase().split("-").map((e,r)=>r&&`${Nt(e)}`||e).join(""):t}function Ot(){let t=e=>{};return function({trial:e,whenError:r=t}={}){try{return e()}catch(n){return r(n)}}}function Pt(){let t=new Intl.Collator("en",{sensitivity:"base"}),e=o=>typeof o?.constructor=="function"?o?.name||o?.constructor?.name:typeof o=="string"?o:typeof o,r=o=>[null,void 0,1/0,NaN].some(i=>i===o);function n(o,i){if(i!==o&&(r(o)||i===Number&&(Number.isNaN(o)||!Number.isFinite(o))))return!1;let[a,b]=[e(o),e(i)];return o?.[Symbol.proxy]===i||i===o?.name||t.compare(a,b)===0||t.compare(o.constructor?.name,i?.name)===0||o.constructor?.name===i||a===i||t.compare(Object.prototype.toString.call(o),`[object ${b}]`)===0}return function(i,...a){if(Array.isArray(a)&&a.length>1){for(let b of a)if(n(i,b))return!0;return!1}return n(i,a?.[0])}}var k=Rt;function Rt({styleSheet:t,createWithId:e}={}){let{tryParseAtOrNestedRules:r,ruleExists:n,checkParams:o,sheet:i,removeRules:a,consider:b,currentSheetID:p}=Dt({styleSheet:t,createWithId:e});function x(f,c){if(f&&c.removeProperties){Object.keys(c.removeProperties).forEach(s=>f.style.removeProperty(Qe(s)));return}Object.entries(c).forEach(([s,u])=>{s=Qe(s.trim()),u=u.trim();let g;if(/!important/.test(u)&&(u=u.slice(0,u.indexOf("!important")).trim(),g="important"),!CSS.supports(s,u))return console.error(`StylingFactory ${p} error: '${s}' with value '${u}' not supported (yet)`);je(()=>f.style.setProperty(s,u,g),`StylingFactory ${p} (setRule4Selector) failed`)})}function d(f,c,s=i){if(f=f?.trim?.(),!l(f,String)||!f.length||/[;,]$/g.test(f))return console.error(`StylingFactory ${p} (setRules): [${f||"[no selector given]"}] is not a valid selector`);if(c.removeRule)return a(f);let u=n(f,!0),g=u||s.cssRules[s.insertRule(`${f} {}`,s.cssRules.length||0)];return b(()=>x(g,c),f,u)}function y(f){let c=f.trim().split(/{/,2),s=c.shift().trim();if(!l(s,String)||!s?.trim()?.length)return console.error(`StylingFactory ${p} (doParse): no (valid) selector could be extracted from rule ${pe(f)}`);let u=Wt(c.shift());return je(()=>d(s,u),`StylingFactory ${p} (setRules) failed`)}function m(f){let c=r(f);return c.done?c.existing:y(f)}function S(f,c){return f.trim().startsWith("@media")?m(It(f,c)):d(f,c)}return function(f,c={}){return o(f,c)&&(Object.keys(c).length?S(f,c):m(f))}}function Dt({styleSheet:t,createWithId:e}){let r="Note: The rule or some of its properties may not be supported by your browser (yet)",n=`for style#${e}`;t=e?o(e):t;function o(m){let S=document.querySelector(`#${m}`)?.sheet;if(S)return S;let f=Object.assign(document.createElement("style"),{id:m});return document.head.insertAdjacentElement("beforeend",f),f.sheet}function i(m){return console.error(`StylingFactory ${n} [rule: ${m}]
1
+ var{IS:l,isOnly:Lr,maybe:O,$Wrap:Fr,isNothing:ut,addSymbolicExtensions:Ne,detectableProxy:_}=ct({useSymbolicExtensions:!1});function ct(t={}){let{useSymbolicExtensions:e}=t,r=mt(),{shouldbeIsSingleObject:n,ISOneOf:o,isExcept:i,verifyNothingness:a,determineType:b,addSymbolicExtensions:p,maybe:x,$Wrap:d,detectableProxy:y}=ft(m,e);return e&&p(),{IS:m,isOnly:S,maybe:x,$Wrap:d,isNothing:a,addSymbolicExtensions:p,detectableProxy:y};function m(f,...c){let s=Object.getOwnPropertySymbols(f||{})?.some(h=>h===Symbol.justME)&&c.length>0,u=f?.[Symbol.justME],g=s?u:typeof f=="symbol"?Symbol.isSymbol:f;switch(!0){case s:return r(u,...c);case!!x({trial:h=>"isTypes"in(c?.[0]??{})}):return n(f,c[0]);default:return c.length>1?o(g,...c):b(f,...c)}}function S(f,...c){return m({[Symbol.justME]:f},...c)}}function ft(t,e){let{SymbolAndCustomProxyFactory:r,maybeFactory:n,WrapAnyFactory:o,verifyNothingness:i,determineType:a,detectableProxy:b}=dt(t,y),{addSymbolicExtensions:p}=r(t,y,e),[x,d]=[n(),o(t,y)];return Object.freeze({shouldbeIsSingleObject:m,ISOneOf:S,isExcept:c,verifyNothingness:i,determineType:a,detectableProxy:b,addSymbolicExtensions:p,maybe:x,$Wrap:d});function y(s){return s?.[Symbol.proxy]||t(s)}function m(s,u){switch(!0){case"defaultValue"in u:return f(s,u);case"notTypes"in u:return c(s,u);default:return t(s,...[u.isTypes].flat())}}function S(s,...u){return u.some(g=>t(s,g))}function f(s,{defaultValue:u,isTypes:g=[void 0],notTypes:h}={}){return g=g?.constructor!==Array?[g]:g,h=h&&h?.constructor!==Array?[h]:[],h.length<1?t(s,...g)?s:u:c(s,{isTypes:g,notTypes:h})?s:u}function c(s,{isTypes:u=[void 0],notTypes:g=[void 0]}={}){return u=u?.constructor!==Array?[u]:u,g=g?.constructor!==Array?[g]:g,t(s,...u)&&!t(s,...g)}}function dt(){let t={IS:"toa.is",TYPE:"toa.type",IS_SYMBOL:"toa.isASymbol",PROXY:"toa.proxyFor",TARGET:"toa.target"},e={NAN:"NaN",INFINITY:"Infinity",BOOLEAN:"Boolean",OBJECT:"Object",PROXY_PREFIX:"Proxy for",JUSTME:"justME"},r=n();return Object.freeze({SymbolAndCustomProxyFactory:i,maybeFactory:f,WrapAnyFactory:S,verifyNothingness:c,determineType:p,detectableProxy:r});function n(){let s=h=>({get(w,A){return A===Symbol.proxy?`Proxy for ${h}`:A===Symbol.target?w:Reflect.get(w,A)},has(w,A){return A===Symbol.proxy?!0:A in w}});function u(h){let w=h.name||h.constructor.name;return new Proxy(h,s(w))}function g(h,w){return w=l(w,Object)?w:{},u(new Proxy(h,w))}return{wrap:u,create:g}}function o(s,u){Symbol.is||(Symbol.is=Symbol.for(t.IS),Symbol.type=Symbol.for(t.TYPE),Object.defineProperties(Object.prototype,{[Symbol.type]:{get(){return u(this)},enumerable:!1,configurable:!0},[Symbol.is]:{value:function(...g){return s(this,...g)},enumerable:!1,configurable:!1}}),Object.defineProperties(Object,{[Symbol.type]:{value(g){return u(g)},enumerable:!1,configurable:!1},[Symbol.is]:{value:function(g,...h){return s(g,...h)},enumerable:!1,configurable:!1}}))}function i(s,u,g){return Symbol.isSymbol||(Symbol.isSymbol=Symbol.for(t.IS_SYMBOL),Symbol.proxy=Symbol.for(t.PROXY),Symbol.target=Symbol.for(t.target),Symbol.justME=Symbol.for(t.JUSTME)),{addSymbolicExtensions:()=>o(s,u)}}function a(s){return(ut(s,!0)?{name:"unknown"}:Object.getPrototypeOf(s)?.constructor).name}function b(s,...u){let g=u.length<1,h=s==null;return{noInput:h,noShouldbe:g,compareTo:!g&&u[0],inputCTOR:!h&&(s?.constructor||Object.getPrototypeOf(s)?.constructor),isNaN:Number.isNaN(s)||O({trial:w=>String(s)===e.NAN}),isInfinity:O({trial:w=>String(s)})===e.INFINITY,shouldBeFirstElementIsNothing:!g&&c(u[0])}}function p(s,...u){let{noInput:g,noShouldbe:h,compareTo:w,inputCTOR:A,isNaN:st,isInfinity:at,shouldBeFirstElementIsNothing:lt}=b(s,...u);switch(u=u.length&&u[0],!0){case lt:return String(s)===String(w);case(s?.[Symbol.proxy]&&h):return s[Symbol.proxy];case(s?.[Symbol.proxy]&&typeof u=="string"):return s[Symbol.proxy].toLowerCase()===u.toLowerCase();case st:return h?e.NAN:String(w)===String(s);case at:return h?e.INFINITY:String(w)===String(s);case g:return h?String(s):String(w)===String(s);case A===Boolean:return h?e.BOOLEAN:A===u;default:return d(s,u,h,x(s,A))}}function x(s,u){switch(!0){case s===0:return Number;case s==="":return String;case!s:return{name:String(s)};default:return u}}function d(s,u,g,h){switch(!0){case(!g&&u===s||s?.[Symbol.proxy]&&u===Proxy):return!0;case String(u)===e.NAN:return String(s)===e.NAN;case(s?.[Symbol.toStringTag]&&typeof u=="string"):return String(u)===s[Symbol.toStringTag];default:return u?m(s,u,h):y(s,h)}}function y(s,u){return(s?.[Symbol.toStringTag]??s?.prototype?.[Symbol.toStringTag])||u?.name||String(u)}function m(s,u,g){return O({trial:h=>s instanceof u})||u===g||u===Object.getPrototypeOf(g)||`${u?.name}`===g?.name}function S(s,u){return function(g){let h={get value(){return g},is(...w){return s(g,...w)},get type(){return u(g)}};return Object[Symbol.type]&&Object.defineProperties(h,{[Symbol.type]:{get(){return u(g)}},[Symbol.is]:{value(...w){return s(g,...w)}}}),Object.freeze(h)}}function f(){let s=u=>{};return function({trial:u,whenError:g=s}={}){try{return u()}catch(h){return g(h)}}}function c(s,u=!1){let g=s==null;return g=u?g||l(s,1/0)||l(s,NaN):g,g}}function mt(){let t=new Intl.Collator("en",{sensitivity:"base"}),e=o=>typeof o?.constructor=="function"?o?.name||o?.constructor?.name:typeof o=="string"?o:typeof o,r=o=>[null,void 0,1/0,NaN].some(i=>i===o);function n(o,i){if(i!==o&&(r(o)||i===Number&&(Number.isNaN(o)||!Number.isFinite(o))))return!1;let[a,b]=[e(o),e(i)];return o?.[Symbol.proxy]===i||i===o?.name||t.compare(a,b)===0||t.compare(o.constructor?.name,i?.name)===0||o.constructor?.name===i||a===i||t.compare(Object.prototype.toString.call(o),`[object ${b}]`)===0}return function(i,...a){if(Array.isArray(a)&&a.length>1){for(let b of a)if(n(i,b))return!0;return!1}return n(i,a?.[0])}}var He=yt(),I=gt(),Q=pt();function gt(){return{html:Object.freeze("accept,action,align,alt,autocapitalize,autocomplete,autopictureinpicture,autoplay,background,bgcolor,border,capture,cellpadding,cellspacing,checked,cite,class,clear,contenteditable,color,cols,colspan,controls,controlslist,coords,crossorigin,datetime,decoding,default,dir,disabled,disablepictureinpicture,disableremoteplayback,download,draggable,enctype,enterkeyhint,face,for,headers,height,hidden,high,href,hreflang,id,inputmode,integrity,is,ismap,kind,label,lang,list,loading,loop,low,max,maxlength,media,method,min,minlength,multiple,muted,name,nonce,noshade,novalidate,nowrap,open,optimum,pattern,placeholder,playsinline,poster,preload,pubdate,radiogroup,readonly,rel,required,rev,reversed,role,rows,rowspan,spellcheck,scope,selected,shape,size,sizes,span,srclang,start,src,srcset,step,style,summary,tabindex,target,title,translate,type,usemap,valign,value,width,xmlns,slot".split(",")),svg:Object.freeze("accent-height,accumulate,additive,alignment-baseline,ascent,attributename,attributetype,azimuth,basefrequency,baseline-shift,begin,bias,by,class,clip,clippathunits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,cx,cy,d,dx,dy,diffuseconstant,direction,display,divisor,dur,edgemode,elevation,end,fill,fill-opacity,fill-rule,filter,filterunits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,fx,fy,g1,g2,glyph-name,glyphref,gradientunits,gradienttransform,height,href,id,image-rendering,in,in2,k,k1,k2,k3,k4,kerning,keypoints,keysplines,keytimes,lang,lengthadjust,letter-spacing,kernelmatrix,kernelunitlength,lighting-color,local,marker-end,marker-mid,marker-start,markerheight,markerunits,markerwidth,maskcontentunits,maskunits,max,mask,media,method,mode,min,name,numoctaves,offset,operator,opacity,order,orient,orientation,origin,overflow,paint-order,path,pathlength,patterncontentunits,patterntransform,patternunits,points,preservealpha,preserveaspectratio,primitiveunits,r,rx,ry,radius,refx,refy,repeatcount,repeatdur,restart,result,rotate,scale,seed,shape-rendering,specularconstant,specularexponent,spreadmethod,startoffset,stddeviation,stitchtiles,stop-color,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke,stroke-width,style,surfacescale,systemlanguage,tabindex,targetx,targety,transform,text-anchor,text-decoration,text-rendering,textlength,type,u1,u2,unicode,values,viewbox,visibility,version,vert-adv-y,vert-origin-x,vert-origin-y,width,word-spacing,wrap,writing-mode,xchannelselector,ychannelselector,x,x1,x2,xmlns,y,y1,y2,z,zoomandpan".split(","))}}function pt(){return{a:!0,area:!0,audio:!1,br:!0,base:!0,body:!0,button:!0,canvas:!0,comment:!0,dl:!0,data:!0,datalist:!0,div:!0,em:!0,embed:!1,fieldset:!0,font:!0,footer:!0,form:!1,hr:!0,head:!0,header:!0,output:!0,iframe:!1,frameset:!1,img:!0,input:!0,li:!0,label:!0,legend:!0,link:!0,map:!0,mark:!0,menu:!0,media:!0,meta:!0,nav:!0,meter:!0,ol:!0,object:!1,optgroup:!0,option:!0,p:!0,param:!0,picture:!0,pre:!0,progress:!1,quote:!0,script:!1,select:!0,source:!0,span:!0,style:!0,caption:!0,td:!0,col:!0,table:!0,tr:!0,template:!1,textarea:!0,time:!0,title:!0,track:!0,details:!0,ul:!0,video:!0,del:!0,ins:!0,slot:!0,blockquote:!0,svg:!0,dialog:!0,summary:!0,main:!0,address:!0,colgroup:!0,tbody:!0,tfoot:!0,thead:!0,th:!0,dd:!0,dt:!0,figcaption:!0,figure:!0,i:!0,b:!0,code:!0,h1:!0,h2:!0,h3:!0,h4:!0,abbr:!0,bdo:!0,dfn:!0,kbd:!0,q:!0,rb:!0,rp:!0,rt:!0,ruby:!0,s:!0,strike:!0,samp:!0,small:!0,strong:!0,sup:!0,sub:!0,u:!0,var:!0,wbr:!0,nobr:!0,tt:!0,noscript:!0}}function yt(){return["::backdrop{background-color:grey;opacity:0.2;}",`#jqxPopup{overflow:hidden;background-color:transparent;outline:none;border:none;inset:0;animation:fade-out 0.5s ease-out;&[open]{display:flex;align-items:center;justify-content:center;animation:fade-in 0.5s ease;}#jqxPopupContent{background-color:white;border:solid 1px #eee;box-shadow:1px 2px 8px #999;border-radius:4px;padding:12px;vertical-align:middle;max-height:40vh;max-width:50vw;overflow:auto;margin:0 auto;div:not(#closeHandleIcon){clear:both;}@media (width <= 640px){max-width:80vw;max-height:60vh;}#closeHandleIcon{cursor:pointer;width:24px;height:24px;display:inline;position:absolute;top:4px;right:4px;justify-content:right;background-image:url("data:image/svg+xml;utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20128%20128%22%20style%3D%22enable-background%3Anew%200%200%20128%20128%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Crect%20x%3D%22-368%22%20y%3D%226%22%20style%3D%22display%3Anone%3Bfill%3A%23E0E0E0%3B%22%20width%3D%22866%22%20height%3D%221018%22%2F%3E%3Ccircle%20style%3D%22fill%3A%23FFFFFF%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Ccircle%20style%3D%22fill%3A%238CCFB9%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2239%22%2F%3E%3Ccircle%20style%3D%22fill%3Anone%3Bstroke%3A%23444B54%3Bstroke-width%3A6%3Bstroke-miterlimit%3A10%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Cpolyline%20style%3D%22fill%3Anone%3Bstroke%3A%23FFFFFF%3Bstroke-width%3A6%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3B%22%20points%3D%2242%2C69%2055.55%2C81%20%20%2086%2C46%20%22%2F%3E%3C%2Fsvg%3E");@media (width <= 640px){background-image:none;position:relative;margin:-15px -15px 4px 0;float:right;vertical-align:middle;border:1px solid #AAA;padding:2px;border-radius:50%;width:12px;height:12px;font-size:12px;line-height:12px;font-weight:bold;text-align:center;&:after{content:'\\2714';color:green;}}}.warn{display:none;text-align:center;color:red;border-top:1px solid #999;margin-top:1em;padding-top:3px;animation:warn-fade-out 0.2s ease-out;}.warn.active{opacity:1;display:block;animation:warn-fade-in 0.2s ease-in;}}}`,"@keyframes fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1, 1);display:flex;}}","@keyframes fade-out{0%{opacity:1;transform:scale(1, 1);display:flex;}100%{opacity:0;transform:scale(0, 0);display:none;}}","@keyframes warn-fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1,1 );display:block;}}","@keyframes warn-fade-out{0%{opacity:1;transform:scale(1, 1);display:block;}100%{opacity:0;transform:scale(0, 0);display:none;}}"]}var J=ht(),bt=wt(),Me={html:"innerHTML",text:"textContent",class:"className"};function ht(){let t=new Intl.Collator("en",{sensitivity:"base"}),e=o=>typeof o?.constructor=="function"?o?.name||o?.constructor?.name:typeof o=="string"?o:typeof o,r=o=>[null,void 0,1/0,NaN].some(i=>i===o);function n(o,i){switch(!0){case(i!==o&&(r(o)||i===Number&&(Number.isNaN(o)||!Number.isFinite(o)))):return!1;default:let[a,b]=[e(o),e(i)];return o?.[Symbol.proxy]===i||i===o?.name||t.compare(a,b)===0||t.compare(o.constructor?.name,i?.name)===0||o.constructor?.name===i||a===i||t.compare(Object.prototype.toString.call(o),`[object ${b}]`)===0}}return function(i,...a){if(Array.isArray(a)&&a.length>1){for(let b of a)if(n(i,b))return!0;return!1}return n(i,a?.[0])}}function St([t,...e]){return`${t.toUpperCase()}${e.join("")}`}function xt(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^-|-$/,"")}function Et(t){return J(t,String)?t.toLowerCase().split("-").map((e,r)=>r&&`${St(e)}`||e).join(""):t}function wt(){let t=e=>{};return function({trial:e,whenError:r=t}={}){try{return e()}catch(n){return r(n)}}}function vt(t){return Object.fromEntries(Object.entries(Object.getOwnPropertyDescriptors(t)))}function Lt(t){if(Object.keys(t).length<1)return{assignable:{},specials:[...Array(3)]};let e=Ft(t);return Object.keys(t).forEach(r=>{let n=r.toLowerCase();n in Me&&(t[Me[n]]=t[r])&&delete t[r]}),{assignable:t,specials:e}}function Ft(t){if(t=J(t,Object)&&t||void 0,!t)return Array(3);let e=Object.entries(t.data??{}),r=Object.entries(t.attributes??{}),n=t.class?.split(/[ ,]/).map(o=>o.trim()).filter(o=>o.length>1);return delete t.data,delete t.attributes,delete t.class,[e,r,n]}function At(t){return t?.constructor===Comment?t?.textContent:String(t)}function ge(t){return/comment/i.test(t)}function De(t,e){return!ge(e)&&J(t,String)&&/<.*>|&[#|0-9a-z]+[^;];/i.test(t)}function $t(t){return t=t.toLowerCase(),typeof t=="string"&&t.length>0&&/^[a-z]/.test(t)&&/^[a-z0-9-]+$/gi.test(t)}function Tt(t,e,r){return $t(t)&&(t in e||!J(r(t),HTMLUnknownElement))}var Y=Object.create(null,{}),G=Object.create(null,{}),Ie=t=>{console.error(`tinyDOM error: "${t}" is not a valid HTML tag`)},j=Ct();function Ct(){return Object.seal(new Proxy(Y,Je()))}function Je(){return{get(t,e){let r=String(e);switch(!0){case r in t:return t[r];case Tt(r,G,X):return Oe({tag:r,key:e});default:return Oe({tag:r,key:e,isError:!0})}},set(t,e,r){return e==="setError"&&typeof r=="function"&&(Ie=r),!0},enumerable:!1,configurable:!1}}function Oe({tag:t,key:e,custom:r,debug:n=!1,isError:o=!1}={}){let i=vt(Y);if(o)return Object.defineProperty(i,t,{get(){return a=>Ie(e)??""}}),Pe(i,t);if(t.includes("-")){let[a,b]=t.includes("-")?[t,Et(t)]:[xt(t),t];G[a]=a,G[b]=a,r=b}return r&&Object.defineProperty(i,r,{get(){return Re(t)}}),Object.defineProperty(i,t,{get(){return Re(t)}}),Pe(i,t)}function Pe(t,e){return Y=Object.seal(new Proxy(t,Je())),Y[e]}function Nt(t,e,r){return e=e?.isJQx&&e.node||(J(e,Number)?String(e):e),bt({trial:n=>De(e)?t.insertAdjacentHTML("beforeend",e):t.append(e),whenError:n=>console.info(`${r} not created, reason
2
+ `,n)})}function Ht(t,e,...r){let n=Mt(e,t);return r?.forEach(o=>Nt(n,o,t)),n}function Mt(t,e){switch(t=ge(e)?At(t):t?.isJQx?t.node:t,!0){case J(t,String):return X(e,De(t,e)?{html:t}:{text:t});case t instanceof Node:return Ot(e,t);default:return X(e,t)}}function Ot(t,e){let r=X(t);return r.append(e),r}function Pt(t,e){let[r,n,o]=t;r?.length&&r.forEach(([i,a])=>e.dataset[i]=a),n?.length&&n.forEach(([i,a])=>e.setAttribute(i,a)),o?.forEach(i=>e.classList.add(i))}function X(t,e){e=e||{};let{assignable:r,specials:n}=Lt(e),o=Object.assign(ge(t)?new Comment:document.createElement(t),r);return Pt(n,o),o}function Re(t){return t=G[t]??t,(e,...r)=>Ht(t,e,...r)}var k=Rt;function Rt({styleSheet:t,createWithId:e}={}){let{tryParseAtOrNestedRules:r,ruleExists:n,checkParams:o,sheet:i,removeRules:a,consider:b,currentSheetID:p}=Dt({styleSheet:t,createWithId:e});function x(f,c){if(f&&c.removeProperties){Object.keys(c.removeProperties).forEach(s=>f.style.removeProperty(Qe(s)));return}Object.entries(c).forEach(([s,u])=>{s=Qe(s.trim()),u=u.trim();let g;if(/!important/.test(u)&&(u=u.slice(0,u.indexOf("!important")).trim(),g="important"),!CSS.supports(s,u))return console.error(`StylingFactory ${p} error: '${s}' with value '${u}' not supported (yet)`);je(()=>f.style.setProperty(s,u,g),`StylingFactory ${p} (setRule4Selector) failed`)})}function d(f,c,s=i){if(f=f?.trim?.(),!l(f,String)||!f.length||/[;,]$/g.test(f))return console.error(`StylingFactory ${p} (setRules): [${f||"[no selector given]"}] is not a valid selector`);if(c.removeRule)return a(f);let u=n(f,!0),g=u||s.cssRules[s.insertRule(`${f} {}`,s.cssRules.length||0)];return b(()=>x(g,c),f,u)}function y(f){let c=f.trim().split(/{/,2),s=c.shift().trim();if(!l(s,String)||!s?.trim()?.length)return console.error(`StylingFactory ${p} (doParse): no (valid) selector could be extracted from rule ${pe(f)}`);let u=Wt(c.shift());return je(()=>d(s,u),`StylingFactory ${p} (setRules) failed`)}function m(f){let c=r(f);return c.done?c.existing:y(f)}function S(f,c){return f.trim().startsWith("@media")?m(It(f,c)):d(f,c)}return function(f,c={}){return o(f,c)&&(Object.keys(c).length?S(f,c):m(f))}}function Dt({styleSheet:t,createWithId:e}){let r="Note: The rule or some of its properties may not be supported by your browser (yet)",n=`for style#${e}`;t=e?o(e):t;function o(m){let S=document.querySelector(`#${m}`)?.sheet;if(S)return S;let f=Object.assign(document.createElement("style"),{id:m});return document.head.insertAdjacentElement("beforeend",f),f.sheet}function i(m){return console.error(`StylingFactory ${n} [rule: ${m}]
3
3
  => @charset, @namespace and @import are not supported here`),{done:!0}}function a(m,S){return[...t.rules].find(f=>S?ke(f.selectorText||"",m):jt`${Qt(m)}${[..."gim"]}`.test(f.cssText))}function b(m){return/^@charset|@import|namespace/i.test(m.trim())?i(m):m.match(/}/g)?.length>1?{existing:d(m,1),done:!0}:{done:!1}}function p(m){let S=[...t.cssRules].reduce((c,s,u)=>ke(s.selectorText||"",m)&&c.concat(u)||c,[]),f=S.length;return S.forEach(c=>t.deleteRule(c)),f>0?console.info(`\u2714 Removed ${f} instance${f>1?"s":""} of selector ${m} from ${n.slice(4)}`):console.info(`\u2714 Remove rule: selector ${m} does not exist in ${n.slice(4)}`)}function x(m,S){return m&&l(m,String)&&m.trim().length>0&&l(S,Object)||(console.error(`StylingFactory ${n} called with invalid parameters`),!1)}function d(m){m=m.trim();let S=m.slice(0,m.indexOf("{")).trim(),f=!!a(S);try{return t.insertRule(`${m}`,t.cssRules.length),f}catch(c){return console.error(`StylingFactory ${n} (tryParse) ${c.name} Error:
4
4
  ${c.message}
5
5
  Rule: ${pe(m)}