1/** 2 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1. 3 * Original file: /npm/[email protected]/utils.js 4 * 5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 6 */ 7var d={exports:{}},g=d.exports,h;function m(){return h||(h=1,(function(f){(function(a,o){f.exports?f.exports=o(a):a.fizzyUIUtils=o(a)})(g,function(o){let n={};n.extend=function(t,e){return Object.assign(t,e)},n.modulo=function(t,e){return(t%e+e)%e},n.makeArray=function(t){return Array.isArray(t)?t:t==null?[]:typeof t=="object"&&typeof t.length=="number"?[...t]:[t]},n.removeFrom=function(t,e){let r=t.indexOf(e);r!=-1&&t.splice(r,1)},n.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,t.matches(e))return t},n.getQueryElement=function(t){return typeof t=="string"?document.querySelector(t):t},n.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,e){return t=n.makeArray(t),t.filter(r=>r instanceof HTMLElement).reduce((r,i)=>{if(!e)return r.push(i),r;i.matches(e)&&r.push(i);let u=i.querySelectorAll(e);return r=r.concat(...u),r},[])},n.debounceMethod=function(t,e,r){r=r||100;let i=t.prototype[e],u=e+"Timeout";t.prototype[e]=function(){clearTimeout(this[u]);let c=arguments;this[u]=setTimeout(()=>{i.apply(this,c),delete this[u]},r)}},n.docReady=function(t){let e=document.readyState;e=="complete"||e=="interactive"?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(e,r,i){return r+"-"+i}).toLowerCase()};let p=o.console;return n.htmlInit=function(t,e){n.docReady(function(){let i="data-"+n.toDashed(e),u=document.querySelectorAll(`[${i}]`),c=o.jQuery;[...u].forEach(s=>{let y=s.getAttribute(i),l;try{l=y&&JSON.parse(y)}catch(x){p&&p.error(`Error parsing ${i} on ${s.className}: ${x}`);return}let A=new t(s,l);c&&c.data(s,e,A)})})},n})})(d)),d.exports}var L=m();export{L as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.