@vizbl/room-viewer 0.0.13 → 0.0.14
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.
|
@@ -1035,4 +1035,4 @@ No matching component was found for:
|
|
|
1035
1035
|
|
|
1036
1036
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
1037
1037
|
|
|
1038
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return tE.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Li=({contentRef:e,descriptionId:t})=>{let r=Lt("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return tE.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null};function Ln({...e}){return(0,tI.jsx)(DQ,{"data-slot":"dialog",...e})}function La({...e}){return(0,tI.jsx)(DW,{"data-slot":"dialog-portal",...e})}function Ls({...e}){return(0,tI.jsx)(D6,{"data-slot":"dialog-close",...e})}function Lo({className:e,...t}){return(0,tI.jsx)(DX,{"data-slot":"dialog-overlay",className:Pg("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Ll({className:e,children:t,showCloseButton:r=!0,portalContainer:i,...n}){return(0,tI.jsxs)(La,{"data-slot":"dialog-portal",container:i,children:[(0,tI.jsx)(Lo,{}),(0,tI.jsxs)(D$,{"data-slot":"dialog-content",className:Pg("bg-background-containers data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-6 rounded-3xl border-0 p-6 shadow-[var(--shadow-login)] duration-200 outline-none sm:max-w-120 sm:p-10",e),...n,children:[t,r&&(0,tI.jsxs)(D6,{"data-slot":"dialog-close",className:"focus-visible:ring-ring/30 absolute top-4 right-4 inline-flex size-6 items-center justify-center rounded-full text-icons-light transition-colors hover:text-icons-normal focus-visible:text-icons-dark focus-visible:ring-2 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[(0,tI.jsx)(ir,{className:"size-6"}),(0,tI.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function Lu({className:e,...t}){return(0,tI.jsx)("div",{"data-slot":"dialog-header",className:Pg("flex flex-col gap-2 text-left",e),...t})}function Lc({className:e,...t}){return(0,tI.jsx)(D3,{"data-slot":"dialog-title",className:Pg("typo-base-18 text-text-dark",e),...t})}function Ld({className:e,...t}){return(0,tI.jsx)(D5,{"data-slot":"dialog-description",className:Pg("typo-base-16 text-text-light",e),...t})}let Lh=(0,tE.createContext)({theme:"system",setTheme:()=>null});function Lp({children:e,defaultTheme:t="system",storageKey:r="vizbl-theme",root:i=window.document.documentElement,enableStorage:n=!1,...a}){let[s,o]=(0,tE.useState)(()=>n&&localStorage.getItem(r)||t);return(0,tE.useEffect)(()=>{if(i.classList.remove("light","dark"),"system"===s){let e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(e);return}i.classList.add(s)},[s,i]),(0,tI.jsx)(Lh,{...a,value:{theme:s,setTheme:e=>{n&&localStorage.setItem(r,e),o(e)}},children:e})}function Lf(e,t){return function(){return e.apply(t,arguments)}}let{toString:Lm}=Object.prototype,{getPrototypeOf:Lg}=Object,{iterator:Lv,toStringTag:LA}=Symbol,Lb=(el=Object.create(null),e=>{let t=Lm.call(e);return el[t]||(el[t]=t.slice(8,-1).toLowerCase())}),Ly=e=>(e=e.toLowerCase(),t=>Lb(t)===e),Lw=e=>t=>typeof t===e,{isArray:Lx}=Array,LC=Lw("undefined");function LS(e){return null!==e&&!LC(e)&&null!==e.constructor&&!LC(e.constructor)&&LM(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let LE=Ly("ArrayBuffer"),L_=Lw("string"),LM=Lw("function"),LI=Lw("number"),LT=e=>null!==e&&"object"==typeof e,LB=e=>{if("object"!==Lb(e))return!1;let t=Lg(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(LA in e)&&!(Lv in e)},LR=Ly("Date"),Lk=Ly("File"),LP=Ly("Blob"),LD=Ly("FileList"),LL=Ly("URLSearchParams"),[Lz,LF,LN,LO]=["ReadableStream","Request","Response","Headers"].map(Ly);function LU(e,t,{allOwnKeys:r=!1}={}){let i,n;if(null!=e)if("object"!=typeof e&&(e=[e]),Lx(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{let n;if(LS(e))return;let a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;for(i=0;i<s;i++)n=a[i],t.call(null,e[n],n,e)}}function LQ(e,t){let r;if(LS(e))return null;t=t.toLowerCase();let i=Object.keys(e),n=i.length;for(;n-- >0;)if(t===(r=i[n]).toLowerCase())return r;return null}let LH="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,LG=e=>!LC(e)&&e!==LH,Lj=(eu="undefined"!=typeof Uint8Array&&Lg(Uint8Array),e=>eu&&e instanceof eu),LV=Ly("HTMLFormElement"),LW=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Lq=Ly("RegExp"),LX=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),i={};LU(r,(r,n)=>{let a;!1!==(a=t(r,n,e))&&(i[n]=a||r)}),Object.defineProperties(e,i)},LJ=Ly("AsyncFunction"),LK=(eA="function"==typeof setImmediate,eb=LM(LH.postMessage),eA?setImmediate:eb?(ey=`axios@${Math.random()}`,ew=[],LH.addEventListener("message",({source:e,data:t})=>{e===LH&&t===ey&&ew.length&&ew.shift()()},!1),e=>{ew.push(e),LH.postMessage(ey,"*")}):e=>setTimeout(e)),LY="undefined"!=typeof queueMicrotask?queueMicrotask.bind(LH):"undefined"!=typeof process&&process.nextTick||LK,L$={isArray:Lx,isArrayBuffer:LE,isBuffer:LS,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||LM(e.append)&&("formdata"===(t=Lb(e))||"object"===t&&LM(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&LE(e.buffer)},isString:L_,isNumber:LI,isBoolean:e=>!0===e||!1===e,isObject:LT,isPlainObject:LB,isEmptyObject:e=>{if(!LT(e)||LS(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Lz,isRequest:LF,isResponse:LN,isHeaders:LO,isUndefined:LC,isDate:LR,isFile:Lk,isBlob:LP,isRegExp:Lq,isFunction:LM,isStream:e=>LT(e)&&LM(e.pipe),isURLSearchParams:LL,isTypedArray:Lj,isFileList:LD,forEach:LU,merge:function e(){let{caseless:t,skipUndefined:r}=LG(this)&&this||{},i={},n=(n,a)=>{let s=t&&LQ(i,a)||a;LB(i[s])&&LB(n)?i[s]=e(i[s],n):LB(n)?i[s]=e({},n):Lx(n)?i[s]=n.slice():r&&LC(n)||(i[s]=n)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&LU(arguments[e],n);return i},extend:(e,t,r,{allOwnKeys:i}={})=>(LU(t,(t,i)=>{r&&LM(t)?e[i]=Lf(t,r):e[i]=t},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let n,a,s,o={};if(t=t||{},null==e)return t;do{for(a=(n=Object.getOwnPropertyNames(e)).length;a-- >0;)s=n[a],(!i||i(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=!1!==r&&Lg(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Lb,kindOfTest:Ly,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let i=e.indexOf(t,r);return -1!==i&&i===r},toArray:e=>{if(!e)return null;if(Lx(e))return e;let t=e.length;if(!LI(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,i=(e&&e[Lv]).call(e);for(;(r=i.next())&&!r.done;){let i=r.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let r,i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:LV,hasOwnProperty:LW,hasOwnProp:LW,reduceDescriptors:LX,freezeMethods:e=>{LX(e,(t,r)=>{if(LM(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(LM(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(Lx(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:LQ,global:LH,isContextDefined:LG,isSpecCompliantForm:function(e){return!!(e&&LM(e.append)&&"FormData"===e[LA]&&e[Lv])},toJSONObject:e=>{let t=Array(10),r=(e,i)=>{if(LT(e)){if(t.indexOf(e)>=0)return;if(LS(e))return e;if(!("toJSON"in e)){t[i]=e;let n=Lx(e)?[]:{};return LU(e,(e,t)=>{let a=r(e,i+1);LC(a)||(n[t]=a)}),t[i]=void 0,n}}return e};return r(e,0)},isAsyncFn:LJ,isThenable:e=>e&&(LT(e)||LM(e))&&LM(e.then)&&LM(e.catch),setImmediate:LK,asap:LY,isIterable:e=>null!=e&&LM(e[Lv])};function LZ(e,t,r,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n,this.status=n.status?n.status:null)}L$.inherits(LZ,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L$.toJSONObject(this.config),code:this.code,status:this.status}}});let L0=LZ.prototype,L1={};function L2(e){return L$.isPlainObject(e)||L$.isArray(e)}function L3(e){return L$.endsWith(e,"[]")?e.slice(0,-2):e}function L4(e,t,r){return e?e.concat(t).map(function(e,t){return e=L3(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{L1[e]={value:e}}),Object.defineProperties(LZ,L1),Object.defineProperty(L0,"isAxiosError",{value:!0}),LZ.from=(e,t,r,i,n,a)=>{let s=Object.create(L0);L$.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);let o=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return LZ.call(s,o,l,r,i,n),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};let L5=L$.toFlatObject(L$,{},null,function(e){return/^is[A-Z]/.test(e)}),L8=function(e,t,r){if(!L$.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(r=L$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!L$.isUndefined(t[e])})).metaTokens,n=r.visitor||u,a=r.dots,s=r.indexes,o=(r.Blob||"undefined"!=typeof Blob&&Blob)&&L$.isSpecCompliantForm(t);if(!L$.isFunction(n))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(L$.isDate(e))return e.toISOString();if(L$.isBoolean(e))return e.toString();if(!o&&L$.isBlob(e))throw new LZ("Blob is not supported. Use a Buffer instead.");return L$.isArrayBuffer(e)||L$.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,n){let o=e;if(e&&!n&&"object"==typeof e)if(L$.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(L$.isArray(e)&&(u=e,L$.isArray(u)&&!u.some(L2))||(L$.isFileList(e)||L$.endsWith(r,"[]"))&&(o=L$.toArray(e)))return r=L3(r),o.forEach(function(e,i){L$.isUndefined(e)||null===e||t.append(!0===s?L4([r],i,a):null===s?r:r+"[]",l(e))}),!1}return!!L2(e)||(t.append(L4(n,r,a),l(e)),!1)}let c=[],d=Object.assign(L5,{defaultVisitor:u,convertValue:l,isVisitable:L2});if(!L$.isObject(e))throw TypeError("data must be an object");return!function e(r,i){if(!L$.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+i.join("."));c.push(r),L$.forEach(r,function(r,a){!0===(!(L$.isUndefined(r)||null===r)&&n.call(t,r,L$.isString(a)?a.trim():a,i,d))&&e(r,i?i.concat(a):[a])}),c.pop()}}(e),t};function L6(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function L9(e,t){this._pairs=[],e&&L8(e,this,t)}let L7=L9.prototype;function ze(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zt(e,t,r){let i;if(!t)return e;let n=r&&r.encode||ze;L$.isFunction(r)&&(r={serialize:r});let a=r&&r.serialize;if(i=a?a(t,r):L$.isURLSearchParams(t)?t.toString():new L9(t,r).toString(n)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}L7.append=function(e,t){this._pairs.push([e,t])},L7.toString=function(e){let t=e?function(t){return e.call(this,t,L6)}:L6;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let zr=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){L$.forEach(this.handlers,function(t){null!==t&&e(t)})}},zi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zn="undefined"!=typeof URLSearchParams?URLSearchParams:L9,za="undefined"!=typeof FormData?FormData:null,zs="undefined"!=typeof Blob?Blob:null,zo="undefined"!=typeof window&&"undefined"!=typeof document,zl="object"==typeof navigator&&navigator||void 0,zu=zo&&(!zl||0>["ReactNative","NativeScript","NS"].indexOf(zl.product)),zc="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,zd=zo&&window.location.href||"http://localhost",zh={...ku,isBrowser:!0,classes:{URLSearchParams:zn,FormData:za,Blob:zs},protocols:["http","https","file","blob","url","data"]},zp=function(e){if(L$.isFormData(e)&&L$.isFunction(e.entries)){let t={};return L$.forEachEntry(e,(e,r)=>{!function e(t,r,i,n){let a=t[n++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),o=n>=t.length;return(a=!a&&L$.isArray(i)?i.length:a,o)?L$.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r:(i[a]&&L$.isObject(i[a])||(i[a]=[]),e(t,r,i[a],n)&&L$.isArray(i[a])&&(i[a]=function(e){let t,r,i={},n=Object.keys(e),a=n.length;for(t=0;t<a;t++)i[r=n[t]]=e[r];return i}(i[a]))),!s}(L$.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},zf={transitional:zi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,i=t.getContentType()||"",n=i.indexOf("application/json")>-1,a=L$.isObject(e);if(a&&L$.isHTMLForm(e)&&(e=new FormData(e)),L$.isFormData(e))return n?JSON.stringify(zp(e)):e;if(L$.isArrayBuffer(e)||L$.isBuffer(e)||L$.isStream(e)||L$.isFile(e)||L$.isBlob(e)||L$.isReadableStream(e))return e;if(L$.isArrayBufferView(e))return e.buffer;if(L$.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1){var s,o;return(s=e,o=this.formSerializer,L8(s,new zh.classes.URLSearchParams,{visitor:function(e,t,r,i){return zh.isNode&&L$.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...o})).toString()}if((r=L$.isFileList(e))||i.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return L8(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(a||n){t.setContentType("application/json",!1);var l=e;if(L$.isString(l))try{return(0,JSON.parse)(l),L$.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||zf.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(L$.isResponse(e)||L$.isReadableStream(e))return e;if(e&&L$.isString(e)&&(r&&!this.responseType||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw LZ.from(e,LZ.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zh.classes.FormData,Blob:zh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L$.forEach(["delete","get","head","post","put","patch"],e=>{zf.headers[e]={}});let zm=L$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zg=Symbol("internals");function zv(e){return e&&String(e).trim().toLowerCase()}function zA(e){return!1===e||null==e?e:L$.isArray(e)?e.map(zA):String(e)}function zb(e,t,r,i,n){if(L$.isFunction(i))return i.call(this,t,r);if(n&&(t=r),L$.isString(t)){if(L$.isString(i))return -1!==t.indexOf(i);if(L$.isRegExp(i))return i.test(t)}}ty=Symbol.iterator,tw=Symbol.toStringTag;class zy{constructor(e){e&&this.set(e)}set(e,t,r){let i=this;function n(e,t,r){let n=zv(t);if(!n)throw Error("header name must be a non-empty string");let a=L$.findKey(i,n);a&&void 0!==i[a]&&!0!==r&&(void 0!==r||!1===i[a])||(i[a||t]=zA(e))}let a=(e,t)=>L$.forEach(e,(e,r)=>n(e,r,t));if(L$.isPlainObject(e)||e instanceof this.constructor)a(e,t);else{let i;if(L$.isString(e)&&(e=e.trim())&&(i=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim()))){var s;let r,i,n,o;a((o={},(s=e)&&s.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),i=e.substring(n+1).trim(),!r||o[r]&&zm[r]||("set-cookie"===r?o[r]?o[r].push(i):o[r]=[i]:o[r]=o[r]?o[r]+", "+i:i)}),o),t)}else if(L$.isObject(e)&&L$.isIterable(e)){let r={},i,n;for(let t of e){if(!L$.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[n=t[0]]=(i=r[n])?L$.isArray(i)?[...i,t[1]]:[i,t[1]]:t[1]}a(r,t)}else null!=e&&n(t,e,r)}return this}get(e,t){if(e=zv(e)){let r=L$.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)r[t[1]]=t[2];return r}if(L$.isFunction(t))return t.call(this,e,r);if(L$.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=zv(e)){let r=L$.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||zb(this,this[r],r,t)))}return!1}delete(e,t){let r=this,i=!1;function n(e){if(e=zv(e)){let n=L$.findKey(r,e);n&&(!t||zb(r,r[n],n,t))&&(delete r[n],i=!0)}}return L$.isArray(e)?e.forEach(n):n(e),i}clear(e){let t=Object.keys(this),r=t.length,i=!1;for(;r--;){let n=t[r];(!e||zb(this,this[n],n,e,!0))&&(delete this[n],i=!0)}return i}normalize(e){let t=this,r={};return L$.forEach(this,(i,n)=>{let a=L$.findKey(r,n);if(a){t[a]=zA(i),delete t[n];return}let s=e?n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(n).trim();s!==n&&delete t[n],t[s]=zA(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return L$.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&L$.isArray(r)?r.join(", "):r)}),t}[ty](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[tw](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[zg]=this[zg]={accessors:{}}).accessors,r=this.prototype;function i(e){let i=zv(e);if(!t[i]){let n;n=L$.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+n,{value:function(r,i,n){return this[t].call(this,e,r,i,n)},configurable:!0})}),t[i]=!0}}return L$.isArray(e)?e.forEach(i):i(e),this}}function zw(e,t){let r=this||zf,i=t||r,n=zy.from(i.headers),a=i.data;return L$.forEach(e,function(e){a=e.call(r,a,n.normalize(),t?t.status:void 0)}),n.normalize(),a}function zx(e){return!!(e&&e.__CANCEL__)}function zC(e,t,r){LZ.call(this,null==e?"canceled":e,LZ.ERR_CANCELED,t,r),this.name="CanceledError"}function zS(e,t,r){let i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new LZ("Request failed with status code "+r.status,[LZ.ERR_BAD_REQUEST,LZ.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}zy.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),L$.reduceDescriptors(zy.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),L$.freezeMethods(zy),L$.inherits(zC,LZ,{__CANCEL__:!0});let zE=function(e,t){let r,i=Array(e=e||10),n=Array(e),a=0,s=0;return t=void 0!==t?t:1e3,function(o){let l=Date.now(),u=n[s];r||(r=l),i[a]=o,n[a]=l;let c=s,d=0;for(;c!==a;)d+=i[c++],c%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),l-r<t)return;let h=u&&l-u;return h?Math.round(1e3*d/h):void 0}},z_=function(e,t){let r,i,n=0,a=1e3/t,s=(t,a=Date.now())=>{n=a,r=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),o=t-n;o>=a?s(e,t):(r=e,i||(i=setTimeout(()=>{i=null,s(r)},a-o)))},()=>r&&s(r)]},zM=(e,t,r=3)=>{let i=0,n=zE(50,250);return z_(r=>{let a=r.loaded,s=r.lengthComputable?r.total:void 0,o=a-i,l=n(o);i=a,e({loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&a<=s?(s-a)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},zI=(e,t)=>{let r=null!=e;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},zT=e=>(...t)=>L$.asap(()=>e(...t)),zB=zh.hasStandardBrowserEnv?(ec=new URL(zh.origin),ed=zh.navigator&&/(msie|trident)/i.test(zh.navigator.userAgent),e=>(e=new URL(e,zh.origin),ec.protocol===e.protocol&&ec.host===e.host&&(ed||ec.port===e.port))):()=>!0,zR=zh.hasStandardBrowserEnv?{write(e,t,r,i,n,a,s){if("undefined"==typeof document)return;let o=[`${e}=${encodeURIComponent(t)}`];L$.isNumber(r)&&o.push(`expires=${new Date(r).toUTCString()}`),L$.isString(i)&&o.push(`path=${i}`),L$.isString(n)&&o.push(`domain=${n}`),!0===a&&o.push("secure"),L$.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function zk(e,t,r){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(i||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let zP=e=>e instanceof zy?{...e}:e;function zD(e,t){t=t||{};let r={};function i(e,t,r,i){return L$.isPlainObject(e)&&L$.isPlainObject(t)?L$.merge.call({caseless:i},e,t):L$.isPlainObject(t)?L$.merge({},t):L$.isArray(t)?t.slice():t}function n(e,t,r,n){return L$.isUndefined(t)?L$.isUndefined(e)?void 0:i(void 0,e,r,n):i(e,t,r,n)}function a(e,t){if(!L$.isUndefined(t))return i(void 0,t)}function s(e,t){return L$.isUndefined(t)?L$.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function o(r,n,a){return a in t?i(r,n):a in e?i(void 0,r):void 0}let l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(e,t,r)=>n(zP(e),zP(t),r,!0)};return L$.forEach(Object.keys({...e,...t}),function(i){let a=l[i]||n,s=a(e[i],t[i],i);L$.isUndefined(s)&&a!==o||(r[i]=s)}),r}let zL=e=>{let t=zD({},e),{data:r,withXSRFToken:i,xsrfHeaderName:n,xsrfCookieName:a,headers:s,auth:o}=t;if(t.headers=s=zy.from(s),t.url=zt(zk(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),L$.isFormData(r)){if(zh.hasStandardBrowserEnv||zh.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(L$.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}}if(zh.hasStandardBrowserEnv&&(i&&L$.isFunction(i)&&(i=i(t)),i||!1!==i&&zB(t.url))){let e=n&&a&&zR.read(a);e&&s.set(n,e)}return t},zz="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){var i;let n,a,s,o,l,u,c=zL(e),d=c.data,h=zy.from(c.headers).normalize(),{responseType:p,onUploadProgress:f,onDownloadProgress:m}=c;function g(){o&&o(),l&&l(),c.cancelToken&&c.cancelToken.unsubscribe(n),c.signal&&c.signal.removeEventListener("abort",n)}let v=new XMLHttpRequest;function A(){if(!v)return;let i=zy.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());zS(function(e){t(e),g()},function(e){r(e),g()},{data:p&&"text"!==p&&"json"!==p?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:i,config:e,request:v}),v=null}v.open(c.method.toUpperCase(),c.url,!0),v.timeout=c.timeout,"onloadend"in v?v.onloadend=A:v.onreadystatechange=function(){!v||4!==v.readyState||(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(A)},v.onabort=function(){v&&(r(new LZ("Request aborted",LZ.ECONNABORTED,e,v)),v=null)},v.onerror=function(t){let i=new LZ(t&&t.message?t.message:"Network Error",LZ.ERR_NETWORK,e,v);i.event=t||null,r(i),v=null},v.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",i=c.transitional||zi;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),r(new LZ(t,i.clarifyTimeoutError?LZ.ETIMEDOUT:LZ.ECONNABORTED,e,v)),v=null},void 0===d&&h.setContentType(null),"setRequestHeader"in v&&L$.forEach(h.toJSON(),function(e,t){v.setRequestHeader(t,e)}),L$.isUndefined(c.withCredentials)||(v.withCredentials=!!c.withCredentials),p&&"json"!==p&&(v.responseType=c.responseType),m&&([s,l]=zM(m,!0),v.addEventListener("progress",s)),f&&v.upload&&([a,o]=zM(f),v.upload.addEventListener("progress",a),v.upload.addEventListener("loadend",o)),(c.cancelToken||c.signal)&&(n=t=>{v&&(r(!t||t.type?new zC(null,e,v):t),v.abort(),v=null)},c.cancelToken&&c.cancelToken.subscribe(n),c.signal&&(c.signal.aborted?n():c.signal.addEventListener("abort",n)));let b=(i=c.url,(u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i))&&u[1]||"");b&&-1===zh.protocols.indexOf(b)?r(new LZ("Unsupported protocol "+b+":",LZ.ERR_BAD_REQUEST,e)):v.send(d||null)})},zF=function*(e,t){let r,i=e.byteLength;if(!t||i<t)return void(yield e);let n=0;for(;n<i;)r=n+t,yield e.slice(n,r),n=r},zN=async function*(e,t){for await(let r of zO(e))yield*zF(r,t)},zO=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},zU=(e,t,r,i)=>{let n,a=zN(e,t),s=0,o=e=>{!n&&(n=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await a.next();if(t){o(),e.close();return}let n=i.byteLength;if(r){let e=s+=n;r(e)}e.enqueue(new Uint8Array(i))}catch(e){throw o(e),e}},cancel:e=>(o(e),a.return())},{highWaterMark:2})},{isFunction:zQ}=L$,zH=(({Request:e,Response:t})=>({Request:e,Response:t}))(L$.global),{ReadableStream:zG,TextEncoder:zj}=L$.global,zV=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},zW=e=>{let t,{fetch:r,Request:i,Response:n}=e=L$.merge.call({skipUndefined:!0},zH,e),a=r?zQ(r):"function"==typeof fetch,s=zQ(i),o=zQ(n);if(!a)return!1;let l=a&&zQ(zG),u=a&&("function"==typeof zj?(t=new zj,e=>t.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer())),c=s&&l&&zV(()=>{let e=!1,t=new i(zh.origin,{body:new zG,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=o&&l&&zV(()=>L$.isReadableStream(new n("").body)),h={stream:d&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,r)=>{let i=t&&t[e];if(i)return i.call(t);throw new LZ(`Response type '${e}' is not supported`,LZ.ERR_NOT_SUPPORT,r)})});let p=async e=>{if(null==e)return 0;if(L$.isBlob(e))return e.size;if(L$.isSpecCompliantForm(e)){let t=new i(zh.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return L$.isArrayBufferView(e)||L$.isArrayBuffer(e)?e.byteLength:(L$.isURLSearchParams(e)&&(e+=""),L$.isString(e))?(await u(e)).byteLength:void 0},f=async(e,t)=>{let r=L$.toFiniteNumber(e.getContentLength());return null==r?p(t):r};return async e=>{let t,{url:a,method:o,data:l,signal:u,cancelToken:p,timeout:m,onDownloadProgress:g,onUploadProgress:v,responseType:A,headers:b,withCredentials:y="same-origin",fetchOptions:w}=zL(e),x=r||fetch;A=A?(A+"").toLowerCase():"text";let C=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,i=new AbortController,n=function(e){if(!r){r=!0,s();let t=e instanceof Error?e:this.reason;i.abort(t instanceof LZ?t:new zC(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,n(new LZ(`timeout ${t} of ms exceeded`,LZ.ETIMEDOUT))},t),s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));let{signal:o}=i;return o.unsubscribe=()=>L$.asap(s),o}})([u,p&&p.toAbortSignal()],m),S=null,E=C&&C.unsubscribe&&(()=>{C.unsubscribe()});try{if(v&&c&&"get"!==o&&"head"!==o&&0!==(t=await f(b,l))){let e,r=new i(a,{method:"POST",body:l,duplex:"half"});if(L$.isFormData(l)&&(e=r.headers.get("content-type"))&&b.setContentType(e),r.body){let[e,i]=zI(t,zM(zT(v)));l=zU(r.body,65536,e,i)}}L$.isString(y)||(y=y?"include":"omit");let r=s&&"credentials"in i.prototype,u={...w,signal:C,method:o.toUpperCase(),headers:b.normalize().toJSON(),body:l,duplex:"half",credentials:r?y:void 0};S=s&&new i(a,u);let p=await (s?x(S,w):x(a,u)),m=d&&("stream"===A||"response"===A);if(d&&(g||m&&E)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});let t=L$.toFiniteNumber(p.headers.get("content-length")),[r,i]=g&&zI(t,zM(zT(g),!0))||[];p=new n(zU(p.body,65536,r,()=>{i&&i(),E&&E()}),e)}A=A||"text";let _=await h[L$.findKey(h,A)||"text"](p,e);return!m&&E&&E(),await new Promise((t,r)=>{zS(t,r,{data:_,headers:zy.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:S})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new LZ("Network Error",LZ.ERR_NETWORK,e,S),{cause:t.cause||t});throw LZ.from(t,t&&t.code,e,S)}}},zq=new Map,zX=e=>{let t=e&&e.env||{},{fetch:r,Request:i,Response:n}=t,a=[i,n,r],s=a.length,o,l,u=zq;for(;s--;)o=a[s],void 0===(l=u.get(o))&&u.set(o,l=s?new Map:zW(t)),u=l;return l};zX();let zJ={http:null,xhr:zz,fetch:{get:zX}};L$.forEach(zJ,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let zK=e=>`- ${e}`,zY=e=>L$.isFunction(e)||null===e||!1===e,z$=function(e,t){let r,i,{length:n}=e=L$.isArray(e)?e:[e],a={};for(let s=0;s<n;s++){let n;if(i=r=e[s],!zY(r)&&void 0===(i=zJ[(n=String(r)).toLowerCase()]))throw new LZ(`Unknown adapter '${n}'`);if(i&&(L$.isFunction(i)||(i=i.get(t))))break;a[n||"#"+s]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new LZ("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(zK).join("\n"):" "+zK(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function zZ(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zC(null,e)}function z0(e){return zZ(e),e.headers=zy.from(e.headers),e.data=zw.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),z$(e.adapter||zf.adapter,e)(e).then(function(t){return zZ(e),t.data=zw.call(e,e.transformResponse,t),t.headers=zy.from(t.headers),t},function(t){return!zx(t)&&(zZ(e),t&&t.response&&(t.response.data=zw.call(e,e.transformResponse,t.response),t.response.headers=zy.from(t.response.headers))),Promise.reject(t)})}let z1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{z1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let z2={};z1.transitional=function(e,t,r){function i(e,t){return"[Axios v1.13.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,a)=>{if(!1===e)throw new LZ(i(n," has been removed"+(t?" in "+t:"")),LZ.ERR_DEPRECATED);return t&&!z2[n]&&(z2[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},z1.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let z3=function(e,t,r){if("object"!=typeof e)throw new LZ("options must be an object",LZ.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),n=i.length;for(;n-- >0;){let a=i[n],s=t[a];if(s){let t=e[a],r=void 0===t||s(t,a,e);if(!0!==r)throw new LZ("option "+a+" must be "+r,LZ.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new LZ("Unknown option "+a,LZ.ERR_BAD_OPTION)}};class z4{constructor(e){this.defaults=e||{},this.interceptors={request:new zr,response:new zr}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:a,headers:s}=t=zD(this.defaults,t);void 0!==n&&z3(n,{silentJSONParsing:z1.transitional(z1.boolean),forcedJSONParsing:z1.transitional(z1.boolean),clarifyTimeoutError:z1.transitional(z1.boolean)},!1),null!=a&&(L$.isFunction(a)?t.paramsSerializer={serialize:a}:z3(a,{encode:z1.function,serialize:z1.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),z3(t,{baseUrl:z1.spelling("baseURL"),withXsrfToken:z1.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&L$.merge(s.common,s[t.method]);s&&L$.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=zy.concat(o,s);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[z0.bind(this),void 0];for(e.unshift(...l),e.push(...c),i=e.length,r=Promise.resolve(t);d<i;)r=r.then(e[d++],e[d++]);return r}i=l.length;let h=t;for(;d<i;){let e=l[d++],t=l[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{r=z0.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,i=c.length;d<i;)r=r.then(c[d++],c[d++]);return r}getUri(e){return zt(zk((e=zD(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}L$.forEach(["delete","get","head","options"],function(e){z4.prototype[e]=function(t,r){return this.request(zD(r||{},{method:e,url:t,data:(r||{}).data}))}}),L$.forEach(["post","put","patch"],function(e){function t(t){return function(r,i,n){return this.request(zD(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}z4.prototype[e]=t(),z4.prototype[e+"Form"]=t(!0)});class z5{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,n){r.reason||(r.reason=new zC(e,i,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new z5(function(t){e=t}),cancel:e}}}let z8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(z8).forEach(([e,t])=>{z8[t]=e});let z6=function e(t){let r=new z4(t),i=Lf(z4.prototype.request,r);return L$.extend(i,z4.prototype,r,{allOwnKeys:!0}),L$.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(zD(t,r))},i}(zf);z6.Axios=z4,z6.CanceledError=zC,z6.CancelToken=z5,z6.isCancel=zx,z6.VERSION="1.13.2",z6.toFormData=L8,z6.AxiosError=LZ,z6.Cancel=z6.CanceledError,z6.all=function(e){return Promise.all(e)},z6.spread=function(e){return function(t){return e.apply(null,t)}},z6.isAxiosError=function(e){return L$.isObject(e)&&!0===e.isAxiosError},z6.mergeConfig=zD,z6.AxiosHeaders=zy,z6.formToJSON=e=>zp(L$.isHTMLForm(e)?new FormData(e):e),z6.getAdapter=z$,z6.HttpStatusCode=z8,z6.default=z6;let{Axios:z9,AxiosError:z7,CanceledError:Fe,isCancel:Ft,CancelToken:Fr,VERSION:Fi,all:Fn,Cancel:Fa,isAxiosError:Fs,spread:Fo,toFormData:Fl,AxiosHeaders:Fu,HttpStatusCode:Fc,formToJSON:Fd,getAdapter:Fh,mergeConfig:Fp}=z6;function Ff(){return z6.create({baseURL:"https://api.vizbl.us",timeout:3e4})}let Fm=Ff(),Fg=Ff();async function Fv(e,t){var r;let i,n=function(e,t){var r;let i;if(void 0===t.data||(r=t.data,"undefined"!=typeof FormData&&r instanceof FormData||null!==r&&"object"==typeof r&&(r.constructor?.name==="FormData"||"function"==typeof r.getBoundary)))return t;let n=Fu.from(t.headers);return n.has("Content-Type")||void 0!==(i=e.defaults.headers.common)&&Fu.from(i).has("Content-Type")||n.set("Content-Type","application/json"),t.headers=n,t}(e,(r={...t},i=Fu.from(r.headers),r.headers=i,r));try{return await e.request(n)}catch(e){throw e}}async function FA(e){return Fv(e.skipUnauthorizedRecovery?Fg:Fm,function(e){let{skipUnauthorizedRecovery:t,...r}=e;return r}(e))}async function Fb(e){return FA(e)}async function Fy(e,t={}){let{client:r=Fb,...i}=t;return(await r({method:"POST",url:"/obj/Fetch",data:e,...i})).data}var Fw=tE.forwardRef((e,t)=>(0,tI.jsx)(Pk.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));function Fx({className:e,...t}){return(0,tI.jsx)(Fw,{"data-slot":"label",className:Pg("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function FC({className:e,...t}){return(0,tI.jsx)("div",{"data-slot":"field-group",className:Pg("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}Fw.displayName="Label";let FS=PA("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function FE({className:e,orientation:t="vertical",...r}){return(0,tI.jsx)("div",{role:"group","data-slot":"field","data-orientation":t,className:Pg(FS({orientation:t}),e),...r})}function F_({className:e,...t}){return(0,tI.jsx)(Fx,{"data-slot":"field-label",className:Pg("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}function FM({className:e,...t}){return(0,tI.jsx)("div",{"data-slot":"field-label",className:Pg("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",e),...t})}function FI(e,[t,r]){return Math.min(r,Math.max(t,e))}function FT(e){let t=e+"CollectionProvider",[r,i]=Px(t),[n,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,i=tE.useRef(null),a=tE.useRef(new Map).current;return(0,tI.jsx)(n,{scope:t,itemMap:a,collectionRef:i,children:r})};s.displayName=t;let o=e+"CollectionSlot",l=PT(o),u=tE.forwardRef((e,t)=>{let{scope:r,children:i}=e,n=kh(t,a(o,r).collectionRef);return(0,tI.jsx)(l,{ref:n,children:i})});u.displayName=o;let c=e+"CollectionItemSlot",d="data-radix-collection-item",h=PT(c),p=tE.forwardRef((e,t)=>{let{scope:r,children:i,...n}=e,s=tE.useRef(null),o=kh(t,s),l=a(c,r);return tE.useEffect(()=>(l.itemMap.set(s,{ref:s,...n}),()=>void l.itemMap.delete(s))),(0,tI.jsx)(h,{...{[d]:""},ref:o,children:i})});return p.displayName=c,[{Provider:s,Slot:u,ItemSlot:p},function(t){let r=a(e+"CollectionConsumer",t);return tE.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},i]}var FB=tE.createContext(void 0);function FR(e){let t=tE.useContext(FB);return e||t||"ltr"}let Fk=["top","right","bottom","left"],FP=Math.min,FD=Math.max,FL=Math.round,Fz=Math.floor,FF=e=>({x:e,y:e}),FN={left:"right",right:"left",bottom:"top",top:"bottom"},FO={start:"end",end:"start"};function FU(e,t){return"function"==typeof e?e(t):e}function FQ(e){return e.split("-")[0]}function FH(e){return e.split("-")[1]}function FG(e){return"x"===e?"y":"x"}function Fj(e){return"y"===e?"height":"width"}let FV=new Set(["top","bottom"]);function FW(e){return FV.has(FQ(e))?"y":"x"}function Fq(e){return e.replace(/start|end/g,e=>FO[e])}let FX=["left","right"],FJ=["right","left"],FK=["top","bottom"],FY=["bottom","top"];function F$(e){return e.replace(/left|right|bottom|top/g,e=>FN[e])}function FZ(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function F0(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function F1(e,t,r){let i,{reference:n,floating:a}=e,s=FW(t),o=FG(FW(t)),l=Fj(o),u=FQ(t),c="y"===s,d=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,p=n[l]/2-a[l]/2;switch(u){case"top":i={x:d,y:n.y-a.height};break;case"bottom":i={x:d,y:n.y+n.height};break;case"right":i={x:n.x+n.width,y:h};break;case"left":i={x:n.x-a.width,y:h};break;default:i={x:n.x,y:n.y}}switch(FH(t)){case"start":i[o]-=p*(r&&c?-1:1);break;case"end":i[o]+=p*(r&&c?-1:1)}return i}let F2=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,o=a.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:c,y:d}=F1(u,i,l),h=i,p={},f=0;for(let r=0;r<o.length;r++){let{name:a,fn:m}=o[r],{x:g,y:v,data:A,reset:b}=await m({x:c,y:d,initialPlacement:i,placement:h,strategy:n,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,p={...p,[a]:{...p[a],...A}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:n}):b.rects),{x:c,y:d}=F1(u,h,l)),r=-1)}return{x:c,y:d,placement:h,strategy:n,middlewareData:p}};async function F3(e,t){var r;void 0===t&&(t={});let{x:i,y:n,platform:a,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=FU(t,e),f=FZ(p),m=o[h?"floating"===d?"reference":"floating":d],g=F0(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(m)))||r?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,A=await (null==a.getOffsetParent?void 0:a.getOffsetParent(o.floating)),b=await (null==a.isElement?void 0:a.isElement(A))&&await (null==a.getScale?void 0:a.getScale(A))||{x:1,y:1},y=F0(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:A,strategy:l}):v);return{top:(g.top-y.top+f.top)/b.y,bottom:(y.bottom-g.bottom+f.bottom)/b.y,left:(g.left-y.left+f.left)/b.x,right:(y.right-g.right+f.right)/b.x}}function F4(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function F5(e){return Fk.some(t=>e[t]>=0)}let F8=new Set(["left","top"]);async function F6(e,t){let{placement:r,platform:i,elements:n}=e,a=await (null==i.isRTL?void 0:i.isRTL(n.floating)),s=FQ(r),o=FH(r),l="y"===FW(r),u=F8.has(s)?-1:1,c=a&&l?-1:1,d=FU(t,e),{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&"number"==typeof f&&(p="end"===o?-1*f:f),l?{x:p*c,y:h*u}:{x:h*u,y:p*c}}function F9(){return"undefined"!=typeof window}function F7(e){return Nr(e)?(e.nodeName||"").toLowerCase():"#document"}function Ne(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Nt(e){var t;return null==(t=(Nr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Nr(e){return!!F9()&&(e instanceof Node||e instanceof Ne(e).Node)}function Ni(e){return!!F9()&&(e instanceof Element||e instanceof Ne(e).Element)}function Nn(e){return!!F9()&&(e instanceof HTMLElement||e instanceof Ne(e).HTMLElement)}function Na(e){return!!F9()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot)}let Ns=new Set(["inline","contents"]);function No(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=NA(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!Ns.has(n)}let Nl=new Set(["table","td","th"]),Nu=[":popover-open",":modal"];function Nc(e){return Nu.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let Nd=["transform","translate","scale","rotate","perspective"],Nh=["transform","translate","scale","rotate","perspective","filter"],Np=["paint","layout","strict","content"];function Nf(e){let t=Nm(),r=Ni(e)?NA(e):e;return Nd.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||Nh.some(e=>(r.willChange||"").includes(e))||Np.some(e=>(r.contain||"").includes(e))}function Nm(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Ng=new Set(["html","body","#document"]);function Nv(e){return Ng.has(F7(e))}function NA(e){return Ne(e).getComputedStyle(e)}function Nb(e){return Ni(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ny(e){if("html"===F7(e))return e;let t=e.assignedSlot||e.parentNode||Na(e)&&e.host||Nt(e);return Na(t)?t.host:t}function Nw(e,t,r){var i;void 0===t&&(t=[]),void 0===r&&(r=!0);let n=function e(t){let r=Ny(t);return Nv(r)?t.ownerDocument?t.ownerDocument.body:t.body:Nn(r)&&No(r)?r:e(r)}(e),a=n===(null==(i=e.ownerDocument)?void 0:i.body),s=Ne(n);if(a){let e=Nx(s);return t.concat(s,s.visualViewport||[],No(n)?n:[],e&&r?Nw(e):[])}return t.concat(n,Nw(n,[],r))}function Nx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function NC(e){let t=NA(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=Nn(e),a=n?e.offsetWidth:r,s=n?e.offsetHeight:i,o=FL(r)!==a||FL(i)!==s;return o&&(r=a,i=s),{width:r,height:i,$:o}}function NS(e){return Ni(e)?e:e.contextElement}function NE(e){let t=NS(e);if(!Nn(t))return FF(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:a}=NC(t),s=(a?FL(r.width):r.width)/i,o=(a?FL(r.height):r.height)/n;return s&&Number.isFinite(s)||(s=1),o&&Number.isFinite(o)||(o=1),{x:s,y:o}}let N_=FF(0);function NM(e){let t=Ne(e);return Nm()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:N_}function NI(e,t,r,i){var n;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),s=NS(e),o=FF(1);t&&(i?Ni(i)&&(o=NE(i)):o=NE(e));let l=(void 0===(n=r)&&(n=!1),i&&(!n||i===Ne(s))&&n)?NM(s):FF(0),u=(a.left+l.x)/o.x,c=(a.top+l.y)/o.y,d=a.width/o.x,h=a.height/o.y;if(s){let e=Ne(s),t=i&&Ni(i)?Ne(i):i,r=e,n=Nx(r);for(;n&&i&&t!==r;){let e=NE(n),t=n.getBoundingClientRect(),i=NA(n),a=t.left+(n.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(n.clientTop+parseFloat(i.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,h*=e.y,u+=a,c+=s,n=Nx(r=Ne(n))}}return F0({width:d,height:h,x:u,y:c})}function NT(e,t){let r=Nb(e).scrollLeft;return t?t.left+r:NI(Nt(e)).left+r}function NB(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-NT(e,r),y:r.top+t.scrollTop}}let NR=new Set(["absolute","fixed"]);function Nk(e,t,r){var i;let n;if("viewport"===t)n=function(e,t){let r=Ne(e),i=Nt(e),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,o=0,l=0;if(n){a=n.width,s=n.height;let e=Nm();(!e||e&&"fixed"===t)&&(o=n.offsetLeft,l=n.offsetTop)}let u=NT(i);if(u<=0){let e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,s=Math.abs(i.clientWidth-t.clientWidth-n);s<=25&&(a-=s)}else u<=25&&(a+=u);return{width:a,height:s,x:o,y:l}}(e,r);else if("document"===t){let t,r,a,s,o,l,u;i=Nt(e),t=Nt(i),r=Nb(i),a=i.ownerDocument.body,s=FD(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=FD(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),l=-r.scrollLeft+NT(i),u=-r.scrollTop,"rtl"===NA(a).direction&&(l+=FD(t.clientWidth,a.clientWidth)-s),n={width:s,height:o,x:l,y:u}}else if(Ni(t)){let e,i,a,s,o,l;i=(e=NI(t,!0,"fixed"===r)).top+t.clientTop,a=e.left+t.clientLeft,s=Nn(t)?NE(t):FF(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,n={width:o,height:l,x:a*s.x,y:i*s.y}}else{let r=NM(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return F0(n)}function NP(e){return"static"===NA(e).position}function ND(e,t){if(!Nn(e)||"fixed"===NA(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Nt(e)===r&&(r=r.ownerDocument.body),r}function NL(e,t){var r;let i=Ne(e);if(Nc(e))return i;if(!Nn(e)){let t=Ny(e);for(;t&&!Nv(t);){if(Ni(t)&&!NP(t))return t;t=Ny(t)}return i}let n=ND(e,t);for(;n&&(r=n,Nl.has(F7(r)))&&NP(n);)n=ND(n,t);return n&&Nv(n)&&NP(n)&&!Nf(n)?i:n||function(e){let t=Ny(e);for(;Nn(t)&&!Nv(t);){if(Nf(t))return t;if(Nc(t))break;t=Ny(t)}return null}(e)||i}let Nz=async function(e){let t=this.getOffsetParent||NL,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=Nn(t),n=Nt(t),a="fixed"===r,s=NI(e,!0,a,t),o={scrollLeft:0,scrollTop:0},l=FF(0);if(i||!i&&!a)if(("body"!==F7(t)||No(n))&&(o=Nb(t)),i){let e=NI(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else n&&(l.x=NT(n));a&&!i&&n&&(l.x=NT(n));let u=!n||i||a?FF(0):NB(n,o);return{x:s.left+o.scrollLeft-l.x-u.x,y:s.top+o.scrollTop-l.y-u.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},NF={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,a="fixed"===n,s=Nt(i),o=!!t&&Nc(t.floating);if(i===s||o&&a)return r;let l={scrollLeft:0,scrollTop:0},u=FF(1),c=FF(0),d=Nn(i);if((d||!d&&!a)&&(("body"!==F7(i)||No(s))&&(l=Nb(i)),Nn(i))){let e=NI(i);u=NE(i),c.x=e.x+i.clientLeft,c.y=e.y+i.clientTop}let h=!s||d||a?FF(0):NB(s,l);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:r.y*u.y-l.scrollTop*u.y+c.y+h.y}},getDocumentElement:Nt,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,a=[..."clippingAncestors"===r?Nc(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let i=Nw(e,[],!1).filter(e=>Ni(e)&&"body"!==F7(e)),n=null,a="fixed"===NA(e).position,s=a?Ny(e):e;for(;Ni(s)&&!Nv(s);){let t=NA(s),r=Nf(s);r||"fixed"!==t.position||(n=null),(a?!r&&!n:!r&&"static"===t.position&&!!n&&NR.has(n.position)||No(s)&&!r&&function e(t,r){let i=Ny(t);return!(i===r||!Ni(i)||Nv(i))&&("fixed"===NA(i).position||e(i,r))}(e,s))?i=i.filter(e=>e!==s):n=t,s=Ny(s)}return t.set(e,i),i}(t,this._c):[].concat(r),i],s=a[0],o=a.reduce((e,r)=>{let i=Nk(t,r,n);return e.top=FD(i.top,e.top),e.right=FP(i.right,e.right),e.bottom=FP(i.bottom,e.bottom),e.left=FD(i.left,e.left),e},Nk(t,s,n));return{width:o.right-o.left,height:o.bottom-o.top,x:o.left,y:o.top}},getOffsetParent:NL,getElementRects:Nz,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=NC(e);return{width:t,height:r}},getScale:NE,isElement:Ni,isRTL:function(e){return"rtl"===NA(e).direction}};function NN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let NO=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:n,rects:a,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=FU(e,t)||{};if(null==u)return{};let d=FZ(c),h={x:r,y:i},p=FG(FW(n)),f=Fj(p),m=await s.getDimensions(u),g="y"===p,v=g?"clientHeight":"clientWidth",A=a.reference[f]+a.reference[p]-h[p]-a.floating[f],b=h[p]-a.reference[p],y=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),w=y?y[v]:0;w&&await (null==s.isElement?void 0:s.isElement(y))||(w=o.floating[v]||a.floating[f]);let x=w/2-m[f]/2-1,C=FP(d[g?"top":"left"],x),S=FP(d[g?"bottom":"right"],x),E=w-m[f]-S,_=w/2-m[f]/2+(A/2-b/2),M=FD(C,FP(_,E)),I=!l.arrow&&null!=FH(n)&&_!==M&&a.reference[f]/2-(_<C?C:S)-m[f]/2<0,T=I?_<C?_-C:_-E:0;return{[p]:h[p]+T,data:{[p]:M,centerOffset:_-M-T,...I&&{alignmentOffset:T}},reset:I}}});var NU="undefined"!=typeof document?tE.useLayoutEffect:function(){};function NQ(e,t){let r,i,n;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(i=r;0!=i--;)if(!NQ(e[i],t[i]))return!1;return!0}if((r=(n=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=r;0!=i--;)if(!({}).hasOwnProperty.call(t,n[i]))return!1;for(i=r;0!=i--;){let r=n[i];if(("_owner"!==r||!e.$$typeof)&&!NQ(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function NH(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function NG(e,t){let r=NH(e);return Math.round(t*r)/r}function Nj(e){let t=tE.useRef(e);return NU(()=>{t.current=e}),t}var NV=tE.forwardRef((e,t)=>{let{children:r,width:i=10,height:n=5,...a}=e;return(0,tI.jsx)(Pk.svg,{...a,ref:t,width:i,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,tI.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function NW(e){let[t,r]=tE.useState(void 0);return PC(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let i,n;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,n=t.blockSize}else i=e.offsetWidth,n=e.offsetHeight;r({width:i,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}NV.displayName="Arrow";var Nq="Popper",[NX,NJ]=Px(Nq),[NK,NY]=NX(Nq),N$=e=>{let{__scopePopper:t,children:r}=e,[i,n]=tE.useState(null);return(0,tI.jsx)(NK,{scope:t,anchor:i,onAnchorChange:n,children:r})};N$.displayName=Nq;var NZ="PopperAnchor",N0=tE.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...n}=e,a=NY(NZ,r),s=tE.useRef(null),o=kh(t,s),l=tE.useRef(null);return tE.useEffect(()=>{let e=l.current;l.current=i?.current||s.current,e!==l.current&&a.onAnchorChange(l.current)}),i?null:(0,tI.jsx)(Pk.div,{...n,ref:o})});N0.displayName=NZ;var N1="PopperContent",[N2,N3]=NX(N1),N4=tE.forwardRef((e,t)=>{var r,i,n,a,s,o,l,u,c,d,h,p,f,m,g,v,A,b,y,w,x;let{__scopePopper:C,side:S="bottom",sideOffset:E=0,align:_="center",alignOffset:M=0,arrowPadding:I=0,avoidCollisions:T=!0,collisionBoundary:B=[],collisionPadding:R=0,sticky:k="partial",hideWhenDetached:P=!1,updatePositionStrategy:D="optimized",onPlaced:L,...z}=e,F=NY(N1,C),[N,O]=tE.useState(null),U=kh(t,e=>O(e)),[Q,H]=tE.useState(null),G=NW(Q),j=G?.width??0,V=G?.height??0,W="number"==typeof R?R:{top:0,right:0,bottom:0,left:0,...R},q=Array.isArray(B)?B:[B],X=q.length>0,J={padding:W,boundary:q.filter(N9),altBoundary:X},{refs:K,floatingStyles:Y,placement:$,isPositioned:Z,middlewareData:ee}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:n,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[c,d]=tE.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=tE.useState(i);NQ(h,i)||p(i);let[f,m]=tE.useState(null),[g,v]=tE.useState(null),A=tE.useCallback(e=>{e!==x.current&&(x.current=e,m(e))},[]),b=tE.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),y=a||f,w=s||g,x=tE.useRef(null),C=tE.useRef(null),S=tE.useRef(c),E=null!=l,_=Nj(l),M=Nj(n),I=Nj(u),T=tE.useCallback(()=>{var e,i;let n,a,s;if(!x.current||!C.current)return;let o={placement:t,strategy:r,middleware:h};M.current&&(o.platform=M.current),(e=x.current,i=C.current,n=new Map,s={...(a={platform:NF,...o}).platform,_c:n},F2(e,i,{...a,platform:s})).then(e=>{let t={...e,isPositioned:!1!==I.current};B.current&&!NQ(S.current,t)&&(S.current=t,(0,r8.flushSync)(()=>{d(t)}))})},[h,t,r,M,I]);NU(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let B=tE.useRef(!1);NU(()=>(B.current=!0,()=>{B.current=!1}),[]),NU(()=>{if(y&&(x.current=y),w&&(C.current=w),y&&w){if(_.current)return _.current(y,w,T);T()}},[y,w,T,_,E]);let R=tE.useMemo(()=>({reference:x,floating:C,setReference:A,setFloating:b}),[A,b]),k=tE.useMemo(()=>({reference:y,floating:w}),[y,w]),P=tE.useMemo(()=>{let e={position:r,left:0,top:0};if(!k.floating)return e;let t=NG(k.floating,c.x),i=NG(k.floating,c.y);return o?{...e,transform:"translate("+t+"px, "+i+"px)",...NH(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:i}},[r,o,k.floating,c.x,c.y]);return tE.useMemo(()=>({...c,update:T,refs:R,elements:k,floatingStyles:P}),[c,T,R,k,P])}({strategy:"fixed",placement:S+("center"!==_?"-"+_:""),whileElementsMounted:(...e)=>(function(e,t,r,i){let n;void 0===i&&(i={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,c=NS(e),d=a||s?[...c?Nw(c):[],...Nw(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});let h=c&&l?function(e,t){let r,i=null,n=Nt(e);function a(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}return!function s(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),a();let u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:p}=u;if(o||t(),!h||!p)return;let f={rootMargin:-Fz(d)+"px "+-Fz(n.clientWidth-(c+h))+"px "+-Fz(n.clientHeight-(d+p))+"px "+-Fz(c)+"px",threshold:FD(0,FP(1,l))||1},m=!0;function g(t){let i=t[0].intersectionRatio;if(i!==l){if(!m)return s();i?s(!1,i):r=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==i||NN(u,e.getBoundingClientRect())||s(),m=!1}try{i=new IntersectionObserver(g,{...f,root:n.ownerDocument})}catch(e){i=new IntersectionObserver(g,f)}i.observe(e)}(!0),a}(c,r):null,p=-1,f=null;o&&(f=new ResizeObserver(e=>{let[i]=e;i&&i.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),r()}),c&&!u&&f.observe(c),f.observe(t));let m=u?NI(e):null;return u&&function t(){let i=NI(e);m&&!NN(m,i)&&r(),m=i,n=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(n)}})(...e,{animationFrame:"always"===D}),elements:{reference:F.anchor},middleware:[{...{name:"offset",options:n=r={mainAxis:E+V,alignmentAxis:M},async fn(e){var t,r;let{x:i,y:a,placement:s,middlewareData:o}=e,l=await F6(e,n);return s===(null==(t=o.offset)?void 0:t.placement)&&null!=(r=o.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}},options:[r,i]},T&&{...{name:"shift",options:c=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===k?{...(void 0===(o=a)&&(o={}),{options:o,fn(e){let{x:t,y:r,placement:i,rects:n,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=FU(o,e),c={x:t,y:r},d=FW(i),h=FG(d),p=c[h],f=c[d],m=FU(s,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===h?"height":"width",t=n.reference[h]-n.floating[e]+g.mainAxis,r=n.reference[h]+n.reference[e]-g.mainAxis;p<t?p=t:p>r&&(p=r)}if(u){var v,A;let e="y"===h?"width":"height",t=F8.has(FQ(i)),r=n.reference[d]-n.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),s=n.reference[d]+n.reference[e]+(t?0:(null==(A=a.offset)?void 0:A[d])||0)-(t?g.crossAxis:0);f<r?f=r:f>s&&(f=s)}return{[h]:p,[d]:f}}}),options:[a,s]}:void 0,...J},async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...o}=FU(c,e),l={x:t,y:r},u=await F3(e,o),d=FW(FQ(i)),h=FG(d),p=l[h],f=l[d];if(n){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",r=p+u[e],i=p-u[t];p=FD(r,FP(p,i))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=f+u[e],i=f-u[t];f=FD(r,FP(f,i))}let m=s.fn({...e,[h]:p,[d]:f});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[h]:n,[d]:a}}}}},options:[l,u]},T&&{...{name:"flip",options:p=d={...J},async fn(e){var t,r,i,n,a,s,o,l;let u,c,d,{placement:h,middlewareData:f,rects:m,initialPlacement:g,platform:v,elements:A}=e,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:S=!0,...E}=FU(p,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let _=FQ(h),M=FW(g),I=FQ(g)===g,T=await (null==v.isRTL?void 0:v.isRTL(A.floating)),B=w||(I||!S?[F$(g)]:(u=F$(g),[Fq(g),u,Fq(u)])),R="none"!==C;!w&&R&&B.push(...(c=FH(g),d=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?FJ:FX;return t?FX:FJ;case"left":case"right":return t?FK:FY;default:return[]}}(FQ(g),"start"===C,T),c&&(d=d.map(e=>e+"-"+c),S&&(d=d.concat(d.map(Fq)))),d));let k=[g,...B],P=await F3(e,E),D=[],L=(null==(r=f.flip)?void 0:r.overflows)||[];if(b&&D.push(P[_]),y){let e,t,r,i,n=(s=h,o=m,void 0===(l=T)&&(l=!1),e=FH(s),r=Fj(t=FG(FW(s))),i="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",o.reference[r]>o.floating[r]&&(i=F$(i)),[i,F$(i)]);D.push(P[n[0]],P[n[1]])}if(L=[...L,{placement:h,overflows:D}],!D.every(e=>e<=0)){let e=((null==(i=f.flip)?void 0:i.index)||0)+1,t=k[e];if(t&&("alignment"!==y||M===FW(t)||L.every(e=>FW(e.placement)!==M||e.overflows[0]>0)))return{data:{index:e,overflows:L},reset:{placement:t}};let r=null==(n=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:n.placement;if(!r)switch(x){case"bestFit":{let e=null==(a=L.filter(e=>{if(R){let t=FW(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=g}if(h!==r)return{reset:{placement:r}}}return{}}},options:[d,h]},{...{name:"size",options:g=f={...J,apply:({elements:e,rects:t,availableWidth:r,availableHeight:i})=>{let{width:n,height:a}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${i}px`),s.setProperty("--radix-popper-anchor-width",`${n}px`),s.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){var t,r;let i,n,{placement:a,rects:s,platform:o,elements:l}=e,{apply:u=()=>{},...c}=FU(g,e),d=await F3(e,c),h=FQ(a),p=FH(a),f="y"===FW(a),{width:m,height:v}=s.floating;"top"===h||"bottom"===h?(i=h,n=p===(await (null==o.isRTL?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(n=h,i="end"===p?"top":"bottom");let A=v-d.top-d.bottom,b=m-d.left-d.right,y=FP(v-d[i],A),w=FP(m-d[n],b),x=!e.middlewareData.shift,C=y,S=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(C=A),x&&!p){let e=FD(d.left,0),t=FD(d.right,0),r=FD(d.top,0),i=FD(d.bottom,0);f?S=m-2*(0!==e||0!==t?e+t:FD(d.left,d.right)):C=v-2*(0!==r||0!==i?r+i:FD(d.top,d.bottom))}await u({...e,availableWidth:S,availableHeight:C});let E=await o.getDimensions(l.floating);return m!==E.width||v!==E.height?{reset:{rects:!0}}:{}}},options:[f,m]},Q&&{...{name:"arrow",options:b=v={element:Q,padding:I},fn(e){let{element:t,padding:r}="function"==typeof b?b(e):b;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?NO({element:t.current,padding:r}).fn(e):{}:t?NO({element:t,padding:r}).fn(e):{}}},options:[v,A]},N7({arrowWidth:j,arrowHeight:V}),P&&{...{name:"hide",options:x=y={strategy:"referenceHidden",...J},async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...i}=FU(x,e);switch(r){case"referenceHidden":{let r=F4(await F3(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:F5(r)}}}case"escaped":{let r=F4(await F3(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:F5(r)}}}default:return{}}}},options:[y,w]}]}),[et,er]=Oe($),ei=PP(L);PC(()=>{Z&&ei?.()},[Z,ei]);let en=ee.arrow?.x,ea=ee.arrow?.y,es=ee.arrow?.centerOffset!==0,[eo,el]=tE.useState();return PC(()=>{N&&el(window.getComputedStyle(N).zIndex)},[N]),(0,tI.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:Z?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eo,"--radix-popper-transform-origin":[ee.transformOrigin?.x,ee.transformOrigin?.y].join(" "),...ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,tI.jsx)(N2,{scope:C,placedSide:et,onArrowChange:H,arrowX:en,arrowY:ea,shouldHideArrow:es,children:(0,tI.jsx)(Pk.div,{"data-side":et,"data-align":er,...z,ref:U,style:{...z.style,animation:Z?void 0:"none"}})})})});N4.displayName=N1;var N5="PopperArrow",N8={top:"bottom",right:"left",bottom:"top",left:"right"},N6=tE.forwardRef(function(e,t){let{__scopePopper:r,...i}=e,n=N3(N5,r),a=N8[n.placedSide];return(0,tI.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,tI.jsx)(NV,{...i,ref:t,style:{...i.style,display:"block"}})})});function N9(e){return null!==e}N6.displayName=N5;var N7=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:i,middlewareData:n}=t,a=n.arrow?.centerOffset!==0,s=a?0:e.arrowWidth,o=a?0:e.arrowHeight,[l,u]=Oe(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(n.arrow?.x??0)+s/2,h=(n.arrow?.y??0)+o/2,p="",f="";return"bottom"===l?(p=a?c:`${d}px`,f=`${-o}px`):"top"===l?(p=a?c:`${d}px`,f=`${i.floating.height+o}px`):"right"===l?(p=`${-o}px`,f=a?c:`${h}px`):"left"===l&&(p=`${i.floating.width+o}px`,f=a?c:`${h}px`),{data:{x:p,y:f}}}});function Oe(e){let[t,r="center"]=e.split("-");return[t,r]}function Ot(e){let t=tE.useRef({value:e,previous:e});return tE.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Or=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});tE.forwardRef((e,t)=>(0,tI.jsx)(Pk.span,{...e,ref:t,style:{...Or,...e.style}})).displayName="VisuallyHidden";var Oi=[" ","Enter","ArrowUp","ArrowDown"],On=[" ","Enter"],Oa="Select",[Os,Oo,Ol]=FT(Oa),[Ou,Oc]=Px(Oa,[Ol,NJ]),Od=NJ(),[Oh,Op]=Ou(Oa),[Of,Om]=Ou(Oa),Og=e=>{let{__scopeSelect:t,children:r,open:i,defaultOpen:n,onOpenChange:a,value:s,defaultValue:o,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:h,required:p,form:f}=e,m=Od(t),[g,v]=tE.useState(null),[A,b]=tE.useState(null),[y,w]=tE.useState(!1),x=FR(u),[C,S]=PI({prop:i,defaultProp:n??!1,onChange:a,caller:Oa}),[E,_]=PI({prop:s,defaultProp:o,onChange:l,caller:Oa}),M=tE.useRef(null),I=!g||f||!!g.closest("form"),[T,B]=tE.useState(new Set),R=Array.from(T).map(e=>e.props.value).join(";");return(0,tI.jsx)(N$,{...m,children:(0,tI.jsxs)(Oh,{required:p,scope:t,trigger:g,onTriggerChange:v,valueNode:A,onValueNodeChange:b,valueNodeHasChildren:y,onValueNodeHasChildrenChange:w,contentId:P_(),value:E,onValueChange:_,open:C,onOpenChange:S,dir:x,triggerPointerDownPosRef:M,disabled:h,children:[(0,tI.jsx)(Os.Provider,{scope:t,children:(0,tI.jsx)(Of,{scope:e.__scopeSelect,onNativeOptionAdd:tE.useCallback(e=>{B(t=>new Set(t).add(e))},[]),onNativeOptionRemove:tE.useCallback(e=>{B(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),I?(0,tI.jsxs)(OZ,{"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:E,onChange:e=>_(e.target.value),disabled:h,form:f,children:[void 0===E?(0,tI.jsx)("option",{value:""}):null,Array.from(T)]},R):null]})})};Og.displayName=Oa;var Ov="SelectTrigger",OA=tE.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:i=!1,...n}=e,a=Od(r),s=Op(Ov,r),o=s.disabled||i,l=kh(t,s.onTriggerChange),u=Oo(r),c=tE.useRef("touch"),[d,h,p]=O1(e=>{let t=u().filter(e=>!e.disabled),r=t.find(e=>e.value===s.value),i=O2(t,e,r);void 0!==i&&s.onValueChange(i.value)}),f=e=>{o||(s.onOpenChange(!0),p()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,tI.jsx)(N0,{asChild:!0,...a,children:(0,tI.jsx)(Pk.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":O0(s.value)?"":void 0,...n,ref:l,onClick:Pw(n.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&f(e)}),onPointerDown:Pw(n.onPointerDown,e=>{c.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())}),onKeyDown:Pw(n.onKeyDown,e=>{let t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&Oi.includes(e.key)&&(f(),e.preventDefault())})})})});OA.displayName=Ov;var Ob="SelectValue",Oy=tE.forwardRef((e,t)=>{let{__scopeSelect:r,className:i,style:n,children:a,placeholder:s="",...o}=e,l=Op(Ob,r),{onValueNodeHasChildrenChange:u}=l,c=void 0!==a,d=kh(t,l.onValueNodeChange);return PC(()=>{u(c)},[u,c]),(0,tI.jsx)(Pk.span,{...o,ref:d,style:{pointerEvents:"none"},children:O0(l.value)?(0,tI.jsx)(tI.Fragment,{children:s}):a})});Oy.displayName=Ob;var Ow=tE.forwardRef((e,t)=>{let{__scopeSelect:r,children:i,...n}=e;return(0,tI.jsx)(Pk.span,{"aria-hidden":!0,...n,ref:t,children:i||"▼"})});Ow.displayName="SelectIcon";var Ox=e=>(0,tI.jsx)(PX,{asChild:!0,...e});Ox.displayName="SelectPortal";var OC="SelectContent",OS=tE.forwardRef((e,t)=>{let r=Op(OC,e.__scopeSelect),[i,n]=tE.useState();return(PC(()=>{n(new DocumentFragment)},[]),r.open)?(0,tI.jsx)(OI,{...e,ref:t}):i?(0,r8.createPortal)((0,tI.jsx)(OE,{scope:e.__scopeSelect,children:(0,tI.jsx)(Os.Slot,{scope:e.__scopeSelect,children:(0,tI.jsx)("div",{children:e.children})})}),i):null});OS.displayName=OC;var[OE,O_]=Ou(OC),OM=PT("SelectContent.RemoveScroll"),OI=tE.forwardRef((e,t)=>{let{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:a,onPointerDownOutside:s,side:o,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:m,avoidCollisions:g,...v}=e,A=Op(OC,r),[b,y]=tE.useState(null),[w,x]=tE.useState(null),C=kh(t,e=>y(e)),[S,E]=tE.useState(null),[_,M]=tE.useState(null),I=Oo(r),[T,B]=tE.useState(!1),R=tE.useRef(!1);tE.useEffect(()=>{if(b)return DL(b)},[b]),P$();let k=tE.useCallback(e=>{let[t,...r]=I().map(e=>e.ref.current),[i]=r.slice(-1),n=document.activeElement;for(let r of e)if(r===n||(r?.scrollIntoView({block:"nearest"}),r===t&&w&&(w.scrollTop=0),r===i&&w&&(w.scrollTop=w.scrollHeight),r?.focus(),document.activeElement!==n))return},[I,w]),P=tE.useCallback(()=>k([S,b]),[k,S,b]);tE.useEffect(()=>{T&&P()},[T,P]);let{onOpenChange:D,triggerPointerDownPosRef:L}=A;tE.useEffect(()=>{if(b){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():b.contains(r.target)||D(!1),document.removeEventListener("pointermove",t),L.current=null};return null!==L.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[b,D,L]),tE.useEffect(()=>{let e=()=>D(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[D]);let[z,F]=O1(e=>{let t=I().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),i=O2(t,e,r);i&&setTimeout(()=>i.ref.current.focus())}),N=tE.useCallback((e,t,r)=>{let i=!R.current&&!r;(void 0!==A.value&&A.value===t||i)&&(E(e),i&&(R.current=!0))},[A.value]),O=tE.useCallback(()=>b?.focus(),[b]),U=tE.useCallback((e,t,r)=>{let i=!R.current&&!r;(void 0!==A.value&&A.value===t||i)&&M(e)},[A.value]),Q="popper"===i?OB:OT,H=Q===OB?{side:o,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:m,avoidCollisions:g}:{};return(0,tI.jsx)(OE,{scope:r,content:b,viewport:w,onViewportChange:x,itemRefCallback:N,selectedItem:S,onItemLeave:O,itemTextRefCallback:U,focusSelectedItem:P,selectedItemText:_,position:i,isPositioned:T,searchRef:z,children:(0,tI.jsx)(DI,{as:OM,allowPinchZoom:!0,children:(0,tI.jsx)(PH,{asChild:!0,trapped:A.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Pw(n,e=>{A.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,tI.jsx)(Pz,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:(0,tI.jsx)(Q,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:e=>e.preventDefault(),...v,...H,onPlaced:()=>B(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Pw(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,i=t.indexOf(r);t=t.slice(i+1)}setTimeout(()=>k(t)),e.preventDefault()}})})})})})})});OI.displayName="SelectContentImpl";var OT=tE.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:i,...n}=e,a=Op(OC,r),s=O_(OC,r),[o,l]=tE.useState(null),[u,c]=tE.useState(null),d=kh(t,e=>c(e)),h=Oo(r),p=tE.useRef(!1),f=tE.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:v,focusSelectedItem:A}=s,b=tE.useCallback(()=>{if(a.trigger&&a.valueNode&&o&&u&&m&&g&&v){let e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),n=v.getBoundingClientRect();if("rtl"!==a.dir){let i=n.left-t.left,a=r.left-i,s=e.left-a,l=e.width+s,u=Math.max(l,t.width),c=FI(a,[10,Math.max(10,window.innerWidth-10-u)]);o.style.minWidth=l+"px",o.style.left=c+"px"}else{let i=t.right-n.right,a=window.innerWidth-r.right-i,s=window.innerWidth-e.right-a,l=e.width+s,u=Math.max(l,t.width),c=FI(a,[10,Math.max(10,window.innerWidth-10-u)]);o.style.minWidth=l+"px",o.style.right=c+"px"}let s=h(),l=window.innerHeight-20,c=m.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),A=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),y=f+A+c+parseInt(d.paddingBottom,10)+b,w=Math.min(5*g.offsetHeight,y),x=window.getComputedStyle(m),C=parseInt(x.paddingTop,10),S=parseInt(x.paddingBottom,10),E=e.top+e.height/2-10,_=g.offsetHeight/2,M=f+A+(g.offsetTop+_);if(M<=E){let e=s.length>0&&g===s[s.length-1].ref.current;o.style.bottom="0px";let t=Math.max(l-E,_+(e?S:0)+(u.clientHeight-m.offsetTop-m.offsetHeight)+b);o.style.height=M+t+"px"}else{let e=s.length>0&&g===s[0].ref.current;o.style.top="0px";let t=Math.max(E,f+m.offsetTop+(e?C:0)+_);o.style.height=t+(y-M)+"px",m.scrollTop=M-E+m.offsetTop}o.style.margin="10px 0",o.style.minHeight=w+"px",o.style.maxHeight=l+"px",i?.(),requestAnimationFrame(()=>p.current=!0)}},[h,a.trigger,a.valueNode,o,u,m,g,v,a.dir,i]);PC(()=>b(),[b]);let[y,w]=tE.useState();PC(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]);let x=tE.useCallback(e=>{e&&!0===f.current&&(b(),A?.(),f.current=!1)},[b,A]);return(0,tI.jsx)(OR,{scope:r,contentWrapper:o,shouldExpandOnScrollRef:p,onScrollButtonChange:x,children:(0,tI.jsx)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:y},children:(0,tI.jsx)(Pk.div,{...n,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});OT.displayName="SelectItemAlignedPosition";var OB=tE.forwardRef((e,t)=>{let{__scopeSelect:r,align:i="start",collisionPadding:n=10,...a}=e,s=Od(r);return(0,tI.jsx)(N4,{...s,...a,ref:t,align:i,collisionPadding:n,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});OB.displayName="SelectPopperPosition";var[OR,Ok]=Ou(OC,{}),OP="SelectViewport",OD=tE.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:i,...n}=e,a=O_(OP,r),s=Ok(OP,r),o=kh(t,a.onViewportChange),l=tE.useRef(0);return(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,tI.jsx)(Os.Slot,{scope:r,children:(0,tI.jsx)(Pk.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:Pw(n.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:i}=s;if(i?.current&&r){let e=Math.abs(l.current-t.scrollTop);if(e>0){let i=window.innerHeight-20,n=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(n<i){let a=n+e,s=Math.min(i,a),o=a-s;r.style.height=s+"px","0px"===r.style.bottom&&(t.scrollTop=o>0?o:0,r.style.justifyContent="flex-end")}}}l.current=t.scrollTop})})})]})});OD.displayName=OP;var OL="SelectGroup",[Oz,OF]=Ou(OL);tE.forwardRef((e,t)=>{let{__scopeSelect:r,...i}=e,n=P_();return(0,tI.jsx)(Oz,{scope:r,id:n,children:(0,tI.jsx)(Pk.div,{role:"group","aria-labelledby":n,...i,ref:t})})}).displayName=OL;var ON="SelectLabel";tE.forwardRef((e,t)=>{let{__scopeSelect:r,...i}=e,n=OF(ON,r);return(0,tI.jsx)(Pk.div,{id:n.id,...i,ref:t})}).displayName=ON;var OO="SelectItem",[OU,OQ]=Ou(OO),OH=tE.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,disabled:n=!1,textValue:a,...s}=e,o=Op(OO,r),l=O_(OO,r),u=o.value===i,[c,d]=tE.useState(a??""),[h,p]=tE.useState(!1),f=kh(t,e=>l.itemRefCallback?.(e,i,n)),m=P_(),g=tE.useRef("touch"),v=()=>{n||(o.onValueChange(i),o.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,tI.jsx)(OU,{scope:r,value:i,disabled:n,textId:m,isSelected:u,onItemTextChange:tE.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:(0,tI.jsx)(Os.ItemSlot,{scope:r,value:i,disabled:n,textValue:c,children:(0,tI.jsx)(Pk.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:f,onFocus:Pw(s.onFocus,()=>p(!0)),onBlur:Pw(s.onBlur,()=>p(!1)),onClick:Pw(s.onClick,()=>{"mouse"!==g.current&&v()}),onPointerUp:Pw(s.onPointerUp,()=>{"mouse"===g.current&&v()}),onPointerDown:Pw(s.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:Pw(s.onPointerMove,e=>{g.current=e.pointerType,n?l.onItemLeave?.():"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Pw(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Pw(s.onKeyDown,e=>{(l.searchRef?.current===""||" "!==e.key)&&(On.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});OH.displayName=OO;var OG="SelectItemText",Oj=tE.forwardRef((e,t)=>{let{__scopeSelect:r,className:i,style:n,...a}=e,s=Op(OG,r),o=O_(OG,r),l=OQ(OG,r),u=Om(OG,r),[c,d]=tE.useState(null),h=kh(t,e=>d(e),l.onItemTextChange,e=>o.itemTextRefCallback?.(e,l.value,l.disabled)),p=c?.textContent,f=tE.useMemo(()=>(0,tI.jsx)("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=u;return PC(()=>(m(f),()=>g(f)),[m,g,f]),(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)(Pk.span,{id:l.textId,...a,ref:h}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?(0,r8.createPortal)(a.children,s.valueNode):null]})});Oj.displayName=OG;var OV="SelectItemIndicator",OW=tE.forwardRef((e,t)=>{let{__scopeSelect:r,...i}=e;return OQ(OV,r).isSelected?(0,tI.jsx)(Pk.span,{"aria-hidden":!0,...i,ref:t}):null});OW.displayName=OV;var Oq="SelectScrollUpButton",OX=tE.forwardRef((e,t)=>{let r=O_(Oq,e.__scopeSelect),i=Ok(Oq,e.__scopeSelect),[n,a]=tE.useState(!1),s=kh(t,i.onScrollButtonChange);return PC(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),n?(0,tI.jsx)(OY,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});OX.displayName=Oq;var OJ="SelectScrollDownButton",OK=tE.forwardRef((e,t)=>{let r=O_(OJ,e.__scopeSelect),i=Ok(OJ,e.__scopeSelect),[n,a]=tE.useState(!1),s=kh(t,i.onScrollButtonChange);return PC(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),n?(0,tI.jsx)(OY,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});OK.displayName=OJ;var OY=tE.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:i,...n}=e,a=O_("SelectScrollButton",r),s=tE.useRef(null),o=Oo(r),l=tE.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return tE.useEffect(()=>()=>l(),[l]),PC(()=>{let e=o().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[o]),(0,tI.jsx)(Pk.div,{"aria-hidden":!0,...n,ref:t,style:{flexShrink:0,...n.style},onPointerDown:Pw(n.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(i,50))}),onPointerMove:Pw(n.onPointerMove,()=>{a.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(i,50))}),onPointerLeave:Pw(n.onPointerLeave,()=>{l()})})});tE.forwardRef((e,t)=>{let{__scopeSelect:r,...i}=e;return(0,tI.jsx)(Pk.div,{"aria-hidden":!0,...i,ref:t})}).displayName="SelectSeparator";var O$="SelectArrow";tE.forwardRef((e,t)=>{let{__scopeSelect:r,...i}=e,n=Od(r),a=Op(O$,r),s=O_(O$,r);return a.open&&"popper"===s.position?(0,tI.jsx)(N6,{...n,...i,ref:t}):null}).displayName=O$;var OZ=tE.forwardRef(({__scopeSelect:e,value:t,...r},i)=>{let n=tE.useRef(null),a=kh(i,n),s=Ot(t);return tE.useEffect(()=>{let e=n.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==t&&r){let i=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(i)}},[s,t]),(0,tI.jsx)(Pk.select,{...r,style:{...Or,...r.style},ref:a,defaultValue:t})});function O0(e){return""===e||void 0===e}function O1(e){let t=PP(e),r=tE.useRef(""),i=tE.useRef(0),n=tE.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=tE.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return tE.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,n,a]}function O2(e,t,r){var i,n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,s=r?e.indexOf(r):-1,o=(i=e,n=Math.max(s,0),i.map((e,t)=>i[(n+t)%i.length]));1===a.length&&(o=o.filter(e=>e!==r));let l=o.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}function O3(e){return(0,tI.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...e,children:(0,tI.jsx)("path",{d:"M8.21723 14.9975C8.10298 14.997 7.99004 14.9731 7.8854 14.9272C7.78077 14.8814 7.68665 14.8145 7.60889 14.7308L3.55889 10.4225C3.4075 10.2611 3.3264 10.0463 3.33343 9.82513C3.34046 9.604 3.43505 9.39471 3.59639 9.24332C3.75773 9.09192 3.97261 9.01082 4.19374 9.01785C4.41488 9.02489 4.62417 9.11948 4.77556 9.28082L8.20889 12.9392L15.2172 5.27248C15.2883 5.18392 15.3768 5.11083 15.4772 5.0577C15.5776 5.00458 15.6878 4.97254 15.8011 4.96355C15.9143 4.95456 16.0282 4.96882 16.1357 5.00544C16.2432 5.04207 16.3421 5.10029 16.4263 5.17652C16.5105 5.25276 16.5782 5.3454 16.6253 5.44877C16.6724 5.55213 16.6979 5.66403 16.7001 5.7776C16.7024 5.89116 16.6815 6.00399 16.6385 6.10916C16.5956 6.21433 16.5316 6.30961 16.4506 6.38915L8.83389 14.7225C8.75686 14.8077 8.66308 14.8761 8.55841 14.9234C8.45373 14.9707 8.34042 14.996 8.22556 14.9975H8.21723Z",fill:"currentColor"})})}function O4(e){return(0,tI.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:(0,tI.jsx)("path",{d:"M12.0002 15.496C11.8686 15.4968 11.7381 15.4716 11.6163 15.4218C11.4944 15.372 11.3836 15.2987 11.2902 15.206L7.29019 11.206C7.10188 11.0177 6.99609 10.7623 6.99609 10.496C6.99609 10.2297 7.10188 9.97434 7.29019 9.78604C7.47849 9.59773 7.73388 9.49194 8.00019 9.49194C8.26649 9.49194 8.52188 9.59773 8.71019 9.78604L12.0002 13.096L15.3002 9.91604C15.3922 9.81375 15.5043 9.73154 15.6295 9.67455C15.7547 9.61756 15.8903 9.58703 16.0279 9.58485C16.1654 9.58267 16.302 9.60889 16.4289 9.66189C16.5559 9.71488 16.6705 9.79349 16.7657 9.89282C16.8609 9.99214 16.9346 10.11 16.9821 10.2391C17.0297 10.3682 17.0501 10.5057 17.042 10.6431C17.034 10.7804 16.9977 10.9146 16.9355 11.0373C16.8732 11.16 16.7863 11.2685 16.6802 11.356L12.6802 15.216C12.4973 15.3924 12.2542 15.4925 12.0002 15.496Z",fill:"currentColor"})})}function O5(e){return(0,tI.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,tI.jsx)("g",{clipPath:"url(#clip0_3784_10281)",children:(0,tI.jsx)("path",{d:"M20.739 11.3791L18.039 8.67909C17.955 8.59517 17.8554 8.52861 17.7458 8.48319C17.6361 8.43778 17.5186 8.4144 17.4 8.4144C17.2813 8.4144 17.1638 8.43778 17.0541 8.48319C16.9445 8.52861 16.8449 8.59517 16.761 8.67909C16.6771 8.763 16.6105 8.86262 16.5651 8.97226C16.5197 9.0819 16.4963 9.19941 16.4963 9.31808C16.4963 9.43676 16.5197 9.55427 16.5651 9.66391C16.6105 9.77355 16.6771 9.87317 16.761 9.95708L17.922 11.1001H12.9V6.0691L14.061 7.23909C14.1451 7.32246 14.2448 7.38843 14.3545 7.43322C14.4641 7.478 14.5815 7.50073 14.7 7.50009C14.8787 7.50113 15.0538 7.44891 15.2027 7.35009C15.3517 7.25127 15.4679 7.11032 15.5364 6.94523C15.605 6.78013 15.6228 6.59835 15.5876 6.42308C15.5525 6.24781 15.4659 6.08698 15.339 5.9611L12.639 3.26111C12.4705 3.09326 12.2423 2.99902 12.0045 2.99902C11.7666 2.99902 11.5385 3.09326 11.37 3.26111L8.66999 5.9611C8.58608 6.04442 8.5194 6.14346 8.47376 6.25255C8.42812 6.36164 8.40441 6.47866 8.404 6.59691C8.40358 6.71517 8.42646 6.83235 8.47132 6.94176C8.51619 7.05117 8.58217 7.15068 8.66549 7.23459C8.74882 7.31851 8.84785 7.38519 8.95695 7.43083C9.06604 7.47647 9.18306 7.50017 9.30131 7.50059C9.54014 7.50144 9.76952 7.40737 9.93899 7.23909L11.1 6.0781V11.1001H6.069L7.239 9.93908C7.40847 9.76961 7.50368 9.53975 7.50368 9.30008C7.50368 9.06041 7.40847 8.83056 7.239 8.66109C7.06953 8.49161 6.83967 8.39641 6.6 8.39641C6.36033 8.39641 6.13048 8.49161 5.961 8.66109L3.26101 11.3611C3.17764 11.4452 3.11167 11.5449 3.06689 11.6546C3.0221 11.7642 2.99938 11.8816 3.00002 12.0001C2.99933 12.1185 3.02203 12.2359 3.06682 12.3456C3.11161 12.4552 3.1776 12.555 3.26101 12.6391L5.961 15.3391C6.0451 15.4225 6.14483 15.4885 6.25449 15.5333C6.36414 15.578 6.48156 15.6007 6.6 15.6001C6.77896 15.6015 6.95429 15.5496 7.10354 15.4508C7.25279 15.3521 7.36918 15.211 7.43781 15.0458C7.50643 14.8805 7.52417 14.6985 7.48876 14.5231C7.45334 14.3476 7.36638 14.1868 7.239 14.0611L6.078 12.9001H11.1V17.9311L9.93899 16.7611C9.76952 16.5916 9.53966 16.4964 9.29999 16.4964C9.06032 16.4964 8.83047 16.5916 8.661 16.7611C8.49152 16.9305 8.39631 17.1604 8.39631 17.4001C8.39631 17.6397 8.49152 17.8696 8.661 18.0391L11.361 20.739C11.5297 20.9065 11.7578 21.0004 11.9955 21.0004C12.2332 21.0004 12.4612 20.9065 12.63 20.739L15.33 18.0391C15.4139 17.9551 15.4805 17.8555 15.5259 17.7459C15.5713 17.6362 15.5947 17.5187 15.5947 17.4001C15.5947 17.2814 15.5713 17.1639 15.5259 17.0542C15.4805 16.9446 15.4139 16.845 15.33 16.7611C15.2461 16.6771 15.1464 16.6106 15.0368 16.5652C14.9272 16.5198 14.8096 16.4964 14.691 16.4964C14.5723 16.4964 14.4548 16.5198 14.3452 16.5652C14.2355 16.6106 14.1359 16.6771 14.052 16.7611L12.9 17.9221V12.9001H17.931L16.761 14.0611C16.6558 14.166 16.5781 14.2952 16.5349 14.4374C16.4917 14.5795 16.4843 14.7301 16.5134 14.8758C16.5424 15.0215 16.607 15.1578 16.7013 15.2725C16.7957 15.3873 16.917 15.4769 17.0544 15.5335C17.164 15.5784 17.2815 15.6011 17.4 15.6001C17.5184 15.6008 17.6359 15.5782 17.7455 15.5334C17.8552 15.4886 17.9549 15.4226 18.039 15.3391L20.739 12.6391C20.8224 12.555 20.8884 12.4552 20.9331 12.3456C20.9779 12.2359 21.0006 12.1185 21 12.0001C20.9966 11.7671 20.9031 11.5445 20.739 11.3791Z",fill:"currentColor"})}),(0,tI.jsx)("defs",{children:(0,tI.jsx)("clipPath",{id:"clip0_3784_10281",children:(0,tI.jsx)("rect",{width:"24",height:"24",fill:"currentColor"})})})]})}function O8(e){return(0,tI.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[(0,tI.jsx)("path",{d:"M19.5398 5.08113C18.5372 4.08551 17.3458 3.30019 16.0356 2.77129C14.7253 2.24238 13.3226 1.98054 11.9098 2.00113C9.25763 1.9945 6.71146 3.04171 4.83141 4.91238C2.95135 6.78306 1.89143 9.32396 1.8848 11.9761C1.87817 14.6283 2.92538 17.1745 4.79605 19.0545C6.66673 20.9346 9.20763 21.9945 11.8598 22.0011C12.4313 22.0108 12.9898 21.8305 13.4477 21.4884C13.9057 21.1464 14.237 20.6619 14.3898 20.1111C14.4872 19.7134 14.4862 19.2979 14.3869 18.9006C14.2875 18.5033 14.0929 18.1362 13.8198 17.8311C13.7562 17.7594 13.7146 17.6709 13.7 17.5761C13.6854 17.4814 13.6984 17.3845 13.7374 17.2969C13.7765 17.2094 13.8399 17.1349 13.9201 17.0825C14.0003 17.03 14.0939 17.0018 14.1898 17.0011H15.8398C17.3927 17.0084 18.8909 16.4279 20.0336 15.3761C21.1762 14.3244 21.8786 12.8794 21.9998 11.3311C22.037 10.1767 21.838 9.02692 21.415 7.95218C20.992 6.87745 20.3539 5.90046 19.5398 5.08113ZM15.8798 15.0011H14.2298C13.7479 14.9984 13.2756 15.1355 12.8701 15.3959C12.4647 15.6563 12.1435 16.0288 11.9455 16.4681C11.7476 16.9075 11.6813 17.3948 11.7549 17.8711C11.8284 18.3473 12.0385 18.792 12.3598 19.1511C12.4224 19.2142 12.4666 19.2932 12.4877 19.3795C12.5088 19.4658 12.5061 19.5562 12.4798 19.6411C12.4298 19.8511 12.1998 19.9811 11.8898 20.0011C10.754 19.9869 9.63429 19.7309 8.60516 19.2502C7.57603 18.7695 6.66109 18.0751 5.92126 17.2132C5.18142 16.3513 4.63365 15.3417 4.31441 14.2516C3.99517 13.1615 3.91178 12.016 4.0698 10.8911C4.35496 9.00107 5.29935 7.27276 6.73593 6.01186C8.17251 4.75096 10.0087 4.03873 11.9198 4.00113H11.9998C13.1306 3.98632 14.253 4.19813 15.3007 4.62407C16.3483 5.05001 17.3001 5.68144 18.0998 6.48113C18.7238 7.10552 19.2141 7.85048 19.5407 8.67057C19.8674 9.49066 20.0236 10.3687 19.9998 11.2511C19.8963 12.2742 19.4184 13.2229 18.6579 13.9151C17.8974 14.6072 16.9081 14.994 15.8798 15.0011Z",fill:"currentColor"}),(0,tI.jsx)("path",{d:"M11.9996 8.00025C12.3974 8.00025 12.7789 7.84222 13.0602 7.56091C13.3415 7.27961 13.4996 6.89808 13.4996 6.50025C13.4996 6.10243 13.3415 5.7209 13.0602 5.43959C12.7789 5.15829 12.3974 5.00025 11.9996 5.00025C11.6018 5.00025 11.2202 5.15829 10.9389 5.43959C10.6576 5.7209 10.4996 6.10243 10.4996 6.50025C10.4996 6.89808 10.6576 7.27961 10.9389 7.56091C11.2202 7.84222 11.6018 8.00025 11.9996 8.00025Z",fill:"currentColor"}),(0,tI.jsx)("path",{d:"M15.2496 7.20116C15.079 7.29965 14.9294 7.43079 14.8094 7.58709C14.6895 7.74339 14.6014 7.92179 14.5504 8.1121C14.4994 8.30242 14.4864 8.50092 14.512 8.69627C14.5377 8.89162 14.6016 9.08 14.7001 9.25066C14.7986 9.42131 14.9298 9.57089 15.0861 9.69086C15.2424 9.81084 15.4208 9.89885 15.6111 9.94987C15.8014 10.0009 15.9999 10.0139 16.1952 9.98825C16.3906 9.96256 16.579 9.89865 16.7496 9.80016C17.0944 9.60125 17.3461 9.27352 17.4492 8.88907C17.5524 8.50462 17.4985 8.09494 17.2996 7.75016C17.1007 7.40538 16.773 7.15373 16.3885 7.05059C16.0041 6.94744 15.5944 7.00125 15.2496 7.20016V7.20116Z",fill:"currentColor"}),(0,tI.jsx)("path",{d:"M8.74976 7.20016C8.57904 7.1018 8.39062 7.03803 8.19526 7.01249C7.99989 6.98695 7.80141 7.00014 7.61114 7.0513C7.42088 7.10247 7.24255 7.19061 7.08634 7.31069C6.93014 7.43077 6.79912 7.58045 6.70076 7.75116C6.6024 7.92188 6.53863 8.1103 6.51308 8.30567C6.48754 8.50103 6.50073 8.69951 6.5519 8.88978C6.60306 9.08005 6.6912 9.25837 6.81128 9.41458C6.93137 9.57078 7.08104 9.7018 7.25176 9.80016C7.59654 9.99881 8.00611 10.0524 8.39037 9.94903C8.77464 9.84569 9.10211 9.59394 9.30076 9.24916C9.4994 8.90438 9.55295 8.49481 9.44962 8.11055C9.34629 7.72629 9.09454 7.39881 8.74976 7.20016Z",fill:"currentColor"}),(0,tI.jsx)("path",{d:"M6.15933 11.2603C5.9133 11.4264 5.7221 11.6618 5.60993 11.9366C5.49776 12.2115 5.46967 12.5135 5.52921 12.8043C5.58876 13.0951 5.73326 13.3617 5.94443 13.5704C6.1556 13.779 6.42393 13.9204 6.71546 13.9764C7.00698 14.0325 7.30858 14.0008 7.58208 13.8853C7.85557 13.7699 8.08866 13.5759 8.25183 13.3279C8.415 13.0799 8.50091 12.789 8.49868 12.4922C8.49646 12.1953 8.4062 11.9058 8.23933 11.6603C8.12971 11.4966 7.98873 11.3563 7.82454 11.2475C7.66035 11.1387 7.47622 11.0635 7.28279 11.0263C7.08936 10.9891 6.89047 10.9906 6.69763 11.0308C6.5048 11.0709 6.32183 11.1489 6.15933 11.2603Z",fill:"currentColor"})]})}function O6({className:e,...t}){return(0,tI.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:Pg("size-6",e),...t,children:[(0,tI.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0625 1.70412C12.1393 1.70359 12.2136 1.7151 12.2842 1.73439C12.6576 1.76978 13.0261 1.88527 13.3604 2.08303L19.7012 5.84084L19.7031 5.84181C20.1036 6.08032 20.4348 6.42322 20.665 6.83498C20.8952 7.24671 21.0168 7.71415 21.0166 8.19142V8.19338L20.998 15.7403C20.9979 16.1352 20.9124 16.526 20.751 16.8848C20.7319 16.9557 20.7049 17.026 20.667 17.0928C20.6355 17.1482 20.5983 17.1987 20.5576 17.2442C20.3296 17.6 20.023 17.8979 19.6631 18.1133L13.2998 21.9072C12.4738 22.3996 11.4611 22.4004 10.6436 21.917L10.6416 21.916L4.30078 18.1582L4.29883 18.1572C3.91023 17.9258 3.58764 17.5957 3.3584 17.2002C3.35105 17.1885 3.34181 17.1773 3.33496 17.1651C3.32803 17.1526 3.32268 17.1387 3.31641 17.126C3.09976 16.7236 2.98517 16.2703 2.98535 15.8076V15.8057L3.00391 8.25588C3.00603 7.28279 3.51293 6.37777 4.33984 5.88478L10.7021 2.09181C11.0682 1.87369 11.4708 1.75231 11.877 1.72658C11.9365 1.71245 11.999 1.70462 12.0625 1.70412ZM5.16895 7.36818C4.87108 7.54583 4.6844 7.87497 4.68359 8.23635L4.66602 15.3838L9.45801 12.5254C9.51085 12.7718 9.60256 13.0142 9.73535 13.2442C9.90127 13.5315 10.1161 13.7727 10.3633 13.9639L5.49512 16.8662L11.499 20.4248C11.8036 20.6044 12.1738 20.6008 12.4707 20.4238L18.5107 16.8233L13.4971 13.877C13.9543 13.482 14.2391 12.9423 14.3242 12.3672L19.3193 15.3037L19.3379 8.21291L19.3369 8.21388C19.3369 8.03517 19.2923 7.85955 19.2061 7.7051C19.1196 7.55056 18.9947 7.42151 18.8447 7.33205L12.8887 3.80275L12.8535 9.73439C12.3304 9.51037 11.7366 9.46806 11.1738 9.63576L11.21 3.76662L5.16895 7.36818Z",fill:"currentColor"}),(0,tI.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.91641 8.60885C11.7928 7.52595 14.1912 8.16845 15.2748 10.0444C16.3582 11.9209 15.7156 14.3211 13.8393 15.4047C11.9627 16.4879 9.56339 15.8446 8.47989 13.9682C7.39671 12.0916 8.03987 9.69227 9.91641 8.60885ZM13.8031 10.894C13.189 9.83118 11.8293 9.46704 10.766 10.0805C9.7026 10.6945 9.33693 12.0551 9.95059 13.1186C10.5646 14.1821 11.9261 14.5469 12.9897 13.9331C14.0529 13.3189 14.4171 11.9575 13.8031 10.894Z",fill:"currentColor"})]})}function O9({...e}){return(0,tI.jsx)(Og,{"data-slot":"select",...e})}function O7({...e}){return(0,tI.jsx)(Oy,{"data-slot":"select-value",...e})}function Ue({className:e,size:t="default",children:r,...i}){return(0,tI.jsxs)(OA,{"data-slot":"select-trigger","data-size":t,className:Pg("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-background-white shadow-sm outline-none transition-colors","border-border-medium","text-text-dark","hover:border-border-dark","focus-visible:border-border-dark","aria-invalid:border-border-red","disabled:cursor-not-allowed disabled:border-border-medium disabled:bg-background-base disabled:opacity-40","data-[size=default]:h-11 data-[size=default]:px-2 data-[size=default]:py-2.5 data-[size=default]:typo-base-16","data-[size=md]:h-9 data-[size=md]:px-2 data-[size=md]:py-2 data-[size=md]:typo-base-14","data-[size=sm]:h-[1.875rem] data-[size=sm]:px-2 data-[size=sm]:typo-base-12","*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-6 [&_svg:not([class*='text-'])]:text-text-dark",e),...i,children:[r,(0,tI.jsx)(Ow,{asChild:!0,children:(0,tI.jsx)(O4,{className:"size-6"})})]})}function Ut({className:e,children:t,position:r="item-aligned",align:i="center",portalContainer:n,...a}){return(0,tI.jsx)(Ox,{container:n,children:(0,tI.jsxs)(OS,{"data-slot":"select-content",className:Pg("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-xl border bg-background-white text-text-dark shadow-md","border-border-medium","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,align:i,...a,children:[(0,tI.jsx)(Ui,{}),(0,tI.jsx)(OD,{className:Pg("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),(0,tI.jsx)(Un,{})]})})}function Ur({className:e,children:t,...r}){return(0,tI.jsxs)(OH,{"data-slot":"select-item",className:Pg("relative flex w-full cursor-default select-none items-center gap-2 rounded-md py-2.5 pr-8 pl-3 outline-hidden","typo-base-16 text-text-sub","focus:bg-background-base focus:text-text-dark","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-6 [&_svg:not([class*='text-'])]:text-text-dark","*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[(0,tI.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-6 items-center justify-center",children:(0,tI.jsx)(OW,{children:(0,tI.jsx)(O3,{className:"size-5"})})}),(0,tI.jsx)(Oj,{children:t})]})}function Ui({className:e,...t}){return(0,tI.jsx)(OX,{"data-slot":"select-scroll-up-button",className:Pg("flex cursor-default items-center justify-center py-1",e),...t,children:(0,tI.jsx)(ii,{className:"size-4"})})}function Un({className:e,...t}){return(0,tI.jsx)(OK,{"data-slot":"select-scroll-down-button",className:Pg("flex cursor-default items-center justify-center py-1",e),...t,children:(0,tI.jsx)(ia,{className:"size-4"})})}OZ.displayName="SelectBubbleInput";var Ua=JSON.parse('{"camera":{"fov":45},"floor":{"z":185.0,"pitchDeg":-87.0,"rollDeg":0},"walls":[{"id":"backWall","z":580.0,"pitchDeg":0,"rollDeg":0},{"id":"rightWall","z":315.0,"pitchDeg":0,"rollDeg":-90.0},{"id":"leftWall","z":560.0,"pitchDeg":0,"rollDeg":55.0},{"id":"ceiling","z":1000.0,"pitchDeg":90.0,"rollDeg":0}]}'),Us=JSON.parse('{"camera":{"fov":45},"floor":{"z":205.0,"pitchDeg":-87.0,"rollDeg":0},"walls":[{"id":"backWall","z":570.0,"pitchDeg":0,"rollDeg":0},{"id":"rightWall","z":315.0,"pitchDeg":0,"rollDeg":-90.0},{"id":"leftWall","z":1000.0,"pitchDeg":0,"rollDeg":90.0},{"id":"ceiling","z":1000.0,"pitchDeg":90.0,"rollDeg":0}]}'),Uo=JSON.parse('{"camera":{"fov":45},"floor":{"z":185.0,"pitchDeg":-90.0,"rollDeg":0},"walls":[{"id":"backWall","z":550.0,"pitchDeg":0,"rollDeg":0},{"id":"rightWall","z":220.0,"pitchDeg":0,"rollDeg":-90.0},{"id":"leftWall","z":218.0,"pitchDeg":0,"rollDeg":90.0},{"id":"ceiling","z":185.0,"pitchDeg":90.0,"rollDeg":0}]}');function Ul(e){return{camera:e.camera,sides:[{...e.floor,id:"floor"},...e.walls]}}let Uu=[{id:"room-example-1",image:"https://vizbl.com/assets/room-example-1.jpg",config:Ul(Ua)},{id:"room-example-2",image:"https://vizbl.com/assets/room-example-2.jpg",config:Ul(Us)},{id:"room-example-3",image:"https://vizbl.com/assets/room-example-3.jpg",config:Ul(Uo)}],Uc=["RcSd3KphTyq_JQEjNCqKQA","gu0109ftQmS-UQkwcW010Q","nOfGLIZcRVeU93wOkHWSbg","ozzH5I2kQMW20ao-33C86A","DBA4wR-zT92vjtuOk9varg"];function Ud(){let{t:e}=no();return(0,tE.useMemo)(()=>[{value:0,label:e("mattingOptions.none")},{value:.05,label:`5 ${e("units.cm")}`}],[e])}let Uh=(0,tE.createContext)(null);function Up({children:e,poster:t,width:r,height:i,name:n}){let a=function(){let{t:e}=no();return(0,tE.useMemo)(()=>[{value:.025,label:`2.5 ${e("units.cm")}`},{value:.05,label:`5 ${e("units.cm")}`}],[e])}(),s=Ud(),[o,l]=(0,tE.useState)(Uu),[u,c]=(0,tE.useState)(Uu["0"].id),d=(0,tE.useMemo)(()=>o.find(e=>e.id===u),[o,u]),[h,p]=(0,tE.useState)(null),[f,m]=(0,tE.useState)(a[0].value),[g,v]=(0,tE.useState)(s[0].value),[A,b]=(0,tE.useState)(0),[y,w]=(0,tE.useState)(!1),[x,C]=(0,tE.useState)(null),S=(0,tE.useRef)(null),E=(0,tE.useMemo)(()=>({poster:t,name:n,rooms:o,setRooms:l,room:d,setRoomId:c,material:h,width:r,height:i,frameWidth:f,matting:g,angle:A,isDragging:y,containerRef:x,setMaterial:p,setFrameWidth:m,setMatting:v,setAngle:b,setIsDragging:w,setContainerRef:C,posterRef:S}),[t,n,o,d,h,r,i,f,g,A,x,y,S]);return(0,tI.jsx)(Uh,{value:E,children:e})}function Uf(){let e=(0,tE.use)(Uh);if(!e)throw Error("useRoomViewer must be used within a RoomViewerProvider");return e}function Um({className:e,...t}){let{containerRef:r,material:i,setMaterial:n}=Uf(),{t:a}=no(),s=function({queries:e,...t},r){let i=(e=>{let t=tE.useContext(rq);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t})(void 0),n=tE.useContext(rJ),a=tE.useContext(rK),s=tE.useMemo(()=>e.map(e=>{let t=i.defaultQueryOptions(e);return t._optimisticResults=n?"isRestoring":"optimistic",t}),[e,i,n]);s.forEach(e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!a.isReset()&&(e.retryOnMount=!1)}),tE.useEffect(()=>{a.clearReset()},[a]);let[o]=tE.useState(()=>new rW(i,s,t)),[l,u,c]=o.getOptimisticResult(s,t.combine),d=!n&&!1!==t.subscribed;tE.useSyncExternalStore(tE.useCallback(e=>d?o.subscribe(rn.batchCalls(e)):ro,[o,d]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),tE.useEffect(()=>{o.setQueries(s,t)},[s,t,o]);let h=l.some((e,t)=>rY(s[t],e))?l.flatMap((e,t)=>{let r=s[t];if(r){let t=new rU(i,r);if(rY(r,e))return r$(r,t,a);e.isLoading&&e.isFetching&&!n&&r$(r,t,a)}return[]}):[];if(h.length>0)throw Promise.all(h);let p=l.find((e,t)=>{let r=s[t];return r&&(({result:e,errorResetBoundary:t,throwOnError:r,query:i,suspense:n})=>{var a;return e.isError&&!t.isReset()&&!e.isFetching&&i&&(n&&void 0===e.data||(a=[e.error,i],"function"==typeof r?r(...a):!!r))})({result:e,errorResetBoundary:a,throwOnError:r.throwOnError,query:i.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(p?.error)throw p.error;return u(c())}({queries:Uc.map(e=>({queryKey:((e={})=>[{url:"/obj/Fetch"},...e?[e]:[]])({tinuuid:e}),queryFn:()=>Fy({tinuuid:e})}))}),o=(0,tE.useMemo)(()=>s.map(e=>e.data?.materials?.[0]).filter(e=>!!e),[s]);return(0,tE.useEffect)(()=>{null===i&&o.length>0&&n(o[0])},[i,o,n]),(0,tI.jsxs)(FE,{className:Pg("w-fit",e),...t,children:[(0,tI.jsx)(F_,{className:"text-xs text-text-sub font-medium",children:a("material")}),(0,tI.jsxs)(O9,{value:i?.hid??void 0,onValueChange:e=>{let t=o.find(t=>t.hid===e);t&&n(t)},children:[(0,tI.jsx)(Ue,{className:"w-[145px]",size:"md",children:(0,tI.jsxs)(O7,{placeholder:a("chooseMaterial"),children:[(0,tI.jsx)("div",{className:"size-5 rounded-full",style:{backgroundColor:`#${i?.miniature?.color?.hex}`}}),i?.miniature?.color?.name]})}),(0,tI.jsx)(Ut,{portalContainer:r,children:o.map(e=>(0,tI.jsxs)(Ur,{value:e.hid,children:[(0,tI.jsx)("div",{className:"size-5 rounded-full",style:{backgroundColor:`#${e?.miniature?.color?.hex}`}}),e.miniature?.color?.name]},e.hid))})]})]})}var Ug="rovingFocusGroup.onEntryFocus",Uv={bubbles:!1,cancelable:!0},UA="RovingFocusGroup",[Ub,Uy,Uw]=FT(UA),[Ux,UC]=Px(UA,[Uw]),[US,UE]=Ux(UA),U_=tE.forwardRef((e,t)=>(0,tI.jsx)(Ub.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,tI.jsx)(Ub.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,tI.jsx)(UM,{...e,ref:t})})}));U_.displayName=UA;var UM=tE.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:n=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,h=tE.useRef(null),p=kh(t,h),f=FR(a),[m,g]=PI({prop:s,defaultProp:o??null,onChange:l,caller:UA}),[v,A]=tE.useState(!1),b=PP(u),y=Uy(r),w=tE.useRef(!1),[x,C]=tE.useState(0);return tE.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(Ug,b),()=>e.removeEventListener(Ug,b)},[b]),(0,tI.jsx)(US,{scope:r,orientation:i,dir:f,loop:n,currentTabStopId:m,onItemFocus:tE.useCallback(e=>g(e),[g]),onItemShiftTab:tE.useCallback(()=>A(!0),[]),onFocusableItemAdd:tE.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:tE.useCallback(()=>C(e=>e-1),[]),children:(0,tI.jsx)(Pk.div,{tabIndex:v||0===x?-1:0,"data-orientation":i,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Pw(e.onMouseDown,()=>{w.current=!0}),onFocus:Pw(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(Ug,Uv);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=y().filter(e=>e.focusable);UR([e.find(e=>e.active),e.find(e=>e.id===m),...e].filter(Boolean).map(e=>e.ref.current),c)}}w.current=!1}),onBlur:Pw(e.onBlur,()=>A(!1))})})}),UI="RovingFocusGroupItem",UT=tE.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:n=!1,tabStopId:a,children:s,...o}=e,l=P_(),u=a||l,c=UE(UI,r),d=c.currentTabStopId===u,h=Uy(r),{onFocusableItemAdd:p,onFocusableItemRemove:f,currentTabStopId:m}=c;return tE.useEffect(()=>{if(i)return p(),()=>f()},[i,p,f]),(0,tI.jsx)(Ub.ItemSlot,{scope:r,id:u,focusable:i,active:n,children:(0,tI.jsx)(Pk.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...o,ref:t,onMouseDown:Pw(e.onMouseDown,e=>{i?c.onItemFocus(u):e.preventDefault()}),onFocus:Pw(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:Pw(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var i;let n=(i=e.key,"rtl"!==r?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return UB[n]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){var r,i;"prev"===t&&n.reverse();let a=n.indexOf(e.currentTarget);n=c.loop?(r=n,i=a+1,r.map((e,t)=>r[(i+t)%r.length])):n.slice(a+1)}setTimeout(()=>UR(n))}}),children:"function"==typeof s?s({isCurrentTabStop:d,hasTabStop:null!=m}):s})})});UT.displayName=UI;var UB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function UR(e,t=!1){let r=document.activeElement;for(let i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}var Uk="Tabs",[UP,UD]=Px(Uk,[UC]),UL=UC(),[Uz,UF]=UP(Uk),UN=tE.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,onValueChange:n,defaultValue:a,orientation:s="horizontal",dir:o,activationMode:l="automatic",...u}=e,c=FR(o),[d,h]=PI({prop:i,onChange:n,defaultProp:a??"",caller:Uk});return(0,tI.jsx)(Uz,{scope:r,baseId:P_(),value:d,onValueChange:h,orientation:s,dir:c,activationMode:l,children:(0,tI.jsx)(Pk.div,{dir:c,"data-orientation":s,...u,ref:t})})});UN.displayName=Uk;var UO="TabsList",UU=tE.forwardRef((e,t)=>{let{__scopeTabs:r,loop:i=!0,...n}=e,a=UF(UO,r),s=UL(r);return(0,tI.jsx)(U_,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:i,children:(0,tI.jsx)(Pk.div,{role:"tablist","aria-orientation":a.orientation,...n,ref:t})})});UU.displayName=UO;var UQ="TabsTrigger",UH=tE.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,disabled:n=!1,...a}=e,s=UF(UQ,r),o=UL(r),l=UV(s.baseId,i),u=UW(s.baseId,i),c=i===s.value;return(0,tI.jsx)(UT,{asChild:!0,...o,focusable:!n,active:c,children:(0,tI.jsx)(Pk.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:l,...a,ref:t,onMouseDown:Pw(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(i)}),onKeyDown:Pw(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(i)}),onFocus:Pw(e.onFocus,()=>{let e="manual"!==s.activationMode;c||n||!e||s.onValueChange(i)})})})});UH.displayName=UQ;var UG="TabsContent",Uj=tE.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,forceMount:n,children:a,...s}=e,o=UF(UG,r),l=UV(o.baseId,i),u=UW(o.baseId,i),c=i===o.value,d=tE.useRef(c);return tE.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,tI.jsx)(PJ,{present:n||c,children:({present:r})=>(0,tI.jsx)(Pk.div,{"data-state":c?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":l,hidden:!r,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:r&&a})})});function UV(e,t){return`${e}-trigger-${t}`}function UW(e,t){return`${e}-content-${t}`}Uj.displayName=UG;let Uq=tE.createContext(null),UX=tE.createContext(null);function UJ({value:e,defaultValue:t,onValueChange:r,...i}){let[n,a]=tE.useState(t),s=e??n,o=tE.useMemo(()=>({value:s}),[s]),l=tE.useCallback(t=>{r?.(t),void 0===e&&a(t)},[r,e]);return(0,tI.jsx)(Uq,{value:o,children:(0,tI.jsx)(UN,{"data-slot":"tabs",value:s,onValueChange:l,...i})})}let UK=PA("cursor-pointer group inline-flex items-center justify-center shrink-0 whitespace-nowrap outline-none transition-colors relative z-10 rounded-lg text-text-base [&_svg]:text-icons-normal [&_svg]:transition-colors hover:text-text-dark hover:[&_svg]:text-icons-dark active:rounded-lg active:bg-background-base-3 active:text-text-dark active:[&_svg]:text-icons-dark data-[state=active]:rounded-lg data-[state=active]:bg-background-white data-[state=active]:text-text-dark data-[state=active]:[&_svg]:text-icons-dark disabled:pointer-events-none disabled:opacity-50 focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",{variants:{size:{default:"h-7 px-2 typo-button-normal [&_svg]:size-4",lg:"h-9 px-3 typo-button-big [&_svg]:size-6"}},defaultVariants:{size:"default"}});function UY({className:e,children:t,...r}){let i=tE.use(Uq),n=tE.useRef(null),a=tE.useRef(new Map),s=tE.useRef(null),o=tE.useCallback(()=>{let e=s.current;if(!e)return;let t=i?.value;if(!t){e.style.opacity="0";return}let r=n.current,o=a.current.get(t);if(!r||!o){e.style.opacity="0";return}let l=r.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.left-l.left,d=u.top-l.top,h=l.width-(c+u.width),p=l.height-(d+u.height);e.style.clipPath=`inset(${d}px ${h}px ${p}px ${c}px round 8px)`,e.style.opacity="1"},[i?.value]),l=tE.useCallback((e,t)=>{t?a.current.set(e,t):a.current.delete(e),requestAnimationFrame(o)},[o]);tE.useLayoutEffect(()=>{o()},[o]),tE.useEffect(()=>{let e=n.current;if(!e||"undefined"==typeof ResizeObserver)return;let t=new ResizeObserver(()=>o());t.observe(e);let r=i?.value;if(r){let e=a.current.get(r);e&&t.observe(e)}return()=>{t.disconnect()}},[i?.value,o]);let u=tE.useMemo(()=>({registerTrigger:l}),[l]);return(0,tI.jsx)(UU,{ref:n,"data-slot":"tabs-list",className:Pg("relative inline-flex items-center rounded-xl bg-background-base-2 p-1",e),...r,children:(0,tI.jsxs)(UX,{value:u,children:[(0,tI.jsx)("div",{ref:s,"aria-hidden":!0,"data-slot":"tabs-indicator",className:"pointer-events-none absolute inset-0 z-0 rounded-xl bg-background-white opacity-0 transition-[clip-path,opacity] duration-[250ms] ease-out motion-reduce:transition-none"}),t]})})}function U$({className:e,size:t,children:r,value:i,...n}){let a=tE.use(UX),s=tE.useRef(null),o=Pg("relative z-10 inline-flex items-center justify-center","lg"===t?"gap-1.5":"gap-1");return tE.useLayoutEffect(()=>{if(a&&i)return a.registerTrigger(i,s.current),()=>{a.registerTrigger(i,null)}},[a,i]),(0,tI.jsx)(UH,{ref:s,"data-slot":"tabs-trigger",className:Pg(UK({size:t}),"data-[state=active]:bg-transparent",e),value:i,...n,children:(0,tI.jsx)("span",{"data-slot":"tabs-trigger-content",className:o,children:r})})}function UZ({className:e,...t}){let{matting:r,setMatting:i}=Uf(),{t:n}=no(),a=Ud();return(0,tI.jsxs)(FE,{className:Pg("w-fit",e),...t,children:[(0,tI.jsx)(F_,{className:"text-xs text-text-sub font-medium",children:n("matting")}),(0,tI.jsx)(UJ,{value:r.toString(),onValueChange:e=>i(Number(e)),children:(0,tI.jsx)(UY,{children:a.map(e=>(0,tI.jsx)(U$,{value:e.value.toString(),children:e.label},e.value))})})]})}UY.displayName=UU.displayName,U$.displayName=UH.displayName,Uj.displayName;var U0="Radio",[U1,U2]=Px(U0),[U3,U4]=U1(U0),U5=tE.forwardRef((e,t)=>{let{__scopeRadio:r,name:i,checked:n=!1,required:a,disabled:s,value:o="on",onCheck:l,form:u,...c}=e,[d,h]=tE.useState(null),p=kh(t,e=>h(e)),f=tE.useRef(!1),m=!d||u||!!d.closest("form");return(0,tI.jsxs)(U3,{scope:r,checked:n,disabled:s,children:[(0,tI.jsx)(Pk.button,{type:"button",role:"radio","aria-checked":n,"data-state":U7(n),"data-disabled":s?"":void 0,disabled:s,value:o,...c,ref:p,onClick:Pw(e.onClick,e=>{n||l?.(),m&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})}),m&&(0,tI.jsx)(U9,{control:d,bubbles:!f.current,name:i,value:o,checked:n,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});U5.displayName=U0;var U8="RadioIndicator",U6=tE.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:i,...n}=e,a=U4(U8,r);return(0,tI.jsx)(PJ,{present:i||a.checked,children:(0,tI.jsx)(Pk.span,{"data-state":U7(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})})});U6.displayName=U8;var U9=tE.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:i=!0,...n},a)=>{let s=tE.useRef(null),o=kh(s,a),l=Ot(r),u=NW(t);return tE.useEffect(()=>{let e=s.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let n=new Event("click",{bubbles:i});t.call(e,r),e.dispatchEvent(n)}},[l,r,i]),(0,tI.jsx)(Pk.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...n,tabIndex:-1,ref:o,style:{...n.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function U7(e){return e?"checked":"unchecked"}U9.displayName="RadioBubbleInput";var Qe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Qt="RadioGroup",[Qr,Qi]=Px(Qt,[UC,U2]),Qn=UC(),Qa=U2(),[Qs,Qo]=Qr(Qt),Ql=tE.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:i,defaultValue:n,value:a,required:s=!1,disabled:o=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...h}=e,p=Qn(r),f=FR(u),[m,g]=PI({prop:a,defaultProp:n??null,onChange:d,caller:Qt});return(0,tI.jsx)(Qs,{scope:r,name:i,required:s,disabled:o,value:m,onValueChange:g,children:(0,tI.jsx)(U_,{asChild:!0,...p,orientation:l,dir:f,loop:c,children:(0,tI.jsx)(Pk.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":o?"":void 0,dir:f,...h,ref:t})})})});Ql.displayName=Qt;var Qu="RadioGroupItem",Qc=tE.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:i,...n}=e,a=Qo(Qu,r),s=a.disabled||i,o=Qn(r),l=Qa(r),u=tE.useRef(null),c=kh(t,u),d=a.value===n.value,h=tE.useRef(!1);return tE.useEffect(()=>{let e=e=>{Qe.includes(e.key)&&(h.current=!0)},t=()=>h.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,tI.jsx)(UT,{asChild:!0,...o,focusable:!s,active:d,children:(0,tI.jsx)(U5,{disabled:s,required:a.required,checked:d,...l,...n,name:a.name,ref:c,onCheck:()=>a.onValueChange(n.value),onKeyDown:Pw(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:Pw(n.onFocus,()=>{h.current&&u.current?.click()})})})});Qc.displayName=Qu;var Qd=tE.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...i}=e,n=Qa(r);return(0,tI.jsx)(U6,{...n,...i,ref:t})});function Qh({className:e,...t}){return(0,tI.jsx)(Ql,{"data-slot":"radio-group",className:Pg("grid gap-3",e),...t})}function Qp({checked:e,className:t,...r}){return(0,tI.jsx)("div",{className:Pg("absolute top-1/2 left-1/2 size-6 -translate-x-1/2 -translate-y-1/2","flex items-center justify-center rounded-full",e?"bg-icons-green":"bg-background-base-2",t),...r,children:(0,tI.jsx)(is,{className:"text-constant-white size-3.5",strokeWidth:3.5})})}function Qf({className:e,variant:t="default",...r}){return(0,tI.jsxs)(Qc,{"data-slot":"radio-group-item",className:Pg("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border transition-[color] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50","check"===t&&"size-6",e),...r,children:["check"===t&&(0,tI.jsx)("div",{className:"relative",children:(0,tI.jsx)(Qp,{})}),(0,tI.jsx)(Qd,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:"check"===t?(0,tI.jsx)(Qp,{checked:!0}):(0,tI.jsx)(io,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})]})}function Qm({className:e}){let{rooms:t,room:r,setRoomId:i}=Uf(),{t:n}=no(),[a,s]=(0,tE.useState)(null),[o,l]=(0,tE.useState)(!0),[u,c]=(0,tE.useState)(!1),[d,h]=(0,tE.useState)(!1),p=(0,tE.useCallback)(e=>{l(e.isBeginning),c(e.isEnd),h(e.isLocked)},[]),f=(0,tE.useCallback)(e=>{s(e),p(e)},[p]);return(0,tI.jsxs)("div",{className:Pg("relative w-full overflow-hidden",e),children:[(0,tI.jsx)(Qh,{value:r.id,onValueChange:i,children:(0,tI.jsx)(pS,{className:"w-full py-5",slidesPerView:"auto",spaceBetween:12,slidesOffsetBefore:24,slidesOffsetAfter:75,onSwiper:f,onReachBeginning:()=>l(!0),onReachEnd:()=>c(!0),onFromEdge:p,onLock:()=>h(!0),onUnlock:()=>h(!1),onResize:p,children:t.map(e=>(0,tI.jsx)(pE,{className:Pg("w-25! h-19! transition-transform duration-200",e.id!==r.id&&"hover:scale-110"),children:(0,tI.jsxs)(F_,{htmlFor:`room-${e.id}`,className:"relative size-full rounded-[0.75rem] overflow-hidden",children:[(0,tI.jsx)("img",{src:e.image,alt:"",className:"size-full object-cover"}),(0,tI.jsx)(Qf,{value:e.id,id:`room-${e.id}`,variant:"check",className:Pg("absolute top-1.75 right-1.75",{"sr-only":e.id!==r.id})})]})},e.id))})}),(0,tI.jsxs)(Py,{className:Pg("absolute top-1/2 left-8 -translate-y-1/2 z-1",{hidden:o||d}),variant:"contrast",size:"icon",onClick:()=>a?.slidePrev(),children:[(0,tI.jsx)(il,{}),(0,tI.jsx)("span",{className:"sr-only",children:n("previousSlide")})]}),(0,tI.jsxs)(Py,{className:Pg("absolute top-1/2 right-8 -translate-y-1/2 z-1",{hidden:u||d}),variant:"contrast",size:"icon",onClick:()=>a?.slideNext(),children:[(0,tI.jsx)(iu,{}),(0,tI.jsx)("span",{className:"sr-only",children:n("nextSlide")})]})]})}function Qg({className:e,...t}){return(0,tI.jsxs)("div",{className:Pg("grid grid-cols-[1fr_auto] items-end pl-0 overflow-hidden",e),...t,children:[(0,tI.jsx)(Qm,{}),(0,tI.jsxs)("div",{className:"hidden flex-row gap-5 pr-6 pb-5 md:flex",children:[(0,tI.jsx)(Um,{}),(0,tI.jsx)(UZ,{})]})]})}function Qv({className:e,...t}){let{t:r}=no();return(0,tI.jsxs)("div",{className:Pg("group inline-flex gap-2 text-sm text-muted-foreground","hover:text-text-dark","transition-colors duration-200 ease-in-out",e),...t,children:[(0,tI.jsx)("div",{className:"size-5 flex items-center justify-center rounded-full bg-icons-light group-hover:bg-icons-red transition-colors duration-200 ease-in-out",children:(0,tI.jsx)(O6,{className:"size-4.25 text-icons-white"})}),r("poweredBy")]})}function QA({className:e,...t}){let{name:r}=Uf();return(0,tI.jsxs)("div",{className:Pg("h-16 grid gap-5 items-center px-6 sm:grid-cols-3",e),...t,children:[(0,tI.jsx)("div",{className:"truncate",children:r}),(0,tI.jsx)("div",{className:"hidden justify-center sm:flex",children:(0,tI.jsx)(Qv,{})}),(0,tI.jsx)("div",{className:"hidden sm:block"})]})}Qd.displayName="RadioGroupIndicator";var Qb="Popover",[Qy,Qw]=Px(Qb,[NJ]),Qx=NJ(),[QC,QS]=Qy(Qb),QE=e=>{let{__scopePopover:t,children:r,open:i,defaultOpen:n,onOpenChange:a,modal:s=!1}=e,o=Qx(t),l=tE.useRef(null),[u,c]=tE.useState(!1),[d,h]=PI({prop:i,defaultProp:n??!1,onChange:a,caller:Qb});return(0,tI.jsx)(N$,{...o,children:(0,tI.jsx)(QC,{scope:t,contentId:P_(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:tE.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:u,onCustomAnchorAdd:tE.useCallback(()=>c(!0),[]),onCustomAnchorRemove:tE.useCallback(()=>c(!1),[]),modal:s,children:r})})};QE.displayName=Qb;var Q_="PopoverAnchor";tE.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,n=QS(Q_,r),a=Qx(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:o}=n;return tE.useEffect(()=>(s(),()=>o()),[s,o]),(0,tI.jsx)(N0,{...a,...i,ref:t})}).displayName=Q_;var QM="PopoverTrigger",QI=tE.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,n=QS(QM,r),a=Qx(r),s=kh(t,n.triggerRef),o=(0,tI.jsx)(Pk.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":QU(n.open),...i,ref:s,onClick:Pw(e.onClick,n.onOpenToggle)});return n.hasCustomAnchor?o:(0,tI.jsx)(N0,{asChild:!0,...a,children:o})});QI.displayName=QM;var QT="PopoverPortal",[QB,QR]=Qy(QT,{forceMount:void 0}),Qk=e=>{let{__scopePopover:t,forceMount:r,children:i,container:n}=e,a=QS(QT,t);return(0,tI.jsx)(QB,{scope:t,forceMount:r,children:(0,tI.jsx)(PJ,{present:r||a.open,children:(0,tI.jsx)(PX,{asChild:!0,container:n,children:i})})})};Qk.displayName=QT;var QP="PopoverContent",QD=tE.forwardRef((e,t)=>{let r=QR(QP,e.__scopePopover),{forceMount:i=r.forceMount,...n}=e,a=QS(QP,e.__scopePopover);return(0,tI.jsx)(PJ,{present:i||a.open,children:a.modal?(0,tI.jsx)(Qz,{...n,ref:t}):(0,tI.jsx)(QF,{...n,ref:t})})});QD.displayName=QP;var QL=PT("PopoverContent.RemoveScroll"),Qz=tE.forwardRef((e,t)=>{let r=QS(QP,e.__scopePopover),i=tE.useRef(null),n=kh(t,i),a=tE.useRef(!1);return tE.useEffect(()=>{let e=i.current;if(e)return DL(e)},[]),(0,tI.jsx)(DI,{as:QL,allowPinchZoom:!0,children:(0,tI.jsx)(QN,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Pw(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Pw(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:Pw(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),QF=tE.forwardRef((e,t)=>{let r=QS(QP,e.__scopePopover),i=tE.useRef(!1),n=tE.useRef(!1);return(0,tI.jsx)(QN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));let a=t.target;r.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})}),QN=tE.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:i,onOpenAutoFocus:n,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,h=QS(QP,r),p=Qx(r);return P$(),(0,tI.jsx)(PH,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:n,onUnmountAutoFocus:a,children:(0,tI.jsx)(Pz,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:(0,tI.jsx)(N4,{"data-state":QU(h.open),role:"dialog",id:h.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),QO="PopoverClose";function QU(e){return e?"open":"closed"}function QQ({...e}){return(0,tI.jsx)(QE,{"data-slot":"popover",...e})}function QH({...e}){return(0,tI.jsx)(QI,{"data-slot":"popover-trigger",...e})}function QG({className:e,align:t="center",sideOffset:r=4,portalContainer:i,...n}){return(0,tI.jsx)(Qk,{container:i,children:(0,tI.jsx)(QD,{"data-slot":"popover-content",align:t,sideOffset:r,className:Pg("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}tE.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,n=QS(QO,r);return(0,tI.jsx)(Pk.button,{type:"button",...i,ref:t,onClick:Pw(e.onClick,()=>n.onOpenChange(!1))})}).displayName=QO,tE.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,n=Qx(r);return(0,tI.jsx)(N6,{...n,...i,ref:t})}).displayName="PopoverArrow";var Qj=["PageUp","PageDown"],QV=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],QW={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Qq="Slider",[QX,QJ,QK]=FT(Qq),[QY,Q$]=Px(Qq,[QK]),[QZ,Q0]=QY(Qq),Q1=tE.forwardRef((e,t)=>{let{name:r,min:i=0,max:n=100,step:a=1,orientation:s="horizontal",disabled:o=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[i],value:c,onValueChange:d=()=>{},onValueCommit:h=()=>{},inverted:p=!1,form:f,...m}=e,g=tE.useRef(new Set),v=tE.useRef(0),A="horizontal"===s,[b=[],y]=PI({prop:c,defaultProp:u,onChange:e=>{let t=[...g.current];t[v.current]?.focus(),d(e)}}),w=tE.useRef(b);function x(e,t,{commit:r}={commit:!1}){let s,o=(String(a).split(".")[1]||"").length,u=FI(Math.round((Math.round((e-i)/a)*a+i)*(s=Math.pow(10,o)))/s,[i,n]);y((e=[])=>{let i=function(e=[],t,r){let i=[...e];return i[r]=t,i.sort((e,t)=>e-t)}(e,u,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=t;return!0}(i,l*a))return e;{v.current=i.indexOf(u);let t=String(i)!==String(e);return t&&r&&h(i),t?i:e}})}return(0,tI.jsx)(QZ,{scope:e.__scopeSlider,name:r,disabled:o,min:i,max:n,valueIndexToChangeRef:v,thumbs:g.current,values:b,orientation:s,form:f,children:(0,tI.jsx)(QX.Provider,{scope:e.__scopeSlider,children:(0,tI.jsx)(QX.Slot,{scope:e.__scopeSlider,children:(0,tI.jsx)(A?Q4:Q5,{"aria-disabled":o,"data-disabled":o?"":void 0,...m,ref:t,onPointerDown:Pw(m.onPointerDown,()=>{o||(w.current=b)}),min:i,max:n,inverted:p,onSlideStart:o?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),i=Math.min(...r);return r.indexOf(i)}(b,e);x(e,t)},onSlideMove:o?void 0:function(e){x(e,v.current)},onSlideEnd:o?void 0:function(){let e=w.current[v.current];b[v.current]!==e&&h(b)},onHomeKeyDown:()=>!o&&x(i,0,{commit:!0}),onEndKeyDown:()=>!o&&x(n,b.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!o){let r=Qj.includes(e.key)||e.shiftKey&&QV.includes(e.key),i=v.current;x(b[i]+a*(r?10:1)*t,i,{commit:!0})}}})})})})});Q1.displayName=Qq;var[Q2,Q3]=QY(Qq,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Q4=tE.forwardRef((e,t)=>{let{min:r,max:i,dir:n,inverted:a,onSlideStart:s,onSlideMove:o,onSlideEnd:l,onStepKeyDown:u,...c}=e,[d,h]=tE.useState(null),p=kh(t,e=>h(e)),f=tE.useRef(void 0),m=FR(n),g="ltr"===m,v=g&&!a||!g&&a;function A(e){let t=f.current||d.getBoundingClientRect(),n=Hs([0,t.width],v?[r,i]:[i,r]);return f.current=t,n(e-t.left)}return(0,tI.jsx)(Q2,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:(0,tI.jsx)(Q8,{dir:m,"data-orientation":"horizontal",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=A(e.clientX);s?.(t)},onSlideMove:e=>{let t=A(e.clientX);o?.(t)},onSlideEnd:()=>{f.current=void 0,l?.()},onStepKeyDown:e=>{let t=QW[v?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})}),Q5=tE.forwardRef((e,t)=>{let{min:r,max:i,inverted:n,onSlideStart:a,onSlideMove:s,onSlideEnd:o,onStepKeyDown:l,...u}=e,c=tE.useRef(null),d=kh(t,c),h=tE.useRef(void 0),p=!n;function f(e){let t=h.current||c.current.getBoundingClientRect(),n=Hs([0,t.height],p?[i,r]:[r,i]);return h.current=t,n(e-t.top)}return(0,tI.jsx)(Q2,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:(0,tI.jsx)(Q8,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=f(e.clientY);a?.(t)},onSlideMove:e=>{let t=f(e.clientY);s?.(t)},onSlideEnd:()=>{h.current=void 0,o?.()},onStepKeyDown:e=>{let t=QW[p?"from-bottom":"from-top"].includes(e.key);l?.({event:e,direction:t?-1:1})}})})}),Q8=tE.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:i,onSlideMove:n,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:o,onStepKeyDown:l,...u}=e,c=Q0(Qq,r);return(0,tI.jsx)(Pk.span,{...u,ref:t,onKeyDown:Pw(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(o(e),e.preventDefault()):Qj.concat(QV).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:Pw(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),c.thumbs.has(t)?t.focus():i(e)}),onPointerMove:Pw(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&n(e)}),onPointerUp:Pw(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),Q6="SliderTrack",Q9=tE.forwardRef((e,t)=>{let{__scopeSlider:r,...i}=e,n=Q0(Q6,r);return(0,tI.jsx)(Pk.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...i,ref:t})});Q9.displayName=Q6;var Q7="SliderRange",He=tE.forwardRef((e,t)=>{let{__scopeSlider:r,...i}=e,n=Q0(Q7,r),a=Q3(Q7,r),s=kh(t,tE.useRef(null)),o=n.values.length,l=n.values.map(e=>Ha(e,n.min,n.max)),u=o>1?Math.min(...l):0,c=100-Math.max(...l);return(0,tI.jsx)(Pk.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...i,ref:s,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:c+"%"}})});He.displayName=Q7;var Ht="SliderThumb",Hr=tE.forwardRef((e,t)=>{let r=QJ(e.__scopeSlider),[i,n]=tE.useState(null),a=kh(t,e=>n(e)),s=tE.useMemo(()=>i?r().findIndex(e=>e.ref.current===i):-1,[r,i]);return(0,tI.jsx)(Hi,{...e,ref:a,index:s})}),Hi=tE.forwardRef((e,t)=>{var r,i,n,a,s;let o,l,{__scopeSlider:u,index:c,name:d,...h}=e,p=Q0(Ht,u),f=Q3(Ht,u),[m,g]=tE.useState(null),v=kh(t,e=>g(e)),A=!m||p.form||!!m.closest("form"),b=NW(m),y=p.values[c],w=void 0===y?0:Ha(y,p.min,p.max),x=(r=c,(i=p.values.length)>2?`Value ${r+1} of ${i}`:2===i?["Minimum","Maximum"][r]:void 0),C=b?.[f.size],S=C?(n=C,a=w,s=f.direction,l=Hs([0,50],[0,o=n/2]),(o-l(a)*s)*s):0;return tE.useEffect(()=>{if(m)return p.thumbs.add(m),()=>{p.thumbs.delete(m)}},[m,p.thumbs]),(0,tI.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[f.startEdge]:`calc(${w}% + ${S}px)`},children:[(0,tI.jsx)(QX.ItemSlot,{scope:e.__scopeSlider,children:(0,tI.jsx)(Pk.span,{role:"slider","aria-label":e["aria-label"]||x,"aria-valuemin":p.min,"aria-valuenow":y,"aria-valuemax":p.max,"aria-orientation":p.orientation,"data-orientation":p.orientation,"data-disabled":p.disabled?"":void 0,tabIndex:p.disabled?void 0:0,...h,ref:v,style:void 0===y?{display:"none"}:e.style,onFocus:Pw(e.onFocus,()=>{p.valueIndexToChangeRef.current=c})})}),A&&(0,tI.jsx)(Hn,{name:d??(p.name?p.name+(p.values.length>1?"[]":""):void 0),form:p.form,value:y},c)]})});Hr.displayName=Ht;var Hn=tE.forwardRef(({__scopeSlider:e,value:t,...r},i)=>{let n=tE.useRef(null),a=kh(n,i),s=Ot(t);return tE.useEffect(()=>{let e=n.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(s!==t&&r){let i=new Event("input",{bubbles:!0});r.call(e,t),e.dispatchEvent(i)}},[s,t]),(0,tI.jsx)(Pk.input,{style:{display:"none"},...r,ref:a,defaultValue:t})});function Ha(e,t,r){return FI(100/(r-t)*(e-t),[0,100])}function Hs(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(r-e[0])}}function Ho({className:e,defaultValue:t,value:r,min:i=0,max:n=100,...a}){let s=tE.useMemo(()=>Array.isArray(r)?r:Array.isArray(t)?t:[i,n],[r,t,i,n]);return(0,tI.jsxs)(Q1,{"data-slot":"slider",defaultValue:t,value:r,min:i,max:n,className:Pg("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...a,children:[(0,tI.jsx)(Q9,{"data-slot":"slider-track",className:Pg("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:(0,tI.jsx)(He,{"data-slot":"slider-range",className:Pg("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:s.length},(e,t)=>(0,tI.jsx)(Hr,{"data-slot":"slider-thumb",className:"border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},t))]})}Hn.displayName="RadioBubbleInput";let Hl="undefined"==typeof window;function Hu(e,{defaultValue:t=!1,initializeWithValue:r=!0}={}){let[i,n]=tE.useState(()=>{if(r)return Hl?t:window.matchMedia(e).matches;return t});return tE.useEffect(()=>{let t=window.matchMedia(e),r=()=>{n(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e]),i}let Hc=(e,t)=>{if("number"==typeof e){if(3===t)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|240&e)/255,b:(15&e|e<<4&240)/255};if(4===t)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|240&e)/255,alpha:(15&e|e<<4&240)/255};if(6===t)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(255&e)/255};if(8===t)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(255&e)/255}}},Hd={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32},Hh=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Hp="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Hf=`${Hp}%`,Hm=`(?:${Hp}%|${Hp})`,Hg=`(?:${Hp}%|${Hp}|none)`,Hv=`(?:${Hp}(deg|grad|rad|turn)|${Hp})`,HA="\\s*,\\s*";RegExp("^"+Hg+"$");let Hb=RegExp(`^rgba?\\(\\s*${Hp}${HA}${Hp}${HA}${Hp}\\s*(?:,\\s*${Hm}\\s*)?\\)$`),Hy=RegExp(`^rgba?\\(\\s*${Hf}${HA}${Hf}${HA}${Hf}\\s*(?:,\\s*${Hm}\\s*)?\\)$`),Hw=(e="rgb")=>t=>{let r;return void 0!==(t=void 0===(r=t)?void 0:"object"!=typeof r?HV(r):void 0!==r.mode?r:e?{...r,mode:e}:void 0)?t.mode===e?t:Hx[t.mode][e]?Hx[t.mode][e](t):"rgb"===e?Hx[t.mode].rgb(t):Hx.rgb[e](Hx[t.mode].rgb(t)):void 0},Hx={},HC={},HS=[],HE={},H_=e=>e,HM=e=>(Hx[e.mode]={...Hx[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{Hx[t]||(Hx[t]={}),Hx[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(void 0===e.ranges[t]&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);"function"==typeof e.interpolate[t]&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=H_)}),HC[e.mode]=e,(e.parse||[]).forEach(t=>{HI(t,e.mode)}),Hw(e.mode)),HI=(e,t)=>{if("string"==typeof e){if(!t)throw Error("'mode' required when 'parser' is a string");HE[e]=t}else"function"==typeof e&&0>HS.indexOf(e)&&HS.push(e)},HT=/[^\x00-\x7F]|[a-zA-Z_]/,HB=/[^\x00-\x7F]|[-\w]/,HR="function",Hk="ident",HP="number",HD="percentage",HL="none",Hz="alpha",HF=0;function HN(e){let t=e[HF],r=e[HF+1];return"-"===t||"+"===t?/\d/.test(r)||"."===r&&/\d/.test(e[HF+2]):"."===t?/\d/.test(r):/\d/.test(t)}function HO(e){if(HF>=e.length)return!1;let t=e[HF];if(HT.test(t))return!0;if("-"===t){if(e.length-HF<2)return!1;let t=e[HF+1];if("-"===t||HT.test(t))return!0}return!1}let HU={deg:1,rad:180/Math.PI,grad:.9,turn:360};function HQ(e){let t="";if(("-"===e[HF]||"+"===e[HF])&&(t+=e[HF++]),t+=HH(e),"."===e[HF]&&/\d/.test(e[HF+1])&&(t+=e[HF++]+HH(e)),("e"===e[HF]||"E"===e[HF])&&(("-"===e[HF+1]||"+"===e[HF+1])&&/\d/.test(e[HF+2])?t+=e[HF++]+e[HF++]+HH(e):/\d/.test(e[HF+1])&&(t+=e[HF++]+HH(e))),HO(e)){let r=HG(e);return"deg"===r||"rad"===r||"turn"===r||"grad"===r?{type:"hue",value:t*HU[r]}:void 0}return"%"===e[HF]?(HF++,{type:HD,value:+t}):{type:HP,value:+t}}function HH(e){let t="";for(;/\d/.test(e[HF]);)t+=e[HF++];return t}function HG(e){let t="";for(;HF<e.length&&HB.test(e[HF]);)t+=e[HF++];return t}function Hj(e,t){let r,i=[];for(;e._i<e.length;){if((r=e[e._i++]).type===HL||r.type===HP||r.type===Hz||r.type===HD||t&&"hue"===r.type){i.push(r);continue}if(")"===r.type){if(e._i<e.length)return;continue}return}if(!(i.length<3)&&!(i.length>4)){if(4===i.length){if(i[3].type!==Hz)return;i[3]=i[3].value}return 3===i.length&&i.push({type:HL,value:void 0}),i.every(e=>e.type!==Hz)?i:void 0}}let HV=e=>{let t;if("string"!=typeof e)return;let r=function(e=""){let t,r=e.trim(),i=[];for(HF=0;HF<r.length;){if("\n"===(t=r[HF++])||" "===t||" "===t){for(;HF<r.length&&("\n"===r[HF]||" "===r[HF]||" "===r[HF]);)HF++;continue}if(","===t)return;if(")"===t){i.push({type:")"});continue}if("+"===t){if(HF--,HN(r)){i.push(HQ(r));continue}return}if("-"===t){if(HF--,HN(r)){i.push(HQ(r));continue}if(HO(r)){i.push({type:Hk,value:HG(r)});continue}return}if("."===t){if(HF--,HN(r)){i.push(HQ(r));continue}return}if("/"===t){let e;for(;HF<r.length&&("\n"===r[HF]||" "===r[HF]||" "===r[HF]);)HF++;if(HN(r)&&"hue"!==(e=HQ(r)).type){i.push({type:Hz,value:e});continue}if(HO(r)&&"none"===HG(r)){i.push({type:Hz,value:{type:HL,value:void 0}});continue}return}if(/\d/.test(t)){HF--,i.push(HQ(r));continue}if(HT.test(t)){HF--,i.push(function(e){let t=HG(e);return"("===e[HF]?(HF++,{type:HR,value:t}):"none"===t?{type:HL,value:void 0}:{type:Hk,value:t}}(r));continue}return}return i}(e),i=r?function(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==HR)return;let i=Hj(e,t);if(i)return i.unshift(r.value),i}(r,!0):void 0,n=0,a=HS.length;for(;n<a;)if(void 0!==(t=HS[n++](e,i)))return t;return r?function(e){e._i=0;let t=e[e._i++];if(!t||t.type!==HR||"color"!==t.value||(t=e[e._i++]).type!==Hk)return;let r=HE[t.value];if(!r)return;let i={mode:r},n=Hj(e,!1);if(!n)return;let a=HC[r].channels;for(let e=0,t,r;e<a.length;e++)t=n[e],r=a[e],t.type!==HL&&(i[r]=t.type===HP?t.value:t.value/100,"alpha"===r&&(i[r]=Math.max(0,Math.min(1,i[r]))));return i}(r):void 0},HW=(eh=(e,t,r)=>e+r*(t-e),e=>{let t=(e=>{let t=[];for(let r=0;r<e.length-1;r++){let i=e[r],n=e[r+1];void 0===i&&void 0===n?t.push(void 0):void 0!==i&&void 0!==n?t.push([i,n]):t.push(void 0!==i?[i,i]:[n,n])}return t})(e);return e=>{let r=e*t.length,i=e>=1?t.length-1:Math.max(Math.floor(r),0),n=t[i];return void 0===n?void 0:eh(n[0],n[1],r-i)}}),Hq=e=>{let t=!1,r=e.map(e=>void 0!==e?(t=!0,e):1);return t?r:e},HX={mode:"rgb",channels:["r","g","b","alpha"],parse:[function(e,t){if(!t||"rgb"!==t[0]&&"rgba"!==t[0])return;let r={mode:"rgb"},[,i,n,a,s]=t;if("hue"!==i.type&&"hue"!==n.type&&"hue"!==a.type)return i.type!==HL&&(r.r=i.type===HP?i.value/255:i.value/100),n.type!==HL&&(r.g=n.type===HP?n.value/255:n.value/100),a.type!==HL&&(r.b=a.type===HP?a.value/255:a.value/100),s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r},e=>{let t;return(t=e.match(Hh))?Hc(parseInt(t[1],16),t[1].length):void 0},e=>{let t,r={mode:"rgb"};if(t=e.match(Hb))void 0!==t[1]&&(r.r=t[1]/255),void 0!==t[2]&&(r.g=t[2]/255),void 0!==t[3]&&(r.b=t[3]/255);else{if(!(t=e.match(Hy)))return;void 0!==t[1]&&(r.r=t[1]/100),void 0!==t[2]&&(r.g=t[2]/100),void 0!==t[3]&&(r.b=t[3]/100)}return void 0!==t[4]?r.alpha=Math.max(0,Math.min(1,t[4]/100)):void 0!==t[5]&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},e=>Hc(Hd[e.toLowerCase()],6),e=>"transparent"===e?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,"srgb"],serialize:"srgb",interpolate:{r:HW,g:HW,b:HW,alpha:{use:HW,fixup:Hq}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},HJ=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),HK=e=>{let t=HJ(e.r),r=HJ(e.g),i=HJ(e.b),n={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*i};return void 0!==e.alpha&&(n.alpha=e.alpha),n},HY=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),H$=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"a98",r:HY(2.0415879038107465*e-.5650069742788597*t-.3447313507783297*r),g:HY(-.9692436362808798*e+1.8759675015077206*t+.0415550574071756*r),b:HY(.0134442806320312*e-.1183623922310184*t+1.0151749943912058*r)};return void 0!==i&&(n.alpha=i),n},HZ=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},H0=({r:e,g:t,b:r,alpha:i})=>{let n={mode:"lrgb",r:HZ(e),g:HZ(t),b:HZ(r)};return void 0!==i&&(n.alpha=i),n},H1=e=>{let{r:t,g:r,b:i,alpha:n}=H0(e),a={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*i,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*i,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*i};return void 0!==n&&(a.alpha=n),a},H2=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):12.92*e},H3=({r:e,g:t,b:r,alpha:i},n="rgb")=>{let a={mode:n,r:H2(e),g:H2(t),b:H2(r)};return void 0!==i&&(a.alpha=i),a},H4=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=H3({r:3.2409699419045226*e-1.537383177570094*t-.4986107602930034*r,g:-.9692436362808796*e+1.8759675015077204*t+.0415550574071756*r,b:.0556300796969936*e-.2039769588889765*t+1.0569715142428784*r});return void 0!==i&&(n.alpha=i),n},H5={...HX,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>H$(H1(e)),xyz65:H$},toMode:{rgb:e=>H4(HK(e)),xyz65:HK}},H8=e=>(e%=360)<0?e+360:e,H6=e=>{let t;return t=e=>180>=Math.abs(e)?e:e-360*Math.sign(e),e.map((r,i,n)=>{if(void 0===r)return r;let a=H8(r);return 0===i||void 0===e[i-1]?a:t(a-H8(n[i-1]))}).reduce((e,t)=>(e.length&&void 0!==t&&void 0!==e[e.length-1]?e.push(t+e[e.length-1]):e.push(t),e),[])},H9=[-.14861,1.78277,-.29227,-.90649,1.97294,0],H7=Math.PI/180,Ge=180/Math.PI,Gt=H9["3"]*H9["4"],Gr=H9["1"]*H9["4"],Gi=H9["1"]*H9["2"]-H9["0"]*H9["3"],Gn=(e,t)=>{if(void 0===e.h||void 0===t.h||!e.s||!t.s)return 0;let r=H8(e.h),i=Math.sin((H8(t.h)-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},Ga=(e,t)=>{if(void 0===e.h||void 0===t.h||!e.c||!t.c)return 0;let r=H8(e.h),i=Math.sin((H8(t.h)-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},Gs=e=>{let t=e.reduce((e,t)=>{if(void 0!==t){let r=t*Math.PI/180;e.sin+=Math.sin(r),e.cos+=Math.cos(r)}return e},{sin:0,cos:0}),r=180*Math.atan2(t.sin,t.cos)/Math.PI;return r<0?360+r:r},Go={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:({r:e,g:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=(Gi*r+e*Gt-t*Gr)/(Gi+Gt-Gr),a=r-n,s=(H9["4"]*(t-n)-H9["2"]*a)/H9["3"],o={mode:"cubehelix",l:n,s:0===n||1===n?void 0:Math.sqrt(a*a+s*s)/(H9["4"]*n*(1-n))};return o.s&&(o.h=Math.atan2(s,a)*Ge-120),void 0!==i&&(o.alpha=i),o}},toMode:{rgb:({h:e,s:t,l:r,alpha:i})=>{let n={mode:"rgb"};void 0===r&&(r=0);let a=void 0===t?0:t*r*(1-r),s=Math.cos(e=(void 0===e?0:e+120)*H7),o=Math.sin(e);return n.r=r+a*(H9["0"]*s+H9["1"]*o),n.g=r+a*(H9["2"]*s+H9["3"]*o),n.b=r+a*(H9["4"]*s+H9["5"]*o),void 0!==i&&(n.alpha=i),n}},interpolate:{h:{use:HW,fixup:H6},s:HW,l:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Gn},average:{h:Gs}},Gl=({l:e,a:t,b:r,alpha:i},n="lch")=>{void 0===t&&(t=0),void 0===r&&(r=0);let a=Math.sqrt(t*t+r*r),s={mode:n,l:e,c:a};return a&&(s.h=H8(180*Math.atan2(r,t)/Math.PI)),void 0!==i&&(s.alpha=i),s},Gu=({l:e,c:t,h:r,alpha:i},n="lab")=>{void 0===r&&(r=0);let a={mode:n,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return void 0!==i&&(a.alpha=i),a},Gc={X:.3457/.3585,Y:1,Z:.8251046025104602},Gd={X:.3127/.329,Y:1,Z:1.0890577507598784},Gh=e=>Math.pow(e,3)>.008856451679035631?Math.pow(e,3):(116*e-16)/903.2962962962963,Gp=({l:e,a:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=(e+16)/116,a=t/500+n,s=n-r/200,o={mode:"xyz65",x:Gh(a)*Gd.X,y:Gh(n)*Gd.Y,z:Gh(s)*Gd.Z};return void 0!==i&&(o.alpha=i),o},Gf=e=>H4(Gp(e)),Gm=e=>e>.008856451679035631?Math.cbrt(e):(903.2962962962963*e+16)/116,Gg=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Gm(e/Gd.X),a=Gm(t/Gd.Y),s={mode:"lab65",l:116*a-16,a:500*(n-a),b:200*(a-Gm(r/Gd.Z))};return void 0!==i&&(s.alpha=i),s},Gv=e=>{let t=Gg(H1(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},GA=26/180*Math.PI,Gb=Math.cos(GA),Gy=Math.sin(GA),Gw=100/Math.log(1.39),Gx=({l:e,c:t,h:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"lab65",l:(Math.exp(e/Gw)-1)/.0039},a=(Math.exp(.0435*t*1)-1)/.075,s=a*Math.cos(r/180*Math.PI-GA),o=a*Math.sin(r/180*Math.PI-GA);return n.a=s*Gb-o/.83*Gy,n.b=s*Gy+o/.83*Gb,void 0!==i&&(n.alpha=i),n},GC=({l:e,a:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=t*Gb+r*Gy,a=.83*(r*Gb-t*Gy),s={mode:"dlch",l:Gw/1*Math.log(1+.0039*e),c:Math.log(1+.075*Math.sqrt(n*n+a*a))/.0435};return s.c&&(s.h=H8((Math.atan2(a,n)+GA)/Math.PI*180)),void 0!==i&&(s.alpha=i),s},GS=e=>Gx(Gl(e,"dlch")),GE=e=>Gu(GC(e),"dlab"),G_=RegExp(`^hsla?\\(\\s*${Hv}${HA}${Hf}${HA}${Hf}\\s*(?:,\\s*${Hm}\\s*)?\\)$`),GM={mode:"hsl",toMode:{rgb:function({h:e,s:t,l:r,alpha:i}){let n;e=H8(void 0!==e?e:0),void 0===t&&(t=0),void 0===r&&(r=0);let a=r+t*(r<.5?r:1-r),s=a-(a-r)*2*Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:n={r:a,g:s,b:2*r-a};break;case 1:n={r:s,g:a,b:2*r-a};break;case 2:n={r:2*r-a,g:a,b:s};break;case 3:n={r:2*r-a,g:s,b:a};break;case 4:n={r:s,g:2*r-a,b:a};break;case 5:n={r:a,g:2*r-a,b:s};break;default:n={r:2*r-a,g:2*r-a,b:2*r-a}}return n.mode="rgb",void 0!==i&&(n.alpha=i),n}},fromMode:{rgb:function({r:e,g:t,b:r,alpha:i}){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),s={mode:"hsl",s:n===a?0:(n-a)/(1-Math.abs(n+a-1)),l:.5*(n+a)};return n-a!=0&&(s.h=(n===e?(t-r)/(n-a)+(t<r)*6:n===t?(r-e)/(n-a)+2:(e-t)/(n-a)+4)*60),void 0!==i&&(s.alpha=i),s}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,t){if(!t||"hsl"!==t[0]&&"hsla"!==t[0])return;let r={mode:"hsl"},[,i,n,a,s]=t;if(i.type!==HL){if(i.type===HD)return;r.h=i.value}if(n.type!==HL){if("hue"===n.type)return;r.s=n.value/100}if(a.type!==HL){if("hue"===a.type)return;r.l=a.value/100}return s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r},e=>{let t=e.match(G_);if(!t)return;let r={mode:"hsl"};return void 0!==t[3]?r.h=+t[3]:void 0!==t[1]&&void 0!==t[2]&&(r.h=((e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return 360*e}})(t[1],t[2])),void 0!==t[4]&&(r.s=Math.min(Math.max(0,t[4]/100),1)),void 0!==t[5]&&(r.l=Math.min(Math.max(0,t[5]/100),1)),void 0!==t[6]?r.alpha=Math.max(0,Math.min(1,t[6]/100)):void 0!==t[7]&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r}],serialize:e=>`hsl(${void 0!==e.h?e.h:"none"} ${void 0!==e.s?100*e.s+"%":"none"} ${void 0!==e.l?100*e.l+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:HW,fixup:H6},s:HW,l:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Gn},average:{h:Gs}};function GI({h:e,s:t,v:r,alpha:i}){let n;e=H8(void 0!==e?e:0),void 0===t&&(t=0),void 0===r&&(r=0);let a=Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:n={r:r,g:r*(1-t*a),b:r*(1-t)};break;case 1:n={r:r*(1-t*a),g:r,b:r*(1-t)};break;case 2:n={r:r*(1-t),g:r,b:r*(1-t*a)};break;case 3:n={r:r*(1-t),g:r*(1-t*a),b:r};break;case 4:n={r:r*(1-t*a),g:r*(1-t),b:r};break;case 5:n={r:r,g:r*(1-t),b:r*(1-t*a)};break;default:n={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return n.mode="rgb",void 0!==i&&(n.alpha=i),n}function GT({r:e,g:t,b:r,alpha:i}){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),s={mode:"hsv",s:0===n?0:1-a/n,v:n};return n-a!=0&&(s.h=(n===e?(t-r)/(n-a)+(t<r)*6:n===t?(r-e)/(n-a)+2:(e-t)/(n-a)+4)*60),void 0!==i&&(s.alpha=i),s}let GB={mode:"hsv",toMode:{rgb:GI},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:GT},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:HW,fixup:H6},s:HW,v:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Gn},average:{h:Gs}};function GR(e){if(e<0)return 0;let t=Math.pow(e,.012683313515655966);return 1e4*Math.pow(Math.max(0,t-.8359375)/(18.8515625-18.6875*t),6.277394636015326)}function Gk(e){if(e<0)return 0;let t=Math.pow(e/1e4,.1593017578125);return Math.pow((.8359375+18.8515625*t)/(1+18.6875*t),78.84375)}let GP=e=>Math.max(e/203,0),GD=({i:e,t,p:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=GR(e+.008609037037932761*t+.11102962500302593*r),a=GR(e-.00860903703793275*t-.11102962500302599*r),s=GR(e+.5600313357106791*t-.32062717498731885*r),o={mode:"xyz65",x:GP(2.070152218389422*n-1.3263473389671556*a+.2066510476294051*s),y:GP(.3647385209748074*n+.680566024947227*a-.0453045459220346*s),z:GP(-.049747207535812*n-.0492609666966138*a+1.1880659249923042*s)};return void 0!==i&&(o.alpha=i),o},GL=(e=0)=>Math.max(203*e,0),Gz=({x:e,y:t,z:r,alpha:i})=>{let n=GL(e),a=GL(t),s=GL(r),o=Gk(.3592832590121217*n+.6976051147779502*a-.0358915932320289*s),l=Gk(-.1920808463704995*n+1.1004767970374323*a+.0753748658519118*s),u=Gk(.0070797844607477*n+.0748396662186366*a+.8433265453898765*s),c={mode:"itp",i:.5*o+.5*l,t:1.61376953125*o-3.323486328125*l+1.709716796875*u,p:4.378173828125*o-4.24560546875*l-.132568359375*u};return void 0!==i&&(c.alpha=i),c},GF=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,.1593017578125);return Math.pow((.8359375+18.8515625*t)/(1+18.6875*t),134.03437499999998)},GN=(e=0)=>Math.max(203*e,0),GO=({x:e,y:t,z:r,alpha:i})=>{e=GN(e),t=GN(t);let n=1.15*e-.15*(r=GN(r)),a=.66*t+.34*e,s=GF(.41478972*n+.579999*a+.014648*r),o=GF(-.20151*n+1.120649*a+.0531008*r),l=GF(-.0166008*n+.2648*a+.6684799*r),u=(s+o)/2,c={mode:"jab",j:.44*u/(1-.56*u)-16295499532821565e-27,a:3.524*s-4.066708*o+.542708*l,b:.199076*s+1.096799*o-1.295875*l};return void 0!==i&&(c.alpha=i),c},GU=e=>{if(e<0)return 0;let t=Math.pow(e,.007460772656268216);return 1e4*Math.pow((.8359375-t)/(18.6875*t-18.8515625),6.277394636015326)},GQ=({j:e,a:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=(e+16295499532821565e-27)/(.44+.56*(e+16295499532821565e-27)),a=GU(n+.13860504*t+.058047316*r),s=GU(n-.13860504*t-.058047316*r),o=GU(n-.096019242*t-.8118919*r),l={mode:"xyz65",x:(1.661373024652174*a-.914523081304348*s+.23136208173913045*o)/203,y:(-.3250758611844533*a+1.571847026732543*s-.21825383453227928*o)/203,z:(-.090982811*a-.31272829*s+1.5227666*o)/203};return void 0!==i&&(l.alpha=i),l},GH=e=>{let t=GO(H1(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},GG=e=>H4(GQ(e)),Gj=({j:e,a:t,b:r,alpha:i})=>{void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"jch",j:e,c:n};return n&&(a.h=H8(180*Math.atan2(r,t)/Math.PI)),void 0!==i&&(a.alpha=i),a},GV=({j:e,c:t,h:r,alpha:i})=>{void 0===r&&(r=0);let n={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return void 0!==i&&(n.alpha=i),n},GW=e=>Math.pow(e,3)>.008856451679035631?Math.pow(e,3):(116*e-16)/903.2962962962963,Gq=({l:e,a:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=(e+16)/116,a=t/500+n,s=n-r/200,o={mode:"xyz50",x:GW(a)*Gc.X,y:GW(n)*Gc.Y,z:GW(s)*Gc.Z};return void 0!==i&&(o.alpha=i),o},GX=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=H3({r:3.1341359569958707*e-1.6173863321612538*t-.4906619460083532*r,g:-.978795502912089*e+1.916254567259524*t+.03344273116131949*r,b:.07195537988411677*e-.2289768264158322*t+1.405386058324125*r});return void 0!==i&&(n.alpha=i),n},GJ=e=>GX(Gq(e)),GK=e=>{let{r:t,g:r,b:i,alpha:n}=H0(e),a={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*i,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*i,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*i};return void 0!==n&&(a.alpha=n),a},GY=e=>e>.008856451679035631?Math.cbrt(e):(903.2962962962963*e+16)/116,G$=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=GY(e/Gc.X),a=GY(t/Gc.Y),s={mode:"lab",l:116*a-16,a:500*(n-a),b:200*(a-GY(r/Gc.Z))};return void 0!==i&&(s.alpha=i),s},GZ=e=>{let t=G$(GK(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},G0={mode:"lab",toMode:{xyz50:Gq,rgb:GJ},fromMode:{xyz50:G$,rgb:GZ},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[function(e,t){if(!t||"lab"!==t[0])return;let r={mode:"lab"},[,i,n,a,s]=t;if("hue"!==i.type&&"hue"!==n.type&&"hue"!==a.type)return i.type!==HL&&(r.l=Math.min(Math.max(0,i.value),100)),n.type!==HL&&(r.a=n.type===HP?n.value:125*n.value/100),a.type!==HL&&(r.b=a.type===HP?a.value:125*a.value/100),s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r}],serialize:e=>`lab(${void 0!==e.l?e.l:"none"} ${void 0!==e.a?e.a:"none"} ${void 0!==e.b?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:HW,a:HW,b:HW,alpha:{use:HW,fixup:Hq}}},G1={...G0,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Gp,rgb:Gf},fromMode:{xyz65:Gg,rgb:Gv},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},G2={mode:"lch",toMode:{lab:Gu,rgb:e=>GJ(Gu(e))},fromMode:{rgb:e=>Gl(GZ(e)),lab:Gl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[function(e,t){if(!t||"lch"!==t[0])return;let r={mode:"lch"},[,i,n,a,s]=t;if(i.type!==HL){if("hue"===i.type)return;r.l=Math.min(Math.max(0,i.value),100)}if(n.type!==HL&&(r.c=Math.max(0,n.type===HP?n.value:150*n.value/100)),a.type!==HL){if(a.type===HD)return;r.h=a.value}return s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r}],serialize:e=>`lch(${void 0!==e.l?e.l:"none"} ${void 0!==e.c?e.c:"none"} ${void 0!==e.h?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:HW,fixup:H6},c:HW,l:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Ga},average:{h:Gs}},G3={...G2,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Gu(e,"lab65"),rgb:e=>Gf(Gu(e,"lab65"))},fromMode:{rgb:e=>Gl(Gv(e),"lch65"),lab65:e=>Gl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},G4=({l:e,u:t,v:r,alpha:i})=>{void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"lchuv",l:e,c:n};return n&&(a.h=H8(180*Math.atan2(r,t)/Math.PI)),void 0!==i&&(a.alpha=i),a},G5=({l:e,c:t,h:r,alpha:i})=>{void 0===r&&(r=0);let n={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return void 0!==i&&(n.alpha=i),n},G8=(e,t,r)=>4*e/(e+15*t+3*r),G6=(e,t,r)=>9*t/(e+15*t+3*r),G9=G8(Gc.X,Gc.Y,Gc.Z),G7=G6(Gc.X,Gc.Y,Gc.Z),je=({x:e,y:t,z:r,alpha:i})=>{let n;void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let a=(n=t/Gc.Y)<=.008856451679035631?903.2962962962963*n:116*Math.cbrt(n)-16,s=G8(e,t,r),o=G6(e,t,r);isFinite(s)&&isFinite(o)?(s=13*a*(s-G9),o=13*a*(o-G7)):a=s=o=0;let l={mode:"luv",l:a,u:s,v:o};return void 0!==i&&(l.alpha=i),l},jt=(ep=Gc.X,4*ep/(ep+15*Gc.Y+3*Gc.Z)),jr=(ef=Gc.X,9*(em=Gc.Y)/(ef+15*em+3*Gc.Z)),ji=({l:e,u:t,v:r,alpha:i})=>{if(void 0===e&&(e=0),0===e)return{mode:"xyz50",x:0,y:0,z:0};void 0===t&&(t=0),void 0===r&&(r=0);let n=t/(13*e)+jt,a=r/(13*e)+jr,s=Gc.Y*(e<=8?e/903.2962962962963:Math.pow((e+16)/116,3)),o={mode:"xyz50",x:9*n*s/(4*a),y:s,z:s*(12-3*n-20*a)/(4*a)};return void 0!==i&&(o.alpha=i),o},jn={...HX,mode:"lrgb",toMode:{rgb:H3},fromMode:{rgb:H0},parse:["srgb-linear"],serialize:"srgb-linear"},ja=({r:e,g:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*r),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*r),s=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*r),o={mode:"oklab",l:.210454268309314*n+.7936177747023054*a-.0040720430116193*s,a:1.9779985324311684*n-2.42859224204858*a+.450593709617411*s,b:.0259040424655478*n+.7827717124575296*a-.8086757549230774*s};return void 0!==i&&(o.alpha=i),o},js=e=>{let t=ja(H0(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},jo=({l:e,a:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.pow(e+.3963377773761749*t+.2158037573099136*r,3),a=Math.pow(e-.1055613458156586*t-.0638541728258133*r,3),s=Math.pow(e-.0894841775298119*t-1.2914855480194092*r,3),o={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*a+.2309699031821044*s,g:-1.2684379732850317*n+2.6097573492876887*a-.3413193760026573*s,b:-.0041960761386756*n-.7034186179359362*a+1.7076146940746117*s};return void 0!==i&&(o.alpha=i),o},jl=e=>H3(jo(e));function ju(e){return .5*(1.206/1.03*e-.206+Math.sqrt((1.206/1.03*e-.206)*(1.206/1.03*e-.206)+1.206/1.03*.12*e))}function jc(e){return(e*e+.206*e)/(1.206/1.03*(e+.03))}function jd(e,t){let r,i,n,a,s,o,l,u,c,d,h,p,f,m,g,v,A,b=(-1.88170328*e-.80936493*t>1?(r=1.19086277,i=1.76576728,n=.59662641,a=.75515197,s=.56771245,o=4.0767416621,l=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,i=-.45954404,n=.08285427,a=.1254107,s=.14503204,o=-1.2684380046,l=2.6097574011,u=-.3413193965):(r=1.35733652,i=-.00915799,n=-1.1513021,a=-.50559606,s=.00692167,o=-.0041960863,l=-.7034186147,u=1.707614701),c=r+i*e+n*t+a*e*e+s*e*t,d=.3963377774*e+.2158037573*t,h=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t,v=o*((f=1+c*d)*f*f)+l*((m=1+c*h)*m*m)+u*((g=1+c*p)*g*g),c-=v*(A=3*d*f*f*o+3*h*m*m*l+3*p*g*g*u)/(A*A-.5*v*(6*d*d*f*o+6*h*h*m*l+6*p*p*g*u))),y=jo({l:1,a:b*e,b:b*t}),w=Math.cbrt(1/Math.max(y.r,y.g,y.b));return[w,w*b]}function jh(e,t,r=null){r||(r=jd(e,t));let i=r[0],n=r[1];return[n/i,n/(1-i)]}function jp(e,t,r){let i=jd(t,r),n=function(e,t,r,i,n,a=null){let s;if(a||(a=jd(e,t)),(r-n)*a[1]-(a[0]-n)*1<=0)s=a[1]*n/(+a[0]+a[1]*(n-r));else{s=a[1]*(n-1)/(+(a[0]-1)+a[1]*(n-r));{let i=r-n,a=.3963377774*e+.2158037573*t,o=-.1055613458*e-.0638541728*t,l=-.0894841775*e-1.291485548*t,u=i+ +a,c=i+ +o,d=i+ +l;{let e=n*(1-s)+s*r,t=+s,i=e+t*a,h=e+t*o,p=e+t*l,f=i*i*i,m=h*h*h,g=p*p*p,v=3*u*i*i,A=3*c*h*h,b=3*d*p*p,y=6*u*u*i,w=6*c*c*h,x=6*d*d*p,C=4.0767416621*f-3.3077115913*m+.2309699292*g-1,S=4.0767416621*v-3.3077115913*A+.2309699292*b,E=S/(S*S-.5*C*(4.0767416621*y-3.3077115913*w+.2309699292*x)),_=-C*E,M=-1.2684380046*f+2.6097574011*m-.3413193965*g-1,I=-1.2684380046*v+2.6097574011*A-.3413193965*b,T=I/(I*I-.5*M*(-1.2684380046*y+2.6097574011*w-.3413193965*x)),B=-M*T,R=-.0041960863*f-.7034186147*m+1.707614701*g-1,k=-.0041960863*v-.7034186147*A+1.707614701*b,P=k/(k*k-.5*R*(-.0041960863*y-.7034186147*w+1.707614701*x)),D=-R*P;s+=Math.min(_=E>=0?_:1e6,Math.min(B=T>=0?B:1e6,D=P>=0?D:1e6))}}}return s}(t,r,e,0,e,i),a=jh(t,r,i),s=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),o=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),l=n/Math.min(e*a[0],(1-e)*a[1]),u=e*s,c=(1-e)*o,d=.9*l*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(c*c*c*c))));return[Math.sqrt(1/(1/((u=.4*e)*u)+1/((c=(1-e)*.8)*c))),d,n]}function jf(e){let t,r=void 0!==e.l?e.l:0,i=void 0!==e.a?e.a:0,n=void 0!==e.b?e.b:0,a={mode:"okhsl",l:ju(r)};void 0!==e.alpha&&(a.alpha=e.alpha);let s=Math.sqrt(i*i+n*n);if(!s)return a.s=0,a;let[o,l,u]=jp(r,i/s,n/s);if(s<l){let e=.8*o;t=(s-0)/(e+(1-e/l)*(s-0))*.8}else{let e=.2*l*l*1.5625/o;t=.8+.2*((s-l)/(e+(1-e/(u-l))*(s-l)))}return t&&(a.s=t,a.h=H8(180*Math.atan2(n,i)/Math.PI)),a}function jm(e){let t,r,i,n,a=void 0!==e.h?e.h:0,s=void 0!==e.s?e.s:0,o=void 0!==e.l?e.l:0,l={mode:"oklab",l:jc(o)};if(void 0!==e.alpha&&(l.alpha=e.alpha),!s||1===o)return l.a=l.b=0,l;let u=Math.cos(a/180*Math.PI),c=Math.sin(a/180*Math.PI),[d,h,p]=jp(l.l,u,c);s<.8?(t=1.25*s,r=0,n=1-(i=.8*d)/h):(t=5*(s-.8),r=h,n=1-(i=.2*h*h*1.5625/d)/(p-h));let f=r+t*i/(1-n*t);return l.a=f*u,l.b=f*c,l}let jg={...GM,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:jf,rgb:e=>jf(js(e))},toMode:{oklab:jm,rgb:e=>jl(jm(e))}};function jv(e){let t=void 0!==e.l?e.l:0,r=void 0!==e.a?e.a:0,i=void 0!==e.b?e.b:0,n=Math.sqrt(r*r+i*i),a=n?r/n:1,s=n?i/n:1,[o,l]=jh(a,s),u=l/(n+t*l),c=u*t,d=u*n,h=jc(c),p=d*h/c,f=jo({l:h,a:a*p,b:s*p}),m=Math.cbrt(1/Math.max(f.r,f.g,f.b,0));t/=m;let g={mode:"okhsv",s:(n=n/m*ju(t)/t)?(.5+l)*d/(.5*l+l*(1-.5/o)*d):0,v:(t=ju(t))?t/c:0};return g.s&&(g.h=H8(180*Math.atan2(i,r)/Math.PI)),void 0!==e.alpha&&(g.alpha=e.alpha),g}function jA(e){let t={mode:"oklab"};void 0!==e.alpha&&(t.alpha=e.alpha);let r=void 0!==e.h?e.h:0,i=void 0!==e.s?e.s:0,n=void 0!==e.v?e.v:0,a=Math.cos(r/180*Math.PI),s=Math.sin(r/180*Math.PI),[o,l]=jh(a,s),u=1-.5/o,c=1-.5*i/(.5+l-l*u*i),d=i*l*.5/(.5+l-l*u*i),h=jc(c),p=d*h/c,f=jo({l:h,a:a*p,b:s*p}),m=Math.cbrt(1/Math.max(f.r,f.g,f.b,0)),g=jc(n*c),v=d*g/c;return t.l=g*m,t.a=v*a*m,t.b=v*s*m,t}let jb={...GB,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:jv,rgb:e=>jv(js(e))},toMode:{oklab:jA,rgb:e=>jl(jA(e))}},jy={...G0,mode:"oklab",toMode:{lrgb:jo,rgb:jl},fromMode:{lrgb:ja,rgb:js},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[function(e,t){if(!t||"oklab"!==t[0])return;let r={mode:"oklab"},[,i,n,a,s]=t;if("hue"!==i.type&&"hue"!==n.type&&"hue"!==a.type)return i.type!==HL&&(r.l=Math.min(Math.max(0,i.type===HP?i.value:i.value/100),1)),n.type!==HL&&(r.a=n.type===HP?n.value:.4*n.value/100),a.type!==HL&&(r.b=a.type===HP?a.value:.4*a.value/100),s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r}],serialize:e=>`oklab(${void 0!==e.l?e.l:"none"} ${void 0!==e.a?e.a:"none"} ${void 0!==e.b?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},jw={...G2,mode:"oklch",toMode:{oklab:e=>Gu(e,"oklab"),rgb:e=>jl(Gu(e,"oklab"))},fromMode:{rgb:e=>Gl(js(e),"oklch"),oklab:e=>Gl(e,"oklch")},parse:[function(e,t){if(!t||"oklch"!==t[0])return;let r={mode:"oklch"},[,i,n,a,s]=t;if(i.type!==HL){if("hue"===i.type)return;r.l=Math.min(Math.max(0,i.type===HP?i.value:i.value/100),1)}if(n.type!==HL&&(r.c=Math.max(0,n.type===HP?n.value:.4*n.value/100)),a.type!==HL){if(a.type===HD)return;r.h=a.value}return s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r}],serialize:e=>`oklch(${void 0!==e.l?e.l:"none"} ${void 0!==e.c?e.c:"none"} ${void 0!==e.h?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},jx=e=>{let{r:t,g:r,b:i,alpha:n}=H0(e),a={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*i,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*i,z:0*t+.0451133818589026*r+1.043944368900976*i};return void 0!==n&&(a.alpha=n),a},jC=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=H3({r:2.4934969119414263*e-.9313836179191242*t-.402710784450717*r,g:-.8294889695615749*e+1.7626640603183465*t+.0236246858419436*r,b:.0358458302437845*e-.0761723892680418*t+.9568845240076871*r},"p3");return void 0!==i&&(n.alpha=i),n},jS={...HX,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>jC(H1(e)),xyz65:jC},toMode:{rgb:e=>H4(jx(e)),xyz65:jx}},jE=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},j_=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"prophoto",r:jE(1.3457868816471585*e-.2555720873797946*t-.0511018649755453*r),g:jE(-.5446307051249019*e+1.5082477428451466*t+.0205274474364214*r),b:jE(0*e+0*t+1.2119675456389452*r)};return void 0!==i&&(n.alpha=i),n},jM=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},jI=e=>{let t=jM(e.r),r=jM(e.g),i=jM(e.b),n={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*i,z:0*t+0*r+.8251046025104602*i};return void 0!==e.alpha&&(n.alpha=e.alpha),n},jT={...HX,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:j_,rgb:e=>j_(GK(e))},toMode:{xyz50:jI,rgb:e=>GX(jI(e))}},jB=e=>{let t=Math.abs(e);return t>.018053968510807?(Math.sign(e)||1)*(1.09929682680944*Math.pow(t,.45)-(1.09929682680944-1)):4.5*e},jR=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"rec2020",r:jB(1.7166511879712683*e-.3556707837763925*t-.2533662813736599*r),g:jB(-.6666843518324893*e+1.6164812366349395*t+.0157685458139111*r),b:jB(.0176398574453108*e-.0427706132578085*t+.9421031212354739*r)};return void 0!==i&&(n.alpha=i),n},jk=(e=0)=>{let t=Math.abs(e);return t<.08124285829863151?e/4.5:(Math.sign(e)||1)*Math.pow((t+1.09929682680944-1)/1.09929682680944,1/.45)},jP=e=>{let t=jk(e.r),r=jk(e.g),i=jk(e.b),n={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*r+.059301716469862*i,z:0*t+.0280726930490874*r+1.0609850577107909*i};return void 0!==e.alpha&&(n.alpha=e.alpha),n},jD={...HX,mode:"rec2020",fromMode:{xyz65:jR,rgb:e=>jR(H1(e))},toMode:{xyz65:jP,rgb:e=>H4(jP(e))},parse:["rec2020"],serialize:"rec2020"},jL=Math.cbrt(.0037930732552754493),jz=e=>Math.cbrt(e)-jL,jF=e=>Math.pow(e+jL,3),jN={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:e,y:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=jF(e+t)-.0037930732552754493,a=jF(t-e)-.0037930732552754493,s=jF(r+t)-.0037930732552754493,o=H3({r:11.031566904639861*n-9.866943908131562*a-.16462299650829934*s,g:-3.2541473810744237*n+4.418770377582723*a-.16462299650829934*s,b:-3.6588512867136815*n+2.7129230459360922*a+1.9459282407775895*s});return void 0!==i&&(o.alpha=i),o}},fromMode:{rgb:e=>{let{r:t,g:r,b:i,alpha:n}=H0(e),a=jz(.3*t+.622*r+.078*i+.0037930732552754493),s=jz(.23*t+.692*r+.078*i+.0037930732552754493),o={mode:"xyb",x:(a-s)/2,y:(a+s)/2,b:jz(.2434226892454782*t+.2047674442449682*r+.5518098665095535*i+.0037930732552754493)-(a+s)/2};return void 0!==n&&(o.alpha=n),o}},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:HW,y:HW,b:HW,alpha:{use:HW,fixup:Hq}}},jO={mode:"yiq",toMode:{rgb:({y:e,i:t,q:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return void 0!==i&&(n.alpha=i),n}},fromMode:{rgb:({r:e,g:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return void 0!==i&&(n.alpha=i),n}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:HW,i:HW,q:HW,alpha:{use:HW,fixup:Hq}}};((e=4)=>t=>{let r;return"number"==typeof t?Math.round(t*(r=Math.pow(10,r=e)))/r:t})(2);let jU=e=>Math.round(255*Math.max(0,Math.min(1,e||0))),jQ=Hw("rgb");Hw("hsl");let jH=e=>(e=>{if(void 0!==e)return"#"+(0x1000000|jU(e.r)<<16|jU(e.g)<<8|jU(e.b)).toString(16).slice(1)})(jQ(e));HM(H5),HM(Go),HM({mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:GS,rgb:e=>Gf(GS(e))},fromMode:{lab65:GE,rgb:e=>GE(Gv(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:HW,a:HW,b:HW,alpha:{use:HW,fixup:Hq}}}),HM({mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Gx,dlab:e=>Gu(e,"dlab"),rgb:e=>Gf(Gx(e))},fromMode:{lab65:GC,dlab:e=>Gl(e,"dlch"),rgb:e=>GC(Gv(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:HW,c:HW,h:{use:HW,fixup:H6},alpha:{use:HW,fixup:Hq}},difference:{h:Ga},average:{h:Gs}}),HM({mode:"hsi",toMode:{rgb:function({h:e,s:t,i:r,alpha:i}){let n;e=H8(void 0!==e?e:0),void 0===t&&(t=0),void 0===r&&(r=0);let a=Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:n={r:r*(1+t*(3/(2-a)-1)),g:r*(1+t*(3*(1-a)/(2-a)-1)),b:r*(1-t)};break;case 1:n={r:r*(1+t*(3*(1-a)/(2-a)-1)),g:r*(1+t*(3/(2-a)-1)),b:r*(1-t)};break;case 2:n={r:r*(1-t),g:r*(1+t*(3/(2-a)-1)),b:r*(1+t*(3*(1-a)/(2-a)-1))};break;case 3:n={r:r*(1-t),g:r*(1+t*(3*(1-a)/(2-a)-1)),b:r*(1+t*(3/(2-a)-1))};break;case 4:n={r:r*(1+t*(3*(1-a)/(2-a)-1)),g:r*(1-t),b:r*(1+t*(3/(2-a)-1))};break;case 5:n={r:r*(1+t*(3/(2-a)-1)),g:r*(1-t),b:r*(1+t*(3*(1-a)/(2-a)-1))};break;default:n={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return n.mode="rgb",void 0!==i&&(n.alpha=i),n}},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:function({r:e,g:t,b:r,alpha:i}){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),s={mode:"hsi",s:e+t+r===0?0:1-3*a/(e+t+r),i:(e+t+r)/3};return n-a!=0&&(s.h=(n===e?(t-r)/(n-a)+(t<r)*6:n===t?(r-e)/(n-a)+2:(e-t)/(n-a)+4)*60),void 0!==i&&(s.alpha=i),s}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:HW,fixup:H6},s:HW,i:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Gn},average:{h:Gs}}),HM(GM),HM(GB),HM({mode:"hwb",toMode:{rgb:function({h:e,w:t,b:r,alpha:i}){if(void 0===t&&(t=0),void 0===r&&(r=0),t+r>1){let e=t+r;t/=e,r/=e}return GI({h:e,s:1===r?1:1-t/(1-r),v:1-r,alpha:i})}},fromMode:{rgb:function(e){let t=GT(e);if(void 0===t)return;let r=void 0!==t.s?t.s:0,i=void 0!==t.v?t.v:0,n={mode:"hwb",w:(1-r)*i,b:1-i};return void 0!==t.h&&(n.h=t.h),void 0!==t.alpha&&(n.alpha=t.alpha),n}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,t){if(!t||"hwb"!==t[0])return;let r={mode:"hwb"},[,i,n,a,s]=t;if(i.type!==HL){if(i.type===HD)return;r.h=i.value}if(n.type!==HL){if("hue"===n.type)return;r.w=n.value/100}if(a.type!==HL){if("hue"===a.type)return;r.b=a.value/100}return s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r}],serialize:e=>`hwb(${void 0!==e.h?e.h:"none"} ${void 0!==e.w?100*e.w+"%":"none"} ${void 0!==e.b?100*e.b+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:HW,fixup:H6},w:HW,b:HW,alpha:{use:HW,fixup:Hq}},difference:{h:(e,t)=>{if(void 0===e.h||void 0===t.h)return 0;let r=H8(e.h),i=H8(t.h);return Math.abs(i-r)>180?r-(i-360*Math.sign(i-r)):i-r}},average:{h:Gs}}),HM({mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:GD,rgb:e=>H4(GD(e))},fromMode:{xyz65:Gz,rgb:e=>Gz(H1(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:HW,t:HW,p:HW,alpha:{use:HW,fixup:Hq}}}),HM({mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:GH,xyz65:GO},toMode:{rgb:GG,xyz65:GQ},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:HW,a:HW,b:HW,alpha:{use:HW,fixup:Hq}}}),HM({mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:GV,rgb:e=>GG(GV(e))},fromMode:{rgb:e=>Gj(GH(e)),jab:Gj},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:HW,fixup:H6},c:HW,j:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Ga},average:{h:Gs}}),HM(G0),HM(G1),HM(G2),HM(G3),HM({mode:"lchuv",toMode:{luv:G5,rgb:e=>GX(ji(G5(e)))},fromMode:{rgb:e=>G4(je(GK(e))),luv:G4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:HW,fixup:H6},c:HW,l:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Ga},average:{h:Gs}}),HM(jn),HM({mode:"luv",toMode:{xyz50:ji,rgb:e=>GX(ji(e))},fromMode:{xyz50:je,rgb:e=>je(GK(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:HW,u:HW,v:HW,alpha:{use:HW,fixup:Hq}}}),HM(jg),HM(jb),HM(jy);let jG=HM(jw);HM(jS),HM(jT),HM(jD),HM(HX),HM(jN),HM({mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:GX,lab:G$},fromMode:{rgb:GK,lab:Gq},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:HW,y:HW,z:HW,alpha:{use:HW,fixup:Hq}}}),HM({mode:"xyz65",toMode:{rgb:H4,xyz50:e=>{let{x:t,y:r,z:i,alpha:n}=e;void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0);let a={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*i};return void 0!==n&&(a.alpha=n),a}},fromMode:{rgb:H1,xyz50:e=>{let{x:t,y:r,z:i,alpha:n}=e;void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0);let a={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*i};return void 0!==n&&(a.alpha=n),a}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:HW,y:HW,z:HW,alpha:{use:HW,fixup:Hq}}}),HM(jO);var jj=kl("../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js");let jV=/oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)/;function jW(e,t){let r=e.match(jV);return r?{l:Number.parseFloat(r[1]),c:Number.parseFloat(r[2]),h:Number.parseFloat(r[3])}:{l:t[0],c:t[1],h:t[2]}}function jq({data:e,foreground:t,background:r,robustness:i="M",className:n,...a}){let[s,o]=(0,tE.useState)(null);return((0,tE.useEffect)(()=>{(async()=>{try{let n=getComputedStyle(document.documentElement),a=t??n.getPropertyValue("--foreground"),s=r??n.getPropertyValue("--background"),l=jW(a,[.21,.006,285.885]),u=jW(s,[.985,0,0]),c=await jj.toString(e,{type:"svg",color:{dark:jH(jG({mode:"oklch",...l})),light:jH(jG({mode:"oklch",...u}))},width:200,errorCorrectionLevel:i,margin:0});o(c)}catch(e){console.error(e)}})()},[e,t,r,i]),s)?(0,tI.jsx)("div",{className:Pg("size-full","[&_svg]:size-full",n),dangerouslySetInnerHTML:{__html:s},...a}):null}let jX="iOS"===new v_().getOS().name;function jJ({className:e,...t}){let{poster:r,width:i,height:n,containerRef:a,posterRef:s}=Uf(),{t:o}=no(),[l,u]=(0,tE.useState)(""),[c,d]=(0,tE.useState)(""),[h,p]=(0,tE.useState)(!1),[f,m]=(0,tE.useState)(!1),g=(0,tE.useRef)(null),v=(0,tE.useMemo)(()=>{let e=new URL("https://viewer.vizbl.com/poster/app/index.html");return e.searchParams.set("texture",r),e.searchParams.set("texture_width",(100*i).toString()),e.searchParams.set("texture_height",(100*n).toString()),decodeURIComponent(e.toString())},[r,i,n]),A=async()=>{let e=g.current,t=s.current;if(e&&t)if(e.canActivateAR)try{m(!0);let e=t.clone(!0);if(e.position.set(0,0,0),jX){let t=new mI,r=await t.parseAsync(e),i=new File([r],"scene.usdz",{type:"model/vnd.usdz+zip"});u(URL.createObjectURL(i))}else{let t=new mN,r=await t.parseAsync(e,{binary:!0}),i=new File([r],"scene.glb",{type:"model/gltf-binary"});d(URL.createObjectURL(i))}}finally{m(!1)}else p(!0)};return(0,tE.useEffect)(()=>((""!==l||""!==c)&&g.current?.activateAR(),()=>{""!==l&&URL.revokeObjectURL(l),""!==c&&URL.revokeObjectURL(c)}),[l,c]),(0,tI.jsxs)("div",{className:Pg(e),...t,children:[(0,tI.jsx)(Py,{variant:"contrast",disabled:f,onClick:A,children:o("ar.viewInPlace")}),(0,tI.jsx)(Ln,{open:h,onOpenChange:p,children:(0,tI.jsxs)(Ll,{className:"gap-6 sm:max-w-120",showCloseButton:!1,portalContainer:a,children:[(0,tI.jsx)("div",{className:"flex items-center justify-center p-10 bg-constant-white rounded-2xl",children:(0,tI.jsx)(jq,{className:"size-44",robustness:"H",data:v})}),(0,tI.jsx)("p",{className:"text-lg text-center text-text-sub font-medium",children:o("ar.scanQrCode")}),(0,tI.jsx)(Ls,{asChild:!0,children:(0,tI.jsx)(Py,{variant:"contrast",size:"lg",children:o("close")})})]})}),(0,tI.jsx)("model-viewer",{ref:g,className:"fixed w-px h-px opacity-0 pointer-events-none",src:c,iosSrc:l,reveal:"manual",ar:!0,cameraControls:!0,arModes:"webxr",arScale:"fixed",shadowIntensity:1,interactionPromptThreshold:100})]})}let jK={width:void 0,height:void 0};function jY(e,t,r){return e[t]?Array.isArray(e[t])?e[t][0][r]:e[t][r]:"contentBoxSize"===t?e.contentRect["inlineSize"===r?"width":"height"]:void 0}function j$(e){let{z:t,pitchDeg:r,rollDeg:i}=e,n=Tm(e=>e.camera);return(0,tE.useMemo)(()=>{let e,a,s,o,l,u,c,d;return e=new nW,a=new nW,s=new nV,o=new nW(1,0,0),l=new nW(0,1,0),u=new nW(0,0,1),c=nG.degToRad(r),d=nG.degToRad(i),e.copy(u).applyAxisAngle(o,c).applyAxisAngle(l,d).normalize(),a.copy(e).applyQuaternion(n.quaternion).normalize(),s.setFromUnitVectors(u,a),{position:n.position.clone().addScaledVector(a,-(.01*t)).toArray(),quaternion:s.toArray()}},[t,r,i])}function jZ({ref:e,z:t,pitchDeg:r,rollDeg:i}){let n=TA(cO,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAPaklEQVR4Ae2dsXFcyQ5FpV+yFIFiUBSTgTw6jEIZMIONgs54TIYxKAK5+oVf9acu4ezgNR4g9Jx1dlDqBzQOGrdAC58vl8ufT43/PT09NUb/9Ol6vbbGJ3/q3/kA/9MZnNgQgEAvAQSglz/RIdBKAAFoxU9wCPQSQAB6+RMdAq0EEIBW/ASHQC8BBKCXP9Eh0EoAAWjFT3AI9BJAAHr5Ex0CrQQQgFb8BIdALwEEoJc/0SHQSgABaMVPcAj0ElgWgNf3n60Z/Hr50Rr//etra/yXH835v35tzf/Xj5fW+K8/31vj/3hZy39ZAFqzJzgEILBEAAFYwsfHEJhN4MuR6/uxX+3n7/8ccRn6xo/9an97eQv5OnLYj/1qf//9fMRl6Bs/9qv98laQvxv738X+/vw7lMuRw37sV/vb28sRl6Fv/Niv9vM/30O+jhz2Y7/ab8E/CQ4JgDa5Nb/aRxKKfqNNbs2vdtTXkfPa5Nb8ah/xF/1Gm9yaX+2oryPntcmt+dU+4i/6jTa5Nb/aUV9HzmuTW/OrfcRf9Bttcmt+taO++BMgSozzENiIAAKwUTFJBQJRAssCUD3++wSrx38fv3r89/Grx38fv3r89/Grx38fv3r89/FXxn/ztSwA/kLYEIDAHAIIwJxacVMIpBNAANKR4hACcwggAHNqxU0hkE4AAUhHikMIzCGAAMypFTeFQDoBBCAdKQ4hMIcAAjCnVtwUAukEEIB0pDiEwBwCCMCcWnFTCKQTQADSkeIQAnMIIABzasVNIZBO4Av76dlPn/6qAg6v12vgdP7RR3//TAD5bwqPEBhDAAEYUyouCoF8AghAPlM8QmAMAQRgTKm4KATyCSAA+UzxCIExBBCAMaXiohDIJ4AA5DPFIwTGEEAAxpSKi0IgnwACkM8UjxAYQwABGFMqLgqBfAIIQD5TPEJgDIFlAdDFnB1Z62LOjvi6mLMjvi7m7Iivizk74utizo74upizI/5q/ssC0JE0MSEAgRwCCEAOR7xAYCSBQ+vB/divdsWuPj/2q12xq8+P/WpX7OrzY7/aFbv6/NivdsWuPj/2ql2xq8+P/Wqv7uq7R0U0XzuvdjT/QwKgTW7Nr/Y9Caye0Sa35ld71fc932uTW/Orfc/3q2e0ya351V71fc/32uTW/Grf8/3qGX3k9vjVXvV9z/fa5Nb8at/z/eoZzXc1f/4EWK0G30NgMAEEYHDxuDoEVgksC0D1+O8Trh7/ffzq8d/Hrx7/ffzq8d/H13HY/1uFXT3++5xW818WAH8hbAhAYA4BBGBOrbgpBNIJIADpSHEIgTkEEIA5teKmEEgngACkI8UhBOYQQADm1IqbQiCdAAKQjhSHEJhDAAGYUytuCoF0AghAOlIcQmAOAQRgTq24KQTSCSAA6UhxCIE5BBCAObXiphBIJ/D5crn8SfcacPjo+9nJ/ynwWvKPXq/XfKcBj931ZwIIFIujENiNAAKwW0XJBwIBAghAABZHIbAbAQRgt4qSDwQCBBCAACyOQmA3AgjAbhUlHwgECCAAAVgchcBuBBCA3SpKPhAIEEAAArA4CoHdCCAAu1WUfCAQIIAABGBxFAK7EVgWAF3M2QFHF3N2xNfFnB3xdTFnR3xdTNkRXxdzdsTvzn+1/ssC0AGdmBCAQA4BBCCHI14gMJLAofXgfuxXu2JXnx/71a7Y1efHfrUrdvX5sU/til19fuxVe3VX3T1d5Md+tSt29Wm+dl+1K/LXelt8taP1PyQA2uTW/Grbhc7+T5vcml/ts2Obf21ya361K+Jrka34alfE10duj1/tivja5Nb8alfE13w78td6r9afPwEqXgwxIPCXEkAA/tLCcC0IVBBYFoDq8d9DqR7/ffzq8d/H13HQ/1uFreNwRTwfo3r89/G781+t/7IAeCDYEIDAHAIIwJxacVMIpBNAANKR4hACcwggAHNqxU0hkE4AAUhHikMIzCGAAMypFTeFQDoBBCAdKQ4hMIcAAjCnVtwUAukEEIB0pDiEwBwCCMCcWnFTCKQTQADSkeIQAnMIIABzasVNIZBO4Ev3fvJH389O/tf0Rx1x+Ojvnwkg8lo4C4HNCCAAmxWUdCAQIYAARGhxFgKbEUAANiso6UAgQgABiNDiLAQ2I4AAbFZQ0oFAhAACEKHFWQhsRgAB2KygpAOBCAEEIEKLsxDYjAACsFlBSQcCEQIIQIQWZyGwGYFlAdDFnB1sdDFnR3xdzNgRXxdTdsTXxZwd8bvz767/6vtfFoCOohMTAhDIIYAA5HDECwRGEji0HtyP/WpX7OrzY4/aFbv6/Nin9uqutntekR971a7YVefHfrUrdvVpvsZL7Yr8td4WX+2K+ut7t/hqR9//MQF4e7O4//vPmr+i6f8fz/6vSVryauu5s35rka34ap8VU/3qI7fHr7aeO+u3Nrk1v9pnxVS/mm9H/lrvjvrre199//wJoC+L3xB4MAIIwIMVnHQhoASWBaB6/NfL228dh/y/Vdg6DlbE8zF0HPb/VmFXj/8+p+78u+u/+v6XBcAXBBsCEJhDAAGYUytuCoF0AghAOlIcQmAOAQRgTq24KQTSCSAA6UhxCIE5BBCAObXiphBIJ4AApCPFIQTmEEAA5tSKm0IgnQACkI4UhxCYQwABmFMrbgqBdAIIQDpSHEJgDgEEYE6tuCkE0gl8vlwuf9K9Bhw++n528n8KvJb8o9frNd9pwGN3/ZkAAsXiKAR2I4AA7FZR8oFAgAACEIDFUQjsRgAB2K2i5AOBAAEEIACLoxDYjQACsFtFyQcCAQIIQAAWRyGwGwEEYLeKkg8EAgQQgAAsjkJgNwIIwG4VJR8IBAggAAFYHIXAbgSWBUAXE3bA0cWMHfF1MWVHfF3M2RG/O//u+ne/f13Me6T+ywJwJCjfQAACfwcBBODvqAO3gEALgUPrwf3Yo/bqrrJ7KPixT+2KXW1+7FW7YledH/vVrtjVp/lavdSuyF/rbfHVrqi/vneLr3bF+/djv9rRXZ2HBECTtOTVNiBn/6dFtuKrfXZs86+P3B6/2hXxtcmt+dWuiK/5duSv9e6ov773jvevTW7Nr3a0/vwJECXGeQhsRAAB2KiYpAKBKIFlAdBxKBo847yOgxn+oj50HI5+m3G+evz3d+7Ov7v+3e9/Zfy3Wi4LgH8Q2BCAwBwCCMCcWnFTCKQTQADSkeIQAnMIIABzasVNIZBOAAFIR4pDCMwhgADMqRU3hUA6AQQgHSkOITCHAAIwp1bcFALpBBCAdKQ4hMAcAgjAnFpxUwikE0AA0pHiEAJzCCAAc2rFTSGQTuBL937yR9/PTv7X9Ecdcfjo758JIPJaOAuBzQggAJsVlHQgECGAAERocRYCmxFAADYrKOlAIEIAAYjQ4iwENiOAAGxWUNKBQIQAAhChxVkIbEYAAdisoKQDgQgBBCBCi7MQ2IwAArBZQUkHAhECCECEFmchsBmBZQHQxYwdbHQxZUd8XczZEb87/+7662LODv66mLMj/vvX16WwywKwFJ2PIQCBVgIIQCt+gkOgl8Ch9eB+7FO7YlebH3vVrthV58d+tSt29Wm+9nzUrshf623x1a6ovx/71a7Y1efHfrVXd/UZz3/7z4/9an///fxvn3/490MCoEW24qv9wftJhj5ye/xqnxTyg1ttcmt+tT8cPMnQfDvy13p31F+b3Jpf7ZOQf3CrTW7Nr/aHgycZ2uTW/GpHQ/InQJQY5yGwEQEEYKNikgoEogSWBUDHwWjwjPM6Dmf4i/qoHv/9/brz765/9fjv+VeP/z7+yvhvvpYFwF8IGwIQmEMAAZhTK24KgXQCCEA6UhxCYA4BBGBOrbgpBNIJIADpSHEIgTkEEIA5teKmEEgngACkI8UhBOYQQADm1IqbQiCdAAKQjhSHEJhDAAGYUytuCoF0AghAOlIcQmAOAQRgTq24KQTSCXy+XC5/0r0GHD76fnbyfwq8lvyj1+s132nAY3f9mQACxeIoBHYjgADsVlHygUCAAAIQgMVRCOxGAAHYraLkA4EAAQQgAIujENiNAAKwW0XJBwIBAghAABZHIbAbAQRgt4qSDwQCBBCAACyOQmA3AgjAbhUlHwgECCAAAVgchcBuBJYFQBdTdsDRxZwd8bvz18WcHfnrYs6O+LqYsyO+LubsiP/r5cdS2GUBWIrOxxCAQCsBBKAVP8Eh0Evg0HpwP/aqXbGrzo/9alfs6tN8rXxqV+Tvx361K3b1+bFf7YpdfX7sV7tiV58f+9Ve3dV3jxz4sV/tby9v97i4nTkkAPrI7fGrffN84g9tcmt+tU8Me3Ot+Xbkr01uza/27ZIn/tAmt+ZX+8SwN9fa5Nb8at8OnfhDm9yaX+0Tw95ca5Nb86t9O3TnD/4EuBMUxyCwIwEEYMeqkhME7iSwLAA6Dt8ZM/VY9fjvL9+df/X47/OvHv99/Orx38evHv99/JXx33wtC4C/EDYEIDCHAAIwp1bcFALpBBCAdKQ4hMAcAgjAnFpxUwikE0AA0pHiEAJzCCAAc2rFTSGQTgABSEeKQwjMIYAAzKkVN4VAOgEEIB0pDiEwhwACMKdW3BQC6QQQgHSkOITAHAIIwJxacVMIpBP40r2f/NH3s5P/Nf1RRxw++vtnAoi8Fs5CYDMCCMBmBSUdCEQIIAARWpyFwGYEEIDNCko6EIgQQAAitDgLgc0IIACbFZR0IBAhgABEaHEWApsRQAA2KyjpQCBCAAGI0OIsBDYjgABsVlDSgUCEAAIQocVZCGxGYFkAdDFnBxtdzNkRXxdzdsTXxZwd8XUxZ0d8XczZEV8Xc3bEf33/uRR2WQCWovMxBCDQSgABaMVPcAj0Eji0HtyP/WpX7OrzY7/aFbv6/NivdsWuPj/2q12xq8+P/WpX7OrzY7/aFbv6/Niv9uquvnvkwI/9aj9//+ceF7czhwRAm9yaX+2b5xN/aJNb86t9Ytiba21ya361b4dO/KFNbs2v9olhb661ya351b4dOvGHNrk1v9onhr251ia35lf7dujEH9rk1vxqR8PyJ0CUGOchsBEBBGCjYpIKBKIElgWgevz3CVaP/z5+9fjv41eP/z5+9fjv41eP/z5+9fjv46+M/+ZrWQD8hbAhAIE5BBCAObXiphBIJ4AApCPFIQTmEEAA5tSKm0IgnQACkI4UhxCYQwABmFMrbgqBdAIIQDpSHEJgDgEEYE6tuCkE0gkgAOlIcQiBOQQQgDm14qYQSCeAAKQjxSEE5hBAAObUiptCIJ3AfwHiG2FWAMZtOgAAAABJRU5ErkJggg=="),{position:a,quaternion:s}=j$({z:t,pitchDeg:r,rollDeg:i});return(0,tE.useEffect)(()=>{n.wrapS=1e3,n.wrapT=1e3,n.repeat.set(8,8)},[n]),(0,tI.jsxs)("mesh",{ref:e,position:a,quaternion:s,children:[(0,tI.jsx)("planeGeometry",{args:[64,64]}),(0,tI.jsx)("meshStandardMaterial",{map:n,transparent:!0,opacity:0})]})}function j0({node:e,position:t,scale:r=[1,1,1],uvScale:i}){let n=(0,tE.useRef)(null);return(0,tE.useEffect)(()=>{if(!n.current||void 0===i)return;let t=n.current.geometry.attributes.uv,r=e.geometry.attributes.uv.array;for(let e=0;e<t.count;e++){let n=r[2*e],a=r[2*e+1];t.setXY(e,n*i,a)}t.needsUpdate=!0},[i,e.geometry]),(0,tI.jsx)(MW,{ref:n,object:e,position:t,scale:r})}function j1({width:e,height:t}){let{material:r}=Uf(),{nodes:i}=T8(r?.native?.glbUrl),n=(0,tE.useMemo)(()=>{let e=new nW,t={};["vizbl0","vizbl1","vizbl2","vizbl3","vizbl4","vizbl5","vizbl6","vizbl7"].forEach(r=>{let n=i[r];if(!n?.geometry)return;let a=n.clone();a.updateMatrixWorld(!0),a.geometry.applyMatrix4(a.matrixWorld),a.position.set(0,0,0),a.rotation.set(0,0,0),a.scale.set(1,1,1),a.updateMatrixWorld(!0),a.geometry.computeBoundingBox(),a.geometry.boundingBox&&(a.geometry.boundingBox.getCenter(e),a.geometry.translate(-e.x,-e.y,-e.z)),a.geometry.computeBoundingBox(),t[r]=a});let r=t.vizbl0;if(!r?.geometry)throw Error("Corner mesh not found");let n=r.geometry.boundingBox,a=n.max.x-n.min.x,s=n.max.y-n.min.y,o={top:0,bottom:0,left:0,right:0},l={top:0,bottom:0,left:0,right:0},u=t.vizbl1;if(u?.geometry){let e=u.geometry.boundingBox;o.top=e.max.x-e.min.x,l.top=e.max.y-e.min.y}let c=t.vizbl3;if(c?.geometry){let e=c.geometry.boundingBox;o.right=e.max.y-e.min.y,l.right=e.max.x-e.min.x}let d=t.vizbl5;if(d?.geometry){let e=d.geometry.boundingBox;o.bottom=e.max.x-e.min.x,l.bottom=e.max.y-e.min.y}let h=t.vizbl7;if(h?.geometry){let e=h.geometry.boundingBox;o.left=e.max.y-e.min.y,l.left=e.max.x-e.min.x}return{cornerSize:{width:a,height:s},barLengths:o,barThickness:l,normalizedNodes:t}},[i]),a=e-2*n.cornerSize.width+.002,s=t-2*n.cornerSize.height+.002,o=a/n.barLengths.top,l=a/n.barLengths.bottom,u=s/n.barLengths.left,c=s/n.barLengths.right;return(0,tI.jsxs)("group",{children:[(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl0,position:[-e/2+n.cornerSize.width/2-.001,t/2-n.cornerSize.height/2+.001,0]}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl1,position:[0,t/2-n.barThickness.top/2+.001,0],scale:[o,1,1],uvScale:o}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl2,position:[e/2-n.cornerSize.width/2+.001,t/2-n.cornerSize.height/2+.001,0]}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl3,position:[e/2-n.barThickness.right/2+.001,0,0],scale:[1,c,1],uvScale:c}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl4,position:[e/2-n.cornerSize.width/2+.001,-t/2+n.cornerSize.height/2-.001,0]}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl5,position:[0,-t/2+n.barThickness.bottom/2-.001,0],scale:[l,1,1],uvScale:l}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl6,position:[-e/2+n.cornerSize.width/2-.001,-t/2+n.cornerSize.height/2-.001,0]}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl7,position:[-e/2+n.barThickness.left/2-.001,0,0],scale:[1,u,1],uvScale:u})]})}function j2({width:e,height:t,position:r,quaternion:i}){return(0,tI.jsxs)("mesh",{position:r,quaternion:i,children:[(0,tI.jsx)("planeGeometry",{args:[e,t]}),(0,tI.jsx)("meshStandardMaterial",{color:"white"})]})}function j3({src:e,position:t,quaternion:r}){let{posterRef:i}=Uf(),n=TA(cO,e),{width:a,height:s,material:o,frameWidth:l,matting:u,setIsDragging:c}=Uf(),d=a+2*u,h=s+2*u,p=u>0?d:a,f=u>0?h:s;return(0,tI.jsxs)("group",{ref:i,position:t,quaternion:r,onPointerDown:()=>c(!0),onPointerUp:()=>c(!1),onPointerLeave:()=>c(!1),children:[o?.native?.glbUrl&&l>0&&(0,tI.jsx)(j1,{width:p,height:f}),u>0&&(0,tI.jsx)(j2,{width:d,height:h,position:[0,0,.01]}),(0,tI.jsxs)("mesh",{position:[0,0,.02],children:[(0,tI.jsx)("planeGeometry",{args:[a,s]}),(0,tI.jsx)("meshStandardMaterial",{map:n})]})]})}function j4(){let{poster:e,room:t}=Uf(),r=Tm(e=>e.get),i=(0,tE.useRef)(new nW),n=(0,tE.useRef)(new Map),a=(0,tE.useRef)([]),s=j$((0,tE.useMemo)(()=>{let e=t.config.sides.map(e=>Math.abs(e.pitchDeg)+Math.abs(e.rollDeg)),r=Math.min(...e),i=e.indexOf(r);return t.config.sides[i]},[t])),[o,l]=(0,tE.useState)(s);(0,tE.useEffect)(()=>{l(s)},[s]);let u=(0,tE.useCallback)(()=>{let{camera:e,raycaster:t,pointer:n}=r();t.setFromCamera(n,e);let s=t.intersectObjects(a.current);if(s.length>0){let e=s[0],t=e.point.clone();i.current.set(0,0,1).applyQuaternion(e.object.quaternion),t.addScaledVector(i.current,.05),l({position:t.toArray(),quaternion:e.object.quaternion.toArray()})}},[r]);return(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)(B8,{autoTransform:!1,onDrag:u,children:(0,tI.jsx)(j3,{src:e,position:o.position,quaternion:o.quaternion})}),t.config.sides.map(e=>(0,tI.jsx)(jZ,{ref:t=>{let r=n.current;return t&&r.set(e.id,t),a.current=Array.from(r.values()),()=>{r.delete(e.id),a.current=Array.from(r.values())}},z:e.z,pitchDeg:e.pitchDeg,rollDeg:e.rollDeg},e.id))]})}function j5({className:e,onSizeChange:t,...r}){let{room:i}=Uf(),[n,a]=(0,tE.useState)(null),[s,o]=(0,tE.useState)(null),[l,u]=(0,tE.useState)(null),c=(0,tE.useRef)(null),d=Hu("(max-width: 639px)"),{width:h,height:p}=function(e){let t,{ref:r,box:i="content-box"}=e,[{width:n,height:a},s]=tE.useState(jK),o=(t=tE.useRef(!1),tE.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),tE.useCallback(()=>t.current,[])),l=tE.useRef({...jK}),u=tE.useRef(void 0);return u.current=e.onResize,tE.useEffect(()=>{if(!r.current||"undefined"==typeof window||!("ResizeObserver"in window))return;let e=new ResizeObserver(([e])=>{let t="border-box"===i?"borderBoxSize":"device-pixel-content-box"===i?"devicePixelContentBoxSize":"contentBoxSize",r=jY(e,t,"inlineSize"),n=jY(e,t,"blockSize");if(l.current.width!==r||l.current.height!==n){let e={width:r,height:n};l.current.width=r,l.current.height=n,u.current?u.current(e):o()&&s(e)}});return e.observe(r.current,{box:i}),()=>{e.disconnect()}},[i,r,o]),{width:n,height:a}}({ref:c});return(0,tE.useLayoutEffect)(()=>{if(!h||!p||!n)return;let e=h,r=p;d?e=(r=p)*n:h/p>n?e=p*n:r=h/n,o(e),u(r),t?.(e,r)},[d,n,h,p,t]),(0,tE.useEffect)(()=>{let e=new Image;e.onload=()=>{a(Math.round(e.width/e.height*100)/100)},e.src=i.image},[i]),(0,tI.jsx)("div",{ref:c,className:Pg("size-full flex items-center justify-center sm:pt-21 sm:pb-12",e),...r,children:(0,tI.jsx)(RX,{className:"bg-center bg-contain bg-no-repeat",camera:{fov:i.config.camera.fov},gl:{toneMapping:4,toneMappingExposure:1.2,alpha:!0},style:{width:`${s}px`,height:`${l}px`,backgroundImage:`url(${i.image})`},children:(0,tI.jsxs)(tE.Suspense,{fallback:null,children:[(0,tI.jsx)(Rj,{files:["https://vizbl.com/hdr/neutral.hdr"]}),(0,tI.jsx)(j4,{})]})})})}function j8({className:e,...t}){let{containerRef:r,angle:i,setAngle:n,isDragging:a}=Uf(),{t:s}=no(),o=(0,tE.useRef)(null),l=Hu("(max-width: 639px)"),u=(0,tE.useCallback)(()=>{l&&o.current?.centerView()},[l]);return(0,tI.jsxs)("div",{className:Pg("relative flex items-center justify-center overflow-hidden",e),...t,children:[(0,tI.jsx)(fH,{ref:o,disabled:a,children:(0,tI.jsx)(fG,{wrapperClass:"size-full!",contentClass:"h-full! min-w-full sm:max-w-full",children:(0,tI.jsx)(j5,{onSizeChange:u})})}),(0,tI.jsx)(jJ,{className:"absolute bottom-4 left-4 sm:bottom-6 sm:left-6"}),(0,tI.jsxs)("div",{className:"absolute right-4 bottom-4 inline-flex items-center gap-2 sm:right-6 sm:bottom-6",children:[(0,tI.jsxs)(QQ,{children:[(0,tI.jsx)(QH,{asChild:!0,children:(0,tI.jsxs)(Py,{variant:"contrast",size:l?"icon":"default",children:[(0,tI.jsx)(O5,{className:"size-5"}),(0,tI.jsx)("span",{className:"sr-only sm:not-sr-only",children:s("scene.tunePosition")})]})}),(0,tI.jsx)(QG,{side:"top",align:"end",portalContainer:r,children:(0,tI.jsxs)(FC,{children:[(0,tI.jsxs)(FE,{children:[(0,tI.jsx)(FM,{children:s("scene.angle")}),(0,tI.jsx)(Ho,{value:[i],onValueChange:([e])=>n(e),max:75,min:-75,step:1,className:"mt-2 w-full","aria-label":s("scene.angle")})]}),(0,tI.jsx)(Py,{variant:"outline",onClick:()=>{n(0)},children:s("scene.reset")})]})})]}),l&&(0,tI.jsxs)(QQ,{children:[(0,tI.jsx)(QH,{asChild:!0,children:(0,tI.jsx)(Py,{variant:"contrast",size:"icon",children:(0,tI.jsx)(O8,{})})}),(0,tI.jsxs)(QG,{className:"grid gap-5",portalContainer:r,children:[(0,tI.jsx)(Um,{}),(0,tI.jsx)(UZ,{})]})]})]})]})}function j6(){let{setContainerRef:e}=Uf();return(0,tI.jsxs)("div",{ref:e,className:"relative size-full bg-radial from-background-containers to-background-base-2 text-foreground overflow-hidden",children:[(0,tI.jsx)(QA,{className:"absolute top-0 right-0 left-0 z-1"}),(0,tI.jsxs)("div",{className:"size-full max-w-full grid grid-rows-[1fr_auto]",children:[(0,tI.jsx)(j8,{className:"size-full min-h-0"}),(0,tI.jsx)(Qg,{className:"bg-background"})]})]})}i$.use(ka).use({type:"3rdParty",init(t){((e={})=>{i2={...i2,...e}})(t.options.react),e=t}}).init({debug:!1,detection:{caches:[]},fallbackLng:"en",resources:{en:{translation:{matting:"Matting",material:"Material",chooseMaterial:"Choose material",frameWidth:"Frame width",close:"Close",previousSlide:"Previous slide",nextSlide:"Next slide",mattingOptions:{none:"Without matting"},units:{cm:"cm"},poweredBy:"Powered by Vizbl",ar:{viewInPlace:"View in place",scanQrCode:"Scan this QR code with your phone's camera to view the object in Augmented Reality"},scene:{tunePosition:"Tune position",angle:"Angle",reset:"Reset"}}},ru:{translation:{matting:"Паспарту",material:"Материал",chooseMaterial:"Выберите материал",frameWidth:"Ширина рамки",close:"Закрыть",previousSlide:"Предыдущий слайд",nextSlide:"Следующий слайд",mattingOptions:{none:"Без паспарту"},units:{cm:"см"},poweredBy:"Технологии Аризо",ar:{viewInPlace:"Просмотреть на месте",scanQrCode:"Отсканируйте этот QR-код камерой телефона, чтобы просмотреть объект в дополненной реальности"},scene:{tunePosition:"Настроить положение",angle:"Угол",reset:"Сбросить"}}}},interpolation:{escapeValue:!1}});let j9=new r5;function j7({poster:e,width:t,height:r,name:i,...n}){let[a,s]=(0,tE.useState)(null),{t:o}=no();return(0,tI.jsxs)(tI.Fragment,{children:[a&&(0,tI.jsx)(Lp,{root:a,children:(0,tI.jsx)(Ln,{...n,children:(0,tI.jsxs)(Ll,{className:"min-w-full h-svh p-0 rounded-none sm:p-0",portalContainer:a,showCloseButton:!1,children:[(0,tI.jsxs)(Lu,{className:"sr-only",children:[(0,tI.jsx)(Lc,{children:i}),(0,tI.jsx)(Ld,{})]}),(0,tI.jsx)(Ls,{asChild:!0,children:(0,tI.jsxs)(Py,{className:"absolute top-3 right-6 z-2",variant:"secondary",children:[o("close"),(0,tI.jsx)(ir,{})]})}),(0,tI.jsx)(rX,{client:j9,children:(0,tI.jsx)(Up,{poster:e,name:i,width:t,height:r,children:(0,tI.jsx)(j6,{})})})]})})}),(0,r8.createPortal)((0,tI.jsx)("div",{className:"vizbl-room-viewer",children:(0,tI.jsx)("div",{ref:s})}),document.body)]})}function Ve({trigger:e,...t}){let[r,i]=(0,tE.useState)(!1),n=(0,tE.useCallback)(()=>{i(!0)},[]),a=(0,tE.useCallback)(e=>{i(e)},[]);return(0,tE.useEffect)(()=>(e.addEventListener("click",n),()=>{e.removeEventListener("click",n)}),[e,n]),(0,tI.jsx)(j7,{open:r,onOpenChange:a,...t})}let Vt=0;var Vr=n("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/postcss-loader/index.js??ruleSet[1].rules[1].use[3]!../react-room-viewer/dist/index.css"),Vi={};Vi.styleTagTransform=pF(),Vi.setAttributes=pP(),Vi.insert=pR().bind(null,"head"),Vi.domAPI=pT(),Vi.insertStyleElement=pL(),pM()(Vr.A,Vi),Vr.A&&Vr.A.locals&&Vr.A.locals;let Vn=document.createElement("div");Vn.id="vizbl-room-viewer-dialog-manager",document.body.appendChild(Vn),tM.createRoot(Vn).render((0,tE.createElement)(function(){let[e,t]=(0,tE.useState)([]);return(0,tE.useEffect)(()=>{let e=function(){var e;return(!rt&&(rt=new t5(window.document)),e=rt).observe.apply(e,arguments)}("[data-vizbl-room-viewer-dialog]",{initialize(e){let r=e.getAttribute("data-vizbl-room-viewer-poster"),i=e.getAttribute("data-vizbl-room-viewer-name"),n=e.getAttribute("data-vizbl-room-viewer-width"),a=e.getAttribute("data-vizbl-room-viewer-height");if(!r)return void console.warn("RoomViewer: Element missing data-vizbl-room-viewer-poster attribute",e);if(!i)return void console.warn("RoomViewer: Element missing data-vizbl-room-viewer-name attribute",e);if(!n)return void console.warn("RoomViewer: Element missing data-vizbl-room-viewer-width attribute",e);if(!a)return void console.warn("RoomViewer: Element missing data-vizbl-room-viewer-height attribute",e);let s=Number(n),o=Number(a);if(Number.isNaN(s))return void console.warn("RoomViewer: data-vizbl-room-viewer-width is not a valid number",e);if(Number.isNaN(o))return void console.warn("RoomViewer: data-vizbl-room-viewer-height is not a valid number",e);let l=Vt++;return{add(){t(t=>[...t,{id:l,trigger:e,poster:r,name:i,width:s,height:o}])},remove(){t(e=>e.filter(e=>e.id!==l))}}}});return()=>{e.abort()}},[]),(0,tI.jsx)(tI.Fragment,{children:e.map(e=>(0,tI.jsx)(Ve,{trigger:e.trigger,poster:e.poster,name:e.name,width:e.width,height:e.height},e.id))})}))})()})();
|
|
1038
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return tE.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Li=({contentRef:e,descriptionId:t})=>{let r=Lt("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return tE.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null};function Ln({...e}){return(0,tI.jsx)(DQ,{"data-slot":"dialog",...e})}function La({...e}){return(0,tI.jsx)(DW,{"data-slot":"dialog-portal",...e})}function Ls({...e}){return(0,tI.jsx)(D6,{"data-slot":"dialog-close",...e})}function Lo({className:e,...t}){return(0,tI.jsx)(DX,{"data-slot":"dialog-overlay",className:Pg("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Ll({className:e,children:t,showCloseButton:r=!0,portalContainer:i,...n}){return(0,tI.jsxs)(La,{"data-slot":"dialog-portal",container:i,children:[(0,tI.jsx)(Lo,{}),(0,tI.jsxs)(D$,{"data-slot":"dialog-content",className:Pg("bg-background-containers data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-6 rounded-3xl border-0 p-6 shadow-[var(--shadow-login)] duration-200 outline-none sm:max-w-120 sm:p-10",e),...n,children:[t,r&&(0,tI.jsxs)(D6,{"data-slot":"dialog-close",className:"focus-visible:ring-ring/30 absolute top-4 right-4 inline-flex size-6 items-center justify-center rounded-full text-icons-light transition-colors hover:text-icons-normal focus-visible:text-icons-dark focus-visible:ring-2 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[(0,tI.jsx)(ir,{className:"size-6"}),(0,tI.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function Lu({className:e,...t}){return(0,tI.jsx)("div",{"data-slot":"dialog-header",className:Pg("flex flex-col gap-2 text-left",e),...t})}function Lc({className:e,...t}){return(0,tI.jsx)(D3,{"data-slot":"dialog-title",className:Pg("typo-base-18 text-text-dark",e),...t})}function Ld({className:e,...t}){return(0,tI.jsx)(D5,{"data-slot":"dialog-description",className:Pg("typo-base-16 text-text-light",e),...t})}let Lh=(0,tE.createContext)({theme:"system",setTheme:()=>null});function Lp({children:e,defaultTheme:t="system",storageKey:r="vizbl-theme",root:i=window.document.documentElement,enableStorage:n=!1,...a}){let[s,o]=(0,tE.useState)(()=>n&&localStorage.getItem(r)||t);return(0,tE.useEffect)(()=>{if(i.classList.remove("light","dark"),"system"===s){let e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(e);return}i.classList.add(s)},[s,i]),(0,tI.jsx)(Lh,{...a,value:{theme:s,setTheme:e=>{n&&localStorage.setItem(r,e),o(e)}},children:e})}function Lf(e,t){return function(){return e.apply(t,arguments)}}let{toString:Lm}=Object.prototype,{getPrototypeOf:Lg}=Object,{iterator:Lv,toStringTag:LA}=Symbol,Lb=(el=Object.create(null),e=>{let t=Lm.call(e);return el[t]||(el[t]=t.slice(8,-1).toLowerCase())}),Ly=e=>(e=e.toLowerCase(),t=>Lb(t)===e),Lw=e=>t=>typeof t===e,{isArray:Lx}=Array,LC=Lw("undefined");function LS(e){return null!==e&&!LC(e)&&null!==e.constructor&&!LC(e.constructor)&&LM(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let LE=Ly("ArrayBuffer"),L_=Lw("string"),LM=Lw("function"),LI=Lw("number"),LT=e=>null!==e&&"object"==typeof e,LB=e=>{if("object"!==Lb(e))return!1;let t=Lg(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(LA in e)&&!(Lv in e)},LR=Ly("Date"),Lk=Ly("File"),LP=Ly("Blob"),LD=Ly("FileList"),LL=Ly("URLSearchParams"),[Lz,LF,LN,LO]=["ReadableStream","Request","Response","Headers"].map(Ly);function LU(e,t,{allOwnKeys:r=!1}={}){let i,n;if(null!=e)if("object"!=typeof e&&(e=[e]),Lx(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{let n;if(LS(e))return;let a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;for(i=0;i<s;i++)n=a[i],t.call(null,e[n],n,e)}}function LQ(e,t){let r;if(LS(e))return null;t=t.toLowerCase();let i=Object.keys(e),n=i.length;for(;n-- >0;)if(t===(r=i[n]).toLowerCase())return r;return null}let LH="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,LG=e=>!LC(e)&&e!==LH,Lj=(eu="undefined"!=typeof Uint8Array&&Lg(Uint8Array),e=>eu&&e instanceof eu),LV=Ly("HTMLFormElement"),LW=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Lq=Ly("RegExp"),LX=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),i={};LU(r,(r,n)=>{let a;!1!==(a=t(r,n,e))&&(i[n]=a||r)}),Object.defineProperties(e,i)},LJ=Ly("AsyncFunction"),LK=(eA="function"==typeof setImmediate,eb=LM(LH.postMessage),eA?setImmediate:eb?(ey=`axios@${Math.random()}`,ew=[],LH.addEventListener("message",({source:e,data:t})=>{e===LH&&t===ey&&ew.length&&ew.shift()()},!1),e=>{ew.push(e),LH.postMessage(ey,"*")}):e=>setTimeout(e)),LY="undefined"!=typeof queueMicrotask?queueMicrotask.bind(LH):"undefined"!=typeof process&&process.nextTick||LK,L$={isArray:Lx,isArrayBuffer:LE,isBuffer:LS,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||LM(e.append)&&("formdata"===(t=Lb(e))||"object"===t&&LM(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&LE(e.buffer)},isString:L_,isNumber:LI,isBoolean:e=>!0===e||!1===e,isObject:LT,isPlainObject:LB,isEmptyObject:e=>{if(!LT(e)||LS(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Lz,isRequest:LF,isResponse:LN,isHeaders:LO,isUndefined:LC,isDate:LR,isFile:Lk,isBlob:LP,isRegExp:Lq,isFunction:LM,isStream:e=>LT(e)&&LM(e.pipe),isURLSearchParams:LL,isTypedArray:Lj,isFileList:LD,forEach:LU,merge:function e(){let{caseless:t,skipUndefined:r}=LG(this)&&this||{},i={},n=(n,a)=>{let s=t&&LQ(i,a)||a;LB(i[s])&&LB(n)?i[s]=e(i[s],n):LB(n)?i[s]=e({},n):Lx(n)?i[s]=n.slice():r&&LC(n)||(i[s]=n)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&LU(arguments[e],n);return i},extend:(e,t,r,{allOwnKeys:i}={})=>(LU(t,(t,i)=>{r&&LM(t)?e[i]=Lf(t,r):e[i]=t},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let n,a,s,o={};if(t=t||{},null==e)return t;do{for(a=(n=Object.getOwnPropertyNames(e)).length;a-- >0;)s=n[a],(!i||i(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=!1!==r&&Lg(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Lb,kindOfTest:Ly,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let i=e.indexOf(t,r);return -1!==i&&i===r},toArray:e=>{if(!e)return null;if(Lx(e))return e;let t=e.length;if(!LI(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,i=(e&&e[Lv]).call(e);for(;(r=i.next())&&!r.done;){let i=r.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let r,i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:LV,hasOwnProperty:LW,hasOwnProp:LW,reduceDescriptors:LX,freezeMethods:e=>{LX(e,(t,r)=>{if(LM(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(LM(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(Lx(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:LQ,global:LH,isContextDefined:LG,isSpecCompliantForm:function(e){return!!(e&&LM(e.append)&&"FormData"===e[LA]&&e[Lv])},toJSONObject:e=>{let t=Array(10),r=(e,i)=>{if(LT(e)){if(t.indexOf(e)>=0)return;if(LS(e))return e;if(!("toJSON"in e)){t[i]=e;let n=Lx(e)?[]:{};return LU(e,(e,t)=>{let a=r(e,i+1);LC(a)||(n[t]=a)}),t[i]=void 0,n}}return e};return r(e,0)},isAsyncFn:LJ,isThenable:e=>e&&(LT(e)||LM(e))&&LM(e.then)&&LM(e.catch),setImmediate:LK,asap:LY,isIterable:e=>null!=e&&LM(e[Lv])};function LZ(e,t,r,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n,this.status=n.status?n.status:null)}L$.inherits(LZ,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L$.toJSONObject(this.config),code:this.code,status:this.status}}});let L0=LZ.prototype,L1={};function L2(e){return L$.isPlainObject(e)||L$.isArray(e)}function L3(e){return L$.endsWith(e,"[]")?e.slice(0,-2):e}function L4(e,t,r){return e?e.concat(t).map(function(e,t){return e=L3(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{L1[e]={value:e}}),Object.defineProperties(LZ,L1),Object.defineProperty(L0,"isAxiosError",{value:!0}),LZ.from=(e,t,r,i,n,a)=>{let s=Object.create(L0);L$.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);let o=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return LZ.call(s,o,l,r,i,n),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};let L5=L$.toFlatObject(L$,{},null,function(e){return/^is[A-Z]/.test(e)}),L8=function(e,t,r){if(!L$.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(r=L$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!L$.isUndefined(t[e])})).metaTokens,n=r.visitor||u,a=r.dots,s=r.indexes,o=(r.Blob||"undefined"!=typeof Blob&&Blob)&&L$.isSpecCompliantForm(t);if(!L$.isFunction(n))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(L$.isDate(e))return e.toISOString();if(L$.isBoolean(e))return e.toString();if(!o&&L$.isBlob(e))throw new LZ("Blob is not supported. Use a Buffer instead.");return L$.isArrayBuffer(e)||L$.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,n){let o=e;if(e&&!n&&"object"==typeof e)if(L$.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(L$.isArray(e)&&(u=e,L$.isArray(u)&&!u.some(L2))||(L$.isFileList(e)||L$.endsWith(r,"[]"))&&(o=L$.toArray(e)))return r=L3(r),o.forEach(function(e,i){L$.isUndefined(e)||null===e||t.append(!0===s?L4([r],i,a):null===s?r:r+"[]",l(e))}),!1}return!!L2(e)||(t.append(L4(n,r,a),l(e)),!1)}let c=[],d=Object.assign(L5,{defaultVisitor:u,convertValue:l,isVisitable:L2});if(!L$.isObject(e))throw TypeError("data must be an object");return!function e(r,i){if(!L$.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+i.join("."));c.push(r),L$.forEach(r,function(r,a){!0===(!(L$.isUndefined(r)||null===r)&&n.call(t,r,L$.isString(a)?a.trim():a,i,d))&&e(r,i?i.concat(a):[a])}),c.pop()}}(e),t};function L6(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function L9(e,t){this._pairs=[],e&&L8(e,this,t)}let L7=L9.prototype;function ze(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zt(e,t,r){let i;if(!t)return e;let n=r&&r.encode||ze;L$.isFunction(r)&&(r={serialize:r});let a=r&&r.serialize;if(i=a?a(t,r):L$.isURLSearchParams(t)?t.toString():new L9(t,r).toString(n)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}L7.append=function(e,t){this._pairs.push([e,t])},L7.toString=function(e){let t=e?function(t){return e.call(this,t,L6)}:L6;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let zr=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){L$.forEach(this.handlers,function(t){null!==t&&e(t)})}},zi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zn="undefined"!=typeof URLSearchParams?URLSearchParams:L9,za="undefined"!=typeof FormData?FormData:null,zs="undefined"!=typeof Blob?Blob:null,zo="undefined"!=typeof window&&"undefined"!=typeof document,zl="object"==typeof navigator&&navigator||void 0,zu=zo&&(!zl||0>["ReactNative","NativeScript","NS"].indexOf(zl.product)),zc="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,zd=zo&&window.location.href||"http://localhost",zh={...ku,isBrowser:!0,classes:{URLSearchParams:zn,FormData:za,Blob:zs},protocols:["http","https","file","blob","url","data"]},zp=function(e){if(L$.isFormData(e)&&L$.isFunction(e.entries)){let t={};return L$.forEachEntry(e,(e,r)=>{!function e(t,r,i,n){let a=t[n++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),o=n>=t.length;return(a=!a&&L$.isArray(i)?i.length:a,o)?L$.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r:(i[a]&&L$.isObject(i[a])||(i[a]=[]),e(t,r,i[a],n)&&L$.isArray(i[a])&&(i[a]=function(e){let t,r,i={},n=Object.keys(e),a=n.length;for(t=0;t<a;t++)i[r=n[t]]=e[r];return i}(i[a]))),!s}(L$.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},zf={transitional:zi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,i=t.getContentType()||"",n=i.indexOf("application/json")>-1,a=L$.isObject(e);if(a&&L$.isHTMLForm(e)&&(e=new FormData(e)),L$.isFormData(e))return n?JSON.stringify(zp(e)):e;if(L$.isArrayBuffer(e)||L$.isBuffer(e)||L$.isStream(e)||L$.isFile(e)||L$.isBlob(e)||L$.isReadableStream(e))return e;if(L$.isArrayBufferView(e))return e.buffer;if(L$.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1){var s,o;return(s=e,o=this.formSerializer,L8(s,new zh.classes.URLSearchParams,{visitor:function(e,t,r,i){return zh.isNode&&L$.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...o})).toString()}if((r=L$.isFileList(e))||i.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return L8(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(a||n){t.setContentType("application/json",!1);var l=e;if(L$.isString(l))try{return(0,JSON.parse)(l),L$.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||zf.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(L$.isResponse(e)||L$.isReadableStream(e))return e;if(e&&L$.isString(e)&&(r&&!this.responseType||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw LZ.from(e,LZ.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zh.classes.FormData,Blob:zh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L$.forEach(["delete","get","head","post","put","patch"],e=>{zf.headers[e]={}});let zm=L$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zg=Symbol("internals");function zv(e){return e&&String(e).trim().toLowerCase()}function zA(e){return!1===e||null==e?e:L$.isArray(e)?e.map(zA):String(e)}function zb(e,t,r,i,n){if(L$.isFunction(i))return i.call(this,t,r);if(n&&(t=r),L$.isString(t)){if(L$.isString(i))return -1!==t.indexOf(i);if(L$.isRegExp(i))return i.test(t)}}ty=Symbol.iterator,tw=Symbol.toStringTag;class zy{constructor(e){e&&this.set(e)}set(e,t,r){let i=this;function n(e,t,r){let n=zv(t);if(!n)throw Error("header name must be a non-empty string");let a=L$.findKey(i,n);a&&void 0!==i[a]&&!0!==r&&(void 0!==r||!1===i[a])||(i[a||t]=zA(e))}let a=(e,t)=>L$.forEach(e,(e,r)=>n(e,r,t));if(L$.isPlainObject(e)||e instanceof this.constructor)a(e,t);else{let i;if(L$.isString(e)&&(e=e.trim())&&(i=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim()))){var s;let r,i,n,o;a((o={},(s=e)&&s.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),i=e.substring(n+1).trim(),!r||o[r]&&zm[r]||("set-cookie"===r?o[r]?o[r].push(i):o[r]=[i]:o[r]=o[r]?o[r]+", "+i:i)}),o),t)}else if(L$.isObject(e)&&L$.isIterable(e)){let r={},i,n;for(let t of e){if(!L$.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[n=t[0]]=(i=r[n])?L$.isArray(i)?[...i,t[1]]:[i,t[1]]:t[1]}a(r,t)}else null!=e&&n(t,e,r)}return this}get(e,t){if(e=zv(e)){let r=L$.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)r[t[1]]=t[2];return r}if(L$.isFunction(t))return t.call(this,e,r);if(L$.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=zv(e)){let r=L$.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||zb(this,this[r],r,t)))}return!1}delete(e,t){let r=this,i=!1;function n(e){if(e=zv(e)){let n=L$.findKey(r,e);n&&(!t||zb(r,r[n],n,t))&&(delete r[n],i=!0)}}return L$.isArray(e)?e.forEach(n):n(e),i}clear(e){let t=Object.keys(this),r=t.length,i=!1;for(;r--;){let n=t[r];(!e||zb(this,this[n],n,e,!0))&&(delete this[n],i=!0)}return i}normalize(e){let t=this,r={};return L$.forEach(this,(i,n)=>{let a=L$.findKey(r,n);if(a){t[a]=zA(i),delete t[n];return}let s=e?n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(n).trim();s!==n&&delete t[n],t[s]=zA(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return L$.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&L$.isArray(r)?r.join(", "):r)}),t}[ty](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[tw](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[zg]=this[zg]={accessors:{}}).accessors,r=this.prototype;function i(e){let i=zv(e);if(!t[i]){let n;n=L$.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+n,{value:function(r,i,n){return this[t].call(this,e,r,i,n)},configurable:!0})}),t[i]=!0}}return L$.isArray(e)?e.forEach(i):i(e),this}}function zw(e,t){let r=this||zf,i=t||r,n=zy.from(i.headers),a=i.data;return L$.forEach(e,function(e){a=e.call(r,a,n.normalize(),t?t.status:void 0)}),n.normalize(),a}function zx(e){return!!(e&&e.__CANCEL__)}function zC(e,t,r){LZ.call(this,null==e?"canceled":e,LZ.ERR_CANCELED,t,r),this.name="CanceledError"}function zS(e,t,r){let i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new LZ("Request failed with status code "+r.status,[LZ.ERR_BAD_REQUEST,LZ.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}zy.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),L$.reduceDescriptors(zy.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),L$.freezeMethods(zy),L$.inherits(zC,LZ,{__CANCEL__:!0});let zE=function(e,t){let r,i=Array(e=e||10),n=Array(e),a=0,s=0;return t=void 0!==t?t:1e3,function(o){let l=Date.now(),u=n[s];r||(r=l),i[a]=o,n[a]=l;let c=s,d=0;for(;c!==a;)d+=i[c++],c%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),l-r<t)return;let h=u&&l-u;return h?Math.round(1e3*d/h):void 0}},z_=function(e,t){let r,i,n=0,a=1e3/t,s=(t,a=Date.now())=>{n=a,r=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),o=t-n;o>=a?s(e,t):(r=e,i||(i=setTimeout(()=>{i=null,s(r)},a-o)))},()=>r&&s(r)]},zM=(e,t,r=3)=>{let i=0,n=zE(50,250);return z_(r=>{let a=r.loaded,s=r.lengthComputable?r.total:void 0,o=a-i,l=n(o);i=a,e({loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&a<=s?(s-a)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},zI=(e,t)=>{let r=null!=e;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},zT=e=>(...t)=>L$.asap(()=>e(...t)),zB=zh.hasStandardBrowserEnv?(ec=new URL(zh.origin),ed=zh.navigator&&/(msie|trident)/i.test(zh.navigator.userAgent),e=>(e=new URL(e,zh.origin),ec.protocol===e.protocol&&ec.host===e.host&&(ed||ec.port===e.port))):()=>!0,zR=zh.hasStandardBrowserEnv?{write(e,t,r,i,n,a,s){if("undefined"==typeof document)return;let o=[`${e}=${encodeURIComponent(t)}`];L$.isNumber(r)&&o.push(`expires=${new Date(r).toUTCString()}`),L$.isString(i)&&o.push(`path=${i}`),L$.isString(n)&&o.push(`domain=${n}`),!0===a&&o.push("secure"),L$.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function zk(e,t,r){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(i||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let zP=e=>e instanceof zy?{...e}:e;function zD(e,t){t=t||{};let r={};function i(e,t,r,i){return L$.isPlainObject(e)&&L$.isPlainObject(t)?L$.merge.call({caseless:i},e,t):L$.isPlainObject(t)?L$.merge({},t):L$.isArray(t)?t.slice():t}function n(e,t,r,n){return L$.isUndefined(t)?L$.isUndefined(e)?void 0:i(void 0,e,r,n):i(e,t,r,n)}function a(e,t){if(!L$.isUndefined(t))return i(void 0,t)}function s(e,t){return L$.isUndefined(t)?L$.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function o(r,n,a){return a in t?i(r,n):a in e?i(void 0,r):void 0}let l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(e,t,r)=>n(zP(e),zP(t),r,!0)};return L$.forEach(Object.keys({...e,...t}),function(i){let a=l[i]||n,s=a(e[i],t[i],i);L$.isUndefined(s)&&a!==o||(r[i]=s)}),r}let zL=e=>{let t=zD({},e),{data:r,withXSRFToken:i,xsrfHeaderName:n,xsrfCookieName:a,headers:s,auth:o}=t;if(t.headers=s=zy.from(s),t.url=zt(zk(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),L$.isFormData(r)){if(zh.hasStandardBrowserEnv||zh.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(L$.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}}if(zh.hasStandardBrowserEnv&&(i&&L$.isFunction(i)&&(i=i(t)),i||!1!==i&&zB(t.url))){let e=n&&a&&zR.read(a);e&&s.set(n,e)}return t},zz="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){var i;let n,a,s,o,l,u,c=zL(e),d=c.data,h=zy.from(c.headers).normalize(),{responseType:p,onUploadProgress:f,onDownloadProgress:m}=c;function g(){o&&o(),l&&l(),c.cancelToken&&c.cancelToken.unsubscribe(n),c.signal&&c.signal.removeEventListener("abort",n)}let v=new XMLHttpRequest;function A(){if(!v)return;let i=zy.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());zS(function(e){t(e),g()},function(e){r(e),g()},{data:p&&"text"!==p&&"json"!==p?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:i,config:e,request:v}),v=null}v.open(c.method.toUpperCase(),c.url,!0),v.timeout=c.timeout,"onloadend"in v?v.onloadend=A:v.onreadystatechange=function(){!v||4!==v.readyState||(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(A)},v.onabort=function(){v&&(r(new LZ("Request aborted",LZ.ECONNABORTED,e,v)),v=null)},v.onerror=function(t){let i=new LZ(t&&t.message?t.message:"Network Error",LZ.ERR_NETWORK,e,v);i.event=t||null,r(i),v=null},v.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",i=c.transitional||zi;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),r(new LZ(t,i.clarifyTimeoutError?LZ.ETIMEDOUT:LZ.ECONNABORTED,e,v)),v=null},void 0===d&&h.setContentType(null),"setRequestHeader"in v&&L$.forEach(h.toJSON(),function(e,t){v.setRequestHeader(t,e)}),L$.isUndefined(c.withCredentials)||(v.withCredentials=!!c.withCredentials),p&&"json"!==p&&(v.responseType=c.responseType),m&&([s,l]=zM(m,!0),v.addEventListener("progress",s)),f&&v.upload&&([a,o]=zM(f),v.upload.addEventListener("progress",a),v.upload.addEventListener("loadend",o)),(c.cancelToken||c.signal)&&(n=t=>{v&&(r(!t||t.type?new zC(null,e,v):t),v.abort(),v=null)},c.cancelToken&&c.cancelToken.subscribe(n),c.signal&&(c.signal.aborted?n():c.signal.addEventListener("abort",n)));let b=(i=c.url,(u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i))&&u[1]||"");b&&-1===zh.protocols.indexOf(b)?r(new LZ("Unsupported protocol "+b+":",LZ.ERR_BAD_REQUEST,e)):v.send(d||null)})},zF=function*(e,t){let r,i=e.byteLength;if(!t||i<t)return void(yield e);let n=0;for(;n<i;)r=n+t,yield e.slice(n,r),n=r},zN=async function*(e,t){for await(let r of zO(e))yield*zF(r,t)},zO=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},zU=(e,t,r,i)=>{let n,a=zN(e,t),s=0,o=e=>{!n&&(n=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await a.next();if(t){o(),e.close();return}let n=i.byteLength;if(r){let e=s+=n;r(e)}e.enqueue(new Uint8Array(i))}catch(e){throw o(e),e}},cancel:e=>(o(e),a.return())},{highWaterMark:2})},{isFunction:zQ}=L$,zH=(({Request:e,Response:t})=>({Request:e,Response:t}))(L$.global),{ReadableStream:zG,TextEncoder:zj}=L$.global,zV=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},zW=e=>{let t,{fetch:r,Request:i,Response:n}=e=L$.merge.call({skipUndefined:!0},zH,e),a=r?zQ(r):"function"==typeof fetch,s=zQ(i),o=zQ(n);if(!a)return!1;let l=a&&zQ(zG),u=a&&("function"==typeof zj?(t=new zj,e=>t.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer())),c=s&&l&&zV(()=>{let e=!1,t=new i(zh.origin,{body:new zG,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=o&&l&&zV(()=>L$.isReadableStream(new n("").body)),h={stream:d&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,r)=>{let i=t&&t[e];if(i)return i.call(t);throw new LZ(`Response type '${e}' is not supported`,LZ.ERR_NOT_SUPPORT,r)})});let p=async e=>{if(null==e)return 0;if(L$.isBlob(e))return e.size;if(L$.isSpecCompliantForm(e)){let t=new i(zh.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return L$.isArrayBufferView(e)||L$.isArrayBuffer(e)?e.byteLength:(L$.isURLSearchParams(e)&&(e+=""),L$.isString(e))?(await u(e)).byteLength:void 0},f=async(e,t)=>{let r=L$.toFiniteNumber(e.getContentLength());return null==r?p(t):r};return async e=>{let t,{url:a,method:o,data:l,signal:u,cancelToken:p,timeout:m,onDownloadProgress:g,onUploadProgress:v,responseType:A,headers:b,withCredentials:y="same-origin",fetchOptions:w}=zL(e),x=r||fetch;A=A?(A+"").toLowerCase():"text";let C=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,i=new AbortController,n=function(e){if(!r){r=!0,s();let t=e instanceof Error?e:this.reason;i.abort(t instanceof LZ?t:new zC(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,n(new LZ(`timeout ${t} of ms exceeded`,LZ.ETIMEDOUT))},t),s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));let{signal:o}=i;return o.unsubscribe=()=>L$.asap(s),o}})([u,p&&p.toAbortSignal()],m),S=null,E=C&&C.unsubscribe&&(()=>{C.unsubscribe()});try{if(v&&c&&"get"!==o&&"head"!==o&&0!==(t=await f(b,l))){let e,r=new i(a,{method:"POST",body:l,duplex:"half"});if(L$.isFormData(l)&&(e=r.headers.get("content-type"))&&b.setContentType(e),r.body){let[e,i]=zI(t,zM(zT(v)));l=zU(r.body,65536,e,i)}}L$.isString(y)||(y=y?"include":"omit");let r=s&&"credentials"in i.prototype,u={...w,signal:C,method:o.toUpperCase(),headers:b.normalize().toJSON(),body:l,duplex:"half",credentials:r?y:void 0};S=s&&new i(a,u);let p=await (s?x(S,w):x(a,u)),m=d&&("stream"===A||"response"===A);if(d&&(g||m&&E)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});let t=L$.toFiniteNumber(p.headers.get("content-length")),[r,i]=g&&zI(t,zM(zT(g),!0))||[];p=new n(zU(p.body,65536,r,()=>{i&&i(),E&&E()}),e)}A=A||"text";let _=await h[L$.findKey(h,A)||"text"](p,e);return!m&&E&&E(),await new Promise((t,r)=>{zS(t,r,{data:_,headers:zy.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:S})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new LZ("Network Error",LZ.ERR_NETWORK,e,S),{cause:t.cause||t});throw LZ.from(t,t&&t.code,e,S)}}},zq=new Map,zX=e=>{let t=e&&e.env||{},{fetch:r,Request:i,Response:n}=t,a=[i,n,r],s=a.length,o,l,u=zq;for(;s--;)o=a[s],void 0===(l=u.get(o))&&u.set(o,l=s?new Map:zW(t)),u=l;return l};zX();let zJ={http:null,xhr:zz,fetch:{get:zX}};L$.forEach(zJ,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let zK=e=>`- ${e}`,zY=e=>L$.isFunction(e)||null===e||!1===e,z$=function(e,t){let r,i,{length:n}=e=L$.isArray(e)?e:[e],a={};for(let s=0;s<n;s++){let n;if(i=r=e[s],!zY(r)&&void 0===(i=zJ[(n=String(r)).toLowerCase()]))throw new LZ(`Unknown adapter '${n}'`);if(i&&(L$.isFunction(i)||(i=i.get(t))))break;a[n||"#"+s]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new LZ("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(zK).join("\n"):" "+zK(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function zZ(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zC(null,e)}function z0(e){return zZ(e),e.headers=zy.from(e.headers),e.data=zw.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),z$(e.adapter||zf.adapter,e)(e).then(function(t){return zZ(e),t.data=zw.call(e,e.transformResponse,t),t.headers=zy.from(t.headers),t},function(t){return!zx(t)&&(zZ(e),t&&t.response&&(t.response.data=zw.call(e,e.transformResponse,t.response),t.response.headers=zy.from(t.response.headers))),Promise.reject(t)})}let z1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{z1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let z2={};z1.transitional=function(e,t,r){function i(e,t){return"[Axios v1.13.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,a)=>{if(!1===e)throw new LZ(i(n," has been removed"+(t?" in "+t:"")),LZ.ERR_DEPRECATED);return t&&!z2[n]&&(z2[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},z1.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let z3=function(e,t,r){if("object"!=typeof e)throw new LZ("options must be an object",LZ.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),n=i.length;for(;n-- >0;){let a=i[n],s=t[a];if(s){let t=e[a],r=void 0===t||s(t,a,e);if(!0!==r)throw new LZ("option "+a+" must be "+r,LZ.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new LZ("Unknown option "+a,LZ.ERR_BAD_OPTION)}};class z4{constructor(e){this.defaults=e||{},this.interceptors={request:new zr,response:new zr}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:a,headers:s}=t=zD(this.defaults,t);void 0!==n&&z3(n,{silentJSONParsing:z1.transitional(z1.boolean),forcedJSONParsing:z1.transitional(z1.boolean),clarifyTimeoutError:z1.transitional(z1.boolean)},!1),null!=a&&(L$.isFunction(a)?t.paramsSerializer={serialize:a}:z3(a,{encode:z1.function,serialize:z1.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),z3(t,{baseUrl:z1.spelling("baseURL"),withXsrfToken:z1.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&L$.merge(s.common,s[t.method]);s&&L$.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=zy.concat(o,s);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[z0.bind(this),void 0];for(e.unshift(...l),e.push(...c),i=e.length,r=Promise.resolve(t);d<i;)r=r.then(e[d++],e[d++]);return r}i=l.length;let h=t;for(;d<i;){let e=l[d++],t=l[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{r=z0.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,i=c.length;d<i;)r=r.then(c[d++],c[d++]);return r}getUri(e){return zt(zk((e=zD(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}L$.forEach(["delete","get","head","options"],function(e){z4.prototype[e]=function(t,r){return this.request(zD(r||{},{method:e,url:t,data:(r||{}).data}))}}),L$.forEach(["post","put","patch"],function(e){function t(t){return function(r,i,n){return this.request(zD(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}z4.prototype[e]=t(),z4.prototype[e+"Form"]=t(!0)});class z5{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,n){r.reason||(r.reason=new zC(e,i,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new z5(function(t){e=t}),cancel:e}}}let z8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(z8).forEach(([e,t])=>{z8[t]=e});let z6=function e(t){let r=new z4(t),i=Lf(z4.prototype.request,r);return L$.extend(i,z4.prototype,r,{allOwnKeys:!0}),L$.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(zD(t,r))},i}(zf);z6.Axios=z4,z6.CanceledError=zC,z6.CancelToken=z5,z6.isCancel=zx,z6.VERSION="1.13.2",z6.toFormData=L8,z6.AxiosError=LZ,z6.Cancel=z6.CanceledError,z6.all=function(e){return Promise.all(e)},z6.spread=function(e){return function(t){return e.apply(null,t)}},z6.isAxiosError=function(e){return L$.isObject(e)&&!0===e.isAxiosError},z6.mergeConfig=zD,z6.AxiosHeaders=zy,z6.formToJSON=e=>zp(L$.isHTMLForm(e)?new FormData(e):e),z6.getAdapter=z$,z6.HttpStatusCode=z8,z6.default=z6;let{Axios:z9,AxiosError:z7,CanceledError:Fe,isCancel:Ft,CancelToken:Fr,VERSION:Fi,all:Fn,Cancel:Fa,isAxiosError:Fs,spread:Fo,toFormData:Fl,AxiosHeaders:Fu,HttpStatusCode:Fc,formToJSON:Fd,getAdapter:Fh,mergeConfig:Fp}=z6;function Ff(){return z6.create({baseURL:"https://api.vizbl.us",timeout:3e4})}let Fm=Ff(),Fg=Ff();async function Fv(e,t){var r;let i,n=function(e,t){var r;let i;if(void 0===t.data||(r=t.data,"undefined"!=typeof FormData&&r instanceof FormData||null!==r&&"object"==typeof r&&(r.constructor?.name==="FormData"||"function"==typeof r.getBoundary)))return t;let n=Fu.from(t.headers);return n.has("Content-Type")||void 0!==(i=e.defaults.headers.common)&&Fu.from(i).has("Content-Type")||n.set("Content-Type","application/json"),t.headers=n,t}(e,(r={...t},i=Fu.from(r.headers),r.headers=i,r));try{return await e.request(n)}catch(e){throw e}}async function FA(e){return Fv(e.skipUnauthorizedRecovery?Fg:Fm,function(e){let{skipUnauthorizedRecovery:t,...r}=e;return r}(e))}async function Fb(e){return FA(e)}async function Fy(e,t={}){let{client:r=Fb,...i}=t;return(await r({method:"POST",url:"/obj/Fetch",data:e,...i})).data}var Fw=tE.forwardRef((e,t)=>(0,tI.jsx)(Pk.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));function Fx({className:e,...t}){return(0,tI.jsx)(Fw,{"data-slot":"label",className:Pg("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function FC({className:e,...t}){return(0,tI.jsx)("div",{"data-slot":"field-group",className:Pg("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}Fw.displayName="Label";let FS=PA("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function FE({className:e,orientation:t="vertical",...r}){return(0,tI.jsx)("div",{role:"group","data-slot":"field","data-orientation":t,className:Pg(FS({orientation:t}),e),...r})}function F_({className:e,...t}){return(0,tI.jsx)(Fx,{"data-slot":"field-label",className:Pg("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e),...t})}function FM({className:e,...t}){return(0,tI.jsx)("div",{"data-slot":"field-label",className:Pg("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",e),...t})}function FI(e,[t,r]){return Math.min(r,Math.max(t,e))}function FT(e){let t=e+"CollectionProvider",[r,i]=Px(t),[n,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,i=tE.useRef(null),a=tE.useRef(new Map).current;return(0,tI.jsx)(n,{scope:t,itemMap:a,collectionRef:i,children:r})};s.displayName=t;let o=e+"CollectionSlot",l=PT(o),u=tE.forwardRef((e,t)=>{let{scope:r,children:i}=e,n=kh(t,a(o,r).collectionRef);return(0,tI.jsx)(l,{ref:n,children:i})});u.displayName=o;let c=e+"CollectionItemSlot",d="data-radix-collection-item",h=PT(c),p=tE.forwardRef((e,t)=>{let{scope:r,children:i,...n}=e,s=tE.useRef(null),o=kh(t,s),l=a(c,r);return tE.useEffect(()=>(l.itemMap.set(s,{ref:s,...n}),()=>void l.itemMap.delete(s))),(0,tI.jsx)(h,{...{[d]:""},ref:o,children:i})});return p.displayName=c,[{Provider:s,Slot:u,ItemSlot:p},function(t){let r=a(e+"CollectionConsumer",t);return tE.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},i]}var FB=tE.createContext(void 0);function FR(e){let t=tE.useContext(FB);return e||t||"ltr"}let Fk=["top","right","bottom","left"],FP=Math.min,FD=Math.max,FL=Math.round,Fz=Math.floor,FF=e=>({x:e,y:e}),FN={left:"right",right:"left",bottom:"top",top:"bottom"},FO={start:"end",end:"start"};function FU(e,t){return"function"==typeof e?e(t):e}function FQ(e){return e.split("-")[0]}function FH(e){return e.split("-")[1]}function FG(e){return"x"===e?"y":"x"}function Fj(e){return"y"===e?"height":"width"}let FV=new Set(["top","bottom"]);function FW(e){return FV.has(FQ(e))?"y":"x"}function Fq(e){return e.replace(/start|end/g,e=>FO[e])}let FX=["left","right"],FJ=["right","left"],FK=["top","bottom"],FY=["bottom","top"];function F$(e){return e.replace(/left|right|bottom|top/g,e=>FN[e])}function FZ(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function F0(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function F1(e,t,r){let i,{reference:n,floating:a}=e,s=FW(t),o=FG(FW(t)),l=Fj(o),u=FQ(t),c="y"===s,d=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,p=n[l]/2-a[l]/2;switch(u){case"top":i={x:d,y:n.y-a.height};break;case"bottom":i={x:d,y:n.y+n.height};break;case"right":i={x:n.x+n.width,y:h};break;case"left":i={x:n.x-a.width,y:h};break;default:i={x:n.x,y:n.y}}switch(FH(t)){case"start":i[o]-=p*(r&&c?-1:1);break;case"end":i[o]+=p*(r&&c?-1:1)}return i}let F2=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,o=a.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:c,y:d}=F1(u,i,l),h=i,p={},f=0;for(let r=0;r<o.length;r++){let{name:a,fn:m}=o[r],{x:g,y:v,data:A,reset:b}=await m({x:c,y:d,initialPlacement:i,placement:h,strategy:n,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,p={...p,[a]:{...p[a],...A}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:n}):b.rects),{x:c,y:d}=F1(u,h,l)),r=-1)}return{x:c,y:d,placement:h,strategy:n,middlewareData:p}};async function F3(e,t){var r;void 0===t&&(t={});let{x:i,y:n,platform:a,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=FU(t,e),f=FZ(p),m=o[h?"floating"===d?"reference":"floating":d],g=F0(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(m)))||r?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,A=await (null==a.getOffsetParent?void 0:a.getOffsetParent(o.floating)),b=await (null==a.isElement?void 0:a.isElement(A))&&await (null==a.getScale?void 0:a.getScale(A))||{x:1,y:1},y=F0(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:A,strategy:l}):v);return{top:(g.top-y.top+f.top)/b.y,bottom:(y.bottom-g.bottom+f.bottom)/b.y,left:(g.left-y.left+f.left)/b.x,right:(y.right-g.right+f.right)/b.x}}function F4(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function F5(e){return Fk.some(t=>e[t]>=0)}let F8=new Set(["left","top"]);async function F6(e,t){let{placement:r,platform:i,elements:n}=e,a=await (null==i.isRTL?void 0:i.isRTL(n.floating)),s=FQ(r),o=FH(r),l="y"===FW(r),u=F8.has(s)?-1:1,c=a&&l?-1:1,d=FU(t,e),{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&"number"==typeof f&&(p="end"===o?-1*f:f),l?{x:p*c,y:h*u}:{x:h*u,y:p*c}}function F9(){return"undefined"!=typeof window}function F7(e){return Nr(e)?(e.nodeName||"").toLowerCase():"#document"}function Ne(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Nt(e){var t;return null==(t=(Nr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Nr(e){return!!F9()&&(e instanceof Node||e instanceof Ne(e).Node)}function Ni(e){return!!F9()&&(e instanceof Element||e instanceof Ne(e).Element)}function Nn(e){return!!F9()&&(e instanceof HTMLElement||e instanceof Ne(e).HTMLElement)}function Na(e){return!!F9()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot)}let Ns=new Set(["inline","contents"]);function No(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=NA(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!Ns.has(n)}let Nl=new Set(["table","td","th"]),Nu=[":popover-open",":modal"];function Nc(e){return Nu.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let Nd=["transform","translate","scale","rotate","perspective"],Nh=["transform","translate","scale","rotate","perspective","filter"],Np=["paint","layout","strict","content"];function Nf(e){let t=Nm(),r=Ni(e)?NA(e):e;return Nd.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||Nh.some(e=>(r.willChange||"").includes(e))||Np.some(e=>(r.contain||"").includes(e))}function Nm(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Ng=new Set(["html","body","#document"]);function Nv(e){return Ng.has(F7(e))}function NA(e){return Ne(e).getComputedStyle(e)}function Nb(e){return Ni(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ny(e){if("html"===F7(e))return e;let t=e.assignedSlot||e.parentNode||Na(e)&&e.host||Nt(e);return Na(t)?t.host:t}function Nw(e,t,r){var i;void 0===t&&(t=[]),void 0===r&&(r=!0);let n=function e(t){let r=Ny(t);return Nv(r)?t.ownerDocument?t.ownerDocument.body:t.body:Nn(r)&&No(r)?r:e(r)}(e),a=n===(null==(i=e.ownerDocument)?void 0:i.body),s=Ne(n);if(a){let e=Nx(s);return t.concat(s,s.visualViewport||[],No(n)?n:[],e&&r?Nw(e):[])}return t.concat(n,Nw(n,[],r))}function Nx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function NC(e){let t=NA(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=Nn(e),a=n?e.offsetWidth:r,s=n?e.offsetHeight:i,o=FL(r)!==a||FL(i)!==s;return o&&(r=a,i=s),{width:r,height:i,$:o}}function NS(e){return Ni(e)?e:e.contextElement}function NE(e){let t=NS(e);if(!Nn(t))return FF(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:a}=NC(t),s=(a?FL(r.width):r.width)/i,o=(a?FL(r.height):r.height)/n;return s&&Number.isFinite(s)||(s=1),o&&Number.isFinite(o)||(o=1),{x:s,y:o}}let N_=FF(0);function NM(e){let t=Ne(e);return Nm()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:N_}function NI(e,t,r,i){var n;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),s=NS(e),o=FF(1);t&&(i?Ni(i)&&(o=NE(i)):o=NE(e));let l=(void 0===(n=r)&&(n=!1),i&&(!n||i===Ne(s))&&n)?NM(s):FF(0),u=(a.left+l.x)/o.x,c=(a.top+l.y)/o.y,d=a.width/o.x,h=a.height/o.y;if(s){let e=Ne(s),t=i&&Ni(i)?Ne(i):i,r=e,n=Nx(r);for(;n&&i&&t!==r;){let e=NE(n),t=n.getBoundingClientRect(),i=NA(n),a=t.left+(n.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(n.clientTop+parseFloat(i.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,h*=e.y,u+=a,c+=s,n=Nx(r=Ne(n))}}return F0({width:d,height:h,x:u,y:c})}function NT(e,t){let r=Nb(e).scrollLeft;return t?t.left+r:NI(Nt(e)).left+r}function NB(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-NT(e,r),y:r.top+t.scrollTop}}let NR=new Set(["absolute","fixed"]);function Nk(e,t,r){var i;let n;if("viewport"===t)n=function(e,t){let r=Ne(e),i=Nt(e),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,o=0,l=0;if(n){a=n.width,s=n.height;let e=Nm();(!e||e&&"fixed"===t)&&(o=n.offsetLeft,l=n.offsetTop)}let u=NT(i);if(u<=0){let e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,s=Math.abs(i.clientWidth-t.clientWidth-n);s<=25&&(a-=s)}else u<=25&&(a+=u);return{width:a,height:s,x:o,y:l}}(e,r);else if("document"===t){let t,r,a,s,o,l,u;i=Nt(e),t=Nt(i),r=Nb(i),a=i.ownerDocument.body,s=FD(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=FD(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),l=-r.scrollLeft+NT(i),u=-r.scrollTop,"rtl"===NA(a).direction&&(l+=FD(t.clientWidth,a.clientWidth)-s),n={width:s,height:o,x:l,y:u}}else if(Ni(t)){let e,i,a,s,o,l;i=(e=NI(t,!0,"fixed"===r)).top+t.clientTop,a=e.left+t.clientLeft,s=Nn(t)?NE(t):FF(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,n={width:o,height:l,x:a*s.x,y:i*s.y}}else{let r=NM(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return F0(n)}function NP(e){return"static"===NA(e).position}function ND(e,t){if(!Nn(e)||"fixed"===NA(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Nt(e)===r&&(r=r.ownerDocument.body),r}function NL(e,t){var r;let i=Ne(e);if(Nc(e))return i;if(!Nn(e)){let t=Ny(e);for(;t&&!Nv(t);){if(Ni(t)&&!NP(t))return t;t=Ny(t)}return i}let n=ND(e,t);for(;n&&(r=n,Nl.has(F7(r)))&&NP(n);)n=ND(n,t);return n&&Nv(n)&&NP(n)&&!Nf(n)?i:n||function(e){let t=Ny(e);for(;Nn(t)&&!Nv(t);){if(Nf(t))return t;if(Nc(t))break;t=Ny(t)}return null}(e)||i}let Nz=async function(e){let t=this.getOffsetParent||NL,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=Nn(t),n=Nt(t),a="fixed"===r,s=NI(e,!0,a,t),o={scrollLeft:0,scrollTop:0},l=FF(0);if(i||!i&&!a)if(("body"!==F7(t)||No(n))&&(o=Nb(t)),i){let e=NI(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else n&&(l.x=NT(n));a&&!i&&n&&(l.x=NT(n));let u=!n||i||a?FF(0):NB(n,o);return{x:s.left+o.scrollLeft-l.x-u.x,y:s.top+o.scrollTop-l.y-u.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},NF={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,a="fixed"===n,s=Nt(i),o=!!t&&Nc(t.floating);if(i===s||o&&a)return r;let l={scrollLeft:0,scrollTop:0},u=FF(1),c=FF(0),d=Nn(i);if((d||!d&&!a)&&(("body"!==F7(i)||No(s))&&(l=Nb(i)),Nn(i))){let e=NI(i);u=NE(i),c.x=e.x+i.clientLeft,c.y=e.y+i.clientTop}let h=!s||d||a?FF(0):NB(s,l);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:r.y*u.y-l.scrollTop*u.y+c.y+h.y}},getDocumentElement:Nt,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,a=[..."clippingAncestors"===r?Nc(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let i=Nw(e,[],!1).filter(e=>Ni(e)&&"body"!==F7(e)),n=null,a="fixed"===NA(e).position,s=a?Ny(e):e;for(;Ni(s)&&!Nv(s);){let t=NA(s),r=Nf(s);r||"fixed"!==t.position||(n=null),(a?!r&&!n:!r&&"static"===t.position&&!!n&&NR.has(n.position)||No(s)&&!r&&function e(t,r){let i=Ny(t);return!(i===r||!Ni(i)||Nv(i))&&("fixed"===NA(i).position||e(i,r))}(e,s))?i=i.filter(e=>e!==s):n=t,s=Ny(s)}return t.set(e,i),i}(t,this._c):[].concat(r),i],s=a[0],o=a.reduce((e,r)=>{let i=Nk(t,r,n);return e.top=FD(i.top,e.top),e.right=FP(i.right,e.right),e.bottom=FP(i.bottom,e.bottom),e.left=FD(i.left,e.left),e},Nk(t,s,n));return{width:o.right-o.left,height:o.bottom-o.top,x:o.left,y:o.top}},getOffsetParent:NL,getElementRects:Nz,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=NC(e);return{width:t,height:r}},getScale:NE,isElement:Ni,isRTL:function(e){return"rtl"===NA(e).direction}};function NN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let NO=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:n,rects:a,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=FU(e,t)||{};if(null==u)return{};let d=FZ(c),h={x:r,y:i},p=FG(FW(n)),f=Fj(p),m=await s.getDimensions(u),g="y"===p,v=g?"clientHeight":"clientWidth",A=a.reference[f]+a.reference[p]-h[p]-a.floating[f],b=h[p]-a.reference[p],y=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),w=y?y[v]:0;w&&await (null==s.isElement?void 0:s.isElement(y))||(w=o.floating[v]||a.floating[f]);let x=w/2-m[f]/2-1,C=FP(d[g?"top":"left"],x),S=FP(d[g?"bottom":"right"],x),E=w-m[f]-S,_=w/2-m[f]/2+(A/2-b/2),M=FD(C,FP(_,E)),I=!l.arrow&&null!=FH(n)&&_!==M&&a.reference[f]/2-(_<C?C:S)-m[f]/2<0,T=I?_<C?_-C:_-E:0;return{[p]:h[p]+T,data:{[p]:M,centerOffset:_-M-T,...I&&{alignmentOffset:T}},reset:I}}});var NU="undefined"!=typeof document?tE.useLayoutEffect:function(){};function NQ(e,t){let r,i,n;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(i=r;0!=i--;)if(!NQ(e[i],t[i]))return!1;return!0}if((r=(n=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=r;0!=i--;)if(!({}).hasOwnProperty.call(t,n[i]))return!1;for(i=r;0!=i--;){let r=n[i];if(("_owner"!==r||!e.$$typeof)&&!NQ(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function NH(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function NG(e,t){let r=NH(e);return Math.round(t*r)/r}function Nj(e){let t=tE.useRef(e);return NU(()=>{t.current=e}),t}var NV=tE.forwardRef((e,t)=>{let{children:r,width:i=10,height:n=5,...a}=e;return(0,tI.jsx)(Pk.svg,{...a,ref:t,width:i,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,tI.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function NW(e){let[t,r]=tE.useState(void 0);return PC(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let i,n;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,n=t.blockSize}else i=e.offsetWidth,n=e.offsetHeight;r({width:i,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}NV.displayName="Arrow";var Nq="Popper",[NX,NJ]=Px(Nq),[NK,NY]=NX(Nq),N$=e=>{let{__scopePopper:t,children:r}=e,[i,n]=tE.useState(null);return(0,tI.jsx)(NK,{scope:t,anchor:i,onAnchorChange:n,children:r})};N$.displayName=Nq;var NZ="PopperAnchor",N0=tE.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...n}=e,a=NY(NZ,r),s=tE.useRef(null),o=kh(t,s),l=tE.useRef(null);return tE.useEffect(()=>{let e=l.current;l.current=i?.current||s.current,e!==l.current&&a.onAnchorChange(l.current)}),i?null:(0,tI.jsx)(Pk.div,{...n,ref:o})});N0.displayName=NZ;var N1="PopperContent",[N2,N3]=NX(N1),N4=tE.forwardRef((e,t)=>{var r,i,n,a,s,o,l,u,c,d,h,p,f,m,g,v,A,b,y,w,x;let{__scopePopper:C,side:S="bottom",sideOffset:E=0,align:_="center",alignOffset:M=0,arrowPadding:I=0,avoidCollisions:T=!0,collisionBoundary:B=[],collisionPadding:R=0,sticky:k="partial",hideWhenDetached:P=!1,updatePositionStrategy:D="optimized",onPlaced:L,...z}=e,F=NY(N1,C),[N,O]=tE.useState(null),U=kh(t,e=>O(e)),[Q,H]=tE.useState(null),G=NW(Q),j=G?.width??0,V=G?.height??0,W="number"==typeof R?R:{top:0,right:0,bottom:0,left:0,...R},q=Array.isArray(B)?B:[B],X=q.length>0,J={padding:W,boundary:q.filter(N9),altBoundary:X},{refs:K,floatingStyles:Y,placement:$,isPositioned:Z,middlewareData:ee}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:n,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[c,d]=tE.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=tE.useState(i);NQ(h,i)||p(i);let[f,m]=tE.useState(null),[g,v]=tE.useState(null),A=tE.useCallback(e=>{e!==x.current&&(x.current=e,m(e))},[]),b=tE.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),y=a||f,w=s||g,x=tE.useRef(null),C=tE.useRef(null),S=tE.useRef(c),E=null!=l,_=Nj(l),M=Nj(n),I=Nj(u),T=tE.useCallback(()=>{var e,i;let n,a,s;if(!x.current||!C.current)return;let o={placement:t,strategy:r,middleware:h};M.current&&(o.platform=M.current),(e=x.current,i=C.current,n=new Map,s={...(a={platform:NF,...o}).platform,_c:n},F2(e,i,{...a,platform:s})).then(e=>{let t={...e,isPositioned:!1!==I.current};B.current&&!NQ(S.current,t)&&(S.current=t,(0,r8.flushSync)(()=>{d(t)}))})},[h,t,r,M,I]);NU(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let B=tE.useRef(!1);NU(()=>(B.current=!0,()=>{B.current=!1}),[]),NU(()=>{if(y&&(x.current=y),w&&(C.current=w),y&&w){if(_.current)return _.current(y,w,T);T()}},[y,w,T,_,E]);let R=tE.useMemo(()=>({reference:x,floating:C,setReference:A,setFloating:b}),[A,b]),k=tE.useMemo(()=>({reference:y,floating:w}),[y,w]),P=tE.useMemo(()=>{let e={position:r,left:0,top:0};if(!k.floating)return e;let t=NG(k.floating,c.x),i=NG(k.floating,c.y);return o?{...e,transform:"translate("+t+"px, "+i+"px)",...NH(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:i}},[r,o,k.floating,c.x,c.y]);return tE.useMemo(()=>({...c,update:T,refs:R,elements:k,floatingStyles:P}),[c,T,R,k,P])}({strategy:"fixed",placement:S+("center"!==_?"-"+_:""),whileElementsMounted:(...e)=>(function(e,t,r,i){let n;void 0===i&&(i={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,c=NS(e),d=a||s?[...c?Nw(c):[],...Nw(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});let h=c&&l?function(e,t){let r,i=null,n=Nt(e);function a(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}return!function s(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),a();let u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:p}=u;if(o||t(),!h||!p)return;let f={rootMargin:-Fz(d)+"px "+-Fz(n.clientWidth-(c+h))+"px "+-Fz(n.clientHeight-(d+p))+"px "+-Fz(c)+"px",threshold:FD(0,FP(1,l))||1},m=!0;function g(t){let i=t[0].intersectionRatio;if(i!==l){if(!m)return s();i?s(!1,i):r=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==i||NN(u,e.getBoundingClientRect())||s(),m=!1}try{i=new IntersectionObserver(g,{...f,root:n.ownerDocument})}catch(e){i=new IntersectionObserver(g,f)}i.observe(e)}(!0),a}(c,r):null,p=-1,f=null;o&&(f=new ResizeObserver(e=>{let[i]=e;i&&i.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),r()}),c&&!u&&f.observe(c),f.observe(t));let m=u?NI(e):null;return u&&function t(){let i=NI(e);m&&!NN(m,i)&&r(),m=i,n=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(n)}})(...e,{animationFrame:"always"===D}),elements:{reference:F.anchor},middleware:[{...{name:"offset",options:n=r={mainAxis:E+V,alignmentAxis:M},async fn(e){var t,r;let{x:i,y:a,placement:s,middlewareData:o}=e,l=await F6(e,n);return s===(null==(t=o.offset)?void 0:t.placement)&&null!=(r=o.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}},options:[r,i]},T&&{...{name:"shift",options:c=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===k?{...(void 0===(o=a)&&(o={}),{options:o,fn(e){let{x:t,y:r,placement:i,rects:n,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=FU(o,e),c={x:t,y:r},d=FW(i),h=FG(d),p=c[h],f=c[d],m=FU(s,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===h?"height":"width",t=n.reference[h]-n.floating[e]+g.mainAxis,r=n.reference[h]+n.reference[e]-g.mainAxis;p<t?p=t:p>r&&(p=r)}if(u){var v,A;let e="y"===h?"width":"height",t=F8.has(FQ(i)),r=n.reference[d]-n.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),s=n.reference[d]+n.reference[e]+(t?0:(null==(A=a.offset)?void 0:A[d])||0)-(t?g.crossAxis:0);f<r?f=r:f>s&&(f=s)}return{[h]:p,[d]:f}}}),options:[a,s]}:void 0,...J},async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...o}=FU(c,e),l={x:t,y:r},u=await F3(e,o),d=FW(FQ(i)),h=FG(d),p=l[h],f=l[d];if(n){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",r=p+u[e],i=p-u[t];p=FD(r,FP(p,i))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=f+u[e],i=f-u[t];f=FD(r,FP(f,i))}let m=s.fn({...e,[h]:p,[d]:f});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[h]:n,[d]:a}}}}},options:[l,u]},T&&{...{name:"flip",options:p=d={...J},async fn(e){var t,r,i,n,a,s,o,l;let u,c,d,{placement:h,middlewareData:f,rects:m,initialPlacement:g,platform:v,elements:A}=e,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:S=!0,...E}=FU(p,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let _=FQ(h),M=FW(g),I=FQ(g)===g,T=await (null==v.isRTL?void 0:v.isRTL(A.floating)),B=w||(I||!S?[F$(g)]:(u=F$(g),[Fq(g),u,Fq(u)])),R="none"!==C;!w&&R&&B.push(...(c=FH(g),d=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?FJ:FX;return t?FX:FJ;case"left":case"right":return t?FK:FY;default:return[]}}(FQ(g),"start"===C,T),c&&(d=d.map(e=>e+"-"+c),S&&(d=d.concat(d.map(Fq)))),d));let k=[g,...B],P=await F3(e,E),D=[],L=(null==(r=f.flip)?void 0:r.overflows)||[];if(b&&D.push(P[_]),y){let e,t,r,i,n=(s=h,o=m,void 0===(l=T)&&(l=!1),e=FH(s),r=Fj(t=FG(FW(s))),i="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",o.reference[r]>o.floating[r]&&(i=F$(i)),[i,F$(i)]);D.push(P[n[0]],P[n[1]])}if(L=[...L,{placement:h,overflows:D}],!D.every(e=>e<=0)){let e=((null==(i=f.flip)?void 0:i.index)||0)+1,t=k[e];if(t&&("alignment"!==y||M===FW(t)||L.every(e=>FW(e.placement)!==M||e.overflows[0]>0)))return{data:{index:e,overflows:L},reset:{placement:t}};let r=null==(n=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:n.placement;if(!r)switch(x){case"bestFit":{let e=null==(a=L.filter(e=>{if(R){let t=FW(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=g}if(h!==r)return{reset:{placement:r}}}return{}}},options:[d,h]},{...{name:"size",options:g=f={...J,apply:({elements:e,rects:t,availableWidth:r,availableHeight:i})=>{let{width:n,height:a}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${i}px`),s.setProperty("--radix-popper-anchor-width",`${n}px`),s.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){var t,r;let i,n,{placement:a,rects:s,platform:o,elements:l}=e,{apply:u=()=>{},...c}=FU(g,e),d=await F3(e,c),h=FQ(a),p=FH(a),f="y"===FW(a),{width:m,height:v}=s.floating;"top"===h||"bottom"===h?(i=h,n=p===(await (null==o.isRTL?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(n=h,i="end"===p?"top":"bottom");let A=v-d.top-d.bottom,b=m-d.left-d.right,y=FP(v-d[i],A),w=FP(m-d[n],b),x=!e.middlewareData.shift,C=y,S=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(C=A),x&&!p){let e=FD(d.left,0),t=FD(d.right,0),r=FD(d.top,0),i=FD(d.bottom,0);f?S=m-2*(0!==e||0!==t?e+t:FD(d.left,d.right)):C=v-2*(0!==r||0!==i?r+i:FD(d.top,d.bottom))}await u({...e,availableWidth:S,availableHeight:C});let E=await o.getDimensions(l.floating);return m!==E.width||v!==E.height?{reset:{rects:!0}}:{}}},options:[f,m]},Q&&{...{name:"arrow",options:b=v={element:Q,padding:I},fn(e){let{element:t,padding:r}="function"==typeof b?b(e):b;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?NO({element:t.current,padding:r}).fn(e):{}:t?NO({element:t,padding:r}).fn(e):{}}},options:[v,A]},N7({arrowWidth:j,arrowHeight:V}),P&&{...{name:"hide",options:x=y={strategy:"referenceHidden",...J},async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...i}=FU(x,e);switch(r){case"referenceHidden":{let r=F4(await F3(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:F5(r)}}}case"escaped":{let r=F4(await F3(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:F5(r)}}}default:return{}}}},options:[y,w]}]}),[et,er]=Oe($),ei=PP(L);PC(()=>{Z&&ei?.()},[Z,ei]);let en=ee.arrow?.x,ea=ee.arrow?.y,es=ee.arrow?.centerOffset!==0,[eo,el]=tE.useState();return PC(()=>{N&&el(window.getComputedStyle(N).zIndex)},[N]),(0,tI.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:Z?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eo,"--radix-popper-transform-origin":[ee.transformOrigin?.x,ee.transformOrigin?.y].join(" "),...ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,tI.jsx)(N2,{scope:C,placedSide:et,onArrowChange:H,arrowX:en,arrowY:ea,shouldHideArrow:es,children:(0,tI.jsx)(Pk.div,{"data-side":et,"data-align":er,...z,ref:U,style:{...z.style,animation:Z?void 0:"none"}})})})});N4.displayName=N1;var N5="PopperArrow",N8={top:"bottom",right:"left",bottom:"top",left:"right"},N6=tE.forwardRef(function(e,t){let{__scopePopper:r,...i}=e,n=N3(N5,r),a=N8[n.placedSide];return(0,tI.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,tI.jsx)(NV,{...i,ref:t,style:{...i.style,display:"block"}})})});function N9(e){return null!==e}N6.displayName=N5;var N7=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:i,middlewareData:n}=t,a=n.arrow?.centerOffset!==0,s=a?0:e.arrowWidth,o=a?0:e.arrowHeight,[l,u]=Oe(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(n.arrow?.x??0)+s/2,h=(n.arrow?.y??0)+o/2,p="",f="";return"bottom"===l?(p=a?c:`${d}px`,f=`${-o}px`):"top"===l?(p=a?c:`${d}px`,f=`${i.floating.height+o}px`):"right"===l?(p=`${-o}px`,f=a?c:`${h}px`):"left"===l&&(p=`${i.floating.width+o}px`,f=a?c:`${h}px`),{data:{x:p,y:f}}}});function Oe(e){let[t,r="center"]=e.split("-");return[t,r]}function Ot(e){let t=tE.useRef({value:e,previous:e});return tE.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Or=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});tE.forwardRef((e,t)=>(0,tI.jsx)(Pk.span,{...e,ref:t,style:{...Or,...e.style}})).displayName="VisuallyHidden";var Oi=[" ","Enter","ArrowUp","ArrowDown"],On=[" ","Enter"],Oa="Select",[Os,Oo,Ol]=FT(Oa),[Ou,Oc]=Px(Oa,[Ol,NJ]),Od=NJ(),[Oh,Op]=Ou(Oa),[Of,Om]=Ou(Oa),Og=e=>{let{__scopeSelect:t,children:r,open:i,defaultOpen:n,onOpenChange:a,value:s,defaultValue:o,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:h,required:p,form:f}=e,m=Od(t),[g,v]=tE.useState(null),[A,b]=tE.useState(null),[y,w]=tE.useState(!1),x=FR(u),[C,S]=PI({prop:i,defaultProp:n??!1,onChange:a,caller:Oa}),[E,_]=PI({prop:s,defaultProp:o,onChange:l,caller:Oa}),M=tE.useRef(null),I=!g||f||!!g.closest("form"),[T,B]=tE.useState(new Set),R=Array.from(T).map(e=>e.props.value).join(";");return(0,tI.jsx)(N$,{...m,children:(0,tI.jsxs)(Oh,{required:p,scope:t,trigger:g,onTriggerChange:v,valueNode:A,onValueNodeChange:b,valueNodeHasChildren:y,onValueNodeHasChildrenChange:w,contentId:P_(),value:E,onValueChange:_,open:C,onOpenChange:S,dir:x,triggerPointerDownPosRef:M,disabled:h,children:[(0,tI.jsx)(Os.Provider,{scope:t,children:(0,tI.jsx)(Of,{scope:e.__scopeSelect,onNativeOptionAdd:tE.useCallback(e=>{B(t=>new Set(t).add(e))},[]),onNativeOptionRemove:tE.useCallback(e=>{B(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),I?(0,tI.jsxs)(OZ,{"aria-hidden":!0,required:p,tabIndex:-1,name:c,autoComplete:d,value:E,onChange:e=>_(e.target.value),disabled:h,form:f,children:[void 0===E?(0,tI.jsx)("option",{value:""}):null,Array.from(T)]},R):null]})})};Og.displayName=Oa;var Ov="SelectTrigger",OA=tE.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:i=!1,...n}=e,a=Od(r),s=Op(Ov,r),o=s.disabled||i,l=kh(t,s.onTriggerChange),u=Oo(r),c=tE.useRef("touch"),[d,h,p]=O1(e=>{let t=u().filter(e=>!e.disabled),r=t.find(e=>e.value===s.value),i=O2(t,e,r);void 0!==i&&s.onValueChange(i.value)}),f=e=>{o||(s.onOpenChange(!0),p()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,tI.jsx)(N0,{asChild:!0,...a,children:(0,tI.jsx)(Pk.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":O0(s.value)?"":void 0,...n,ref:l,onClick:Pw(n.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&f(e)}),onPointerDown:Pw(n.onPointerDown,e=>{c.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())}),onKeyDown:Pw(n.onKeyDown,e=>{let t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&Oi.includes(e.key)&&(f(),e.preventDefault())})})})});OA.displayName=Ov;var Ob="SelectValue",Oy=tE.forwardRef((e,t)=>{let{__scopeSelect:r,className:i,style:n,children:a,placeholder:s="",...o}=e,l=Op(Ob,r),{onValueNodeHasChildrenChange:u}=l,c=void 0!==a,d=kh(t,l.onValueNodeChange);return PC(()=>{u(c)},[u,c]),(0,tI.jsx)(Pk.span,{...o,ref:d,style:{pointerEvents:"none"},children:O0(l.value)?(0,tI.jsx)(tI.Fragment,{children:s}):a})});Oy.displayName=Ob;var Ow=tE.forwardRef((e,t)=>{let{__scopeSelect:r,children:i,...n}=e;return(0,tI.jsx)(Pk.span,{"aria-hidden":!0,...n,ref:t,children:i||"▼"})});Ow.displayName="SelectIcon";var Ox=e=>(0,tI.jsx)(PX,{asChild:!0,...e});Ox.displayName="SelectPortal";var OC="SelectContent",OS=tE.forwardRef((e,t)=>{let r=Op(OC,e.__scopeSelect),[i,n]=tE.useState();return(PC(()=>{n(new DocumentFragment)},[]),r.open)?(0,tI.jsx)(OI,{...e,ref:t}):i?(0,r8.createPortal)((0,tI.jsx)(OE,{scope:e.__scopeSelect,children:(0,tI.jsx)(Os.Slot,{scope:e.__scopeSelect,children:(0,tI.jsx)("div",{children:e.children})})}),i):null});OS.displayName=OC;var[OE,O_]=Ou(OC),OM=PT("SelectContent.RemoveScroll"),OI=tE.forwardRef((e,t)=>{let{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:a,onPointerDownOutside:s,side:o,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:m,avoidCollisions:g,...v}=e,A=Op(OC,r),[b,y]=tE.useState(null),[w,x]=tE.useState(null),C=kh(t,e=>y(e)),[S,E]=tE.useState(null),[_,M]=tE.useState(null),I=Oo(r),[T,B]=tE.useState(!1),R=tE.useRef(!1);tE.useEffect(()=>{if(b)return DL(b)},[b]),P$();let k=tE.useCallback(e=>{let[t,...r]=I().map(e=>e.ref.current),[i]=r.slice(-1),n=document.activeElement;for(let r of e)if(r===n||(r?.scrollIntoView({block:"nearest"}),r===t&&w&&(w.scrollTop=0),r===i&&w&&(w.scrollTop=w.scrollHeight),r?.focus(),document.activeElement!==n))return},[I,w]),P=tE.useCallback(()=>k([S,b]),[k,S,b]);tE.useEffect(()=>{T&&P()},[T,P]);let{onOpenChange:D,triggerPointerDownPosRef:L}=A;tE.useEffect(()=>{if(b){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():b.contains(r.target)||D(!1),document.removeEventListener("pointermove",t),L.current=null};return null!==L.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[b,D,L]),tE.useEffect(()=>{let e=()=>D(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[D]);let[z,F]=O1(e=>{let t=I().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),i=O2(t,e,r);i&&setTimeout(()=>i.ref.current.focus())}),N=tE.useCallback((e,t,r)=>{let i=!R.current&&!r;(void 0!==A.value&&A.value===t||i)&&(E(e),i&&(R.current=!0))},[A.value]),O=tE.useCallback(()=>b?.focus(),[b]),U=tE.useCallback((e,t,r)=>{let i=!R.current&&!r;(void 0!==A.value&&A.value===t||i)&&M(e)},[A.value]),Q="popper"===i?OB:OT,H=Q===OB?{side:o,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:f,hideWhenDetached:m,avoidCollisions:g}:{};return(0,tI.jsx)(OE,{scope:r,content:b,viewport:w,onViewportChange:x,itemRefCallback:N,selectedItem:S,onItemLeave:O,itemTextRefCallback:U,focusSelectedItem:P,selectedItemText:_,position:i,isPositioned:T,searchRef:z,children:(0,tI.jsx)(DI,{as:OM,allowPinchZoom:!0,children:(0,tI.jsx)(PH,{asChild:!0,trapped:A.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Pw(n,e=>{A.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,tI.jsx)(Pz,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:(0,tI.jsx)(Q,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:e=>e.preventDefault(),...v,...H,onPlaced:()=>B(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Pw(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,i=t.indexOf(r);t=t.slice(i+1)}setTimeout(()=>k(t)),e.preventDefault()}})})})})})})});OI.displayName="SelectContentImpl";var OT=tE.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:i,...n}=e,a=Op(OC,r),s=O_(OC,r),[o,l]=tE.useState(null),[u,c]=tE.useState(null),d=kh(t,e=>c(e)),h=Oo(r),p=tE.useRef(!1),f=tE.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:v,focusSelectedItem:A}=s,b=tE.useCallback(()=>{if(a.trigger&&a.valueNode&&o&&u&&m&&g&&v){let e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),n=v.getBoundingClientRect();if("rtl"!==a.dir){let i=n.left-t.left,a=r.left-i,s=e.left-a,l=e.width+s,u=Math.max(l,t.width),c=FI(a,[10,Math.max(10,window.innerWidth-10-u)]);o.style.minWidth=l+"px",o.style.left=c+"px"}else{let i=t.right-n.right,a=window.innerWidth-r.right-i,s=window.innerWidth-e.right-a,l=e.width+s,u=Math.max(l,t.width),c=FI(a,[10,Math.max(10,window.innerWidth-10-u)]);o.style.minWidth=l+"px",o.style.right=c+"px"}let s=h(),l=window.innerHeight-20,c=m.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),A=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),y=f+A+c+parseInt(d.paddingBottom,10)+b,w=Math.min(5*g.offsetHeight,y),x=window.getComputedStyle(m),C=parseInt(x.paddingTop,10),S=parseInt(x.paddingBottom,10),E=e.top+e.height/2-10,_=g.offsetHeight/2,M=f+A+(g.offsetTop+_);if(M<=E){let e=s.length>0&&g===s[s.length-1].ref.current;o.style.bottom="0px";let t=Math.max(l-E,_+(e?S:0)+(u.clientHeight-m.offsetTop-m.offsetHeight)+b);o.style.height=M+t+"px"}else{let e=s.length>0&&g===s[0].ref.current;o.style.top="0px";let t=Math.max(E,f+m.offsetTop+(e?C:0)+_);o.style.height=t+(y-M)+"px",m.scrollTop=M-E+m.offsetTop}o.style.margin="10px 0",o.style.minHeight=w+"px",o.style.maxHeight=l+"px",i?.(),requestAnimationFrame(()=>p.current=!0)}},[h,a.trigger,a.valueNode,o,u,m,g,v,a.dir,i]);PC(()=>b(),[b]);let[y,w]=tE.useState();PC(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]);let x=tE.useCallback(e=>{e&&!0===f.current&&(b(),A?.(),f.current=!1)},[b,A]);return(0,tI.jsx)(OR,{scope:r,contentWrapper:o,shouldExpandOnScrollRef:p,onScrollButtonChange:x,children:(0,tI.jsx)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:y},children:(0,tI.jsx)(Pk.div,{...n,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});OT.displayName="SelectItemAlignedPosition";var OB=tE.forwardRef((e,t)=>{let{__scopeSelect:r,align:i="start",collisionPadding:n=10,...a}=e,s=Od(r);return(0,tI.jsx)(N4,{...s,...a,ref:t,align:i,collisionPadding:n,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});OB.displayName="SelectPopperPosition";var[OR,Ok]=Ou(OC,{}),OP="SelectViewport",OD=tE.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:i,...n}=e,a=O_(OP,r),s=Ok(OP,r),o=kh(t,a.onViewportChange),l=tE.useRef(0);return(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,tI.jsx)(Os.Slot,{scope:r,children:(0,tI.jsx)(Pk.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:Pw(n.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:i}=s;if(i?.current&&r){let e=Math.abs(l.current-t.scrollTop);if(e>0){let i=window.innerHeight-20,n=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(n<i){let a=n+e,s=Math.min(i,a),o=a-s;r.style.height=s+"px","0px"===r.style.bottom&&(t.scrollTop=o>0?o:0,r.style.justifyContent="flex-end")}}}l.current=t.scrollTop})})})]})});OD.displayName=OP;var OL="SelectGroup",[Oz,OF]=Ou(OL);tE.forwardRef((e,t)=>{let{__scopeSelect:r,...i}=e,n=P_();return(0,tI.jsx)(Oz,{scope:r,id:n,children:(0,tI.jsx)(Pk.div,{role:"group","aria-labelledby":n,...i,ref:t})})}).displayName=OL;var ON="SelectLabel";tE.forwardRef((e,t)=>{let{__scopeSelect:r,...i}=e,n=OF(ON,r);return(0,tI.jsx)(Pk.div,{id:n.id,...i,ref:t})}).displayName=ON;var OO="SelectItem",[OU,OQ]=Ou(OO),OH=tE.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,disabled:n=!1,textValue:a,...s}=e,o=Op(OO,r),l=O_(OO,r),u=o.value===i,[c,d]=tE.useState(a??""),[h,p]=tE.useState(!1),f=kh(t,e=>l.itemRefCallback?.(e,i,n)),m=P_(),g=tE.useRef("touch"),v=()=>{n||(o.onValueChange(i),o.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,tI.jsx)(OU,{scope:r,value:i,disabled:n,textId:m,isSelected:u,onItemTextChange:tE.useCallback(e=>{d(t=>t||(e?.textContent??"").trim())},[]),children:(0,tI.jsx)(Os.ItemSlot,{scope:r,value:i,disabled:n,textValue:c,children:(0,tI.jsx)(Pk.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...s,ref:f,onFocus:Pw(s.onFocus,()=>p(!0)),onBlur:Pw(s.onBlur,()=>p(!1)),onClick:Pw(s.onClick,()=>{"mouse"!==g.current&&v()}),onPointerUp:Pw(s.onPointerUp,()=>{"mouse"===g.current&&v()}),onPointerDown:Pw(s.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:Pw(s.onPointerMove,e=>{g.current=e.pointerType,n?l.onItemLeave?.():"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Pw(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Pw(s.onKeyDown,e=>{(l.searchRef?.current===""||" "!==e.key)&&(On.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});OH.displayName=OO;var OG="SelectItemText",Oj=tE.forwardRef((e,t)=>{let{__scopeSelect:r,className:i,style:n,...a}=e,s=Op(OG,r),o=O_(OG,r),l=OQ(OG,r),u=Om(OG,r),[c,d]=tE.useState(null),h=kh(t,e=>d(e),l.onItemTextChange,e=>o.itemTextRefCallback?.(e,l.value,l.disabled)),p=c?.textContent,f=tE.useMemo(()=>(0,tI.jsx)("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=u;return PC(()=>(m(f),()=>g(f)),[m,g,f]),(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)(Pk.span,{id:l.textId,...a,ref:h}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?(0,r8.createPortal)(a.children,s.valueNode):null]})});Oj.displayName=OG;var OV="SelectItemIndicator",OW=tE.forwardRef((e,t)=>{let{__scopeSelect:r,...i}=e;return OQ(OV,r).isSelected?(0,tI.jsx)(Pk.span,{"aria-hidden":!0,...i,ref:t}):null});OW.displayName=OV;var Oq="SelectScrollUpButton",OX=tE.forwardRef((e,t)=>{let r=O_(Oq,e.__scopeSelect),i=Ok(Oq,e.__scopeSelect),[n,a]=tE.useState(!1),s=kh(t,i.onScrollButtonChange);return PC(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),n?(0,tI.jsx)(OY,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});OX.displayName=Oq;var OJ="SelectScrollDownButton",OK=tE.forwardRef((e,t)=>{let r=O_(OJ,e.__scopeSelect),i=Ok(OJ,e.__scopeSelect),[n,a]=tE.useState(!1),s=kh(t,i.onScrollButtonChange);return PC(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),n?(0,tI.jsx)(OY,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});OK.displayName=OJ;var OY=tE.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:i,...n}=e,a=O_("SelectScrollButton",r),s=tE.useRef(null),o=Oo(r),l=tE.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return tE.useEffect(()=>()=>l(),[l]),PC(()=>{let e=o().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[o]),(0,tI.jsx)(Pk.div,{"aria-hidden":!0,...n,ref:t,style:{flexShrink:0,...n.style},onPointerDown:Pw(n.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(i,50))}),onPointerMove:Pw(n.onPointerMove,()=>{a.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(i,50))}),onPointerLeave:Pw(n.onPointerLeave,()=>{l()})})});tE.forwardRef((e,t)=>{let{__scopeSelect:r,...i}=e;return(0,tI.jsx)(Pk.div,{"aria-hidden":!0,...i,ref:t})}).displayName="SelectSeparator";var O$="SelectArrow";tE.forwardRef((e,t)=>{let{__scopeSelect:r,...i}=e,n=Od(r),a=Op(O$,r),s=O_(O$,r);return a.open&&"popper"===s.position?(0,tI.jsx)(N6,{...n,...i,ref:t}):null}).displayName=O$;var OZ=tE.forwardRef(({__scopeSelect:e,value:t,...r},i)=>{let n=tE.useRef(null),a=kh(i,n),s=Ot(t);return tE.useEffect(()=>{let e=n.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==t&&r){let i=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(i)}},[s,t]),(0,tI.jsx)(Pk.select,{...r,style:{...Or,...r.style},ref:a,defaultValue:t})});function O0(e){return""===e||void 0===e}function O1(e){let t=PP(e),r=tE.useRef(""),i=tE.useRef(0),n=tE.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=tE.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return tE.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,n,a]}function O2(e,t,r){var i,n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,s=r?e.indexOf(r):-1,o=(i=e,n=Math.max(s,0),i.map((e,t)=>i[(n+t)%i.length]));1===a.length&&(o=o.filter(e=>e!==r));let l=o.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}function O3(e){return(0,tI.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",...e,children:(0,tI.jsx)("path",{d:"M8.21723 14.9975C8.10298 14.997 7.99004 14.9731 7.8854 14.9272C7.78077 14.8814 7.68665 14.8145 7.60889 14.7308L3.55889 10.4225C3.4075 10.2611 3.3264 10.0463 3.33343 9.82513C3.34046 9.604 3.43505 9.39471 3.59639 9.24332C3.75773 9.09192 3.97261 9.01082 4.19374 9.01785C4.41488 9.02489 4.62417 9.11948 4.77556 9.28082L8.20889 12.9392L15.2172 5.27248C15.2883 5.18392 15.3768 5.11083 15.4772 5.0577C15.5776 5.00458 15.6878 4.97254 15.8011 4.96355C15.9143 4.95456 16.0282 4.96882 16.1357 5.00544C16.2432 5.04207 16.3421 5.10029 16.4263 5.17652C16.5105 5.25276 16.5782 5.3454 16.6253 5.44877C16.6724 5.55213 16.6979 5.66403 16.7001 5.7776C16.7024 5.89116 16.6815 6.00399 16.6385 6.10916C16.5956 6.21433 16.5316 6.30961 16.4506 6.38915L8.83389 14.7225C8.75686 14.8077 8.66308 14.8761 8.55841 14.9234C8.45373 14.9707 8.34042 14.996 8.22556 14.9975H8.21723Z",fill:"currentColor"})})}function O4(e){return(0,tI.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:(0,tI.jsx)("path",{d:"M12.0002 15.496C11.8686 15.4968 11.7381 15.4716 11.6163 15.4218C11.4944 15.372 11.3836 15.2987 11.2902 15.206L7.29019 11.206C7.10188 11.0177 6.99609 10.7623 6.99609 10.496C6.99609 10.2297 7.10188 9.97434 7.29019 9.78604C7.47849 9.59773 7.73388 9.49194 8.00019 9.49194C8.26649 9.49194 8.52188 9.59773 8.71019 9.78604L12.0002 13.096L15.3002 9.91604C15.3922 9.81375 15.5043 9.73154 15.6295 9.67455C15.7547 9.61756 15.8903 9.58703 16.0279 9.58485C16.1654 9.58267 16.302 9.60889 16.4289 9.66189C16.5559 9.71488 16.6705 9.79349 16.7657 9.89282C16.8609 9.99214 16.9346 10.11 16.9821 10.2391C17.0297 10.3682 17.0501 10.5057 17.042 10.6431C17.034 10.7804 16.9977 10.9146 16.9355 11.0373C16.8732 11.16 16.7863 11.2685 16.6802 11.356L12.6802 15.216C12.4973 15.3924 12.2542 15.4925 12.0002 15.496Z",fill:"currentColor"})})}function O5(e){return(0,tI.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,tI.jsx)("g",{clipPath:"url(#clip0_3784_10281)",children:(0,tI.jsx)("path",{d:"M20.739 11.3791L18.039 8.67909C17.955 8.59517 17.8554 8.52861 17.7458 8.48319C17.6361 8.43778 17.5186 8.4144 17.4 8.4144C17.2813 8.4144 17.1638 8.43778 17.0541 8.48319C16.9445 8.52861 16.8449 8.59517 16.761 8.67909C16.6771 8.763 16.6105 8.86262 16.5651 8.97226C16.5197 9.0819 16.4963 9.19941 16.4963 9.31808C16.4963 9.43676 16.5197 9.55427 16.5651 9.66391C16.6105 9.77355 16.6771 9.87317 16.761 9.95708L17.922 11.1001H12.9V6.0691L14.061 7.23909C14.1451 7.32246 14.2448 7.38843 14.3545 7.43322C14.4641 7.478 14.5815 7.50073 14.7 7.50009C14.8787 7.50113 15.0538 7.44891 15.2027 7.35009C15.3517 7.25127 15.4679 7.11032 15.5364 6.94523C15.605 6.78013 15.6228 6.59835 15.5876 6.42308C15.5525 6.24781 15.4659 6.08698 15.339 5.9611L12.639 3.26111C12.4705 3.09326 12.2423 2.99902 12.0045 2.99902C11.7666 2.99902 11.5385 3.09326 11.37 3.26111L8.66999 5.9611C8.58608 6.04442 8.5194 6.14346 8.47376 6.25255C8.42812 6.36164 8.40441 6.47866 8.404 6.59691C8.40358 6.71517 8.42646 6.83235 8.47132 6.94176C8.51619 7.05117 8.58217 7.15068 8.66549 7.23459C8.74882 7.31851 8.84785 7.38519 8.95695 7.43083C9.06604 7.47647 9.18306 7.50017 9.30131 7.50059C9.54014 7.50144 9.76952 7.40737 9.93899 7.23909L11.1 6.0781V11.1001H6.069L7.239 9.93908C7.40847 9.76961 7.50368 9.53975 7.50368 9.30008C7.50368 9.06041 7.40847 8.83056 7.239 8.66109C7.06953 8.49161 6.83967 8.39641 6.6 8.39641C6.36033 8.39641 6.13048 8.49161 5.961 8.66109L3.26101 11.3611C3.17764 11.4452 3.11167 11.5449 3.06689 11.6546C3.0221 11.7642 2.99938 11.8816 3.00002 12.0001C2.99933 12.1185 3.02203 12.2359 3.06682 12.3456C3.11161 12.4552 3.1776 12.555 3.26101 12.6391L5.961 15.3391C6.0451 15.4225 6.14483 15.4885 6.25449 15.5333C6.36414 15.578 6.48156 15.6007 6.6 15.6001C6.77896 15.6015 6.95429 15.5496 7.10354 15.4508C7.25279 15.3521 7.36918 15.211 7.43781 15.0458C7.50643 14.8805 7.52417 14.6985 7.48876 14.5231C7.45334 14.3476 7.36638 14.1868 7.239 14.0611L6.078 12.9001H11.1V17.9311L9.93899 16.7611C9.76952 16.5916 9.53966 16.4964 9.29999 16.4964C9.06032 16.4964 8.83047 16.5916 8.661 16.7611C8.49152 16.9305 8.39631 17.1604 8.39631 17.4001C8.39631 17.6397 8.49152 17.8696 8.661 18.0391L11.361 20.739C11.5297 20.9065 11.7578 21.0004 11.9955 21.0004C12.2332 21.0004 12.4612 20.9065 12.63 20.739L15.33 18.0391C15.4139 17.9551 15.4805 17.8555 15.5259 17.7459C15.5713 17.6362 15.5947 17.5187 15.5947 17.4001C15.5947 17.2814 15.5713 17.1639 15.5259 17.0542C15.4805 16.9446 15.4139 16.845 15.33 16.7611C15.2461 16.6771 15.1464 16.6106 15.0368 16.5652C14.9272 16.5198 14.8096 16.4964 14.691 16.4964C14.5723 16.4964 14.4548 16.5198 14.3452 16.5652C14.2355 16.6106 14.1359 16.6771 14.052 16.7611L12.9 17.9221V12.9001H17.931L16.761 14.0611C16.6558 14.166 16.5781 14.2952 16.5349 14.4374C16.4917 14.5795 16.4843 14.7301 16.5134 14.8758C16.5424 15.0215 16.607 15.1578 16.7013 15.2725C16.7957 15.3873 16.917 15.4769 17.0544 15.5335C17.164 15.5784 17.2815 15.6011 17.4 15.6001C17.5184 15.6008 17.6359 15.5782 17.7455 15.5334C17.8552 15.4886 17.9549 15.4226 18.039 15.3391L20.739 12.6391C20.8224 12.555 20.8884 12.4552 20.9331 12.3456C20.9779 12.2359 21.0006 12.1185 21 12.0001C20.9966 11.7671 20.9031 11.5445 20.739 11.3791Z",fill:"currentColor"})}),(0,tI.jsx)("defs",{children:(0,tI.jsx)("clipPath",{id:"clip0_3784_10281",children:(0,tI.jsx)("rect",{width:"24",height:"24",fill:"currentColor"})})})]})}function O8(e){return(0,tI.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[(0,tI.jsx)("path",{d:"M19.5398 5.08113C18.5372 4.08551 17.3458 3.30019 16.0356 2.77129C14.7253 2.24238 13.3226 1.98054 11.9098 2.00113C9.25763 1.9945 6.71146 3.04171 4.83141 4.91238C2.95135 6.78306 1.89143 9.32396 1.8848 11.9761C1.87817 14.6283 2.92538 17.1745 4.79605 19.0545C6.66673 20.9346 9.20763 21.9945 11.8598 22.0011C12.4313 22.0108 12.9898 21.8305 13.4477 21.4884C13.9057 21.1464 14.237 20.6619 14.3898 20.1111C14.4872 19.7134 14.4862 19.2979 14.3869 18.9006C14.2875 18.5033 14.0929 18.1362 13.8198 17.8311C13.7562 17.7594 13.7146 17.6709 13.7 17.5761C13.6854 17.4814 13.6984 17.3845 13.7374 17.2969C13.7765 17.2094 13.8399 17.1349 13.9201 17.0825C14.0003 17.03 14.0939 17.0018 14.1898 17.0011H15.8398C17.3927 17.0084 18.8909 16.4279 20.0336 15.3761C21.1762 14.3244 21.8786 12.8794 21.9998 11.3311C22.037 10.1767 21.838 9.02692 21.415 7.95218C20.992 6.87745 20.3539 5.90046 19.5398 5.08113ZM15.8798 15.0011H14.2298C13.7479 14.9984 13.2756 15.1355 12.8701 15.3959C12.4647 15.6563 12.1435 16.0288 11.9455 16.4681C11.7476 16.9075 11.6813 17.3948 11.7549 17.8711C11.8284 18.3473 12.0385 18.792 12.3598 19.1511C12.4224 19.2142 12.4666 19.2932 12.4877 19.3795C12.5088 19.4658 12.5061 19.5562 12.4798 19.6411C12.4298 19.8511 12.1998 19.9811 11.8898 20.0011C10.754 19.9869 9.63429 19.7309 8.60516 19.2502C7.57603 18.7695 6.66109 18.0751 5.92126 17.2132C5.18142 16.3513 4.63365 15.3417 4.31441 14.2516C3.99517 13.1615 3.91178 12.016 4.0698 10.8911C4.35496 9.00107 5.29935 7.27276 6.73593 6.01186C8.17251 4.75096 10.0087 4.03873 11.9198 4.00113H11.9998C13.1306 3.98632 14.253 4.19813 15.3007 4.62407C16.3483 5.05001 17.3001 5.68144 18.0998 6.48113C18.7238 7.10552 19.2141 7.85048 19.5407 8.67057C19.8674 9.49066 20.0236 10.3687 19.9998 11.2511C19.8963 12.2742 19.4184 13.2229 18.6579 13.9151C17.8974 14.6072 16.9081 14.994 15.8798 15.0011Z",fill:"currentColor"}),(0,tI.jsx)("path",{d:"M11.9996 8.00025C12.3974 8.00025 12.7789 7.84222 13.0602 7.56091C13.3415 7.27961 13.4996 6.89808 13.4996 6.50025C13.4996 6.10243 13.3415 5.7209 13.0602 5.43959C12.7789 5.15829 12.3974 5.00025 11.9996 5.00025C11.6018 5.00025 11.2202 5.15829 10.9389 5.43959C10.6576 5.7209 10.4996 6.10243 10.4996 6.50025C10.4996 6.89808 10.6576 7.27961 10.9389 7.56091C11.2202 7.84222 11.6018 8.00025 11.9996 8.00025Z",fill:"currentColor"}),(0,tI.jsx)("path",{d:"M15.2496 7.20116C15.079 7.29965 14.9294 7.43079 14.8094 7.58709C14.6895 7.74339 14.6014 7.92179 14.5504 8.1121C14.4994 8.30242 14.4864 8.50092 14.512 8.69627C14.5377 8.89162 14.6016 9.08 14.7001 9.25066C14.7986 9.42131 14.9298 9.57089 15.0861 9.69086C15.2424 9.81084 15.4208 9.89885 15.6111 9.94987C15.8014 10.0009 15.9999 10.0139 16.1952 9.98825C16.3906 9.96256 16.579 9.89865 16.7496 9.80016C17.0944 9.60125 17.3461 9.27352 17.4492 8.88907C17.5524 8.50462 17.4985 8.09494 17.2996 7.75016C17.1007 7.40538 16.773 7.15373 16.3885 7.05059C16.0041 6.94744 15.5944 7.00125 15.2496 7.20016V7.20116Z",fill:"currentColor"}),(0,tI.jsx)("path",{d:"M8.74976 7.20016C8.57904 7.1018 8.39062 7.03803 8.19526 7.01249C7.99989 6.98695 7.80141 7.00014 7.61114 7.0513C7.42088 7.10247 7.24255 7.19061 7.08634 7.31069C6.93014 7.43077 6.79912 7.58045 6.70076 7.75116C6.6024 7.92188 6.53863 8.1103 6.51308 8.30567C6.48754 8.50103 6.50073 8.69951 6.5519 8.88978C6.60306 9.08005 6.6912 9.25837 6.81128 9.41458C6.93137 9.57078 7.08104 9.7018 7.25176 9.80016C7.59654 9.99881 8.00611 10.0524 8.39037 9.94903C8.77464 9.84569 9.10211 9.59394 9.30076 9.24916C9.4994 8.90438 9.55295 8.49481 9.44962 8.11055C9.34629 7.72629 9.09454 7.39881 8.74976 7.20016Z",fill:"currentColor"}),(0,tI.jsx)("path",{d:"M6.15933 11.2603C5.9133 11.4264 5.7221 11.6618 5.60993 11.9366C5.49776 12.2115 5.46967 12.5135 5.52921 12.8043C5.58876 13.0951 5.73326 13.3617 5.94443 13.5704C6.1556 13.779 6.42393 13.9204 6.71546 13.9764C7.00698 14.0325 7.30858 14.0008 7.58208 13.8853C7.85557 13.7699 8.08866 13.5759 8.25183 13.3279C8.415 13.0799 8.50091 12.789 8.49868 12.4922C8.49646 12.1953 8.4062 11.9058 8.23933 11.6603C8.12971 11.4966 7.98873 11.3563 7.82454 11.2475C7.66035 11.1387 7.47622 11.0635 7.28279 11.0263C7.08936 10.9891 6.89047 10.9906 6.69763 11.0308C6.5048 11.0709 6.32183 11.1489 6.15933 11.2603Z",fill:"currentColor"})]})}function O6({className:e,...t}){return(0,tI.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:Pg("size-6",e),...t,children:[(0,tI.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0625 1.70412C12.1393 1.70359 12.2136 1.7151 12.2842 1.73439C12.6576 1.76978 13.0261 1.88527 13.3604 2.08303L19.7012 5.84084L19.7031 5.84181C20.1036 6.08032 20.4348 6.42322 20.665 6.83498C20.8952 7.24671 21.0168 7.71415 21.0166 8.19142V8.19338L20.998 15.7403C20.9979 16.1352 20.9124 16.526 20.751 16.8848C20.7319 16.9557 20.7049 17.026 20.667 17.0928C20.6355 17.1482 20.5983 17.1987 20.5576 17.2442C20.3296 17.6 20.023 17.8979 19.6631 18.1133L13.2998 21.9072C12.4738 22.3996 11.4611 22.4004 10.6436 21.917L10.6416 21.916L4.30078 18.1582L4.29883 18.1572C3.91023 17.9258 3.58764 17.5957 3.3584 17.2002C3.35105 17.1885 3.34181 17.1773 3.33496 17.1651C3.32803 17.1526 3.32268 17.1387 3.31641 17.126C3.09976 16.7236 2.98517 16.2703 2.98535 15.8076V15.8057L3.00391 8.25588C3.00603 7.28279 3.51293 6.37777 4.33984 5.88478L10.7021 2.09181C11.0682 1.87369 11.4708 1.75231 11.877 1.72658C11.9365 1.71245 11.999 1.70462 12.0625 1.70412ZM5.16895 7.36818C4.87108 7.54583 4.6844 7.87497 4.68359 8.23635L4.66602 15.3838L9.45801 12.5254C9.51085 12.7718 9.60256 13.0142 9.73535 13.2442C9.90127 13.5315 10.1161 13.7727 10.3633 13.9639L5.49512 16.8662L11.499 20.4248C11.8036 20.6044 12.1738 20.6008 12.4707 20.4238L18.5107 16.8233L13.4971 13.877C13.9543 13.482 14.2391 12.9423 14.3242 12.3672L19.3193 15.3037L19.3379 8.21291L19.3369 8.21388C19.3369 8.03517 19.2923 7.85955 19.2061 7.7051C19.1196 7.55056 18.9947 7.42151 18.8447 7.33205L12.8887 3.80275L12.8535 9.73439C12.3304 9.51037 11.7366 9.46806 11.1738 9.63576L11.21 3.76662L5.16895 7.36818Z",fill:"currentColor"}),(0,tI.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.91641 8.60885C11.7928 7.52595 14.1912 8.16845 15.2748 10.0444C16.3582 11.9209 15.7156 14.3211 13.8393 15.4047C11.9627 16.4879 9.56339 15.8446 8.47989 13.9682C7.39671 12.0916 8.03987 9.69227 9.91641 8.60885ZM13.8031 10.894C13.189 9.83118 11.8293 9.46704 10.766 10.0805C9.7026 10.6945 9.33693 12.0551 9.95059 13.1186C10.5646 14.1821 11.9261 14.5469 12.9897 13.9331C14.0529 13.3189 14.4171 11.9575 13.8031 10.894Z",fill:"currentColor"})]})}function O9({...e}){return(0,tI.jsx)(Og,{"data-slot":"select",...e})}function O7({...e}){return(0,tI.jsx)(Oy,{"data-slot":"select-value",...e})}function Ue({className:e,size:t="default",children:r,...i}){return(0,tI.jsxs)(OA,{"data-slot":"select-trigger","data-size":t,className:Pg("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-background-white shadow-sm outline-none transition-colors","border-border-medium","text-text-dark","hover:border-border-dark","focus-visible:border-border-dark","aria-invalid:border-border-red","disabled:cursor-not-allowed disabled:border-border-medium disabled:bg-background-base disabled:opacity-40","data-[size=default]:h-11 data-[size=default]:px-2 data-[size=default]:py-2.5 data-[size=default]:typo-base-16","data-[size=md]:h-9 data-[size=md]:px-2 data-[size=md]:py-2 data-[size=md]:typo-base-14","data-[size=sm]:h-[1.875rem] data-[size=sm]:px-2 data-[size=sm]:typo-base-12","*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-6 [&_svg:not([class*='text-'])]:text-text-dark",e),...i,children:[r,(0,tI.jsx)(Ow,{asChild:!0,children:(0,tI.jsx)(O4,{className:"size-6"})})]})}function Ut({className:e,children:t,position:r="item-aligned",align:i="center",portalContainer:n,...a}){return(0,tI.jsx)(Ox,{container:n,children:(0,tI.jsxs)(OS,{"data-slot":"select-content",className:Pg("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-xl border bg-background-white text-text-dark shadow-md","border-border-medium","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,align:i,...a,children:[(0,tI.jsx)(Ui,{}),(0,tI.jsx)(OD,{className:Pg("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),(0,tI.jsx)(Un,{})]})})}function Ur({className:e,children:t,...r}){return(0,tI.jsxs)(OH,{"data-slot":"select-item",className:Pg("relative flex w-full cursor-default select-none items-center gap-2 rounded-md py-2.5 pr-8 pl-3 outline-hidden","typo-base-16 text-text-sub","focus:bg-background-base focus:text-text-dark","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-6 [&_svg:not([class*='text-'])]:text-text-dark","*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[(0,tI.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-6 items-center justify-center",children:(0,tI.jsx)(OW,{children:(0,tI.jsx)(O3,{className:"size-5"})})}),(0,tI.jsx)(Oj,{children:t})]})}function Ui({className:e,...t}){return(0,tI.jsx)(OX,{"data-slot":"select-scroll-up-button",className:Pg("flex cursor-default items-center justify-center py-1",e),...t,children:(0,tI.jsx)(ii,{className:"size-4"})})}function Un({className:e,...t}){return(0,tI.jsx)(OK,{"data-slot":"select-scroll-down-button",className:Pg("flex cursor-default items-center justify-center py-1",e),...t,children:(0,tI.jsx)(ia,{className:"size-4"})})}OZ.displayName="SelectBubbleInput";var Ua=JSON.parse('{"camera":{"fov":45},"floor":{"z":185.0,"pitchDeg":-87.0,"rollDeg":0},"walls":[{"id":"backWall","z":580.0,"pitchDeg":0,"rollDeg":0},{"id":"rightWall","z":315.0,"pitchDeg":0,"rollDeg":-90.0},{"id":"leftWall","z":560.0,"pitchDeg":0,"rollDeg":55.0},{"id":"ceiling","z":1000.0,"pitchDeg":90.0,"rollDeg":0}]}'),Us=JSON.parse('{"camera":{"fov":45},"floor":{"z":205.0,"pitchDeg":-87.0,"rollDeg":0},"walls":[{"id":"backWall","z":570.0,"pitchDeg":0,"rollDeg":0},{"id":"rightWall","z":315.0,"pitchDeg":0,"rollDeg":-90.0},{"id":"leftWall","z":1000.0,"pitchDeg":0,"rollDeg":90.0},{"id":"ceiling","z":1000.0,"pitchDeg":90.0,"rollDeg":0}]}'),Uo=JSON.parse('{"camera":{"fov":45},"floor":{"z":185.0,"pitchDeg":-90.0,"rollDeg":0},"walls":[{"id":"backWall","z":550.0,"pitchDeg":0,"rollDeg":0},{"id":"rightWall","z":220.0,"pitchDeg":0,"rollDeg":-90.0},{"id":"leftWall","z":218.0,"pitchDeg":0,"rollDeg":90.0},{"id":"ceiling","z":185.0,"pitchDeg":90.0,"rollDeg":0}]}');function Ul(e){return{camera:e.camera,sides:[{...e.floor,id:"floor"},...e.walls]}}let Uu=[{id:"room-example-1",image:"https://vizbl.com/assets/room-example-1.jpg",config:Ul(Ua)},{id:"room-example-2",image:"https://vizbl.com/assets/room-example-2.jpg",config:Ul(Us)},{id:"room-example-3",image:"https://vizbl.com/assets/room-example-3.jpg",config:Ul(Uo)}],Uc=["RcSd3KphTyq_JQEjNCqKQA","gu0109ftQmS-UQkwcW010Q","nOfGLIZcRVeU93wOkHWSbg","ozzH5I2kQMW20ao-33C86A","DBA4wR-zT92vjtuOk9varg"];function Ud(){let{t:e}=no();return(0,tE.useMemo)(()=>[{value:0,label:e("mattingOptions.none")},{value:.05,label:`5 ${e("units.cm")}`}],[e])}let Uh=(0,tE.createContext)(null);function Up({children:e,poster:t,width:r,height:i,name:n}){let a=function(){let{t:e}=no();return(0,tE.useMemo)(()=>[{value:.025,label:`2.5 ${e("units.cm")}`},{value:.05,label:`5 ${e("units.cm")}`}],[e])}(),s=Ud(),[o,l]=(0,tE.useState)(Uu),[u,c]=(0,tE.useState)(Uu["0"].id),d=(0,tE.useMemo)(()=>o.find(e=>e.id===u),[o,u]),[h,p]=(0,tE.useState)(null),[f,m]=(0,tE.useState)(a[0].value),[g,v]=(0,tE.useState)(s[0].value),[A,b]=(0,tE.useState)(0),[y,w]=(0,tE.useState)(!1),[x,C]=(0,tE.useState)(null),S=(0,tE.useRef)(null),E=(0,tE.useMemo)(()=>({poster:t,name:n,rooms:o,setRooms:l,room:d,setRoomId:c,material:h,width:r,height:i,frameWidth:f,matting:g,angle:A,isDragging:y,containerRef:x,setMaterial:p,setFrameWidth:m,setMatting:v,setAngle:b,setIsDragging:w,setContainerRef:C,posterRef:S}),[t,n,o,d,h,r,i,f,g,A,x,y,S]);return(0,tI.jsx)(Uh,{value:E,children:e})}function Uf(){let e=(0,tE.use)(Uh);if(!e)throw Error("useRoomViewer must be used within a RoomViewerProvider");return e}function Um({className:e,...t}){let{containerRef:r,material:i,setMaterial:n}=Uf(),{t:a}=no(),s=function({queries:e,...t},r){let i=(e=>{let t=tE.useContext(rq);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t})(void 0),n=tE.useContext(rJ),a=tE.useContext(rK),s=tE.useMemo(()=>e.map(e=>{let t=i.defaultQueryOptions(e);return t._optimisticResults=n?"isRestoring":"optimistic",t}),[e,i,n]);s.forEach(e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!a.isReset()&&(e.retryOnMount=!1)}),tE.useEffect(()=>{a.clearReset()},[a]);let[o]=tE.useState(()=>new rW(i,s,t)),[l,u,c]=o.getOptimisticResult(s,t.combine),d=!n&&!1!==t.subscribed;tE.useSyncExternalStore(tE.useCallback(e=>d?o.subscribe(rn.batchCalls(e)):ro,[o,d]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),tE.useEffect(()=>{o.setQueries(s,t)},[s,t,o]);let h=l.some((e,t)=>rY(s[t],e))?l.flatMap((e,t)=>{let r=s[t];if(r){let t=new rU(i,r);if(rY(r,e))return r$(r,t,a);e.isLoading&&e.isFetching&&!n&&r$(r,t,a)}return[]}):[];if(h.length>0)throw Promise.all(h);let p=l.find((e,t)=>{let r=s[t];return r&&(({result:e,errorResetBoundary:t,throwOnError:r,query:i,suspense:n})=>{var a;return e.isError&&!t.isReset()&&!e.isFetching&&i&&(n&&void 0===e.data||(a=[e.error,i],"function"==typeof r?r(...a):!!r))})({result:e,errorResetBoundary:a,throwOnError:r.throwOnError,query:i.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(p?.error)throw p.error;return u(c())}({queries:Uc.map(e=>({queryKey:((e={})=>[{url:"/obj/Fetch"},...e?[e]:[]])({tinuuid:e}),queryFn:()=>Fy({tinuuid:e})}))}),o=(0,tE.useMemo)(()=>s.map(e=>e.data?.materials?.[0]).filter(e=>!!e),[s]);return(0,tE.useEffect)(()=>{null===i&&o.length>0&&n(o[0])},[i,o,n]),(0,tI.jsxs)(FE,{className:Pg("w-fit",e),...t,children:[(0,tI.jsx)(F_,{className:"text-xs text-text-sub font-medium",children:a("material")}),(0,tI.jsxs)(O9,{value:i?.hid??void 0,onValueChange:e=>{let t=o.find(t=>t.hid===e);t&&n(t)},children:[(0,tI.jsx)(Ue,{className:"w-[145px]",size:"md",children:(0,tI.jsxs)(O7,{placeholder:a("chooseMaterial"),children:[(0,tI.jsx)("div",{className:"size-5 rounded-full",style:{backgroundColor:`#${i?.miniature?.color?.hex}`}}),i?.miniature?.color?.name]})}),(0,tI.jsx)(Ut,{portalContainer:r,children:o.map(e=>(0,tI.jsxs)(Ur,{value:e.hid,children:[(0,tI.jsx)("div",{className:"size-5 rounded-full",style:{backgroundColor:`#${e?.miniature?.color?.hex}`}}),e.miniature?.color?.name]},e.hid))})]})]})}var Ug="rovingFocusGroup.onEntryFocus",Uv={bubbles:!1,cancelable:!0},UA="RovingFocusGroup",[Ub,Uy,Uw]=FT(UA),[Ux,UC]=Px(UA,[Uw]),[US,UE]=Ux(UA),U_=tE.forwardRef((e,t)=>(0,tI.jsx)(Ub.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,tI.jsx)(Ub.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,tI.jsx)(UM,{...e,ref:t})})}));U_.displayName=UA;var UM=tE.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:n=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,h=tE.useRef(null),p=kh(t,h),f=FR(a),[m,g]=PI({prop:s,defaultProp:o??null,onChange:l,caller:UA}),[v,A]=tE.useState(!1),b=PP(u),y=Uy(r),w=tE.useRef(!1),[x,C]=tE.useState(0);return tE.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(Ug,b),()=>e.removeEventListener(Ug,b)},[b]),(0,tI.jsx)(US,{scope:r,orientation:i,dir:f,loop:n,currentTabStopId:m,onItemFocus:tE.useCallback(e=>g(e),[g]),onItemShiftTab:tE.useCallback(()=>A(!0),[]),onFocusableItemAdd:tE.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:tE.useCallback(()=>C(e=>e-1),[]),children:(0,tI.jsx)(Pk.div,{tabIndex:v||0===x?-1:0,"data-orientation":i,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Pw(e.onMouseDown,()=>{w.current=!0}),onFocus:Pw(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(Ug,Uv);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=y().filter(e=>e.focusable);UR([e.find(e=>e.active),e.find(e=>e.id===m),...e].filter(Boolean).map(e=>e.ref.current),c)}}w.current=!1}),onBlur:Pw(e.onBlur,()=>A(!1))})})}),UI="RovingFocusGroupItem",UT=tE.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:n=!1,tabStopId:a,children:s,...o}=e,l=P_(),u=a||l,c=UE(UI,r),d=c.currentTabStopId===u,h=Uy(r),{onFocusableItemAdd:p,onFocusableItemRemove:f,currentTabStopId:m}=c;return tE.useEffect(()=>{if(i)return p(),()=>f()},[i,p,f]),(0,tI.jsx)(Ub.ItemSlot,{scope:r,id:u,focusable:i,active:n,children:(0,tI.jsx)(Pk.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...o,ref:t,onMouseDown:Pw(e.onMouseDown,e=>{i?c.onItemFocus(u):e.preventDefault()}),onFocus:Pw(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:Pw(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var i;let n=(i=e.key,"rtl"!==r?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return UB[n]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){var r,i;"prev"===t&&n.reverse();let a=n.indexOf(e.currentTarget);n=c.loop?(r=n,i=a+1,r.map((e,t)=>r[(i+t)%r.length])):n.slice(a+1)}setTimeout(()=>UR(n))}}),children:"function"==typeof s?s({isCurrentTabStop:d,hasTabStop:null!=m}):s})})});UT.displayName=UI;var UB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function UR(e,t=!1){let r=document.activeElement;for(let i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}var Uk="Tabs",[UP,UD]=Px(Uk,[UC]),UL=UC(),[Uz,UF]=UP(Uk),UN=tE.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,onValueChange:n,defaultValue:a,orientation:s="horizontal",dir:o,activationMode:l="automatic",...u}=e,c=FR(o),[d,h]=PI({prop:i,onChange:n,defaultProp:a??"",caller:Uk});return(0,tI.jsx)(Uz,{scope:r,baseId:P_(),value:d,onValueChange:h,orientation:s,dir:c,activationMode:l,children:(0,tI.jsx)(Pk.div,{dir:c,"data-orientation":s,...u,ref:t})})});UN.displayName=Uk;var UO="TabsList",UU=tE.forwardRef((e,t)=>{let{__scopeTabs:r,loop:i=!0,...n}=e,a=UF(UO,r),s=UL(r);return(0,tI.jsx)(U_,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:i,children:(0,tI.jsx)(Pk.div,{role:"tablist","aria-orientation":a.orientation,...n,ref:t})})});UU.displayName=UO;var UQ="TabsTrigger",UH=tE.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,disabled:n=!1,...a}=e,s=UF(UQ,r),o=UL(r),l=UV(s.baseId,i),u=UW(s.baseId,i),c=i===s.value;return(0,tI.jsx)(UT,{asChild:!0,...o,focusable:!n,active:c,children:(0,tI.jsx)(Pk.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:l,...a,ref:t,onMouseDown:Pw(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(i)}),onKeyDown:Pw(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(i)}),onFocus:Pw(e.onFocus,()=>{let e="manual"!==s.activationMode;c||n||!e||s.onValueChange(i)})})})});UH.displayName=UQ;var UG="TabsContent",Uj=tE.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,forceMount:n,children:a,...s}=e,o=UF(UG,r),l=UV(o.baseId,i),u=UW(o.baseId,i),c=i===o.value,d=tE.useRef(c);return tE.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,tI.jsx)(PJ,{present:n||c,children:({present:r})=>(0,tI.jsx)(Pk.div,{"data-state":c?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":l,hidden:!r,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:r&&a})})});function UV(e,t){return`${e}-trigger-${t}`}function UW(e,t){return`${e}-content-${t}`}Uj.displayName=UG;let Uq=tE.createContext(null),UX=tE.createContext(null);function UJ({value:e,defaultValue:t,onValueChange:r,...i}){let[n,a]=tE.useState(t),s=e??n,o=tE.useMemo(()=>({value:s}),[s]),l=tE.useCallback(t=>{r?.(t),void 0===e&&a(t)},[r,e]);return(0,tI.jsx)(Uq,{value:o,children:(0,tI.jsx)(UN,{"data-slot":"tabs",value:s,onValueChange:l,...i})})}let UK=PA("cursor-pointer group inline-flex items-center justify-center shrink-0 whitespace-nowrap outline-none transition-colors relative z-10 rounded-lg text-text-base [&_svg]:text-icons-normal [&_svg]:transition-colors hover:text-text-dark hover:[&_svg]:text-icons-dark active:rounded-lg active:bg-background-base-3 active:text-text-dark active:[&_svg]:text-icons-dark data-[state=active]:rounded-lg data-[state=active]:bg-background-white data-[state=active]:text-text-dark data-[state=active]:[&_svg]:text-icons-dark disabled:pointer-events-none disabled:opacity-50 focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",{variants:{size:{default:"h-7 px-2 typo-button-normal [&_svg]:size-4",lg:"h-9 px-3 typo-button-big [&_svg]:size-6"}},defaultVariants:{size:"default"}});function UY({className:e,children:t,...r}){let i=tE.use(Uq),n=tE.useRef(null),a=tE.useRef(new Map),s=tE.useRef(null),o=tE.useCallback(()=>{let e=s.current;if(!e)return;let t=i?.value;if(!t){e.style.opacity="0";return}let r=n.current,o=a.current.get(t);if(!r||!o){e.style.opacity="0";return}let l=r.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.left-l.left,d=u.top-l.top,h=l.width-(c+u.width),p=l.height-(d+u.height);e.style.clipPath=`inset(${d}px ${h}px ${p}px ${c}px round 8px)`,e.style.opacity="1"},[i?.value]),l=tE.useCallback((e,t)=>{t?a.current.set(e,t):a.current.delete(e),requestAnimationFrame(o)},[o]);tE.useLayoutEffect(()=>{o()},[o]),tE.useEffect(()=>{let e=n.current;if(!e||"undefined"==typeof ResizeObserver)return;let t=new ResizeObserver(()=>o());t.observe(e);let r=i?.value;if(r){let e=a.current.get(r);e&&t.observe(e)}return()=>{t.disconnect()}},[i?.value,o]);let u=tE.useMemo(()=>({registerTrigger:l}),[l]);return(0,tI.jsx)(UU,{ref:n,"data-slot":"tabs-list",className:Pg("relative inline-flex items-center rounded-xl bg-background-base-2 p-1",e),...r,children:(0,tI.jsxs)(UX,{value:u,children:[(0,tI.jsx)("div",{ref:s,"aria-hidden":!0,"data-slot":"tabs-indicator",className:"pointer-events-none absolute inset-0 z-0 rounded-xl bg-background-white opacity-0 transition-[clip-path,opacity] duration-[250ms] ease-out motion-reduce:transition-none"}),t]})})}function U$({className:e,size:t,children:r,value:i,...n}){let a=tE.use(UX),s=tE.useRef(null),o=Pg("relative z-10 inline-flex items-center justify-center","lg"===t?"gap-1.5":"gap-1");return tE.useLayoutEffect(()=>{if(a&&i)return a.registerTrigger(i,s.current),()=>{a.registerTrigger(i,null)}},[a,i]),(0,tI.jsx)(UH,{ref:s,"data-slot":"tabs-trigger",className:Pg(UK({size:t}),"data-[state=active]:bg-transparent",e),value:i,...n,children:(0,tI.jsx)("span",{"data-slot":"tabs-trigger-content",className:o,children:r})})}function UZ({className:e,...t}){let{matting:r,setMatting:i}=Uf(),{t:n}=no(),a=Ud();return(0,tI.jsxs)(FE,{className:Pg("w-fit",e),...t,children:[(0,tI.jsx)(F_,{className:"text-xs text-text-sub font-medium",children:n("matting")}),(0,tI.jsx)(UJ,{value:r.toString(),onValueChange:e=>i(Number(e)),children:(0,tI.jsx)(UY,{children:a.map(e=>(0,tI.jsx)(U$,{value:e.value.toString(),children:e.label},e.value))})})]})}UY.displayName=UU.displayName,U$.displayName=UH.displayName,Uj.displayName;var U0="Radio",[U1,U2]=Px(U0),[U3,U4]=U1(U0),U5=tE.forwardRef((e,t)=>{let{__scopeRadio:r,name:i,checked:n=!1,required:a,disabled:s,value:o="on",onCheck:l,form:u,...c}=e,[d,h]=tE.useState(null),p=kh(t,e=>h(e)),f=tE.useRef(!1),m=!d||u||!!d.closest("form");return(0,tI.jsxs)(U3,{scope:r,checked:n,disabled:s,children:[(0,tI.jsx)(Pk.button,{type:"button",role:"radio","aria-checked":n,"data-state":U7(n),"data-disabled":s?"":void 0,disabled:s,value:o,...c,ref:p,onClick:Pw(e.onClick,e=>{n||l?.(),m&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})}),m&&(0,tI.jsx)(U9,{control:d,bubbles:!f.current,name:i,value:o,checked:n,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});U5.displayName=U0;var U8="RadioIndicator",U6=tE.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:i,...n}=e,a=U4(U8,r);return(0,tI.jsx)(PJ,{present:i||a.checked,children:(0,tI.jsx)(Pk.span,{"data-state":U7(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})})});U6.displayName=U8;var U9=tE.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:i=!0,...n},a)=>{let s=tE.useRef(null),o=kh(s,a),l=Ot(r),u=NW(t);return tE.useEffect(()=>{let e=s.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==r&&t){let n=new Event("click",{bubbles:i});t.call(e,r),e.dispatchEvent(n)}},[l,r,i]),(0,tI.jsx)(Pk.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...n,tabIndex:-1,ref:o,style:{...n.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function U7(e){return e?"checked":"unchecked"}U9.displayName="RadioBubbleInput";var Qe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Qt="RadioGroup",[Qr,Qi]=Px(Qt,[UC,U2]),Qn=UC(),Qa=U2(),[Qs,Qo]=Qr(Qt),Ql=tE.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:i,defaultValue:n,value:a,required:s=!1,disabled:o=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...h}=e,p=Qn(r),f=FR(u),[m,g]=PI({prop:a,defaultProp:n??null,onChange:d,caller:Qt});return(0,tI.jsx)(Qs,{scope:r,name:i,required:s,disabled:o,value:m,onValueChange:g,children:(0,tI.jsx)(U_,{asChild:!0,...p,orientation:l,dir:f,loop:c,children:(0,tI.jsx)(Pk.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":o?"":void 0,dir:f,...h,ref:t})})})});Ql.displayName=Qt;var Qu="RadioGroupItem",Qc=tE.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:i,...n}=e,a=Qo(Qu,r),s=a.disabled||i,o=Qn(r),l=Qa(r),u=tE.useRef(null),c=kh(t,u),d=a.value===n.value,h=tE.useRef(!1);return tE.useEffect(()=>{let e=e=>{Qe.includes(e.key)&&(h.current=!0)},t=()=>h.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,tI.jsx)(UT,{asChild:!0,...o,focusable:!s,active:d,children:(0,tI.jsx)(U5,{disabled:s,required:a.required,checked:d,...l,...n,name:a.name,ref:c,onCheck:()=>a.onValueChange(n.value),onKeyDown:Pw(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:Pw(n.onFocus,()=>{h.current&&u.current?.click()})})})});Qc.displayName=Qu;var Qd=tE.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...i}=e,n=Qa(r);return(0,tI.jsx)(U6,{...n,...i,ref:t})});function Qh({className:e,...t}){return(0,tI.jsx)(Ql,{"data-slot":"radio-group",className:Pg("grid gap-3",e),...t})}function Qp({checked:e,className:t,...r}){return(0,tI.jsx)("div",{className:Pg("absolute top-1/2 left-1/2 size-6 -translate-x-1/2 -translate-y-1/2","flex items-center justify-center rounded-full",e?"bg-icons-green":"bg-background-base-2",t),...r,children:(0,tI.jsx)(is,{className:"text-constant-white size-3.5",strokeWidth:3.5})})}function Qf({className:e,variant:t="default",...r}){return(0,tI.jsxs)(Qc,{"data-slot":"radio-group-item",className:Pg("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border transition-[color] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50","check"===t&&"size-6",e),...r,children:["check"===t&&(0,tI.jsx)("div",{className:"relative",children:(0,tI.jsx)(Qp,{})}),(0,tI.jsx)(Qd,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:"check"===t?(0,tI.jsx)(Qp,{checked:!0}):(0,tI.jsx)(io,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})]})}function Qm({className:e}){let{rooms:t,room:r,setRoomId:i}=Uf(),{t:n}=no(),[a,s]=(0,tE.useState)(null),[o,l]=(0,tE.useState)(!0),[u,c]=(0,tE.useState)(!1),[d,h]=(0,tE.useState)(!1),p=(0,tE.useCallback)(e=>{l(e.isBeginning),c(e.isEnd),h(e.isLocked)},[]),f=(0,tE.useCallback)(e=>{s(e),p(e)},[p]);return(0,tI.jsxs)("div",{className:Pg("relative w-full overflow-hidden",e),children:[(0,tI.jsx)(Qh,{value:r.id,onValueChange:i,children:(0,tI.jsx)(pS,{className:"w-full py-5",slidesPerView:"auto",spaceBetween:12,slidesOffsetBefore:24,slidesOffsetAfter:75,onSwiper:f,onReachBeginning:()=>l(!0),onReachEnd:()=>c(!0),onFromEdge:p,onLock:()=>h(!0),onUnlock:()=>h(!1),onResize:p,children:t.map(e=>(0,tI.jsx)(pE,{className:Pg("w-25! h-19! transition-transform duration-200",e.id!==r.id&&"hover:scale-110"),children:(0,tI.jsxs)(F_,{htmlFor:`room-${e.id}`,className:"relative size-full rounded-[0.75rem] overflow-hidden",children:[(0,tI.jsx)("img",{src:e.image,alt:"",className:"size-full object-cover"}),(0,tI.jsx)(Qf,{value:e.id,id:`room-${e.id}`,variant:"check",className:Pg("absolute top-1.75 right-1.75",{"sr-only":e.id!==r.id})})]})},e.id))})}),(0,tI.jsxs)(Py,{className:Pg("absolute top-1/2 left-8 -translate-y-1/2 z-1",{hidden:o||d}),variant:"contrast",size:"icon",onClick:()=>a?.slidePrev(),children:[(0,tI.jsx)(il,{}),(0,tI.jsx)("span",{className:"sr-only",children:n("previousSlide")})]}),(0,tI.jsxs)(Py,{className:Pg("absolute top-1/2 right-8 -translate-y-1/2 z-1",{hidden:u||d}),variant:"contrast",size:"icon",onClick:()=>a?.slideNext(),children:[(0,tI.jsx)(iu,{}),(0,tI.jsx)("span",{className:"sr-only",children:n("nextSlide")})]})]})}function Qg({className:e,...t}){return(0,tI.jsxs)("div",{className:Pg("grid grid-cols-[1fr_auto] items-end pl-0 overflow-hidden",e),...t,children:[(0,tI.jsx)(Qm,{}),(0,tI.jsxs)("div",{className:"hidden flex-row gap-5 pr-6 pb-5 md:flex",children:[(0,tI.jsx)(Um,{}),(0,tI.jsx)(UZ,{})]})]})}function Qv({className:e,...t}){let{t:r}=no();return(0,tI.jsxs)("div",{className:Pg("group inline-flex gap-2 text-sm text-muted-foreground","hover:text-text-dark","transition-colors duration-200 ease-in-out",e),...t,children:[(0,tI.jsx)("div",{className:"size-5 flex items-center justify-center rounded-full bg-icons-light group-hover:bg-icons-red transition-colors duration-200 ease-in-out",children:(0,tI.jsx)(O6,{className:"size-4.25 text-icons-white"})}),r("poweredBy")]})}function QA({className:e,...t}){let{name:r}=Uf();return(0,tI.jsxs)("div",{className:Pg("h-16 grid gap-5 items-center px-6 sm:grid-cols-3",e),...t,children:[(0,tI.jsx)("div",{className:"truncate",children:r}),(0,tI.jsx)("div",{className:"hidden justify-center sm:flex",children:(0,tI.jsx)(Qv,{})}),(0,tI.jsx)("div",{className:"hidden sm:block"})]})}Qd.displayName="RadioGroupIndicator";var Qb="Popover",[Qy,Qw]=Px(Qb,[NJ]),Qx=NJ(),[QC,QS]=Qy(Qb),QE=e=>{let{__scopePopover:t,children:r,open:i,defaultOpen:n,onOpenChange:a,modal:s=!1}=e,o=Qx(t),l=tE.useRef(null),[u,c]=tE.useState(!1),[d,h]=PI({prop:i,defaultProp:n??!1,onChange:a,caller:Qb});return(0,tI.jsx)(N$,{...o,children:(0,tI.jsx)(QC,{scope:t,contentId:P_(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:tE.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:u,onCustomAnchorAdd:tE.useCallback(()=>c(!0),[]),onCustomAnchorRemove:tE.useCallback(()=>c(!1),[]),modal:s,children:r})})};QE.displayName=Qb;var Q_="PopoverAnchor";tE.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,n=QS(Q_,r),a=Qx(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:o}=n;return tE.useEffect(()=>(s(),()=>o()),[s,o]),(0,tI.jsx)(N0,{...a,...i,ref:t})}).displayName=Q_;var QM="PopoverTrigger",QI=tE.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,n=QS(QM,r),a=Qx(r),s=kh(t,n.triggerRef),o=(0,tI.jsx)(Pk.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":QU(n.open),...i,ref:s,onClick:Pw(e.onClick,n.onOpenToggle)});return n.hasCustomAnchor?o:(0,tI.jsx)(N0,{asChild:!0,...a,children:o})});QI.displayName=QM;var QT="PopoverPortal",[QB,QR]=Qy(QT,{forceMount:void 0}),Qk=e=>{let{__scopePopover:t,forceMount:r,children:i,container:n}=e,a=QS(QT,t);return(0,tI.jsx)(QB,{scope:t,forceMount:r,children:(0,tI.jsx)(PJ,{present:r||a.open,children:(0,tI.jsx)(PX,{asChild:!0,container:n,children:i})})})};Qk.displayName=QT;var QP="PopoverContent",QD=tE.forwardRef((e,t)=>{let r=QR(QP,e.__scopePopover),{forceMount:i=r.forceMount,...n}=e,a=QS(QP,e.__scopePopover);return(0,tI.jsx)(PJ,{present:i||a.open,children:a.modal?(0,tI.jsx)(Qz,{...n,ref:t}):(0,tI.jsx)(QF,{...n,ref:t})})});QD.displayName=QP;var QL=PT("PopoverContent.RemoveScroll"),Qz=tE.forwardRef((e,t)=>{let r=QS(QP,e.__scopePopover),i=tE.useRef(null),n=kh(t,i),a=tE.useRef(!1);return tE.useEffect(()=>{let e=i.current;if(e)return DL(e)},[]),(0,tI.jsx)(DI,{as:QL,allowPinchZoom:!0,children:(0,tI.jsx)(QN,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Pw(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:Pw(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:Pw(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),QF=tE.forwardRef((e,t)=>{let r=QS(QP,e.__scopePopover),i=tE.useRef(!1),n=tE.useRef(!1);return(0,tI.jsx)(QN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));let a=t.target;r.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})}),QN=tE.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:i,onOpenAutoFocus:n,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,h=QS(QP,r),p=Qx(r);return P$(),(0,tI.jsx)(PH,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:n,onUnmountAutoFocus:a,children:(0,tI.jsx)(Pz,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:(0,tI.jsx)(N4,{"data-state":QU(h.open),role:"dialog",id:h.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),QO="PopoverClose";function QU(e){return e?"open":"closed"}function QQ({...e}){return(0,tI.jsx)(QE,{"data-slot":"popover",...e})}function QH({...e}){return(0,tI.jsx)(QI,{"data-slot":"popover-trigger",...e})}function QG({className:e,align:t="center",sideOffset:r=4,portalContainer:i,...n}){return(0,tI.jsx)(Qk,{container:i,children:(0,tI.jsx)(QD,{"data-slot":"popover-content",align:t,sideOffset:r,className:Pg("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}tE.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,n=QS(QO,r);return(0,tI.jsx)(Pk.button,{type:"button",...i,ref:t,onClick:Pw(e.onClick,()=>n.onOpenChange(!1))})}).displayName=QO,tE.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,n=Qx(r);return(0,tI.jsx)(N6,{...n,...i,ref:t})}).displayName="PopoverArrow";var Qj=["PageUp","PageDown"],QV=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],QW={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Qq="Slider",[QX,QJ,QK]=FT(Qq),[QY,Q$]=Px(Qq,[QK]),[QZ,Q0]=QY(Qq),Q1=tE.forwardRef((e,t)=>{let{name:r,min:i=0,max:n=100,step:a=1,orientation:s="horizontal",disabled:o=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[i],value:c,onValueChange:d=()=>{},onValueCommit:h=()=>{},inverted:p=!1,form:f,...m}=e,g=tE.useRef(new Set),v=tE.useRef(0),A="horizontal"===s,[b=[],y]=PI({prop:c,defaultProp:u,onChange:e=>{let t=[...g.current];t[v.current]?.focus(),d(e)}}),w=tE.useRef(b);function x(e,t,{commit:r}={commit:!1}){let s,o=(String(a).split(".")[1]||"").length,u=FI(Math.round((Math.round((e-i)/a)*a+i)*(s=Math.pow(10,o)))/s,[i,n]);y((e=[])=>{let i=function(e=[],t,r){let i=[...e];return i[r]=t,i.sort((e,t)=>e-t)}(e,u,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=t;return!0}(i,l*a))return e;{v.current=i.indexOf(u);let t=String(i)!==String(e);return t&&r&&h(i),t?i:e}})}return(0,tI.jsx)(QZ,{scope:e.__scopeSlider,name:r,disabled:o,min:i,max:n,valueIndexToChangeRef:v,thumbs:g.current,values:b,orientation:s,form:f,children:(0,tI.jsx)(QX.Provider,{scope:e.__scopeSlider,children:(0,tI.jsx)(QX.Slot,{scope:e.__scopeSlider,children:(0,tI.jsx)(A?Q4:Q5,{"aria-disabled":o,"data-disabled":o?"":void 0,...m,ref:t,onPointerDown:Pw(m.onPointerDown,()=>{o||(w.current=b)}),min:i,max:n,inverted:p,onSlideStart:o?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),i=Math.min(...r);return r.indexOf(i)}(b,e);x(e,t)},onSlideMove:o?void 0:function(e){x(e,v.current)},onSlideEnd:o?void 0:function(){let e=w.current[v.current];b[v.current]!==e&&h(b)},onHomeKeyDown:()=>!o&&x(i,0,{commit:!0}),onEndKeyDown:()=>!o&&x(n,b.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!o){let r=Qj.includes(e.key)||e.shiftKey&&QV.includes(e.key),i=v.current;x(b[i]+a*(r?10:1)*t,i,{commit:!0})}}})})})})});Q1.displayName=Qq;var[Q2,Q3]=QY(Qq,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Q4=tE.forwardRef((e,t)=>{let{min:r,max:i,dir:n,inverted:a,onSlideStart:s,onSlideMove:o,onSlideEnd:l,onStepKeyDown:u,...c}=e,[d,h]=tE.useState(null),p=kh(t,e=>h(e)),f=tE.useRef(void 0),m=FR(n),g="ltr"===m,v=g&&!a||!g&&a;function A(e){let t=f.current||d.getBoundingClientRect(),n=Hs([0,t.width],v?[r,i]:[i,r]);return f.current=t,n(e-t.left)}return(0,tI.jsx)(Q2,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:(0,tI.jsx)(Q8,{dir:m,"data-orientation":"horizontal",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=A(e.clientX);s?.(t)},onSlideMove:e=>{let t=A(e.clientX);o?.(t)},onSlideEnd:()=>{f.current=void 0,l?.()},onStepKeyDown:e=>{let t=QW[v?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})}),Q5=tE.forwardRef((e,t)=>{let{min:r,max:i,inverted:n,onSlideStart:a,onSlideMove:s,onSlideEnd:o,onStepKeyDown:l,...u}=e,c=tE.useRef(null),d=kh(t,c),h=tE.useRef(void 0),p=!n;function f(e){let t=h.current||c.current.getBoundingClientRect(),n=Hs([0,t.height],p?[i,r]:[r,i]);return h.current=t,n(e-t.top)}return(0,tI.jsx)(Q2,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:(0,tI.jsx)(Q8,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=f(e.clientY);a?.(t)},onSlideMove:e=>{let t=f(e.clientY);s?.(t)},onSlideEnd:()=>{h.current=void 0,o?.()},onStepKeyDown:e=>{let t=QW[p?"from-bottom":"from-top"].includes(e.key);l?.({event:e,direction:t?-1:1})}})})}),Q8=tE.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:i,onSlideMove:n,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:o,onStepKeyDown:l,...u}=e,c=Q0(Qq,r);return(0,tI.jsx)(Pk.span,{...u,ref:t,onKeyDown:Pw(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(o(e),e.preventDefault()):Qj.concat(QV).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:Pw(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),c.thumbs.has(t)?t.focus():i(e)}),onPointerMove:Pw(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&n(e)}),onPointerUp:Pw(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),Q6="SliderTrack",Q9=tE.forwardRef((e,t)=>{let{__scopeSlider:r,...i}=e,n=Q0(Q6,r);return(0,tI.jsx)(Pk.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...i,ref:t})});Q9.displayName=Q6;var Q7="SliderRange",He=tE.forwardRef((e,t)=>{let{__scopeSlider:r,...i}=e,n=Q0(Q7,r),a=Q3(Q7,r),s=kh(t,tE.useRef(null)),o=n.values.length,l=n.values.map(e=>Ha(e,n.min,n.max)),u=o>1?Math.min(...l):0,c=100-Math.max(...l);return(0,tI.jsx)(Pk.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...i,ref:s,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:c+"%"}})});He.displayName=Q7;var Ht="SliderThumb",Hr=tE.forwardRef((e,t)=>{let r=QJ(e.__scopeSlider),[i,n]=tE.useState(null),a=kh(t,e=>n(e)),s=tE.useMemo(()=>i?r().findIndex(e=>e.ref.current===i):-1,[r,i]);return(0,tI.jsx)(Hi,{...e,ref:a,index:s})}),Hi=tE.forwardRef((e,t)=>{var r,i,n,a,s;let o,l,{__scopeSlider:u,index:c,name:d,...h}=e,p=Q0(Ht,u),f=Q3(Ht,u),[m,g]=tE.useState(null),v=kh(t,e=>g(e)),A=!m||p.form||!!m.closest("form"),b=NW(m),y=p.values[c],w=void 0===y?0:Ha(y,p.min,p.max),x=(r=c,(i=p.values.length)>2?`Value ${r+1} of ${i}`:2===i?["Minimum","Maximum"][r]:void 0),C=b?.[f.size],S=C?(n=C,a=w,s=f.direction,l=Hs([0,50],[0,o=n/2]),(o-l(a)*s)*s):0;return tE.useEffect(()=>{if(m)return p.thumbs.add(m),()=>{p.thumbs.delete(m)}},[m,p.thumbs]),(0,tI.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[f.startEdge]:`calc(${w}% + ${S}px)`},children:[(0,tI.jsx)(QX.ItemSlot,{scope:e.__scopeSlider,children:(0,tI.jsx)(Pk.span,{role:"slider","aria-label":e["aria-label"]||x,"aria-valuemin":p.min,"aria-valuenow":y,"aria-valuemax":p.max,"aria-orientation":p.orientation,"data-orientation":p.orientation,"data-disabled":p.disabled?"":void 0,tabIndex:p.disabled?void 0:0,...h,ref:v,style:void 0===y?{display:"none"}:e.style,onFocus:Pw(e.onFocus,()=>{p.valueIndexToChangeRef.current=c})})}),A&&(0,tI.jsx)(Hn,{name:d??(p.name?p.name+(p.values.length>1?"[]":""):void 0),form:p.form,value:y},c)]})});Hr.displayName=Ht;var Hn=tE.forwardRef(({__scopeSlider:e,value:t,...r},i)=>{let n=tE.useRef(null),a=kh(n,i),s=Ot(t);return tE.useEffect(()=>{let e=n.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(s!==t&&r){let i=new Event("input",{bubbles:!0});r.call(e,t),e.dispatchEvent(i)}},[s,t]),(0,tI.jsx)(Pk.input,{style:{display:"none"},...r,ref:a,defaultValue:t})});function Ha(e,t,r){return FI(100/(r-t)*(e-t),[0,100])}function Hs(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(r-e[0])}}function Ho({className:e,defaultValue:t,value:r,min:i=0,max:n=100,...a}){let s=tE.useMemo(()=>Array.isArray(r)?r:Array.isArray(t)?t:[i,n],[r,t,i,n]);return(0,tI.jsxs)(Q1,{"data-slot":"slider",defaultValue:t,value:r,min:i,max:n,className:Pg("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...a,children:[(0,tI.jsx)(Q9,{"data-slot":"slider-track",className:Pg("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:(0,tI.jsx)(He,{"data-slot":"slider-range",className:Pg("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:s.length},(e,t)=>(0,tI.jsx)(Hr,{"data-slot":"slider-thumb",className:"border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},t))]})}Hn.displayName="RadioBubbleInput";let Hl="undefined"==typeof window;function Hu(e,{defaultValue:t=!1,initializeWithValue:r=!0}={}){let[i,n]=tE.useState(()=>{if(r)return Hl?t:window.matchMedia(e).matches;return t});return tE.useEffect(()=>{let t=window.matchMedia(e),r=()=>{n(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e]),i}let Hc=(e,t)=>{if("number"==typeof e){if(3===t)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|240&e)/255,b:(15&e|e<<4&240)/255};if(4===t)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|240&e)/255,alpha:(15&e|e<<4&240)/255};if(6===t)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(255&e)/255};if(8===t)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(255&e)/255}}},Hd={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32},Hh=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Hp="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Hf=`${Hp}%`,Hm=`(?:${Hp}%|${Hp})`,Hg=`(?:${Hp}%|${Hp}|none)`,Hv=`(?:${Hp}(deg|grad|rad|turn)|${Hp})`,HA="\\s*,\\s*";RegExp("^"+Hg+"$");let Hb=RegExp(`^rgba?\\(\\s*${Hp}${HA}${Hp}${HA}${Hp}\\s*(?:,\\s*${Hm}\\s*)?\\)$`),Hy=RegExp(`^rgba?\\(\\s*${Hf}${HA}${Hf}${HA}${Hf}\\s*(?:,\\s*${Hm}\\s*)?\\)$`),Hw=(e="rgb")=>t=>{let r;return void 0!==(t=void 0===(r=t)?void 0:"object"!=typeof r?HV(r):void 0!==r.mode?r:e?{...r,mode:e}:void 0)?t.mode===e?t:Hx[t.mode][e]?Hx[t.mode][e](t):"rgb"===e?Hx[t.mode].rgb(t):Hx.rgb[e](Hx[t.mode].rgb(t)):void 0},Hx={},HC={},HS=[],HE={},H_=e=>e,HM=e=>(Hx[e.mode]={...Hx[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{Hx[t]||(Hx[t]={}),Hx[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(void 0===e.ranges[t]&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);"function"==typeof e.interpolate[t]&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=H_)}),HC[e.mode]=e,(e.parse||[]).forEach(t=>{HI(t,e.mode)}),Hw(e.mode)),HI=(e,t)=>{if("string"==typeof e){if(!t)throw Error("'mode' required when 'parser' is a string");HE[e]=t}else"function"==typeof e&&0>HS.indexOf(e)&&HS.push(e)},HT=/[^\x00-\x7F]|[a-zA-Z_]/,HB=/[^\x00-\x7F]|[-\w]/,HR="function",Hk="ident",HP="number",HD="percentage",HL="none",Hz="alpha",HF=0;function HN(e){let t=e[HF],r=e[HF+1];return"-"===t||"+"===t?/\d/.test(r)||"."===r&&/\d/.test(e[HF+2]):"."===t?/\d/.test(r):/\d/.test(t)}function HO(e){if(HF>=e.length)return!1;let t=e[HF];if(HT.test(t))return!0;if("-"===t){if(e.length-HF<2)return!1;let t=e[HF+1];if("-"===t||HT.test(t))return!0}return!1}let HU={deg:1,rad:180/Math.PI,grad:.9,turn:360};function HQ(e){let t="";if(("-"===e[HF]||"+"===e[HF])&&(t+=e[HF++]),t+=HH(e),"."===e[HF]&&/\d/.test(e[HF+1])&&(t+=e[HF++]+HH(e)),("e"===e[HF]||"E"===e[HF])&&(("-"===e[HF+1]||"+"===e[HF+1])&&/\d/.test(e[HF+2])?t+=e[HF++]+e[HF++]+HH(e):/\d/.test(e[HF+1])&&(t+=e[HF++]+HH(e))),HO(e)){let r=HG(e);return"deg"===r||"rad"===r||"turn"===r||"grad"===r?{type:"hue",value:t*HU[r]}:void 0}return"%"===e[HF]?(HF++,{type:HD,value:+t}):{type:HP,value:+t}}function HH(e){let t="";for(;/\d/.test(e[HF]);)t+=e[HF++];return t}function HG(e){let t="";for(;HF<e.length&&HB.test(e[HF]);)t+=e[HF++];return t}function Hj(e,t){let r,i=[];for(;e._i<e.length;){if((r=e[e._i++]).type===HL||r.type===HP||r.type===Hz||r.type===HD||t&&"hue"===r.type){i.push(r);continue}if(")"===r.type){if(e._i<e.length)return;continue}return}if(!(i.length<3)&&!(i.length>4)){if(4===i.length){if(i[3].type!==Hz)return;i[3]=i[3].value}return 3===i.length&&i.push({type:HL,value:void 0}),i.every(e=>e.type!==Hz)?i:void 0}}let HV=e=>{let t;if("string"!=typeof e)return;let r=function(e=""){let t,r=e.trim(),i=[];for(HF=0;HF<r.length;){if("\n"===(t=r[HF++])||" "===t||" "===t){for(;HF<r.length&&("\n"===r[HF]||" "===r[HF]||" "===r[HF]);)HF++;continue}if(","===t)return;if(")"===t){i.push({type:")"});continue}if("+"===t){if(HF--,HN(r)){i.push(HQ(r));continue}return}if("-"===t){if(HF--,HN(r)){i.push(HQ(r));continue}if(HO(r)){i.push({type:Hk,value:HG(r)});continue}return}if("."===t){if(HF--,HN(r)){i.push(HQ(r));continue}return}if("/"===t){let e;for(;HF<r.length&&("\n"===r[HF]||" "===r[HF]||" "===r[HF]);)HF++;if(HN(r)&&"hue"!==(e=HQ(r)).type){i.push({type:Hz,value:e});continue}if(HO(r)&&"none"===HG(r)){i.push({type:Hz,value:{type:HL,value:void 0}});continue}return}if(/\d/.test(t)){HF--,i.push(HQ(r));continue}if(HT.test(t)){HF--,i.push(function(e){let t=HG(e);return"("===e[HF]?(HF++,{type:HR,value:t}):"none"===t?{type:HL,value:void 0}:{type:Hk,value:t}}(r));continue}return}return i}(e),i=r?function(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==HR)return;let i=Hj(e,t);if(i)return i.unshift(r.value),i}(r,!0):void 0,n=0,a=HS.length;for(;n<a;)if(void 0!==(t=HS[n++](e,i)))return t;return r?function(e){e._i=0;let t=e[e._i++];if(!t||t.type!==HR||"color"!==t.value||(t=e[e._i++]).type!==Hk)return;let r=HE[t.value];if(!r)return;let i={mode:r},n=Hj(e,!1);if(!n)return;let a=HC[r].channels;for(let e=0,t,r;e<a.length;e++)t=n[e],r=a[e],t.type!==HL&&(i[r]=t.type===HP?t.value:t.value/100,"alpha"===r&&(i[r]=Math.max(0,Math.min(1,i[r]))));return i}(r):void 0},HW=(eh=(e,t,r)=>e+r*(t-e),e=>{let t=(e=>{let t=[];for(let r=0;r<e.length-1;r++){let i=e[r],n=e[r+1];void 0===i&&void 0===n?t.push(void 0):void 0!==i&&void 0!==n?t.push([i,n]):t.push(void 0!==i?[i,i]:[n,n])}return t})(e);return e=>{let r=e*t.length,i=e>=1?t.length-1:Math.max(Math.floor(r),0),n=t[i];return void 0===n?void 0:eh(n[0],n[1],r-i)}}),Hq=e=>{let t=!1,r=e.map(e=>void 0!==e?(t=!0,e):1);return t?r:e},HX={mode:"rgb",channels:["r","g","b","alpha"],parse:[function(e,t){if(!t||"rgb"!==t[0]&&"rgba"!==t[0])return;let r={mode:"rgb"},[,i,n,a,s]=t;if("hue"!==i.type&&"hue"!==n.type&&"hue"!==a.type)return i.type!==HL&&(r.r=i.type===HP?i.value/255:i.value/100),n.type!==HL&&(r.g=n.type===HP?n.value/255:n.value/100),a.type!==HL&&(r.b=a.type===HP?a.value/255:a.value/100),s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r},e=>{let t;return(t=e.match(Hh))?Hc(parseInt(t[1],16),t[1].length):void 0},e=>{let t,r={mode:"rgb"};if(t=e.match(Hb))void 0!==t[1]&&(r.r=t[1]/255),void 0!==t[2]&&(r.g=t[2]/255),void 0!==t[3]&&(r.b=t[3]/255);else{if(!(t=e.match(Hy)))return;void 0!==t[1]&&(r.r=t[1]/100),void 0!==t[2]&&(r.g=t[2]/100),void 0!==t[3]&&(r.b=t[3]/100)}return void 0!==t[4]?r.alpha=Math.max(0,Math.min(1,t[4]/100)):void 0!==t[5]&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},e=>Hc(Hd[e.toLowerCase()],6),e=>"transparent"===e?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,"srgb"],serialize:"srgb",interpolate:{r:HW,g:HW,b:HW,alpha:{use:HW,fixup:Hq}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},HJ=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),HK=e=>{let t=HJ(e.r),r=HJ(e.g),i=HJ(e.b),n={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*i};return void 0!==e.alpha&&(n.alpha=e.alpha),n},HY=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),H$=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"a98",r:HY(2.0415879038107465*e-.5650069742788597*t-.3447313507783297*r),g:HY(-.9692436362808798*e+1.8759675015077206*t+.0415550574071756*r),b:HY(.0134442806320312*e-.1183623922310184*t+1.0151749943912058*r)};return void 0!==i&&(n.alpha=i),n},HZ=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},H0=({r:e,g:t,b:r,alpha:i})=>{let n={mode:"lrgb",r:HZ(e),g:HZ(t),b:HZ(r)};return void 0!==i&&(n.alpha=i),n},H1=e=>{let{r:t,g:r,b:i,alpha:n}=H0(e),a={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*i,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*i,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*i};return void 0!==n&&(a.alpha=n),a},H2=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):12.92*e},H3=({r:e,g:t,b:r,alpha:i},n="rgb")=>{let a={mode:n,r:H2(e),g:H2(t),b:H2(r)};return void 0!==i&&(a.alpha=i),a},H4=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=H3({r:3.2409699419045226*e-1.537383177570094*t-.4986107602930034*r,g:-.9692436362808796*e+1.8759675015077204*t+.0415550574071756*r,b:.0556300796969936*e-.2039769588889765*t+1.0569715142428784*r});return void 0!==i&&(n.alpha=i),n},H5={...HX,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>H$(H1(e)),xyz65:H$},toMode:{rgb:e=>H4(HK(e)),xyz65:HK}},H8=e=>(e%=360)<0?e+360:e,H6=e=>{let t;return t=e=>180>=Math.abs(e)?e:e-360*Math.sign(e),e.map((r,i,n)=>{if(void 0===r)return r;let a=H8(r);return 0===i||void 0===e[i-1]?a:t(a-H8(n[i-1]))}).reduce((e,t)=>(e.length&&void 0!==t&&void 0!==e[e.length-1]?e.push(t+e[e.length-1]):e.push(t),e),[])},H9=[-.14861,1.78277,-.29227,-.90649,1.97294,0],H7=Math.PI/180,Ge=180/Math.PI,Gt=H9["3"]*H9["4"],Gr=H9["1"]*H9["4"],Gi=H9["1"]*H9["2"]-H9["0"]*H9["3"],Gn=(e,t)=>{if(void 0===e.h||void 0===t.h||!e.s||!t.s)return 0;let r=H8(e.h),i=Math.sin((H8(t.h)-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},Ga=(e,t)=>{if(void 0===e.h||void 0===t.h||!e.c||!t.c)return 0;let r=H8(e.h),i=Math.sin((H8(t.h)-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},Gs=e=>{let t=e.reduce((e,t)=>{if(void 0!==t){let r=t*Math.PI/180;e.sin+=Math.sin(r),e.cos+=Math.cos(r)}return e},{sin:0,cos:0}),r=180*Math.atan2(t.sin,t.cos)/Math.PI;return r<0?360+r:r},Go={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:({r:e,g:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=(Gi*r+e*Gt-t*Gr)/(Gi+Gt-Gr),a=r-n,s=(H9["4"]*(t-n)-H9["2"]*a)/H9["3"],o={mode:"cubehelix",l:n,s:0===n||1===n?void 0:Math.sqrt(a*a+s*s)/(H9["4"]*n*(1-n))};return o.s&&(o.h=Math.atan2(s,a)*Ge-120),void 0!==i&&(o.alpha=i),o}},toMode:{rgb:({h:e,s:t,l:r,alpha:i})=>{let n={mode:"rgb"};void 0===r&&(r=0);let a=void 0===t?0:t*r*(1-r),s=Math.cos(e=(void 0===e?0:e+120)*H7),o=Math.sin(e);return n.r=r+a*(H9["0"]*s+H9["1"]*o),n.g=r+a*(H9["2"]*s+H9["3"]*o),n.b=r+a*(H9["4"]*s+H9["5"]*o),void 0!==i&&(n.alpha=i),n}},interpolate:{h:{use:HW,fixup:H6},s:HW,l:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Gn},average:{h:Gs}},Gl=({l:e,a:t,b:r,alpha:i},n="lch")=>{void 0===t&&(t=0),void 0===r&&(r=0);let a=Math.sqrt(t*t+r*r),s={mode:n,l:e,c:a};return a&&(s.h=H8(180*Math.atan2(r,t)/Math.PI)),void 0!==i&&(s.alpha=i),s},Gu=({l:e,c:t,h:r,alpha:i},n="lab")=>{void 0===r&&(r=0);let a={mode:n,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return void 0!==i&&(a.alpha=i),a},Gc={X:.3457/.3585,Y:1,Z:.8251046025104602},Gd={X:.3127/.329,Y:1,Z:1.0890577507598784},Gh=e=>Math.pow(e,3)>.008856451679035631?Math.pow(e,3):(116*e-16)/903.2962962962963,Gp=({l:e,a:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=(e+16)/116,a=t/500+n,s=n-r/200,o={mode:"xyz65",x:Gh(a)*Gd.X,y:Gh(n)*Gd.Y,z:Gh(s)*Gd.Z};return void 0!==i&&(o.alpha=i),o},Gf=e=>H4(Gp(e)),Gm=e=>e>.008856451679035631?Math.cbrt(e):(903.2962962962963*e+16)/116,Gg=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Gm(e/Gd.X),a=Gm(t/Gd.Y),s={mode:"lab65",l:116*a-16,a:500*(n-a),b:200*(a-Gm(r/Gd.Z))};return void 0!==i&&(s.alpha=i),s},Gv=e=>{let t=Gg(H1(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},GA=26/180*Math.PI,Gb=Math.cos(GA),Gy=Math.sin(GA),Gw=100/Math.log(1.39),Gx=({l:e,c:t,h:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"lab65",l:(Math.exp(e/Gw)-1)/.0039},a=(Math.exp(.0435*t*1)-1)/.075,s=a*Math.cos(r/180*Math.PI-GA),o=a*Math.sin(r/180*Math.PI-GA);return n.a=s*Gb-o/.83*Gy,n.b=s*Gy+o/.83*Gb,void 0!==i&&(n.alpha=i),n},GC=({l:e,a:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=t*Gb+r*Gy,a=.83*(r*Gb-t*Gy),s={mode:"dlch",l:Gw/1*Math.log(1+.0039*e),c:Math.log(1+.075*Math.sqrt(n*n+a*a))/.0435};return s.c&&(s.h=H8((Math.atan2(a,n)+GA)/Math.PI*180)),void 0!==i&&(s.alpha=i),s},GS=e=>Gx(Gl(e,"dlch")),GE=e=>Gu(GC(e),"dlab"),G_=RegExp(`^hsla?\\(\\s*${Hv}${HA}${Hf}${HA}${Hf}\\s*(?:,\\s*${Hm}\\s*)?\\)$`),GM={mode:"hsl",toMode:{rgb:function({h:e,s:t,l:r,alpha:i}){let n;e=H8(void 0!==e?e:0),void 0===t&&(t=0),void 0===r&&(r=0);let a=r+t*(r<.5?r:1-r),s=a-(a-r)*2*Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:n={r:a,g:s,b:2*r-a};break;case 1:n={r:s,g:a,b:2*r-a};break;case 2:n={r:2*r-a,g:a,b:s};break;case 3:n={r:2*r-a,g:s,b:a};break;case 4:n={r:s,g:2*r-a,b:a};break;case 5:n={r:a,g:2*r-a,b:s};break;default:n={r:2*r-a,g:2*r-a,b:2*r-a}}return n.mode="rgb",void 0!==i&&(n.alpha=i),n}},fromMode:{rgb:function({r:e,g:t,b:r,alpha:i}){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),s={mode:"hsl",s:n===a?0:(n-a)/(1-Math.abs(n+a-1)),l:.5*(n+a)};return n-a!=0&&(s.h=(n===e?(t-r)/(n-a)+(t<r)*6:n===t?(r-e)/(n-a)+2:(e-t)/(n-a)+4)*60),void 0!==i&&(s.alpha=i),s}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,t){if(!t||"hsl"!==t[0]&&"hsla"!==t[0])return;let r={mode:"hsl"},[,i,n,a,s]=t;if(i.type!==HL){if(i.type===HD)return;r.h=i.value}if(n.type!==HL){if("hue"===n.type)return;r.s=n.value/100}if(a.type!==HL){if("hue"===a.type)return;r.l=a.value/100}return s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r},e=>{let t=e.match(G_);if(!t)return;let r={mode:"hsl"};return void 0!==t[3]?r.h=+t[3]:void 0!==t[1]&&void 0!==t[2]&&(r.h=((e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return 360*e}})(t[1],t[2])),void 0!==t[4]&&(r.s=Math.min(Math.max(0,t[4]/100),1)),void 0!==t[5]&&(r.l=Math.min(Math.max(0,t[5]/100),1)),void 0!==t[6]?r.alpha=Math.max(0,Math.min(1,t[6]/100)):void 0!==t[7]&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r}],serialize:e=>`hsl(${void 0!==e.h?e.h:"none"} ${void 0!==e.s?100*e.s+"%":"none"} ${void 0!==e.l?100*e.l+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:HW,fixup:H6},s:HW,l:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Gn},average:{h:Gs}};function GI({h:e,s:t,v:r,alpha:i}){let n;e=H8(void 0!==e?e:0),void 0===t&&(t=0),void 0===r&&(r=0);let a=Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:n={r:r,g:r*(1-t*a),b:r*(1-t)};break;case 1:n={r:r*(1-t*a),g:r,b:r*(1-t)};break;case 2:n={r:r*(1-t),g:r,b:r*(1-t*a)};break;case 3:n={r:r*(1-t),g:r*(1-t*a),b:r};break;case 4:n={r:r*(1-t*a),g:r*(1-t),b:r};break;case 5:n={r:r,g:r*(1-t),b:r*(1-t*a)};break;default:n={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return n.mode="rgb",void 0!==i&&(n.alpha=i),n}function GT({r:e,g:t,b:r,alpha:i}){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),s={mode:"hsv",s:0===n?0:1-a/n,v:n};return n-a!=0&&(s.h=(n===e?(t-r)/(n-a)+(t<r)*6:n===t?(r-e)/(n-a)+2:(e-t)/(n-a)+4)*60),void 0!==i&&(s.alpha=i),s}let GB={mode:"hsv",toMode:{rgb:GI},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:GT},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:HW,fixup:H6},s:HW,v:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Gn},average:{h:Gs}};function GR(e){if(e<0)return 0;let t=Math.pow(e,.012683313515655966);return 1e4*Math.pow(Math.max(0,t-.8359375)/(18.8515625-18.6875*t),6.277394636015326)}function Gk(e){if(e<0)return 0;let t=Math.pow(e/1e4,.1593017578125);return Math.pow((.8359375+18.8515625*t)/(1+18.6875*t),78.84375)}let GP=e=>Math.max(e/203,0),GD=({i:e,t,p:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=GR(e+.008609037037932761*t+.11102962500302593*r),a=GR(e-.00860903703793275*t-.11102962500302599*r),s=GR(e+.5600313357106791*t-.32062717498731885*r),o={mode:"xyz65",x:GP(2.070152218389422*n-1.3263473389671556*a+.2066510476294051*s),y:GP(.3647385209748074*n+.680566024947227*a-.0453045459220346*s),z:GP(-.049747207535812*n-.0492609666966138*a+1.1880659249923042*s)};return void 0!==i&&(o.alpha=i),o},GL=(e=0)=>Math.max(203*e,0),Gz=({x:e,y:t,z:r,alpha:i})=>{let n=GL(e),a=GL(t),s=GL(r),o=Gk(.3592832590121217*n+.6976051147779502*a-.0358915932320289*s),l=Gk(-.1920808463704995*n+1.1004767970374323*a+.0753748658519118*s),u=Gk(.0070797844607477*n+.0748396662186366*a+.8433265453898765*s),c={mode:"itp",i:.5*o+.5*l,t:1.61376953125*o-3.323486328125*l+1.709716796875*u,p:4.378173828125*o-4.24560546875*l-.132568359375*u};return void 0!==i&&(c.alpha=i),c},GF=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,.1593017578125);return Math.pow((.8359375+18.8515625*t)/(1+18.6875*t),134.03437499999998)},GN=(e=0)=>Math.max(203*e,0),GO=({x:e,y:t,z:r,alpha:i})=>{e=GN(e),t=GN(t);let n=1.15*e-.15*(r=GN(r)),a=.66*t+.34*e,s=GF(.41478972*n+.579999*a+.014648*r),o=GF(-.20151*n+1.120649*a+.0531008*r),l=GF(-.0166008*n+.2648*a+.6684799*r),u=(s+o)/2,c={mode:"jab",j:.44*u/(1-.56*u)-16295499532821565e-27,a:3.524*s-4.066708*o+.542708*l,b:.199076*s+1.096799*o-1.295875*l};return void 0!==i&&(c.alpha=i),c},GU=e=>{if(e<0)return 0;let t=Math.pow(e,.007460772656268216);return 1e4*Math.pow((.8359375-t)/(18.6875*t-18.8515625),6.277394636015326)},GQ=({j:e,a:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=(e+16295499532821565e-27)/(.44+.56*(e+16295499532821565e-27)),a=GU(n+.13860504*t+.058047316*r),s=GU(n-.13860504*t-.058047316*r),o=GU(n-.096019242*t-.8118919*r),l={mode:"xyz65",x:(1.661373024652174*a-.914523081304348*s+.23136208173913045*o)/203,y:(-.3250758611844533*a+1.571847026732543*s-.21825383453227928*o)/203,z:(-.090982811*a-.31272829*s+1.5227666*o)/203};return void 0!==i&&(l.alpha=i),l},GH=e=>{let t=GO(H1(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},GG=e=>H4(GQ(e)),Gj=({j:e,a:t,b:r,alpha:i})=>{void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"jch",j:e,c:n};return n&&(a.h=H8(180*Math.atan2(r,t)/Math.PI)),void 0!==i&&(a.alpha=i),a},GV=({j:e,c:t,h:r,alpha:i})=>{void 0===r&&(r=0);let n={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return void 0!==i&&(n.alpha=i),n},GW=e=>Math.pow(e,3)>.008856451679035631?Math.pow(e,3):(116*e-16)/903.2962962962963,Gq=({l:e,a:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=(e+16)/116,a=t/500+n,s=n-r/200,o={mode:"xyz50",x:GW(a)*Gc.X,y:GW(n)*Gc.Y,z:GW(s)*Gc.Z};return void 0!==i&&(o.alpha=i),o},GX=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=H3({r:3.1341359569958707*e-1.6173863321612538*t-.4906619460083532*r,g:-.978795502912089*e+1.916254567259524*t+.03344273116131949*r,b:.07195537988411677*e-.2289768264158322*t+1.405386058324125*r});return void 0!==i&&(n.alpha=i),n},GJ=e=>GX(Gq(e)),GK=e=>{let{r:t,g:r,b:i,alpha:n}=H0(e),a={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*i,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*i,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*i};return void 0!==n&&(a.alpha=n),a},GY=e=>e>.008856451679035631?Math.cbrt(e):(903.2962962962963*e+16)/116,G$=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=GY(e/Gc.X),a=GY(t/Gc.Y),s={mode:"lab",l:116*a-16,a:500*(n-a),b:200*(a-GY(r/Gc.Z))};return void 0!==i&&(s.alpha=i),s},GZ=e=>{let t=G$(GK(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},G0={mode:"lab",toMode:{xyz50:Gq,rgb:GJ},fromMode:{xyz50:G$,rgb:GZ},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[function(e,t){if(!t||"lab"!==t[0])return;let r={mode:"lab"},[,i,n,a,s]=t;if("hue"!==i.type&&"hue"!==n.type&&"hue"!==a.type)return i.type!==HL&&(r.l=Math.min(Math.max(0,i.value),100)),n.type!==HL&&(r.a=n.type===HP?n.value:125*n.value/100),a.type!==HL&&(r.b=a.type===HP?a.value:125*a.value/100),s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r}],serialize:e=>`lab(${void 0!==e.l?e.l:"none"} ${void 0!==e.a?e.a:"none"} ${void 0!==e.b?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:HW,a:HW,b:HW,alpha:{use:HW,fixup:Hq}}},G1={...G0,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Gp,rgb:Gf},fromMode:{xyz65:Gg,rgb:Gv},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},G2={mode:"lch",toMode:{lab:Gu,rgb:e=>GJ(Gu(e))},fromMode:{rgb:e=>Gl(GZ(e)),lab:Gl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[function(e,t){if(!t||"lch"!==t[0])return;let r={mode:"lch"},[,i,n,a,s]=t;if(i.type!==HL){if("hue"===i.type)return;r.l=Math.min(Math.max(0,i.value),100)}if(n.type!==HL&&(r.c=Math.max(0,n.type===HP?n.value:150*n.value/100)),a.type!==HL){if(a.type===HD)return;r.h=a.value}return s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r}],serialize:e=>`lch(${void 0!==e.l?e.l:"none"} ${void 0!==e.c?e.c:"none"} ${void 0!==e.h?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:HW,fixup:H6},c:HW,l:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Ga},average:{h:Gs}},G3={...G2,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Gu(e,"lab65"),rgb:e=>Gf(Gu(e,"lab65"))},fromMode:{rgb:e=>Gl(Gv(e),"lch65"),lab65:e=>Gl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},G4=({l:e,u:t,v:r,alpha:i})=>{void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"lchuv",l:e,c:n};return n&&(a.h=H8(180*Math.atan2(r,t)/Math.PI)),void 0!==i&&(a.alpha=i),a},G5=({l:e,c:t,h:r,alpha:i})=>{void 0===r&&(r=0);let n={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return void 0!==i&&(n.alpha=i),n},G8=(e,t,r)=>4*e/(e+15*t+3*r),G6=(e,t,r)=>9*t/(e+15*t+3*r),G9=G8(Gc.X,Gc.Y,Gc.Z),G7=G6(Gc.X,Gc.Y,Gc.Z),je=({x:e,y:t,z:r,alpha:i})=>{let n;void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let a=(n=t/Gc.Y)<=.008856451679035631?903.2962962962963*n:116*Math.cbrt(n)-16,s=G8(e,t,r),o=G6(e,t,r);isFinite(s)&&isFinite(o)?(s=13*a*(s-G9),o=13*a*(o-G7)):a=s=o=0;let l={mode:"luv",l:a,u:s,v:o};return void 0!==i&&(l.alpha=i),l},jt=(ep=Gc.X,4*ep/(ep+15*Gc.Y+3*Gc.Z)),jr=(ef=Gc.X,9*(em=Gc.Y)/(ef+15*em+3*Gc.Z)),ji=({l:e,u:t,v:r,alpha:i})=>{if(void 0===e&&(e=0),0===e)return{mode:"xyz50",x:0,y:0,z:0};void 0===t&&(t=0),void 0===r&&(r=0);let n=t/(13*e)+jt,a=r/(13*e)+jr,s=Gc.Y*(e<=8?e/903.2962962962963:Math.pow((e+16)/116,3)),o={mode:"xyz50",x:9*n*s/(4*a),y:s,z:s*(12-3*n-20*a)/(4*a)};return void 0!==i&&(o.alpha=i),o},jn={...HX,mode:"lrgb",toMode:{rgb:H3},fromMode:{rgb:H0},parse:["srgb-linear"],serialize:"srgb-linear"},ja=({r:e,g:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*r),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*r),s=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*r),o={mode:"oklab",l:.210454268309314*n+.7936177747023054*a-.0040720430116193*s,a:1.9779985324311684*n-2.42859224204858*a+.450593709617411*s,b:.0259040424655478*n+.7827717124575296*a-.8086757549230774*s};return void 0!==i&&(o.alpha=i),o},js=e=>{let t=ja(H0(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},jo=({l:e,a:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.pow(e+.3963377773761749*t+.2158037573099136*r,3),a=Math.pow(e-.1055613458156586*t-.0638541728258133*r,3),s=Math.pow(e-.0894841775298119*t-1.2914855480194092*r,3),o={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*a+.2309699031821044*s,g:-1.2684379732850317*n+2.6097573492876887*a-.3413193760026573*s,b:-.0041960761386756*n-.7034186179359362*a+1.7076146940746117*s};return void 0!==i&&(o.alpha=i),o},jl=e=>H3(jo(e));function ju(e){return .5*(1.206/1.03*e-.206+Math.sqrt((1.206/1.03*e-.206)*(1.206/1.03*e-.206)+1.206/1.03*.12*e))}function jc(e){return(e*e+.206*e)/(1.206/1.03*(e+.03))}function jd(e,t){let r,i,n,a,s,o,l,u,c,d,h,p,f,m,g,v,A,b=(-1.88170328*e-.80936493*t>1?(r=1.19086277,i=1.76576728,n=.59662641,a=.75515197,s=.56771245,o=4.0767416621,l=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,i=-.45954404,n=.08285427,a=.1254107,s=.14503204,o=-1.2684380046,l=2.6097574011,u=-.3413193965):(r=1.35733652,i=-.00915799,n=-1.1513021,a=-.50559606,s=.00692167,o=-.0041960863,l=-.7034186147,u=1.707614701),c=r+i*e+n*t+a*e*e+s*e*t,d=.3963377774*e+.2158037573*t,h=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t,v=o*((f=1+c*d)*f*f)+l*((m=1+c*h)*m*m)+u*((g=1+c*p)*g*g),c-=v*(A=3*d*f*f*o+3*h*m*m*l+3*p*g*g*u)/(A*A-.5*v*(6*d*d*f*o+6*h*h*m*l+6*p*p*g*u))),y=jo({l:1,a:b*e,b:b*t}),w=Math.cbrt(1/Math.max(y.r,y.g,y.b));return[w,w*b]}function jh(e,t,r=null){r||(r=jd(e,t));let i=r[0],n=r[1];return[n/i,n/(1-i)]}function jp(e,t,r){let i=jd(t,r),n=function(e,t,r,i,n,a=null){let s;if(a||(a=jd(e,t)),(r-n)*a[1]-(a[0]-n)*1<=0)s=a[1]*n/(+a[0]+a[1]*(n-r));else{s=a[1]*(n-1)/(+(a[0]-1)+a[1]*(n-r));{let i=r-n,a=.3963377774*e+.2158037573*t,o=-.1055613458*e-.0638541728*t,l=-.0894841775*e-1.291485548*t,u=i+ +a,c=i+ +o,d=i+ +l;{let e=n*(1-s)+s*r,t=+s,i=e+t*a,h=e+t*o,p=e+t*l,f=i*i*i,m=h*h*h,g=p*p*p,v=3*u*i*i,A=3*c*h*h,b=3*d*p*p,y=6*u*u*i,w=6*c*c*h,x=6*d*d*p,C=4.0767416621*f-3.3077115913*m+.2309699292*g-1,S=4.0767416621*v-3.3077115913*A+.2309699292*b,E=S/(S*S-.5*C*(4.0767416621*y-3.3077115913*w+.2309699292*x)),_=-C*E,M=-1.2684380046*f+2.6097574011*m-.3413193965*g-1,I=-1.2684380046*v+2.6097574011*A-.3413193965*b,T=I/(I*I-.5*M*(-1.2684380046*y+2.6097574011*w-.3413193965*x)),B=-M*T,R=-.0041960863*f-.7034186147*m+1.707614701*g-1,k=-.0041960863*v-.7034186147*A+1.707614701*b,P=k/(k*k-.5*R*(-.0041960863*y-.7034186147*w+1.707614701*x)),D=-R*P;s+=Math.min(_=E>=0?_:1e6,Math.min(B=T>=0?B:1e6,D=P>=0?D:1e6))}}}return s}(t,r,e,0,e,i),a=jh(t,r,i),s=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),o=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),l=n/Math.min(e*a[0],(1-e)*a[1]),u=e*s,c=(1-e)*o,d=.9*l*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(c*c*c*c))));return[Math.sqrt(1/(1/((u=.4*e)*u)+1/((c=(1-e)*.8)*c))),d,n]}function jf(e){let t,r=void 0!==e.l?e.l:0,i=void 0!==e.a?e.a:0,n=void 0!==e.b?e.b:0,a={mode:"okhsl",l:ju(r)};void 0!==e.alpha&&(a.alpha=e.alpha);let s=Math.sqrt(i*i+n*n);if(!s)return a.s=0,a;let[o,l,u]=jp(r,i/s,n/s);if(s<l){let e=.8*o;t=(s-0)/(e+(1-e/l)*(s-0))*.8}else{let e=.2*l*l*1.5625/o;t=.8+.2*((s-l)/(e+(1-e/(u-l))*(s-l)))}return t&&(a.s=t,a.h=H8(180*Math.atan2(n,i)/Math.PI)),a}function jm(e){let t,r,i,n,a=void 0!==e.h?e.h:0,s=void 0!==e.s?e.s:0,o=void 0!==e.l?e.l:0,l={mode:"oklab",l:jc(o)};if(void 0!==e.alpha&&(l.alpha=e.alpha),!s||1===o)return l.a=l.b=0,l;let u=Math.cos(a/180*Math.PI),c=Math.sin(a/180*Math.PI),[d,h,p]=jp(l.l,u,c);s<.8?(t=1.25*s,r=0,n=1-(i=.8*d)/h):(t=5*(s-.8),r=h,n=1-(i=.2*h*h*1.5625/d)/(p-h));let f=r+t*i/(1-n*t);return l.a=f*u,l.b=f*c,l}let jg={...GM,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:jf,rgb:e=>jf(js(e))},toMode:{oklab:jm,rgb:e=>jl(jm(e))}};function jv(e){let t=void 0!==e.l?e.l:0,r=void 0!==e.a?e.a:0,i=void 0!==e.b?e.b:0,n=Math.sqrt(r*r+i*i),a=n?r/n:1,s=n?i/n:1,[o,l]=jh(a,s),u=l/(n+t*l),c=u*t,d=u*n,h=jc(c),p=d*h/c,f=jo({l:h,a:a*p,b:s*p}),m=Math.cbrt(1/Math.max(f.r,f.g,f.b,0));t/=m;let g={mode:"okhsv",s:(n=n/m*ju(t)/t)?(.5+l)*d/(.5*l+l*(1-.5/o)*d):0,v:(t=ju(t))?t/c:0};return g.s&&(g.h=H8(180*Math.atan2(i,r)/Math.PI)),void 0!==e.alpha&&(g.alpha=e.alpha),g}function jA(e){let t={mode:"oklab"};void 0!==e.alpha&&(t.alpha=e.alpha);let r=void 0!==e.h?e.h:0,i=void 0!==e.s?e.s:0,n=void 0!==e.v?e.v:0,a=Math.cos(r/180*Math.PI),s=Math.sin(r/180*Math.PI),[o,l]=jh(a,s),u=1-.5/o,c=1-.5*i/(.5+l-l*u*i),d=i*l*.5/(.5+l-l*u*i),h=jc(c),p=d*h/c,f=jo({l:h,a:a*p,b:s*p}),m=Math.cbrt(1/Math.max(f.r,f.g,f.b,0)),g=jc(n*c),v=d*g/c;return t.l=g*m,t.a=v*a*m,t.b=v*s*m,t}let jb={...GB,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:jv,rgb:e=>jv(js(e))},toMode:{oklab:jA,rgb:e=>jl(jA(e))}},jy={...G0,mode:"oklab",toMode:{lrgb:jo,rgb:jl},fromMode:{lrgb:ja,rgb:js},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[function(e,t){if(!t||"oklab"!==t[0])return;let r={mode:"oklab"},[,i,n,a,s]=t;if("hue"!==i.type&&"hue"!==n.type&&"hue"!==a.type)return i.type!==HL&&(r.l=Math.min(Math.max(0,i.type===HP?i.value:i.value/100),1)),n.type!==HL&&(r.a=n.type===HP?n.value:.4*n.value/100),a.type!==HL&&(r.b=a.type===HP?a.value:.4*a.value/100),s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r}],serialize:e=>`oklab(${void 0!==e.l?e.l:"none"} ${void 0!==e.a?e.a:"none"} ${void 0!==e.b?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},jw={...G2,mode:"oklch",toMode:{oklab:e=>Gu(e,"oklab"),rgb:e=>jl(Gu(e,"oklab"))},fromMode:{rgb:e=>Gl(js(e),"oklch"),oklab:e=>Gl(e,"oklch")},parse:[function(e,t){if(!t||"oklch"!==t[0])return;let r={mode:"oklch"},[,i,n,a,s]=t;if(i.type!==HL){if("hue"===i.type)return;r.l=Math.min(Math.max(0,i.type===HP?i.value:i.value/100),1)}if(n.type!==HL&&(r.c=Math.max(0,n.type===HP?n.value:.4*n.value/100)),a.type!==HL){if(a.type===HD)return;r.h=a.value}return s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r}],serialize:e=>`oklch(${void 0!==e.l?e.l:"none"} ${void 0!==e.c?e.c:"none"} ${void 0!==e.h?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},jx=e=>{let{r:t,g:r,b:i,alpha:n}=H0(e),a={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*i,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*i,z:0*t+.0451133818589026*r+1.043944368900976*i};return void 0!==n&&(a.alpha=n),a},jC=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=H3({r:2.4934969119414263*e-.9313836179191242*t-.402710784450717*r,g:-.8294889695615749*e+1.7626640603183465*t+.0236246858419436*r,b:.0358458302437845*e-.0761723892680418*t+.9568845240076871*r},"p3");return void 0!==i&&(n.alpha=i),n},jS={...HX,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>jC(H1(e)),xyz65:jC},toMode:{rgb:e=>H4(jx(e)),xyz65:jx}},jE=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},j_=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"prophoto",r:jE(1.3457868816471585*e-.2555720873797946*t-.0511018649755453*r),g:jE(-.5446307051249019*e+1.5082477428451466*t+.0205274474364214*r),b:jE(0*e+0*t+1.2119675456389452*r)};return void 0!==i&&(n.alpha=i),n},jM=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},jI=e=>{let t=jM(e.r),r=jM(e.g),i=jM(e.b),n={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*i,z:0*t+0*r+.8251046025104602*i};return void 0!==e.alpha&&(n.alpha=e.alpha),n},jT={...HX,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:j_,rgb:e=>j_(GK(e))},toMode:{xyz50:jI,rgb:e=>GX(jI(e))}},jB=e=>{let t=Math.abs(e);return t>.018053968510807?(Math.sign(e)||1)*(1.09929682680944*Math.pow(t,.45)-(1.09929682680944-1)):4.5*e},jR=({x:e,y:t,z:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"rec2020",r:jB(1.7166511879712683*e-.3556707837763925*t-.2533662813736599*r),g:jB(-.6666843518324893*e+1.6164812366349395*t+.0157685458139111*r),b:jB(.0176398574453108*e-.0427706132578085*t+.9421031212354739*r)};return void 0!==i&&(n.alpha=i),n},jk=(e=0)=>{let t=Math.abs(e);return t<.08124285829863151?e/4.5:(Math.sign(e)||1)*Math.pow((t+1.09929682680944-1)/1.09929682680944,1/.45)},jP=e=>{let t=jk(e.r),r=jk(e.g),i=jk(e.b),n={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*r+.059301716469862*i,z:0*t+.0280726930490874*r+1.0609850577107909*i};return void 0!==e.alpha&&(n.alpha=e.alpha),n},jD={...HX,mode:"rec2020",fromMode:{xyz65:jR,rgb:e=>jR(H1(e))},toMode:{xyz65:jP,rgb:e=>H4(jP(e))},parse:["rec2020"],serialize:"rec2020"},jL=Math.cbrt(.0037930732552754493),jz=e=>Math.cbrt(e)-jL,jF=e=>Math.pow(e+jL,3),jN={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:e,y:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=jF(e+t)-.0037930732552754493,a=jF(t-e)-.0037930732552754493,s=jF(r+t)-.0037930732552754493,o=H3({r:11.031566904639861*n-9.866943908131562*a-.16462299650829934*s,g:-3.2541473810744237*n+4.418770377582723*a-.16462299650829934*s,b:-3.6588512867136815*n+2.7129230459360922*a+1.9459282407775895*s});return void 0!==i&&(o.alpha=i),o}},fromMode:{rgb:e=>{let{r:t,g:r,b:i,alpha:n}=H0(e),a=jz(.3*t+.622*r+.078*i+.0037930732552754493),s=jz(.23*t+.692*r+.078*i+.0037930732552754493),o={mode:"xyb",x:(a-s)/2,y:(a+s)/2,b:jz(.2434226892454782*t+.2047674442449682*r+.5518098665095535*i+.0037930732552754493)-(a+s)/2};return void 0!==n&&(o.alpha=n),o}},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:HW,y:HW,b:HW,alpha:{use:HW,fixup:Hq}}},jO={mode:"yiq",toMode:{rgb:({y:e,i:t,q:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return void 0!==i&&(n.alpha=i),n}},fromMode:{rgb:({r:e,g:t,b:r,alpha:i})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return void 0!==i&&(n.alpha=i),n}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:HW,i:HW,q:HW,alpha:{use:HW,fixup:Hq}}};((e=4)=>t=>{let r;return"number"==typeof t?Math.round(t*(r=Math.pow(10,r=e)))/r:t})(2);let jU=e=>Math.round(255*Math.max(0,Math.min(1,e||0))),jQ=Hw("rgb");Hw("hsl");let jH=e=>(e=>{if(void 0!==e)return"#"+(0x1000000|jU(e.r)<<16|jU(e.g)<<8|jU(e.b)).toString(16).slice(1)})(jQ(e));HM(H5),HM(Go),HM({mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:GS,rgb:e=>Gf(GS(e))},fromMode:{lab65:GE,rgb:e=>GE(Gv(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:HW,a:HW,b:HW,alpha:{use:HW,fixup:Hq}}}),HM({mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Gx,dlab:e=>Gu(e,"dlab"),rgb:e=>Gf(Gx(e))},fromMode:{lab65:GC,dlab:e=>Gl(e,"dlch"),rgb:e=>GC(Gv(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:HW,c:HW,h:{use:HW,fixup:H6},alpha:{use:HW,fixup:Hq}},difference:{h:Ga},average:{h:Gs}}),HM({mode:"hsi",toMode:{rgb:function({h:e,s:t,i:r,alpha:i}){let n;e=H8(void 0!==e?e:0),void 0===t&&(t=0),void 0===r&&(r=0);let a=Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:n={r:r*(1+t*(3/(2-a)-1)),g:r*(1+t*(3*(1-a)/(2-a)-1)),b:r*(1-t)};break;case 1:n={r:r*(1+t*(3*(1-a)/(2-a)-1)),g:r*(1+t*(3/(2-a)-1)),b:r*(1-t)};break;case 2:n={r:r*(1-t),g:r*(1+t*(3/(2-a)-1)),b:r*(1+t*(3*(1-a)/(2-a)-1))};break;case 3:n={r:r*(1-t),g:r*(1+t*(3*(1-a)/(2-a)-1)),b:r*(1+t*(3/(2-a)-1))};break;case 4:n={r:r*(1+t*(3*(1-a)/(2-a)-1)),g:r*(1-t),b:r*(1+t*(3/(2-a)-1))};break;case 5:n={r:r*(1+t*(3/(2-a)-1)),g:r*(1-t),b:r*(1+t*(3*(1-a)/(2-a)-1))};break;default:n={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return n.mode="rgb",void 0!==i&&(n.alpha=i),n}},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:function({r:e,g:t,b:r,alpha:i}){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),s={mode:"hsi",s:e+t+r===0?0:1-3*a/(e+t+r),i:(e+t+r)/3};return n-a!=0&&(s.h=(n===e?(t-r)/(n-a)+(t<r)*6:n===t?(r-e)/(n-a)+2:(e-t)/(n-a)+4)*60),void 0!==i&&(s.alpha=i),s}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:HW,fixup:H6},s:HW,i:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Gn},average:{h:Gs}}),HM(GM),HM(GB),HM({mode:"hwb",toMode:{rgb:function({h:e,w:t,b:r,alpha:i}){if(void 0===t&&(t=0),void 0===r&&(r=0),t+r>1){let e=t+r;t/=e,r/=e}return GI({h:e,s:1===r?1:1-t/(1-r),v:1-r,alpha:i})}},fromMode:{rgb:function(e){let t=GT(e);if(void 0===t)return;let r=void 0!==t.s?t.s:0,i=void 0!==t.v?t.v:0,n={mode:"hwb",w:(1-r)*i,b:1-i};return void 0!==t.h&&(n.h=t.h),void 0!==t.alpha&&(n.alpha=t.alpha),n}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,t){if(!t||"hwb"!==t[0])return;let r={mode:"hwb"},[,i,n,a,s]=t;if(i.type!==HL){if(i.type===HD)return;r.h=i.value}if(n.type!==HL){if("hue"===n.type)return;r.w=n.value/100}if(a.type!==HL){if("hue"===a.type)return;r.b=a.value/100}return s.type!==HL&&(r.alpha=Math.min(1,Math.max(0,s.type===HP?s.value:s.value/100))),r}],serialize:e=>`hwb(${void 0!==e.h?e.h:"none"} ${void 0!==e.w?100*e.w+"%":"none"} ${void 0!==e.b?100*e.b+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:HW,fixup:H6},w:HW,b:HW,alpha:{use:HW,fixup:Hq}},difference:{h:(e,t)=>{if(void 0===e.h||void 0===t.h)return 0;let r=H8(e.h),i=H8(t.h);return Math.abs(i-r)>180?r-(i-360*Math.sign(i-r)):i-r}},average:{h:Gs}}),HM({mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:GD,rgb:e=>H4(GD(e))},fromMode:{xyz65:Gz,rgb:e=>Gz(H1(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:HW,t:HW,p:HW,alpha:{use:HW,fixup:Hq}}}),HM({mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:GH,xyz65:GO},toMode:{rgb:GG,xyz65:GQ},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:HW,a:HW,b:HW,alpha:{use:HW,fixup:Hq}}}),HM({mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:GV,rgb:e=>GG(GV(e))},fromMode:{rgb:e=>Gj(GH(e)),jab:Gj},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:HW,fixup:H6},c:HW,j:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Ga},average:{h:Gs}}),HM(G0),HM(G1),HM(G2),HM(G3),HM({mode:"lchuv",toMode:{luv:G5,rgb:e=>GX(ji(G5(e)))},fromMode:{rgb:e=>G4(je(GK(e))),luv:G4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:HW,fixup:H6},c:HW,l:HW,alpha:{use:HW,fixup:Hq}},difference:{h:Ga},average:{h:Gs}}),HM(jn),HM({mode:"luv",toMode:{xyz50:ji,rgb:e=>GX(ji(e))},fromMode:{xyz50:je,rgb:e=>je(GK(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:HW,u:HW,v:HW,alpha:{use:HW,fixup:Hq}}}),HM(jg),HM(jb),HM(jy);let jG=HM(jw);HM(jS),HM(jT),HM(jD),HM(HX),HM(jN),HM({mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:GX,lab:G$},fromMode:{rgb:GK,lab:Gq},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:HW,y:HW,z:HW,alpha:{use:HW,fixup:Hq}}}),HM({mode:"xyz65",toMode:{rgb:H4,xyz50:e=>{let{x:t,y:r,z:i,alpha:n}=e;void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0);let a={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*i};return void 0!==n&&(a.alpha=n),a}},fromMode:{rgb:H1,xyz50:e=>{let{x:t,y:r,z:i,alpha:n}=e;void 0===t&&(t=0),void 0===r&&(r=0),void 0===i&&(i=0);let a={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*i};return void 0!==n&&(a.alpha=n),a}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:HW,y:HW,z:HW,alpha:{use:HW,fixup:Hq}}}),HM(jO);var jj=kl("../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js");let jV=/oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)/;function jW(e,t){let r=e.match(jV);return r?{l:Number.parseFloat(r[1]),c:Number.parseFloat(r[2]),h:Number.parseFloat(r[3])}:{l:t[0],c:t[1],h:t[2]}}function jq({data:e,foreground:t,background:r,robustness:i="M",className:n,...a}){let[s,o]=(0,tE.useState)(null);return((0,tE.useEffect)(()=>{(async()=>{try{let n=getComputedStyle(document.documentElement),a=t??n.getPropertyValue("--foreground"),s=r??n.getPropertyValue("--background"),l=jW(a,[.21,.006,285.885]),u=jW(s,[.985,0,0]),c=await jj.toString(e,{type:"svg",color:{dark:jH(jG({mode:"oklch",...l})),light:jH(jG({mode:"oklch",...u}))},width:200,errorCorrectionLevel:i,margin:0});o(c)}catch(e){console.error(e)}})()},[e,t,r,i]),s)?(0,tI.jsx)("div",{className:Pg("size-full","[&_svg]:size-full",n),dangerouslySetInnerHTML:{__html:s},...a}):null}let jX="iOS"===new v_().getOS().name;function jJ({className:e,...t}){let{poster:r,width:i,height:n,containerRef:a,posterRef:s}=Uf(),{t:o}=no(),[l,u]=(0,tE.useState)(""),[c,d]=(0,tE.useState)(""),[h,p]=(0,tE.useState)(!1),[f,m]=(0,tE.useState)(!1),g=(0,tE.useRef)(null),v=(0,tE.useMemo)(()=>{let e=new URL("https://viewer.vizbl.com/poster/app/index.html");return e.searchParams.set("texture",r),e.searchParams.set("texture_width",(100*i).toString()),e.searchParams.set("texture_height",(100*n).toString()),decodeURIComponent(e.toString())},[r,i,n]),A=async()=>{let e=g.current,t=s.current;if(e&&t)if(e.canActivateAR)try{m(!0);let e=t.clone(!0);if(e.position.set(0,0,0),jX){let t=new mI,r=await t.parseAsync(e),i=new File([r],"scene.usdz",{type:"model/vnd.usdz+zip"});u(URL.createObjectURL(i))}else{let t=new mN,r=await t.parseAsync(e,{binary:!0}),i=new File([r],"scene.glb",{type:"model/gltf-binary"});d(URL.createObjectURL(i))}}finally{m(!1)}else p(!0)};return(0,tE.useEffect)(()=>((""!==l||""!==c)&&g.current?.activateAR(),()=>{""!==l&&URL.revokeObjectURL(l),""!==c&&URL.revokeObjectURL(c)}),[l,c]),(0,tI.jsxs)("div",{className:Pg(e),...t,children:[(0,tI.jsx)(Py,{variant:"contrast",disabled:f,onClick:A,children:o("ar.viewInPlace")}),(0,tI.jsx)(Ln,{open:h,onOpenChange:p,children:(0,tI.jsxs)(Ll,{className:"gap-6 sm:max-w-120",showCloseButton:!1,portalContainer:a,children:[(0,tI.jsx)("div",{className:"flex items-center justify-center p-10 bg-constant-white rounded-2xl",children:(0,tI.jsx)(jq,{className:"size-44",robustness:"H",data:v})}),(0,tI.jsx)("p",{className:"text-lg text-center text-text-sub font-medium",children:o("ar.scanQrCode")}),(0,tI.jsx)(Ls,{asChild:!0,children:(0,tI.jsx)(Py,{variant:"contrast",size:"lg",children:o("close")})})]})}),(0,tI.jsx)("model-viewer",{ref:g,className:"fixed w-px h-px opacity-0 pointer-events-none",src:c,iosSrc:l,reveal:"manual",ar:!0,cameraControls:!0,arModes:"webxr",arScale:"fixed",shadowIntensity:1,interactionPromptThreshold:100})]})}let jK={width:void 0,height:void 0};function jY(e,t,r){return e[t]?Array.isArray(e[t])?e[t][0][r]:e[t][r]:"contentBoxSize"===t?e.contentRect["inlineSize"===r?"width":"height"]:void 0}function j$(e){let{z:t,pitchDeg:r,rollDeg:i}=e,n=Tm(e=>e.camera);return(0,tE.useMemo)(()=>{let e,a,s,o,l,u,c,d;return e=new nW,a=new nW,s=new nV,o=new nW(1,0,0),l=new nW(0,1,0),u=new nW(0,0,1),c=nG.degToRad(r),d=nG.degToRad(i),e.copy(u).applyAxisAngle(o,c).applyAxisAngle(l,d).normalize(),a.copy(e).applyQuaternion(n.quaternion).normalize(),s.setFromUnitVectors(u,a),{position:n.position.clone().addScaledVector(a,-(.01*t)).toArray(),quaternion:s.toArray()}},[t,r,i])}function jZ({ref:e,z:t,pitchDeg:r,rollDeg:i}){let n=TA(cO,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAPaklEQVR4Ae2dsXFcyQ5FpV+yFIFiUBSTgTw6jEIZMIONgs54TIYxKAK5+oVf9acu4ezgNR4g9Jx1dlDqBzQOGrdAC58vl8ufT43/PT09NUb/9Ol6vbbGJ3/q3/kA/9MZnNgQgEAvAQSglz/RIdBKAAFoxU9wCPQSQAB6+RMdAq0EEIBW/ASHQC8BBKCXP9Eh0EoAAWjFT3AI9BJAAHr5Ex0CrQQQgFb8BIdALwEEoJc/0SHQSgABaMVPcAj0ElgWgNf3n60Z/Hr50Rr//etra/yXH835v35tzf/Xj5fW+K8/31vj/3hZy39ZAFqzJzgEILBEAAFYwsfHEJhN4MuR6/uxX+3n7/8ccRn6xo/9an97eQv5OnLYj/1qf//9fMRl6Bs/9qv98laQvxv738X+/vw7lMuRw37sV/vb28sRl6Fv/Niv9vM/30O+jhz2Y7/ab8E/CQ4JgDa5Nb/aRxKKfqNNbs2vdtTXkfPa5Nb8ah/xF/1Gm9yaX+2oryPntcmt+dU+4i/6jTa5Nb/aUV9HzmuTW/OrfcRf9Bttcmt+taO++BMgSozzENiIAAKwUTFJBQJRAssCUD3++wSrx38fv3r89/Grx38fv3r89/Grx38fv3r89/FXxn/ztSwA/kLYEIDAHAIIwJxacVMIpBNAANKR4hACcwggAHNqxU0hkE4AAUhHikMIzCGAAMypFTeFQDoBBCAdKQ4hMIcAAjCnVtwUAukEEIB0pDiEwBwCCMCcWnFTCKQTQADSkeIQAnMIIABzasVNIZBO4Av76dlPn/6qAg6v12vgdP7RR3//TAD5bwqPEBhDAAEYUyouCoF8AghAPlM8QmAMAQRgTKm4KATyCSAA+UzxCIExBBCAMaXiohDIJ4AA5DPFIwTGEEAAxpSKi0IgnwACkM8UjxAYQwABGFMqLgqBfAIIQD5TPEJgDIFlAdDFnB1Z62LOjvi6mLMjvi7m7Iivizk74utizo74upizI/5q/ssC0JE0MSEAgRwCCEAOR7xAYCSBQ+vB/divdsWuPj/2q12xq8+P/WpX7OrzY7/aFbv6/NivdsWuPj/2ql2xq8+P/Wqv7uq7R0U0XzuvdjT/QwKgTW7Nr/Y9Caye0Sa35ld71fc932uTW/Orfc/3q2e0ya351V71fc/32uTW/Grf8/3qGX3k9vjVXvV9z/fa5Nb8at/z/eoZzXc1f/4EWK0G30NgMAEEYHDxuDoEVgksC0D1+O8Trh7/ffzq8d/Hrx7/ffzq8d/H13HY/1uFXT3++5xW818WAH8hbAhAYA4BBGBOrbgpBNIJIADpSHEIgTkEEIA5teKmEEgngACkI8UhBOYQQADm1IqbQiCdAAKQjhSHEJhDAAGYUytuCoF0AghAOlIcQmAOAQRgTq24KQTSCSAA6UhxCIE5BBCAObXiphBIJ/D5crn8SfcacPjo+9nJ/ynwWvKPXq/XfKcBj931ZwIIFIujENiNAAKwW0XJBwIBAghAABZHIbAbAQRgt4qSDwQCBBCAACyOQmA3AgjAbhUlHwgECCAAAVgchcBuBBCA3SpKPhAIEEAAArA4CoHdCCAAu1WUfCAQIIAABGBxFAK7EVgWAF3M2QFHF3N2xNfFnB3xdTFnR3xdTNkRXxdzdsTvzn+1/ssC0AGdmBCAQA4BBCCHI14gMJLAofXgfuxXu2JXnx/71a7Y1efHfrUrdvX5sU/til19fuxVe3VX3T1d5Md+tSt29Wm+dl+1K/LXelt8taP1PyQA2uTW/Grbhc7+T5vcml/ts2Obf21ya361K+Jrka34alfE10duj1/tivja5Nb8alfE13w78td6r9afPwEqXgwxIPCXEkAA/tLCcC0IVBBYFoDq8d9DqR7/ffzq8d/H13HQ/1uFreNwRTwfo3r89/G781+t/7IAeCDYEIDAHAIIwJxacVMIpBNAANKR4hACcwggAHNqxU0hkE4AAUhHikMIzCGAAMypFTeFQDoBBCAdKQ4hMIcAAjCnVtwUAukEEIB0pDiEwBwCCMCcWnFTCKQTQADSkeIQAnMIIABzasVNIZBO4Ev3fvJH389O/tf0Rx1x+Ojvnwkg8lo4C4HNCCAAmxWUdCAQIYAARGhxFgKbEUAANiso6UAgQgABiNDiLAQ2I4AAbFZQ0oFAhAACEKHFWQhsRgAB2KygpAOBCAEEIEKLsxDYjAACsFlBSQcCEQIIQIQWZyGwGYFlAdDFnB1sdDFnR3xdzNgRXxdTdsTXxZwd8bvz767/6vtfFoCOohMTAhDIIYAA5HDECwRGEji0HtyP/WpX7OrzY4/aFbv6/Nin9uqutntekR971a7YVefHfrUrdvVpvsZL7Yr8td4WX+2K+ut7t/hqR9//MQF4e7O4//vPmr+i6f8fz/6vSVryauu5s35rka34ap8VU/3qI7fHr7aeO+u3Nrk1v9pnxVS/mm9H/lrvjvrre199//wJoC+L3xB4MAIIwIMVnHQhoASWBaB6/NfL228dh/y/Vdg6DlbE8zF0HPb/VmFXj/8+p+78u+u/+v6XBcAXBBsCEJhDAAGYUytuCoF0AghAOlIcQmAOAQRgTq24KQTSCSAA6UhxCIE5BBCAObXiphBIJ4AApCPFIQTmEEAA5tSKm0IgnQACkI4UhxCYQwABmFMrbgqBdAIIQDpSHEJgDgEEYE6tuCkE0gl8vlwuf9K9Bhw++n528n8KvJb8o9frNd9pwGN3/ZkAAsXiKAR2I4AA7FZR8oFAgAACEIDFUQjsRgAB2K2i5AOBAAEEIACLoxDYjQACsFtFyQcCAQIIQAAWRyGwGwEEYLeKkg8EAgQQgAAsjkJgNwIIwG4VJR8IBAggAAFYHIXAbgSWBUAXE3bA0cWMHfF1MWVHfF3M2RG/O//u+ne/f13Me6T+ywJwJCjfQAACfwcBBODvqAO3gEALgUPrwf3Yo/bqrrJ7KPixT+2KXW1+7FW7YledH/vVrtjVp/lavdSuyF/rbfHVrqi/vneLr3bF+/djv9rRXZ2HBECTtOTVNiBn/6dFtuKrfXZs86+P3B6/2hXxtcmt+dWuiK/5duSv9e6ov773jvevTW7Nr3a0/vwJECXGeQhsRAAB2KiYpAKBKIFlAdBxKBo847yOgxn+oj50HI5+m3G+evz3d+7Ov7v+3e9/Zfy3Wi4LgH8Q2BCAwBwCCMCcWnFTCKQTQADSkeIQAnMIIABzasVNIZBOAAFIR4pDCMwhgADMqRU3hUA6AQQgHSkOITCHAAIwp1bcFALpBBCAdKQ4hMAcAgjAnFpxUwikE0AA0pHiEAJzCCAAc2rFTSGQTuBL937yR9/PTv7X9Ecdcfjo758JIPJaOAuBzQggAJsVlHQgECGAAERocRYCmxFAADYrKOlAIEIAAYjQ4iwENiOAAGxWUNKBQIQAAhChxVkIbEYAAdisoKQDgQgBBCBCi7MQ2IwAArBZQUkHAhECCECEFmchsBmBZQHQxYwdbHQxZUd8XczZEb87/+7662LODv66mLMj/vvX16WwywKwFJ2PIQCBVgIIQCt+gkOgl8Ch9eB+7FO7YlebH3vVrthV58d+tSt29Wm+9nzUrshf623x1a6ovx/71a7Y1efHfrVXd/UZz3/7z4/9an///fxvn3/490MCoEW24qv9wftJhj5ye/xqnxTyg1ttcmt+tT8cPMnQfDvy13p31F+b3Jpf7ZOQf3CrTW7Nr/aHgycZ2uTW/GpHQ/InQJQY5yGwEQEEYKNikgoEogSWBUDHwWjwjPM6Dmf4i/qoHv/9/brz765/9fjv+VeP/z7+yvhvvpYFwF8IGwIQmEMAAZhTK24KgXQCCEA6UhxCYA4BBGBOrbgpBNIJIADpSHEIgTkEEIA5teKmEEgngACkI8UhBOYQQADm1IqbQiCdAAKQjhSHEJhDAAGYUytuCoF0AghAOlIcQmAOAQRgTq24KQTSCXy+XC5/0r0GHD76fnbyfwq8lvyj1+s132nAY3f9mQACxeIoBHYjgADsVlHygUCAAAIQgMVRCOxGAAHYraLkA4EAAQQgAIujENiNAAKwW0XJBwIBAghAABZHIbAbAQRgt4qSDwQCBBCAACyOQmA3AgjAbhUlHwgECCAAAVgchcBuBJYFQBdTdsDRxZwd8bvz18WcHfnrYs6O+LqYsyO+LubsiP/r5cdS2GUBWIrOxxCAQCsBBKAVP8Eh0Evg0HpwP/aqXbGrzo/9alfs6tN8rXxqV+Tvx361K3b1+bFf7YpdfX7sV7tiV58f+9Ve3dV3jxz4sV/tby9v97i4nTkkAPrI7fGrffN84g9tcmt+tU8Me3Ot+Xbkr01uza/27ZIn/tAmt+ZX+8SwN9fa5Nb8at8OnfhDm9yaX+0Tw95ca5Nb86t9O3TnD/4EuBMUxyCwIwEEYMeqkhME7iSwLAA6Dt8ZM/VY9fjvL9+df/X47/OvHv99/Orx38evHv99/JXx33wtC4C/EDYEIDCHAAIwp1bcFALpBBCAdKQ4hMAcAgjAnFpxUwikE0AA0pHiEAJzCCAAc2rFTSGQTgABSEeKQwjMIYAAzKkVN4VAOgEEIB0pDiEwhwACMKdW3BQC6QQQgHSkOITAHAIIwJxacVMIpBP40r2f/NH3s5P/Nf1RRxw++vtnAoi8Fs5CYDMCCMBmBSUdCEQIIAARWpyFwGYEEIDNCko6EIgQQAAitDgLgc0IIACbFZR0IBAhgABEaHEWApsRQAA2KyjpQCBCAAGI0OIsBDYjgABsVlDSgUCEAAIQocVZCGxGYFkAdDFnBxtdzNkRXxdzdsTXxZwd8XUxZ0d8XczZEV8Xc3bEf33/uRR2WQCWovMxBCDQSgABaMVPcAj0Eji0HtyP/WpX7OrzY7/aFbv6/NivdsWuPj/2q12xq8+P/WpX7OrzY7/aFbv6/Niv9uquvnvkwI/9aj9//+ceF7czhwRAm9yaX+2b5xN/aJNb86t9Ytiba21ya361b4dO/KFNbs2v9olhb661ya351b4dOvGHNrk1v9onhr251ia35lf7dujEH9rk1vxqR8PyJ0CUGOchsBEBBGCjYpIKBKIElgWgevz3CVaP/z5+9fjv41eP/z5+9fjv41eP/z5+9fjv46+M/+ZrWQD8hbAhAIE5BBCAObXiphBIJ4AApCPFIQTmEEAA5tSKm0IgnQACkI4UhxCYQwABmFMrbgqBdAIIQDpSHEJgDgEEYE6tuCkE0gkgAOlIcQiBOQQQgDm14qYQSCeAAKQjxSEE5hBAAObUiptCIJ3AfwHiG2FWAMZtOgAAAABJRU5ErkJggg=="),{position:a,quaternion:s}=j$({z:t,pitchDeg:r,rollDeg:i});return(0,tE.useEffect)(()=>{n.wrapS=1e3,n.wrapT=1e3,n.repeat.set(8,8)},[n]),(0,tI.jsxs)("mesh",{ref:e,position:a,quaternion:s,children:[(0,tI.jsx)("planeGeometry",{args:[64,64]}),(0,tI.jsx)("meshStandardMaterial",{map:n,transparent:!0,opacity:0})]})}function j0({node:e,position:t,scale:r=[1,1,1],uvScale:i}){let n=(0,tE.useRef)(null);return(0,tE.useEffect)(()=>{if(!n.current||void 0===i)return;let t=n.current.geometry.attributes.uv,r=e.geometry.attributes.uv.array;for(let e=0;e<t.count;e++){let n=r[2*e],a=r[2*e+1];t.setXY(e,n*i,a)}t.needsUpdate=!0},[i,e.geometry]),(0,tI.jsx)(MW,{ref:n,object:e,position:t,scale:r})}function j1({width:e,height:t}){let{material:r}=Uf(),{nodes:i}=T8(r?.native?.glbUrl),n=(0,tE.useMemo)(()=>{let e=new nW,t={};["vizbl0","vizbl1","vizbl2","vizbl3","vizbl4","vizbl5","vizbl6","vizbl7"].forEach(r=>{let n=i[r];if(!n?.geometry)return;let a=n.clone();a.updateMatrixWorld(!0),a.geometry.applyMatrix4(a.matrixWorld),a.position.set(0,0,0),a.rotation.set(0,0,0),a.scale.set(1,1,1),a.updateMatrixWorld(!0),a.geometry.computeBoundingBox(),a.geometry.boundingBox&&(a.geometry.boundingBox.getCenter(e),a.geometry.translate(-e.x,-e.y,-e.z)),a.geometry.computeBoundingBox(),t[r]=a});let r=t.vizbl0;if(!r?.geometry)throw Error("Corner mesh not found");let n=r.geometry.boundingBox,a=n.max.x-n.min.x,s=n.max.y-n.min.y,o={top:0,bottom:0,left:0,right:0},l={top:0,bottom:0,left:0,right:0},u=t.vizbl1;if(u?.geometry){let e=u.geometry.boundingBox;o.top=e.max.x-e.min.x,l.top=e.max.y-e.min.y}let c=t.vizbl3;if(c?.geometry){let e=c.geometry.boundingBox;o.right=e.max.y-e.min.y,l.right=e.max.x-e.min.x}let d=t.vizbl5;if(d?.geometry){let e=d.geometry.boundingBox;o.bottom=e.max.x-e.min.x,l.bottom=e.max.y-e.min.y}let h=t.vizbl7;if(h?.geometry){let e=h.geometry.boundingBox;o.left=e.max.y-e.min.y,l.left=e.max.x-e.min.x}return{cornerSize:{width:a,height:s},barLengths:o,barThickness:l,normalizedNodes:t}},[i]),a=e-2*n.cornerSize.width+.002,s=t-2*n.cornerSize.height+.002,o=a/n.barLengths.top,l=a/n.barLengths.bottom,u=s/n.barLengths.left,c=s/n.barLengths.right;return(0,tI.jsxs)("group",{children:[(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl0,position:[-e/2+n.cornerSize.width/2-.001,t/2-n.cornerSize.height/2+.001,0]}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl1,position:[0,t/2-n.barThickness.top/2+.001,0],scale:[o,1,1],uvScale:o}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl2,position:[e/2-n.cornerSize.width/2+.001,t/2-n.cornerSize.height/2+.001,0]}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl3,position:[e/2-n.barThickness.right/2+.001,0,0],scale:[1,c,1],uvScale:c}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl4,position:[e/2-n.cornerSize.width/2+.001,-t/2+n.cornerSize.height/2-.001,0]}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl5,position:[0,-t/2+n.barThickness.bottom/2-.001,0],scale:[l,1,1],uvScale:l}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl6,position:[-e/2+n.cornerSize.width/2-.001,-t/2+n.cornerSize.height/2-.001,0]}),(0,tI.jsx)(j0,{node:n.normalizedNodes.vizbl7,position:[-e/2+n.barThickness.left/2-.001,0,0],scale:[1,u,1],uvScale:u})]})}function j2({width:e,height:t,position:r,quaternion:i}){return(0,tI.jsxs)("mesh",{position:r,quaternion:i,children:[(0,tI.jsx)("planeGeometry",{args:[e,t]}),(0,tI.jsx)("meshStandardMaterial",{color:"white"})]})}function j3({src:e,position:t,quaternion:r}){let{posterRef:i}=Uf(),n=TA(cO,e),{width:a,height:s,material:o,frameWidth:l,matting:u,setIsDragging:c}=Uf(),d=a+2*u,h=s+2*u,p=u>0?d:a,f=u>0?h:s;return(0,tI.jsxs)("group",{ref:i,position:t,quaternion:r,onPointerDown:()=>c(!0),onPointerUp:()=>c(!1),onPointerLeave:()=>c(!1),children:[o?.native?.glbUrl&&l>0&&(0,tI.jsx)(j1,{width:p,height:f}),u>0&&(0,tI.jsx)(j2,{width:d,height:h,position:[0,0,.01]}),(0,tI.jsxs)("mesh",{position:[0,0,.02],children:[(0,tI.jsx)("planeGeometry",{args:[a,s]}),(0,tI.jsx)("meshStandardMaterial",{map:n})]})]})}function j4(){let{poster:e,room:t}=Uf(),r=Tm(e=>e.get),i=(0,tE.useRef)(new nW),n=(0,tE.useRef)(new Map),a=(0,tE.useRef)([]),s=j$((0,tE.useMemo)(()=>{let e=t.config.sides.map(e=>Math.abs(e.pitchDeg)+Math.abs(e.rollDeg)),r=Math.min(...e),i=e.indexOf(r);return t.config.sides[i]},[t])),[o,l]=(0,tE.useState)(s);(0,tE.useEffect)(()=>{l(s)},[s]);let u=(0,tE.useCallback)(()=>{let{camera:e,raycaster:t,pointer:n}=r();t.setFromCamera(n,e);let s=t.intersectObjects(a.current);if(s.length>0){let e=s[0],t=e.point.clone();i.current.set(0,0,1).applyQuaternion(e.object.quaternion),t.addScaledVector(i.current,.05),l({position:t.toArray(),quaternion:e.object.quaternion.toArray()})}},[r]);return(0,tI.jsxs)(tI.Fragment,{children:[(0,tI.jsx)(B8,{autoTransform:!1,onDrag:u,children:(0,tI.jsx)(j3,{src:e,position:o.position,quaternion:o.quaternion})}),t.config.sides.map(e=>(0,tI.jsx)(jZ,{ref:t=>{let r=n.current;return t&&r.set(e.id,t),a.current=Array.from(r.values()),()=>{r.delete(e.id),a.current=Array.from(r.values())}},z:e.z,pitchDeg:e.pitchDeg,rollDeg:e.rollDeg},e.id))]})}function j5({className:e,onSizeChange:t,...r}){let{room:i}=Uf(),[n,a]=(0,tE.useState)(null),[s,o]=(0,tE.useState)(null),[l,u]=(0,tE.useState)(null),c=(0,tE.useRef)(null),d=Hu("(max-width: 639px)"),{width:h,height:p}=function(e){let t,{ref:r,box:i="content-box"}=e,[{width:n,height:a},s]=tE.useState(jK),o=(t=tE.useRef(!1),tE.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),tE.useCallback(()=>t.current,[])),l=tE.useRef({...jK}),u=tE.useRef(void 0);return u.current=e.onResize,tE.useEffect(()=>{if(!r.current||"undefined"==typeof window||!("ResizeObserver"in window))return;let e=new ResizeObserver(([e])=>{let t="border-box"===i?"borderBoxSize":"device-pixel-content-box"===i?"devicePixelContentBoxSize":"contentBoxSize",r=jY(e,t,"inlineSize"),n=jY(e,t,"blockSize");if(l.current.width!==r||l.current.height!==n){let e={width:r,height:n};l.current.width=r,l.current.height=n,u.current?u.current(e):o()&&s(e)}});return e.observe(r.current,{box:i}),()=>{e.disconnect()}},[i,r,o]),{width:n,height:a}}({ref:c});return(0,tE.useLayoutEffect)(()=>{if(!h||!p||!n)return;let e=h,r=p;d?e=(r=p)*n:h/p>n?e=p*n:r=h/n,o(e),u(r),t?.(e,r)},[d,n,h,p,t]),(0,tE.useEffect)(()=>{let e=new Image;e.onload=()=>{a(Math.round(e.width/e.height*100)/100)},e.src=i.image},[i]),(0,tI.jsx)("div",{ref:c,className:Pg("size-full flex items-center justify-center sm:pt-21 sm:pb-12",e),...r,children:(0,tI.jsx)(RX,{className:"bg-center bg-contain bg-no-repeat",camera:{fov:i.config.camera.fov},gl:{toneMapping:4,toneMappingExposure:1.2,alpha:!0},style:{width:`${s}px`,height:`${l}px`,backgroundImage:`url(${i.image})`},children:(0,tI.jsxs)(tE.Suspense,{fallback:null,children:[(0,tI.jsx)(Rj,{files:["https://vizbl.com/hdr/neutral.hdr"]}),(0,tI.jsx)(j4,{})]})})})}function j8({className:e,...t}){let{containerRef:r,angle:i,setAngle:n,isDragging:a}=Uf(),{t:s}=no(),o=(0,tE.useRef)(null),l=Hu("(max-width: 639px)"),u=(0,tE.useCallback)(()=>{l&&o.current?.centerView()},[l]);return(0,tI.jsxs)("div",{className:Pg("relative flex items-center justify-center overflow-hidden",e),...t,children:[(0,tI.jsx)(fH,{ref:o,disabled:a,children:(0,tI.jsx)(fG,{wrapperClass:"size-full!",contentClass:"h-full! min-w-full sm:max-w-full",children:(0,tI.jsx)(j5,{onSizeChange:u})})}),(0,tI.jsx)(jJ,{className:"absolute bottom-4 left-4 sm:bottom-6 sm:left-6"}),(0,tI.jsxs)("div",{className:"absolute right-4 bottom-4 inline-flex items-center gap-2 sm:right-6 sm:bottom-6",children:[(0,tI.jsxs)(QQ,{children:[(0,tI.jsx)(QH,{asChild:!0,children:(0,tI.jsxs)(Py,{variant:"contrast",size:l?"icon":"default",children:[(0,tI.jsx)(O5,{className:"size-5"}),(0,tI.jsx)("span",{className:"sr-only sm:not-sr-only",children:s("scene.tunePosition")})]})}),(0,tI.jsx)(QG,{side:"top",align:"end",portalContainer:r,children:(0,tI.jsxs)(FC,{children:[(0,tI.jsxs)(FE,{children:[(0,tI.jsx)(FM,{children:s("scene.angle")}),(0,tI.jsx)(Ho,{value:[i],onValueChange:([e])=>n(e),max:75,min:-75,step:1,className:"mt-2 w-full","aria-label":s("scene.angle")})]}),(0,tI.jsx)(Py,{variant:"outline",onClick:()=>{n(0)},children:s("scene.reset")})]})})]}),l&&(0,tI.jsxs)(QQ,{children:[(0,tI.jsx)(QH,{asChild:!0,children:(0,tI.jsx)(Py,{variant:"contrast",size:"icon",children:(0,tI.jsx)(O8,{})})}),(0,tI.jsxs)(QG,{className:"grid gap-5",portalContainer:r,children:[(0,tI.jsx)(Um,{}),(0,tI.jsx)(UZ,{})]})]})]})]})}function j6(){let{setContainerRef:e}=Uf();return(0,tI.jsxs)("div",{ref:e,className:"relative size-full bg-radial from-background-containers to-background-base-2 text-foreground overflow-hidden",children:[(0,tI.jsx)(QA,{className:"absolute top-0 right-0 left-0 z-1"}),(0,tI.jsxs)("div",{className:"size-full max-w-full grid grid-rows-[1fr_auto]",children:[(0,tI.jsx)(j8,{className:"size-full min-h-0"}),(0,tI.jsx)(Qg,{className:"bg-background"})]})]})}i$.use(ka).use({type:"3rdParty",init(t){((e={})=>{i2={...i2,...e}})(t.options.react),e=t}}).init({debug:!1,detection:{caches:[]},fallbackLng:"en",resources:{en:{translation:{matting:"Matting",material:"Material",chooseMaterial:"Choose material",frameWidth:"Frame width",close:"Close",previousSlide:"Previous slide",nextSlide:"Next slide",mattingOptions:{none:"Without matting"},units:{cm:"cm"},poweredBy:"Powered by Vizbl",ar:{viewInPlace:"View in place",scanQrCode:"Scan this QR code with your phone's camera to view the object in Augmented Reality"},scene:{tunePosition:"Tune position",angle:"Angle",reset:"Reset"}}},ru:{translation:{matting:"Паспарту",material:"Материал",chooseMaterial:"Выберите материал",frameWidth:"Ширина рамки",close:"Закрыть",previousSlide:"Предыдущий слайд",nextSlide:"Следующий слайд",mattingOptions:{none:"Без паспарту"},units:{cm:"см"},poweredBy:"Технологии Аризо",ar:{viewInPlace:"Просмотреть на месте",scanQrCode:"Отсканируйте этот QR-код камерой телефона, чтобы просмотреть объект в дополненной реальности"},scene:{tunePosition:"Настроить положение",angle:"Угол",reset:"Сбросить"}}}},interpolation:{escapeValue:!1}});let j9=new r5;function j7({poster:e,width:t,height:r,name:i,...n}){let[a,s]=(0,tE.useState)(null),{t:o}=no();return(0,tI.jsxs)(tI.Fragment,{children:[a&&(0,tI.jsx)(Lp,{root:a,children:(0,tI.jsx)(Ln,{...n,children:(0,tI.jsxs)(Ll,{className:"min-w-full h-svh p-0 rounded-none sm:p-0",portalContainer:a,showCloseButton:!1,onInteractOutside:e=>{e.preventDefault()},children:[(0,tI.jsxs)(Lu,{className:"sr-only",children:[(0,tI.jsx)(Lc,{children:i}),(0,tI.jsx)(Ld,{})]}),(0,tI.jsx)(Ls,{asChild:!0,children:(0,tI.jsxs)(Py,{className:"absolute top-3 right-6 z-2",variant:"secondary",children:[o("close"),(0,tI.jsx)(ir,{})]})}),(0,tI.jsx)(rX,{client:j9,children:(0,tI.jsx)(Up,{poster:e,name:i,width:t,height:r,children:(0,tI.jsx)(j6,{})})})]})})}),(0,r8.createPortal)((0,tI.jsx)("div",{className:"vizbl-room-viewer",children:(0,tI.jsx)("div",{ref:s})}),document.body)]})}function Ve({trigger:e,...t}){let[r,i]=(0,tE.useState)(!1),n=(0,tE.useCallback)(()=>{i(!0)},[]),a=(0,tE.useCallback)(e=>{i(e)},[]);return(0,tE.useEffect)(()=>(e.addEventListener("click",n),()=>{e.removeEventListener("click",n)}),[e,n]),(0,tI.jsx)(j7,{open:r,onOpenChange:a,...t})}let Vt=0;var Vr=n("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[1].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[1].use[2]!../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/postcss-loader/index.js??ruleSet[1].rules[1].use[3]!../react-room-viewer/dist/index.css"),Vi={};Vi.styleTagTransform=pF(),Vi.setAttributes=pP(),Vi.insert=pR().bind(null,"head"),Vi.domAPI=pT(),Vi.insertStyleElement=pL(),pM()(Vr.A,Vi),Vr.A&&Vr.A.locals&&Vr.A.locals;let Vn=document.createElement("div");Vn.id="vizbl-room-viewer-dialog-manager",document.body.appendChild(Vn),tM.createRoot(Vn).render((0,tE.createElement)(function(){let[e,t]=(0,tE.useState)([]);return(0,tE.useEffect)(()=>{let e=function(){var e;return(!rt&&(rt=new t5(window.document)),e=rt).observe.apply(e,arguments)}("[data-vizbl-room-viewer-dialog]",{initialize(e){let r=e.getAttribute("data-vizbl-room-viewer-poster"),i=e.getAttribute("data-vizbl-room-viewer-name"),n=e.getAttribute("data-vizbl-room-viewer-width"),a=e.getAttribute("data-vizbl-room-viewer-height");if(!r)return void console.warn("RoomViewer: Element missing data-vizbl-room-viewer-poster attribute",e);if(!i)return void console.warn("RoomViewer: Element missing data-vizbl-room-viewer-name attribute",e);if(!n)return void console.warn("RoomViewer: Element missing data-vizbl-room-viewer-width attribute",e);if(!a)return void console.warn("RoomViewer: Element missing data-vizbl-room-viewer-height attribute",e);let s=Number(n),o=Number(a);if(Number.isNaN(s))return void console.warn("RoomViewer: data-vizbl-room-viewer-width is not a valid number",e);if(Number.isNaN(o))return void console.warn("RoomViewer: data-vizbl-room-viewer-height is not a valid number",e);let l=Vt++;return{add(){t(t=>[...t,{id:l,trigger:e,poster:r,name:i,width:s,height:o}])},remove(){t(e=>e.filter(e=>e.id!==l))}}}});return()=>{e.abort()}},[]),(0,tI.jsx)(tI.Fragment,{children:e.map(e=>(0,tI.jsx)(Ve,{trigger:e.trigger,poster:e.poster,name:e.name,width:e.width,height:e.height},e.id))})}))})()})();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizbl/room-viewer",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.14",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
7
7
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^19.2.0",
|
|
16
16
|
"react-dom": "^19.2.0",
|
|
17
|
-
"@vizbl/react-room-viewer": "0.0.
|
|
17
|
+
"@vizbl/react-room-viewer": "0.0.7"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"selector-observer": "^2.1.6"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-dom": "^19.2.0",
|
|
32
32
|
"typescript": "^5.9.3",
|
|
33
33
|
"@vizbl/eslint-config": "0.0.0",
|
|
34
|
-
"@vizbl/react-room-viewer": "0.0.
|
|
34
|
+
"@vizbl/react-room-viewer": "0.0.7",
|
|
35
35
|
"@vizbl/typescript-config": "0.0.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|