ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
2 lines (1 loc) • 1.27 kB
JavaScript
const l=require("./init-CbDwVtpO.cjs");var o=class extends Map{constructor(e,r=p){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,t]of e)this.set(n,t)}get(e){return super.get(c(this,e))}has(e){return super.has(c(this,e))}set(e,r){return super.set(g(this,e),r)}delete(e){return super.delete(h(this,e))}};function c({_intern:e,_key:r},n){const t=r(n);return e.has(t)?e.get(t):n}function g({_intern:e,_key:r},n){const t=r(n);return e.has(t)?e.get(t):(e.set(t,n),n)}function h({_intern:e,_key:r},n){const t=r(n);return e.has(t)&&(n=e.get(t),e.delete(t)),n}function p(e){return e!==null&&typeof e=="object"?e.valueOf():e}var f=Symbol("implicit");function a(){var e=new o,r=[],n=[],t=f;function u(i){let s=e.get(i);if(s===void 0){if(t!==f)return t;e.set(i,s=r.push(i)-1)}return n[s%n.length]}return u.domain=function(i){if(!arguments.length)return r.slice();r=[],e=new o;for(const s of i)e.has(s)||e.set(s,r.push(s)-1);return u},u.range=function(i){return arguments.length?(n=Array.from(i),u):n.slice()},u.unknown=function(i){return arguments.length?(t=i,u):t},u.copy=function(){return a(r,n).unknown(t)},l.initRange.apply(u,arguments),u}Object.defineProperty(exports,"ordinal",{enumerable:!0,get:function(){return a}});