golden hour
/home/doctorbruno/public_html/doctorbruno.info/chennai-copper-kettle.com/wp-includes/js/dist
⬆️ Go Up
Upload
File/Folder
Size
Actions
a11y.js
5.56 KB
Del
OK
a11y.min.js
2.55 KB
Del
OK
annotations.js
15.58 KB
Del
OK
annotations.min.js
5.84 KB
Del
OK
api-fetch.js
19.53 KB
Del
OK
api-fetch.min.js
7.33 KB
Del
OK
autop.js
9.78 KB
Del
OK
autop.min.js
5.56 KB
Del
OK
base-styles.js
115 B
Del
OK
base-styles.min.js
142 B
Del
OK
blob.js
2.35 KB
Del
OK
blob.min.js
1.21 KB
Del
OK
block-directory.js
372.69 KB
Del
OK
block-directory.min.js
126.54 KB
Del
OK
block-editor.js
3.6 MB
Del
OK
block-editor.min.js
1.35 MB
Del
OK
block-library.js
2.89 MB
Del
OK
block-library.min.js
1.24 MB
Del
OK
block-serialization-default-parser.js
6.64 KB
Del
OK
block-serialization-default-parser.min.js
2.5 KB
Del
OK
block-serialization-spec-parser.js
50.58 KB
Del
OK
block-serialization-spec-parser.min.js
10.48 KB
Del
OK
blocks.js
292.88 KB
Del
OK
blocks.min.js
142.99 KB
Del
OK
commands.js
128.65 KB
Del
OK
commands.min.js
55.89 KB
Del
OK
components.js
3.64 MB
Del
OK
components.min.js
817.08 KB
Del
OK
compose.js
83.74 KB
Del
OK
compose.min.js
29.39 KB
Del
OK
core-commands.js
29.11 KB
Del
OK
core-commands.min.js
12.2 KB
Del
OK
core-data.js
660 KB
Del
OK
core-data.min.js
226.52 KB
Del
OK
customize-widgets.js
111.55 KB
Del
OK
customize-widgets.min.js
43.42 KB
Del
OK
data-controls.js
4.2 KB
Del
OK
data-controls.min.js
1.84 KB
Del
OK
data.js
83.69 KB
Del
OK
data.min.js
26.04 KB
Del
OK
date.js
176.69 KB
Del
OK
date.min.js
141.35 KB
Del
OK
deprecated.js
3.11 KB
Del
OK
deprecated.min.js
1.35 KB
Del
OK
development
-
Del
OK
dom-ready.js
1.53 KB
Del
OK
dom-ready.min.js
881 B
Del
OK
dom.js
35.12 KB
Del
OK
dom.min.js
12.86 KB
Del
OK
edit-post.js
441.28 KB
Del
OK
edit-post.min.js
156.59 KB
Del
OK
edit-site.js
2.2 MB
Del
OK
edit-site.min.js
884.08 KB
Del
OK
edit-widgets.js
180.29 KB
Del
OK
edit-widgets.min.js
68.81 KB
Del
OK
editor.js
3.79 MB
Del
OK
editor.min.js
1.5 MB
Del
OK
element.js
27.32 KB
Del
OK
element.min.js
12.18 KB
Del
OK
escape-html.js
2.36 KB
Del
OK
escape-html.min.js
1.13 KB
Del
OK
format-library.js
229.45 KB
Del
OK
format-library.min.js
96.19 KB
Del
OK
hooks.js
12.01 KB
Del
OK
hooks.min.js
4.99 KB
Del
OK
html-entities.js
1.71 KB
Del
OK
html-entities.min.js
950 B
Del
OK
i18n.js
15.36 KB
Del
OK
i18n.min.js
5.66 KB
Del
OK
is-shallow-equal.js
2.77 KB
Del
OK
is-shallow-equal.min.js
1.17 KB
Del
OK
keyboard-shortcuts.js
10.26 KB
Del
OK
keyboard-shortcuts.min.js
3.6 KB
Del
OK
keycodes.js
8.36 KB
Del
OK
keycodes.min.js
2.97 KB
Del
OK
list-reusable-blocks.js
13.34 KB
Del
OK
list-reusable-blocks.min.js
5.41 KB
Del
OK
media-utils.js
1.02 MB
Del
OK
media-utils.min.js
381.85 KB
Del
OK
notices.js
9.55 KB
Del
OK
notices.min.js
3.85 KB
Del
OK
nux.js
4.32 KB
Del
OK
nux.min.js
1.71 KB
Del
OK
patterns.js
88.07 KB
Del
OK
patterns.min.js
37.4 KB
Del
OK
plugins.js
20.72 KB
Del
OK
plugins.min.js
7.08 KB
Del
OK
preferences-persistence.js
17.3 KB
Del
OK
preferences-persistence.min.js
5.58 KB
Del
OK
preferences.js
21.03 KB
Del
OK
preferences.min.js
7.84 KB
Del
OK
primitives.js
5.15 KB
Del
OK
primitives.min.js
2.04 KB
Del
OK
priority-queue.js
10.1 KB
Del
OK
priority-queue.min.js
3.42 KB
Del
OK
private-apis.js
4.42 KB
Del
OK
private-apis.min.js
2.95 KB
Del
OK
react-i18n.js
3.97 KB
Del
OK
react-i18n.min.js
1.59 KB
Del
OK
redux-routine.js
24.75 KB
Del
OK
redux-routine.min.js
9.72 KB
Del
OK
reusable-blocks.js
21.87 KB
Del
OK
reusable-blocks.min.js
7.99 KB
Del
OK
rich-text.js
104.89 KB
Del
OK
rich-text.min.js
42.17 KB
Del
OK
router.js
36.21 KB
Del
OK
router.min.js
14.21 KB
Del
OK
script-modules
-
Del
OK
server-side-render.js
11.32 KB
Del
OK
server-side-render.min.js
4.1 KB
Del
OK
shortcode.js
8.02 KB
Del
OK
shortcode.min.js
3.35 KB
Del
OK
style-engine.js
18.37 KB
Del
OK
style-engine.min.js
6.78 KB
Del
OK
theme.js
135.48 KB
Del
OK
theme.min.js
59.71 KB
Del
OK
token-list.js
6.18 KB
Del
OK
token-list.min.js
1.68 KB
Del
OK
undo-manager.js
5.36 KB
Del
OK
undo-manager.min.js
1.77 KB
Del
OK
upload-media.js
116.33 KB
Del
OK
upload-media.min.js
49.3 KB
Del
OK
url.js
23.4 KB
Del
OK
url.min.js
10.18 KB
Del
OK
vendor
-
Del
OK
viewport.js
7.14 KB
Del
OK
viewport.min.js
2.32 KB
Del
OK
warning.js
1.58 KB
Del
OK
warning.min.js
816 B
Del
OK
widgets.js
50.14 KB
Del
OK
widgets.min.js
20.97 KB
Del
OK
wordcount.js
7 KB
Del
OK
wordcount.min.js
2.51 KB
Del
OK
Edit: theme.min.js
/*! This file is auto-generated */ (function() { var wp;(wp||={}).theme=(()=>{var po=Object.create;var Le=Object.defineProperty;var go=Object.getOwnPropertyDescriptor;var ho=Object.getOwnPropertyNames;var bo=Object.getPrototypeOf,wo=Object.prototype.hasOwnProperty;var ge=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Co=(t,e)=>{for(var r in e)Le(t,r,{get:e[r],enumerable:!0})},zt=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ho(e))!wo.call(t,n)&&n!==r&&Le(t,n,{get:()=>e[n],enumerable:!(o=go(e,n))||o.enumerable});return t};var V=(t,e,r)=>(r=t!=null?po(bo(t)):{},zt(e||!t||!t.__esModule?Le(r,"default",{value:t,enumerable:!0}):r,t)),yo=t=>zt(Le({},"__esModule",{value:!0}),t);var Ht=ge((Tn,Bt)=>{Bt.exports=window.wp.deprecated});var $t=ge((_n,Ft)=>{Ft.exports=window.wp.privateApis});var Ae=ge((Pn,qt)=>{qt.exports=window.wp.element});var Yt=ge((Nn,Wt)=>{Wt.exports=window.wp.compose});var oo=ge((wl,ro)=>{ro.exports=window.ReactJSXRuntime});var En={};Co(En,{ThemeProvider:()=>Ve,privateApis:()=>Ot});var io=V(Ht(),1);var jt=V($t(),1),{lock:Gt,unlock:In}=(0,jt.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/theme");var Ke=V(Ae(),1),no=V(Yt(),1);var Xt=V(Ae(),1),Ee=(0,Xt.createContext)({resolvedSettings:{color:{},cursor:void 0,cornerRadius:void 0}});function et(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,r=[0,0,0]){let o=et(t,e[0]),n=et(t,e[1]),s=et(t,e[2]);return r[0]=o,r[1]=n,r[2]=s,r}function Oe(t){return Q(t)==="string"}function Q(t){return(Object.prototype.toString.call(t).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Te(t,{precision:e=16,unit:r}){return R(t)?"none":(t=+tt(t,e),t+(r??""))}function R(t){return t===null}function tt(t,e){if(t===0)return 0;let r=~~t,o=0;r&&e&&(o=~~Math.log10(Math.abs(r))+1);let n=10**(e-o);return Math.floor(t*n+.5)/n}function rt(t,e,r){return isNaN(t)?e:isNaN(e)?t:t+(e-t)*r}function vo(t,e,r){return(r-t)/(e-t)}function ot(t,e,r){return!t||!e||t===e||t[0]===e[0]&&t[1]===e[1]||isNaN(r)||r===null?r:rt(e[0],e[1],vo(t[0],t[1],r))}function _e(t,e,r){return Math.max(Math.min(r,e),t)}function Ie(t,e){return Math.sign(t)===Math.sign(e)?t:-t}function O(t,e){return Ie(Math.abs(t)**e,t)}function nt(t,e){return e===0?0:t/e}function Jt(t,e,r=0,o=t.length){for(;r<o;){let n=r+o>>1;t[n]<e?r=n+1:o=n}return r}function se(t,e){if(t instanceof e)return!0;let r=e.name;for(;t;){let o=Object.getPrototypeOf(t),n=o?.constructor?.name;if(n===r)return!0;if(!n||n==="Object")return!1;t=o}return!1}var ie=class{type;coordMeta;coordRange;range;constructor(e,r){if(typeof e=="object"&&(this.coordMeta=e),r&&(this.coordMeta=r,this.coordRange=r.range??r.refRange),typeof e=="string"){let o=e.trim().match(/^(?<type><[a-z]+>)(\[(?<min>-?[.\d]+),\s*(?<max>-?[.\d]+)\])?$/);if(!o)throw new TypeError(`Cannot parse ${e} as a type definition.`);this.type=o.groups.type;let{min:n,max:s}=o.groups;(n||s)&&(this.range=[+n,+s])}}get computedRange(){return this.range?this.range:this.type==="<percentage>"?this.percentageRange():this.type==="<angle>"?[0,360]:null}get unit(){return this.type==="<percentage>"?"%":this.type==="<angle>"?"deg":""}resolve(e){if(this.type==="<angle>")return e;let r=this.computedRange,o=this.coordRange;return this.type==="<percentage>"&&(o??=this.percentageRange()),ot(r,o,e)}serialize(e,r){let o=this.type==="<percentage>"?this.percentageRange(100):this.computedRange,n=this.unit;return e=ot(this.coordRange,o,e),Te(e,{unit:n,precision:r})}toString(){let e=this.type;if(this.range){let[r="",o=""]=this.range;e+=`[${r},${o}]`}return e}percentageRange(e=1){let r;return this.coordMeta&&this.coordMeta.range||this.coordRange&&this.coordRange[0]>=0?r=[0,1]:r=[-1,1],[r[0]*e,r[1]*e]}static get(e,r){return se(e,this)?e:new this(e,r)}};var at=Symbol("instance"),ce=class t{type;name;spaceCoords;coords;id;alpha;constructor(e,r=e.space){e[at]=this,this.type="function",this.name="color",Object.assign(this,e),this.space=r,this.type!=="custom"&&(this.spaceCoords=Object.values(r.coords),this.coords||(this.coords=this.spaceCoords.map(o=>{let n=["<number>","<percentage>"];return o.type==="angle"&&n.push("<angle>"),n})),this.coords=this.coords.map((o,n)=>{let s=this.spaceCoords[n];return typeof o=="string"&&(o=o.trim().split(/\s*\|\s*/)),o.map(a=>ie.get(a,s))}))}serializeCoords(e,r,o){return o=e.map((n,s)=>ie.get(o?.[s]??this.coords[s][0],this.spaceCoords[s])),e.map((n,s)=>o[s].serialize(n,r))}coerceCoords(e,r){return Object.entries(this.space.coords).map(([o,n],s)=>{let a=e[s];if(R(a)||isNaN(a))return a;let i=r[s],c=this.coords[s].find(l=>l.type==i);if(!c){let l=n.name||o;throw new TypeError(`${i??a?.raw??a} not allowed for ${l} in ${this.name}()`)}return a=c.resolve(a),c.range&&(r[s]=c.toString()),a})}canSerialize(){return this.type==="function"||this.serialize}parse(e){return null}static get(e,...r){return!e||se(e,this)?e:e[at]?e[at]:new t(e,...r)}};var st=class{add(e,r,o){if(typeof arguments[0]!="string"){for(var e in arguments[0])this.add(e,arguments[0][e],arguments[1]);return}(Array.isArray(e)?e:[e]).forEach(function(n){this[n]=this[n]||[],r&&this[n][o?"unshift":"push"](r)},this)}run(e,r){this[e]=this[e]||[],this[e].forEach(function(o){o.call(r&&r.context?r.context:r,r)})}},xo=new st,ee=xo;var N={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function De(t){return Array.isArray(t)?t:N[t]}function te(t,e,r,o={}){if(t=De(t),e=De(e),!t||!e)throw new TypeError(`Missing white point to convert ${t?"":"from"}${!t&&!e?"/":""}${e?"":"to"}`);if(t===e)return r;let n={W1:t,W2:e,XYZ:r,options:o};if(ee.run("chromatic-adaptation-start",n),n.M||(n.W1===N.D65&&n.W2===N.D50?n.M=[[1.0479297925449969,.022946870601609652,-.05019226628920524],[.02962780877005599,.9904344267538799,-.017073799063418826],[-.009243040646204504,.015055191490298152,.7518742814281371]]:n.W1===N.D50&&n.W2===N.D65&&(n.M=[[.955473421488075,-.02309845494876471,.06325924320057072],[-.0283697093338637,1.0099953980813041,.021041441191917323],[.012314014864481998,-.020507649298898964,1.330365926242124]])),ee.run("chromatic-adaptation-end",n),n.M)return k(n.XYZ,n.M);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}var W={gamut_mapping:"css",precision:5,deltaE:"76",verbose:globalThis?.process?.env?.NODE_ENV?.toLowerCase()!=="test",warn:function(e){this.verbose&&globalThis?.console?.warn?.(e)}};function le(t,e){let r={str:String(t)?.trim(),options:e};if(ee.run("parse-start",r),r.color)return r.color;r.parsed=So(r.str);let o,n=r.options?r.options.parseMeta??r.options.meta:null;if(r.parsed){let s=r.parsed.name,a,i,c=r.parsed.args,l=c.map((f,b)=>r.parsed.argMeta[b]?.type);if(s==="color"){let f=c.shift();l.shift();let b=f.startsWith("--")?f.substring(2):`--${f}`,g=[f,b];if(a=m.findFormat({name:s,id:g,type:"function"}),!a){let h,d=f in m.registry?f:b;if(d in m.registry){let w=m.registry[d].formats?.color?.id;w&&(h=`Did you mean ${t.replace("color("+f,"color("+w)}?`)}throw new TypeError(`Cannot parse ${r.str}. `+(h??"Missing a plugin?"))}i=a.space,a.id.startsWith("--")&&!f.startsWith("--")&&W.warn(`${i.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${a.id}) instead of color(${f}).`),f.startsWith("--")&&!a.id.startsWith("--")&&W.warn(`${i.name} is a standard space and supported in the CSS spec. Use color(${a.id}) instead of prefixed color(${f}).`)}else a=m.findFormat({name:s,type:"function"}),i=a.space;n&&Object.assign(n,{format:a,formatId:a.name,types:l,commas:r.parsed.commas});let p=1;r.parsed.lastAlpha&&(p=r.parsed.args.pop(),n&&(n.alphaType=l.pop()));let u=a.coords.length;if(c.length!==u)throw new TypeError(`Expected ${u} coordinates for ${i.id} in ${r.str}), got ${c.length}`);c=a.coerceCoords(c,l),o={spaceId:i.id,coords:c,alpha:p}}else e:for(let s of m.all)for(let a in s.formats){let i=s.formats[a];if(i.type!=="custom"||i.test&&!i.test(r.str))continue;let c=s.getFormat(i),l=c.parse(r.str);if(l){n&&Object.assign(n,{format:c,formatId:a}),o=l;break e}}if(!o)throw new TypeError(`Could not parse ${t} as a color. Missing a plugin?`);return o.alpha=R(o.alpha)?o.alpha:o.alpha===void 0?1:_e(0,o.alpha,1),o}var Ut={"%":.01,deg:1,grad:.9,rad:180/Math.PI,turn:360},Pe={function:/^([a-z]+)\(((?:calc\(NaN\)|.)+?)\)$/i,number:/^([-+]?(?:[0-9]*\.)?[0-9]+(e[-+]?[0-9]+)?)$/i,unitValue:RegExp(`(${Object.keys(Ut).join("|")})$`),singleArgument:/\/?\s*(none|NaN|calc\(NaN\)|[-+\w.]+(?:%|deg|g?rad|turn)?)/g};function ko(t){let e={},r=t.match(Pe.unitValue)?.[0],o=e.raw=t;return r?(e.type=r==="%"?"<percentage>":"<angle>",e.unit=r,e.unitless=Number(o.slice(0,-r.length)),o=e.unitless*Ut[r]):Pe.number.test(o)?(o=Number(o),e.type="<number>"):o==="none"?o=null:o==="NaN"||o==="calc(NaN)"?(o=NaN,e.type="<number>"):e.type="<ident>",{value:o,meta:e}}function So(t){if(!t)return;t=t.trim();let e=t.match(Pe.function);if(e){let r=[],o=[],n=!1,s=e[1].toLowerCase(),a=e[2].replace(Pe.singleArgument,(i,c)=>{let{value:l,meta:p}=ko(c);return(i.startsWith("/")||s!=="color"&&r.length===3)&&(n=!0),r.push(l),o.push(p),""});return{name:s,args:r,argMeta:o,lastAlpha:n,commas:a.includes(","),rawName:e[1],rawArgs:e[2]}}}function y(t,e){if(Array.isArray(t))return t.map(o=>y(o,e));if(!t)throw new TypeError("Empty color reference");Oe(t)&&(t=le(t,e));let r=t.space||t.spaceId;return typeof r=="string"&&(t.space=m.get(r)),t.alpha===void 0&&(t.alpha=1),t}var Mo=75e-6,m=class t{constructor(e){this.id=e.id,this.name=e.name,this.base=e.base?t.get(e.base):null,this.aliases=e.aliases,this.base&&(this.fromBase=e.fromBase,this.toBase=e.toBase);let r=e.coords??this.base.coords;for(let n in r)"name"in r[n]||(r[n].name=n);this.coords=r;let o=e.white??this.base.white??"D65";this.white=De(o),this.formats=e.formats??{};for(let n in this.formats){let s=this.formats[n];s.type||="function",s.name||=n}this.formats.color?.id||(this.formats.color={...this.formats.color??{},id:e.cssId||this.id}),e.gamutSpace?this.gamutSpace=e.gamutSpace==="self"?this:t.get(e.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(n,s)=>!0),this.referred=e.referred,Object.defineProperty(this,"path",{value:Ro(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),ee.run("colorspace-init-end",this)}inGamut(e,{epsilon:r=Mo}={}){if(!this.equals(this.gamutSpace))return e=this.to(this.gamutSpace,e),this.gamutSpace.inGamut(e,{epsilon:r});let o=Object.values(this.coords);return e.every((n,s)=>{let a=o[s];if(a.type!=="angle"&&a.range){if(R(n))return!0;let[i,c]=a.range;return(i===void 0||n>=i-r)&&(c===void 0||n<=c+r)}return!0})}get isUnbounded(){return Object.values(this.coords).every(e=>!("range"in e))}get cssId(){return this.formats?.color?.id||this.id}get isPolar(){for(let e in this.coords)if(this.coords[e].type==="angle")return!0;return!1}getFormat(e){if(!e)return null;e==="default"?e=Object.values(this.formats)[0]:typeof e=="string"&&(e=this.formats[e]);let r=ce.get(e,this);return r!==e&&e.name in this.formats&&(this.formats[e.name]=r),r}equals(e){return e?this===e||this.id===e||this.id===e.id:!1}to(e,r){if(arguments.length===1){let i=y(e);[e,r]=[i.space,i.coords]}if(e=t.get(e),this.equals(e))return r;r=r.map(i=>R(i)?0:i);let o=this.path,n=e.path,s,a;for(let i=0;i<o.length&&o[i].equals(n[i]);i++)s=o[i],a=i;if(!s)throw new Error(`Cannot convert between color spaces ${this} and ${e}: no connection space was found`);for(let i=o.length-1;i>a;i--)r=o[i].toBase(r);for(let i=a+1;i<n.length;i++)r=n[i].fromBase(r);return r}from(e,r){if(arguments.length===1){let o=y(e);[e,r]=[o.space,o.coords]}return e=t.get(e),e.to(this,r)}toString(){return`${this.name} (${this.id})`}getMinCoords(){let e=[];for(let r in this.coords){let o=this.coords[r],n=o.range||o.refRange;e.push(n?.min??0)}return e}static registry={};static get all(){return[...new Set(Object.values(t.registry))]}static register(e,r){if(arguments.length===1&&(r=arguments[0],e=r.id),r=this.get(r),this.registry[e]&&this.registry[e]!==r)throw new Error(`Duplicate color space registration: '${e}'`);if(this.registry[e]=r,arguments.length===1&&r.aliases)for(let o of r.aliases)this.register(o,r);return r}static get(e,...r){if(!e||se(e,this))return e;if(Q(e)==="string"){let n=t.registry[e.toLowerCase()];if(!n)throw new TypeError(`No color space found with id = "${e}"`);return n}if(r.length)return t.get(...r);throw new TypeError(`${e} is not a valid color space`)}static findFormat(e,r=t.all){if(!e)return null;typeof e=="string"&&(e={name:e});for(let o of r)for(let[n,s]of Object.entries(o.formats)){s.name??=n,s.type??="function";let a=(!e.name||s.name===e.name)&&(!e.type||s.type===e.type);if(e.id){let i=s.ids||[s.id],c=Array.isArray(e.id)?e.id:[e.id];a&&=c.some(l=>i.includes(l))}if(a){let i=ce.get(s,o);return i!==s&&(o.formats[s.name]=i),i}}return null}static resolveCoord(e,r){let o=Q(e),n,s;if(o==="string"?e.includes(".")?[n,s]=e.split("."):[n,s]=[,e]:Array.isArray(e)?[n,s]=e:(n=e.space,s=e.coordId),n=t.get(n),n||(n=r),!n)throw new TypeError(`Cannot resolve coordinate reference ${e}: No color space specified and relative references are not allowed here`);if(o=Q(s),o==="number"||o==="string"&&s>=0){let c=Object.entries(n.coords)[s];if(c)return{space:n,id:c[0],index:s,...c[1]}}n=t.get(n);let a=s.toLowerCase(),i=0;for(let c in n.coords){let l=n.coords[c];if(c.toLowerCase()===a||l.name?.toLowerCase()===a)return{space:n,id:c,index:i,...l};i++}throw new TypeError(`No "${s}" coordinate found in ${n.name}. Its coordinates are: ${Object.keys(n.coords).join(", ")}`)}static DEFAULT_FORMAT={type:"functions",name:"color"}};function Ro(t){let e=[t];for(let r=t;r=r.base;)e.push(r);return e}var _=new m({id:"xyz-d65",name:"XYZ D65",coords:{x:{refRange:[0,1],name:"X"},y:{refRange:[0,1],name:"Y"},z:{refRange:[0,1],name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});var re=class extends m{constructor(e){e.coords||(e.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),e.base||(e.base=_),e.toXYZ_M&&e.fromXYZ_M&&(e.toBase??=r=>{let o=k(r,e.toXYZ_M);return this.white!==this.base.white&&(o=te(this.white,this.base.white,o)),o},e.fromBase??=r=>(r=te(this.base.white,this.white,r),k(r,e.fromXYZ_M))),e.referred??="display",super(e)}};function he(t,e){t=y(t);let r=m.get(e,e?.space),o=e?.precision,n;return!r||t.space.equals(r)?n=t.coords.slice():n=r.from(t),o===void 0?n:n.map(s=>tt(s,o))}function M(t,e){if(t=y(t),e==="alpha")return t.alpha??1;let{space:r,index:o}=m.resolveCoord(e,t.space);return he(t,r)[o]}function Ne(t,e,r,o){return t=y(t),Array.isArray(e)&&([e,r,o]=[t.space,e,r]),e=m.get(e),t.coords=e===t.space?r.slice():e.to(t.space,r),o!==void 0&&(t.alpha=o),t}Ne.returns="color";function $(t,e,r){if(t=y(t),arguments.length===2&&Q(arguments[1])==="object"){let o=arguments[1];for(let n in o)$(t,n,o[n])}else if(typeof r=="function"&&(r=r(M(t,e))),e==="alpha")t.alpha=r;else{let{space:o,index:n}=m.resolveCoord(e,t.space),s=he(t,o);s[n]=r,Ne(t,o,s)}return t}$.returns="color";var Kt=new m({id:"xyz-d50",name:"XYZ D50",white:"D50",base:_,fromBase:t=>te(_.white,"D50",t),toBase:t=>te("D50",_.white,t)});var Lo=216/24389,Vt=24/116,ze=24389/27,it=N.D50,B=new m({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:it,base:Kt,fromBase(t){let r=t.map((a,i)=>a/it[i]).map(a=>a>Lo?Math.cbrt(a):(ze*a+16)/116),o=116*r[1]-16,n=500*(r[0]-r[1]),s=200*(r[1]-r[2]);return[o,n,s]},toBase(t){let[e,r,o]=t,n=[];return n[1]=(e+16)/116,n[0]=r/500+n[1],n[2]=n[1]-o/200,[n[0]>Vt?Math.pow(n[0],3):(116*n[0]-16)/ze,t[0]>8?Math.pow((t[0]+16)/116,3):t[0]/ze,n[2]>Vt?Math.pow(n[2],3):(116*n[2]-16)/ze].map((a,i)=>a*it[i])},formats:{lab:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}});function Y(t){return typeof t!="number"?t:(t%360+360)%360}var H=new m({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:B,fromBase(t){if(this.\u03B5===void 0){let i=Object.values(this.base.coords)[1].refRange,c=i[1]-i[0];this.\u03B5=c/1e5}let[e,r,o]=t,n=Math.abs(r)<this.\u03B5&&Math.abs(o)<this.\u03B5,s=n?null:Y(Math.atan2(o,r)*180/Math.PI),a=n?0:Math.sqrt(r**2+o**2);return[e,a,s]},toBase(t){let[e,r,o]=t,n=null,s=null;return R(o)||(r=r<0?0:r,n=r*Math.cos(o*Math.PI/180),s=r*Math.sin(o*Math.PI/180)),[e,n,s]},formats:{lch:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}});var Qt=25**7,Be=Math.PI,er=180/Be,fe=Be/180;function tr(t){let e=t*t;return e*e*e*t}function He(t,e,{kL:r=1,kC:o=1,kH:n=1}={}){[t,e]=y([t,e]);let[s,a,i]=B.from(t),c=H.from(B,[s,a,i])[1],[l,p,u]=B.from(e),f=H.from(B,[l,p,u])[1];c<0&&(c=0),f<0&&(f=0);let b=(c+f)/2,g=tr(b),h=.5*(1-Math.sqrt(g/(g+Qt))),d=(1+h)*a,w=(1+h)*p,C=Math.sqrt(d**2+i**2),v=Math.sqrt(w**2+u**2),A=d===0&&i===0?0:Math.atan2(i,d),P=w===0&&u===0?0:Math.atan2(u,w);A<0&&(A+=2*Be),P<0&&(P+=2*Be),A*=er,P*=er;let I=l-s,E=v-C,L=P-A,Z=A+P,Tt=Math.abs(L),de;C*v===0?de=0:Tt<=180?de=L:L>180?de=L-360:L<-180?de=L+360:W.warn("the unthinkable has happened");let _t=2*Math.sqrt(v*C)*Math.sin(de*fe/2),co=(s+l)/2,Qe=(C+v)/2,It=tr(Qe),q;C*v===0?q=Z:Tt<=180?q=Z/2:Z<360?q=(Z+360)/2:q=(Z-360)/2;let Dt=(co-50)**2,lo=1+.015*Dt/Math.sqrt(20+Dt),Pt=1+.045*Qe,pe=1;pe-=.17*Math.cos((q-30)*fe),pe+=.24*Math.cos(2*q*fe),pe+=.32*Math.cos((3*q+6)*fe),pe-=.2*Math.cos((4*q-63)*fe);let Nt=1+.015*Qe*pe,fo=30*Math.exp(-1*((q-275)/25)**2),uo=2*Math.sqrt(It/(It+Qt)),mo=-1*Math.sin(2*fo*fe)*uo,Re=(I/(r*lo))**2;return Re+=(E/(o*Pt))**2,Re+=(_t/(n*Nt))**2,Re+=mo*(E/(o*Pt))*(_t/(n*Nt)),Math.sqrt(Re)}var Ao=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],Eo=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],Oo=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],To=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],j=new m({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"Lightness"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:_,fromBase(t){let e=k(t,Ao);return e[0]=Math.cbrt(e[0]),e[1]=Math.cbrt(e[1]),e[2]=Math.cbrt(e[2]),k(e,Oo,e)},toBase(t){let e=k(t,To);return e[0]=e[0]**3,e[1]=e[1]**3,e[2]=e[2]**3,k(e,Eo,e)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}});function be(t,e){[t,e]=y([t,e]);let[r,o,n]=j.from(t),[s,a,i]=j.from(e),c=r-s,l=o-a,p=n-i;return Math.sqrt(c**2+l**2+p**2)}var _o=75e-6;function X(t,e,{epsilon:r=_o}={}){t=y(t),e||(e=t.space),e=m.get(e);let o=t.coords;return e!==t.space&&(o=e.from(t)),e.inGamut(o,{epsilon:r})}function F(t){return{space:t.space,coords:t.coords.slice(),alpha:t.alpha}}function ct(t,e,r="lab"){r=m.get(r);let o=r.from(t),n=r.from(e);return Math.sqrt(o.reduce((s,a,i)=>{let c=n[i];return R(a)||R(c)?s:s+(c-a)**2},0))}function lt(t,e){return ct(t,e,"lab")}var Io=Math.PI,rr=Io/180;function or(t,e,{l:r=2,c:o=1}={}){[t,e]=y([t,e]);let[n,s,a]=B.from(t),[,i,c]=H.from(B,[n,s,a]),[l,p,u]=B.from(e),f=H.from(B,[l,p,u])[1];i<0&&(i=0),f<0&&(f=0);let b=n-l,g=i-f,h=s-p,d=a-u,w=h**2+d**2-g**2,C=.511;n>=16&&(C=.040975*n/(1+.01765*n));let v=.0638*i/(1+.0131*i)+.638,A;R(c)&&(c=0),c>=164&&c<=345?A=.56+Math.abs(.2*Math.cos((c+168)*rr)):A=.36+Math.abs(.4*Math.cos((c+35)*rr));let P=Math.pow(i,4),I=Math.sqrt(P/(P+1900)),E=v*(I*A+1-I),L=(b/(r*C))**2;return L+=(g/(o*v))**2,L+=w/E**2,Math.sqrt(L)}var nr=203,Fe=new m({id:"xyz-abs-d65",cssId:"--xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:_,fromBase(t){return t.map(e=>e*nr)},toBase(t){return t.map(e=>e/nr)}});var $e=1.15,je=.66,ar=2610/2**14,Do=2**14/2610,sr=3424/2**12,ir=2413/2**7,cr=2392/2**7,Po=1.7*2523/2**5,lr=2**5/(1.7*2523),Ge=-.56,ft=16295499532821565e-27,No=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],zo=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],Bo=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],Ho=[[1,.13860504327153927,.05804731615611883],[1,-.1386050432715393,-.058047316156118904],[1,-.09601924202631895,-.811891896056039]],fr=new m({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.21,.21]},bz:{refRange:[-.21,.21]}},base:Fe,fromBase(t){let[e,r,o]=t,n=$e*e-($e-1)*o,s=je*r-(je-1)*e,i=k([n,s,o],No).map(function(f){let b=sr+ir*O(f/1e4,ar),g=1+cr*O(f/1e4,ar);return O(b/g,Po)}),[c,l,p]=k(i,Bo);return[(1+Ge)*c/(1+Ge*c)-ft,l,p]},toBase(t){let[e,r,o]=t,n=(e+ft)/(1+Ge-Ge*(e+ft)),a=k([n,r,o],Ho).map(function(f){let b=sr-O(f,lr),g=cr*O(f,lr)-ir;return 1e4*O(b/g,Do)}),[i,c,l]=k(a,zo),p=(i+($e-1)*l)/$e,u=(c+(je-1)*p)/je;return[p,u,l]},formats:{jzazbz:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}});var ut=new m({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,.26],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:fr,fromBase:H.fromBase,toBase:H.toBase,formats:{jzczhz:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}});function ur(t,e){[t,e]=y([t,e]);let[r,o,n]=ut.from(t),[s,a,i]=ut.from(e),c=r-s,l=o-a;R(n)&&R(i)?(n=0,i=0):R(n)?n=i:R(i)&&(i=n);let p=n-i,u=2*Math.sqrt(o*a)*Math.sin(p/2*(Math.PI/180));return Math.sqrt(c**2+l**2+u**2)}var pr=3424/4096,gr=2413/128,hr=2392/128,mr=2610/16384,Fo=2523/32,$o=16384/2610,dr=32/2523,jo=[[.3592832590121217,.6976051147779502,-.035891593232029],[-.1920808463704993,1.100476797037432,.0753748658519118],[.0070797844607479,.0748396662186362,.8433265453898765]],Go=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],qo=[[.9999999999999998,.0086090370379328,.111029625003026],[.9999999999999998,-.0086090370379328,-.1110296250030259],[.9999999999999998,.5600313357106791,-.3206271749873188]],Wo=[[2.0701522183894223,-1.3263473389671563,.2066510476294053],[.3647385209748072,.6805660249472273,-.0453045459220347],[-.0497472075358123,-.0492609666966131,1.1880659249923042]],mt=new m({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Fe,fromBase(t){let e=k(t,jo);return Yo(e)},toBase(t){let e=Xo(t);return k(e,Wo)},formats:{ictcp:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}});function Yo(t){let e=t.map(function(r){let o=pr+gr*(r/1e4)**mr,n=1+hr*(r/1e4)**mr;return(o/n)**Fo});return k(e,Go)}function Xo(t){return k(t,qo).map(function(o){let n=Math.max(o**dr-pr,0),s=gr-hr*o**dr;return 1e4*(n/s)**$o})}function br(t,e){[t,e]=y([t,e]);let[r,o,n]=mt.from(t),[s,a,i]=mt.from(e);return 720*Math.sqrt((r-s)**2+.25*(o-a)**2+(n-i)**2)}function wr(t,e){[t,e]=y([t,e]);let r=2,[o,n,s]=j.from(t),[a,i,c]=j.from(e),l=o-a,p=r*(n-i),u=r*(s-c);return Math.sqrt(l**2+p**2+u**2)}var Jo=N.D65,xr=.42,Cr=1/xr,dt=2*Math.PI,kr=[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],Zo=[[1.8620678550872327,-1.0112546305316843,.14918677544445175],[.38752654323613717,.6214474419314753,-.008973985167612518],[-.015841498849333856,-.03412293802851557,1.0499644368778496]],Uo=[[460,451,288],[460,-891,-261],[460,-220,-6300]],Ko={dark:[.8,.525,.8],dim:[.9,.59,.9],average:[1,.69,1]},oe={h:[20.14,90,164.25,237.53,380.14],e:[.8,.7,1,1.2,.8],H:[0,100,200,300,400]},Vo=180/Math.PI,yr=Math.PI/180;function Sr(t,e){return t.map(o=>{let n=O(e*Math.abs(o)*.01,xr);return 400*Ie(n,o)/(n+27.13)})}function Qo(t,e){let r=100/e*27.13**Cr;return t.map(o=>{let n=Math.abs(o);return Ie(r*O(n/(400-n),Cr),o)})}function en(t){let e=Y(t);e<=oe.h[0]&&(e+=360);let r=Jt(oe.h,e)-1,[o,n]=oe.h.slice(r,r+2),[s,a]=oe.e.slice(r,r+2),i=oe.H[r],c=(e-o)/s;return i+100*c/(c+(n-e)/a)}function tn(t){let e=(t%400+400)%400,r=Math.floor(.01*e);e=e%100;let[o,n]=oe.h.slice(r,r+2),[s,a]=oe.e.slice(r,r+2);return Y((e*(a*o-s*n)-100*o*a)/(e*(a-s)-100*a))}function pt(t,e,r,o,n){let s={};s.discounting=n,s.refWhite=t,s.surround=o;let a=t.map(d=>d*100);s.la=e,s.yb=r;let i=a[1],c=k(a,kr),l=Ko[s.surround],p=l[0];s.c=l[1],s.nc=l[2];let f=(1/(5*s.la+1))**4;s.fl=f*s.la+.1*(1-f)*(1-f)*Math.cbrt(5*s.la),s.flRoot=s.fl**.25,s.n=s.yb/i,s.z=1.48+Math.sqrt(s.n),s.nbb=.725*s.n**-.2,s.ncb=s.nbb;let b=n?1:Math.max(Math.min(p*(1-1/3.6*Math.exp((-s.la-42)/92)),1),0);s.dRgb=c.map(d=>rt(1,i/d,b)),s.dRgbInv=s.dRgb.map(d=>1/d);let g=c.map((d,w)=>d*s.dRgb[w]),h=Sr(g,s.fl);return s.aW=s.nbb*(2*h[0]+h[1]+.05*h[2]),s}var vr=pt(Jo,64/Math.PI*.2,20,"average",!1);function qe(t,e){if(!(t.J!==void 0^t.Q!==void 0))throw new Error("Conversion requires one and only one: 'J' or 'Q'");if(!(t.C!==void 0^t.M!==void 0^t.s!==void 0))throw new Error("Conversion requires one and only one: 'C', 'M' or 's'");if(!(t.h!==void 0^t.H!==void 0))throw new Error("Conversion requires one and only one: 'h' or 'H'");if(t.J===0||t.Q===0)return[0,0,0];let r=0;t.h!==void 0?r=Y(t.h)*yr:r=tn(t.H)*yr;let o=Math.cos(r),n=Math.sin(r),s=0;t.J!==void 0?s=O(t.J,1/2)*.1:t.Q!==void 0&&(s=.25*e.c*t.Q/((e.aW+4)*e.flRoot));let a=0;t.C!==void 0?a=t.C/s:t.M!==void 0?a=t.M/e.flRoot/s:t.s!==void 0&&(a=4e-4*t.s**2*(e.aW+4)/e.c);let i=O(a*Math.pow(1.64-Math.pow(.29,e.n),-.73),10/9),c=.25*(Math.cos(r+2)+3.8),l=e.aW*O(s,2/e.c/e.z),p=5e4/13*e.nc*e.ncb*c,u=l/e.nbb,f=23*(u+.305)*nt(i,23*p+i*(11*o+108*n)),b=f*o,g=f*n,h=Qo(k([u,b,g],Uo).map(d=>d*1/1403),e.fl);return k(h.map((d,w)=>d*e.dRgbInv[w]),Zo).map(d=>d/100)}function gt(t,e){let r=t.map(v=>v*100),o=Sr(k(r,kr).map((v,A)=>v*e.dRgb[A]),e.fl),n=o[0]+(-12*o[1]+o[2])/11,s=(o[0]+o[1]-2*o[2])/9,a=(Math.atan2(s,n)%dt+dt)%dt,i=.25*(Math.cos(a+2)+3.8),c=5e4/13*e.nc*e.ncb*nt(i*Math.sqrt(n**2+s**2),o[0]+o[1]+1.05*o[2]+.305),l=O(c,.9)*Math.pow(1.64-Math.pow(.29,e.n),.73),p=e.nbb*(2*o[0]+o[1]+.05*o[2]),u=O(p/e.aW,.5*e.c*e.z),f=100*O(u,2),b=4/e.c*u*(e.aW+4)*e.flRoot,g=l*u,h=g*e.flRoot,d=Y(a*Vo),w=en(d),C=50*O(e.c*l/(e.aW+4),1/2);return{J:f,C:g,h:d,s:C,Q:b,M:h,H:w}}var ti=new m({id:"cam16-jmh",cssId:"--cam16-jmh",name:"CAM16-JMh",coords:{j:{refRange:[0,100],name:"J"},m:{refRange:[0,105],name:"Colorfulness"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:_,fromBase(t){this.\u03B5===void 0&&(this.\u03B5=Object.values(this.coords)[1].refRange[1]/1e5);let e=gt(t,vr),r=Math.abs(e.M)<this.\u03B5;return[e.J,r?0:e.M,r?null:e.h]},toBase(t){return qe({J:t[0],M:t[1],h:t[2]},vr)}});var rn=N.D65,on=216/24389,Mr=24389/27;function nn(t){return 116*(t>on?Math.cbrt(t):(Mr*t+16)/116)-16}function ht(t){return t>8?Math.pow((t+16)/116,3):t/Mr}function an(t,e){let[r,o,n]=t,s=[],a=0;if(n===0)return[0,0,0];let i=ht(n);n>0?a=.00379058511492914*n**2+.608983189401032*n+.9155088574762233:a=9514440756550361e-21*n**2+.08693057439788597*n-21.928975842194614;let c=2e-12,l=15,p=0,u=1/0,f=a;for(;p<=l;){s=qe({J:a,C:o,h:r},e);let b=Math.abs(s[1]-i);if(b<u){if(b<=c)return s;f=a,u=b}a=a-(s[1]-i)*a/(2*s[1]),p+=1}return qe({J:a,C:o,h:r},e)}function sn(t,e){let r=nn(t[1]);if(r===0)return[0,0,0];let o=gt(t,we);return[Y(o.h),o.C,r]}var we=pt(rn,200/Math.PI*ht(50),ht(50)*100,"average",!1),Ce=new m({id:"hct",name:"HCT",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},c:{refRange:[0,145],name:"Colorfulness"},t:{refRange:[0,100],name:"Tone"}},base:_,fromBase(t){this.\u03B5===void 0&&(this.\u03B5=Object.values(this.coords)[1].refRange[1]/1e5);let e=sn(t,we);return e[1]<this.\u03B5&&(e[1]=0,e[0]=null),e},toBase(t){return an(t,we)},formats:{color:{id:"--hct",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});var mi=180/Math.PI,cn=Math.PI/180,Rr=[1,.007,.0228];function Lr(t){t[1]<0&&(t=Ce.fromBase(Ce.toBase(t)));let e=Math.log(Math.max(1+Rr[2]*t[1]*we.flRoot,1))/Rr[2],r=t[0]*cn,o=e*Math.cos(r),n=e*Math.sin(r);return[t[2],o,n]}function Ar(t,e){[t,e]=y([t,e]);let[r,o,n]=Lr(Ce.from(t)),[s,a,i]=Lr(Ce.from(e));return Math.sqrt((r-s)**2+(o-a)**2+(n-i)**2)}var bt={deltaE76:lt,deltaECMC:or,deltaE2000:He,deltaEJz:ur,deltaEITP:br,deltaEOK:be,deltaEOK2:wr,deltaEHCT:Ar};function ln(t){let e=t?Math.floor(Math.log10(Math.abs(t))):0;return Math.max(parseFloat(`1e${e-2}`),1e-6)}var Er={hct:{method:"hct.c",jnd:2,deltaEMethod:"hct",blackWhiteClamp:{}},"hct-tonal":{method:"hct.c",jnd:0,deltaEMethod:"hct",blackWhiteClamp:{channel:"hct.t",min:0,max:100}}};function z(t,{method:e=W.gamut_mapping,space:r=void 0,deltaEMethod:o="",jnd:n=2,blackWhiteClamp:s=void 0}={}){if(t=y(t),Oe(arguments[1])?r=arguments[1]:r||(r=t.space),r=m.get(r),X(t,r,{epsilon:0}))return t;let a;if(e==="css")a=Tr(t,{space:r});else{if(e!=="clip"&&!X(t,r)){Object.prototype.hasOwnProperty.call(Er,e)&&({method:e,jnd:n,deltaEMethod:o,blackWhiteClamp:s}=Er[e]);let i=He;if(o!==""){for(let l in bt)if("deltae"+o.toLowerCase()===l.toLowerCase()){i=bt[l];break}}n===0&&(n=1e-16);let c=z(x(t,r),{method:"clip",space:r});if(i(t,c)>n){if(s&&Object.keys(s).length===3){let C=m.resolveCoord(s.channel),v=M(x(t,C.space),C.id);if(R(v)&&(v=0),v>=s.max)return x({space:"xyz-d65",coords:N.D65},t.space);if(v<=s.min)return x({space:"xyz-d65",coords:[0,0,0]},t.space)}let l=m.resolveCoord(e),p=l.space,u=l.id,f=x(t,p);f.coords.forEach((C,v)=>{R(C)&&(f.coords[v]=0)});let g=(l.range||l.refRange)[0],h=ln(n),d=g,w=M(f,u);for(;w-d>h;){let C=F(f);C=z(C,{space:r,method:"clip"}),i(f,C)-n<h?d=M(f,u):w=M(f,u),$(f,u,(d+w)/2)}a=x(f,r)}else a=c}else a=x(t,r);if(e==="clip"||!X(a,r,{epsilon:0})){let i=Object.values(r.coords).map(c=>c.range||[]);a.coords=a.coords.map((c,l)=>{let[p,u]=i[l];return p!==void 0&&(c=Math.max(p,c)),u!==void 0&&(c=Math.min(c,u)),c})}}return r!==t.space&&(a=x(a,t.space)),t.coords=a.coords,t}z.returns="color";var Or={WHITE:{space:j,coords:[1,0,0],alpha:1},BLACK:{space:j,coords:[0,0,0],alpha:1}};function Tr(t,{space:e}={}){t=y(t),e||(e=t.space),e=m.get(e);let n=m.get("oklch");if(e.isUnbounded)return x(t,e);let s=x(t,n),a=s.coords[0];if(a>=1){let g=x(Or.WHITE,e);return g.alpha=t.alpha,x(g,e)}if(a<=0){let g=x(Or.BLACK,e);return g.alpha=t.alpha,x(g,e)}if(X(s,e,{epsilon:0}))return x(s,e);function i(g){let h=x(g,e),d=Object.values(e.coords);return h.coords=h.coords.map((w,C)=>{if("range"in d[C]){let[v,A]=d[C].range;return _e(v,w,A)}return w}),h}let c=0,l=s.coords[1],p=!0,u=F(s),f=i(u),b=be(f,u);if(b<.02)return f;for(;l-c>1e-4;){let g=(c+l)/2;if(u.coords[1]=g,p&&X(u,e,{epsilon:0}))c=g;else if(f=i(u),b=be(f,u),b<.02){if(.02-b<1e-4)break;p=!1,c=g}else l=g}return f}function x(t,e,{inGamut:r}={}){t=y(t),e=m.get(e);let o=e.from(t),n={space:e,coords:o,alpha:t.alpha};return r&&(n=z(n,r===!0?void 0:r)),n}x.returns="color";function ye(t,e={}){let{precision:r=W.precision,format:o,inGamut:n=!0,coords:s,alpha:a,commas:i}=e,c,l=y(t),p=o,u=l.parseMeta;u&&!o&&(u.format.canSerialize()&&(o=u.format,p=u.formatId),s??=u.types,a??=u.alphaType,i??=u.commas),p&&(o=l.space.getFormat(o)??m.findFormat(p)),o||(o=l.space.getFormat("default")??m.DEFAULT_FORMAT,p=o.name),o&&o.space&&o.space!==l.space&&(l=x(l,o.space));let f=l.coords.slice();if(n||=o.toGamut,n&&!X(l)&&(f=z(F(l),n===!0?void 0:n).coords),o.type==="custom")if(o.serialize)c=o.serialize(f,l.alpha,e);else throw new TypeError(`format ${p} can only be used to parse colors, not for serialization`);else{let b=o.name||"color",g=o.serializeCoords(f,r,s);if(b==="color"){let v=o.id||o.ids?.[0]||l.space.cssId||l.space.id;g.unshift(v)}let h=l.alpha;a!==void 0&&typeof a!="object"&&(a=typeof a=="string"?{type:a}:{include:a});let d=a?.type??"<number>",w=a?.include===!0||o.alpha===!0||a?.include!==!1&&o.alpha!==!1&&h<1,C="";if(i??=o.commas,w){if(r!==null){let v;d==="<percentage>"&&(v="%",h*=100),h=Te(h,{precision:r,unit:v})}C=`${i?",":" /"} ${h}`}c=`${b}(${g.join(i?", ":" ")}${C})`}return c}var fn=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],un=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]],_r=new re({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:fn,fromXYZ_M:un});var wt={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};var Ir=Array(3).fill("<percentage> | <number>[0, 255]"),Dr=Array(3).fill("<number>[0, 255]"),D=new re({id:"srgb",name:"sRGB",base:_r,fromBase:t=>t.map(e=>{let r=e<0?-1:1,o=e*r;return o>.0031308?r*(1.055*o**(1/2.4)-.055):12.92*e}),toBase:t=>t.map(e=>{let r=e<0?-1:1,o=e*r;return o<=.04045?e/12.92:r*((o+.055)/1.055)**2.4}),formats:{rgb:{coords:Ir},rgb_number:{name:"rgb",commas:!0,coords:Dr,alpha:!1},color:{},rgba:{coords:Ir,commas:!0,alpha:!0},rgba_number:{name:"rgba",commas:!0,coords:Dr},hex:{type:"custom",toGamut:!0,test:t=>/^#(([a-f0-9]{2}){3,4}|[a-f0-9]{3,4})$/i.test(t),parse(t){t.length<=5&&(t=t.replace(/[a-f0-9]/gi,"$&$&"));let e=[];return t.replace(/[a-f0-9]{2}/gi,r=>{e.push(parseInt(r,16)/255)}),{spaceId:"srgb",coords:e.slice(0,3),alpha:e.slice(3)[0]}},serialize:(t,e,{collapse:r=!0,alpha:o}={})=>{(o!==!1&&e<1||o===!0)&&t.push(e),t=t.map(a=>Math.round(a*255));let n=r&&t.every(a=>a%17===0);return"#"+t.map(a=>n?(a/17).toString(16):a.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:t=>/^[a-z]+$/i.test(t),parse(t){t=t.toLowerCase();let e={spaceId:"srgb",coords:null,alpha:1};if(t==="transparent"?(e.coords=wt.black,e.alpha=0):e.coords=wt[t],e.coords)return e}}}});function Ct(t){return M(t,[_,"y"])}function We(t,e){t=y(t),e=y(e);let r=Math.max(Ct(t),0),o=Math.max(Ct(e),0);return o>r&&([r,o]=[o,r]),(r+.05)/(o+.05)}var ve=new m({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:D,fromBase:t=>{let e=Math.max(...t),r=Math.min(...t),[o,n,s]=t,[a,i,c]=[null,0,(r+e)/2],l=e-r;if(l!==0){switch(i=c===0||c===1?0:(e-c)/Math.min(c,1-c),e){case o:a=(n-s)/l+(n<s?6:0);break;case n:a=(s-o)/l+2;break;case s:a=(o-n)/l+4}a=a*60}return i<0&&(a+=180,i=Math.abs(i)),a>=360&&(a-=360),[a,i*100,c*100]},toBase:t=>{let[e,r,o]=t;e=e%360,e<0&&(e+=360),r/=100,o/=100;function n(s){let a=(s+e/30)%12,i=r*Math.min(o,1-o);return o-i*Math.max(-1,Math.min(a-3,9-a,1))}return[n(0),n(8),n(4)]},formats:{hsl:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]},hsla:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"],commas:!0,alpha:!0}}});var S=new m({id:"oklch",name:"OkLCh",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:j,fromBase:H.fromBase,toBase:H.toBase,formats:{oklch:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}});function yt(t,e){var r=0,o,n;e=e||{};function s(){var a=o,i=arguments.length,c,l;e:for(;a;){if(a.args.length!==arguments.length){a=a.next;continue}for(l=0;l<i;l++)if(a.args[l]!==arguments[l]){a=a.next;continue e}return a!==o&&(a===n&&(n=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=o,a.prev=null,o.prev=a,o=a),a.val}for(c=new Array(i),l=0;l<i;l++)c[l]=arguments[l];return a={args:c,val:t.apply(null,c)},o?(o.prev=a,a.next=o):n=a,r===e.maxSize?(n=n.prev,n.next=null):r++,o=a,a.val}return s.clear=function(){o=null,n=null,r=0},s}var me=V(Ae(),1);var Pr={transparent:["background-interactive-brand-weak","background-interactive-brand-weak-disabled","background-interactive-error","background-interactive-error-disabled","background-interactive-error-weak","background-interactive-error-weak-disabled","background-interactive-neutral-weak","background-interactive-neutral-weak-disabled"],"primary-bgFill1":["background-interactive-brand-strong"],"primary-fgFill":["foreground-interactive-brand-strong","foreground-interactive-brand-strong-active"],"primary-bgFill2":["background-interactive-brand-strong-active"],"primary-surface4":["background-interactive-brand-weak-active"],"primary-fgSurface4":["foreground-interactive-brand-active"],"primary-fgSurface3":["foreground-interactive-brand"],"primary-stroke3":["background-thumb-brand","background-thumb-brand-active","stroke-focus","stroke-interactive-brand","stroke-surface-brand-strong"],"primary-stroke4":["stroke-interactive-brand-active"],"primary-stroke1":["stroke-surface-brand"],"primary-surface1":["background-surface-brand"],"info-surface2":["background-surface-info-weak"],"info-surface4":["background-surface-info"],"info-fgSurface4":["foreground-content-info"],"info-fgSurface3":["foreground-content-info-weak"],"info-stroke3":["stroke-surface-info-strong"],"info-stroke1":["stroke-surface-info"],"success-surface2":["background-surface-success-weak"],"success-surface4":["background-surface-success"],"success-fgSurface4":["foreground-content-success"],"success-fgSurface3":["foreground-content-success-weak"],"success-stroke3":["stroke-surface-success-strong"],"success-stroke1":["stroke-surface-success"],"warning-surface2":["background-surface-warning-weak"],"warning-surface4":["background-surface-warning"],"warning-fgSurface4":["foreground-content-warning"],"warning-fgSurface3":["foreground-content-warning-weak"],"warning-stroke3":["stroke-surface-warning-strong"],"warning-stroke1":["stroke-surface-warning"],"error-bgFill1":["background-interactive-error-strong"],"error-fgFill":["foreground-interactive-error-strong","foreground-interactive-error-strong-active"],"error-bgFill2":["background-interactive-error-strong-active"],"error-surface2":["background-interactive-error-active","background-surface-error-weak"],"error-surface4":["background-interactive-error-weak-active","background-surface-error"],"error-fgSurface4":["foreground-content-error","foreground-interactive-error-active"],"error-fgSurface3":["foreground-content-error-weak","foreground-interactive-error"],"error-stroke3":["stroke-interactive-error","stroke-interactive-error-strong","stroke-surface-error-strong"],"error-stroke4":["stroke-interactive-error-active"],"error-stroke1":["stroke-surface-error"],"bg-surface2":["background-surface-neutral"],"bg-surface5":["background-interactive-brand-strong-disabled","background-interactive-error-strong-disabled","background-interactive-neutral-strong-disabled"],"bg-surface4":["background-interactive-neutral-weak-active"],"bg-surface3":["background-surface-neutral-strong"],"bg-fgSurface4":["foreground-content-neutral","foreground-interactive-neutral","foreground-interactive-neutral-active","foreground-interactive-neutral-weak-active"],"bg-fgSurface3":["foreground-content-neutral-weak","foreground-interactive-neutral-weak"],"bg-fgSurface2":["foreground-interactive-brand-disabled","foreground-interactive-brand-strong-disabled","foreground-interactive-error-disabled","foreground-interactive-error-strong-disabled","foreground-interactive-neutral-disabled","foreground-interactive-neutral-strong-disabled","foreground-interactive-neutral-weak-disabled"],"bg-stroke3":["background-thumb-neutral-weak","stroke-interactive-neutral","stroke-surface-neutral-strong"],"bg-stroke4":["background-thumb-neutral-weak-active","stroke-interactive-neutral-active","stroke-interactive-neutral-strong"],"bg-stroke2":["background-thumb-brand-disabled","background-thumb-neutral-weak-disabled","background-track-neutral","stroke-interactive-brand-disabled","stroke-interactive-error-disabled","stroke-interactive-neutral-disabled","stroke-surface-neutral"],"bg-stroke1":["background-track-neutral-weak","stroke-surface-neutral-weak"],"bg-bgFillInverted2":["background-interactive-neutral-strong-active"],"bg-bgFillInverted1":["background-interactive-neutral-strong"],"bg-fgFillInverted":["foreground-interactive-neutral-strong","foreground-interactive-neutral-strong-active"],"bg-surface1":["background-surface-neutral-weak"],"caution-surface2":["background-surface-caution-weak"],"caution-surface4":["background-surface-caution"],"caution-fgSurface4":["foreground-content-caution"],"caution-fgSurface3":["foreground-content-caution-weak"],"caution-stroke3":["stroke-surface-caution-strong"],"caution-stroke1":["stroke-surface-caution"]};var Nr=[D];function ne(t){m.register(D);let e=ye(x(t,D));return ye(e,{format:"hex"})}function J(t,e){return m.register(D),We(t,e)}function zr(t){Nr.forEach(n=>m.register(n));let e;try{e=le(t)}catch{throw new Error(`Unsupported seed color "${t}": expected a fully opaque hex value, an \`rgb()\`/\`rgba()\` string, or a CSS named color.`)}let{alpha:r=1,spaceId:o}=e;if(!Nr.some(n=>n.id===o))throw new Error(`Unsupported seed color "${t}": expected a fully opaque hex value, an \`rgb()\`/\`rgba()\` string, or a CSS named color, but received a \`${o}\` color.`);if(r!==1)throw new Error(`Unsupported seed color "${t}": expected a fully opaque color.`)}function xe(t){return m.register(D),m.register(S),x(z(t,{space:D,method:"css"}),S)}var Ye={space:S,coords:[1,0,0],alpha:1},Xe={space:S,coords:[0,0,0],alpha:1},Br=.02,Hr=3.1,Fr={lighter:{min:.2,max:.4},darker:{min:.75,max:.98}},U=.004,$r=10;var ke={background:"#fcfcfc",primary:"#3858e9",info:"#0090ff",success:"#4ab866",caution:"#f0d149",warning:"#f0b849",error:"#cc1818"};function mn(t){let e=new Map,r=new Map;return Object.keys(t).forEach(o=>{e.set(o,[])}),r.set("seed",[]),Object.keys(t).forEach(o=>{r.set(o,[])}),Object.entries(t).forEach(([o,n])=>{let s=o,a=n.contrast.reference;e.get(s).push(a),r.get(a).push(s),n.sameAsIfPossible&&(e.get(s).push(n.sameAsIfPossible),r.get(n.sameAsIfPossible).push(s))}),{dependencies:e,dependents:r}}function jr(t){let{dependents:e}=mn(t),r=[],o=new Set,n=new Set;function s(a){if(n.has(a))throw new Error(`Circular dependency detected involving step: ${String(a)}`);if(o.has(a))return;n.add(a),(e.get(a)||[]).forEach(c=>{s(c)}),n.delete(a),o.add(a),a!=="seed"&&r.unshift(a)}return s("seed"),r}function Gr(t,e){let r=new Set;function o(n){if(n==="seed"||r.has(n))return;let s=e[n];s&&(o(s.contrast.reference),s.sameAsIfPossible&&o(s.sameAsIfPossible),r.add(n))}return o(t),Array.from(r)}function vt(t,e){let r=J(t,Xe),o=J(t,Ye);return r>o+(e?Hr:0)?{better:"darker",worse:"lighter"}:{better:"lighter",worse:"darker"}}function xt(t){return t===1?1:t+Br}function qr(t,e){let r=Fr[e];return Math.max(r.min,Math.min(r.max,t))}function Je(t,e,r,o,n,s){let a=r,i=o,c=!1,l=n,p=s,u=!1,f,b,g=0;for(;;){g++;let h=(a*p-l*i)/(p-i);if(f=t(h),b=e(f),Math.abs(b)<=U||g>=$r)break;b<=0?(a=h,i=b,c&&(p/=2),c=!0,u=!1):(l=h,p=b,u&&(i/=2),u=!0,c=!1)}return f}function Jr(t,e,r={}){m.register(S);let o=r.gamut??D,n=r.alpha??.65,s=r.carry??.5,a=r.cUpperBound??.45,i=r.radiusLight??.2,c=r.radiusDark??.2,l=r.kLight??.85,p=r.kDark??.85,u=r.achromaEpsilon??.005,f=Math.max(0,M(t,[S,"c"])),b=M(t,[S,"h"]),g=f<u,h=b===null||!Number.isFinite(b);if(g||h)if(typeof r.hueFallback=="number")b=Zr(r.hueFallback);else return{space:S,coords:[ae(e),0,0],alpha:1};let d=ae(M(t,[S,"l"])),w=Xr(d,b,o,a),C=Xr(ae(e),b,o,a),v=0,A=w>0?w:1e-6;v=ae(f/A);let I=n*C*Math.pow(v,ae(s)),E=dn(d,e,{radiusLight:i,radiusDark:c,kLight:l,kDark:p}),L=I*E;return{l:ae(e),c:L}}function ae(t){return t<0?0:t>1?1:t}function Zr(t){let e=t%360;return e<0&&(e+=360),e}function Wr(t){let e=ae(t);return .5-.5*Math.cos(Math.PI*e)}function dn(t,e,r){let o=e-t;if(o>=0){let a=r.radiusLight>0?Math.abs(o)/r.radiusLight:1,i=Wr(a>1?1:a);return 1-(1-r.kLight)*i}let n=r.radiusDark>0?Math.abs(o)/r.radiusDark:1,s=Wr(n>1?1:n);return 1-(1-r.kDark)*s}var Yr=new Map;function pn(t,e,r,o){let n=kt(t,.05),s=kt(Zr(e),10),a=kt(o,.05);return`${r}|L:${n}|H:${s}|cap:${a}`}function kt(t,e){return Math.round(t/e)*e}function Xr(t,e,r,o){let n=r.id,s=pn(t,e,n,o),a=Yr.get(s);if(typeof a=="number")return a;let i=gn(t,e,r,o);return Yr.set(s,i),i}function gn(t,e,r,o){let s=z({space:S,coords:[t,o,e],alpha:1},{space:r,method:"css"});return M(s,[S,"c"])}function G(t,e){return Math.log(t/e)}function Ur(t,e,r,o,{lightnessConstraint:n,taperChromaOptions:s}={}){if(r<=1)return{color:t,reached:!0,achieved:1};function a(h){let d=h,w=M(e,[S,"c"]);if(s){let C=Jr(e,d,s);if("l"in C&&"c"in C)d=C.l,w=C.c;else return C}return xe({space:S,coords:[d,w,M(e,[S,"h"])],alpha:e.alpha})}let i=o==="lighter"?1:0,c=o==="lighter"?Ye:Xe,l=J(t,c);if(n){let h=a(n.value),d=J(t,h),w=G(d,r)>=-U;if(w||n.type==="force")return{color:h,reached:w,achieved:d,deficit:w?G(d,l):G(r,d)}}if(G(l,r)<=U)return{color:c,reached:G(l,r)>=-U,achieved:l,deficit:G(r,l)};let p=M(t,[S,"l"]),u=G(1,r),f=i,b=G(l,r);return{color:Je(a,h=>G(J(t,h),r),p,u,f,b),reached:!0,achieved:r,deficit:G(r,l)}}function St({seed:t,sortedSteps:e,config:r,mainDir:o,oppDir:n,pinLightness:s}){let a={},i,c=-1/0,l="lighter",p,u=new Map;u.set("seed",t);for(let f of e){let b=function(E,L){return L==="main"?o:L==="opposite"?n:L==="best"?vt(E,g.preferLighter).better:L},{contrast:g,lightness:h,taperChromaOptions:d,sameAsIfPossible:w}=r[f],C=u.get(g.reference);if(!C)throw new Error(`Reference color for step ${f} not found: ${g.reference}`);if(w){let E=u.get(w);if(!E)throw new Error(`Same-as color for step ${f} not found: ${w}`);let L=J(C,E),Z=xt(g.target);if(L>=Z){u.set(f,E),a[f]=ne(E);continue}}let v=b(C,g.followDirection),A=xt(g.target),P;s?.stepName===f?P={value:s.value,type:"force"}:h&&(P={value:h(v),type:"onlyIfSucceeds"});let I=Ur(C,t,A,v,{lightnessConstraint:P,taperChromaOptions:d});!g.ignoreWhenAdjustingSeed&&I.deficit&&I.deficit>c&&(c=I.deficit,l=v,p=f),u.set(f,I.color),a[f]=ne(I.color),!I.reached&&!g.ignoreWhenAdjustingSeed&&(i??=[],i.push(f))}return{rampResults:a,warnings:i,maxDeficit:c,maxDeficitDirection:l,maxDeficitStep:p}}function Mt(t,e,{mainDirection:r,pinLightness:o,rescaleToFitContrastTargets:n=!0}={}){zr(t);let s;try{s=xe(t)}catch(h){throw new Error(`Invalid seed color "${t}": ${h instanceof Error?h.message:"Unknown error"}`)}let a="lighter",i="darker";if(r)a=r,i=r==="darker"?"lighter":"darker";else{let{better:h,worse:d}=vt(s);a=h,i=d}let c=jr(e),{rampResults:l,warnings:p,maxDeficit:u,maxDeficitDirection:f,maxDeficitStep:b}=St({seed:s,sortedSteps:c,config:e,mainDir:a,oppDir:i,pinLightness:o}),g=l;if(u>U&&n){let h=function(E){return xe($(F(s),[S,"l"],E))},d=function(E){let L=St({seed:E,sortedSteps:w,config:e,mainDir:a,oppDir:i,pinLightness:o});return L.maxDeficitDirection===f?L.maxDeficit:-u},w=Gr(b,e),C=f==="lighter"?0:1,v=-u,A=M(s,[S,"l"]),I=Je(h,d,C,v,A,u);g=St({seed:I,sortedSteps:c,config:e,mainDir:a,oppDir:i,pinLightness:o}).rampResults}if(a==="darker"){let h=g.surface1;g.surface1=g.surface3,g.surface3=h}return{ramp:g,warnings:p,direction:a}}var Me=t=>t==="lighter"?.9551:.235,hn=t=>t==="lighter"?.77:.56,bn=t=>t==="lighter"?.67:.45,Se={alpha:.7},K={alpha:.6,kLight:.2,kDark:.2},Ze={alpha:.6,radiusDark:.01,radiusLight:.01,kLight:.8,kDark:.8},ue={alpha:.75,radiusDark:.01,radiusLight:.01},Kr={contrast:{reference:"surface3",followDirection:"main",target:7,preferLighter:!0},lightness:Me,taperChromaOptions:K},T={surface1:{contrast:{reference:"surface2",followDirection:"opposite",target:1.06,ignoreWhenAdjustingSeed:!0},taperChromaOptions:Se},surface2:{contrast:{reference:"seed",followDirection:"main",target:1}},surface3:{contrast:{reference:"surface2",followDirection:"main",target:1.06},taperChromaOptions:Se},surface4:{contrast:{reference:"surface2",followDirection:"main",target:1.12},taperChromaOptions:Se},surface5:{contrast:{reference:"surface2",followDirection:"main",target:1.2},taperChromaOptions:Se},surface6:{contrast:{reference:"surface2",followDirection:"main",target:1.4},taperChromaOptions:Se},bgFill1:{contrast:{reference:"surface2",followDirection:"main",target:4},lightness:bn},bgFill2:{contrast:{reference:"bgFill1",followDirection:"main",target:1.2}},bgFillInverted1:{contrast:{reference:"bgFillInverted2",followDirection:"opposite",target:1.2}},bgFillInverted2:Kr,bgFillDark:{contrast:{reference:"surface3",followDirection:"darker",target:7,ignoreWhenAdjustingSeed:!0},lightness:Me,taperChromaOptions:K},stroke1:{contrast:{reference:"stroke3",followDirection:"opposite",target:2.9},taperChromaOptions:Ze},stroke2:{contrast:{reference:"stroke3",followDirection:"opposite",target:2.4},taperChromaOptions:Ze},stroke3:{contrast:{reference:"surface3",followDirection:"main",target:3},taperChromaOptions:Ze},stroke4:{contrast:{reference:"stroke3",followDirection:"main",target:1.5},taperChromaOptions:Ze},fgSurface1:{contrast:{reference:"surface3",followDirection:"main",target:2,preferLighter:!0},taperChromaOptions:K},fgSurface2:{contrast:{reference:"surface3",followDirection:"main",target:3,preferLighter:!0},taperChromaOptions:K},fgSurface3:{contrast:{reference:"surface3",followDirection:"main",target:4.5,preferLighter:!0},lightness:hn,taperChromaOptions:K},fgSurface4:Kr,fgFill:{contrast:{reference:"bgFill1",followDirection:"best",target:4.5,preferLighter:!0},lightness:Me,taperChromaOptions:K},fgFillInverted:{contrast:{reference:"bgFillInverted1",followDirection:"best",target:4.5,preferLighter:!0},lightness:Me,taperChromaOptions:K},fgFillDark:{contrast:{reference:"bgFillDark",followDirection:"best",target:4.5,preferLighter:!0},lightness:Me,taperChromaOptions:K}},Vr={...T,surface1:{...T.surface1,taperChromaOptions:ue},surface2:{contrast:{reference:"bgFill1",followDirection:"opposite",target:T.bgFill1.contrast.target,ignoreWhenAdjustingSeed:!0},taperChromaOptions:ue},surface3:{...T.surface3,taperChromaOptions:ue},surface4:{...T.surface4,taperChromaOptions:ue},surface5:{...T.surface5,taperChromaOptions:ue},surface6:{...T.surface6,taperChromaOptions:ue},bgFill1:{contrast:{reference:"seed",followDirection:"main",target:1}},stroke1:{...T.stroke1},stroke2:{...T.stroke2},stroke3:{...T.stroke3,sameAsIfPossible:"fgSurface3",taperChromaOptions:void 0},stroke4:{...T.stroke4,taperChromaOptions:void 0},fgSurface1:{...T.fgSurface1,taperChromaOptions:void 0},fgSurface2:{...T.fgSurface2,taperChromaOptions:void 0},fgSurface3:{...T.fgSurface3,taperChromaOptions:void 0,sameAsIfPossible:"bgFill1"},fgSurface4:{...T.fgSurface4,taperChromaOptions:void 0}};function eo(t){if(typeof t!="string"||t.trim()==="")throw new Error("Seed color must be a non-empty string");return Mt(t,T)}var Qr="surface2";function wn(t){return{mainDirection:t.direction,pinLightness:{stepName:Qr,value:qr(M(t.ramp[Qr],[S,"l"]),t.direction)}}}function to(t,e){if(typeof t!="string"||t.trim()==="")throw new Error("Seed color must be a non-empty string");let r=e?wn(e):void 0;return Mt(t,Vr,r)}var Cn=yt(eo,{maxSize:10}),yn=yt(to,{maxSize:10}),vn=[["--wp-components-color-accent","var(--wp-admin-theme-color)"],["--wp-components-color-accent-darker-10","var(--wp-admin-theme-color-darker-10)"],["--wp-components-color-accent-darker-20","var(--wp-admin-theme-color-darker-20)"],["--wp-components-color-accent-inverted","var(--wpds-color-foreground-interactive-brand-strong, #fff)"],["--wp-components-color-background","var(--wpds-color-background-surface-neutral-strong, #fff)"],["--wp-components-color-foreground","var(--wpds-color-foreground-content-neutral, #1e1e1e)"],["--wp-components-color-foreground-inverted","var(--wpds-color-background-surface-neutral, #fcfcfc)"],["--wp-components-color-gray-100","var(--wpds-color-background-surface-neutral, #fcfcfc)"],["--wp-components-color-gray-200","var(--wpds-color-stroke-surface-neutral, #dbdbdb)"],["--wp-components-color-gray-300","var(--wpds-color-stroke-surface-neutral, #dbdbdb)"],["--wp-components-color-gray-400","var(--wpds-color-stroke-interactive-neutral, #8d8d8d)"],["--wp-components-color-gray-600","var(--wpds-color-stroke-interactive-neutral, #8d8d8d)"],["--wp-components-color-gray-700","var(--wpds-color-foreground-content-neutral-weak, #707070)"],["--wp-components-color-gray-800","var(--wpds-color-foreground-content-neutral, #1e1e1e)"]];function Rt(t){return x(t,D).coords.map(r=>Math.round((r??0)*255)).join(", ")}function xn(t){m.register(D);let e=x(t,ve),r=e.coords[2]??0,o=$(F(e),[ve,"l"],Math.max(0,r-5)),n=$(F(e),[ve,"l"],Math.max(0,r-10));return[["--wp-admin-theme-color",ne(e)],["--wp-admin-theme-color--rgb",Rt(e)],["--wp-admin-theme-color-darker-10",ne(o)],["--wp-admin-theme-color-darker-10--rgb",Rt(o)],["--wp-admin-theme-color-darker-20",ne(n)],["--wp-admin-theme-color-darker-20--rgb",Rt(n)]]}function kn(t){let e=[];for(let[r,{ramp:o}]of t)for(let[n,s]of Object.entries(o)){let a=`${r}-${n}`,i=Pr[a]??[];for(let c of i)e.push([`--wpds-color-${c}`,s])}return e}function Sn({primary:t,computedColorRamps:e}){return Object.fromEntries([kn(e),xn(t),vn].flat())}function Ue({color:t={},cursor:e,cornerRadius:r}={}){let{resolvedSettings:o}=(0,me.useContext)(Ee),n=t.primary!==void 0||t.background!==void 0||o.color?.primary!==void 0||o.color?.background!==void 0,s=n?t.primary??o.color?.primary??ke.primary:void 0,a=n?t.background??o.color?.background??ke.background:void 0,i=e?.control??o.cursor?.control,c=r??o.cornerRadius??"subtle",l=(0,me.useMemo)(()=>({color:{primary:s,background:a},cursor:i?{control:i}:void 0,cornerRadius:c}),[s,a,i,c]),p=(0,me.useMemo)(()=>{if(s===void 0||a===void 0)return{};let f={...ke,background:a,primary:s},b=new Map,g=Cn(f.background);return Object.entries(f).forEach(([h,d])=>{h==="background"?b.set("bg",g):b.set(h,yn(d,g))}),Sn({primary:f.primary,computedColorRamps:b})},[s,a]),u=(0,me.useMemo)(()=>({...p,...i&&{"--wpds-cursor-control":i}}),[p,i]);return{resolvedSettings:l,themeProviderStyles:u}}var At=V(oo(),1),Lt="data-wp-hash";function Et(){let t=globalThis;return t.__wpStyleRuntime||(t.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Rn(document)),t.__wpStyleRuntime}function Mn(t,e){if(!t.head)return!1;for(let r of t.head.querySelectorAll(`style[${Lt}]`))if(r.getAttribute(Lt)===e)return!0;return!1}function ao(t,e,r){if(!t.head)return;let o=Et(),n=o.injectedStyles.get(t);if(n||(n=new Set,o.injectedStyles.set(t,n)),n.has(e))return;if(Mn(t,e)){n.add(e);return}let s=t.createElement("style");s.setAttribute(Lt,e),s.appendChild(t.createTextNode(r)),t.head.appendChild(s),n.add(e)}function Rn(t){let e=Et();e.documents.set(t,(e.documents.get(t)??0)+1);for(let[r,o]of e.styles)ao(t,r,o);return()=>{let r=e.documents.get(t);if(r!==void 0){if(r<=1){e.documents.delete(t);return}e.documents.set(t,r-1)}}}function Ln(t,e){let r=Et();r.styles.set(t,e);for(let o of r.documents.keys())ao(o,t,e)}typeof process>"u",Ln("f4e6e06c6a",".dba930ea7a9438fd__root{display:contents}");var An={root:"dba930ea7a9438fd__root"};var Ve=({children:t,color:e={},cursor:r,cornerRadius:o,isRoot:n=!1})=>{let{themeProviderStyles:s,resolvedSettings:a}=Ue({color:e,cursor:r,cornerRadius:o}),i=a.cornerRadius??"subtle",c=(0,Ke.useMemo)(()=>({resolvedSettings:a}),[a]),l=(0,Ke.useRef)(null);return(0,no.useIsomorphicLayoutEffect)(()=>{if(!n)return;let p=l.current?.ownerDocument;if(!p)return;let u=p.documentElement,f=new Map,b=[],g=u.getAttribute("data-wpds-root-provider"),h=u.getAttribute("data-wpds-corner-radius");u.setAttribute("data-wpds-root-provider","true"),u.setAttribute("data-wpds-corner-radius",i);for(let[d,w]of Object.entries(s))!d.startsWith("--")||w===null||w===void 0||(f.set(d,u.style.getPropertyValue(d)),u.style.setProperty(d,String(w)),b.push(d));return()=>{for(let d of b){let w=f.get(d);w?u.style.setProperty(d,w):u.style.removeProperty(d)}g===null?u.removeAttribute("data-wpds-root-provider"):u.setAttribute("data-wpds-root-provider",g),h===null?u.removeAttribute("data-wpds-corner-radius"):u.setAttribute("data-wpds-corner-radius",h)}},[i,n,s]),(0,At.jsx)("div",{ref:l,"data-wpds-root-provider":n||void 0,"data-wpds-corner-radius":i,className:An.root,style:s,children:(0,At.jsx)(Ee.Provider,{value:c,children:t})})};function so(t,e={}){(0,io.default)(`\`privateApis.${t}\` from \`@wordpress/theme\``,{since:"7.1",version:"7.3",...e})}var Ot={};Gt(Ot,{get ThemeProvider(){return so("ThemeProvider",{alternative:"`ThemeProvider` from `@wordpress/theme`"}),Ve},get useThemeProviderStyles(){return so("useThemeProviderStyles",{alternative:"`ThemeProvider` from `@wordpress/theme` for supported theming use cases",hint:"`useThemeProviderStyles` has no public replacement."}),Ue}});return yo(En);})(); (window.wp ||= {}).theme = wp.theme; })();
Save