'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkDCLFNJD3_cjs=require('../chunk-DCLFNJD3.cjs'),chunkZNT33DPT_cjs=require('../chunk-ZNT33DPT.cjs');require('../chunk-6FI7U3TH.cjs');var chunkVSMEJU4Z_cjs=require('../chunk-VSMEJU4Z.cjs');require('../chunk-2KB6V6KD.cjs');var chunkYISEJCI6_cjs=require('../chunk-YISEJCI6.cjs');var $=(o,n,t)=>chunkZNT33DPT_cjs.a(...chunkDCLFNJD3_cjs.q(o,n,t)),A=(o,n,t)=>{let[r,e,m]=chunkDCLFNJD3_cjs.p(o,n,t);return [chunkVSMEJU4Z_cjs.h(r),chunkVSMEJU4Z_cjs.h(e),chunkVSMEJU4Z_cjs.h(m)]},S=(o,n,t,r)=>{chunkDCLFNJD3_cjs.o(o,n,t,r),o[0]=chunkVSMEJU4Z_cjs.h(o[0]),o[1]=chunkVSMEJU4Z_cjs.h(o[1]),o[2]=chunkVSMEJU4Z_cjs.h(o[2]);},E=(o,n,t)=>A(...chunkDCLFNJD3_cjs.G(o,n,t)),q=(o,n,t,r)=>{chunkDCLFNJD3_cjs.H(o,n,t,r),S(o,o[0],o[1],o[2]);},I=Math.PI/180,R=(o,n,t)=>A(...chunkDCLFNJD3_cjs.O(o,n,t)),v=(o,n,t,r)=>{chunkDCLFNJD3_cjs.P(o,n,t,r),S(o,o[0],o[1],o[2]);},z=(o,n,t)=>{let r=t*I;return R(o,n*Math.cos(r),n*Math.sin(r))},H=(o,n,t,r)=>{let e=r*I;v(o,n,t*Math.cos(e),t*Math.sin(e));},J=o=>chunkDCLFNJD3_cjs.E(o,chunkDCLFNJD3_cjs.u),M=(o,n,t)=>{o.toGamutProphoto=r=>{let e=chunkDCLFNJD3_cjs.F(r,chunkDCLFNJD3_cjs.u,$);if(e===null)return new o(r);let[m,p,a]=e.linear,[k,F,G]=chunkDCLFNJD3_cjs.q(m,p,a);return o._makeFromLinearSrgb(k,F,G,e.alpha)},o.prototype.toProphoto=function(r=4){let{r:e,g:m,b:p,alpha:a}=chunkDCLFNJD3_cjs.r(this._rawRgb());return {r:chunkYISEJCI6_cjs.b(e,r),g:chunkYISEJCI6_cjs.b(m,r),b:chunkYISEJCI6_cjs.b(p,r),alpha:a,colorSpace:"prophoto-rgb"}},o.prototype.toProphotoString=function(r=4){let{r:e,g:m,b:p,alpha:a}=this.toProphoto(r);return a<1?`color(prophoto-rgb ${e} ${m} ${p} / ${a})`:`color(prophoto-rgb ${e} ${m} ${p})`},n.push(chunkDCLFNJD3_cjs.t,chunkDCLFNJD3_cjs.s),t.push([chunkDCLFNJD3_cjs.t,"prophoto-rgb"],[chunkDCLFNJD3_cjs.s,"prophoto-rgb"]);},K=M;exports.default=K;exports.inGamutProphoto=J;exports.labToProphotoChannels=R;exports.labToProphotoChannelsInto=v;exports.lchToProphotoChannels=z;exports.lchToProphotoChannelsInto=H;exports.linearToProphotoChannels=A;exports.linearToProphotoChannelsInto=S;exports.oklchToProphotoChannels=E;exports.oklchToProphotoChannelsInto=q;//# sourceMappingURL=prophoto.cjs.map
//# sourceMappingURL=prophoto.cjs.map