324 lines
1.7 MiB
JavaScript
324 lines
1.7 MiB
JavaScript
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BLcuj4sR.js","assets/index-DtTssDoC.css"])))=>i.map(i=>d[i]);
|
|||
|
|
var Ole=Object.defineProperty;var Oj=t=>{throw TypeError(t)};var Mle=(t,e,n)=>e in t?Ole(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Le=(t,e,n)=>Mle(t,typeof e!="symbol"?e+"":e,n),TP=(t,e,n)=>e.has(t)||Oj("Cannot "+n);var C=(t,e,n)=>(TP(t,e,"read from private field"),n?n.call(t):e.get(t)),B=(t,e,n)=>e.has(t)?Oj("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),$=(t,e,n,r)=>(TP(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),z=(t,e,n)=>(TP(t,e,"access private method"),n);var _s=(t,e,n,r)=>({set _(s){$(t,e,s,n)},get _(){return C(t,e,r)}});function b5(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var _r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Lle(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var w5={exports:{}},R1={},_5={exports:{}},Mt={};/**
|
|||
|
|
* @license React
|
|||
|
|
* react.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var n_=Symbol.for("react.element"),Ile=Symbol.for("react.portal"),$le=Symbol.for("react.fragment"),Fle=Symbol.for("react.strict_mode"),jle=Symbol.for("react.profiler"),Ble=Symbol.for("react.provider"),zle=Symbol.for("react.context"),Ule=Symbol.for("react.forward_ref"),Hle=Symbol.for("react.suspense"),Vle=Symbol.for("react.memo"),Wle=Symbol.for("react.lazy"),Mj=Symbol.iterator;function Gle(t){return t===null||typeof t!="object"?null:(t=Mj&&t[Mj]||t["@@iterator"],typeof t=="function"?t:null)}var x5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S5=Object.assign,E5={};function Sv(t,e,n){this.props=t,this.context=e,this.refs=E5,this.updater=n||x5}Sv.prototype.isReactComponent={};Sv.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Sv.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function C5(){}C5.prototype=Sv.prototype;function mM(t,e,n){this.props=t,this.context=e,this.refs=E5,this.updater=n||x5}var gM=mM.prototype=new C5;gM.constructor=mM;S5(gM,Sv.prototype);gM.isPureReactComponent=!0;var Lj=Array.isArray,A5=Object.prototype.hasOwnProperty,vM={current:null},R5={key:!0,ref:!0,__self:!0,__source:!0};function P5(t,e,n){var r,s={},i=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)A5.call(e,r)&&!R5.hasOwnProperty(r)&&(s[r]=e[r]);var o=arguments.length-2;if(o===1)s.children=n;else if(1<o){for(var c=Array(o),u=0;u<o;u++)c[u]=arguments[u+2];s.children=c}if(t&&t.defaultProps)for(r in o=t.defaultProps,o)s[r]===void 0&&(s[r]=o[r]);return{$$typeof:n_,type:t,key:i,ref:a,props:s,_owner:vM.current}}function qle(t,e){return{$$typeof:n_,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function yM(t){return typeof t=="object"&&t!==null&&t.$$typeof===n_}function Kle(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Ij=/\/+/g;function kP(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Kle(""+t.key):e.toString(36)}function LS(t,e,n,r,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case n_:case Ile:a=!0}}if(a)return a=t,s=s(a),t=r===""?"."+kP(a,0):r,Lj(s)?(n="",t!=null&&(n=t.replace(Ij,"$&/")+"/"),LS(s,e,n,"",function(u){return u})):s!=null&&(yM(s)&&(s=qle(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(Ij,"$&/")+"/")+t)),e.push(s)),1;if(a=0,r=r===""?".":r+":",Lj(t))for(var o=0;o<t.length;o++){i=t[o];var c=r+kP(i,o);a+=LS(i,e,n,c,s)}else if(c=Gle(t),typeof c=="function")for(t=c.call(t),o=0;!(i=t.next()).done;)i=i.value,c=r+kP(i,o++),a+=LS(i,e,n,c,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function jx(t,e,n){if(t==null)return t;var r=[],s=0;return LS(t,r,"","",function(i){return e.call(n,i,s++)}),r}function Yle(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var ti={current:null},IS={transition:null},Xle={ReactCurrentDispatcher:ti,ReactCurrentBatchConfig:IS,ReactCurrentOwner:vM};function T5(){throw Error("act(...) is not supported in production builds of React.")}Mt.Children={map:jx,forEach:function(t,e,n){jx(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return jx(t,function(){e++}),e},toArray:function(t){return jx(t,function(e){return e})||[]},only:function(t){if(!yM(t))throw Error("React.Children.only expect
|
|||
|
|
* @license React
|
|||
|
|
* react-jsx-runtime.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var Qle=_,Zle=Symbol.for("react.element"),Jle=Symbol.for("react.fragment"),ece=Object.prototype.hasOwnProperty,tce=Qle.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nce={key:!0,ref:!0,__self:!0,__source:!0};function k5(t,e,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(r in e)ece.call(e,r)&&!nce.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:Zle,type:t,key:i,ref:a,props:s,_owner:tce.current}}R1.Fragment=Jle;R1.jsx=k5;R1.jsxs=k5;w5.exports=R1;var P=w5.exports,Dk={},N5={exports:{}},ho={},D5={exports:{}},O5={};/**
|
|||
|
|
* @license React
|
|||
|
|
* scheduler.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/(function(t){function e(H,ee){var re=H.length;H.push(ee);e:for(;0<re;){var X=re-1>>>1,q=H[X];if(0<s(q,ee))H[X]=ee,H[re]=q,re=X;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var ee=H[0],re=H.pop();if(re!==ee){H[0]=re;e:for(var X=0,q=H.length,K=q>>>1;X<K;){var Z=2*(X+1)-1,ue=H[Z],de=Z+1,ie=H[de];if(0>s(ue,re))de<q&&0>s(ie,ue)?(H[X]=ie,H[de]=re,X=de):(H[X]=ue,H[Z]=re,X=Z);else if(de<q&&0>s(ie,re))H[X]=ie,H[de]=re,X=de;else break e}}return ee}function s(H,ee){var re=H.sortIndex-ee.sortIndex;return re!==0?re:H.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,o=a.now();t.unstable_now=function(){return a.now()-o}}var c=[],u=[],f=1,l=null,d=3,m=!1,p=!1,h=!1,y=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(H){for(var ee=n(u);ee!==null;){if(ee.callback===null)r(u);else if(ee.startTime<=H)r(u),ee.sortIndex=ee.expirationTime,e(c,ee);else break;ee=n(u)}}function x(H){if(h=!1,w(H),!p)if(n(c)!==null)p=!0,Y(A);else{var ee=n(u);ee!==null&&V(x,ee.startTime-H)}}function A(H,ee){p=!1,h&&(h=!1,g(E),E=-1),m=!0;var re=d;try{for(w(ee),l=n(c);l!==null&&(!(l.expirationTime>ee)||H&&!O());){var X=l.callback;if(typeof X=="function"){l.callback=null,d=l.priorityLevel;var q=X(l.expirationTime<=ee);ee=t.unstable_now(),typeof q=="function"?l.callback=q:l===n(c)&&r(c),w(ee)}else r(c);l=n(c)}if(l!==null)var K=!0;else{var Z=n(u);Z!==null&&V(x,Z.startTime-ee),K=!1}return K}finally{l=null,d=re,m=!1}}var T=!1,R=null,E=-1,k=5,N=-1;function O(){return!(t.unstable_now()-N<k)}function L(){if(R!==null){var H=t.unstable_now();N=H;var ee=!0;try{ee=R(!0,H)}finally{ee?I():(T=!1,R=null)}}else T=!1}var I;if(typeof v=="function")I=function(){v(L)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,U=F.port2;F.port1.onmessage=L,I=function(){U.postMessage(null)}}else I=function(){y(L,0)};function Y(H){R=H,T||(T=!0,I())}function V(H,ee){E=y(function(){H(t.unstable_now())},ee)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_continueExecution=function(){p||m||(p=!0,Y(A))},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(H){switch(d){case 1:case 2:case 3:var ee=3;break;default:ee=d}var re=d;d=ee;try{return H()}finally{d=re}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(H,ee){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var re=d;d=H;try{return ee()}finally{d=re}},t.unstable_scheduleCallback=function(H,ee,re){var X=t.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?X+re:X):re=X,H){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=re+q,H={id:f++,callback:ee,priorityLevel:H,startTime:re,expirationTime:q,sortIndex:-1},re>X?(H.sortIndex=re,e(u,H),n(c)===null&&H===n(u)&&(h?(g(E),E=-1):h=!0,V(x,re-X))):(H.sortIndex=q,e(c,H),p||m||(p=!0,Y(A))),H},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(H){var ee=d;return function(){var re=d;d=ee;try{return H.apply(this,arguments)}finally{d=re}}}})(O5);D5.exports=O5;var rce=D5.exports;/**
|
|||
|
|
* @license React
|
|||
|
|
* react-dom.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var sce=_,uo=rce;function ke(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var M5=new Set,Lb={};function up(t,e){ov(t,e),ov(t+"Capture",e)}function ov(t,e){for(Lb[t]=e,t=0;t<e.length;t++)M5.add(e[t])}var Bc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ok=Object.prototype.hasOwnProperty,ice=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$j={},Fj={};function oce(t){return Ok.call(Fj,t)?!0:Ok.call($j,t)?!1:ice.test(t)?Fj[t]=!0:($j[t]=!0,!1)}function ace(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function lce(t,e,n,r){if(e===null||typeof e>"u"||ace(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ni(t,e,n,r,s,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var ms={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ms[t]=new ni(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ms[e]=new ni(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ms[t]=new ni(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ms[t]=new ni(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ms[t]=new ni(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ms[t]=new ni(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ms[t]=new ni(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ms[t]=new ni(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ms[t]=new ni(t,5,!1,t.toLowerCase(),null,!1,!1)});var bM=/[\-:]([a-z])/g;function wM(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y ver
|
|||
|
|
`+NP+t}var DP=!1;function OP(t,e){if(!t||DP)return"";DP=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
|
|||
|
|
`),i=r.stack.split(`
|
|||
|
|
`),a=s.length-1,o=i.length-1;1<=a&&0<=o&&s[a]!==i[o];)o--;for(;1<=a&&0<=o;a--,o--)if(s[a]!==i[o]){if(a!==1||o!==1)do if(a--,o--,0>o||s[a]!==i[o]){var c=`
|
|||
|
|
`+s[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=o);break}}}finally{DP=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Uy(t):""}function cce(t){switch(t.tag){case 5:return Uy(t.type);case 16:return Uy("Lazy");case 13:return Uy("Suspense");case 19:return Uy("SuspenseList");case 0:case 2:case 15:return t=OP(t.type,!1),t;case 11:return t=OP(t.type.render,!1),t;case 1:return t=OP(t.type,!0),t;default:return""}}function $k(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case gm:return"Fragment";case mm:return"Portal";case Mk:return"Profiler";case xM:return"StrictMode";case Lk:return"Suspense";case Ik:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case I5:return(t.displayName||"Context")+".Consumer";case L5:return(t._context.displayName||"Context")+".Provider";case SM:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case EM:return e=t.displayName||null,e!==null?e:$k(t.type)||"Memo";case Ru:e=t._payload,t=t._init;try{return $k(t(e))}catch{}}return null}function uce(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $k(e);case 8:return e===xM?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Cd(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function F5(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function dce(t){var e=F5(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function zx(t){t._valueTracker||(t._valueTracker=dce(t))}function j5(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=F5(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ME(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Fk(t,e){var n=e.checked;return ar({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Bj(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Cd(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function B5(t,e){e=e.checked,e!=null&&_M(t,"checked",e,!1)}function jk(t,e){B5(t,e);var n=Cd(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Bk(t,e.type,n):e.hasOwnProperty("defaultValue")&&Bk(t,e.type,Cd(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function zj(t,e,n){if(e.hasOwnProperty(
|
|||
|
|
`).replace(_ue,"")}function Yx(t,e,n){if(e=u3(e),u3(t)!==e&&n)throw Error(ke(425))}function UE(){}var eN=null,tN=null;function nN(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var rN=typeof setTimeout=="function"?setTimeout:void 0,xue=typeof clearTimeout=="function"?clearTimeout:void 0,d3=typeof Promise=="function"?Promise:void 0,Sue=typeof queueMicrotask=="function"?queueMicrotask:typeof d3<"u"?function(t){return d3.resolve(null).then(t).catch(Eue)}:rN;function Eue(t){setTimeout(function(){throw t})}function GP(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),Bb(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Bb(e)}function yd(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function f3(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Cv=Math.random().toString(36).slice(2),fl="__reactFiber$"+Cv,Wb="__reactProps$"+Cv,zc="__reactContainer$"+Cv,sN="__reactEvents$"+Cv,Cue="__reactListeners$"+Cv,Aue="__reactHandles$"+Cv;function _f(t){var e=t[fl];if(e)return e;for(var n=t.parentNode;n;){if(e=n[zc]||n[fl]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=f3(t);t!==null;){if(n=t[fl])return n;t=f3(t)}return e}t=n,n=t.parentNode}return null}function o_(t){return t=t[fl]||t[zc],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function wm(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(ke(33))}function D1(t){return t[Wb]||null}var iN=[],_m=-1;function Id(t){return{current:t}}function Vn(t){0>_m||(t.current=iN[_m],iN[_m]=null,_m--)}function In(t,e){_m++,iN[_m]=t.current,t.current=e}var Ad={},Is=Id(Ad),Ci=Id(!1),$h=Ad;function av(t,e){var n=t.type.contextTypes;if(!n)return Ad;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function Ai(t){return t=t.childContextTypes,t!=null}function HE(){Vn(Ci),Vn(Is)}function h3(t,e,n){if(Is.current!==Ad)throw Error(ke(168));In(Is,e),In(Ci,n)}function PH(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(ke(108,uce(t)||"Unknown",s));return ar({},n,r)}function VE(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ad,$h=Is.current,In(Is,t),In(Ci,Ci.current),!0}function p3(t,e,n){var r=t.stateNode;if(!r)throw Error(ke(169));n?(t=PH(t,e,$h),r.__reactInternalMemoizedMergedChildContext=t,Vn(Ci),Vn(Is),In(Is,t)):Vn(Ci),In(Ci,n)}var tc=null,O1=!1,qP=!1;function TH(t){tc===null?tc=[t]:tc.push(t)}function Rue(t){O1=!0,TH(t)}function $d(){if(!qP&&tc!==null){qP=!0;var t=0,e=mn;try{var n=tc;for(mn=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}tc=null,O1=!1}catch(s){throw tc!==null&&(tc=tc.slice(t+1)),eH(AM,$d),s}finally{mn=e,qP=!1}}return null}var xm=[],Sm=0,WE=null,GE=0,Oo=[],Mo=0,Fh=null,kc=1,Nc="";function uf(t,e){xm[Sm++]=GE,xm[Sm++]=WE,WE=t,GE=e}function kH(t,e,n){Oo[Mo++]=kc,Oo[Mo++]=Nc,Oo[Mo++]=Fh,Fh=t;var r=kc;t=Nc;var s=32-xa(r)-1;r&=~(1<<s),n+=1;var i=32-xa(e)+s;if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,kc=1<<32-xa(e)+s|n<<s|r,Nc=i+t}else kc=1<<i|n<<s|r,Nc=t}function LM(t){t.return!==null&&(uf(t,1),kH(t,1,0))}function IM(t){for(;t===WE;)WE=xm[--Sm],xm[Sm]=null,GE=xm[--Sm],xm[Sm]=null;for(;t===Fh;)Fh=Oo[--Mo],Oo[Mo]=null,Nc=Oo[--Mo],Oo[Mo]=null,kc=Oo[--Mo],Oo[Mo]=null}var oo=null,io=null,Xn=!1,ba=null;function NH(t,e){var n=Fo(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return
|
|||
|
|
Error generating stack: `+i.message+`
|
|||
|
|
`+i.stack}return{value:t,source:e,stack:s,digest:null}}function ZP(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function dN(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var Iue=typeof WeakMap=="function"?WeakMap:Map;function sV(t,e,n){n=Dc(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){eC||(eC=!0,_N=r),dN(t,e)},n}function iV(t,e,n){n=Dc(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){dN(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){dN(t,e),typeof r!="function"&&(wd===null?wd=new Set([this]):wd.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),n}function E3(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new Iue;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=Xue.bind(null,t,e,n),e.then(t,t))}function C3(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function A3(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Dc(-1,1),e.tag=2,bd(n,e,1))),n.lanes|=1),t)}var $ue=Xc.ReactCurrentOwner,wi=!1;function qs(t,e,n,r){e.child=t===null?MH(e,null,n,r):cv(e,t.child,n,r)}function R3(t,e,n,r,s){n=n.render;var i=e.ref;return Im(e,s),r=qM(t,e,n,r,i,s),n=KM(),t!==null&&!wi?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Hc(t,e,s)):(Xn&&n&&LM(e),e.flags|=1,qs(t,e,r,s),e.child)}function P3(t,e,n,r,s){if(t===null){var i=n.type;return typeof i=="function"&&!sL(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,oV(t,e,i,r,s)):(t=GS(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ub,n(a,r)&&t.ref===e.ref)return Hc(t,e,s)}return e.flags|=1,t=xd(i,r),t.ref=e.ref,t.return=e,e.child=t}function oV(t,e,n,r,s){if(t!==null){var i=t.memoizedProps;if(Ub(i,r)&&t.ref===e.ref)if(wi=!1,e.pendingProps=r=i,(t.lanes&s)!==0)t.flags&131072&&(wi=!0);else return e.lanes=t.lanes,Hc(t,e,s)}return fN(t,e,n,r,s)}function aV(t,e,n){var r=e.pendingProps,s=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},In(Am,Ji),Ji|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,In(Am,Ji),Ji|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,In(Am,Ji),Ji|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,In(Am,Ji),Ji|=r;return qs(t,e,s,n),e.child}function lV(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function fN(t,e,n,r,s){var i=Ai(n)?$h:Is.current;return i=av(e,i),Im(e,s),n=qM(t,e,n,r,i,s),r=KM(),t!==null&&!wi?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Hc(t,e,s)):(Xn&&r&&LM(e),e.flags|=1,qs(t,e,n,s),e.child)}function T3(t,e,n,r,s){if(Ai(n)){var i=!0;VE(e)}else i=!1;if(Im(e,s),e.stateNode===null)HS(t,e),rV(e,n,r),uN(e,n,r,s),r=!0;else if(t===null){var a=e.stateNode,o=e.memoizedProps;a.props=o;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=zo(u):(u=Ai(n)?$h:Is.current,u=av(e,u));var f=n.getDerivedStateFromProps,l=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";l||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==r||c!==u)&&S3(e,a,r,u),Pu=!1;var d=e.memoizedState;a.state=d,YE(e,r,a,s),c=e.memoizedState,o!==r||d!==c||Ci.current||Pu?(typeof f=="function"&&(cN(e,n,f,r),c=e.memoizedState),(o=Pu||x3(e,n,o,r,d,c,u))?(l||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeo
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Dfe=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),p6=(...t)=>t.filter((e,n,r)=>!!e&&r.indexOf(e)===n).join(" ");/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var Ofe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Mfe=_.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...o},c)=>_.createElement("svg",{ref:c,...Ofe,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:p6("lucide",s),...o},[...a.map(([u,f])=>_.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const ns=(t,e)=>{const n=_.forwardRef(({className:r,...s},i)=>_.createElement(Mfe,{ref:i,iconNode:e,className:p6(`lucide-${Dfe(t)}`,r),...s}));return n.displayName=`${t}`,n};/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Lfe=ns("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const u_=ns("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const W1=ns("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const _L=ns("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const d_=ns("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Ife=ns("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const $fe=ns("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Ffe=ns("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const G1=ns("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const jfe=ns("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Bfe=ns("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const zfe=ns("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Ufe=ns("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Hfe=ns("Package2",[["path",{d:"M3 9h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9Z",key:"1ront0"}],["path",{d:"m3 9 2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8 1.1L21 9",key:"19h2x1"}],["path",{d:"M12 3v6",key:"1holv5"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Vfe=ns("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Wfe=ns("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Gfe=ns("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|||
|
|
* @license lucide-react v0.427.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const xL=ns("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function m6(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=m6(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function fp(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=m6(t))&&(r&&(r+=" "),r+=e);return r}const SL="-",qfe=t=>{const e=Yfe(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{const o=a.split(SL);return o[0]===""&&o.length!==1&&o.shift(),g6(o,e)||Kfe(a)},getConflictingClassGroupIds:(a,o)=>{const c=n[a]||[];return o&&r[a]?[...c,...r[a]]:c}}},g6=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?g6(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(SL);return(a=e.validators.find(({validator:o})=>o(i)))==null?void 0:a.classGroupId},Z3=/^\[(.+)\]$/,Kfe=t=>{if(Z3.test(t)){const e=Z3.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},Yfe=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Qfe(Object.entries(t.classGroups),n).forEach(([i,a])=>{zN(a,r,i,e)}),r},zN=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:J3(e,s);i.classGroupId=n;return}if(typeof s=="function"){if(Xfe(s)){zN(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,a])=>{zN(a,J3(e,i),n,r)})})},J3=(t,e)=>{let n=t;return e.split(SL).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Xfe=t=>t.isThemeGetter,Qfe=(t,e)=>e?t.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,o])=>[e+a,o])):i);return[n,s]}):t,Zfe=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(i,a)=>{n.set(i,a),e++,e>t&&(e=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return s(i,a),a},set(i,a){n.has(i)?n.set(i,a):s(i,a)}}},v6="!",Jfe=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],i=e.length,a=o=>{const c=[];let u=0,f=0,l;for(let y=0;y<o.length;y++){let g=o[y];if(u===0){if(g===s&&(r||o.slice(y,y+i)===e)){c.push(o.slice(f,y)),f=y+i;continue}if(g==="/"){l=y;continue}}g==="["?u++:g==="]"&&u--}const d=c.length===0?o:o.substring(f),m=d.startsWith(v6),p=m?d.substring(1):d,h=l&&l>f?l-f:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}};return n?o=>n({className:o,parseClassName:a}):a},ehe=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},the=t=>({cache:Zfe(t.cacheSize),parseClassName:Jfe(t),...qfe(t)}),nhe=/\s+/,rhe=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,i=[],a=t.trim().split(nhe);let o="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:f,hasImportantModifier:l,baseClassName:d,maybePostfixModifierPosition:m}=n(u);let p=!!m,h=r(p?d.substring(0,m):d);if(!h){if(!p){o=u+(o.length>0?" "+o:o);continue}if(h=r(d),!h){o=u+(o.length>0?" "+o:o);continue}p=!1}const y=ehe(f).join(":"),g=l?y+v6:y,v=g+h;if(i.includes(v))continue;i.push(v);const w=s(h,p);for(let x=0;x<w.length;++x){const A=w[x];i.push(g+A)}o=u+(o.length>0?" "+o:o)}return o};function she(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=y6(e))&&(r&&(r+=" "),r+=n);return r}const y6=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=y6(t[r]))&&(n&&(n+=" "),n+=e);return n};function ihe(t,...e){let n,r,s,i=a;function a(c){const u=e.reduce((f,l)=>l(f),t());return n=the(u),r=n.cache.get,s=n.cache.set,i=o,o(c)}function o(c){const u=r(c);if(u)return u;const f=rhe(c,n);return s(c,f),f}return function(){return i(she.apply(null,arguments))}}const Bn=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},b6=/^\[(?:([
|
|||
|
|
.`.concat(Khe,` {
|
|||
|
|
overflow: hidden `).concat(r,`;
|
|||
|
|
padding-right: `).concat(o,"px ").concat(r,`;
|
|||
|
|
}
|
|||
|
|
body[`).concat(Um,`] {
|
|||
|
|
overflow: hidden `).concat(r,`;
|
|||
|
|
overscroll-behavior: contain;
|
|||
|
|
`).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|||
|
|
padding-left: `.concat(s,`px;
|
|||
|
|
padding-top: `).concat(i,`px;
|
|||
|
|
padding-right: `).concat(a,`px;
|
|||
|
|
margin-left:0;
|
|||
|
|
margin-top:0;
|
|||
|
|
margin-right: `).concat(o,"px ").concat(r,`;
|
|||
|
|
`),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(Bm,` {
|
|||
|
|
right: `).concat(o,"px ").concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(zm,` {
|
|||
|
|
margin-right: `).concat(o,"px ").concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(Bm," .").concat(Bm,` {
|
|||
|
|
right: 0 `).concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(zm," .").concat(zm,` {
|
|||
|
|
margin-right: 0 `).concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
body[`).concat(Um,`] {
|
|||
|
|
`).concat(Yhe,": ").concat(o,`px;
|
|||
|
|
}
|
|||
|
|
`)},uB=function(){var t=parseInt(document.body.getAttribute(Um)||"0",10);return isFinite(t)?t:0},dpe=function(){_.useEffect(function(){return document.body.setAttribute(Um,(uB()+1).toString()),function(){var t=uB()-1;t<=0?document.body.removeAttribute(Um):document.body.setAttribute(Um,t.toString())}},[])},PL=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;dpe();var i=_.useMemo(function(){return lpe(s)},[s]);return _.createElement(cpe,{styles:upe(i,!e,s,n?"":"!important")})},HN=!1;if(typeof window<"u")try{var sS=Object.defineProperty({},"passive",{get:function(){return HN=!0,!0}});window.addEventListener("test",sS,sS),window.removeEventListener("test",sS,sS)}catch{HN=!1}var zp=HN?{passive:!1}:!1,fpe=function(t){return t.tagName==="TEXTAREA"},P6=function(t,e){var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!fpe(t)&&n[e]==="visible")},hpe=function(t){return P6(t,"overflowY")},ppe=function(t){return P6(t,"overflowX")},dB=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=T6(t,r);if(s){var i=k6(t,r),a=i[1],o=i[2];if(a>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mpe=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},gpe=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},T6=function(t,e){return t==="v"?hpe(e):ppe(e)},k6=function(t,e){return t==="v"?mpe(e):gpe(e)},vpe=function(t,e){return t==="h"&&e==="rtl"?-1:1},ype=function(t,e,n,r,s){var i=vpe(t,window.getComputedStyle(e).direction),a=i*r,o=n.target,c=e.contains(o),u=!1,f=a>0,l=0,d=0;do{var m=k6(t,o),p=m[0],h=m[1],y=m[2],g=h-y-i*p;(p||g)&&T6(t,o)&&(l+=g,d+=p),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!c&&o!==document.body||c&&(e.contains(o)||e===o));return(f&&Math.abs(l)<1||!f&&Math.abs(d)<1)&&(u=!0),u},iS=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},fB=function(t){return[t.deltaX,t.deltaY]},hB=function(t){return t&&"current"in t?t.current:t},bpe=function(t,e){return t[0]===e[0]&&t[1]===e[1]},wpe=function(t){return`
|
|||
|
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|||
|
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|||
|
|
`)},_pe=0,Up=[];function xpe(t){var e=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),s=_.useState(_pe++)[0],i=_.useState(X1)[0],a=_.useRef(t);_.useEffect(function(){a.current=t},[t]),_.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var h=EL([t.lockRef.current],(t.shards||[]).map(hB),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var o=_.useCallback(function(h,y){if("touches"in h&&h.touches.length===2)return!a.current.allowPinchZoom;var g=iS(h),v=n.current,w="deltaX"in h?h.deltaX:v[0]-g[0],x="deltaY"in h?h.deltaY:v[1]-g[1],A,T=h.target,R=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in h&&R==="h"&&T.type==="range")return!1;var E=dB(R,T);if(!E)return!0;if(E?A=R:(A=R==="v"?"h":"v",E=dB(R,T)),!E)return!1;if(!r.current&&"changedTouches"in h&&(w||x)&&(r.current=A),!A)return!0;var k=r.current||A;return ype(k,y,h,k==="h"?w:x)},[]),c=_.useCallback(function(h){var y=h;if(!(!Up.length||Up[Up.length-1]!==i)){var g="deltaY"in y?fB(y):iS(y),v=e.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&bpe(A.delta,g)})[0];if(v&&v.should){y.cancelable&&y.preventDefault();return}if(!v){var w=(a.current.shards||[]).map(hB).filter(Boolean).filter(function(A){return A.contains(y.target)}),x=w.length>0?o(y,w[0]):!a.current.noIsolation;x&&y.cancelable&&y.preventDefault()}}},[]),u=_.useCallback(function(h,y,g,v){var w={name:h,delta:y,target:g,should:v,shadowParent:Spe(g)};e.current.push(w),setTimeout(function(){e.current=e.current.filter(function(x){return x!==w})},1)},[]),f=_.useCallback(function(h){n.current=iS(h),r.current=void 0},[]),l=_.useCallback(function(h){u(h.type,fB(h),h.target,o(h,t.lockRef.current))},[]),d=_.useCallback(function(h){u(h.type,iS(h),h.target,o(h,t.lockRef.current))},[]);_.useEffect(function(){return Up.push(i),t.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:d}),document.addEventListener("wheel",c,zp),document.addEventListener("touchmove",c,zp),document.addEventListener("touchstart",f,zp),function(){Up=Up.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,zp),document.removeEventListener("touchmove",c,zp),document.removeEventListener("touchstart",f,zp)}},[]);var m=t.removeScrollBar,p=t.inert;return _.createElement(_.Fragment,null,p?_.createElement(i,{styles:wpe(s)}):null,m?_.createElement(PL,{gapMode:t.gapMode}):null)}function Spe(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const Epe=RL(R6,xpe);var h_=_.forwardRef(function(t,e){return _.createElement(Y1,mr({},t,{ref:e,sideCar:Epe}))});h_.classNames=Y1.classNames;var Cpe=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Hp=new WeakMap,oS=new WeakMap,aS={},uT=0,N6=function(t){return t&&(t.host||N6(t.parentNode))},Ape=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=N6(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},Rpe=function(t,e,n,r){var s=Ape(e,Array.isArray(t)?t:[t]);aS[n]||(aS[n]=new WeakMap);var i=aS[n],a=[],o=new Set,c=new Set(s),u=function(l){!l||o.has(l)||(o.add(l),u(l.parentNode))};s.forEach(u);var f=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(d){if(o.has(d))f(d);else try{var m=d.getAttribute(r),p=m!==null&&m!=="false",h=(Hp.get(d)||0)+1,y=(i.get(d)||0)+1;Hp.set(d,h),i.set(d,y),a.push(d),h===1&&p&&oS.set(d,!0),y===1&&d.setAttribute(n,"true"),p||d.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return f(e),o.clear(),uT++,function(){a.forEach(function(l){var d=Hp.get(l)-1,m=i.get(l)-1;Hp.set(l,d),i.set(l,m),d||(oS.has(l)||l.removeAttribute(r),oS.delete(l)),m||l.removeAttribute(n)
|
|||
|
|
|
|||
|
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|||
|
|
|
|||
|
|
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return _.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},Lpe="DialogDescriptionWarning",Ipe=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${K6(Lpe).contentName}}.`;return _.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},OL=M6,ML=I6,LL=F6,p_=j6,m_=B6,g_=U6,v_=V6,y_=G6,Y6="AlertDialog",[$pe,tUe]=Nn(Y6,[O6]),eu=O6(),X6=t=>{const{__scopeAlertDialog:e,...n}=t,r=eu(e);return P.jsx(OL,{...r,...n,modal:!0})};X6.displayName=Y6;var Fpe="AlertDialogTrigger",Q6=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=eu(n);return P.jsx(ML,{...s,...r,ref:e})});Q6.displayName=Fpe;var jpe="AlertDialogPortal",Z6=t=>{const{__scopeAlertDialog:e,...n}=t,r=eu(e);return P.jsx(LL,{...r,...n})};Z6.displayName=jpe;var Bpe="AlertDialogOverlay",J6=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=eu(n);return P.jsx(p_,{...s,...r,ref:e})});J6.displayName=Bpe;var Hm="AlertDialogContent",[zpe,Upe]=$pe(Hm),eW=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,children:r,...s}=t,i=eu(n),a=_.useRef(null),o=tt(e,a),c=_.useRef(null);return P.jsx(Ope,{contentName:Hm,titleName:tW,docsSlug:"alert-dialog",children:P.jsx(zpe,{scope:n,cancelRef:c,children:P.jsxs(m_,{role:"alertdialog",...i,...s,ref:o,onOpenAutoFocus:me(s.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=c.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[P.jsx(hL,{children:r}),P.jsx(Vpe,{contentRef:a})]})})})});eW.displayName=Hm;var tW="AlertDialogTitle",nW=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=eu(n);return P.jsx(g_,{...s,...r,ref:e})});nW.displayName=tW;var rW="AlertDialogDescription",sW=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=eu(n);return P.jsx(v_,{...s,...r,ref:e})});sW.displayName=rW;var Hpe="AlertDialogAction",iW=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=eu(n);return P.jsx(y_,{...s,...r,ref:e})});iW.displayName=Hpe;var oW="AlertDialogCancel",aW=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,{cancelRef:s}=Upe(oW,n),i=eu(n),a=tt(e,s);return P.jsx(y_,{...i,...r,ref:a})});aW.displayName=oW;var Vpe=({contentRef:t})=>{const e=`\`${Hm}\` requires a description for the component to be accessible for screen reader users.
|
|||
|
|
|
|||
|
|
You can add a description to the \`${Hm}\` by passing a \`${rW}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|||
|
|
|
|||
|
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Hm}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|||
|
|
|
|||
|
|
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return _.useEffect(()=>{var r;document.getElementById((r=t.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(e)},[e,t]),null},Wpe=X6,Gpe=Q6,qpe=Z6,lW=J6,cW=eW,uW=iW,dW=aW,fW=nW,hW=sW;const e0=ri("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ao=_.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...s},i)=>{const a=r?Aa:"button";return P.jsx(a,{className:le(e0({variant:e,size:n,className:t})),ref:i,...s})});ao.displayName="Button";const pW=Wpe,nUe=Gpe,Kpe=qpe,mW=_.forwardRef(({className:t,...e},n)=>P.jsx(lW,{className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:n}));mW.displayName=lW.displayName;const IL=_.forwardRef(({className:t,...e},n)=>P.jsxs(Kpe,{children:[P.jsx(mW,{}),P.jsx(cW,{ref:n,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...e})]}));IL.displayName=cW.displayName;const $L=({className:t,...e})=>P.jsx("div",{className:le("flex flex-col space-y-2 text-center sm:text-left",t),...e});$L.displayName="AlertDialogHeader";const FL=({className:t,...e})=>P.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});FL.displayName="AlertDialogFooter";const jL=_.forwardRef(({className:t,...e},n)=>P.jsx(fW,{ref:n,className:le("text-lg font-semibold",t),...e}));jL.displayName=fW.displayName;const BL=_.forwardRef(({className:t,...e},n)=>P.jsx(hW,{ref:n,className:le("text-sm text-muted-foreground",t),...e}));BL.displayName=hW.displayName;const zL=_.forwardRef(({className:t,...e},n)=>P.jsx(uW,{ref:n,className:le(e0(),t),...e}));zL.displayName=uW.displayName;const UL=_.forwardRef(({className:t,...e},n)=>P.jsx(dW,{ref:n,className:le(e0({variant:"outline"}),"mt-2 sm:mt-0",t),...e}));UL.displayName=dW.displayName;const Ype=({textAreaRef:t,triggerAutoSize:e,maxHeight:n=Number.MAX_SAFE_INTEGER,minHeight:r=0})=>{const[s,i]=_.useState(!0);_.useEffect(()=>{if(t){s&&(t.style.minHeight=`${r+2}px`,n>r&&(t.style.maxHeight=`${n}px`),i(!1)),t.style.height=`${r+2}px`;const o=t.scrollHeight;o>n?t.style.height=`${n}px`:t.style.height=`${o+2}px`}},[t,e,s,n,r])},gW=_.forwardRef(({maxHeight:t=Number.MAX_SAFE_INTEGER,minHeight:e=52,className:n,onChange:r,value:s,...i},a)=>{const o=_.useRef(null),[c,u]=_.useState("");return Ype({textAreaRef:o.current,triggerAutoSize:c,maxHeight:t,minHeight:e}),_.useImperativeHandle(a,()=>({textArea:o.current,focus:()=>{var f;return(f=o.current)==null?void 0:f.focus()},maxHeight:t,minHeight:e})),_.useEffect(()=>{(s||i!=null&&i.defaultValue)&&u(s)},[s||(i==null?void 0:i.defaultValue)]),P.jsx("textarea",{...i,value:s,ref:o,className:le("flex w-full rounded-md border
|
|||
|
|
* @license React
|
|||
|
|
* react-is.production.min.js
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var iI=Symbol.for("react.element"),oI=Symbol.for("react.portal"),nA=Symbol.for("react.fragment"),rA=Symbol.for("react.strict_mode"),sA=Symbol.for("react.profiler"),iA=Symbol.for("react.provider"),oA=Symbol.for("react.context"),ewe=Symbol.for("react.server_context"),aA=Symbol.for("react.forward_ref"),lA=Symbol.for("react.suspense"),cA=Symbol.for("react.suspense_list"),uA=Symbol.for("react.memo"),dA=Symbol.for("react.lazy"),twe=Symbol.for("react.offscreen"),i8;i8=Symbol.for("react.module.reference");function Vo(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case iI:switch(t=t.type,t){case nA:case sA:case rA:case lA:case cA:return t;default:switch(t=t&&t.$$typeof,t){case ewe:case oA:case aA:case dA:case uA:case iA:return t;default:return e}}case oI:return e}}}Cn.ContextConsumer=oA;Cn.ContextProvider=iA;Cn.Element=iI;Cn.ForwardRef=aA;Cn.Fragment=nA;Cn.Lazy=dA;Cn.Memo=uA;Cn.Portal=oI;Cn.Profiler=sA;Cn.StrictMode=rA;Cn.Suspense=lA;Cn.SuspenseList=cA;Cn.isAsyncMode=function(){return!1};Cn.isConcurrentMode=function(){return!1};Cn.isContextConsumer=function(t){return Vo(t)===oA};Cn.isContextProvider=function(t){return Vo(t)===iA};Cn.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===iI};Cn.isForwardRef=function(t){return Vo(t)===aA};Cn.isFragment=function(t){return Vo(t)===nA};Cn.isLazy=function(t){return Vo(t)===dA};Cn.isMemo=function(t){return Vo(t)===uA};Cn.isPortal=function(t){return Vo(t)===oI};Cn.isProfiler=function(t){return Vo(t)===sA};Cn.isStrictMode=function(t){return Vo(t)===rA};Cn.isSuspense=function(t){return Vo(t)===lA};Cn.isSuspenseList=function(t){return Vo(t)===cA};Cn.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===nA||t===sA||t===rA||t===lA||t===cA||t===twe||typeof t=="object"&&t!==null&&(t.$$typeof===dA||t.$$typeof===uA||t.$$typeof===iA||t.$$typeof===oA||t.$$typeof===aA||t.$$typeof===i8||t.getModuleId!==void 0)};Cn.typeOf=Vo;var lS=function(e){return J0e(e)&&e.indexOf("%")===e.length-1},nwe=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},bT=function(e,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i]},rwe=Z1,swe=function(){return rwe.Date.now()},iwe=swe,owe=/\s/;function awe(t){for(var e=t.length;e--&&owe.test(t.charAt(e)););return e}var lwe=awe,cwe=lwe,uwe=/^\s+/;function dwe(t){return t&&t.slice(0,cwe(t)+1).replace(uwe,"")}var fwe=dwe,hwe=fwe,DB=kv,pwe=t8,OB=NaN,mwe=/^[-+]0x[0-9a-f]+$/i,gwe=/^0b[01]+$/i,vwe=/^0o[0-7]+$/i,ywe=parseInt;function bwe(t){if(typeof t=="number")return t;if(pwe(t))return OB;if(DB(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=DB(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=hwe(t);var n=gwe.test(t);return n||vwe.test(t)?ywe(t.slice(2),n?2:8):mwe.test(t)?OB:+t}var wwe=bwe,_we=kv,wT=iwe,MB=wwe,xwe="Expected a function",Swe=Math.max,Ewe=Math.min;function Cwe(t,e,n){var r,s,i,a,o,c,u=0,f=!1,l=!1,d=!0;if(typeof t!="function")throw new TypeError(xwe);e=MB(e)||0,_we(n)&&(f=!!n.leading,l="maxWait"in n,i=l?Swe(MB(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d);function m(T){var R=r,E=s;return r=s=void 0,u=T,a=t.apply(E,R),a}function p(T){return u=T,o=setTimeout(g,e),f?m(T):a}function h(T){var R=T-c,E=T-u,k=e-R;return l?Ewe(k,i-E):k}function y(T){var R=T-c,E=T-u;return c===void 0||R>=e||R<0||l&&E>=i}function g(){var T=wT();if(y(T))return v(T);o=setTimeout(g,h(T))}function v(T){return o=void 0,d&&r?m(T):(r=s=void 0,a)}function w(){o!==void 0&&clearTimeout(o),u=0,r=c=s=o=void 0}function x(){return o===void 0?a:v(wT())}function A(){var T=wT(),R=y(T);if(r=arguments,s=this,c=T,R){if(o===void 0)return p(c);if(l)return clearTimeout(o),o=setTimeout(g,e),m(c)}return o===void 0&&(o=setTimeout(g,e)),a}return A.cancel=w,A.flush=x,A}var Awe=Cwe,Rwe=Awe,Pwe=kv,Twe="Expected a function";function kwe(t,e,n){var r=!0,s=!0;if(typeof t!="function")throw new TypeError(Twe);return Pwe(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),Rwe(t,e,{leading:r,maxWait:e,trailing:s})}var Nwe=kwe;const Dwe=Yc(Nwe);function n0(t){"@babel/helpers -
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fwe(t,e){if(t){if(typeof t=="string")return IB(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IB(t,e)}}function IB(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jwe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);c=!0);}catch(f){u=!0,s=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function Bwe(t){if(Array.isArray(t))return t}var zwe=_.forwardRef(function(t,e){var n=t.aspect,r=t.initialDimension,s=r===void 0?{width:-1,height:-1}:r,i=t.width,a=i===void 0?"100%":i,o=t.height,c=o===void 0?"100%":o,u=t.minWidth,f=u===void 0?0:u,l=t.minHeight,d=t.maxHeight,m=t.children,p=t.debounce,h=p===void 0?0:p,y=t.id,g=t.className,v=t.onResize,w=t.style,x=w===void 0?{}:w,A=_.useRef(null),T=_.useRef();T.current=v,_.useImperativeHandle(e,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var R=_.useState({containerWidth:s.width,containerHeight:s.height}),E=Iwe(R,2),k=E[0],N=E[1],O=_.useCallback(function(I,F){N(function(U){var Y=Math.round(I),V=Math.round(F);return U.containerWidth===Y&&U.containerHeight===V?U:{containerWidth:Y,containerHeight:V}})},[]);_.useEffect(function(){var I=function(ee){var re,X=ee[0].contentRect,q=X.width,K=X.height;O(q,K),(re=T.current)===null||re===void 0||re.call(T,q,K)};h>0&&(I=Dwe(I,h,{trailing:!0,leading:!1}));var F=new ResizeObserver(I),U=A.current.getBoundingClientRect(),Y=U.width,V=U.height;return O(Y,V),F.observe(A.current),function(){F.disconnect()}},[O,h]);var L=_.useMemo(function(){var I=k.containerWidth,F=k.containerHeight;if(I<0||F<0)return null;bT(lS(a)||lS(c),`The width(%s) and height(%s) are both fixed numbers,
|
|||
|
|
maybe you don't need to use a ResponsiveContainer.`,a,c),bT(!n||n>0,"The aspect(%s) must be greater than zero.",n);var U=lS(a)?I:a,Y=lS(c)?F:c;n&&n>0&&(U?Y=U/n:Y&&(U=Y*n),d&&Y>d&&(Y=d)),bT(U>0||Y>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|||
|
|
please check the style of container, or the props width(%s) and height(%s),
|
|||
|
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|||
|
|
height and width.`,U,Y,a,c,f,l,n);var V=!Array.isArray(m)&&nwe(m.type).endsWith("Chart");return se.Children.map(m,function(H){return se.isValidElement(H)?_.cloneElement(H,cS({width:U,height:Y},V?{style:cS({height:"100%",width:"100%",maxHeight:Y,maxWidth:U},H.props.style)}:{})):H})},[n,m,c,d,l,f,k,a]);return se.createElement("div",{id:y?"".concat(y):void 0,className:fp("recharts-responsive-container",g),style:cS(cS({},x),{},{width:a,height:c,minWidth:f,minHeight:l,maxHeight:d}),ref:A},L)}),Uwe="Invariant failed";function Tn(t,e){if(!t)throw new Error(Uwe)}const Hwe={light:"",dark:".dark"},o8=_.createContext(null);function a8(){const t=_.useContext(o8);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}const Vwe=_.forwardRef(({id:t,className:e,children:n,config:r,...s},i)=>{const a=_.useId(),o=`chart-${t||a.replace(/:/g,"")}`;return P.jsx(o8.Provider,{value:{config:r},children:P.jsxs("div",{"data-chart":o,ref:i,className:le("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",e),...s,children:[P.jsx(Wwe,{id:o,config:r}),P.jsx(zwe,{children:n})]})})});Vwe.displayName="Chart";const Wwe=({id:t,config:e})=>{const n=Object.entries(e).filter(([r,s])=>s.theme||s.color);return n.length?P.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Hwe).map(([r,s])=>`
|
|||
|
|
${s} [data-chart=${t}] {
|
|||
|
|
${n.map(([i,a])=>{var c;const o=((c=a.theme)==null?void 0:c[r])||a.color;return o?` --color-${i}: ${o};`:null}).join(`
|
|||
|
|
`)}
|
|||
|
|
}
|
|||
|
|
`).join(`
|
|||
|
|
`)}}):null},Gwe=_.forwardRef(({active:t,payload:e,className:n,indicator:r="dot",hideLabel:s=!1,hideIndicator:i=!1,label:a,labelFormatter:o,labelClassName:c,formatter:u,color:f,nameKey:l,labelKey:d},m)=>{const{config:p}=a8(),h=_.useMemo(()=>{var A;if(s||!(e!=null&&e.length))return null;const[g]=e,v=`${d||g.dataKey||g.name||"value"}`,w=GN(p,g,v),x=!d&&typeof a=="string"?((A=p[a])==null?void 0:A.label)||a:w==null?void 0:w.label;return o?P.jsx("div",{className:le("font-medium",c),children:o(x,e)}):x?P.jsx("div",{className:le("font-medium",c),children:x}):null},[a,o,e,s,c,p,d]);if(!t||!(e!=null&&e.length))return null;const y=e.length===1&&r!=="dot";return P.jsxs("div",{ref:m,className:le("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[y?null:h,P.jsx("div",{className:"grid gap-1.5",children:e.map((g,v)=>{const w=`${l||g.name||g.dataKey||"value"}`,x=GN(p,g,w),A=f||g.payload.fill||g.color;return P.jsx("div",{className:le("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:u&&(g==null?void 0:g.value)!==void 0&&g.name?u(g.value,g.name,g,v,g.payload):P.jsxs(P.Fragment,{children:[x!=null&&x.icon?P.jsx(x.icon,{}):!i&&P.jsx("div",{className:le("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":y&&r==="dashed"}),style:{"--color-bg":A,"--color-border":A}}),P.jsxs("div",{className:le("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[P.jsxs("div",{className:"grid gap-1.5",children:[y?h:null,P.jsx("span",{className:"text-muted-foreground",children:(x==null?void 0:x.label)||g.name})]}),g.value&&P.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:g.value.toLocaleString()})]})]})},g.dataKey)})})]})});Gwe.displayName="ChartTooltip";const qwe=_.forwardRef(({className:t,hideIcon:e=!1,payload:n,verticalAlign:r="bottom",nameKey:s},i)=>{const{config:a}=a8();return n!=null&&n.length?P.jsx("div",{ref:i,className:le("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",t),children:n.map(o=>{const c=`${s||o.dataKey||"value"}`,u=GN(a,o,c);return P.jsxs("div",{className:le("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[u!=null&&u.icon&&!e?P.jsx(u.icon,{}):P.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:o.color}}),u==null?void 0:u.label]},o.value)})}):null});qwe.displayName="ChartLegend";function GN(t,e,n){if(typeof e!="object"||e===null)return;const r="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let s=n;return n in e&&typeof e[n]=="string"?s=e[n]:r&&n in r&&typeof r[n]=="string"&&(s=r[n]),s in t?t[s]:t[n]}function Mv(t){const e=_.useRef({value:t,previous:t});return _.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function S_(t){const[e,n]=_.useState(void 0);return $n(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let a,o;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,o=u.blockSize}else a=t.offsetWidth,o=t.offsetHeight;n({width:a,height:o})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var aI="Checkbox",[Kwe,aUe]=Nn(aI),[Ywe,Xwe]=Kwe(aI),l8=_.forwardRef((t,e)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:i,required:a,disabled:o,value:c="on",onCheckedChange:u,...f}=t,[l,d]=_.useState(null),m=tt(e,w=>d(w)),p=_.useRef(!1),h=l?!!l.closest("form"):!0,[y=!1,g]=lr({prop:s,defaultProp:i,onChange:u}),v=_.useRef(y);return _.useEffect(()=>{const w=l==null?void 0:l.form;if(w){const x=()=>g(v.current);return w.addEventListener("reset",x),()=>w.removeEventListener("reset",x)}},[l,g]),P.jsxs(Ywe,{scope:n,state:y,disabled:o,children:[P.jsx(Ne.bu
|
|||
|
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|||
|
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|||
|
|
`)},Q_e=0,Gp=[];function Z_e(t){var e=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),s=_.useState(Q_e++)[0],i=_.useState(X1)[0],a=_.useRef(t);_.useEffect(function(){a.current=t},[t]),_.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var h=EL([t.lockRef.current],(t.shards||[]).map(YB),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var o=_.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var g=fS(h),v=n.current,w="deltaX"in h?h.deltaX:v[0]-g[0],x="deltaY"in h?h.deltaY:v[1]-g[1],A,T=h.target,R=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in h&&R==="h"&&T.type==="range")return!1;var E=qB(R,T);if(!E)return!0;if(E?A=R:(A=R==="v"?"h":"v",E=qB(R,T)),!E)return!1;if(!r.current&&"changedTouches"in h&&(w||x)&&(r.current=A),!A)return!0;var k=r.current||A;return K_e(k,y,h,k==="h"?w:x)},[]),c=_.useCallback(function(h){var y=h;if(!(!Gp.length||Gp[Gp.length-1]!==i)){var g="deltaY"in y?KB(y):fS(y),v=e.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&Y_e(A.delta,g)})[0];if(v&&v.should){y.cancelable&&y.preventDefault();return}if(!v){var w=(a.current.shards||[]).map(YB).filter(Boolean).filter(function(A){return A.contains(y.target)}),x=w.length>0?o(y,w[0]):!a.current.noIsolation;x&&y.cancelable&&y.preventDefault()}}},[]),u=_.useCallback(function(h,y,g,v){var w={name:h,delta:y,target:g,should:v,shadowParent:J_e(g)};e.current.push(w),setTimeout(function(){e.current=e.current.filter(function(x){return x!==w})},1)},[]),f=_.useCallback(function(h){n.current=fS(h),r.current=void 0},[]),l=_.useCallback(function(h){u(h.type,KB(h),h.target,o(h,t.lockRef.current))},[]),d=_.useCallback(function(h){u(h.type,fS(h),h.target,o(h,t.lockRef.current))},[]);_.useEffect(function(){return Gp.push(i),t.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Wp),document.addEventListener("touchmove",c,Wp),document.addEventListener("touchstart",f,Wp),function(){Gp=Gp.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,Wp),document.removeEventListener("touchmove",c,Wp),document.removeEventListener("touchstart",f,Wp)}},[]);var m=t.removeScrollBar,p=t.inert;return _.createElement(_.Fragment,null,p?_.createElement(i,{styles:X_e(s)}):null,m?_.createElement(PL,{gapMode:t.gapMode}):null)}function J_e(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const exe=RL(w8,Z_e);var E8=_.forwardRef(function(t,e){return _.createElement(hA,mr({},t,{ref:e,sideCar:exe}))});E8.classNames=hA.classNames;var cI="Dialog",[C8,lUe]=u_e(cI),[txe,Ma]=C8(cI),A8=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:a=!0}=t,o=_.useRef(null),c=_.useRef(null),[u=!1,f]=p_e({prop:r,defaultProp:s,onChange:i});return P.jsx(txe,{scope:e,triggerRef:o,contentRef:c,contentId:Oc(),titleId:Oc(),descriptionId:Oc(),open:u,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(l=>!l),[f]),modal:a,children:n})};A8.displayName=cI;var R8="DialogTrigger",nxe=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=Ma(R8,n),i=pp(e,s.triggerRef);return P.jsx(gs.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":fI(s.open),...r,ref:i,onClick:Sd(t.onClick,s.onOpenToggle)})});nxe.displayName=R8;var uI="DialogPortal",[rxe,P8]=C8(uI,{forceMount:void 0}),T8=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:s}=t,i=Ma(uI,e);return P.jsx(rxe,{scope:e,forceMount:n,children:_.Children.map(r,a=>P.jsx(fA,{present:n||i.open,children:P.jsx(b8,{asChild:!0,container:s,children:a})}))})};T8.displayName=uI;var dC="DialogOverlay",k8=_.forwardRef((t,e)=>{const n=P8(dC,t.__scopeDialog),{forceMount:r=n.forceMount
|
|||
|
|
|
|||
|
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|||
|
|
|
|||
|
|
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return _.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},dxe="DialogDescriptionWarning",fxe=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${I8(dxe).contentName}}.`;return _.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},hxe=A8,pxe=T8,mxe=k8,gxe=N8,Ry='[cmdk-group=""]',RT='[cmdk-group-items=""]',vxe='[cmdk-group-heading=""]',$8='[cmdk-item=""]',XB=`${$8}:not([aria-disabled="true"])`,QN="cmdk-item-select",im="data-value",yxe=(t,e,n)=>l_e(t,e,n),F8=_.createContext(void 0),E_=()=>_.useContext(F8),j8=_.createContext(void 0),hI=()=>_.useContext(j8),B8=_.createContext(void 0),z8=_.forwardRef((t,e)=>{let n=om(()=>{var q,K;return{search:"",value:(K=(q=t.value)!=null?q:t.defaultValue)!=null?K:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=om(()=>new Set),s=om(()=>new Map),i=om(()=>new Map),a=om(()=>new Set),o=U8(t),{label:c,children:u,value:f,onValueChange:l,filter:d,shouldFilter:m,loop:p,disablePointerSelection:h=!1,vimBindings:y=!0,...g}=t,v=Oc(),w=Oc(),x=Oc(),A=_.useRef(null),T=Txe();Yh(()=>{if(f!==void 0){let q=f.trim();n.current.value=q,R.emit()}},[f]),Yh(()=>{T(6,I)},[]);let R=_.useMemo(()=>({subscribe:q=>(a.current.add(q),()=>a.current.delete(q)),snapshot:()=>n.current,setState:(q,K,Z)=>{var ue,de,ie,be;if(!Object.is(n.current[q],K)){if(n.current[q]=K,q==="search")L(),N(),T(1,O);else if(q==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ae=document.getElementById(x);Ae?Ae.focus():(ue=document.getElementById(v))==null||ue.focus()}if(T(7,()=>{var Ae;n.current.selectedItemId=(Ae=F())==null?void 0:Ae.id,R.emit()}),Z||T(5,I),((de=o.current)==null?void 0:de.value)!==void 0){let Ae=K??"";(be=(ie=o.current).onValueChange)==null||be.call(ie,Ae);return}}R.emit()}},emit:()=>{a.current.forEach(q=>q())}}),[]),E=_.useMemo(()=>({value:(q,K,Z)=>{var ue;K!==((ue=i.current.get(q))==null?void 0:ue.value)&&(i.current.set(q,{value:K,keywords:Z}),n.current.filtered.items.set(q,k(K,Z)),T(2,()=>{N(),R.emit()}))},item:(q,K)=>(r.current.add(q),K&&(s.current.has(K)?s.current.get(K).add(q):s.current.set(K,new Set([q]))),T(3,()=>{L(),N(),n.current.value||O(),R.emit()}),()=>{i.current.delete(q),r.current.delete(q),n.current.filtered.items.delete(q);let Z=F();T(4,()=>{L(),(Z==null?void 0:Z.getAttribute("id"))===q&&O(),R.emit()})}),group:q=>(s.current.has(q)||s.current.set(q,new Set),()=>{i.current.delete(q),s.current.delete(q)}),filter:()=>o.current.shouldFilter,label:c||t["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:v,inputId:x,labelId:w,listInnerRef:A}),[]);function k(q,K){var Z,ue;let de=(ue=(Z=o.current)==null?void 0:Z.filter)!=null?ue:yxe;return q?de(q,n.current.search,K):0}function N(){if(!n.current.search||o.current.shouldFilter===!1)return;let q=n.current.filtered.items,K=[];n.current.filtered.groups.forEach(ue=>{let de=s.current.get(ue),ie=0;de.forEach(be=>{let Ae=q.get(be);ie=Math.max(Ae,ie)}),K.push([ue,ie])});let Z=A.current;U().sort((ue,de)=>{var ie,be;let Ae=ue.getAttribute("id"),_e=de.getAttribute("id");return((ie=q.get(_e))!=null?ie:0)-((be=q.get(Ae))!=null?be:0)}).forEach(ue=>{let de=ue.closest(RT);de?de.appendChild(ue.parentElement===de?ue:ue.closest(`${RT} > *`)):Z.appendChild(ue.parentElement===Z?ue:ue.closest(`${RT} > *`))}),K.sort((ue,de)=>de[1]-ue[1]).forEach(ue=>{var de;let ie=(de=A.current)==null?void 0:de.querySelector(`${Ry}[${im}="${encodeURIComponent(ue[0])}"]`);ie==null||ie.parentElement.appendChild(ie)})}function O(){let q=U().find(Z=>Z.getAttribute("aria-disabled")!=="true"),K=q==null?void 0:q.getAttribute(im);R.setState("value",K||void 0)}function L(){var q,K,Z,ue;if(!n.current.search||o.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.grou
|
|||
|
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|||
|
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|||
|
|
`)},BCe=0,Kp=[];function zCe(t){var e=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),s=_.useState(BCe++)[0],i=_.useState(X1)[0],a=_.useRef(t);_.useEffect(function(){a.current=t},[t]),_.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var h=EL([t.lockRef.current],(t.shards||[]).map(vz),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var o=_.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var g=vS(h),v=n.current,w="deltaX"in h?h.deltaX:v[0]-g[0],x="deltaY"in h?h.deltaY:v[1]-g[1],A,T=h.target,R=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in h&&R==="h"&&T.type==="range")return!1;var E=mz(R,T);if(!E)return!0;if(E?A=R:(A=R==="v"?"h":"v",E=mz(R,T)),!E)return!1;if(!r.current&&"changedTouches"in h&&(w||x)&&(r.current=A),!A)return!0;var k=r.current||A;return $Ce(k,y,h,k==="h"?w:x)},[]),c=_.useCallback(function(h){var y=h;if(!(!Kp.length||Kp[Kp.length-1]!==i)){var g="deltaY"in y?gz(y):vS(y),v=e.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&FCe(A.delta,g)})[0];if(v&&v.should){y.cancelable&&y.preventDefault();return}if(!v){var w=(a.current.shards||[]).map(vz).filter(Boolean).filter(function(A){return A.contains(y.target)}),x=w.length>0?o(y,w[0]):!a.current.noIsolation;x&&y.cancelable&&y.preventDefault()}}},[]),u=_.useCallback(function(h,y,g,v){var w={name:h,delta:y,target:g,should:v,shadowParent:UCe(g)};e.current.push(w),setTimeout(function(){e.current=e.current.filter(function(x){return x!==w})},1)},[]),f=_.useCallback(function(h){n.current=vS(h),r.current=void 0},[]),l=_.useCallback(function(h){u(h.type,gz(h),h.target,o(h,t.lockRef.current))},[]),d=_.useCallback(function(h){u(h.type,vS(h),h.target,o(h,t.lockRef.current))},[]);_.useEffect(function(){return Kp.push(i),t.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:d}),document.addEventListener("wheel",c,qp),document.addEventListener("touchmove",c,qp),document.addEventListener("touchstart",f,qp),function(){Kp=Kp.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,qp),document.removeEventListener("touchmove",c,qp),document.removeEventListener("touchstart",f,qp)}},[]);var m=t.removeScrollBar,p=t.inert;return _.createElement(_.Fragment,null,p?_.createElement(i,{styles:jCe(s)}):null,m?_.createElement(PL,{gapMode:t.gapMode}):null)}function UCe(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const HCe=RL(yq,zCe);var xq=_.forwardRef(function(t,e){return _.createElement(xA,mr({},t,{ref:e,sideCar:HCe}))});xq.classNames=xA.classNames;var VI="Dialog",[Sq,pUe]=sCe(VI),[VCe,La]=Sq(VI),Eq=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:a=!0}=t,o=_.useRef(null),c=_.useRef(null),[u=!1,f]=lr({prop:r,defaultProp:s,onChange:i});return P.jsx(VCe,{scope:e,triggerRef:o,contentRef:c,contentId:qr(),titleId:qr(),descriptionId:qr(),open:u,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(l=>!l),[f]),modal:a,children:n})};Eq.displayName=VI;var Cq="DialogTrigger",WCe=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=La(Cq,n),i=vp(e,s.triggerRef);return P.jsx(nu.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":qI(s.open),...r,ref:i,onClick:Ed(t.onClick,s.onOpenToggle)})});WCe.displayName=Cq;var WI="DialogPortal",[GCe,Aq]=Sq(WI,{forceMount:void 0}),Rq=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:s}=t,i=La(WI,e);return P.jsx(GCe,{scope:e,forceMount:n,children:_.Children.map(r,a=>P.jsx(_A,{present:n||i.open,children:P.jsx(vq,{asChild:!0,container:s,children:a})}))})};Rq.displayName=WI;var yC="DialogOverlay",Pq=_.forwardRef((t,e)=>{const n=Aq(yC,t.__scopeDialog),{forceMount:r=n.forceMount,
|
|||
|
|
|
|||
|
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|||
|
|
|
|||
|
|
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return _.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},QCe="DialogDescriptionWarning",ZCe=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$q(QCe).contentName}}.`;return _.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},JCe=Eq,e1e=Rq,t1e=Pq,n1e=Tq,r1e=Nq,s1e=Oq,i1e=Lq;function o1e(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const Fq=se.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),O_=()=>{const t=se.useContext(Fq);if(!t)throw new Error("useDrawerContext must be used within a Drawer.Root");return t};o1e(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opaci
|
|||
|
|
[data-state=closed]
|
|||
|
|
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}`);const a1e=24,l1e=typeof window<"u"?_.useLayoutEffect:_.useEffect;function yz(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}function c1e(){return KI(/^Mac/)}function u1e(){return KI(/^iPhone/)}function bz(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function d1e(){return KI(/^iPad/)||c1e()&&navigator.maxTouchPoints>1}function jq(){return u1e()||d1e()}function KI(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.platform):void 0}const MT=typeof document<"u"&&window.visualViewport;function wz(t){let e=window.getComputedStyle(t);return/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY)}function Bq(t){for(wz(t)&&(t=t.parentElement);t&&!wz(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}const f1e=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let yS=0,LT;function h1e(t={}){let{isDisabled:e}=t;l1e(()=>{if(!e)return yS++,yS===1&&jq()&&(LT=p1e()),()=>{yS--,yS===0&&(LT==null||LT())}},[e])}function p1e(){let t,e=0,n=l=>{t=Bq(l.target),!(t===document.documentElement&&t===document.body)&&(e=l.changedTouches[0].pageY)},r=l=>{if(!t||t===document.documentElement||t===document.body){l.preventDefault();return}let d=l.changedTouches[0].pageY,m=t.scrollTop,p=t.scrollHeight-t.clientHeight;p!==0&&((m<=0&&d>e||m>=p&&d<e)&&l.preventDefault(),e=d)},s=l=>{let d=l.target;iD(d)&&d!==document.activeElement&&(l.preventDefault(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""}))},i=l=>{let d=l.target;iD(d)&&(d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",MT&&(MT.height<window.innerHeight?requestAnimationFrame(()=>{_z(d)}):MT.addEventListener("resize",()=>_z(d),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},o=window.pageXOffset,c=window.pageYOffset,u=yz(m1e(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let f=yz(Py(document,"touchstart",n,{passive:!1,capture:!0}),Py(document,"touchmove",r,{passive:!1,capture:!0}),Py(document,"touchend",s,{passive:!1,capture:!0}),Py(document,"focus",i,!0),Py(window,"scroll",a));return()=>{u(),f(),window.scrollTo(o,c)}}function m1e(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Py(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function _z(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let n=Bq(t);if(n!==document.documentElement&&n!==document.body&&n!==t){let r=n.getBoundingClientRect().top,s=t.getBoundingClientRect().top,i=t.getBoundingClientRect().bottom;const a=n.getBoundingClientRect().bottom+a1e;i>a&&(n.scrollTo
|
|||
|
|
- a positive number
|
|||
|
|
- less than the value passed to \`max\` (or ${d$} if no \`max\` prop is set)
|
|||
|
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|||
|
|
|
|||
|
|
Defaulting to \`null\`.`}var p9=u9,RPe=f9;const PPe=_.forwardRef(({className:t,value:e,...n},r)=>P.jsx(p9,{ref:r,className:le("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...n,children:P.jsx(RPe,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})}));PPe.displayName=p9.displayName;var f$="Radio",[TPe,m9]=Nn(f$),[kPe,NPe]=TPe(f$),g9=_.forwardRef((t,e)=>{const{__scopeRadio:n,name:r,checked:s=!1,required:i,disabled:a,value:o="on",onCheck:c,...u}=t,[f,l]=_.useState(null),d=tt(e,h=>l(h)),m=_.useRef(!1),p=f?!!f.closest("form"):!0;return P.jsxs(kPe,{scope:n,checked:s,disabled:a,children:[P.jsx(Ne.button,{type:"button",role:"radio","aria-checked":s,"data-state":b9(s),"data-disabled":a?"":void 0,disabled:a,value:o,...u,ref:d,onClick:me(t.onClick,h=>{s||c==null||c(),p&&(m.current=h.isPropagationStopped(),m.current||h.stopPropagation())})}),p&&P.jsx(DPe,{control:f,bubbles:!m.current,name:r,value:o,checked:s,required:i,disabled:a,style:{transform:"translateX(-100%)"}})]})});g9.displayName=f$;var v9="RadioIndicator",y9=_.forwardRef((t,e)=>{const{__scopeRadio:n,forceMount:r,...s}=t,i=NPe(v9,n);return P.jsx(Wn,{present:r||i.checked,children:P.jsx(Ne.span,{"data-state":b9(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});y9.displayName=v9;var DPe=t=>{const{control:e,checked:n,bubbles:r=!0,...s}=t,i=_.useRef(null),a=Mv(n),o=S_(e);return _.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==n&&l){const d=new Event("click",{bubbles:r});l.call(c,n),c.dispatchEvent(d)}},[a,n,r]),P.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:i,style:{...t.style,...o,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function b9(t){return t?"checked":"unchecked"}var OPe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],h$="RadioGroup",[MPe,RUe]=Nn(h$,[Pl,m9]),w9=Pl(),_9=m9(),[LPe,IPe]=MPe(h$),x9=_.forwardRef((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:s,value:i,required:a=!1,disabled:o=!1,orientation:c,dir:u,loop:f=!0,onValueChange:l,...d}=t,m=w9(n),p=Da(u),[h,y]=lr({prop:i,defaultProp:s,onChange:l});return P.jsx(LPe,{scope:n,name:r,required:a,disabled:o,value:h,onValueChange:y,children:P.jsx(P_,{asChild:!0,...m,orientation:c,dir:p,loop:f,children:P.jsx(Ne.div,{role:"radiogroup","aria-required":a,"aria-orientation":c,"data-disabled":o?"":void 0,dir:p,...d,ref:e})})})});x9.displayName=h$;var S9="RadioGroupItem",E9=_.forwardRef((t,e)=>{const{__scopeRadioGroup:n,disabled:r,...s}=t,i=IPe(S9,n),a=i.disabled||r,o=w9(n),c=_9(n),u=_.useRef(null),f=tt(e,u),l=i.value===s.value,d=_.useRef(!1);return _.useEffect(()=>{const m=h=>{OPe.includes(h.key)&&(d.current=!0)},p=()=>d.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",p)}},[]),P.jsx(T_,{asChild:!0,...o,focusable:!a,active:l,children:P.jsx(g9,{disabled:a,required:i.required,checked:l,...c,...s,name:i.name,ref:f,onCheck:()=>i.onValueChange(s.value),onKeyDown:me(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:me(s.onFocus,()=>{var m;d.current&&((m=u.current)==null||m.click())})})})});E9.displayName=S9;var $Pe="RadioGroupIndicator",C9=_.forwardRef((t,e)=>{const{__scopeRadioGroup:n,...r}=t,s=_9(n);return P.jsx(y9,{...s,...r,ref:e})});C9.displayName=$Pe;var A9=x9,R9=E9,FPe=C9;const jPe=_.forwardRef(({className:t,...e},n)=>P.jsx(A9,{className:le("grid gap-2",t),...e,ref:n}));jPe.displayName=A9.displayName;const BPe=_.forwardRef(({className:t,...e},n)=>P.jsx(R9,{ref:n,className:le("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:P.jsx(FPe,{className:"flex items-center justify-center",children:P.jsx(G1,{className:"h-2.5 w-2.5 fill-current text-current"})})}));BPe.displayName=
|
|||
|
|
* @remix-run/router v1.23.0
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Remix Software Inc.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE.md file in the root directory of this source tree.
|
|||
|
|
*
|
|||
|
|
* @license MIT
|
|||
|
|
*/function Yn(){return Yn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yn.apply(this,arguments)}var Rr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Rr||(Rr={}));const Zz="popstate";function nDe(t){t===void 0&&(t={});function e(r,s){let{pathname:i,search:a,hash:o}=r.location;return d0("",{pathname:i,search:a,hash:o},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:ep(s)}return sDe(e,n,null,t)}function Nt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function wv(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function rDe(){return Math.random().toString(36).substr(2,8)}function Jz(t,e){return{usr:t.state,key:t.key,idx:e}}function d0(t,e,n,r){return n===void 0&&(n=null),Yn({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ud(e):e,{state:n,key:e&&e.key||r||rDe()})}function ep(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ud(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function sDe(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,o=Rr.Pop,c=null,u=f();u==null&&(u=0,a.replaceState(Yn({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function l(){o=Rr.Pop;let y=f(),g=y==null?null:y-u;u=y,c&&c({action:o,location:h.location,delta:g})}function d(y,g){o=Rr.Push;let v=d0(h.location,y,g);u=f()+1;let w=Jz(v,u),x=h.createHref(v);try{a.pushState(w,"",x)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;s.location.assign(x)}i&&c&&c({action:o,location:h.location,delta:1})}function m(y,g){o=Rr.Replace;let v=d0(h.location,y,g);u=f();let w=Jz(v,u),x=h.createHref(v);a.replaceState(w,"",x),i&&c&&c({action:o,location:h.location,delta:0})}function p(y){let g=s.location.origin!=="null"?s.location.origin:s.location.href,v=typeof y=="string"?y:ep(y);return v=v.replace(/ $/,"%20"),Nt(g,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,g)}let h={get action(){return o},get location(){return t(s,a)},listen(y){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(Zz,l),c=y,()=>{s.removeEventListener(Zz,l),c=null}},createHref(y){return e(s,y)},createURL:p,encodeLocation(y){let g=p(y);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:m,go(y){return a.go(y)}};return h}var hn;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(hn||(hn={}));const iDe=new Set(["lazy","caseSensitive","path","id","index","children"]);function oDe(t){return t.index===!0}function OC(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((s,i)=>{let a=[...n,String(i)],o=typeof s.id=="string"?s.id:a.join("-");if(Nt(s.index!==!0||!s.children,"Cannot specify children on an index route"),Nt(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),oDe(s)){let c=Yn({},s,e(s),{id:o});return r[o]=c,c}else{let c=Yn({},s,e(s),{id:o,children:void 0});return r[o]=c,s.children&&(c.children=OC(s.children,e,a,r)),c}})}function gf(t,e,n){return n===void 0&&(n="/"),eE(t,e,n,!1)}function eE(t,e,n,r){let s=typeof e=="string"?Ud(e):e,i=Nd(s.pathname||"/",n);if(i==null)return null;let a=vQ(t);lDe(a);let o=null;for(let c=0;o==null&&c<a.length;++c){let u=bDe(i);o=vDe(a[c],u,r)}return o}function aDe(t,e){let{route:n,pathname:r,params:s}=t;return{id:n.id,pathname:r,params:s,data:e[n.id],handle:n.handle}}function vQ(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,a,o)=>{let c={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("
|
|||
|
|
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!ya(a))return s();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:o,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return s()}}}Nt(typeof FormData=="function","FormData is not available in this environment");let c,u;if(r.formData)c=$D(r.formData),u=r.formData;else if(r.body instanceof FormData)c=$D(r.body),u=r.body;else if(r.body instanceof URLSearchParams)c=r.body,u=l4(c);else if(r.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(r.body),u=l4(c)}catch{return s()}let f={formMethod:a,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ya(f.formMethod))return{path:n,submission:f};let l=Ud(n);return e&&l.search&&L$(l.search)&&c.append("index",""),l.search="?"+c,{path:ep(l),submission:f}}function r4(t,e,n){n===void 0&&(n=!1);let r=t.findIndex(s=>s.route.id===e);return r>=0?t.slice(0,n?r+1:r):t}function s4(t,e,n,r,s,i,a,o,c,u,f,l,d,m,p,h){let y=h?no(h[1])?h[1].error:h[1].data:void 0,g=t.createURL(e.location),v=t.createURL(s),w=n;i&&e.errors?w=r4(n,Object.keys(e.errors)[0],!0):h&&no(h[1])&&(w=r4(n,h[0]));let x=h?h[1].statusCode:void 0,A=a&&x&&x>=400,T=w.filter((E,k)=>{let{route:N}=E;if(N.lazy)return!0;if(N.loader==null)return!1;if(i)return ID(N,e.loaderData,e.errors);if(MDe(e.loaderData,e.matches[k],E)||c.some(I=>I===E.route.id))return!0;let O=e.matches[k],L=E;return i4(E,Yn({currentUrl:g,currentParams:O.params,nextUrl:v,nextParams:L.params},r,{actionResult:y,actionStatus:x,defaultShouldRevalidate:A?!1:o||g.pathname+g.search===v.pathname+v.search||g.search!==v.search||xQ(O,L)}))}),R=[];return l.forEach((E,k)=>{if(i||!n.some(F=>F.route.id===E.routeId)||f.has(k))return;let N=gf(m,E.path,p);if(!N){R.push({key:k,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let O=e.fetchers.get(k),L=Qy(N,E.path),I=!1;d.has(k)?I=!1:u.has(k)?(u.delete(k),I=!0):O&&O.state!=="idle"&&O.data===void 0?I=o:I=i4(L,Yn({currentUrl:g,currentParams:e.matches[e.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:y,actionStatus:x,defaultShouldRevalidate:A?!1:o})),I&&R.push({key:k,routeId:E.routeId,path:E.path,matches:N,match:L,controller:new AbortController})}),[T,R]}function ID(t,e,n){if(t.lazy)return!0;if(!t.loader)return!1;let r=e!=null&&e[t.id]!==void 0,s=n!=null&&n[t.id]!==void 0;return!r&&s?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!r&&!s}function MDe(t,e,n){let r=!e||n.route.id!==e.route.id,s=t[n.route.id]===void 0;return r||s}function xQ(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function i4(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}function o4(t,e,n,r,s){var i;let a;if(t){let u=r[t];Nt(u,"No route found to patch children into: routeId = "+t),u.children||(u.children=[]),a=u.children}else a=n;let o=e.filter(u=>!a.some(f=>SQ(u,f))),c=OC(o,s,[t||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...c)}function SQ(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children.every((n,r)=>{var s;return(s=e.children)==null?void 0:s.some(i=>SQ(n,i))}):!1}async function LDe(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let s=n[t.id];Nt(s,"No route found in manifest");let i={};for(let a in r){let c=s[a]!==void 0&&a!=="hasErrorBoundary";wv(!c,'Route "'+s.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!iDe.has(a)&&(i[a]=r[a])}Object.assign(s,i),Object.assign(s,Yn({},e(s),{lazy:
|
|||
|
|
* React Router v6.30.0
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Remix Software Inc.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE.md file in the root directory of this source tree.
|
|||
|
|
*
|
|||
|
|
* @license MIT
|
|||
|
|
*/function _v(){return _v=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_v.apply(this,arguments)}const UA=_.createContext(null),AQ=_.createContext(null),Hd=_.createContext(null),I$=_.createContext(null),Nl=_.createContext({outlet:null,matches:[],isDataRoute:!1}),RQ=_.createContext(null);function ZDe(t,e){let{relative:n}=e===void 0?{}:e;Vv()||Nt(!1);let{basename:r,navigator:s}=_.useContext(Hd),{hash:i,pathname:a,search:o}=TQ(t,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Mc([r,a])),s.createHref({pathname:c,search:o,hash:i})}function Vv(){return _.useContext(I$)!=null}function Vd(){return Vv()||Nt(!1),_.useContext(I$).location}function PQ(t){_.useContext(Hd).static||_.useLayoutEffect(t)}function Wv(){let{isDataRoute:t}=_.useContext(Nl);return t?dOe():JDe()}function JDe(){Vv()||Nt(!1);let t=_.useContext(UA),{basename:e,future:n,navigator:r}=_.useContext(Hd),{matches:s}=_.useContext(Nl),{pathname:i}=Vd(),a=JSON.stringify(BA(s,n.v7_relativeSplatPath)),o=_.useRef(!1);return PQ(()=>{o.current=!0}),_.useCallback(function(u,f){if(f===void 0&&(f={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let l=zA(u,JSON.parse(a),i,f.relative==="path");t==null&&e!=="/"&&(l.pathname=l.pathname==="/"?e:Mc([e,l.pathname])),(f.replace?r.replace:r.push)(l,f.state,f)},[e,r,a,i,t])}const eOe=_.createContext(null);function tOe(t){let e=_.useContext(Nl).outlet;return e&&_.createElement(eOe.Provider,{value:t},e)}function UUe(){let{matches:t}=_.useContext(Nl),e=t[t.length-1];return e?e.params:{}}function TQ(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=_.useContext(Hd),{matches:s}=_.useContext(Nl),{pathname:i}=Vd(),a=JSON.stringify(BA(s,r.v7_relativeSplatPath));return _.useMemo(()=>zA(t,JSON.parse(a),i,n==="path"),[t,a,i,n])}function nOe(t,e,n,r){Vv()||Nt(!1);let{navigator:s,static:i}=_.useContext(Hd),{matches:a}=_.useContext(Nl),o=a[a.length-1],c=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let f=Vd(),l;l=f;let d=l.pathname||"/",m=d;if(u!=="/"){let y=u.replace(/^\//,"").split("/");m="/"+d.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=!i&&n&&n.matches&&n.matches.length>0?n.matches:gf(t,{pathname:m});return aOe(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},c,y.params),pathname:Mc([u,s.encodeLocation?s.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?u:Mc([u,s.encodeLocation?s.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),a,n,r)}function rOe(){let t=cOe(),e=f0(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},e),n?_.createElement("pre",{style:s},n):null,null)}const sOe=_.createElement(rOe,null);class iOe extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?_.createElement(Nl.Provider,{value:this.props.routeContext},_.createElement(RQ.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oOe(t){let{routeContext:e,match:n,children:r}=t,s=_.useContext(UA);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(Nl.Provider,{value:e},r)}function aOe(t,e,n,r){var s;if(e===void 0&&(
|
|||
|
|
* React Router DOM v6.30.0
|
|||
|
|
*
|
|||
|
|
* Copyright (c) Remix Software Inc.
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE.md file in the root directory of this source tree.
|
|||
|
|
*
|
|||
|
|
* @license MIT
|
|||
|
|
*/function h0(){return h0=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h0.apply(this,arguments)}function gOe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function vOe(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function yOe(t,e){return t.button===0&&(!e||e==="_self")&&!vOe(t)}function FD(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function bOe(t,e){let n=FD(t);return e&&e.forEach((r,s)=>{n.has(s)||e.getAll(s).forEach(i=>{n.append(s,i)})}),n}const wOe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_Oe="6";try{window.__reactRouterVersion=_Oe}catch{}function xOe(t,e){return DDe({basename:e==null?void 0:e.basename,future:h0({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:nDe({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||SOe(),routes:t,mapRouteProperties:mOe,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function SOe(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=h0({},e,{errors:EOe(e.errors)})),e}function EOe(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,s]of e)if(s&&s.__type==="RouteErrorResponse")n[r]=new MC(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let i=window[s.__subType];if(typeof i=="function")try{let a=new i(s.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(s.message);i.stack="",n[r]=i}}else n[r]=s;return n}const COe=_.createContext({isTransitioning:!1}),AOe=_.createContext(new Map),ROe="startTransition",g4=r_[ROe],POe="flushSync",v4=ade[POe];function TOe(t){g4?g4(t):t()}function My(t){v4?v4(t):t()}class kOe{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function NOe(t){let{fallbackElement:e,router:n,future:r}=t,[s,i]=_.useState(n.state),[a,o]=_.useState(),[c,u]=_.useState({isTransitioning:!1}),[f,l]=_.useState(),[d,m]=_.useState(),[p,h]=_.useState(),y=_.useRef(new Map),{v7_startTransition:g}=r||{},v=_.useCallback(E=>{g?TOe(E):E()},[g]),w=_.useCallback((E,k)=>{let{deletedFetchers:N,flushSync:O,viewTransitionOpts:L}=k;E.fetchers.forEach((F,U)=>{F.data!==void 0&&y.current.set(U,F.data)}),N.forEach(F=>y.current.delete(F));let I=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!L||I){O?My(()=>i(E)):v(()=>i(E));return}if(O){My(()=>{d&&(f&&f.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let F=n.window.document.startViewTransition(()=>{My(()=>i(E))});F.finished.finally(()=>{My(()=>{l(void 0),m(void 0),o(void 0),u({isTransitioning:!1})})}),My(()=>m(F));return}d?(f&&f.resolve(),d.skipTransition(),h({state:E,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(o(E),u({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[n.window,d,f,y,v]);_.useLayoutEffect(()=>n.subscribe(w),[n,w]),_.useEffect(()=>{c.isTransitioning&&!c.flushSync&&l(new kOe)},[c]),_.useEffect(()=>{if(f&&a&&n.window){let E=a,k=f.promise,N=n.window.document.startViewTransition(async()=>{v(()=>i(E)),await k});N.finished.finally(()=>{l(void 0),m(void 0),o(void 0),u({isTransitioning:!1})}),m(N)}},[v,a,f,n.window]),_.useEffect(()=>{f&&a&&s.location.key===a.location.key&&f.resolve()},[f,d,s.location,a]),_.useEffect(()=>{!c.isTransitioning&&p&&(o(p.state),u({isTransit
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var gMe={normalizePrecision:function(e){var n=e.reduce(function(r,s){return Math.max(r.getPrecision(),s.getPrecision())});return e.map(function(r){return r.getPrecision()!==n?r.convertPrecision(n):r})},minimum:function(e){var n=N4(e),r=n[0],s=n.slice(1),i=r;return s.forEach(function(a){i=i.lessThan(a)?i:a}),i},maximum:function(e){var n=N4(e),r=n[0],s=n.slice(1),i=r;return s.forEach(function(a){i=i.greaterThan(a)?i:a}),i}};function UQ(t){return!isNaN(parseInt(t))&&isFinite(t)}function vMe(t){return UQ(t)&&t<=100&&t>=0}function yMe(t){return t.length>0&&t.every(function(e){return e>=0})&&t.some(function(e){return e>0})}function O4(t){return t%2===0}function M4(t){return UQ(t)&&!Number.isInteger(t)}function bMe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=t.toString();if(e.indexOf("e-")>0)return parseInt(e.split("e-")[1]);var n=e.split(".")[1];return n?n.length:0}function Iy(t){return Math.abs(t)%1===.5}function wMe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(n,r){var s=Object.assign(new XMLHttpRequest,{onreadystatechange:function(){s.readyState===4&&(s.status>=200&&s.status<400?n(JSON.parse(s.responseText)):r(new Error(s.statusText)))},onerror:function(){r(new Error("Network error"))}});s.open("GET",t,!0),_Me(s,e.headers),s.send()})}function _Me(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var n in e)t.setRequestHeader(n,e[n]);return t}function Zy(t){return typeof t>"u"}function HQ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:".",n={};return Object.entries(t).forEach(function(r){if(Rb(r[1])==="object"){var s=HQ(r[1]);Object.entries(s).forEach(function(i){n[r[0]+e+i[0]]=i[1]})}else n[r[0]]=r[1]}),n}function xMe(t){return!!t&&(Rb(t)==="object"||typeof t=="function")&&typeof t.then=="function"}function VQ(){var t=function(r,s){var i=function(c){return Math.pow(10,bMe(c))},a=Math.max(i(r),i(s));return Math.round(r*a)*Math.round(s*a)/(a*a)},e={HALF_ODD:function(r){var s=Math.round(r);return Iy(r)&&O4(s)?s-1:s},HALF_EVEN:function(r){var s=Math.round(r);return Iy(r)?O4(s)?s:s-1:s},HALF_UP:function(r){return Math.round(r)},HALF_DOWN:function(r){return Iy(r)?Math.floor(r):Math.round(r)},HALF_TOWARDS_ZERO:function(r){return Iy(r)?Math.sign(r)*Math.floor(Math.abs(r)):Math.round(r)},HALF_AWAY_FROM_ZERO:function(r){return Iy(r)?Math.sign(r)*Math.ceil(Math.abs(r)):Math.round(r)},DOWN:function(r){return Math.floor(r)}};return{add:function(r,s){return r+s},subtract:function(r,s){return r-s},multiply:function(r,s){return M4(r)||M4(s)?t(r,s):r*s},divide:function(r,s){return r/s},modulo:function(r,s){return r%s},round:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"HALF_EVEN";return e[s](r)}}}var SMe=VQ();function EMe(t){var e=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(t);return{getMatches:function(){return e!==null?e.slice(1).filter(function(r){return!Zy(r)}):[]},getMinimumFractionDigits:function(){var r=function(i){return i==="."};return Zy(this.getMatches().find(r))?0:this.getMatches()[SMe.add(this.getMatches().findIndex(r),1)].split("").length},getCurrencyDisplay:function(){var r={USD:"code",dollar:"name",$:"symbol"};return r[this.getMatches().find(function(s){return s==="USD"||s==="dollar"||s==="$"})]},getStyle:function(){return Zy(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!Zy(this.getMatches().find(function(r){return r===","}))}}}function CMe(t){var e=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;for(var a in i)s=s.replace("{{".concat(a,"}}"),i[a]);return s},n=function(s,i){return wMe(e(t.endpoint,{from:s,to:i}),{headers:t.headers})};return{getExchangeRate:function(s,i){return(xMe(t.endpoint)?t.endpoint:n(s,i)).then(function(a){return HQ(a)[e(t.propertyPath,{from:s,to:i})]})}}}function m0(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2
|
|||
|
|
* @license
|
|||
|
|
* Lodash <https://lodash.com/>
|
|||
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|||
|
|
* Released under MIT license <https://lodash.com/license>
|
|||
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|||
|
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|||
|
|
*/BC.exports;(function(t,e){(function(){var n,r="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",o="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",l=1,d=2,m=4,p=1,h=2,y=1,g=2,v=4,w=8,x=16,A=32,T=64,R=128,E=256,k=512,N=30,O="...",L=800,I=16,F=1,U=2,Y=3,V=1/0,H=9007199254740991,ee=17976931348623157e292,re=NaN,X=4294967295,q=X-1,K=X>>>1,Z=[["ary",R],["bind",y],["bindKey",g],["curry",w],["curryRight",x],["flip",k],["partial",A],["partialRight",T],["rearg",E]],ue="[object Arguments]",de="[object Array]",ie="[object AsyncFunction]",be="[object Boolean]",Ae="[object Date]",_e="[object DOMException]",Me="[object Error]",De="[object Function]",ye="[object GeneratorFunction]",Fe="[object Map]",ut="[object Number]",Qe="[object Null]",vt="[object Object]",An="[object Promise]",Yt="[object Proxy]",gn="[object RegExp]",Xt="[object Set]",J="[object String]",fe="[object Symbol]",ge="[object Undefined]",Pe="[object WeakMap]",Oe="[object WeakSet]",xe="[object ArrayBuffer]",Te="[object DataView]",Ye="[object Float32Array]",Rt="[object Float64Array]",bt="[object Int8Array]",$s="[object Int16Array]",Qn="[object Int32Array]",ys="[object Uint8Array]",Ut="[object Uint8ClampedArray]",on="[object Uint16Array]",vn="[object Uint32Array]",Ue=/\b__p \+= '';/g,it=/\b(__p \+=) '' \+/g,ot=/(__e\(.*?\)|\b__t\)) \+\n'';/g,St=/&(?:amp|lt|gt|quot|#39);/g,nt=/[&<>"']/g,Ht=RegExp(St.source),Ct=RegExp(nt.source),yn=/<%-([\s\S]+?)%>/g,an=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,Dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gr=/^\w*$/,On=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(te.source),he=/^\s+/,Ce=/\s/,Ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qe=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xe=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,Je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mt=/\w*$/,Lt=/^[-+]0x[0-9a-f]+$/i,Nr=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,Wt=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,ru=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fa=/($^)/,qo=/['\n\r\u2028\u2029\\]/g,Fs="\\ud800-\\udfff",Qv="\\u0300-\\u036f",qd="\\ufe20-\\ufe2f",Dl="\\u20d0-\\u20ff",Kd=Qv+qd+Dl,Yd="\\u2700-\\u27bf",$t="a-z\\xdf-\\xf6\\xf8-\\xff",qn="\\xac\\xb1\\xd7\\xf7",su="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xd="\\u2000-\\u206f",cr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ol="A-Z\\xc0-\\xd6\\xd8-\\xde",Zv="\\ufe0e\\ufe0f",Z_=qn+su+Xd+cr,bR="['’]",Ote="["+Fs+"]",p2="["+Z_+"]",J_="["+Kd+"]",m2="\\d+",Mte="["+Yd+"]",g2="["+$t+"]",v2="[^"+Fs+Z_+m2+Yd+$t+Ol+"]",wR="\\ud83c[\\udffb-\\udfff]",Lte="(?:"+J_+"|"+wR+")",y2="[^"+Fs+"]",_R="(?:\\ud83c[\\udde6-\\uddff]){2}",xR="[\\ud800-\\udbff][\\udc00-\\udfff]",Ap="["+Ol+"]",b2="\\u200d",w2="(?:"+g2+"|"+v2+")",Ite="(?:"+Ap+"|"+v2+")",_2="(?:"+bR+"(?:d|ll|m|re|s|t|ve))?",x2="(?:"+bR+"(?:D|LL|M|RE|S|T|VE))?",S2=Lte+"?",E2="["+Zv+"]?",$te="(?:"+b2+"(?:"+[y2,_R,xR].join("|")+")"+E2+S2+")*",Fte="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jte="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",C2=E2+S2+$te,Bte="(?:"+[Mte,_R,xR].join("|")+")"+C2,zte="(?:"+[y2+J_+"?",J_,_R,xR,Ote].join("|")+")",Ute=RegExp(bR,"g"),Hte=RegExp(J_,"g"),SR=RegExp(wR+"(?="+wR+")|"+zte+C2,"g"),Vte=RegExp([Ap+"?"+g2+"+"+_2+"(?="+[p2,Ap,"$"].join("|")+")",Ite+"+"+x2+"(?="+[p2,Ap+w2,"$"].join("|")+")",Ap+"?"+w2+"+"+_2,Ap+"+"+x2,jte,Fte,m2,Bte].join("|"),"g"),Wte=RegExp("["+b2+Fs+Kd+Zv+"]"),Gte=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qte=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","se
|
|||
|
|
/* [wrapped with `+S+`] */
|
|||
|
|
`)}function dse(b){return yt(b)||of(b)||!!(K2&&b&&b[K2])}function jl(b,S){var D=typeof b;return S=S??H,!!S&&(D=="number"||D!="symbol"&&Gn.test(b))&&b>-1&&b%1==0&&b<S}function Bs(b,S,D){if(!Zn(D))return!1;var M=typeof S;return(M=="number"?ai(D)&&jl(S,D.length):M=="string"&&S in D)?Xo(D[S],b):!1}function uP(b,S){if(yt(b))return!1;var D=typeof b;return D=="number"||D=="symbol"||D=="boolean"||b==null||$i(b)?!0:gr.test(b)||!Dn.test(b)||S!=null&&b in Rn(S)}function fse(b){var S=typeof b;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?b!=="__proto__":b===null}function dP(b){var S=Px(b),D=W[S];if(typeof D!="function"||!(S in It.prototype))return!1;if(b===D)return!0;var M=aP(D);return!!M&&b===M[0]}function hse(b){return!!V2&&V2 in b}var pse=sx?Bl:PP;function dy(b){var S=b&&b.constructor,D=typeof S=="function"&&S.prototype||Np;return b===D}function VF(b){return b===b&&!Zn(b)}function WF(b,S){return function(D){return D==null?!1:D[b]===S&&(S!==n||b in Rn(D))}}function mse(b){var S=Mx(b,function(M){return D.size===u&&D.clear(),M}),D=S.cache;return S}function gse(b,S){var D=b[1],M=S[1],j=D|M,G=j<(y|g|R),Q=M==R&&D==w||M==R&&D==E&&b[7].length<=S[8]||M==(R|E)&&S[7].length<=S[8]&&D==w;if(!(G||Q))return b;M&y&&(b[2]=S[2],j|=D&y?0:v);var ne=S[3];if(ne){var ce=b[3];b[3]=ce?RF(ce,ne,S[4]):ne,b[4]=ce?au(b[3],f):S[4]}return ne=S[5],ne&&(ce=b[5],b[5]=ce?PF(ce,ne,S[6]):ne,b[6]=ce?au(b[5],f):S[6]),ne=S[7],ne&&(b[7]=ne),M&R&&(b[8]=b[8]==null?S[8]:bs(b[8],S[8])),b[9]==null&&(b[9]=S[9]),b[0]=S[0],b[1]=j,b}function vse(b){var S=[];if(b!=null)for(var D in Rn(b))S.push(D);return S}function yse(b){return ox.call(b)}function GF(b,S,D){return S=Or(S===n?b.length-1:S,0),function(){for(var M=arguments,j=-1,G=Or(M.length-S,0),Q=pe(G);++j<G;)Q[j]=M[S+j];j=-1;for(var ne=pe(S+1);++j<S;)ne[j]=M[j];return ne[S]=D(Q),Mi(b,this,ne)}}function qF(b,S){return S.length<2?b:nf(b,wo(S,0,-1))}function bse(b,S){for(var D=b.length,M=bs(S.length,D),j=oi(b);M--;){var G=S[M];b[M]=jl(G,D)?j[G]:n}return b}function fP(b,S){if(!(S==="constructor"&&typeof b[S]=="function")&&S!="__proto__")return b[S]}var KF=XF(vF),fy=Mne||function(b,S){return rs.setTimeout(b,S)},hP=XF(Ure);function YF(b,S,D){var M=S+"";return hP(b,use(M,wse(ase(M),D)))}function XF(b){var S=0,D=0;return function(){var M=Fne(),j=I-(M-D);if(D=M,j>0){if(++S>=L)return arguments[0]}else S=0;return b.apply(n,arguments)}}function kx(b,S){var D=-1,M=b.length,j=M-1;for(S=S===n?M:S;++D<S;){var G=YR(D,j),Q=b[G];b[G]=b[D],b[D]=Q}return b.length=S,b}var QF=mse(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(On,function(D,M,j,G){S.push(j?G.replace(We,"$1"):M||D)}),S});function za(b){if(typeof b=="string"||$i(b))return b;var S=b+"";return S=="0"&&1/b==-1/0?"-0":S}function sf(b){if(b!=null){try{return ix.call(b)}catch{}try{return b+""}catch{}}return""}function wse(b,S){return go(Z,function(D){var M="_."+D[0];S&D[1]&&!ex(b,M)&&b.push(M)}),b.sort()}function ZF(b){if(b instanceof It)return b.clone();var S=new yo(b.__wrapped__,b.__chain__);return S.__actions__=oi(b.__actions__),S.__index__=b.__index__,S.__values__=b.__values__,S}function _se(b,S,D){(D?Bs(b,S,D):S===n)?S=1:S=Or(_t(S),0);var M=b==null?0:b.length;if(!M||S<1)return[];for(var j=0,G=0,Q=pe(fx(M/S));j<M;)Q[G++]=wo(b,j,j+=S);return Q}function xse(b){for(var S=-1,D=b==null?0:b.length,M=0,j=[];++S<D;){var G=b[S];G&&(j[M++]=G)}return j}function Sse(){var b=arguments.length;if(!b)return[];for(var S=pe(b-1),D=arguments[0],M=b;M--;)S[M-1]=arguments[M];return ou(yt(D)?oi(D):[D],ss(S,1))}var Ese=At(function(b,S){return vr(b)?oy(b,ss(S,1,vr,!0)):[]}),Cse=At(function(b,S){var D=_o(S);return vr(D)&&(D=n),vr(b)?oy(b,ss(S,1,vr,!0),at(D,2)):[]}),Ase=At(function(b,S){var D=_o(S);return vr(D)&&(D=n),vr(b)?oy(b,ss(S,1,vr,!0),n,D):[]});function Rse(b,S,D){var M=b==null?0:b.length;return M?(S=D||S===n?1:_t(S),wo(b,S<0?0:S,M)):[]}function Pse(b,S,D){var M=b==null?0:b.length;return M?(S=D||S===n?1:_t(S),S=M-S,wo(b,0,S<0?0:S)):[]}function Tse(b,S){return b&&b.length?xx(b,at(S,3),!0,!0):[]}function kse(b,S){return b&&b.length?xx(b,at(S,3),!0):[]}function Nse(b,S,D,
|
|||
|
|
`;b.replace(je,function(ct,kt,Ft,Fi,zs,ji){return Ft||(Ft=Fi),Re+=b.slice(Se,ji).replace(qo,pne),kt&&(ne=!0,Re+=`' +
|
|||
|
|
__e(`+kt+`) +
|
|||
|
|
'`),zs&&(ce=!0,Re+=`';
|
|||
|
|
`+zs+`;
|
|||
|
|
__p += '`),Ft&&(Re+=`' +
|
|||
|
|
((__t = (`+Ft+`)) == null ? '' : __t) +
|
|||
|
|
'`),Se=ji+ct.length,ct}),Re+=`';
|
|||
|
|
`;var lt=cn.call(S,"variable")&&S.variable;if(!lt)Re=`with (obj) {
|
|||
|
|
`+Re+`
|
|||
|
|
}
|
|||
|
|
`;else if(Xe.test(lt))throw new gt(o);Re=(ce?Re.replace(Ue,""):Re).replace(it,"$1").replace(ot,"$1;"),Re="function("+(lt||"obj")+`) {
|
|||
|
|
`+(lt?"":`obj || (obj = {});
|
|||
|
|
`)+"var __t, __p = ''"+(ne?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
|
|||
|
|
function print() { __p += __j.call(arguments, '') }
|
|||
|
|
`:`;
|
|||
|
|
`)+Re+`return __p
|
|||
|
|
}`;var Et=kj(function(){return en(G,Ze+"return "+Re).apply(n,Q)});if(Et.source=Re,yP(Et))throw Et;return Et}function Bae(b){return rn(b).toLowerCase()}function zae(b){return rn(b).toUpperCase()}function Uae(b,S,D){if(b=rn(b),b&&(D||S===n))return j2(b);if(!b||!(S=Ii(S)))return b;var M=Ko(b),j=Ko(S),G=B2(M,j),Q=z2(M,j)+1;return fu(M,G,Q).join("")}function Hae(b,S,D){if(b=rn(b),b&&(D||S===n))return b.slice(0,H2(b)+1);if(!b||!(S=Ii(S)))return b;var M=Ko(b),j=z2(M,Ko(S))+1;return fu(M,0,j).join("")}function Vae(b,S,D){if(b=rn(b),b&&(D||S===n))return b.replace(he,"");if(!b||!(S=Ii(S)))return b;var M=Ko(b),j=B2(M,Ko(S));return fu(M,j).join("")}function Wae(b,S){var D=N,M=O;if(Zn(S)){var j="separator"in S?S.separator:j;D="length"in S?_t(S.length):D,M="omission"in S?Ii(S.omission):M}b=rn(b);var G=b.length;if(Pp(b)){var Q=Ko(b);G=Q.length}if(D>=G)return b;var ne=D-Tp(M);if(ne<1)return M;var ce=Q?fu(Q,0,ne).join(""):b.slice(0,ne);if(j===n)return ce+M;if(Q&&(ne+=ce.length-ne),bP(j)){if(b.slice(ne).search(j)){var Se,Ee=ce;for(j.global||(j=LR(j.source,rn(mt.exec(j))+"g")),j.lastIndex=0;Se=j.exec(Ee);)var Re=Se.index;ce=ce.slice(0,Re===n?ne:Re)}}else if(b.indexOf(Ii(j),ne)!=ne){var je=ce.lastIndexOf(j);je>-1&&(ce=ce.slice(0,je))}return ce+M}function Gae(b){return b=rn(b),b&&Ht.test(b)?b.replace(St,_ne):b}var qae=Ip(function(b,S,D){return b+(D?" ":"")+S.toUpperCase()}),xP=NF("toUpperCase");function Tj(b,S,D){return b=rn(b),S=D?n:S,S===n?gne(b)?Ene(b):ane(b):b.match(S)||[]}var kj=At(function(b,S){try{return Mi(b,n,S)}catch(D){return yP(D)?D:new gt(D)}}),Kae=Fl(function(b,S){return go(S,function(D){D=za(D),Il(b,D,gP(b[D],b))}),b});function Yae(b){var S=b==null?0:b.length,D=at();return b=S?Kn(b,function(M){if(typeof M[1]!="function")throw new vo(a);return[D(M[0]),M[1]]}):[],At(function(M){for(var j=-1;++j<S;){var G=b[j];if(Mi(G[0],this,M))return Mi(G[1],this,M)}})}function Xae(b){return _re(bo(b,l))}function SP(b){return function(){return b}}function Qae(b,S){return b==null||b!==b?S:b}var Zae=OF(),Jae=OF(!0);function ci(b){return b}function EP(b){return cF(typeof b=="function"?b:bo(b,l))}function ele(b){return dF(bo(b,l))}function tle(b,S){return fF(b,bo(S,l))}var nle=At(function(b,S){return function(D){return ay(D,b,S)}}),rle=At(function(b,S){return function(D){return ay(b,D,S)}});function CP(b,S,D){var M=Kr(S),j=bx(S,M);D==null&&!(Zn(S)&&(j.length||!M.length))&&(D=S,S=b,b=this,j=bx(S,Kr(S)));var G=!(Zn(D)&&"chain"in D)||!!D.chain,Q=Bl(b);return go(j,function(ne){var ce=S[ne];b[ne]=ce,Q&&(b.prototype[ne]=function(){var Se=this.__chain__;if(G||Se){var Ee=b(this.__wrapped__),Re=Ee.__actions__=oi(this.__actions__);return Re.push({func:ce,args:arguments,thisArg:b}),Ee.__chain__=Se,Ee}return ce.apply(b,ou([this.value()],arguments))})}),b}function sle(){return rs._===this&&(rs._=kne),this}function AP(){}function ile(b){return b=_t(b),At(function(S){return hF(S,b)})}var ole=rP(Kn),ale=rP(M2),lle=rP(PR);function Nj(b){return uP(b)?TR(za(b)):Fre(b)}function cle(b){return function(S){return b==null?n:nf(b,S)}}var ule=LF(),dle=LF(!0);function RP(){return[]}function PP(){return!1}function fle(){return{}}function hle(){return""}function ple(){return!0}function mle(b,S){if(b=_t(b),b<1||b>H)return[];var D=X,M=bs(b,X);S=at(S),b-=X;for(var j=DR(M,S);++D<b;)S(D);return j}function gle(b){return yt(b)?Kn(b,za):$i(b)?[b]:oi(QF(rn(b)))}function vle(b){var S=++Pne;return rn(b)+S}var yle=Cx(function(b,S){return b+S},0),ble=sP("ceil"),wle=Cx(function(b,S){return b/S},1),_le=sP("floor");function xle(b){return b&&b.length?yx(b,ci,HR):n}function Sle(b,S){return b&&b.length?yx(b,at(S,2),HR):n}function Ele(b){return $2(b,ci)}function Cle(b,S){return $2(b,at(S,2))}function Ale(b){return b&&b.length?yx(b,ci,qR):n}function Rle(b,S){return b&&b.length?yx(b,at(S,2),qR):n}var Ple=Cx(function(b,S){return b*S},1),Tle=sP("round"),kle=Cx(function(b,S){return b-S},0);function Nle(b){return b&&b.length?NR(b,ci):0}function Dle(b,S){return b&&b.length?NR(b,at(S,2)):0}return W.after=eoe,W.ary=lj,W.assign=zoe,W.assignIn=xj,W.assignInWith=Fx,W.assignWith=Uoe,W.at=Hoe,W.before=cj,W.bi
|
|||
|
|
To pick up a draggable item, press the space bar.
|
|||
|
|
While dragging, use the arrow keys to move the item.
|
|||
|
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|||
|
|
`},JMe={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was moved over droppable area "+n.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was dropped over droppable area "+n.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function eLe(t){let{announcements:e=JMe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:s=ZMe}=t;const{announce:i,announcement:a}=YMe(),o=z_("DndLiveRegion"),[c,u]=_.useState(!1);if(_.useEffect(()=>{u(!0)},[]),XMe(_.useMemo(()=>({onDragStart(l){let{active:d}=l;i(e.onDragStart({active:d}))},onDragMove(l){let{active:d,over:m}=l;e.onDragMove&&i(e.onDragMove({active:d,over:m}))},onDragOver(l){let{active:d,over:m}=l;i(e.onDragOver({active:d,over:m}))},onDragEnd(l){let{active:d,over:m}=l;i(e.onDragEnd({active:d,over:m}))},onDragCancel(l){let{active:d,over:m}=l;i(e.onDragCancel({active:d,over:m}))}}),[i,e])),!c)return null;const f=se.createElement(se.Fragment,null,se.createElement(qMe,{id:r,value:s.draggable}),se.createElement(KMe,{id:o,announcement:a}));return n?Ms.createPortal(f,n):f}var Hr;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(Hr||(Hr={}));function KC(){}function r5e(t,e){return _.useMemo(()=>({sensor:t,options:e??{}}),[t,e])}function s5e(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return _.useMemo(()=>[...e].filter(r=>r!=null),[...e])}const Na=Object.freeze({x:0,y:0});function tLe(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function nLe(t,e){const n=qC(t);if(!n)return"0 0";const r={x:(n.x-e.left)/e.width*100,y:(n.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function rLe(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return n-r}function sLe(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return r-n}function iLe(t,e){if(!t||t.length===0)return null;const[n]=t;return n[e]}function I4(t,e,n){return e===void 0&&(e=t.left),n===void 0&&(n=t.top),{x:e+t.width*.5,y:n+t.height*.5}}const i5e=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const s=I4(e,e.left,e.top),i=[];for(const a of r){const{id:o}=a,c=n.get(o);if(c){const u=tLe(I4(c),s);i.push({id:o,data:{droppableContainer:a,value:u}})}}return i.sort(rLe)};function oLe(t,e){const n=Math.max(e.top,t.top),r=Math.max(e.left,t.left),s=Math.min(e.left+e.width,t.left+t.width),i=Math.min(e.top+e.height,t.top+t.height),a=s-r,o=i-n;if(r<s&&n<i){const c=e.width*e.height,u=t.width*t.height,f=a*o,l=f/(c+u-f);return Number(l.toFixed(4))}return 0}const aLe=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const s=[];for(const i of r){const{id:a}=i,o=n.get(a);if(o){const c=oLe(o,e);c>0&&s.push({id:a,data:{droppableContainer:i,value:c}})}}return s.sort(sLe)};function lLe(t,e,n){return{...t,scaleX:e&&n?e.width/n.width:1,scaleY:e&&n?e.height/n.height:1}}function tZ(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:Na}function cLe(t){return function(n){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];return s.reduce((a,o)=>({...a,top:a.top+t*o.y,bottom:a.bottom+t*o.y,left:a.left+t*o.x,right:a.right+t*o.x}),{...n})}}const uLe=cLe(1);function nZ(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dLe(t,e,n){const r=nZ(e);if(!r)return t;const{scaleX:s,scaleY:i,x:a,y:o}=r,c=t.left-a-(1-s)*parseFloat(n),u=t.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),f=s?t.width/s:t.width,l=i?t.height/i:t.height;return{width:f,height:l,top:u,right:c+f,bottom:u+l,left:c
|
|||
|
|
`);return e.join("")}}function nb(t,e){try{const{protocol:n}=e?new URL(t,e):new URL(t);return n==="http:"||n==="https:"}catch{return!1}}function Ti(t){t.preventDefault()}function VZ(t){console.log("Deprecated API usage: "+t)}let oU;class WZ{static toDateObject(e){if(!e||typeof e!="string")return null;oU||(oU=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const n=oU.exec(e);if(!n)return null;const r=parseInt(n[1],10);let s=parseInt(n[2],10);s=s>=1&&s<=12?s-1:0;let i=parseInt(n[3],10);i=i>=1&&i<=31?i:1;let a=parseInt(n[4],10);a=a>=0&&a<=23?a:0;let o=parseInt(n[5],10);o=o>=0&&o<=59?o:0;let c=parseInt(n[6],10);c=c>=0&&c<=59?c:0;const u=n[7]||"Z";let f=parseInt(n[8],10);f=f>=0&&f<=23?f:0;let l=parseInt(n[9],10)||0;return l=l>=0&&l<=59?l:0,u==="-"?(a+=f,o+=l):u==="+"&&(a-=f,o-=l),new Date(Date.UTC(r,s,i,a,o,c))}}function r2e(t,{scale:e=1,rotation:n=0}){const{width:r,height:s}=t.attributes.style,i=[0,0,parseInt(r),parseInt(s)];return new H_({viewBox:i,scale:e,rotation:n})}function e2(t){if(t.startsWith("#")){const e=parseInt(t.slice(1),16);return[(e&16711680)>>16,(e&65280)>>8,e&255]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map(e=>parseInt(e)):t.startsWith("rgba(")?t.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):(Tt(`Not a valid color format: "${t}"`),[0,0,0])}function s2e(t){const e=document.createElement("span");e.style.visibility="hidden",document.body.append(e);for(const n of t.keys()){e.style.color=n;const r=window.getComputedStyle(e).color;t.set(n,e2(r))}e.remove()}function er(t){const{a:e,b:n,c:r,d:s,e:i,f:a}=t.getTransform();return[e,n,r,s,i,a]}function ql(t){const{a:e,b:n,c:r,d:s,e:i,f:a}=t.getTransform().invertSelf();return[e,n,r,s,i,a]}function rp(t,e,n=!1,r=!0){if(e instanceof H_){const{pageWidth:s,pageHeight:i}=e.rawDims,{style:a}=t,o=Si.isCSSRoundSupported,c=`var(--scale-factor) * ${s}px`,u=`var(--scale-factor) * ${i}px`,f=o?`round(${c}, 1px)`:`calc(${c})`,l=o?`round(${u}, 1px)`:`calc(${u})`;!n||e.rotation%180===0?(a.width=f,a.height=l):(a.width=l,a.height=f)}r&&t.setAttribute("data-main-rotation",e.rotation)}var Ff,jf,Wi,Bf,c1,GZ,Js,qZ,KZ,aE,YZ,JD;const u1=class u1{constructor(e){B(this,Js);B(this,Ff,null);B(this,jf,null);B(this,Wi);B(this,Bf,null);$(this,Wi,e)}render(){const e=$(this,Ff,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar");const n=C(this,Wi)._uiManager._signal;e.addEventListener("contextmenu",Ti,{signal:n}),e.addEventListener("pointerdown",z(u1,c1,GZ),{signal:n});const r=$(this,Bf,document.createElement("div"));r.className="buttons",e.append(r);const s=C(this,Wi).toolbarPosition;if(s){const{style:i}=e,a=C(this,Wi)._uiManager.direction==="ltr"?1-s[0]:s[0];i.insetInlineEnd=`${100*a}%`,i.top=`calc(${100*s[1]}% + var(--editor-toolbar-vert-offset))`}return z(this,Js,YZ).call(this),e}hide(){var e;C(this,Ff).classList.add("hidden"),(e=C(this,jf))==null||e.hideDropdown()}show(){C(this,Ff).classList.remove("hidden")}addAltTextButton(e){z(this,Js,aE).call(this,e),C(this,Bf).prepend(e,C(this,Js,JD))}addColorPicker(e){$(this,jf,e);const n=e.renderButton();z(this,Js,aE).call(this,n),C(this,Bf).prepend(n,C(this,Js,JD))}remove(){var e;C(this,Ff).remove(),(e=C(this,jf))==null||e.destroy(),$(this,jf,null)}};Ff=new WeakMap,jf=new WeakMap,Wi=new WeakMap,Bf=new WeakMap,c1=new WeakSet,GZ=function(e){e.stopPropagation()},Js=new WeakSet,qZ=function(e){C(this,Wi)._focusEventsAllowed=!1,e.preventDefault(),e.stopPropagation()},KZ=function(e){C(this,Wi)._focusEventsAllowed=!0,e.preventDefault(),e.stopPropagation()},aE=function(e){const n=C(this,Wi)._uiManager._signal;e.addEventListener("focusin",z(this,Js,qZ).bind(this),{capture:!0,signal:n}),e.addEventListener("focusout",z(this,Js,KZ).bind(this),{capture:!0,signal:n}),e.addEventListener("contextmenu",Ti,{signal:n})},YZ=function(){const e=document.createElement("button");e.className="delete",e.tabIndex=0,e.setAttribute("data-l10n-id",`pdfjs-editor-remove-${C(this,Wi).editorType}-button`),z(this,Js,aE).call(this,e),e.addEventListener("click",n=>{C(this,Wi)._uiMa
|
|||
|
|
`))||null;u&&this.data.comb&&(u=u.replaceAll(/\s+/g,""));const f={userValue:o,formattedValue:u,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(r=document.createElement("textarea"),r.textContent=u??o,this.data.doNotScroll&&(r.style.overflowY="hidden")):(r=document.createElement("input"),r.type="text",r.setAttribute("value",u??o),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),ip.add(r),r.setAttribute("data-element-id",n),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=G_,this._setRequired(r,this.data.required),c&&(r.maxLength=c),r.addEventListener("input",d=>{e.setValue(n,{value:d.target.value}),this.setPropertyOnSiblings(r,"value",d.target.value,"value"),f.formattedValue=null}),r.addEventListener("resetform",d=>{const m=this.data.defaultFieldValue??"";r.value=f.userValue=m,f.formattedValue=null});let l=d=>{const{formattedValue:m}=f;m!=null&&(d.target.value=m),d.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){r.addEventListener("focus",m=>{var h;if(f.focused)return;const{target:p}=m;f.userValue&&(p.value=f.userValue),f.lastCommittedValue=p.value,f.commitKey=1,(h=this.data.actions)!=null&&h.Focus||(f.focused=!0)}),r.addEventListener("updatefromsandbox",m=>{this.showElementAndHideCanvas(m.target);const p={value(h){f.userValue=h.detail.value??"",e.setValue(n,{value:f.userValue.toString()}),h.target.value=f.userValue},formattedValue(h){const{formattedValue:y}=h.detail;f.formattedValue=y,y!=null&&h.target!==document.activeElement&&(h.target.value=y),e.setValue(n,{formattedValue:y})},selRange(h){h.target.setSelectionRange(...h.detail.selRange)},charLimit:h=>{var w;const{charLimit:y}=h.detail,{target:g}=h;if(y===0){g.removeAttribute("maxLength");return}g.setAttribute("maxLength",y);let v=f.userValue;!v||v.length<=y||(v=v.slice(0,y),g.value=f.userValue=v,e.setValue(n,{value:v}),(w=this.linkService.eventBus)==null||w.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:v,willCommit:!0,commitKey:1,selStart:g.selectionStart,selEnd:g.selectionEnd}}))}};this._dispatchEventFromSandbox(p,m)}),r.addEventListener("keydown",m=>{var y;f.commitKey=1;let p=-1;if(m.key==="Escape"?p=0:m.key==="Enter"&&!this.data.multiLine?p=2:m.key==="Tab"&&(f.commitKey=3),p===-1)return;const{value:h}=m.target;f.lastCommittedValue!==h&&(f.lastCommittedValue=h,f.userValue=h,(y=this.linkService.eventBus)==null||y.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:h,willCommit:!0,commitKey:p,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}}))});const d=l;l=null,r.addEventListener("blur",m=>{var h,y;if(!f.focused||!m.relatedTarget)return;(h=this.data.actions)!=null&&h.Blur||(f.focused=!1);const{value:p}=m.target;f.userValue=p,f.lastCommittedValue!==p&&((y=this.linkService.eventBus)==null||y.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:p,willCommit:!0,commitKey:f.commitKey,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}})),d(m)}),(i=this.data.actions)!=null&&i.Keystroke&&r.addEventListener("beforeinput",m=>{var A;f.lastCommittedValue=null;const{data:p,target:h}=m,{value:y,selectionStart:g,selectionEnd:v}=h;let w=g,x=v;switch(m.inputType){case"deleteWordBackward":{const T=y.substring(0,g).match(/\w*[^\w]*$/);T&&(w-=T[0].length);break}case"deleteWordForward":{const T=y.substring(g).match(/^[^\w]*\w*/);T&&(x+=T[0].length);break}case"deleteContentBackward":g===v&&(w-=1);break;case"deleteContentForward":g===v&&(x+=1);break}m.preventDefault(),(A=this.linkService.eventBus)==null||A.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:y,change:p||"",willCommit:!1,selStart:w,selEnd:x}})}),this._setEventListeners(r,f,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],m=>m.target.value)}if(l&&r.addEventListener("blur",l),this.data.comb){const m=(this.data.rect[2]-this.data.rect[0])/c;r.classList.add("comb"),r.style.letterSpacing=`
|
|||
|
|
`))n.push({name:"span",value:i,attributes:s});return r},UJ=function(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||(e.key==="Enter"||e.key==="Escape"&&C(this,vc))&&z(this,En,gE).call(this)},HJ=function(){if(C(this,yc)!==null)return;const{page:{view:e},viewport:{rawDims:{pageWidth:n,pageHeight:r,pageX:s,pageY:i}}}=C(this,gw);let a=!!C(this,Bg),o=a?C(this,Bg):C(this,vw);for(const p of C(this,mw))if(!o||et.intersect(p.data.rect,o)!==null){o=p.data.rect,a=!0;break}const c=et.normalizeRect([o[0],e[3]-o[1]+e[1],o[2],e[3]-o[3]+e[1]]),f=a?o[2]-o[0]+5:0,l=c[0]+f,d=c[1];$(this,yc,[100*(l-s)/n,100*(d-i)/r]);const{style:m}=C(this,hr);m.left=`${C(this,yc)[0]}%`,m.top=`${C(this,yc)[1]}%`},gE=function(){$(this,vc,!C(this,vc)),C(this,vc)?(z(this,En,vE).call(this),C(this,hr).addEventListener("click",C(this,jg)),C(this,hr).addEventListener("keydown",C(this,Fg))):(z(this,En,kO).call(this),C(this,hr).removeEventListener("click",C(this,jg)),C(this,hr).removeEventListener("keydown",C(this,Fg)))},vE=function(){C(this,ua)||this.render(),this.isVisible?C(this,vc)&&C(this,hr).classList.add("focused"):(z(this,En,HJ).call(this),C(this,hr).hidden=!1,C(this,hr).style.zIndex=parseInt(C(this,hr).style.zIndex)+1e3)},kO=function(){C(this,hr).classList.remove("focused"),!(C(this,vc)||!this.isVisible)&&(C(this,hr).hidden=!0,C(this,hr).style.zIndex=parseInt(C(this,hr).style.zIndex)-1e3)};class VJ extends Sr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=Vt.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const n of this.textContent){const r=document.createElement("span");r.textContent=n,e.append(r)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}get _isEditable(){return this.data.hasOwnCanvas}}var bw;class CFe extends Sr{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});B(this,bw,null)}render(){this.container.classList.add("lineAnnotation");const n=this.data,{width:r,height:s}=Ic(n.rect),i=this.svgFactory.create(r,s,!0),a=$(this,bw,this.svgFactory.createElement("svg:line"));return a.setAttribute("x1",n.rect[2]-n.lineCoordinates[0]),a.setAttribute("y1",n.rect[3]-n.lineCoordinates[1]),a.setAttribute("x2",n.rect[2]-n.lineCoordinates[2]),a.setAttribute("y2",n.rect[3]-n.lineCoordinates[3]),a.setAttribute("stroke-width",n.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return C(this,bw)}addHighlightArea(){this.container.classList.add("highlightArea")}}bw=new WeakMap;var ww;class AFe extends Sr{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});B(this,ww,null)}render(){this.container.classList.add("squareAnnotation");const n=this.data,{width:r,height:s}=Ic(n.rect),i=this.svgFactory.create(r,s,!0),a=n.borderStyle.width,o=$(this,ww,this.svgFactory.createElement("svg:rect"));return o.setAttribute("x",a/2),o.setAttribute("y",a/2),o.setAttribute("width",r-a),o.setAttribute("height",s-a),o.setAttribute("stroke-width",a||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),i.append(o),this.container.append(i),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return C(this,ww)}addHighlightArea(){this.container.classList.add("highlightArea")}}ww=new WeakMap;var _w;class RFe extends Sr{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});B(this,_w,null)}render(){this.container.classList.add("circleAnnotation");const n=this.data,{width:r,height:s}=Ic(n.rect),i=this.svgFactory.create(r,s,!0),a=n.borderStyle.width,o=$(this,_w,this.svgFactory.createElement("svg:ellipse"));return o.setAttribute("cx",r/2),o.setAttribute("cy",s/2),o.setAttribute("rx",r/2-a/2),o.setAt
|
|||
|
|
`);if(!i)return;const a=window.getSelection();if(!a.rangeCount)return;this.editorDiv.normalize(),a.deleteFromDocument();const o=a.getRangeAt(0);if(!i.includes(`
|
|||
|
|
`)){o.insertNode(document.createTextNode(i)),this.editorDiv.normalize(),a.collapseToStart();return}const{startContainer:c,startOffset:u}=o,f=[],l=[];if(c.nodeType===Node.TEXT_NODE){const g=c.parentElement;if(l.push(c.nodeValue.slice(u).replaceAll(OS,"")),g!==this.editorDiv){let v=f;for(const w of this.editorDiv.childNodes){if(w===g){v=l;continue}v.push(z(h=Ln,jc,bE).call(h,w))}}f.push(c.nodeValue.slice(0,u).replaceAll(OS,""))}else if(c===this.editorDiv){let g=f,v=0;for(const w of this.editorDiv.childNodes)v++===u&&(g=l),g.push(z(y=Ln,jc,bE).call(y,w))}$(this,Ki,`${f.join(`
|
|||
|
|
`)}${i}${l.join(`
|
|||
|
|
`)}`),z(this,kr,wE).call(this);const d=new Range;let m=f.reduce((g,v)=>g+v.length,0);for(const{firstChild:g}of this.editorDiv.childNodes)if(g.nodeType===Node.TEXT_NODE){const v=g.nodeValue.length;if(m<=v){d.setStart(g,m),d.setEnd(g,m);break}m-=v}a.removeAllRanges(),a.addRange(d)}get contentDiv(){return this.editorDiv}static deserialize(n,r,s){var o;let i=null;if(n instanceof VJ){const{data:{defaultAppearanceData:{fontSize:c,fontColor:u},rect:f,rotation:l,id:d},textContent:m,textPosition:p,parent:{page:{pageNumber:h}}}=n;if(!m||m.length===0)return null;i=n={annotationType:Vt.FREETEXT,color:Array.from(u),fontSize:c,value:m.join(`
|
|||
|
|
`),position:p,pageIndex:h-1,rect:f.slice(0),rotation:l,id:d,deleted:!1}}const a=super.deserialize(n,r,s);return $(a,Yi,n.fontSize),$(a,da,et.makeHexColor(...n.color)),$(a,Ki,z(o=Ln,jc,MO).call(o,n.value)),a.annotationElementId=n.id||null,$(a,Ug,i),a}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const r=Ln._internalPadding*this.parentScale,s=this.getRect(r,r),i=pn._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:C(this,da)),a={annotationType:Vt.FREETEXT,color:i,fontSize:C(this,Yi),value:z(this,kr,ZJ).call(this),pageIndex:this.pageIndex,rect:s,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?a:this.annotationElementId&&!z(this,kr,JJ).call(this,a)?null:(a.id=this.annotationElementId,a)}renderAnnotationElement(n){const r=super.renderAnnotationElement(n);if(this.deleted)return r;const{style:s}=r;s.fontSize=`calc(${C(this,Yi)}px * var(--scale-factor))`,s.color=C(this,da),r.replaceChildren();for(const a of C(this,Ki).split(`
|
|||
|
|
`)){const o=document.createElement("div");o.append(a?document.createTextNode(a):document.createElement("br")),r.append(o)}const i=Ln._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(i,i),popupContent:C(this,Ki)}),r}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}};Rw=new WeakMap,Pw=new WeakMap,Tw=new WeakMap,kw=new WeakMap,Nw=new WeakMap,da=new WeakMap,Ki=new WeakMap,Dw=new WeakMap,Yi=new WeakMap,Ug=new WeakMap,kr=new WeakSet,YJ=function(n){const r=i=>{this.editorDiv.style.fontSize=`calc(${i}px * var(--scale-factor))`,this.translate(0,-(i-C(this,Yi))*this.parentScale),$(this,Yi,i),z(this,kr,yE).call(this)},s=C(this,Yi);this.addCommands({cmd:r.bind(this,n),undo:r.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:ht.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},XJ=function(n){const r=i=>{$(this,da,this.editorDiv.style.color=i)},s=C(this,da);this.addCommands({cmd:r.bind(this,n),undo:r.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:ht.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},QJ=function(){var r;const n=[];this.editorDiv.normalize();for(const s of this.editorDiv.childNodes)n.push(z(r=Ln,jc,bE).call(r,s));return n.join(`
|
|||
|
|
`)},yE=function(){const[n,r]=this.parentDimensions;let s;if(this.isAttachedToDOM)s=this.div.getBoundingClientRect();else{const{currentLayer:i,div:a}=this,o=a.style.display,c=a.classList.contains("hidden");a.classList.remove("hidden"),a.style.display="hidden",i.div.append(this.div),s=a.getBoundingClientRect(),a.remove(),a.style.display=o,a.classList.toggle("hidden",c)}this.rotation%180===this.parentRotation%180?(this.width=s.width/n,this.height=s.height/r):(this.width=s.height/n,this.height=s.width/r),this.fixAndSetPosition()},jc=new WeakSet,bE=function(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(OS,"")},wE=function(){if(this.editorDiv.replaceChildren(),!!C(this,Ki))for(const n of C(this,Ki).split(`
|
|||
|
|
`)){const r=document.createElement("div");r.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(r)}},ZJ=function(){return C(this,Ki).replaceAll(" "," ")},MO=function(n){return n.replaceAll(" "," ")},JJ=function(n){const{value:r,fontSize:s,color:i,pageIndex:a}=C(this,Ug);return this._hasBeenMoved||n.value!==r||n.fontSize!==s||n.color.some((o,c)=>o!==i[c])||n.pageIndex!==a},B(Ln,jc),Le(Ln,"_freeTextDefaultContent",""),Le(Ln,"_internalPadding",0),Le(Ln,"_defaultColor",null),Le(Ln,"_defaultFontSize",10),Le(Ln,"_type","freetext"),Le(Ln,"_editorType",Vt.FREETEXT);let OO=Ln;var Ow,rd,fa,ei,eee,_E,tee,nee,IO;class LO{constructor(e,n=0,r=0,s=!0){B(this,ei);B(this,Ow);B(this,rd,[]);B(this,fa,[]);let i=1/0,a=-1/0,o=1/0,c=-1/0;const u=10**-4;for(const{x:y,y:g,width:v,height:w}of e){const x=Math.floor((y-n)/u)*u,A=Math.ceil((y+v+n)/u)*u,T=Math.floor((g-n)/u)*u,R=Math.ceil((g+w+n)/u)*u,E=[x,T,R,!0],k=[A,T,R,!1];C(this,rd).push(E,k),i=Math.min(i,x),a=Math.max(a,A),o=Math.min(o,T),c=Math.max(c,R)}const f=a-i+2*r,l=c-o+2*r,d=i-r,m=o-r,p=C(this,rd).at(s?-1:-2),h=[p[0],p[2]];for(const y of C(this,rd)){const[g,v,w]=y;y[0]=(g-d)/f,y[1]=(v-m)/l,y[2]=(w-m)/l}$(this,Ow,{x:d,y:m,width:f,height:l,lastPoint:h})}getOutlines(){C(this,rd).sort((n,r)=>n[0]-r[0]||n[1]-r[1]||n[2]-r[2]);const e=[];for(const n of C(this,rd))n[3]?(e.push(...z(this,ei,IO).call(this,n)),z(this,ei,tee).call(this,n)):(z(this,ei,nee).call(this,n),e.push(...z(this,ei,IO).call(this,n)));return z(this,ei,eee).call(this,e)}}Ow=new WeakMap,rd=new WeakMap,fa=new WeakMap,ei=new WeakSet,eee=function(e){const n=[],r=new Set;for(const a of e){const[o,c,u]=a;n.push([o,c,a],[o,u,a])}n.sort((a,o)=>a[1]-o[1]||a[0]-o[0]);for(let a=0,o=n.length;a<o;a+=2){const c=n[a][2],u=n[a+1][2];c.push(u),u.push(c),r.add(c),r.add(u)}const s=[];let i;for(;r.size>0;){const a=r.values().next().value;let[o,c,u,f,l]=a;r.delete(a);let d=o,m=c;for(i=[o,u],s.push(i);;){let p;if(r.has(f))p=f;else if(r.has(l))p=l;else break;r.delete(p),[o,c,u,f,l]=p,d!==o&&(i.push(d,m,o,m===c?c:u),d=o),m=m===c?u:c}i.push(d,m)}return new IFe(s,C(this,Ow))},_E=function(e){const n=C(this,fa);let r=0,s=n.length-1;for(;r<=s;){const i=r+s>>1,a=n[i][0];if(a===e)return i;a<e?r=i+1:s=i-1}return s+1},tee=function([,e,n]){const r=z(this,ei,_E).call(this,e);C(this,fa).splice(r,0,[e,n])},nee=function([,e,n]){const r=z(this,ei,_E).call(this,e);for(let s=r;s<C(this,fa).length;s++){const[i,a]=C(this,fa)[s];if(i!==e)break;if(i===e&&a===n){C(this,fa).splice(s,1);return}}for(let s=r-1;s>=0;s--){const[i,a]=C(this,fa)[s];if(i!==e)break;if(i===e&&a===n){C(this,fa).splice(s,1);return}}},IO=function(e){const[n,r,s]=e,i=[[n,r,s]],a=z(this,ei,_E).call(this,s);for(let o=0;o<a;o++){const[c,u]=C(this,fa)[o];for(let f=0,l=i.length;f<l;f++){const[,d,m]=i[f];if(!(u<=d||m<=c)){if(d>=c){if(m>u)i[f][1]=u;else{if(l===1)return[];i.splice(f,1),f--,l--}continue}i[f][2]=c,m>u&&i.push([n,u,m])}}}return i};class ree{toSVGPath(){throw new Error("Abstract method `toSVGPath` must be implemented.")}get box(){throw new Error("Abstract getter `box` must be implemented.")}serialize(e,n){throw new Error("Abstract method `serialize` must be implemented.")}get free(){return this instanceof FO}}var Mw,Hg;class IFe extends ree{constructor(n,r){super();B(this,Mw);B(this,Hg);$(this,Hg,n),$(this,Mw,r)}toSVGPath(){const n=[];for(const r of C(this,Hg)){let[s,i]=r;n.push(`M${s} ${i}`);for(let a=2;a<r.length;a+=2){const o=r[a],c=r[a+1];o===s?(n.push(`V${c}`),i=c):c===i&&(n.push(`H${o}`),s=o)}n.push("Z")}return n.join(" ")}serialize([n,r,s,i],a){const o=[],c=s-n,u=i-r;for(const f of C(this,Hg)){const l=new Array(f.length);for(let d=0;d<f.length;d+=2)l[d]=n+f[d]*c,l[d+1]=i-f[d+1]*u;o.push(l)}return o}get box(){return C(this,Mw)}}Mw=new WeakMap,Hg=new WeakMap;var sl,wc,Vg,Wg,il,Bt,mh,gh,Lw,Iw,Gg,qg,sd,$w,E1,C1,Fw,$O;const Jl=class Jl{constructor({x:e,y:n},r,s,i,a,o=0){B(this,Fw);B(this,sl);B(this,wc,[]);B(this,Vg);B(this,Wg);B(this,il,[]);B(this,Bt,new Float64Array(18));B(this,mh);B(this,gh);B(this,Lw);B(this,Iw);B(this,Gg);B(this,qg);B(this,sd,[]);$(this,sl
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cBe(t,e){if(t){if(typeof t=="string")return zU(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zU(t,e)}}function zU(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function uBe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,a,o;try{for(n=n.call(t);!(s=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));s=!0);}catch(c){i=!0,o=c}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw o}}return r}}function dBe(t){if(Array.isArray(t))return t}var UU=(0,iBe.getSecurePrefix)(),fBe=function(){var e={};if(typeof window<"u")for(var n=new sBe.default,r=0,s=Object.entries(localStorage);r<s.length;r++){var i=aBe(s[r],2),a=i[0],o=i[1];if(a.startsWith(UU)){var c=a.replace(UU,"")[0],u=a.replace(/[.][bjns][.]/,"."),f=n.decrypt(o),l=null;if(f!=null)switch(c){case"b":l=f==="true";break;case"j":try{l=JSON.parse(f)}catch{l=null}break;case"n":try{l=Number(f)}catch{l=null}break;default:l=f}e[u]=l}}return e},hBe=fBe;fR.default=hBe;Object.defineProperty(i2,"__esModule",{value:!0});var No=i2.default=void 0,pBe=tte(K_),mBe=tte(fR),gBe=bl;function tte(t){return t&&t.__esModule?t:{default:t}}function vBe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yBe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bBe(t,e,n){return e&&yBe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function wBe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s1(t){"@babel/helpers - typeof";return s1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s1(t)}var kE=(0,gBe.getSecurePrefix)(),_Be=function(e){return s1(e)==="object"?"j":typeof e=="boolean"?"b":typeof e=="number"?"n":"s"},HU=function(e,n){var r=_Be(n);return kE+"".concat(r,".")+e},xBe=function(){function t(){vBe(this,t),wBe(this,"_localStorageItems",{}),this._localStorageItems=(0,mBe.default)()}return bBe(t,[{key:"setItem",value:function(n,r){if(r==null)this.removeItem(n);else{var s=s1(r)==="object"?JSON.stringify(r):r+"",i=HU(n,r),a=kE+n;n!=null&&(this._localStorageItems[a]=r);var o=new pBe.default;localStorage.setItem(i,o.encrypt(s))}}},{key:"getItem",value:function(n){var r,s=kE+n;return(r=this._localStorageItems[s])!==null&&r!==void 0?r:null}},{key:"removeItem",value:function(n){var r=kE+n,s=this._localStorageItems[r],i=HU(n,s);this._localStorageItems[r]!==void 0&&delete this._localStorageItems[r],localStorage.removeItem(i)}},{key:"clear",value:function(){this._localStorageItems={},localStorage.clear()}}]),t}(),SBe=new xBe,EBe=SBe;No=i2.default=EBe;const CBe={theme:"system",setTheme:()=>null},ABe=_.createContext(CBe);function RBe({children:t,defaultTheme:e="system",storageKey:n="vite-ui-theme",...r}){const[s,i]=_.useState(()=>No.getItem(n)||e);_.useEffect(()=>{const o=window.document.documentElement;if(o.classList.remove("light","dark"),s==="system"){const c=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";o.classList.add(c);return}o.classList.add(s)},[s]);const a={theme:s,setTheme:o=>{No.setItem(n,o),i(o)}};return P.jsx(ABe.Provider,{...r,value:a,children:t})}const PBe=_.createContext(null),nte=({children:t})=>{const[e,n]=_.useState(null),[r,s]=_.useState(!1),i=_.useCallback(u=>{n(u),s(!0)},[s,n]),a=()=>{var u;(u=e==null?void 0:e.onConfirm)==null||u.call(e),s(!1)},o=()=>{var u;(u=e==null?void 0:e.onCancel)==null||u.call(e),s(!1)},c=_.useMemo(()=>({show:i}),[i]);return P.jsxs(PBe.Provider,{value:c,ch
|
|||
|
|
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||e[n]&&Wze[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},KU=Symbol("internals");function zy(t){return t&&String(t).trim().toLowerCase()}function DE(t){return t===!1||t==null?t:ve.isArray(t)?t.map(DE):String(t)}function qze(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Kze=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Tk(t,e,n,r,s){if(ve.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!ve.isString(e)){if(ve.isString(r))return e.indexOf(r)!==-1;if(ve.isRegExp(r))return r.test(e)}}function Yze(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Xze(t,e){const n=ve.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,a){return this[r].call(this,e,s,i,a)},configurable:!0})})}let ki=class{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function i(o,c,u){const f=zy(c);if(!f)throw new Error("header name must be a non-empty string");const l=ve.findKey(s,f);(!l||s[l]===void 0||u===!0||u===void 0&&s[l]!==!1)&&(s[l||c]=DE(o))}const a=(o,c)=>ve.forEach(o,(u,f)=>i(u,f,c));if(ve.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(ve.isString(e)&&(e=e.trim())&&!Kze(e))a(Gze(e),n);else if(ve.isHeaders(e))for(const[o,c]of e.entries())i(c,o,r);else e!=null&&i(n,e,r);return this}get(e,n){if(e=zy(e),e){const r=ve.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return qze(s);if(ve.isFunction(n))return n.call(this,s,r);if(ve.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=zy(e),e){const r=ve.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Tk(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function i(a){if(a=zy(a),a){const o=ve.findKey(r,a);o&&(!n||Tk(r,r[o],o,n))&&(delete r[o],s=!0)}}return ve.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!e||Tk(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,r={};return ve.forEach(this,(s,i)=>{const a=ve.findKey(r,i);if(a){n[a]=DE(s),delete n[i];return}const o=e?Yze(i):String(i).trim();o!==i&&delete n[i],n[o]=DE(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return ve.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&ve.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|||
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[KU]=this[KU]={accessors:{}}).accessors,s=this.prototype;function i(a){const o=zy(a);r[o]||(Xze(s,a),r[o]=!0)}return ve.isArray(e)?e.forEach(i):i(e),this}};ki.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ve.reduceDescriptors(ki.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});ve.freezeMethods(ki);function kk(t,e){const n=this||Q_,r=e||n,s=ki.from(r.headers);let i=r.data;return ve.forEach(t,function(o){i=o.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function vte(t){return!!(t&&t.__CANCEL__)}function Xv(t,e,n){wt.call(this,t??"canceled",wt.ERR_CANCELED,e,n),this.name="CanceledError"}ve.inherits(Xv,wt,{__CANCEL__:!0});function yte(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new wt("Request failed with status code "+n.status,[wt.ERR_BAD_REQUEST,wt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Qze(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Zze(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=r[i];a||(a=u),n[s]=c,r[s]=u;let l=i,d=0;for(;l!==s;)d+=n[l++],l=l%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),u-a<e)return;const m=f&&u-f;return m?Math.round(d*1e3/m):void 0}}function Jze(t,e){let n=0,r=1e3/e,s,i;const a=(u,f=Date.now())=>{n=f,s=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const f=Date.now(),l=f-n;l>=r?a(u,f):(s=u,i||(i=setTimeout(()=>{i=null,a(s)},r-l)))},()=>s&&a(s)]}const i1=(t,e,n=3)=>{let r=0;const s=Zze(50,250);return Jze(i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,c=a-r,u=s(c),f=a<=o;r=a;const l={loaded:a,total:o,progress:o?a/o:void 0,bytes:c,rate:u||void 0,estimated:u&&o&&f?(o-a)/u:void 0,event:i,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(l)},n)},YU=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},XU=t=>(...e)=>ve.asap(()=>t(...e)),e4e=Os.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Os.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Os.origin),Os.navigator&&/(msie|trident)/i.test(Os.navigator.userAgent)):()=>!0,t4e=Os.hasStandardBrowserEnv?{write(t,e,n,r,s,i){const a=[t+"="+encodeURIComponent(e)];ve.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ve.isString(r)&&a.push("path="+r),ve.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function n4e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function r4e(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function bte(t,e,n){let r=!n4e(e);return t&&(r||n==!1)?r4e(t,e):e}const QU=t=>t instanceof ki?{...t}:t;function ap(t,e){e=e||{};const n={};function r(u,f,l,d){return ve.isPlainObject(u)&&ve.isPlainObject(f)?ve.merge.call({caseless:d},u,f):ve.isPlainObject(f)?ve.merge({},f):ve.isArray(f)?f.slice():f}function s(u,f,l,d){if(ve.isUndefined(f)){if(!ve.isUndefined(u))return r(void 0,u,l,d)}else return r(u,f,l,d)}function i(u,f){if(!ve.isUndefined(f))return r(void 0,f)}function a(u,f){if(ve.isUndefined(f)){if(!ve.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function o(u,f,l){if(l in e)return r(u,f);if(l in t)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPa
|
|||
|
|
`+i.map(e5).join(`
|
|||
|
|
`):" "+e5(i[0]):"as no adapter specified";throw new wt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:hM};function Nk(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Xv(null,t)}function t5(t){return Nk(t),t.headers=ki.from(t.headers),t.data=kk.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ste.getAdapter(t.adapter||Q_.adapter)(t).then(function(r){return Nk(t),r.data=kk.call(t,t.transformResponse,r),r.headers=ki.from(r.headers),r},function(r){return vte(r)||(Nk(t),r&&r.response&&(r.response.data=kk.call(t,t.transformResponse,r.response),r.response.headers=ki.from(r.response.headers))),Promise.reject(r)})}const Ete="1.8.4",yR={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{yR[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const n5={};yR.transitional=function(e,n,r){function s(i,a){return"[Axios v"+Ete+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,o)=>{if(e===!1)throw new wt(s(a," has been removed"+(n?" in "+n:"")),wt.ERR_DEPRECATED);return n&&!n5[a]&&(n5[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,a,o):!0}};yR.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function g4e(t,e,n){if(typeof t!="object")throw new wt("options must be an object",wt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],a=e[i];if(a){const o=t[i],c=o===void 0||a(o,i,t);if(c!==!0)throw new wt("option "+i+" must be "+c,wt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new wt("Unknown option "+i,wt.ERR_BAD_OPTION)}}const OE={assertOptions:g4e,validators:yR},Va=OE.validators;let Ih=class{constructor(e){this.defaults=e,this.interceptors={request:new qU,response:new qU}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|||
|
|
`+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ap(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&OE.assertOptions(r,{silentJSONParsing:Va.transitional(Va.boolean),forcedJSONParsing:Va.transitional(Va.boolean),clarifyTimeoutError:Va.transitional(Va.boolean)},!1),s!=null&&(ve.isFunction(s)?n.paramsSerializer={serialize:s}:OE.assertOptions(s,{encode:Va.function,serialize:Va.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),OE.assertOptions(n,{baseUrl:Va.spelling("baseURL"),withXsrfToken:Va.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&ve.merge(i.common,i[n.method]);i&&ve.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=ki.concat(a,i);const o=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(c=c&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let f,l=0,d;if(!c){const p=[t5.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,u),d=p.length,f=Promise.resolve(n);l<d;)f=f.then(p[l++],p[l++]);return f}d=o.length;let m=n;for(l=0;l<d;){const p=o[l++],h=o[l++];try{m=p(m)}catch(y){h.call(this,y);break}}try{f=t5.call(this,m)}catch(p){return Promise.reject(p)}for(l=0,d=u.length;l<d;)f=f.then(u[l++],u[l++]);return f}getUri(e){e=ap(this.defaults,e);const n=bte(e.baseURL,e.url,e.allowAbsoluteUrls);return pte(n,e.params,e.paramsSerializer)}};ve.forEach(["delete","get","head","options"],function(e){Ih.prototype[e]=function(n,r){return this.request(ap(r||{},{method:e,url:n,data:(r||{}).data}))}});ve.forEach(["post","put","patch"],function(e){function n(r){return function(i,a,o){return this.request(ap(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ih.prototype[e]=n(),Ih.prototype[e+"Form"]=n(!0)});let v4e=class Cte{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(o=>{r.subscribe(o),i=o}).then(s);return a.cancel=function(){r.unsubscribe(i)},a},e(function(i,a,o){r.reason||(r.reason=new Xv(i,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Cte(function(s){e=s}),cancel:e}}};function y4e(t){return function(n){return t.apply(null,n)}}function b4e(t){return ve.isObject(t)&&t.isAxiosError===!0}const pM={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,RequestHe
|
|||
|
|
If you continue, you will lose the changes.`,confirm_text:"Continue",cancel_text:"Cancel"}},main_menu:{home:"Home",settings:"Settings",dealers:"Dealers",catalog:"Catalog",quotes:"Quotes",orders:"Orders",search_placeholder:"Type here for search quotes and articles",user:{user_menu:"User menu",my_account:"My account",profile:"Profile",settings:"Settings",support:"Support",logout:"Logout"},logout_dialog:{title:"Confirm",description:"Are you sure you want to log out?",confirm_label:"Log out",cancel_label:"Cancel"}},login_page:{title:"Partner intranet",description:"Enter your email address and password to login",email_label:"Email",email_placeholder:"myemail@sample.com",password_label:"Password",forgotten_password:"Forgot your password?",become_dealer:"Do you want to become a Uecko partner?",contact_us:"Contact us",login:"Log in"},dashboard:{welcome:"Welcome"},catalog:{list:{title:"Catalog of articles",columns:{description:"Description",points:"Points",retail_price:"Retail price",quantity:"quantity"}}},quotes:{list:{title:"Quotes",subtitle:"",tabs_title:"Status",tabs:{all:"All",draft:"Draft",ready:"Ready",delivered:"Delivered",accepted:"Accepted",rejected:"Rejected",archived:"Archived"},columns:{date:"Date",date_sent:"Sent to Uecko",reference:"Reference",status:"Status",customer_reference:"Customer Ref.",customer_information:"Customer",total_price:"Imp. total",actions:{edit:"Edit quote",sent_to:"Send to Uecko"}},resume:{title:"Quote",download_quote:"Download quote",tabs:{resume:"Resume",preview:"Preview"},quote_information:"Quote Information",customer_information:"Customer Information",payment_information:"Payment Information",price_information:"Quote totals"}},create:{title:"New quote",tabs:{general:"General data",items:"Quote items",preview:"Quote preview",documents:"Documents",history:"History"},form_groups:{general:{title:"General Data",desc:"General data and quote customer"},status:{title:"Status",desc:"Quote status"},items:{title:"Quote Items",desc:"Quote detail lines. Use the catalog to make it easier to fill in the content."},documents:{title:"Attached Documents",desc:"Attach documents such as photos, drawings, sketches, etc. to your quotation."},history:{title:"History",desc:"Quote history"}},edit:{title:"Quote"}},edit:{title:"Quote",buttons:{save_quote:"Save quote"}},duplicate_action:{toast_success:"Quote duplicated"},downloading_dialog:{title:"Downloading quote",description:"Please wait while your quotation is generated and downloaded in PDF format...",progress:{label:"Download is in {{status}}",status_in_progress:"in progress",status_stopped:"stopped",value_label:"Elapsed time in seconds {{elapsed}}"},cancel_button:"Cancel the download",toast_success:"Quote downloaded"},catalog_picker_dialog:{title:"Select catalog items",description:"To complete your quote, you can add items from the catalog.",toast_article_added:"Catalog item added:"},blocks_picker_dialog:{title:"Select a text block",description:"To complete your quote, you can default text blocks.",toast_article_added:"Text block added:"},quote_status_editor:{trigger_button:"Change quote status",title:"Change quote status",status:{draft:{title:"Draft",description:"The quote is in the initial stages of creation."},ready:{title:"Ready",description:"The quote is completed and ready to be delivered to the customer."},delivered:{title:"Delivered",description:"The quote has been sent to the client and a response is awaited."},accepted:{title:"Accepted",description:"The customer has approved the quote."},rejected:{title:"Rejected",description:"The customer has not accepted the quotation."},archived:{title:"Archived",description:"The quote is archived."}},submit_button:"Change status",toast_status_changed:"Quote status changed to: {{newStatus}}"},status:{draft:"Draft",ready:"Ready",delivered:"Delivered",accepted:"Accepted",rejected:"Rejected",archived:"Archived"},form_fields:{date:{label:"Date",desc:"Quote's date",placeholder:""},reference:{label:"Reference",desc:"Quote reference",placeholder:""},status:{label:"Status",desc:"Quote status",placeholder:""},lang_code:{lab
|
|||
|
|
Street and number
|
|||
|
|
zip code and city or state...`},payment_method:{label:"Payment method",placeholder:"",desc:"Method of payment for this quote"},notes:{label:"Notes",placeholder:"",desc:"Quote's notes"},validity:{label:"Validity time",placeholder:"",desc:"Quote's validity time"},subtotal_price:{label:"Subtotal",placeholder:"",desc:"Quote subtotal"},discount:{label:"Discount (%)",placeholder:"",desc:"Percentage discount"},discount_value:{label:"Discount ({{value}}%)",placeholder:"",desc:"Percentage discount"},discount_price:{label:"Discount price",placeholder:"",desc:"Percentage discount price"},before_tax_price:{label:"Before tax price",placeholder:"",desc:"Before tax price"},tax:{label:"Tax (%)",placeholder:"",desc:"Percentage Tax"},tax_value:{label:"Tax ({{value}}%)",placeholder:"",desc:"Percentage Tax"},tax_price:{label:"Tax price",placeholder:"",desc:"Percentage tax price"},total_price:{label:"Total price",placeholder:"",desc:"Quote total price"},items:{quantity:{label:"Quantity",placeholder:"",desc:""},description:{label:"Description",placeholder:"",desc:""},unit_price:{label:"Unit price",placeholder:"",desc:"Item unit price"},subtotal_price:{label:"Subtotal",placeholder:"",desc:""},discount:{label:"Dto (%)",placeholder:"",desc:"Percentage discount"},total_price:{label:"Total price",placeholder:"",desc:"Total price with percentage discount"}}}},settings:{edit:{title:"Settings",subtitle:"",tabs:{profile:"Profile settings",quotes:"Quote settings",legal:"Legal settings"}},form_fields:{image:{label:"Logotype",placeholder:"",desc:""},contact_information:{label:"Your contact information",placeholder:"",desc:"Your contact information as a dealer that will appear on the quotes given to your customers."},default_tax:{label:"Default tax (%)",placeholder:"",desc:"Default tax rate for your quotes"},default_legal_terms:{label:"Legal terms",placeholder:"",desc:"Legal information to be included at the end of your quotes"},default_payment_method:{label:"Payment method",placeholder:"",desc:"Default payment method to be used for new quotes"},default_notes:{label:"Notes",placeholder:"",desc:"Default notes to be used for new quotes"},default_quote_validity:{label:"Quote validity",placeholder:"",desc:"Default validity time to be used for new quotes"}}}},q4e={translation:G4e},K4e={common:{loading:"Cargando...",required:"obligatorio",cancel:"Cancelar",no:"No",yes:"Sí",save:"Guardar",save_close:"Guardar y Cerrar",accept:"Aceptar",discard:"Descartar",hide:"Ocultar",back:"Volver",upload:"Cargar",continue:"Continuar",close:"Cerrar",more:"More",add:"Añadir",sort_asc:"Asc",sort_asc_description:"En order ascendente. Click para ordenar descendentemente.",sort_desc:"Desc",sort_desc_description:"En orden descendente. Click para ordenar ascendentemente.",sort_none_description:"Sin orden. Click para ordenar ascendentemente.",rows_selected:"{{count}} fila(s) seleccionadas.",rows_selected_of_total:"{{count}} de {{total}} fila(s) seleccionadas.",rows_per_page:"Filas por página",num_page_of_total:"Página {{count}} de {{total}}",go_to_first_page:"Ir a la primera página",go_to_prev_page:"Ir a la página anterior",go_to_next_page:"Ir a la página siguiente",go_to_last_page:"Ir a la última página",error:"Error",actions:"Acciones",open_menu:"Abrir el menú",duplicate_row:"Duplicar",duplicate_selected_rows:"Duplicar",duplicate_selected_rows_tooltip:"Duplica las fila(s) seleccionadas(s)",append_empty_row:"Añadir fila",append_empty_row_tooltip:"Añadir una fila vacía",append_article:"Añadir artículo",append_article_tooltip:"Elegir un artículo del catálogo y añadirlo",append_block:"Añadir bloque de texto",append_block_tooltip:"Elegir un bloque de texto y añadirlo",move_row:"Mover fila",remove_row:"Eliminar",remove_selected_rows:"Eliminar",remove_selected_rows_tooltip:"Elimina las fila(s) seleccionadas(s)",reset_selected_rows:"Quitar selection",reset_selected_rows_tooltip:"Dejar de seleccionar la(s) fila(s)",insert_row_above:"Insertar fila encima",insert_row_below:"Insertar fila debajo",pick_date:"Elige una fecha",required_field:"Este campo es obligatorio",unsaved_
|
|||
|
|
Si continúa, perderá los cambios.`,confirm_text:"Continuar",cancel_text:"No continuar"}},main_menu:{home:"Inicio",settings:"Ajustes",dealers:"Distribuidores",catalog:"Catálogo",quotes:"Cotizaciones",orders:"Pedidos",search_placeholder:"Buscar productos, cotizaciones, etc...",user:{user_menu:"Menú del usuario",my_account:"Mi cuenta",profile:"Perfil",settings:"Ajustes",support:"Soporte",logout:"Salir"},logout_dialog:{title:"Salir de la cuenta",description:"¿Desea salir de su cuenta?",confirm_label:"Salir",cancel_label:"Cancelar"}},login_page:{title:"Presupuestador para distribuidores",description:"Introduzca su dirección de correo electrónico y contraseña para acceder",email_label:"Email",email_placeholder:"micorreo@ejemplo.com",password_label:"Contraseña",forgotten_password:"¿Has olvidado tu contraseña?",become_dealer:"¿Quieres ser distribuidor de Uecko?",contact_us:"Contacta con nosotros",login:"Entrar"},dashboard:{welcome:"Bienvenido"},catalog:{list:{title:"Catálogo de artículos",columns:{description:"Descripción",points:"Puntos",retail_price:"PVP",quantity:"Cantidad"}}},quotes:{list:{title:"Cotizaciones",subtitle:"",tabs_title:"Estados",tabs:{all:"Todas",draft:"Borradores",ready:"Preparados",delivered:"Entregado",accepted:"Aceptados",rejected:"Rechazados",archived:"Archivados"},columns:{date:"Fecha",date_sent:"Enviado a Uecko",reference:"Referencia",status:"Estado",customer_reference:"Ref. cliente",customer_information:"Cliente",total_price:"Imp. total",actions:{edit:"Editar",sent_to:"Enviar a Uecko"}},resume:{title:"Cotización",download_quote:"Descargar",tabs:{resume:"Resumen",preview:"Previsualización"},quote_information:"Información",customer_information:"Cliente",payment_information:"Pago",price_information:"Importes"}},create:{title:"Nueva cotización",tabs:{general:"Datos generales",items:"Contenido",preview:"Vista previa",documents:"Documentos",history:"Historial"},form_groups:{general:{title:"Datos generales",desc:"Datos generales y cliente al que va la cotización"},status:{title:"Estado",desc:"Estado de la cotización"},items:{title:"Contenido de la cotización",desc:"Líneas de detalle de la cotización. Ayúdese del catálogo para rellenar más fácilmente el contenido."},documents:{title:"Documentos",desc:"Añada adjuntar con su cotización documentos como fotos, planos, croquis, etc."},history:{title:"Historial",desc:"Historial de la cotización"}},edit:{title:"Cotización"}},edit:{title:"Cotización",buttons:{save_quote:"Guardar cotización"}},duplicate_action:{toast_success:"Cotización duplicada"},downloading_dialog:{title:"Descargando cotización",description:"Espere mientras se genera la cotización y se descarga en formato PDF...",progress:{label:"La descarga está {{status}}",status_in_progress:"en marcha",status_stopped:"parada",value_label:"Elapsed time in seconds {{elapsed}}"},cancel_button:"Cancelar la descarga",toast_success:"Cotización descargada"},catalog_picker_dialog:{title:"Seleccionar artículos del catálogo",description:"Para rellenar su cotización, puede añadir artículos del catálogo.",toast_article_added:"Artículo del catálogo añadido:"},blocks_picker_dialog:{title:"Selecctionar bloques de texto",description:"Para ayudar a rellenar la cotización, puede añadir bloques de texto predefinidos de esta lista.",toast_article_added:"Bloque de texto añadido:"},quote_sent_to_editor:{trigger_button:"Enviar a Uecko",title:"Enviar la cotización a Uecko",description:"¿Desea enviar esta cotización a Uecko? Esta acción no se puede deshacer.",submit_button:"Enviar",toast_status_changed:"Cotización enviada a Uecko"},quote_status_editor:{trigger_button:"Cambiar el estado",title:"Cambiar el estado de la cotización",status:{draft:{title:"Borrador",description:"La cotización está en fase inicial de creación."},ready:{title:"Preparado",description:"La cotización está completo y listo para ser entregado al cliente."},delivered:{title:"Entregado",description:"La cotización ha sido enviado al cliente y se espera su respuesta."},accepted:{title:"Aceptado",description:"
|
|||
|
|
Calle y número
|
|||
|
|
Código postal y ciudad...`},payment_method:{label:"Forma de pago",placeholder:"placeholder",desc:"Forma de pago que se utilizará en esta cotización"},notes:{label:"Notas",placeholder:"",desc:"Notas a incluir en la cotización"},validity:{label:"Validez de la cotización",placeholder:"",desc:"Validez de la cotización"},subtotal_price:{label:"Importe neto",placeholder:"",desc:""},discount:{label:"Descuento (%)",placeholder:"",desc:"Porcentaje de descuento"},discount_value:{label:"Descuento ({{value}}%)",placeholder:"",desc:"Porcentaje de descuento"},discount_price:{label:"Imp. descuento",placeholder:"",desc:"Importe del descuento"},before_tax_price:{label:"Base imponible",placeholder:"",desc:""},tax:{label:"IVA (%)",placeholder:"",desc:"Porcentaje de IVA"},tax_value:{label:"IVA ({{value}}%)",placeholder:"",desc:"Porcentaje de IVA"},tax_price:{label:"Imp. IVA",placeholder:"",desc:"Importe del IVA"},total_price:{label:"Total price",placeholder:"",desc:"Quote total price"},items:{quantity:{label:"Cantidad",placeholder:"",desc:""},description:{label:"Descripción",placeholder:"",desc:""},unit_price:{label:"Imp. unitario",placeholder:"",desc:"Importe unitario del artículo"},subtotal_price:{label:"Subtotal",placeholder:"",desc:""},discount:{label:"Dto (%)",placeholder:"",desc:"Porcentaje de descuento"},total_price:{label:"Imp. total",placeholder:"",desc:"Importe total con el descuento ya aplicado"}}}},settings:{edit:{title:"Ajustes",subtitle:"",tabs:{profile:"Ajustes de perfil",quotes:"Ajustes legales",legal:"Ajustes para cotizaciones"}},form_fields:{logo:{label:"Logotipo",placeholder:"",desc:"Este logotipo aparecerá en las propuestas exportadas en PDF",requirements:"Se permiten ficheros JPG o PNG. Las dimensiones del logotipo deben ser 200x100 píxeles o proporcionales.",upload:"Subir logotipo",invalid_format:"Sólo se permiten ficheros JPG o PNG",invalid_dimensions:"Las dimensiones del logotipo deben ser 200x100 píxeles o proporcionales."},contact_information:{label:"Información de contacto",placeholder:"",desc:"Esta información de contacto aparecerá en las cotizaciones que entregue a sus clientes."},default_tax:{label:"IVA por defecto (%)",placeholder:"",desc:"Porcentaje de IVA por defecto en las cotizaciones"},default_legal_terms:{label:"Cláusulas legales",placeholder:"",desc:"Texto de texto legal que desee incluir en todas las cotizaciones nuevas"},default_payment_method:{label:"Forma de pago",placeholder:"",desc:"Texto para la forma de pago que se utilizará en las cotizaciones nuevas"},default_notes:{label:"Notas",placeholder:"",desc:"Notas a incluir en todas las cotizaciones nuevas"},default_quote_validity:{label:"Validez por defecto",placeholder:"",desc:"Texto para indicar el tiempo de validez de la cotización"}}},support:{modal:{title:"Enviar una incidencia",subtitle:"Utiliza este formulario para informar sobre cualquier problema que hayas encontrado mientras usabas la aplicación. Nuestro equipo de desarrollo revisará tu incidencia y tratará de resolverla."},form_fields:{}}},Y4e={translation:K4e};vs.use(Dte).use(E$e).init({detection:{order:["navigator"]},debug:!1,fallbackLng:"es",interpolation:{escapeValue:!1},resources:{ca:W4e,en:q4e,es:Y4e}});function X4e(){const t=new Ede({defaultOptions:{queries:{retry:!1,staleTime:1e4}}});return P.jsx(C$e,{i18n:vs,children:P.jsx(Tde,{client:t,children:P.jsx(kMe,{dataSource:A4e("https://presupuestos.uecko.com:13001/api/v1"),children:P.jsx(lde,{authActions:C4e("https://presupuestos.uecko.com:13001/api/v1"),children:P.jsxs(RBe,{defaultTheme:"light",storageKey:"vite-ui-theme",children:[P.jsx(eDe,{delayDuration:0,children:P.jsx(nte,{children:P.jsx(_.Suspense,{fallback:P.jsx(As,{}),children:P.jsx(VBe,{})})})}),P.jsx(QX,{}),P.jsx(v3e,{}),P.jsx(TBe,{initialIsOpen:!1})]})})})})})}Dk.createRoot(document.getElementById("uecko")).render(P.jsx(se.StrictMode,{children:P.jsx(X4e,{})}));export{KW as $,oAe as A,ao as B,$fe as C,tp as D,aAe as E,_K as F,aD as G,lD as H,kUe as I,xn as J,oke as K,NUe as L,zC as M,F$ as N,ake as O,qPe as P,t5e as Q,ir as R,OTe as S,cke as T,Pb
|