@gkd-kit/docs 0.0.1732990580143 → 0.0.1733307103773
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vitepress/dist/404.html +6 -6
- package/.vitepress/dist/api/index.html +10 -10
- package/.vitepress/dist/api/interfaces/RawApp.html +10 -10
- package/.vitepress/dist/api/interfaces/RawAppGroup.html +11 -11
- package/.vitepress/dist/api/interfaces/RawAppRule.html +11 -11
- package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +10 -10
- package/.vitepress/dist/api/interfaces/RawCategory.html +10 -10
- package/.vitepress/dist/api/interfaces/RawCommonProps.html +11 -11
- package/.vitepress/dist/api/interfaces/RawGlobalApp.html +10 -10
- package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +11 -11
- package/.vitepress/dist/api/interfaces/RawGlobalRule.html +11 -11
- package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +10 -10
- package/.vitepress/dist/api/interfaces/RawGroupProps.html +11 -11
- package/.vitepress/dist/api/interfaces/RawRuleProps.html +11 -11
- package/.vitepress/dist/api/interfaces/RawSubscription.html +11 -11
- package/.vitepress/dist/api/type-aliases/IArray.html +11 -11
- package/.vitepress/dist/api/type-aliases/Integer.html +11 -11
- package/.vitepress/dist/api/type-aliases/Position.html +11 -11
- package/.vitepress/dist/assets/{api_index.md.B9wI79ue.js → api_index.md.DKuDmEX6.js} +1 -1
- package/.vitepress/dist/assets/{api_index.md.B9wI79ue.lean.js → api_index.md.DKuDmEX6.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawApp.md.k_zLMW-M.js → api_interfaces_RawApp.md.DzpV2KMK.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawApp.md.k_zLMW-M.lean.js → api_interfaces_RawApp.md.DzpV2KMK.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppGroup.md.CyzZlINE.js → api_interfaces_RawAppGroup.md.Cjj0tGzX.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppGroup.md.CyzZlINE.lean.js → api_interfaces_RawAppGroup.md.Cjj0tGzX.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRule.md.Bhy0MYWO.js → api_interfaces_RawAppRule.md.CFuBkJqA.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRule.md.Bhy0MYWO.lean.js → api_interfaces_RawAppRule.md.CFuBkJqA.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRuleProps.md.DVgcqZE4.js → api_interfaces_RawAppRuleProps.md.CT0qyd2j.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRuleProps.md.DVgcqZE4.lean.js → api_interfaces_RawAppRuleProps.md.CT0qyd2j.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCategory.md.Dxk3eGcK.js → api_interfaces_RawCategory.md.BFdiC_ZR.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCategory.md.Dxk3eGcK.lean.js → api_interfaces_RawCategory.md.BFdiC_ZR.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCommonProps.md.60eTyKv-.js → api_interfaces_RawCommonProps.md.CZ8eD8ee.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCommonProps.md.60eTyKv-.lean.js → api_interfaces_RawCommonProps.md.CZ8eD8ee.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalApp.md.CUy1ih6T.js → api_interfaces_RawGlobalApp.md.DGsnPPpK.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalApp.md.CUy1ih6T.lean.js → api_interfaces_RawGlobalApp.md.DGsnPPpK.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalGroup.md.CGYUanZS.js → api_interfaces_RawGlobalGroup.md.CDjaiyHd.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalGroup.md.CGYUanZS.lean.js → api_interfaces_RawGlobalGroup.md.CDjaiyHd.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRule.md.B3s0zvHg.js → api_interfaces_RawGlobalRule.md.CkS5O-5O.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRule.md.B3s0zvHg.lean.js → api_interfaces_RawGlobalRule.md.CkS5O-5O.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRuleProps.md.DxFVnVoK.js → api_interfaces_RawGlobalRuleProps.md.O2zEUp9l.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRuleProps.md.DxFVnVoK.lean.js → api_interfaces_RawGlobalRuleProps.md.O2zEUp9l.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGroupProps.md.DoKchZLm.js → api_interfaces_RawGroupProps.md.D_5-p1Q1.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGroupProps.md.DoKchZLm.lean.js → api_interfaces_RawGroupProps.md.D_5-p1Q1.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawRuleProps.md.Cp_SohsW.js → api_interfaces_RawRuleProps.md.gps7hwWM.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawRuleProps.md.Cp_SohsW.lean.js → api_interfaces_RawRuleProps.md.gps7hwWM.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawSubscription.md.DU7Ll4Kb.js → api_interfaces_RawSubscription.md.FrgnlMxu.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawSubscription.md.DU7Ll4Kb.lean.js → api_interfaces_RawSubscription.md.FrgnlMxu.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_IArray.md.BB0ADURi.js → api_type-aliases_IArray.md.DGYD8rnZ.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_IArray.md.BB0ADURi.lean.js → api_type-aliases_IArray.md.DGYD8rnZ.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Integer.md.CgdRqFr4.js → api_type-aliases_Integer.md.DZZkK5nc.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Integer.md.CgdRqFr4.lean.js → api_type-aliases_Integer.md.DZZkK5nc.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Position.md.TlwE4mqD.js → api_type-aliases_Position.md.Bml6NhSx.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Position.md.TlwE4mqD.lean.js → api_type-aliases_Position.md.Bml6NhSx.lean.js} +1 -1
- package/.vitepress/dist/assets/{app.BBwyq_ym.js → app.BFlfEm1z.js} +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.BaR2KNTn.js +1 -0
- package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.D1ttj4GX.js → VPLocalSearchBox.RL_jDJWw.js} +2 -2
- package/.vitepress/dist/assets/chunks/{framework.CUKtnaU_.js → framework.DTQrLWmF.js} +1 -1
- package/.vitepress/dist/assets/chunks/index.DupBO4k1.js +263 -0
- package/.vitepress/dist/assets/chunks/theme.CiIJKt-_.js +1 -0
- package/.vitepress/dist/assets/{guide_example.md.BPNVpzqF.js → guide_example.md.C7LTBaOK.js} +1 -1
- package/.vitepress/dist/assets/{guide_example.md.BPNVpzqF.lean.js → guide_example.md.C7LTBaOK.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_external.md.BPcSwAgI.js → guide_external.md.B-9P7Y_b.js} +1 -1
- package/.vitepress/dist/assets/{guide_external.md.BPcSwAgI.lean.js → guide_external.md.B-9P7Y_b.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_faq.md.B8Zkr07n.js → guide_faq.md.C1Lbsvv6.js} +2 -2
- package/.vitepress/dist/assets/{guide_faq.md.B8Zkr07n.lean.js → guide_faq.md.C1Lbsvv6.lean.js} +2 -2
- package/.vitepress/dist/assets/guide_index.md.CsjhjL72.js +1 -0
- package/.vitepress/dist/assets/guide_index.md.CsjhjL72.lean.js +1 -0
- package/.vitepress/dist/assets/{guide_node.md.ALfrvCXn.js → guide_node.md.mB7emdWt.js} +1 -1
- package/.vitepress/dist/assets/{guide_node.md.ALfrvCXn.lean.js → guide_node.md.mB7emdWt.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_optimize.md.C_ZetlvT.js → guide_optimize.md.lkZCxNek.js} +1 -1
- package/.vitepress/dist/assets/{guide_optimize.md.C_ZetlvT.lean.js → guide_optimize.md.lkZCxNek.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_selector.md.CJbACP5i.js → guide_selector.md.ChW-DbHZ.js} +1 -1
- package/.vitepress/dist/assets/{guide_selector.md.CJbACP5i.lean.js → guide_selector.md.ChW-DbHZ.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_snapshot.md.DR1WKAss.js → guide_snapshot.md.n3x-D64I.js} +1 -1
- package/.vitepress/dist/assets/{guide_snapshot.md.DR1WKAss.lean.js → guide_snapshot.md.n3x-D64I.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_subscription.md.CqD1SWZ7.js → guide_subscription.md.Crxkw15z.js} +1 -1
- package/.vitepress/dist/assets/{guide_subscription.md.CqD1SWZ7.lean.js → guide_subscription.md.Crxkw15z.lean.js} +1 -1
- package/.vitepress/dist/assets/{guide_what-is-gkd.md.CtMF_mfX.js → guide_what-is-gkd.md.DqTh_hQ5.js} +1 -1
- package/.vitepress/dist/assets/{guide_what-is-gkd.md.CtMF_mfX.lean.js → guide_what-is-gkd.md.DqTh_hQ5.lean.js} +1 -1
- package/.vitepress/dist/assets/{index.md.ZZHFAGel.js → index.md.DWmnHrUS.js} +1 -1
- package/.vitepress/dist/assets/{index.md.ZZHFAGel.lean.js → index.md.DWmnHrUS.lean.js} +1 -1
- package/.vitepress/dist/assets/{style.CCv4jUOj.css → style.B9Y-j_1n.css} +1 -1
- package/.vitepress/dist/guide/example.html +10 -10
- package/.vitepress/dist/guide/external.html +10 -10
- package/.vitepress/dist/guide/faq.html +11 -11
- package/.vitepress/dist/guide/index.html +10 -10
- package/.vitepress/dist/guide/node.html +10 -10
- package/.vitepress/dist/guide/optimize.html +10 -10
- package/.vitepress/dist/guide/selector.html +11 -11
- package/.vitepress/dist/guide/snapshot.html +10 -10
- package/.vitepress/dist/guide/subscription.html +11 -11
- package/.vitepress/dist/guide/what-is-gkd.html +10 -10
- package/.vitepress/dist/hashmap.json +1 -1
- package/.vitepress/dist/index.html +10 -10
- package/package.json +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.ByZA27Hv.js +0 -1
- package/.vitepress/dist/assets/chunks/index.CkAoxnHJ.js +0 -263
- package/.vitepress/dist/assets/chunks/theme.DTLkyp23.js +0 -1
- package/.vitepress/dist/assets/guide_index.md.6KkZR4V_.js +0 -1
- package/.vitepress/dist/assets/guide_index.md.6KkZR4V_.lean.js +0 -1
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import{p as A,S as Ln,q as $e,h as F,v as _e,$ as Oe,L as ne,ao as ua,ap as ca,a as Ro,F as Ae,aq as Qn,d as ie,X as Ye,ar as er,a4 as dt,as as me,a2 as y,a9 as da,P as fa,r as ha,at as va,D as pa,s as Ge,au as tr,T as lt,K as Bo,a8 as Io,av as ga,aw as ma,N as ba}from"./framework.DTQrLWmF.js";function Kt(e){return e.composedPath()[0]}const wa={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function ya(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Kt(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(Kt(a))},i=a=>{r&&(t.contains(Kt(a))||n(a))};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Do(e,t,n){const r=wa[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=ya(e,t,n)),i}function xa(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Do(e,t,n);return Object.keys(o).forEach(i=>{re(i,document,o[i],r)}),!0}return!1}function Ca(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Do(e,t,n);return Object.keys(o).forEach(i=>{K(i,document,o[i],r)}),!0}return!1}function Sa(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(p,m,O){const $=p[m];return p[m]=function(){return O.apply(p,arguments),$.apply(p,arguments)},p}function i(p,m){p[m]=Event.prototype[m]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var p;return(p=a.get(this))!==null&&p!==void 0?p:null}function u(p,m){s!==void 0&&Object.defineProperty(p,"currentTarget",{configurable:!0,enumerable:!0,get:m??s.get})}const c={bubble:{},capture:{}},v={};function h(){const p=function(m){const{type:O,eventPhase:$,bubbles:B}=m,R=Kt(m);if($===2)return;const k=$===1?"capture":"bubble";let U=R;const S=[];for(;U===null&&(U=window),S.push(U),U!==window;)U=U.parentNode||null;const I=c.capture[O],V=c.bubble[O];if(o(m,"stopPropagation",n),o(m,"stopImmediatePropagation",r),u(m,l),k==="capture"){if(I===void 0)return;for(let J=S.length-1;J>=0&&!e.has(m);--J){const oe=S[J],Q=I.get(oe);if(Q!==void 0){a.set(m,oe);for(const fe of Q){if(t.has(m))break;fe(m)}}if(J===0&&!B&&V!==void 0){const fe=V.get(oe);if(fe!==void 0)for(const nt of fe){if(t.has(m))break;nt(m)}}}}else if(k==="bubble"){if(V===void 0)return;for(let J=0;J<S.length&&!e.has(m);++J){const oe=S[J],Q=V.get(oe);if(Q!==void 0){a.set(m,oe);for(const fe of Q){if(t.has(m))break;fe(m)}}}}i(m,"stopPropagation"),i(m,"stopImmediatePropagation"),u(m)};return p.displayName="evtdUnifiedHandler",p}function b(){const p=function(m){const{type:O,eventPhase:$}=m;if($!==2)return;const B=v[O];B!==void 0&&B.forEach(R=>R(m))};return p.displayName="evtdUnifiedWindowEventHandler",p}const d=h(),w=b();function g(p,m){const O=c[p];return O[m]===void 0&&(O[m]=new Map,window.addEventListener(m,d,p==="capture")),O[m]}function f(p){return v[p]===void 0&&(v[p]=new Set,window.addEventListener(p,w)),v[p]}function T(p,m){let O=p.get(m);return O===void 0&&p.set(m,O=new Set),O}function D(p,m,O,$){const B=c[m][O];if(B!==void 0){const R=B.get(p);if(R!==void 0&&R.has($))return!0}return!1}function L(p,m){const O=v[p];return!!(O!==void 0&&O.has(m))}function j(p,m,O,$){let B;if(typeof $=="object"&&$.once===!0?B=I=>{W(p,m,B,$),O(I)}:B=O,xa(p,m,B,$))return;const k=$===!0||typeof $=="object"&&$.capture===!0?"capture":"bubble",U=g(k,p),S=T(U,m);if(S.has(B)||S.add(B),m===window){const I=f(p);I.has(B)||I.add(B)}}function W(p,m,O,$){if(Ca(p,m,O,$))return;const R=$===!0||typeof $=="object"&&$.capture===!0,k=R?"capture":"bubble",U=g(k,p),S=T(U,m);if(m===window&&!D(m,R?"bubble":"capture",p,O)&&L(p,O)){const V=v[p];V.delete(O),V.size===0&&(window.removeEventListener(p,w),v[p]=void 0)}S.has(O)&&S.delete(O),S.size===0&&U.delete(m),U.size===0&&(window.removeEventListener(p,d,k==="capture"),c[k][p]=void 0)}return{on:j,off:W}}const{on:re,off:K}=Sa();function $a(e){const t=A(!!e.value);if(t.value)return Ln(t);const n=$e(e,r=>{r&&(t.value=!0,n())});return Ln(t)}function Mt(e){const t=F(e),n=A(t.value);return $e(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}const Ta=typeof window<"u";let ut,St;const Oa=()=>{var e,t;ut=Ta?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,St=!1,ut!==void 0?ut.then(()=>{St=!0}):St=!0};Oa();function Ma(e){if(St)return;let t=!1;_e(()=>{St||ut==null||ut.then(()=>{t||e()})}),Oe(()=>{t=!0})}function Pa(e,t){return $e(e,n=>{n!==void 0&&(t.value=n)}),F(()=>e.value===void 0?t.value:e.value)}function nr(){const e=A(!1);return _e(()=>{e.value=!0}),Ln(e)}function Ea(e,t){return F(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const za=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Aa(){return za}const _a="n-internal-select-menu-body",Lo="n-drawer-body",Ho="n-modal-body",Fo="n-popover-body",ko="__disabled__";function ft(e){const t=ne(Ho,null),n=ne(Lo,null),r=ne(Fo,null),o=ne(_a,null),i=A();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};_e(()=>{re("fullscreenchange",document,a)}),Oe(()=>{K("fullscreenchange",document,a)})}return Mt(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?ko:s===!0?i.value||"body":s:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:s??(i.value||"body")})}ft.tdkey=ko;ft.propTo={type:[String,Object,Boolean],default:void 0};const Ra=typeof document<"u"&&typeof window<"u";function Ba(e){const t={isDeactivated:!1};let n=!1;return ua(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),ca(()=>{t.isDeactivated=!0,n||(n=!0)}),t}let en=[];const Wo=new WeakMap;function Ia(){en.forEach(e=>e(...Wo.get(e))),en=[]}function jo(e,...t){Wo.set(e,t),!en.includes(e)&&en.push(e)===1&&requestAnimationFrame(Ia)}function tn(e){return e.composedPath()[0]||null}function Tr(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Da(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return r}const Or={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},vt="^\\s*",pt="\\s*$",Ne="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Ue="([0-9A-Fa-f])",Ve="([0-9A-Fa-f]{2})",La=new RegExp(`${vt}rgb\\s*\\(${Ne},${Ne},${Ne}\\)${pt}`),Ha=new RegExp(`${vt}rgba\\s*\\(${Ne},${Ne},${Ne},${Ne}\\)${pt}`),Fa=new RegExp(`${vt}#${Ue}${Ue}${Ue}${pt}`),ka=new RegExp(`${vt}#${Ve}${Ve}${Ve}${pt}`),Wa=new RegExp(`${vt}#${Ue}${Ue}${Ue}${Ue}${pt}`),ja=new RegExp(`${vt}#${Ve}${Ve}${Ve}${Ve}${pt}`);function de(e){return parseInt(e,16)}function ht(e){try{let t;if(t=ka.exec(e))return[de(t[1]),de(t[2]),de(t[3]),1];if(t=La.exec(e))return[le(t[1]),le(t[5]),le(t[9]),1];if(t=Ha.exec(e))return[le(t[1]),le(t[5]),le(t[9]),$t(t[13])];if(t=Fa.exec(e))return[de(t[1]+t[1]),de(t[2]+t[2]),de(t[3]+t[3]),1];if(t=ja.exec(e))return[de(t[1]),de(t[2]),de(t[3]),$t(de(t[4])/255)];if(t=Wa.exec(e))return[de(t[1]+t[1]),de(t[2]+t[2]),de(t[3]+t[3]),$t(de(t[4]+t[4])/255)];if(e in Or)return ht(Or[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Na(e){return e>1?1:e<0?0:e}function Ua(e,t,n,r){return`rgba(${le(e)}, ${le(t)}, ${le(n)}, ${Na(r)})`}function yn(e,t,n,r,o){return le((e*t*(1-r)+n*r)/o)}function No(e,t){Array.isArray(e)||(e=ht(e)),Array.isArray(t)||(t=ht(t));const n=e[3],r=t[3],o=$t(n+r-n*r);return Ua(yn(e[0],n,t[0],r,o),yn(e[1],n,t[1],r,o),yn(e[2],n,t[2],r,o),o)}function kt(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:ht(e),{lightness:a=1,alpha:s=1}=t;return Va([n*a,r*a,o*a,i*s])}function $t(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function le(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Va(e){const[t,n,r]=e;return 3 in e?`rgba(${le(t)}, ${le(n)}, ${le(r)}, ${$t(e[3])})`:`rgba(${le(t)}, ${le(n)}, ${le(r)}, 1)`}function Uo(e=8){return Math.random().toString(16).slice(2,2+e)}function Hn(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Fn(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Ro(String(r)));return}if(Array.isArray(r)){Fn(r,t,n);return}if(r.type===Ae){if(r.children===null)return;Array.isArray(r.children)&&Fn(r.children,t,n)}else r.type!==Qn&&n.push(r)}}),n}function Mr(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=Fn(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Le=null;function Vo(){if(Le===null&&(Le=document.getElementById("v-binder-view-measurer"),Le===null)){Le=document.createElement("div"),Le.id="v-binder-view-measurer";const{style:e}=Le;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Le)}return Le.getBoundingClientRect()}function Xa(e,t){const n=Vo();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function xn(e){const t=e.getBoundingClientRect(),n=Vo();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function Ya(e){return e.nodeType===9?null:e.parentNode}function Xo(e){if(e===null)return null;const t=Ya(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Xo(t)}const Za=ie({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Ye("VBinder",(t=er())===null||t===void 0?void 0:t.proxy);const n=ne("VBinder",null),r=A(null),o=f=>{r.value=f,n&&e.syncTargetWithParent&&n.setTargetRef(f)};let i=[];const a=()=>{let f=r.value;for(;f=Xo(f),f!==null;)i.push(f);for(const T of i)re("scroll",T,v,!0)},s=()=>{for(const f of i)K("scroll",f,v,!0);i=[]},l=new Set,u=f=>{l.size===0&&a(),l.has(f)||l.add(f)},c=f=>{l.has(f)&&l.delete(f),l.size===0&&s()},v=()=>{jo(h)},h=()=>{l.forEach(f=>f())},b=new Set,d=f=>{b.size===0&&re("resize",window,g),b.has(f)||b.add(f)},w=f=>{b.has(f)&&b.delete(f),b.size===0&&K("resize",window,g)},g=()=>{b.forEach(f=>f())};return Oe(()=>{K("resize",window,g),s()}),{targetRef:r,setTargetRef:o,addScrollListener:u,removeScrollListener:c,addResizeListener:d,removeResizeListener:w}},render(){return Hn("binder",this.$slots)}}),qa=ie({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ne("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?dt(Mr("follower",this.$slots),[[t]]):Mr("follower",this.$slots)}}),ot="@@mmoContext",Ga={mounted(e,{value:t}){e[ot]={handler:void 0},typeof t=="function"&&(e[ot].handler=t,re("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[ot];typeof t=="function"?n.handler?n.handler!==t&&(K("mousemoveoutside",e,n.handler),n.handler=t,re("mousemoveoutside",e,t)):(e[ot].handler=t,re("mousemoveoutside",e,t)):n.handler&&(K("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[ot];t&&K("mousemoveoutside",e,t),e[ot].handler=void 0}},it="@@coContext",Pr={mounted(e,{value:t,modifiers:n}){e[it]={handler:void 0},typeof t=="function"&&(e[it].handler=t,re("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[it];typeof t=="function"?r.handler?r.handler!==t&&(K("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,re("clickoutside",e,t,{capture:n.capture})):(e[it].handler=t,re("clickoutside",e,t,{capture:n.capture})):r.handler&&(K("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[it];n&&K("clickoutside",e,n,{capture:t.capture}),e[it].handler=void 0}};function Ka(e,t){console.error(`[vdirs/${e}]: ${t}`)}class Ja{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&Ka("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const Cn=new Ja,at="@@ziContext",rr={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[at]={enabled:!!o,initialized:!1},o&&(Cn.ensureZIndex(e,r),e[at].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[at].enabled;o&&!i&&(Cn.ensureZIndex(e,r),e[at].initialized=!0),e[at].enabled=!!o},unmounted(e,t){if(!e[at].initialized)return;const{value:n={}}=t,{zIndex:r}=n;Cn.unregister(e,r)}},Qa="@css-render/vue3-ssr";function es(e,t){return`<style cssr-id="${e}">
|
|
2
|
+
${t}
|
|
3
|
+
</style>`}function ts(e,t,n){const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(es(e,t)))}const ns=typeof document<"u";function _t(){if(ns)return;const e=ne(Qa,null);if(e!==null)return{adapter:(t,n)=>ts(t,n,e),context:e}}function Er(e,t){console.error(`[vueuc/${e}]: ${t}`)}function rs(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Yo=/\s*,(?![^(]*\))\s*/g,os=/\s+/g;function is(e,t){const n=[];return t.split(Yo).forEach(r=>{let o=rs(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>n.push(a))}),n}function as(e,t){const n=[];return t.split(Yo).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function ss(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=is(t,n):t=as(t,n))}),t.join(", ").replace(os," ")}function zr(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function ln(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function ls(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Wt(e){return e?/^\s*@(s|m)/.test(e):!1}const us=/[A-Z]/g;function Zo(e){return e.replace(us,t=>"-"+t.toLowerCase())}function cs(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
4
|
+
`+Object.entries(e).map(n=>t+` ${Zo(n[0])}: ${n[1]};`).join(`
|
|
5
|
+
`)+`
|
|
6
|
+
`+t+"}":`: ${e};`}function ds(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ar(e,t,n,r){if(!t)return"";const o=ds(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} {
|
|
7
|
+
${o}
|
|
8
|
+
}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` {
|
|
9
|
+
}`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=o[s];if(s==="raw"){a.push(`
|
|
10
|
+
`+l+`
|
|
11
|
+
`);return}s=Zo(s),l!=null&&a.push(` ${s}${cs(l)}`)}),e&&a.push("}"),a.join(`
|
|
12
|
+
`)}function kn(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))kn(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?kn(o,t,n):o&&n(o)}else r&&n(r)})}function qo(e,t,n,r,o){const i=e.$;let a="";if(!i||typeof i=="string")Wt(i)?a=i:t.push(i);else if(typeof i=="function"){const u=i({context:r.context,props:o});Wt(u)?a=u:t.push(u)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")Wt(i.$)?a=i.$:t.push(i.$);else if(i.$){const u=i.$({context:r.context,props:o});Wt(u)?a=u:t.push(u)}const s=ss(t),l=Ar(s,e.props,r,o);a?n.push(`${a} {`):l.length&&n.push(l),e.children&&kn(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const c=Ar(s,{raw:u},r,o);n.push(c)}else qo(u,t,n,r,o)}),t.pop(),a&&n.push("}"),i&&i.after&&i.after(r.context)}function fs(e,t,n){const r=[];return qo(e,[],r,t,n),r.join(`
|
|
13
|
+
|
|
14
|
+
`)}function Wn(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function hs(e,t,n,r){const{els:o}=t;if(n===void 0)o.forEach(zr),t.els=[];else{const i=ln(n,r);i&&o.includes(i)&&(zr(i),t.els=o.filter(a=>a!==i))}}function _r(e,t){e.push(t)}function vs(e,t,n,r,o,i,a,s,l){let u;if(n===void 0&&(u=t.render(r),n=Wn(u)),l){l.adapter(n,u??t.render(r));return}s===void 0&&(s=document.head);const c=ln(n,s);if(c!==null&&!i)return c;const v=c??ls(n);if(u===void 0&&(u=t.render(r)),v.textContent=u,c!==null)return c;if(a){const h=s.querySelector(`meta[name="${a}"]`);if(h)return s.insertBefore(v,h),_r(t.els,v),v}return o?s.insertBefore(v,s.querySelector("style, link")):s.appendChild(v),_r(t.els,v),v}function ps(e){return fs(this,this.instance,e)}function gs(e={}){const{id:t,ssr:n,props:r,head:o=!1,force:i=!1,anchorMetaName:a,parent:s}=e;return vs(this.instance,this,t,r,o,i,a,s,n)}function ms(e={}){const{id:t,parent:n}=e;hs(this.instance,this,t,n)}const jt=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:ps,mount:gs,unmount:ms}},bs=function(e,t,n,r){return Array.isArray(t)?jt(e,{$:null},null,t):Array.isArray(n)?jt(e,t,null,n):Array.isArray(r)?jt(e,t,n,r):jt(e,t,n,null)};function Go(e={}){const t={c:(...n)=>bs(t,...n),use:(n,...r)=>n.install(t,...r),find:ln,context:{},config:e};return t}function ws(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return ln(e)!==null}const{c:Nt}=Go(),ys="vueuc-style";function Rr(e){return typeof e=="string"?document.querySelector(e):e()}const Ko=ie({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:$a(me(e,"show")),mergedTo:F(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Hn("lazy-teleport",this.$slots):y(da,{disabled:this.disabled,to:this.mergedTo},Hn("lazy-teleport",this.$slots)):null}}),Ut={top:"bottom",bottom:"top",left:"right",right:"left"},Br={start:"end",center:"center",end:"start"},Sn={top:"height",bottom:"height",left:"width",right:"width"},xs={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Cs={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Ss={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Ir={top:!0,bottom:!1,left:!0,right:!1},Dr={top:"end",bottom:"start",left:"end",right:"start"};function $s(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",u={top:0,left:0};const c=(b,d,w)=>{let g=0,f=0;const T=n[b]-t[d]-t[b];return T>0&&r&&(w?f=Ir[d]?T:-T:g=Ir[d]?T:-T),{left:g,top:f}},v=a==="left"||a==="right";if(l!=="center"){const b=Ss[e],d=Ut[b],w=Sn[b];if(n[w]>t[w]){if(t[b]+t[w]<n[w]){const g=(n[w]-t[w])/2;t[b]<g||t[d]<g?t[b]<t[d]?(l=Br[s],u=c(w,d,v)):u=c(w,b,v):l="center"}}else n[w]<t[w]&&t[d]<0&&t[b]>t[d]&&(l=Br[s])}else{const b=a==="bottom"||a==="top"?"left":"top",d=Ut[b],w=Sn[b],g=(n[w]-t[w])/2;(t[b]<g||t[d]<g)&&(t[b]>t[d]?(l=Dr[b],u=c(w,b,v)):(l=Dr[d],u=c(w,d,v)))}let h=a;return t[a]<n[Sn[a]]&&t[a]<t[Ut[a]]&&(h=Ut[a]),{placement:l!=="center"?`${h}-${l}`:h,left:u.left,top:u.top}}function Ts(e,t){return t?Cs[e]:xs[e]}function Os(e,t,n,r,o,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateX(-50%)"}}}const Ms=Nt([Nt(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Nt(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Nt("> *",{pointerEvents:"all"})])]),Ps=ie({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=ne("VBinder"),n=Mt(()=>e.enabled!==void 0?e.enabled:e.show),r=A(null),o=A(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(l),h.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};_e(()=>{n.value&&(l(),i())});const s=_t();Ms.mount({id:"vueuc/binder",head:!0,anchorMetaName:ys,ssr:s}),Oe(()=>{a()}),Ma(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const b=t.targetRef,{x:d,y:w,overlap:g}=e,f=d!==void 0&&w!==void 0?Xa(d,w):xn(b);h.style.setProperty("--v-target-width",`${Math.round(f.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(f.height)}px`);const{width:T,minWidth:D,placement:L,internalShift:j,flip:W}=e;h.setAttribute("v-placement",L),g?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:p}=h;T==="target"?p.width=`${f.width}px`:T!==void 0?p.width=T:p.width="",D==="target"?p.minWidth=`${f.width}px`:D!==void 0?p.minWidth=D:p.minWidth="";const m=xn(h),O=xn(o.value),{left:$,top:B,placement:R}=$s(L,f,m,j,W,g),k=Ts(R,g),{left:U,top:S,transform:I}=Os(R,O,f,B,$,g);h.setAttribute("v-placement",R),h.style.setProperty("--v-offset-left",`${Math.round($)}px`),h.style.setProperty("--v-offset-top",`${Math.round(B)}px`),h.style.transform=`translateX(${U}) translateY(${S}) ${I}`,h.style.setProperty("--v-transform-origin",k),h.style.transformOrigin=k};$e(n,h=>{h?(i(),u()):a()});const u=()=>{fa().then(l).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{$e(me(e,h),l)}),["teleportDisabled"].forEach(h=>{$e(me(e,h),u)}),$e(me(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),h.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const c=nr(),v=Mt(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:v,syncPosition:l}},render(){return y(Ko,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=y("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[y("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?dt(n,[[rr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var Ze=[],Es=function(){return Ze.some(function(e){return e.activeTargets.length>0})},zs=function(){return Ze.some(function(e){return e.skippedTargets.length>0})},Lr="ResizeObserver loop completed with undelivered notifications.",As=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Lr}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Lr),window.dispatchEvent(e)},Pt;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pt||(Pt={}));var qe=function(e){return Object.freeze(e)},_s=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,qe(this)}return e}(),Jo=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,qe(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,u=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:l,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),or=function(e){return e instanceof SVGElement&&"getBBox"in e},Qo=function(e){if(or(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Hr=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Rs=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Tt=typeof window<"u"?window:{},Vt=new WeakMap,Fr=/auto|scroll/,Bs=/^tb|vertical/,Is=/msie|trident/i.test(Tt.navigator&&Tt.navigator.userAgent),Se=function(e){return parseFloat(e||"0")},ct=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new _s((n?t:e)||0,(n?e:t)||0)},kr=qe({devicePixelContentBoxSize:ct(),borderBoxSize:ct(),contentBoxSize:ct(),contentRect:new Jo(0,0,0,0)}),ei=function(e,t){if(t===void 0&&(t=!1),Vt.has(e)&&!t)return Vt.get(e);if(Qo(e))return Vt.set(e,kr),kr;var n=getComputedStyle(e),r=or(e)&&e.ownerSVGElement&&e.getBBox(),o=!Is&&n.boxSizing==="border-box",i=Bs.test(n.writingMode||""),a=!r&&Fr.test(n.overflowY||""),s=!r&&Fr.test(n.overflowX||""),l=r?0:Se(n.paddingTop),u=r?0:Se(n.paddingRight),c=r?0:Se(n.paddingBottom),v=r?0:Se(n.paddingLeft),h=r?0:Se(n.borderTopWidth),b=r?0:Se(n.borderRightWidth),d=r?0:Se(n.borderBottomWidth),w=r?0:Se(n.borderLeftWidth),g=v+u,f=l+c,T=w+b,D=h+d,L=s?e.offsetHeight-D-e.clientHeight:0,j=a?e.offsetWidth-T-e.clientWidth:0,W=o?g+T:0,p=o?f+D:0,m=r?r.width:Se(n.width)-W-j,O=r?r.height:Se(n.height)-p-L,$=m+g+j+T,B=O+f+L+D,R=qe({devicePixelContentBoxSize:ct(Math.round(m*devicePixelRatio),Math.round(O*devicePixelRatio),i),borderBoxSize:ct($,B,i),contentBoxSize:ct(m,O,i),contentRect:new Jo(v,l,m,O)});return Vt.set(e,R),R},ti=function(e,t,n){var r=ei(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Pt.DEVICE_PIXEL_CONTENT_BOX:return a;case Pt.BORDER_BOX:return o;default:return i}},Ds=function(){function e(t){var n=ei(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=qe([n.borderBoxSize]),this.contentBoxSize=qe([n.contentBoxSize]),this.devicePixelContentBoxSize=qe([n.devicePixelContentBoxSize])}return e}(),ni=function(e){if(Qo(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ls=function(){var e=1/0,t=[];Ze.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var c=new Ds(u.target),v=ni(u.target);s.push(c),u.lastReportedSize=ti(u.target,u.observedBox),v<e&&(e=v)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Wr=function(e){Ze.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(ni(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Hs=function(){var e=0;for(Wr(e);Es();)e=Ls(),Wr(e);return zs()&&As(),e>0},$n,ri=[],Fs=function(){return ri.splice(0).forEach(function(e){return e()})},ks=function(e){if(!$n){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Fs()}).observe(n,r),$n=function(){n.textContent="".concat(t?t--:t++)}}ri.push(e),$n()},Ws=function(e){ks(function(){requestAnimationFrame(e)})},Jt=0,js=function(){return!!Jt},Ns=250,Us={attributes:!0,characterData:!0,childList:!0,subtree:!0},jr=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Nr=function(e){return e===void 0&&(e=0),Date.now()+e},Tn=!1,Vs=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Ns),!Tn){Tn=!0;var r=Nr(t);Ws(function(){var o=!1;try{o=Hs()}finally{if(Tn=!1,t=r-Nr(),!js())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Us)};document.body?n():Tt.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),jr.forEach(function(n){return Tt.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),jr.forEach(function(n){return Tt.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),jn=new Vs,Ur=function(e){!Jt&&e>0&&jn.start(),Jt+=e,!Jt&&jn.stop()},Xs=function(e){return!or(e)&&!Rs(e)&&getComputedStyle(e).display==="inline"},Ys=function(){function e(t,n){this.target=t,this.observedBox=n||Pt.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ti(this.target,this.observedBox,!0);return Xs(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Zs=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Xt=new WeakMap,Vr=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Yt=function(){function e(){}return e.connect=function(t,n){var r=new Zs(t,n);Xt.set(t,r)},e.observe=function(t,n,r){var o=Xt.get(t),i=o.observationTargets.length===0;Vr(o.observationTargets,n)<0&&(i&&Ze.push(o),o.observationTargets.push(new Ys(n,r&&r.box)),Ur(1),jn.schedule())},e.unobserve=function(t,n){var r=Xt.get(t),o=Vr(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Ze.splice(Ze.indexOf(r),1),r.observationTargets.splice(o,1),Ur(-1))},e.disconnect=function(t){var n=this,r=Xt.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),qs=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Yt.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Hr(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Yt.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Hr(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Yt.unobserve(this,t)},e.prototype.disconnect=function(){Yt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Gs{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||qs)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Xr=new Gs,Yr=ie({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=er().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}_e(()=>{const o=n.$el;if(o===void 0){Er("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Er("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Xr.registerHandler(o.nextElementSibling,r),t=!0)}),Oe(()=>{t&&Xr.unregisterHandler(n.$el.nextElementSibling)})},render(){return ha(this.$slots,"default")}});function oi(e){return e instanceof HTMLElement}function ii(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(oi(n)&&(si(n)||ii(n)))return!0}return!1}function ai(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(oi(n)&&(si(n)||ai(n)))return!0}return!1}function si(e){if(!Ks(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Ks(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let bt=[];const Js=ie({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Uo(),n=A(null),r=A(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return bt[bt.length-1]===t}function l(g){var f;g.code==="Escape"&&s()&&((f=e.onEsc)===null||f===void 0||f.call(e,g))}_e(()=>{$e(()=>e.active,g=>{g?(v(),re("keydown",document,l)):(K("keydown",document,l),o&&h())},{immediate:!0})}),Oe(()=>{K("keydown",document,l),o&&h()});function u(g){if(!i&&s()){const f=c();if(f===null||f.contains(tn(g)))return;b("first")}}function c(){const g=n.value;if(g===null)return null;let f=g;for(;f=f.nextSibling,!(f===null||f instanceof Element&&f.tagName==="DIV"););return f}function v(){var g;if(!e.disabled){if(bt.push(t),e.autoFocus){const{initialFocusTo:f}=e;f===void 0?b("first"):(g=Rr(f))===null||g===void 0||g.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",u,!0)}}function h(){var g;if(e.disabled||(document.removeEventListener("focus",u,!0),bt=bt.filter(T=>T!==t),s()))return;const{finalFocusTo:f}=e;f!==void 0?(g=Rr(f))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function b(g){if(s()&&e.active){const f=n.value,T=r.value;if(f!==null&&T!==null){const D=c();if(D==null||D===T){i=!0,f.focus({preventScroll:!0}),i=!1;return}i=!0;const L=g==="first"?ii(D):ai(D);i=!1,L||(i=!0,f.focus({preventScroll:!0}),i=!1)}}}function d(g){if(i)return;const f=c();f!==null&&(g.relatedTarget!==null&&f.contains(g.relatedTarget)?b("last"):b("first"))}function w(g){i||(g.relatedTarget!==null&&g.relatedTarget===n.value?b("last"):b("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:d,handleEndFocus:w}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return y(Ae,null,[y("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),y("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}}),Qs=/^(\d|\.)+$/,Zr=/(\d|\.)+/;function On(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(Qs.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=Zr.exec(e);return o?e.replace(Zr,String((Number(o[0])+n)*t)):e}return e}function qr(e){const{left:t,right:n,top:r,bottom:o}=Da(e);return`${r} ${n} ${o} ${t}`}function el(e){let t=".",n="__",r="--",o;if(e){let d=e.blockPrefix;d&&(t=d),d=e.elementPrefix,d&&(n=d),d=e.modifierPrefix,d&&(r=d)}const i={install(d){o=d.c;const w=d.context;w.bem={},w.bem.b=null,w.bem.els=null}};function a(d){let w,g;return{before(f){w=f.bem.b,g=f.bem.els,f.bem.els=null},after(f){f.bem.b=w,f.bem.els=g},$({context:f,props:T}){return d=typeof d=="string"?d:d({context:f,props:T}),f.bem.b=d,`${(T==null?void 0:T.bPrefix)||t}${f.bem.b}`}}}function s(d){let w;return{before(g){w=g.bem.els},after(g){g.bem.els=w},$({context:g,props:f}){return d=typeof d=="string"?d:d({context:g,props:f}),g.bem.els=d.split(",").map(T=>T.trim()),g.bem.els.map(T=>`${(f==null?void 0:f.bPrefix)||t}${g.bem.b}${n}${T}`).join(", ")}}}function l(d){return{$({context:w,props:g}){d=typeof d=="string"?d:d({context:w,props:g});const f=d.split(",").map(L=>L.trim());function T(L){return f.map(j=>`&${(g==null?void 0:g.bPrefix)||t}${w.bem.b}${L!==void 0?`${n}${L}`:""}${r}${j}`).join(", ")}const D=w.bem.els;return D!==null?T(D[0]):T()}}}function u(d){return{$({context:w,props:g}){d=typeof d=="string"?d:d({context:w,props:g});const f=w.bem.els;return`&:not(${(g==null?void 0:g.bPrefix)||t}${w.bem.b}${f!==null&&f.length>0?`${n}${f[0]}`:""}${r}${d})`}}}return Object.assign(i,{cB:(...d)=>o(a(d[0]),d[1],d[2]),cE:(...d)=>o(s(d[0]),d[1],d[2]),cM:(...d)=>o(l(d[0]),d[1],d[2]),cNotM:(...d)=>o(u(d[0]),d[1],d[2])}),i}const tl="n",nl=`.${tl}-`,rl="__",ol="--",li=Go(),ui=el({blockPrefix:nl,elementPrefix:rl,modifierPrefix:ol});li.use(ui);const{c:H,find:np}=li,{cB:G,cE:Xe,cM:ye,cNotM:Qt}=ui,il=(...e)=>H(">",[G(...e)]);function al(e,t){if(!e)return;const n=document.createElement("a");n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}let Mn;function sl(){return Mn===void 0&&(Mn=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Mn}function Gr(e,t){console.error(`[naive/${e}]: ${t}`)}function ll(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Ct(e,...t){if(Array.isArray(e))e.forEach(n=>Ct(n,...t));else return e(...t)}function Nn(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Ro(String(r)));return}if(Array.isArray(r)){Nn(r,t,n);return}if(r.type===Ae){if(r.children===null)return;Array.isArray(r.children)&&Nn(r.children,t,n)}else{if(r.type===Qn&&t)return;n.push(r)}}}),n}function Kr(e,t="default",n=void 0){const r=e[t];if(!r)return Gr("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Nn(r(n));return o.length===1?o[0]:(Gr("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function ul(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function un(e){return e.some(t=>va(t)?!(t.type===Qn||t.type===Ae&&!un(t.children)):!0)?e:null}function cl(e,t){return e&&un(e())||t()}function Pn(e,t){const n=e&&un(e());return t(n||null)}function Jr(e){return!(e&&un(e()))}const Qr=ie({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Je="n-config-provider",dl="n";function gt(e={},t={defaultBordered:!0}){const n=ne(Je,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:F(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:pa(dl),namespaceRef:F(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function ir(e,t,n,r){n||ll("useThemeClass","cssVarsRef is not passed");const o=ne(Je,null),i=o==null?void 0:o.mergedThemeHashRef,a=o==null?void 0:o.styleMountTarget,s=A(""),l=_t();let u;const c=`__${e}`,v=()=>{let h=c;const b=i==null?void 0:i.value;b&&(h+=`-${b}`);const{themeOverrides:d,builtinThemeOverrides:w}=r;d&&(h+=`-${Wn(JSON.stringify(d))}`),w&&(h+=`-${Wn(JSON.stringify(w))}`),s.value=h,u=()=>{const g=n.value;let f="";for(const T in g)f+=`${T}: ${g[T]};`;H(`.${h}`,f).mount({id:h,ssr:l,parent:a}),u=void 0}};return Ge(()=>{v()}),{themeClass:s,onRender:()=>{u==null||u()}}}const fl={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};function En(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function wt(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}function yt(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?vl(s,v=>v.test(a)):hl(s,v=>v.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(a.length);return{value:u,rest:c}}}function hl(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function vl(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function pl(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(o.length);return{value:a,rest:s}}}const gl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ml=(e,t,n)=>{let r;const o=gl[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},bl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wl=(e,t,n,r)=>bl[e],yl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Cl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Sl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Tl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ol=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ml={ordinalNumber:Ol,era:wt({values:yl,defaultWidth:"wide"}),quarter:wt({values:xl,defaultWidth:"wide",argumentCallback:e=>e-1}),month:wt({values:Cl,defaultWidth:"wide"}),day:wt({values:Sl,defaultWidth:"wide"}),dayPeriod:wt({values:$l,defaultWidth:"wide",formattingValues:Tl,defaultFormattingWidth:"wide"})},Pl=/^(\d+)(th|st|nd|rd)?/i,El=/\d+/i,zl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Al={any:[/^b/i,/^(a|c)/i]},_l={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Rl={any:[/1/i,/2/i,/3/i,/4/i]},Bl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Il={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Dl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ll={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Hl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Fl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kl={ordinalNumber:pl({matchPattern:Pl,parsePattern:El,valueCallback:e=>parseInt(e,10)}),era:yt({matchPatterns:zl,defaultMatchWidth:"wide",parsePatterns:Al,defaultParseWidth:"any"}),quarter:yt({matchPatterns:_l,defaultMatchWidth:"wide",parsePatterns:Rl,defaultParseWidth:"any",valueCallback:e=>e+1}),month:yt({matchPatterns:Bl,defaultMatchWidth:"wide",parsePatterns:Il,defaultParseWidth:"any"}),day:yt({matchPatterns:Dl,defaultMatchWidth:"wide",parsePatterns:Ll,defaultParseWidth:"any"}),dayPeriod:yt({matchPatterns:Hl,defaultMatchWidth:"any",parsePatterns:Fl,defaultParseWidth:"any"})},Wl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Nl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ul={date:En({formats:Wl,defaultWidth:"full"}),time:En({formats:jl,defaultWidth:"full"}),dateTime:En({formats:Nl,defaultWidth:"full"})},Vl={code:"en-US",formatDistance:ml,formatLong:Ul,formatRelative:wl,localize:Ml,match:kl,options:{weekStartsOn:0,firstWeekContainsDate:1}},Xl={name:"en-US",locale:Vl};var ci=typeof global=="object"&&global&&global.Object===Object&&global,Yl=typeof self=="object"&&self&&self.Object===Object&&self,Me=ci||Yl||Function("return this")(),Fe=Me.Symbol,di=Object.prototype,Zl=di.hasOwnProperty,ql=di.toString,xt=Fe?Fe.toStringTag:void 0;function Gl(e){var t=Zl.call(e,xt),n=e[xt];try{e[xt]=void 0;var r=!0}catch{}var o=ql.call(e);return r&&(t?e[xt]=n:delete e[xt]),o}var Kl=Object.prototype,Jl=Kl.toString;function Ql(e){return Jl.call(e)}var eu="[object Null]",tu="[object Undefined]",eo=Fe?Fe.toStringTag:void 0;function Qe(e){return e==null?e===void 0?tu:eu:eo&&eo in Object(e)?Gl(e):Ql(e)}function ke(e){return e!=null&&typeof e=="object"}var nu="[object Symbol]";function ar(e){return typeof e=="symbol"||ke(e)&&Qe(e)==nu}function fi(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var be=Array.isArray,ru=1/0,to=Fe?Fe.prototype:void 0,no=to?to.toString:void 0;function hi(e){if(typeof e=="string")return e;if(be(e))return fi(e,hi)+"";if(ar(e))return no?no.call(e):"";var t=e+"";return t=="0"&&1/e==-ru?"-0":t}function We(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function sr(e){return e}var ou="[object AsyncFunction]",iu="[object Function]",au="[object GeneratorFunction]",su="[object Proxy]";function lr(e){if(!We(e))return!1;var t=Qe(e);return t==iu||t==au||t==ou||t==su}var zn=Me["__core-js_shared__"],ro=function(){var e=/[^.]+$/.exec(zn&&zn.keys&&zn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lu(e){return!!ro&&ro in e}var uu=Function.prototype,cu=uu.toString;function et(e){if(e!=null){try{return cu.call(e)}catch{}try{return e+""}catch{}}return""}var du=/[\\^$.*+?()[\]{}|]/g,fu=/^\[object .+?Constructor\]$/,hu=Function.prototype,vu=Object.prototype,pu=hu.toString,gu=vu.hasOwnProperty,mu=RegExp("^"+pu.call(gu).replace(du,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bu(e){if(!We(e)||lu(e))return!1;var t=lr(e)?mu:fu;return t.test(et(e))}function wu(e,t){return e==null?void 0:e[t]}function tt(e,t){var n=wu(e,t);return bu(n)?n:void 0}var Un=tt(Me,"WeakMap"),oo=Object.create,yu=function(){function e(){}return function(t){if(!We(t))return{};if(oo)return oo(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function xu(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Cu(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Su=800,$u=16,Tu=Date.now;function Ou(e){var t=0,n=0;return function(){var r=Tu(),o=$u-(r-n);if(n=r,o>0){if(++t>=Su)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Mu(e){return function(){return e}}var nn=function(){try{var e=tt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Pu=nn?function(e,t){return nn(e,"toString",{configurable:!0,enumerable:!1,value:Mu(t),writable:!0})}:sr,Eu=Ou(Pu),zu=9007199254740991,Au=/^(?:0|[1-9]\d*)$/;function ur(e,t){var n=typeof e;return t=t??zu,!!t&&(n=="number"||n!="symbol"&&Au.test(e))&&e>-1&&e%1==0&&e<t}function cr(e,t,n){t=="__proto__"&&nn?nn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Rt(e,t){return e===t||e!==e&&t!==t}var _u=Object.prototype,Ru=_u.hasOwnProperty;function Bu(e,t,n){var r=e[t];(!(Ru.call(e,t)&&Rt(r,n))||n===void 0&&!(t in e))&&cr(e,t,n)}function Iu(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),o?cr(n,s,l):Bu(n,s,l)}return n}var io=Math.max;function Du(e,t,n){return t=io(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=io(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),xu(e,this,s)}}function Lu(e,t){return Eu(Du(e,t,sr),e+"")}var Hu=9007199254740991;function dr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hu}function mt(e){return e!=null&&dr(e.length)&&!lr(e)}function Fu(e,t,n){if(!We(n))return!1;var r=typeof t;return(r=="number"?mt(n)&&ur(t,n.length):r=="string"&&t in n)?Rt(n[t],e):!1}function ku(e){return Lu(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&Fu(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var Wu=Object.prototype;function fr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Wu;return e===n}function ju(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Nu="[object Arguments]";function ao(e){return ke(e)&&Qe(e)==Nu}var vi=Object.prototype,Uu=vi.hasOwnProperty,Vu=vi.propertyIsEnumerable,rn=ao(function(){return arguments}())?ao:function(e){return ke(e)&&Uu.call(e,"callee")&&!Vu.call(e,"callee")};function Xu(){return!1}var pi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,so=pi&&typeof module=="object"&&module&&!module.nodeType&&module,Yu=so&&so.exports===pi,lo=Yu?Me.Buffer:void 0,Zu=lo?lo.isBuffer:void 0,on=Zu||Xu,qu="[object Arguments]",Gu="[object Array]",Ku="[object Boolean]",Ju="[object Date]",Qu="[object Error]",ec="[object Function]",tc="[object Map]",nc="[object Number]",rc="[object Object]",oc="[object RegExp]",ic="[object Set]",ac="[object String]",sc="[object WeakMap]",lc="[object ArrayBuffer]",uc="[object DataView]",cc="[object Float32Array]",dc="[object Float64Array]",fc="[object Int8Array]",hc="[object Int16Array]",vc="[object Int32Array]",pc="[object Uint8Array]",gc="[object Uint8ClampedArray]",mc="[object Uint16Array]",bc="[object Uint32Array]",Z={};Z[cc]=Z[dc]=Z[fc]=Z[hc]=Z[vc]=Z[pc]=Z[gc]=Z[mc]=Z[bc]=!0;Z[qu]=Z[Gu]=Z[lc]=Z[Ku]=Z[uc]=Z[Ju]=Z[Qu]=Z[ec]=Z[tc]=Z[nc]=Z[rc]=Z[oc]=Z[ic]=Z[ac]=Z[sc]=!1;function wc(e){return ke(e)&&dr(e.length)&&!!Z[Qe(e)]}function yc(e){return function(t){return e(t)}}var gi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ot=gi&&typeof module=="object"&&module&&!module.nodeType&&module,xc=Ot&&Ot.exports===gi,An=xc&&ci.process,uo=function(){try{var e=Ot&&Ot.require&&Ot.require("util").types;return e||An&&An.binding&&An.binding("util")}catch{}}(),co=uo&&uo.isTypedArray,hr=co?yc(co):wc,Cc=Object.prototype,Sc=Cc.hasOwnProperty;function mi(e,t){var n=be(e),r=!n&&rn(e),o=!n&&!r&&on(e),i=!n&&!r&&!o&&hr(e),a=n||r||o||i,s=a?ju(e.length,String):[],l=s.length;for(var u in e)(t||Sc.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ur(u,l)))&&s.push(u);return s}function bi(e,t){return function(n){return e(t(n))}}var $c=bi(Object.keys,Object),Tc=Object.prototype,Oc=Tc.hasOwnProperty;function Mc(e){if(!fr(e))return $c(e);var t=[];for(var n in Object(e))Oc.call(e,n)&&n!="constructor"&&t.push(n);return t}function vr(e){return mt(e)?mi(e):Mc(e)}function Pc(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Ec=Object.prototype,zc=Ec.hasOwnProperty;function Ac(e){if(!We(e))return Pc(e);var t=fr(e),n=[];for(var r in e)r=="constructor"&&(t||!zc.call(e,r))||n.push(r);return n}function wi(e){return mt(e)?mi(e,!0):Ac(e)}var _c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rc=/^\w*$/;function pr(e,t){if(be(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ar(e)?!0:Rc.test(e)||!_c.test(e)||t!=null&&e in Object(t)}var Et=tt(Object,"create");function Bc(){this.__data__=Et?Et(null):{},this.size=0}function Ic(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Dc="__lodash_hash_undefined__",Lc=Object.prototype,Hc=Lc.hasOwnProperty;function Fc(e){var t=this.__data__;if(Et){var n=t[e];return n===Dc?void 0:n}return Hc.call(t,e)?t[e]:void 0}var kc=Object.prototype,Wc=kc.hasOwnProperty;function jc(e){var t=this.__data__;return Et?t[e]!==void 0:Wc.call(t,e)}var Nc="__lodash_hash_undefined__";function Uc(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Et&&t===void 0?Nc:t,this}function Ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ke.prototype.clear=Bc;Ke.prototype.delete=Ic;Ke.prototype.get=Fc;Ke.prototype.has=jc;Ke.prototype.set=Uc;function Vc(){this.__data__=[],this.size=0}function cn(e,t){for(var n=e.length;n--;)if(Rt(e[n][0],t))return n;return-1}var Xc=Array.prototype,Yc=Xc.splice;function Zc(e){var t=this.__data__,n=cn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Yc.call(t,n,1),--this.size,!0}function qc(e){var t=this.__data__,n=cn(t,e);return n<0?void 0:t[n][1]}function Gc(e){return cn(this.__data__,e)>-1}function Kc(e,t){var n=this.__data__,r=cn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Re(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Re.prototype.clear=Vc;Re.prototype.delete=Zc;Re.prototype.get=qc;Re.prototype.has=Gc;Re.prototype.set=Kc;var zt=tt(Me,"Map");function Jc(){this.size=0,this.__data__={hash:new Ke,map:new(zt||Re),string:new Ke}}function Qc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function dn(e,t){var n=e.__data__;return Qc(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ed(e){var t=dn(this,e).delete(e);return this.size-=t?1:0,t}function td(e){return dn(this,e).get(e)}function nd(e){return dn(this,e).has(e)}function rd(e,t){var n=dn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Be(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Be.prototype.clear=Jc;Be.prototype.delete=ed;Be.prototype.get=td;Be.prototype.has=nd;Be.prototype.set=rd;var od="Expected a function";function gr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(od);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(gr.Cache||Be),n}gr.Cache=Be;var id=500;function ad(e){var t=gr(e,function(r){return n.size===id&&n.clear(),r}),n=t.cache;return t}var sd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ld=/\\(\\)?/g,ud=ad(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(sd,function(n,r,o,i){t.push(o?i.replace(ld,"$1"):r||n)}),t});function fn(e){return e==null?"":hi(e)}function yi(e,t){return be(e)?e:pr(e,t)?[e]:ud(fn(e))}var cd=1/0;function hn(e){if(typeof e=="string"||ar(e))return e;var t=e+"";return t=="0"&&1/e==-cd?"-0":t}function xi(e,t){t=yi(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[hn(t[n++])];return n&&n==r?e:void 0}function dd(e,t,n){var r=e==null?void 0:xi(e,t);return r===void 0?n:r}function fd(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ci=bi(Object.getPrototypeOf,Object),hd="[object Object]",vd=Function.prototype,pd=Object.prototype,Si=vd.toString,gd=pd.hasOwnProperty,md=Si.call(Object);function bd(e){if(!ke(e)||Qe(e)!=hd)return!1;var t=Ci(e);if(t===null)return!0;var n=gd.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Si.call(n)==md}function wd(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function yd(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:wd(e,t,n)}var xd="\\ud800-\\udfff",Cd="\\u0300-\\u036f",Sd="\\ufe20-\\ufe2f",$d="\\u20d0-\\u20ff",Td=Cd+Sd+$d,Od="\\ufe0e\\ufe0f",Md="\\u200d",Pd=RegExp("["+Md+xd+Td+Od+"]");function $i(e){return Pd.test(e)}function Ed(e){return e.split("")}var Ti="\\ud800-\\udfff",zd="\\u0300-\\u036f",Ad="\\ufe20-\\ufe2f",_d="\\u20d0-\\u20ff",Rd=zd+Ad+_d,Bd="\\ufe0e\\ufe0f",Id="["+Ti+"]",Vn="["+Rd+"]",Xn="\\ud83c[\\udffb-\\udfff]",Dd="(?:"+Vn+"|"+Xn+")",Oi="[^"+Ti+"]",Mi="(?:\\ud83c[\\udde6-\\uddff]){2}",Pi="[\\ud800-\\udbff][\\udc00-\\udfff]",Ld="\\u200d",Ei=Dd+"?",zi="["+Bd+"]?",Hd="(?:"+Ld+"(?:"+[Oi,Mi,Pi].join("|")+")"+zi+Ei+")*",Fd=zi+Ei+Hd,kd="(?:"+[Oi+Vn+"?",Vn,Mi,Pi,Id].join("|")+")",Wd=RegExp(Xn+"(?="+Xn+")|"+kd+Fd,"g");function jd(e){return e.match(Wd)||[]}function Nd(e){return $i(e)?jd(e):Ed(e)}function Ud(e){return function(t){t=fn(t);var n=$i(t)?Nd(t):void 0,r=n?n[0]:t.charAt(0),o=n?yd(n,1).join(""):t.slice(1);return r[e]()+o}}var Vd=Ud("toUpperCase");function Xd(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;)n=t(n,e[o],o,e);return n}function Yd(e){return function(t){return e==null?void 0:e[t]}}var Zd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},qd=Yd(Zd),Gd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kd="\\u0300-\\u036f",Jd="\\ufe20-\\ufe2f",Qd="\\u20d0-\\u20ff",ef=Kd+Jd+Qd,tf="["+ef+"]",nf=RegExp(tf,"g");function rf(e){return e=fn(e),e&&e.replace(Gd,qd).replace(nf,"")}var of=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function af(e){return e.match(of)||[]}var sf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function lf(e){return sf.test(e)}var Ai="\\ud800-\\udfff",uf="\\u0300-\\u036f",cf="\\ufe20-\\ufe2f",df="\\u20d0-\\u20ff",ff=uf+cf+df,_i="\\u2700-\\u27bf",Ri="a-z\\xdf-\\xf6\\xf8-\\xff",hf="\\xac\\xb1\\xd7\\xf7",vf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pf="\\u2000-\\u206f",gf=" \\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",Bi="A-Z\\xc0-\\xd6\\xd8-\\xde",mf="\\ufe0e\\ufe0f",Ii=hf+vf+pf+gf,Di="['’]",fo="["+Ii+"]",bf="["+ff+"]",Li="\\d+",wf="["+_i+"]",Hi="["+Ri+"]",Fi="[^"+Ai+Ii+Li+_i+Ri+Bi+"]",yf="\\ud83c[\\udffb-\\udfff]",xf="(?:"+bf+"|"+yf+")",Cf="[^"+Ai+"]",ki="(?:\\ud83c[\\udde6-\\uddff]){2}",Wi="[\\ud800-\\udbff][\\udc00-\\udfff]",st="["+Bi+"]",Sf="\\u200d",ho="(?:"+Hi+"|"+Fi+")",$f="(?:"+st+"|"+Fi+")",vo="(?:"+Di+"(?:d|ll|m|re|s|t|ve))?",po="(?:"+Di+"(?:D|LL|M|RE|S|T|VE))?",ji=xf+"?",Ni="["+mf+"]?",Tf="(?:"+Sf+"(?:"+[Cf,ki,Wi].join("|")+")"+Ni+ji+")*",Of="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Pf=Ni+ji+Tf,Ef="(?:"+[wf,ki,Wi].join("|")+")"+Pf,zf=RegExp([st+"?"+Hi+"+"+vo+"(?="+[fo,st,"$"].join("|")+")",$f+"+"+po+"(?="+[fo,st+ho,"$"].join("|")+")",st+"?"+ho+"+"+vo,st+"+"+po,Mf,Of,Li,Ef].join("|"),"g");function Af(e){return e.match(zf)||[]}function _f(e,t,n){return e=fn(e),t=t,t===void 0?lf(e)?Af(e):af(e):e.match(t)||[]}var Rf="['’]",Bf=RegExp(Rf,"g");function If(e){return function(t){return Xd(_f(rf(t).replace(Bf,"")),e,"")}}function Df(){this.__data__=new Re,this.size=0}function Lf(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hf(e){return this.__data__.get(e)}function Ff(e){return this.__data__.has(e)}var kf=200;function Wf(e,t){var n=this.__data__;if(n instanceof Re){var r=n.__data__;if(!zt||r.length<kf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Be(r)}return n.set(e,t),this.size=n.size,this}function Te(e){var t=this.__data__=new Re(e);this.size=t.size}Te.prototype.clear=Df;Te.prototype.delete=Lf;Te.prototype.get=Hf;Te.prototype.has=Ff;Te.prototype.set=Wf;var Ui=typeof exports=="object"&&exports&&!exports.nodeType&&exports,go=Ui&&typeof module=="object"&&module&&!module.nodeType&&module,jf=go&&go.exports===Ui,mo=jf?Me.Buffer:void 0;mo&&mo.allocUnsafe;function Nf(e,t){return e.slice()}function Uf(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Vf(){return[]}var Xf=Object.prototype,Yf=Xf.propertyIsEnumerable,bo=Object.getOwnPropertySymbols,Zf=bo?function(e){return e==null?[]:(e=Object(e),Uf(bo(e),function(t){return Yf.call(e,t)}))}:Vf;function qf(e,t,n){var r=t(e);return be(e)?r:fd(r,n(e))}function wo(e){return qf(e,vr,Zf)}var Yn=tt(Me,"DataView"),Zn=tt(Me,"Promise"),qn=tt(Me,"Set"),yo="[object Map]",Gf="[object Object]",xo="[object Promise]",Co="[object Set]",So="[object WeakMap]",$o="[object DataView]",Kf=et(Yn),Jf=et(zt),Qf=et(Zn),eh=et(qn),th=et(Un),He=Qe;(Yn&&He(new Yn(new ArrayBuffer(1)))!=$o||zt&&He(new zt)!=yo||Zn&&He(Zn.resolve())!=xo||qn&&He(new qn)!=Co||Un&&He(new Un)!=So)&&(He=function(e){var t=Qe(e),n=t==Gf?e.constructor:void 0,r=n?et(n):"";if(r)switch(r){case Kf:return $o;case Jf:return yo;case Qf:return xo;case eh:return Co;case th:return So}return t});var an=Me.Uint8Array;function nh(e){var t=new e.constructor(e.byteLength);return new an(t).set(new an(e)),t}function rh(e,t){var n=nh(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function oh(e){return typeof e.constructor=="function"&&!fr(e)?yu(Ci(e)):{}}var ih="__lodash_hash_undefined__";function ah(e){return this.__data__.set(e,ih),this}function sh(e){return this.__data__.has(e)}function sn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Be;++t<n;)this.add(e[t])}sn.prototype.add=sn.prototype.push=ah;sn.prototype.has=sh;function lh(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function uh(e,t){return e.has(t)}var ch=1,dh=2;function Vi(e,t,n,r,o,i){var a=n&ch,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var v=-1,h=!0,b=n&dh?new sn:void 0;for(i.set(e,t),i.set(t,e);++v<s;){var d=e[v],w=t[v];if(r)var g=a?r(w,d,v,t,e,i):r(d,w,v,e,t,i);if(g!==void 0){if(g)continue;h=!1;break}if(b){if(!lh(t,function(f,T){if(!uh(b,T)&&(d===f||o(d,f,n,r,i)))return b.push(T)})){h=!1;break}}else if(!(d===w||o(d,w,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function fh(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function hh(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var vh=1,ph=2,gh="[object Boolean]",mh="[object Date]",bh="[object Error]",wh="[object Map]",yh="[object Number]",xh="[object RegExp]",Ch="[object Set]",Sh="[object String]",$h="[object Symbol]",Th="[object ArrayBuffer]",Oh="[object DataView]",To=Fe?Fe.prototype:void 0,_n=To?To.valueOf:void 0;function Mh(e,t,n,r,o,i,a){switch(n){case Oh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Th:return!(e.byteLength!=t.byteLength||!i(new an(e),new an(t)));case gh:case mh:case yh:return Rt(+e,+t);case bh:return e.name==t.name&&e.message==t.message;case xh:case Sh:return e==t+"";case wh:var s=fh;case Ch:var l=r&vh;if(s||(s=hh),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=ph,a.set(e,t);var c=Vi(s(e),s(t),r,o,i,a);return a.delete(e),c;case $h:if(_n)return _n.call(e)==_n.call(t)}return!1}var Ph=1,Eh=Object.prototype,zh=Eh.hasOwnProperty;function Ah(e,t,n,r,o,i){var a=n&Ph,s=wo(e),l=s.length,u=wo(t),c=u.length;if(l!=c&&!a)return!1;for(var v=l;v--;){var h=s[v];if(!(a?h in t:zh.call(t,h)))return!1}var b=i.get(e),d=i.get(t);if(b&&d)return b==t&&d==e;var w=!0;i.set(e,t),i.set(t,e);for(var g=a;++v<l;){h=s[v];var f=e[h],T=t[h];if(r)var D=a?r(T,f,h,t,e,i):r(f,T,h,e,t,i);if(!(D===void 0?f===T||o(f,T,n,r,i):D)){w=!1;break}g||(g=h=="constructor")}if(w&&!g){var L=e.constructor,j=t.constructor;L!=j&&"constructor"in e&&"constructor"in t&&!(typeof L=="function"&&L instanceof L&&typeof j=="function"&&j instanceof j)&&(w=!1)}return i.delete(e),i.delete(t),w}var _h=1,Oo="[object Arguments]",Mo="[object Array]",Zt="[object Object]",Rh=Object.prototype,Po=Rh.hasOwnProperty;function Bh(e,t,n,r,o,i){var a=be(e),s=be(t),l=a?Mo:He(e),u=s?Mo:He(t);l=l==Oo?Zt:l,u=u==Oo?Zt:u;var c=l==Zt,v=u==Zt,h=l==u;if(h&&on(e)){if(!on(t))return!1;a=!0,c=!1}if(h&&!c)return i||(i=new Te),a||hr(e)?Vi(e,t,n,r,o,i):Mh(e,t,l,n,r,o,i);if(!(n&_h)){var b=c&&Po.call(e,"__wrapped__"),d=v&&Po.call(t,"__wrapped__");if(b||d){var w=b?e.value():e,g=d?t.value():t;return i||(i=new Te),o(w,g,n,r,i)}}return h?(i||(i=new Te),Ah(e,t,n,r,o,i)):!1}function mr(e,t,n,r,o){return e===t?!0:e==null||t==null||!ke(e)&&!ke(t)?e!==e&&t!==t:Bh(e,t,n,r,mr,o)}var Ih=1,Dh=2;function Lh(e,t,n,r){var o=n.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var s=a[0],l=e[s],u=a[1];if(a[2]){if(l===void 0&&!(s in e))return!1}else{var c=new Te,v;if(!(v===void 0?mr(u,l,Ih|Dh,r,c):v))return!1}}return!0}function Xi(e){return e===e&&!We(e)}function Hh(e){for(var t=vr(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Xi(o)]}return t}function Yi(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Fh(e){var t=Hh(e);return t.length==1&&t[0][2]?Yi(t[0][0],t[0][1]):function(n){return n===e||Lh(n,e,t)}}function kh(e,t){return e!=null&&t in Object(e)}function Wh(e,t,n){t=yi(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=hn(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&dr(o)&&ur(a,o)&&(be(e)||rn(e)))}function jh(e,t){return e!=null&&Wh(e,t,kh)}var Nh=1,Uh=2;function Vh(e,t){return pr(e)&&Xi(t)?Yi(hn(e),t):function(n){var r=dd(n,e);return r===void 0&&r===t?jh(n,e):mr(t,r,Nh|Uh)}}function Xh(e){return function(t){return t==null?void 0:t[e]}}function Yh(e){return function(t){return xi(t,e)}}function Zh(e){return pr(e)?Xh(hn(e)):Yh(e)}function qh(e){return typeof e=="function"?e:e==null?sr:typeof e=="object"?be(e)?Vh(e[0],e[1]):Fh(e):Zh(e)}function Gh(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[++o];if(n(i[l],l,i)===!1)break}return t}}var Zi=Gh();function Kh(e,t){return e&&Zi(e,t,vr)}function Jh(e,t){return function(n,r){if(n==null)return n;if(!mt(n))return e(n,r);for(var o=n.length,i=-1,a=Object(n);++i<o&&r(a[i],i,a)!==!1;);return n}}var Qh=Jh(Kh);function Gn(e,t,n){(n!==void 0&&!Rt(e[t],n)||n===void 0&&!(t in e))&&cr(e,t,n)}function ev(e){return ke(e)&&mt(e)}function Kn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function tv(e){return Iu(e,wi(e))}function nv(e,t,n,r,o,i,a){var s=Kn(e,n),l=Kn(t,n),u=a.get(l);if(u){Gn(e,n,u);return}var c=i?i(s,l,n+"",e,t,a):void 0,v=c===void 0;if(v){var h=be(l),b=!h&&on(l),d=!h&&!b&&hr(l);c=l,h||b||d?be(s)?c=s:ev(s)?c=Cu(s):b?(v=!1,c=Nf(l)):d?(v=!1,c=rh(l)):c=[]:bd(l)||rn(l)?(c=s,rn(s)?c=tv(s):(!We(s)||lr(s))&&(c=oh(l))):v=!1}v&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),Gn(e,n,c)}function qi(e,t,n,r,o){e!==t&&Zi(t,function(i,a){if(o||(o=new Te),We(i))nv(e,t,a,n,qi,r,o);else{var s=r?r(Kn(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),Gn(e,a,s)}},wi)}function rv(e,t){var n=-1,r=mt(e)?Array(e.length):[];return Qh(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function ov(e,t){var n=be(e)?fi:rv;return n(e,qh(t))}var iv=If(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),qt=ku(function(e,t,n){qi(e,t,n)});function av(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=ne(Je,null)||{},r=F(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:fl[e]});return{dateLocaleRef:F(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:Xl}),localeRef:r}}const At="naive-ui-style";function sv(e,t,n){if(!t)return;const r=_t(),o=F(()=>{const{value:s}=t;if(!s)return;const l=s[e];if(l)return l}),i=ne(Je,null),a=()=>{Ge(()=>{const{value:s}=n,l=`${s}${e}Rtl`;if(ws(l,r))return;const{value:u}=o;u&&u.style.mount({id:l,head:!0,anchorMetaName:At,props:{bPrefix:s?`.${s}-`:void 0},ssr:r,parent:i==null?void 0:i.styleMountTarget})})};return r?a():tr(a),o}const vn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:lv,fontFamily:uv,lineHeight:cv}=vn,Gi=H("body",`
|
|
15
|
+
margin: 0;
|
|
16
|
+
font-size: ${lv};
|
|
17
|
+
font-family: ${uv};
|
|
18
|
+
line-height: ${cv};
|
|
19
|
+
-webkit-text-size-adjust: 100%;
|
|
20
|
+
-webkit-tap-highlight-color: transparent;
|
|
21
|
+
`,[H("input",`
|
|
22
|
+
font-family: inherit;
|
|
23
|
+
font-size: inherit;
|
|
24
|
+
`)]);function dv(e,t,n){if(!t)return;const r=_t(),o=ne(Je,null),i=()=>{const a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:At,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:o==null?void 0:o.styleMountTarget}),o!=null&&o.preflightStyleDisabled||Gi.mount({id:"n-global",head:!0,anchorMetaName:At,ssr:r,parent:o==null?void 0:o.styleMountTarget})};r?i():tr(i)}function Pe(e,t,n,r,o,i){const a=_t(),s=ne(Je,null);if(n){const u=()=>{const c=i==null?void 0:i.value;n.mount({id:c===void 0?t:c+t,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:At,ssr:a,parent:s==null?void 0:s.styleMountTarget}),s!=null&&s.preflightStyleDisabled||Gi.mount({id:"n-global",head:!0,anchorMetaName:At,ssr:a,parent:s==null?void 0:s.styleMountTarget})};a?u():tr(u)}return F(()=>{var u;const{theme:{common:c,self:v,peers:h={}}={},themeOverrides:b={},builtinThemeOverrides:d={}}=o,{common:w,peers:g}=b,{common:f=void 0,[e]:{common:T=void 0,self:D=void 0,peers:L={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:j=void 0,[e]:W={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:p,peers:m={}}=W,O=qt({},c||T||f||r.common,j,p,w),$=qt((u=v||D||r.self)===null||u===void 0?void 0:u(O),d,W,b);return{common:O,self:$,peers:qt({},r.peers,L,h),peerOverrides:qt({},d.peers,m,g)}})}Pe.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const fv=Ra&&"loading"in document.createElement("img"),hv=G("base-icon",`
|
|
25
|
+
height: 1em;
|
|
26
|
+
width: 1em;
|
|
27
|
+
line-height: 1em;
|
|
28
|
+
text-align: center;
|
|
29
|
+
display: inline-block;
|
|
30
|
+
position: relative;
|
|
31
|
+
fill: currentColor;
|
|
32
|
+
transform: translateZ(0);
|
|
33
|
+
`,[H("svg",`
|
|
34
|
+
height: 1em;
|
|
35
|
+
width: 1em;
|
|
36
|
+
`)]),Ee=ie({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){dv("-base-icon",hv,me(e,"clsPrefix"))},render(){return y("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}});function Bt(e,t){return ie({name:Vd(e),setup(){var n;const r=(n=ne(Je,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const vv=Bt("download",y("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},y("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},y("g",{fill:"currentColor","fill-rule":"nonzero"},y("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),pv=ie({name:"ResizeSmall",render(){return y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},y("g",{fill:"none"},y("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),gv=Bt("rotateClockwise",y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),y("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),mv=Bt("rotateClockwise",y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),y("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),bv=Bt("zoomIn",y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),y("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),wv=Bt("zoomOut",y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),y("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),{cubicBezierEaseInOut:Eo}=vn;function Jn({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=Eo,leaveCubicBezier:o=Eo}={}){return[H(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),H(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),H(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),H(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const E={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},yv=ht(E.neutralBase),Ki=ht(E.neutralInvertBase),xv=`rgba(${Ki.slice(0,3).join(", ")}, `;function zo(e){return`${xv+String(e)})`}function se(e){const t=Array.from(Ki);return t[3]=Number(e),No(yv,t)}const pn=Object.assign(Object.assign({name:"common"},vn),{baseColor:E.neutralBase,primaryColor:E.primaryDefault,primaryColorHover:E.primaryHover,primaryColorPressed:E.primaryActive,primaryColorSuppl:E.primarySuppl,infoColor:E.infoDefault,infoColorHover:E.infoHover,infoColorPressed:E.infoActive,infoColorSuppl:E.infoSuppl,successColor:E.successDefault,successColorHover:E.successHover,successColorPressed:E.successActive,successColorSuppl:E.successSuppl,warningColor:E.warningDefault,warningColorHover:E.warningHover,warningColorPressed:E.warningActive,warningColorSuppl:E.warningSuppl,errorColor:E.errorDefault,errorColorHover:E.errorHover,errorColorPressed:E.errorActive,errorColorSuppl:E.errorSuppl,textColorBase:E.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:se(E.alpha4),placeholderColor:se(E.alpha4),placeholderColorDisabled:se(E.alpha5),iconColor:se(E.alpha4),iconColorHover:kt(se(E.alpha4),{lightness:.75}),iconColorPressed:kt(se(E.alpha4),{lightness:.9}),iconColorDisabled:se(E.alpha5),opacity1:E.alpha1,opacity2:E.alpha2,opacity3:E.alpha3,opacity4:E.alpha4,opacity5:E.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:se(Number(E.alphaClose)),closeIconColorHover:se(Number(E.alphaClose)),closeIconColorPressed:se(Number(E.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:se(E.alpha4),clearColorHover:kt(se(E.alpha4),{lightness:.75}),clearColorPressed:kt(se(E.alpha4),{lightness:.9}),scrollbarColor:zo(E.alphaScrollbar),scrollbarColorHover:zo(E.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:se(E.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:E.neutralPopover,tableColor:E.neutralCard,cardColor:E.neutralCard,modalColor:E.neutralModal,bodyColor:E.neutralBody,tagColor:"#eee",avatarColor:se(E.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:se(E.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:E.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Cv={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function Sv(e){const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:o,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},Cv),{height:r,width:o,borderRadius:i,color:t,colorHover:n})}const $v={name:"Scrollbar",common:pn,self:Sv},Tv=G("scrollbar",`
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
position: relative;
|
|
39
|
+
z-index: auto;
|
|
40
|
+
height: 100%;
|
|
41
|
+
width: 100%;
|
|
42
|
+
`,[H(">",[G("scrollbar-container",`
|
|
43
|
+
width: 100%;
|
|
44
|
+
overflow: scroll;
|
|
45
|
+
height: 100%;
|
|
46
|
+
min-height: inherit;
|
|
47
|
+
max-height: inherit;
|
|
48
|
+
scrollbar-width: none;
|
|
49
|
+
`,[H("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
50
|
+
width: 0;
|
|
51
|
+
height: 0;
|
|
52
|
+
display: none;
|
|
53
|
+
`),H(">",[G("scrollbar-content",`
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
min-width: 100%;
|
|
56
|
+
`)])])]),H(">, +",[G("scrollbar-rail",`
|
|
57
|
+
position: absolute;
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
user-select: none;
|
|
60
|
+
background: var(--n-scrollbar-rail-color);
|
|
61
|
+
-webkit-user-select: none;
|
|
62
|
+
`,[ye("horizontal",`
|
|
63
|
+
height: var(--n-scrollbar-height);
|
|
64
|
+
`,[H(">",[Xe("scrollbar",`
|
|
65
|
+
height: var(--n-scrollbar-height);
|
|
66
|
+
border-radius: var(--n-scrollbar-border-radius);
|
|
67
|
+
right: 0;
|
|
68
|
+
`)])]),ye("horizontal--top",`
|
|
69
|
+
inset: var(--n-scrollbar-rail-inset-horizontal-top);
|
|
70
|
+
`),ye("horizontal--bottom",`
|
|
71
|
+
inset: var(--n-scrollbar-rail-inset-horizontal-bottom);
|
|
72
|
+
`),ye("vertical",`
|
|
73
|
+
width: var(--n-scrollbar-width);
|
|
74
|
+
`,[H(">",[Xe("scrollbar",`
|
|
75
|
+
width: var(--n-scrollbar-width);
|
|
76
|
+
border-radius: var(--n-scrollbar-border-radius);
|
|
77
|
+
bottom: 0;
|
|
78
|
+
`)])]),ye("vertical--left",`
|
|
79
|
+
inset: var(--n-scrollbar-rail-inset-vertical-left);
|
|
80
|
+
`),ye("vertical--right",`
|
|
81
|
+
inset: var(--n-scrollbar-rail-inset-vertical-right);
|
|
82
|
+
`),ye("disabled",[H(">",[Xe("scrollbar","pointer-events: none;")])]),H(">",[Xe("scrollbar",`
|
|
83
|
+
z-index: 1;
|
|
84
|
+
position: absolute;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
pointer-events: all;
|
|
87
|
+
background-color: var(--n-scrollbar-color);
|
|
88
|
+
transition: background-color .2s var(--n-scrollbar-bezier);
|
|
89
|
+
`,[Jn(),H("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),Ov=Object.assign(Object.assign({},Pe.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),Mv=ie({name:"Scrollbar",props:Ov,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=gt(e),o=sv("Scrollbar",r,t),i=A(null),a=A(null),s=A(null),l=A(null),u=A(null),c=A(null),v=A(null),h=A(null),b=A(null),d=A(null),w=A(null),g=A(0),f=A(0),T=A(!1),D=A(!1);let L=!1,j=!1,W,p,m=0,O=0,$=0,B=0;const R=Aa(),k=Pe("Scrollbar","-scrollbar",Tv,$v,e,t),U=F(()=>{const{value:x}=h,{value:P}=c,{value:_}=d;return x===null||P===null||_===null?0:Math.min(x,_*x/P+Tr(k.value.self.width)*1.5)}),S=F(()=>`${U.value}px`),I=F(()=>{const{value:x}=b,{value:P}=v,{value:_}=w;return x===null||P===null||_===null?0:_*x/P+Tr(k.value.self.height)*1.5}),V=F(()=>`${I.value}px`),J=F(()=>{const{value:x}=h,{value:P}=g,{value:_}=c,{value:Y}=d;if(x===null||_===null||Y===null)return 0;{const ee=_-x;return ee?P/ee*(Y-U.value):0}}),oe=F(()=>`${J.value}px`),Q=F(()=>{const{value:x}=b,{value:P}=f,{value:_}=v,{value:Y}=w;if(x===null||_===null||Y===null)return 0;{const ee=_-x;return ee?P/ee*(Y-I.value):0}}),fe=F(()=>`${Q.value}px`),nt=F(()=>{const{value:x}=h,{value:P}=c;return x!==null&&P!==null&&P>x}),It=F(()=>{const{value:x}=b,{value:P}=v;return x!==null&&P!==null&&P>x}),gn=F(()=>{const{trigger:x}=e;return x==="none"||T.value}),he=F(()=>{const{trigger:x}=e;return x==="none"||D.value}),xe=F(()=>{const{container:x}=e;return x?x():a.value}),mn=F(()=>{const{content:x}=e;return x?x():s.value}),Dt=(x,P)=>{if(!e.scrollable)return;if(typeof x=="number"){C(x,P??0,0,!1,"auto");return}const{left:_,top:Y,index:ee,elSize:ce,position:we,behavior:q,el:pe,debounce:De=!0}=x;(_!==void 0||Y!==void 0)&&C(_??0,Y??0,0,!1,q),pe!==void 0?C(0,pe.offsetTop,pe.offsetHeight,De,q):ee!==void 0&&ce!==void 0?C(0,ee*ce,ce,De,q):we==="bottom"?C(0,Number.MAX_SAFE_INTEGER,0,!1,q):we==="top"&&C(0,0,0,!1,q)},Lt=Ba(()=>{e.container||Dt({top:g.value,left:f.value})}),Ht=()=>{Lt.isDeactivated||je()},Ft=x=>{if(Lt.isDeactivated)return;const{onResize:P}=e;P&&P(x),je()},Ie=(x,P)=>{if(!e.scrollable)return;const{value:_}=xe;_&&(typeof x=="object"?_.scrollBy(x):_.scrollBy(x,P||0))};function C(x,P,_,Y,ee){const{value:ce}=xe;if(ce){if(Y){const{scrollTop:we,offsetHeight:q}=ce;if(P>we){P+_<=we+q||ce.scrollTo({left:x,top:P+_-q,behavior:ee});return}}ce.scrollTo({left:x,top:P,behavior:ee})}}function z(){ue(),ve(),je()}function M(){N()}function N(){X(),ae()}function X(){p!==void 0&&window.clearTimeout(p),p=window.setTimeout(()=>{D.value=!1},e.duration)}function ae(){W!==void 0&&window.clearTimeout(W),W=window.setTimeout(()=>{T.value=!1},e.duration)}function ue(){W!==void 0&&window.clearTimeout(W),T.value=!0}function ve(){p!==void 0&&window.clearTimeout(p),D.value=!0}function Ce(x){const{onScroll:P}=e;P&&P(x),wr()}function wr(){const{value:x}=xe;x&&(g.value=x.scrollTop,f.value=x.scrollLeft*(o!=null&&o.value?-1:1))}function ia(){const{value:x}=mn;x&&(c.value=x.offsetHeight,v.value=x.offsetWidth);const{value:P}=xe;P&&(h.value=P.offsetHeight,b.value=P.offsetWidth);const{value:_}=u,{value:Y}=l;_&&(w.value=_.offsetWidth),Y&&(d.value=Y.offsetHeight)}function yr(){const{value:x}=xe;x&&(g.value=x.scrollTop,f.value=x.scrollLeft*(o!=null&&o.value?-1:1),h.value=x.offsetHeight,b.value=x.offsetWidth,c.value=x.scrollHeight,v.value=x.scrollWidth);const{value:P}=u,{value:_}=l;P&&(w.value=P.offsetWidth),_&&(d.value=_.offsetHeight)}function je(){e.scrollable&&(e.useUnifiedContainer?yr():(ia(),wr()))}function xr(x){var P;return!(!((P=i.value)===null||P===void 0)&&P.contains(tn(x)))}function aa(x){x.preventDefault(),x.stopPropagation(),j=!0,re("mousemove",window,Cr,!0),re("mouseup",window,Sr,!0),O=f.value,$=o!=null&&o.value?window.innerWidth-x.clientX:x.clientX}function Cr(x){if(!j)return;W!==void 0&&window.clearTimeout(W),p!==void 0&&window.clearTimeout(p);const{value:P}=b,{value:_}=v,{value:Y}=I;if(P===null||_===null)return;const ce=(o!=null&&o.value?window.innerWidth-x.clientX-$:x.clientX-$)*(_-P)/(P-Y),we=_-P;let q=O+ce;q=Math.min(we,q),q=Math.max(q,0);const{value:pe}=xe;if(pe){pe.scrollLeft=q*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:De}=e;De&&De(q)}}function Sr(x){x.preventDefault(),x.stopPropagation(),K("mousemove",window,Cr,!0),K("mouseup",window,Sr,!0),j=!1,je(),xr(x)&&N()}function sa(x){x.preventDefault(),x.stopPropagation(),L=!0,re("mousemove",window,bn,!0),re("mouseup",window,wn,!0),m=g.value,B=x.clientY}function bn(x){if(!L)return;W!==void 0&&window.clearTimeout(W),p!==void 0&&window.clearTimeout(p);const{value:P}=h,{value:_}=c,{value:Y}=U;if(P===null||_===null)return;const ce=(x.clientY-B)*(_-P)/(P-Y),we=_-P;let q=m+ce;q=Math.min(we,q),q=Math.max(q,0);const{value:pe}=xe;pe&&(pe.scrollTop=q)}function wn(x){x.preventDefault(),x.stopPropagation(),K("mousemove",window,bn,!0),K("mouseup",window,wn,!0),L=!1,je(),xr(x)&&N()}Ge(()=>{const{value:x}=It,{value:P}=nt,{value:_}=t,{value:Y}=u,{value:ee}=l;Y&&(x?Y.classList.remove(`${_}-scrollbar-rail--disabled`):Y.classList.add(`${_}-scrollbar-rail--disabled`)),ee&&(P?ee.classList.remove(`${_}-scrollbar-rail--disabled`):ee.classList.add(`${_}-scrollbar-rail--disabled`))}),_e(()=>{e.container||je()}),Oe(()=>{W!==void 0&&window.clearTimeout(W),p!==void 0&&window.clearTimeout(p),K("mousemove",window,bn,!0),K("mouseup",window,wn,!0)});const $r=F(()=>{const{common:{cubicBezierEaseInOut:x},self:{color:P,colorHover:_,height:Y,width:ee,borderRadius:ce,railInsetHorizontalTop:we,railInsetHorizontalBottom:q,railInsetVerticalRight:pe,railInsetVerticalLeft:De,railColor:la}}=k.value;return{"--n-scrollbar-bezier":x,"--n-scrollbar-color":P,"--n-scrollbar-color-hover":_,"--n-scrollbar-border-radius":ce,"--n-scrollbar-width":ee,"--n-scrollbar-height":Y,"--n-scrollbar-rail-inset-horizontal-top":we,"--n-scrollbar-rail-inset-horizontal-bottom":q,"--n-scrollbar-rail-inset-vertical-right":o!=null&&o.value?qr(pe):pe,"--n-scrollbar-rail-inset-vertical-left":o!=null&&o.value?qr(De):De,"--n-scrollbar-rail-color":la}}),rt=n?ir("scrollbar",void 0,$r,e):void 0;return Object.assign(Object.assign({},{scrollTo:Dt,scrollBy:Ie,sync:je,syncUnifiedContainer:yr,handleMouseEnterWrapper:z,handleMouseLeaveWrapper:M}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:g,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:u,needYBar:nt,needXBar:It,yBarSizePx:S,xBarSizePx:V,yBarTopPx:oe,xBarLeftPx:fe,isShowXBar:gn,isShowYBar:he,isIos:R,handleScroll:Ce,handleContentResize:Ht,handleContainerResize:Ft,handleYScrollMouseDown:sa,handleXScrollMouseDown:aa,cssVars:n?void 0:$r,themeClass:rt==null?void 0:rt.themeClass,onRender:rt==null?void 0:rt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i,yPlacement:a,xPlacement:s,xScrollable:l}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const u=this.trigger==="none",c=(b,d)=>y("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,`${n}-scrollbar-rail--vertical--${a}`,b],"data-scrollbar-rail":!0,style:[d||"",this.verticalRailStyle],"aria-hidden":!0},y(u?Qr:lt,u?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?y("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),v=()=>{var b,d;return(b=this.onRender)===null||b===void 0||b.call(this),y("div",Bo(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(d=t.default)===null||d===void 0?void 0:d.call(t):y("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},y(Yr,{onResize:this.handleContentResize},{default:()=>y("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:c(void 0,void 0),l&&y("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`,`${n}-scrollbar-rail--horizontal--${s}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},y(u?Qr:lt,u?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?y("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},h=this.container?v():y(Yr,{onResize:this.handleContainerResize},{default:v});return i?y(Ae,null,h,c(this.themeClass,this.cssVars)):h}}),Pv=Mv,{cubicBezierEaseIn:Ao,cubicBezierEaseOut:_o}=vn;function Ev({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[H("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Ao}, transform ${t} ${Ao} ${o&&`,${o}`}`}),H("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${_o}, transform ${t} ${_o} ${o&&`,${o}`}`}),H("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),H("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const zv={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function Av(e){const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},zv),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})}const Ji={name:"Popover",common:pn,self:Av},Rn={top:"bottom",bottom:"top",left:"right",right:"left"},te="var(--n-arrow-height) * 1.414",_v=H([G("popover",`
|
|
90
|
+
transition:
|
|
91
|
+
box-shadow .3s var(--n-bezier),
|
|
92
|
+
background-color .3s var(--n-bezier),
|
|
93
|
+
color .3s var(--n-bezier);
|
|
94
|
+
position: relative;
|
|
95
|
+
font-size: var(--n-font-size);
|
|
96
|
+
color: var(--n-text-color);
|
|
97
|
+
box-shadow: var(--n-box-shadow);
|
|
98
|
+
word-break: break-word;
|
|
99
|
+
`,[H(">",[G("scrollbar",`
|
|
100
|
+
height: inherit;
|
|
101
|
+
max-height: inherit;
|
|
102
|
+
`)]),Qt("raw",`
|
|
103
|
+
background-color: var(--n-color);
|
|
104
|
+
border-radius: var(--n-border-radius);
|
|
105
|
+
`,[Qt("scrollable",[Qt("show-header-or-footer","padding: var(--n-padding);")])]),Xe("header",`
|
|
106
|
+
padding: var(--n-padding);
|
|
107
|
+
border-bottom: 1px solid var(--n-divider-color);
|
|
108
|
+
transition: border-color .3s var(--n-bezier);
|
|
109
|
+
`),Xe("footer",`
|
|
110
|
+
padding: var(--n-padding);
|
|
111
|
+
border-top: 1px solid var(--n-divider-color);
|
|
112
|
+
transition: border-color .3s var(--n-bezier);
|
|
113
|
+
`),ye("scrollable, show-header-or-footer",[Xe("content",`
|
|
114
|
+
padding: var(--n-padding);
|
|
115
|
+
`)])]),G("popover-shared",`
|
|
116
|
+
transform-origin: inherit;
|
|
117
|
+
`,[G("popover-arrow-wrapper",`
|
|
118
|
+
position: absolute;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
`,[G("popover-arrow",`
|
|
122
|
+
transition: background-color .3s var(--n-bezier);
|
|
123
|
+
position: absolute;
|
|
124
|
+
display: block;
|
|
125
|
+
width: calc(${te});
|
|
126
|
+
height: calc(${te});
|
|
127
|
+
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
|
128
|
+
transform: rotate(45deg);
|
|
129
|
+
background-color: var(--n-color);
|
|
130
|
+
pointer-events: all;
|
|
131
|
+
`)]),H("&.popover-transition-enter-from, &.popover-transition-leave-to",`
|
|
132
|
+
opacity: 0;
|
|
133
|
+
transform: scale(.85);
|
|
134
|
+
`),H("&.popover-transition-enter-to, &.popover-transition-leave-from",`
|
|
135
|
+
transform: scale(1);
|
|
136
|
+
opacity: 1;
|
|
137
|
+
`),H("&.popover-transition-enter-active",`
|
|
138
|
+
transition:
|
|
139
|
+
box-shadow .3s var(--n-bezier),
|
|
140
|
+
background-color .3s var(--n-bezier),
|
|
141
|
+
color .3s var(--n-bezier),
|
|
142
|
+
opacity .15s var(--n-bezier-ease-out),
|
|
143
|
+
transform .15s var(--n-bezier-ease-out);
|
|
144
|
+
`),H("&.popover-transition-leave-active",`
|
|
145
|
+
transition:
|
|
146
|
+
box-shadow .3s var(--n-bezier),
|
|
147
|
+
background-color .3s var(--n-bezier),
|
|
148
|
+
color .3s var(--n-bezier),
|
|
149
|
+
opacity .15s var(--n-bezier-ease-in),
|
|
150
|
+
transform .15s var(--n-bezier-ease-in);
|
|
151
|
+
`)]),ge("top-start",`
|
|
152
|
+
top: calc(${te} / -2);
|
|
153
|
+
left: calc(${ze("top-start")} - var(--v-offset-left));
|
|
154
|
+
`),ge("top",`
|
|
155
|
+
top: calc(${te} / -2);
|
|
156
|
+
transform: translateX(calc(${te} / -2)) rotate(45deg);
|
|
157
|
+
left: 50%;
|
|
158
|
+
`),ge("top-end",`
|
|
159
|
+
top: calc(${te} / -2);
|
|
160
|
+
right: calc(${ze("top-end")} + var(--v-offset-left));
|
|
161
|
+
`),ge("bottom-start",`
|
|
162
|
+
bottom: calc(${te} / -2);
|
|
163
|
+
left: calc(${ze("bottom-start")} - var(--v-offset-left));
|
|
164
|
+
`),ge("bottom",`
|
|
165
|
+
bottom: calc(${te} / -2);
|
|
166
|
+
transform: translateX(calc(${te} / -2)) rotate(45deg);
|
|
167
|
+
left: 50%;
|
|
168
|
+
`),ge("bottom-end",`
|
|
169
|
+
bottom: calc(${te} / -2);
|
|
170
|
+
right: calc(${ze("bottom-end")} + var(--v-offset-left));
|
|
171
|
+
`),ge("left-start",`
|
|
172
|
+
left: calc(${te} / -2);
|
|
173
|
+
top: calc(${ze("left-start")} - var(--v-offset-top));
|
|
174
|
+
`),ge("left",`
|
|
175
|
+
left: calc(${te} / -2);
|
|
176
|
+
transform: translateY(calc(${te} / -2)) rotate(45deg);
|
|
177
|
+
top: 50%;
|
|
178
|
+
`),ge("left-end",`
|
|
179
|
+
left: calc(${te} / -2);
|
|
180
|
+
bottom: calc(${ze("left-end")} + var(--v-offset-top));
|
|
181
|
+
`),ge("right-start",`
|
|
182
|
+
right: calc(${te} / -2);
|
|
183
|
+
top: calc(${ze("right-start")} - var(--v-offset-top));
|
|
184
|
+
`),ge("right",`
|
|
185
|
+
right: calc(${te} / -2);
|
|
186
|
+
transform: translateY(calc(${te} / -2)) rotate(45deg);
|
|
187
|
+
top: 50%;
|
|
188
|
+
`),ge("right-end",`
|
|
189
|
+
right: calc(${te} / -2);
|
|
190
|
+
bottom: calc(${ze("right-end")} + var(--v-offset-top));
|
|
191
|
+
`),...ov({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${r}, 0px)`} - ${te}) / 2)`,l=ze(o);return H(`[v-placement="${o}"] >`,[G("popover-shared",[ye("center-arrow",[G("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function ze(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function ge(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return H(`[v-placement="${e}"] >`,[G("popover-shared",`
|
|
192
|
+
margin-${Rn[n]}: var(--n-space);
|
|
193
|
+
`,[ye("show-arrow",`
|
|
194
|
+
margin-${Rn[n]}: var(--n-space-arrow);
|
|
195
|
+
`),ye("overlap",`
|
|
196
|
+
margin: 0;
|
|
197
|
+
`),il("popover-arrow-wrapper",`
|
|
198
|
+
right: 0;
|
|
199
|
+
left: 0;
|
|
200
|
+
top: 0;
|
|
201
|
+
bottom: 0;
|
|
202
|
+
${n}: 100%;
|
|
203
|
+
${Rn[n]}: auto;
|
|
204
|
+
${r}
|
|
205
|
+
`,[G("popover-arrow",t)])])])}const Qi=Object.assign(Object.assign({},Pe.props),{to:ft.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function Rv({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:r,clsPrefix:o}){return y("div",{key:"__popover-arrow__",style:r,class:[`${o}-popover-arrow-wrapper`,n]},y("div",{class:[`${o}-popover-arrow`,e],style:t}))}const Bv=ie({name:"PopoverBody",inheritAttrs:!1,props:Qi,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=gt(e),a=Pe("Popover","-popover",_v,Ji,e,o),s=A(null),l=ne("NPopover"),u=A(null),c=A(e.show),v=A(!1);Ge(()=>{const{show:p}=e;p&&!sl()&&!e.internalDeactivateImmediately&&(v.value=!0)});const h=F(()=>{const{trigger:p,onClickoutside:m}=e,O=[],{positionManuallyRef:{value:$}}=l;return $||(p==="click"&&!m&&O.push([Pr,L,void 0,{capture:!0}]),p==="hover"&&O.push([Ga,D])),m&&O.push([Pr,L,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&v.value)&&O.push([Io,e.show]),O}),b=F(()=>{const{common:{cubicBezierEaseInOut:p,cubicBezierEaseIn:m,cubicBezierEaseOut:O},self:{space:$,spaceArrow:B,padding:R,fontSize:k,textColor:U,dividerColor:S,color:I,boxShadow:V,borderRadius:J,arrowHeight:oe,arrowOffset:Q,arrowOffsetVertical:fe}}=a.value;return{"--n-box-shadow":V,"--n-bezier":p,"--n-bezier-ease-in":m,"--n-bezier-ease-out":O,"--n-font-size":k,"--n-text-color":U,"--n-color":I,"--n-divider-color":S,"--n-border-radius":J,"--n-arrow-height":oe,"--n-arrow-offset":Q,"--n-arrow-offset-vertical":fe,"--n-padding":R,"--n-space":$,"--n-space-arrow":B}}),d=F(()=>{const p=e.width==="trigger"?void 0:On(e.width),m=[];p&&m.push({width:p});const{maxWidth:O,minWidth:$}=e;return O&&m.push({maxWidth:On(O)}),$&&m.push({maxWidth:On($)}),i||m.push(b.value),m}),w=i?ir("popover",void 0,b,e):void 0;l.setBodyInstance({syncPosition:g}),Oe(()=>{l.setBodyInstance(null)}),$e(me(e,"show"),p=>{e.animated||(p?c.value=!0:c.value=!1)});function g(){var p;(p=s.value)===null||p===void 0||p.syncPosition()}function f(p){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(p)}function T(p){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(p)}function D(p){e.trigger==="hover"&&!j().contains(tn(p))&&l.handleMouseMoveOutside(p)}function L(p){(e.trigger==="click"&&!j().contains(tn(p))||e.onClickoutside)&&l.handleClickOutside(p)}function j(){return l.getTriggerElement()}Ye(Fo,u),Ye(Lo,null),Ye(Ho,null);function W(){if(w==null||w.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&v.value))return null;let m;const O=l.internalRenderBodyRef.value,{value:$}=o;if(O)m=O([`${$}-popover-shared`,w==null?void 0:w.themeClass.value,e.overlap&&`${$}-popover-shared--overlap`,e.showArrow&&`${$}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${$}-popover-shared--center-arrow`],u,d.value,f,T);else{const{value:B}=l.extraClassRef,{internalTrapFocus:R}=e,k=!Jr(t.header)||!Jr(t.footer),U=()=>{var S,I;const V=k?y(Ae,null,Pn(t.header,Q=>Q?y("div",{class:[`${$}-popover__header`,e.headerClass],style:e.headerStyle},Q):null),Pn(t.default,Q=>Q?y("div",{class:[`${$}-popover__content`,e.contentClass],style:e.contentStyle},t):null),Pn(t.footer,Q=>Q?y("div",{class:[`${$}-popover__footer`,e.footerClass],style:e.footerStyle},Q):null)):e.scrollable?(S=t.default)===null||S===void 0?void 0:S.call(t):y("div",{class:[`${$}-popover__content`,e.contentClass],style:e.contentStyle},t),J=e.scrollable?y(Pv,{contentClass:k?void 0:`${$}-popover__content ${(I=e.contentClass)!==null&&I!==void 0?I:""}`,contentStyle:k?void 0:e.contentStyle},{default:()=>V}):V,oe=e.showArrow?Rv({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:$}):null;return[J,oe]};m=y("div",Bo({class:[`${$}-popover`,`${$}-popover-shared`,w==null?void 0:w.themeClass.value,B.map(S=>`${$}-${S}`),{[`${$}-popover--scrollable`]:e.scrollable,[`${$}-popover--show-header-or-footer`]:k,[`${$}-popover--raw`]:e.raw,[`${$}-popover-shared--overlap`]:e.overlap,[`${$}-popover-shared--show-arrow`]:e.showArrow,[`${$}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:d.value,onKeydown:l.handleKeydown,onMouseenter:f,onMouseleave:T},n),R?y(Js,{active:e.show,autoFocus:!0},{default:U}):U())}return dt(m,h.value)}return{displayed:v,namespace:r,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:ft(e),followerEnabled:c,renderContentNode:W}},render(){return y(Ps,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===ft.tdkey},{default:()=>this.animated?y(lt,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Iv=Object.keys(Qi),Dv={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function Lv(e,t,n){Dv[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const ea={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:ft.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},Hv=Object.assign(Object.assign(Object.assign({},Pe.props),ea),{internalOnAfterLeave:Function,internalRenderBody:Function}),Fv=ie({name:"Popover",inheritAttrs:!1,props:Hv,__popover__:!0,setup(e){const t=nr(),n=A(null),r=F(()=>e.show),o=A(e.defaultShow),i=Pa(r,o),a=Mt(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:S}=e;return!!(S!=null&&S())},l=()=>s()?!1:i.value,u=Ea(e,["arrow","showArrow"]),c=F(()=>e.overlap?!1:u.value);let v=null;const h=A(null),b=A(null),d=Mt(()=>e.x!==void 0&&e.y!==void 0);function w(S){const{"onUpdate:show":I,onUpdateShow:V,onShow:J,onHide:oe}=e;o.value=S,I&&Ct(I,S),V&&Ct(V,S),S&&J&&Ct(J,!0),S&&oe&&Ct(oe,!1)}function g(){v&&v.syncPosition()}function f(){const{value:S}=h;S&&(window.clearTimeout(S),h.value=null)}function T(){const{value:S}=b;S&&(window.clearTimeout(S),b.value=null)}function D(){const S=s();if(e.trigger==="focus"&&!S){if(l())return;w(!0)}}function L(){const S=s();if(e.trigger==="focus"&&!S){if(!l())return;w(!1)}}function j(){const S=s();if(e.trigger==="hover"&&!S){if(T(),h.value!==null||l())return;const I=()=>{w(!0),h.value=null},{delay:V}=e;V===0?I():h.value=window.setTimeout(I,V)}}function W(){const S=s();if(e.trigger==="hover"&&!S){if(f(),b.value!==null||!l())return;const I=()=>{w(!1),b.value=null},{duration:V}=e;V===0?I():b.value=window.setTimeout(I,V)}}function p(){W()}function m(S){var I;l()&&(e.trigger==="click"&&(f(),T(),w(!1)),(I=e.onClickoutside)===null||I===void 0||I.call(e,S))}function O(){if(e.trigger==="click"&&!s()){f(),T();const S=!l();w(S)}}function $(S){e.internalTrapFocus&&S.key==="Escape"&&(f(),T(),w(!1))}function B(S){o.value=S}function R(){var S;return(S=n.value)===null||S===void 0?void 0:S.targetRef}function k(S){v=S}return Ye("NPopover",{getTriggerElement:R,handleKeydown:$,handleMouseEnter:j,handleMouseLeave:W,handleClickOutside:m,handleMouseMoveOutside:p,setBodyInstance:k,positionManuallyRef:d,isMountedRef:t,zIndexRef:me(e,"zIndex"),extraClassRef:me(e,"internalExtraClass"),internalRenderBodyRef:me(e,"internalRenderBody")}),Ge(()=>{i.value&&s()&&w(!1)}),{binderInstRef:n,positionManually:d,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:c,getMergedShow:l,setShow:B,handleClick:O,handleMouseEnter:j,handleMouseLeave:W,handleFocus:D,handleBlur:L,syncPosition:g}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Kr(n,"activator"):r=Kr(n,"trigger"),r)){r=ga(r),r=r.type===ma?y("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:u=>{s.forEach(c=>{c.onBlur(u)})},onFocus:u=>{s.forEach(c=>{c.onFocus(u)})},onClick:u=>{s.forEach(c=>{c.onClick(u)})},onMouseenter:u=>{s.forEach(c=>{c.onMouseenter(u)})},onMouseleave:u=>{s.forEach(c=>{c.onMouseleave(u)})}};Lv(r,a?"nested":t?"manual":this.trigger,l)}}return y(Za,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?dt(y("div",{style:{position:"fixed",inset:0}}),[[rr,{enabled:i,zIndex:this.zIndex}]]):null,t?null:y(qa,null,{default:()=>r}),y(Bv,ul(this.$props,Iv,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),kv={padding:"8px 14px"};function Wv(e){const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},kv),{borderRadius:t,boxShadow:n,color:No(r,"rgba(0, 0, 0, .85)"),textColor:r})}const ta={name:"Tooltip",common:pn,peers:{Popover:Ji},self:Wv},jv=Object.assign(Object.assign({},ea),Pe.props),Nv=ie({name:"Tooltip",props:jv,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=gt(e),n=Pe("Tooltip","-tooltip",void 0,ta,e,t),r=A(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(i){r.value.setShow(i)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:F(()=>n.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return y(Fv,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}});function Uv(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Vv={name:"Image",common:pn,peers:{Tooltip:ta},self:Uv},Xv=y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),Yv=y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),Zv=y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),br=Object.assign(Object.assign({},Pe.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),na="n-image",qv=H([H("body >",[G("image-container","position: fixed;")]),G("image-preview-container",`
|
|
206
|
+
position: fixed;
|
|
207
|
+
left: 0;
|
|
208
|
+
right: 0;
|
|
209
|
+
top: 0;
|
|
210
|
+
bottom: 0;
|
|
211
|
+
display: flex;
|
|
212
|
+
`),G("image-preview-overlay",`
|
|
213
|
+
z-index: -1;
|
|
214
|
+
position: absolute;
|
|
215
|
+
left: 0;
|
|
216
|
+
right: 0;
|
|
217
|
+
top: 0;
|
|
218
|
+
bottom: 0;
|
|
219
|
+
background: rgba(0, 0, 0, .3);
|
|
220
|
+
`,[Jn()]),G("image-preview-toolbar",`
|
|
221
|
+
z-index: 1;
|
|
222
|
+
position: absolute;
|
|
223
|
+
left: 50%;
|
|
224
|
+
transform: translateX(-50%);
|
|
225
|
+
border-radius: var(--n-toolbar-border-radius);
|
|
226
|
+
height: 48px;
|
|
227
|
+
bottom: 40px;
|
|
228
|
+
padding: 0 12px;
|
|
229
|
+
background: var(--n-toolbar-color);
|
|
230
|
+
box-shadow: var(--n-toolbar-box-shadow);
|
|
231
|
+
color: var(--n-toolbar-icon-color);
|
|
232
|
+
transition: color .3s var(--n-bezier);
|
|
233
|
+
display: flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
`,[G("base-icon",`
|
|
236
|
+
padding: 0 8px;
|
|
237
|
+
font-size: 28px;
|
|
238
|
+
cursor: pointer;
|
|
239
|
+
`),Jn()]),G("image-preview-wrapper",`
|
|
240
|
+
position: absolute;
|
|
241
|
+
left: 0;
|
|
242
|
+
right: 0;
|
|
243
|
+
top: 0;
|
|
244
|
+
bottom: 0;
|
|
245
|
+
display: flex;
|
|
246
|
+
pointer-events: none;
|
|
247
|
+
`,[Ev()]),G("image-preview",`
|
|
248
|
+
user-select: none;
|
|
249
|
+
-webkit-user-select: none;
|
|
250
|
+
pointer-events: all;
|
|
251
|
+
margin: auto;
|
|
252
|
+
max-height: calc(100vh - 32px);
|
|
253
|
+
max-width: calc(100vw - 32px);
|
|
254
|
+
transition: transform .3s var(--n-bezier);
|
|
255
|
+
`),G("image",`
|
|
256
|
+
display: inline-flex;
|
|
257
|
+
max-height: 100%;
|
|
258
|
+
max-width: 100%;
|
|
259
|
+
`,[Qt("preview-disabled",`
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
`),H("img",`
|
|
262
|
+
border-radius: inherit;
|
|
263
|
+
`)])]),Gt=32,ra=ie({name:"ImagePreview",props:Object.assign(Object.assign({},br),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Pe("Image","-image",qv,Vv,e,me(e,"clsPrefix"));let n=null;const r=A(null),o=A(null),i=A(void 0),a=A(!1),s=A(!1),{localeRef:l}=av("Image");function u(){const{value:C}=o;if(!n||!C)return;const{style:z}=C,M=n.getBoundingClientRect(),N=M.left+M.width/2,X=M.top+M.height/2;z.transformOrigin=`${N}px ${X}px`}function c(C){var z,M;switch(C.key){case" ":C.preventDefault();break;case"ArrowLeft":(z=e.onPrev)===null||z===void 0||z.call(e);break;case"ArrowRight":(M=e.onNext)===null||M===void 0||M.call(e);break;case"Escape":xe();break}}$e(a,C=>{C?re("keydown",document,c):K("keydown",document,c)}),Oe(()=>{K("keydown",document,c)});let v=0,h=0,b=0,d=0,w=0,g=0,f=0,T=0,D=!1;function L(C){const{clientX:z,clientY:M}=C;b=z-v,d=M-h,jo(he)}function j(C){const{mouseUpClientX:z,mouseUpClientY:M,mouseDownClientX:N,mouseDownClientY:X}=C,ae=N-z,ue=X-M,ve=`vertical${ue>0?"Top":"Bottom"}`,Ce=`horizontal${ae>0?"Left":"Right"}`;return{moveVerticalDirection:ve,moveHorizontalDirection:Ce,deltaHorizontal:ae,deltaVertical:ue}}function W(C){const{value:z}=r;if(!z)return{offsetX:0,offsetY:0};const M=z.getBoundingClientRect(),{moveVerticalDirection:N,moveHorizontalDirection:X,deltaHorizontal:ae,deltaVertical:ue}=C||{};let ve=0,Ce=0;return M.width<=window.innerWidth?ve=0:M.left>0?ve=(M.width-window.innerWidth)/2:M.right<window.innerWidth?ve=-(M.width-window.innerWidth)/2:X==="horizontalRight"?ve=Math.min((M.width-window.innerWidth)/2,w-(ae??0)):ve=Math.max(-((M.width-window.innerWidth)/2),w-(ae??0)),M.height<=window.innerHeight?Ce=0:M.top>0?Ce=(M.height-window.innerHeight)/2:M.bottom<window.innerHeight?Ce=-(M.height-window.innerHeight)/2:N==="verticalBottom"?Ce=Math.min((M.height-window.innerHeight)/2,g-(ue??0)):Ce=Math.max(-((M.height-window.innerHeight)/2),g-(ue??0)),{offsetX:ve,offsetY:Ce}}function p(C){K("mousemove",document,L),K("mouseup",document,p);const{clientX:z,clientY:M}=C;D=!1;const N=j({mouseUpClientX:z,mouseUpClientY:M,mouseDownClientX:f,mouseDownClientY:T}),X=W(N);b=X.offsetX,d=X.offsetY,he()}const m=ne(na,null);function O(C){var z,M;if((M=(z=m==null?void 0:m.previewedImgPropsRef.value)===null||z===void 0?void 0:z.onMousedown)===null||M===void 0||M.call(z,C),C.button!==0)return;const{clientX:N,clientY:X}=C;D=!0,v=N-b,h=X-d,w=b,g=d,f=N,T=X,he(),re("mousemove",document,L),re("mouseup",document,p)}const $=1.5;let B=0,R=1,k=0;function U(C){var z,M;(M=(z=m==null?void 0:m.previewedImgPropsRef.value)===null||z===void 0?void 0:z.onDblclick)===null||M===void 0||M.call(z,C);const N=fe();R=R===N?1:N,he()}function S(){R=1,B=0}function I(){var C;S(),k=0,(C=e.onPrev)===null||C===void 0||C.call(e)}function V(){var C;S(),k=0,(C=e.onNext)===null||C===void 0||C.call(e)}function J(){k-=90,he()}function oe(){k+=90,he()}function Q(){const{value:C}=r;if(!C)return 1;const{innerWidth:z,innerHeight:M}=window,N=Math.max(1,C.naturalHeight/(M-Gt)),X=Math.max(1,C.naturalWidth/(z-Gt));return Math.max(3,N*2,X*2)}function fe(){const{value:C}=r;if(!C)return 1;const{innerWidth:z,innerHeight:M}=window,N=C.naturalHeight/(M-Gt),X=C.naturalWidth/(z-Gt);return N<1&&X<1?1:Math.max(N,X)}function nt(){const C=Q();R<C&&(B+=1,R=Math.min(C,Math.pow($,B)),he())}function It(){if(R>.5){const C=R;B-=1,R=Math.max(.5,Math.pow($,B));const z=C-R;he(!1);const M=W();R+=z,he(!1),R-=z,b=M.offsetX,d=M.offsetY,he()}}function gn(){const C=i.value;C&&al(C)}function he(C=!0){var z;const{value:M}=r;if(!M)return;const{style:N}=M,X=ba((z=m==null?void 0:m.previewedImgPropsRef.value)===null||z===void 0?void 0:z.style);let ae="";if(typeof X=="string")ae=`${X};`;else for(const ve in X)ae+=`${iv(ve)}: ${X[ve]};`;const ue=`transform-origin: center; transform: translateX(${b}px) translateY(${d}px) rotate(${k}deg) scale(${R});`;D?N.cssText=`${ae}cursor: grabbing; transition: none;${ue}`:N.cssText=`${ae}cursor: grab;${ue}${C?"":"transition: none;"}`,C||M.offsetHeight}function xe(){a.value=!a.value,s.value=!0}function mn(){R=fe(),B=Math.ceil(Math.log(R)/Math.log($)),b=0,d=0,he()}const Dt={setPreviewSrc:C=>{i.value=C},setThumbnailEl:C=>{n=C},toggleShow:xe};function Lt(C,z){if(e.showToolbarTooltip){const{value:M}=t;return y(Nv,{to:!1,theme:M.peers.Tooltip,themeOverrides:M.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>l.value[z],trigger:()=>C})}else return C}const Ht=F(()=>{const{common:{cubicBezierEaseInOut:C},self:{toolbarIconColor:z,toolbarBorderRadius:M,toolbarBoxShadow:N,toolbarColor:X}}=t.value;return{"--n-bezier":C,"--n-toolbar-icon-color":z,"--n-toolbar-color":X,"--n-toolbar-border-radius":M,"--n-toolbar-box-shadow":N}}),{inlineThemeDisabled:Ft}=gt(),Ie=Ft?ir("image-preview",void 0,Ht,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:nr(),displayed:s,previewedImgProps:m==null?void 0:m.previewedImgPropsRef,handleWheel(C){C.preventDefault()},handlePreviewMousedown:O,handlePreviewDblclick:U,syncTransformOrigin:u,handleAfterLeave:()=>{S(),k=0,s.value=!1},handleDragStart:C=>{var z,M;(M=(z=m==null?void 0:m.previewedImgPropsRef.value)===null||z===void 0?void 0:z.onDragstart)===null||M===void 0||M.call(z,C),C.preventDefault()},zoomIn:nt,zoomOut:It,handleDownloadClick:gn,rotateCounterclockwise:J,rotateClockwise:oe,handleSwitchPrev:I,handleSwitchNext:V,withTooltip:Lt,resizeToOrignalImageSize:mn,cssVars:Ft?void 0:Ht,themeClass:Ie==null?void 0:Ie.themeClass,onRender:Ie==null?void 0:Ie.onRender},Dt)},render(){var e,t;const{clsPrefix:n,renderToolbar:r,withTooltip:o}=this,i=o(y(Ee,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Xv}),"tipPrevious"),a=o(y(Ee,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>Yv}),"tipNext"),s=o(y(Ee,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>y(mv,null)}),"tipCounterclockwise"),l=o(y(Ee,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>y(gv,null)}),"tipClockwise"),u=o(y(Ee,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>y(pv,null)}),"tipOriginalSize"),c=o(y(Ee,{clsPrefix:n,onClick:this.zoomOut},{default:()=>y(wv,null)}),"tipZoomOut"),v=o(y(Ee,{clsPrefix:n,onClick:this.handleDownloadClick},{default:()=>y(vv,null)}),"tipDownload"),h=o(y(Ee,{clsPrefix:n,onClick:this.toggleShow},{default:()=>Zv}),"tipClose"),b=o(y(Ee,{clsPrefix:n,onClick:this.zoomIn},{default:()=>y(bv,null)}),"tipZoomIn");return y(Ae,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),y(Ko,{show:this.show},{default:()=>{var d;return this.show||this.displayed?((d=this.onRender)===null||d===void 0||d.call(this),dt(y("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},y(lt,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?y("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?y(lt,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?y("div",{class:`${n}-image-preview-toolbar`},r?r({nodes:{prev:i,next:a,rotateCounterclockwise:s,rotateClockwise:l,resizeToOriginalSize:u,zoomOut:c,zoomIn:b,download:v,close:h}}):y(Ae,null,this.onPrev?y(Ae,null,i,a):null,s,l,u,c,b,v,h)):null}):null,y(lt,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:w={}}=this;return dt(y("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},y("img",Object.assign({},w,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,w.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[Io,this.show]])}})),[[rr,{enabled:this.show}]])):null}}))}}),oa="n-image-group",Gv=br,rp=ie({name:"ImageGroup",props:Gv,setup(e){let t;const{mergedClsPrefixRef:n}=gt(e),r=`c${Uo()}`,o=er(),i=A(null),a=l=>{var u;t=l,(u=i.value)===null||u===void 0||u.setPreviewSrc(l)};function s(l){var u,c;if(!(o!=null&&o.proxy))return;const h=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!h.length)return;const b=Array.from(h).findIndex(d=>d.dataset.previewSrc===t);~b?a(h[(b+l+h.length)%h.length].dataset.previewSrc):a(h[0].dataset.previewSrc),l===1?(u=e.onPreviewNext)===null||u===void 0||u.call(e):(c=e.onPreviewPrev)===null||c===void 0||c.call(e)}return Ye(oa,{mergedClsPrefixRef:n,setPreviewSrc:a,setThumbnailEl:l=>{var u;(u=i.value)===null||u===void 0||u.setThumbnailEl(l)},toggleShow:()=>{var l;(l=i.value)===null||l===void 0||l.toggleShow()},groupId:r,renderToolbarRef:me(e,"renderToolbar")}),{mergedClsPrefix:n,previewInstRef:i,next:()=>{s(1)},prev:()=>{s(-1)}}},render(){return y(ra,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},this.$slots)}});function Kv(e={}){var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}}const Bn=new WeakMap,In=new WeakMap,Dn=new WeakMap,Jv=(e,t,n)=>{if(!e)return()=>{};const r=Kv(t),{root:o}=r.options;let i;const a=Bn.get(o);a?i=a:(i=new Map,Bn.set(o,i));let s,l;i.has(r.hash)?(l=i.get(r.hash),l[1].has(e)||(s=l[0],l[1].add(e),s.observe(e))):(s=new IntersectionObserver(v=>{v.forEach(h=>{if(h.isIntersecting){const b=In.get(h.target),d=Dn.get(h.target);b&&b(),d&&(d.value=!0)}})},r.options),s.observe(e),l=[s,new Set([e])],i.set(r.hash,l));let u=!1;const c=()=>{u||(In.delete(e),Dn.delete(e),u=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&i.delete(r.hash),i.size||Bn.delete(o))};return In.set(e,c),Dn.set(e,n),c},Qv=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},br),op=ie({name:"Image",props:Qv,inheritAttrs:!1,setup(e){const t=A(null),n=A(!1),r=A(null),o=ne(oa,null),{mergedClsPrefixRef:i}=o||gt(e),a={click:()=>{if(e.previewDisabled||n.value)return;const u=e.previewSrc||e.src;if(o){o.setPreviewSrc(u),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:c}=r;c&&(c.setPreviewSrc(u),c.setThumbnailEl(t.value),c.toggleShow())}},s=A(!e.lazy);_e(()=>{var u;(u=t.value)===null||u===void 0||u.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),_e(()=>{if(e.lazy&&e.intersectionObserverOptions){let u;const c=Ge(()=>{u==null||u(),u=void 0,u=Jv(t.value,e.intersectionObserverOptions,s)});Oe(()=>{c(),u==null||u()})}}),Ge(()=>{var u;e.src||((u=e.imgProps)===null||u===void 0||u.src),n.value=!1});const l=A(!1);return Ye(na,{previewedImgPropsRef:me(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:s,loaded:l,mergedOnClick:u=>{var c,v;a.click(),(v=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||v===void 0||v.call(c,u)},mergedOnError:u=>{if(!s.value)return;n.value=!0;const{onError:c,imgProps:{onError:v}={}}=e;c==null||c(u),v==null||v(u)},mergedOnLoad:u=>{const{onLoad:c,imgProps:{onLoad:v}={}}=e;c==null||c(u),v==null||v(u),l.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,s=cl(this.$slots.error,()=>[]),l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),u=this.src||r.src,c=this.showError&&s.length?s:y("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?u:void 0:u,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:fv&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return y("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:y(ra,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},{default:()=>c,toolbar:()=>{var v,h;return(h=(v=this.$slots).toolbar)===null||h===void 0?void 0:h.call(v)}}),!o&&l)}});export{op as NImage,rp as NImageGroup,Gv as imageGroupProps,Qv as imageProps};
|